﻿:root {
    --cc-green: #212529;
    --cc-green-light: #343a40;
    --cc-orange: #dc2626;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* TOP BAR */
.top-bar {
    background-color: var(--cc-green);
    color: white;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.top-bar-logo {
    height: 35px;
    border-radius: 5px;
}

/* VIEWS */
.view {
    display: none;
    padding: 80px 15px 20px 15px; /* offset for top bar */
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}
.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LOGIN */
#view-login {
    padding-top: 40px;
}
.login-container {
    background: transparent;
    padding: 30px 20px;
    margin-top: 40px;
}
.login-logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
}
.login-logo {
    height: 100px;
    margin-bottom: 10px;
}
.login-logo-wrapper h1 {
    font-size: 24px;
    color: var(--cc-green);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-group input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: #0f172a;
    transition: 0.2s;
}
.input-group input:focus {
    border-color: var(--cc-orange);
    outline: none;
    background: #fff;
}

.btn-primary {
    background: var(--cc-orange);
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 107, 37, 0.3);
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
}

/* GENERAL VIEWS HEADERS */
.view-header {
    margin-bottom: 20px;
}
.view-header h2 {
    font-size: 22px;
    color: var(--text-main);
}
.view-header .subtitle {
    color: var(--cc-orange);
    font-weight: 600;
    font-size: 14px;
}
.with-back {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-back {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* CANCHAS GRID */
.canchas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.cancha-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: 0.2s;
}
.cancha-card:active {
    transform: scale(0.98);
    border-color: var(--cc-green);
}
.cancha-info h3 {
    font-size: 20px;
    color: var(--cc-green);
    margin-bottom: 5px;
}
.cancha-info p {
    color: var(--text-muted);
    font-size: 14px;
}
.cancha-icon {
    font-size: 30px;
    color: var(--border-color);
}

/* PARTIDOS LIST */
.partidos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 5px; /* Added breathing room */
}
.partido-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}
.partido-card:active {
    transform: scale(0.98);
    border-color: var(--border-color);
}
.partido-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.partido-teams-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.team-row img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    background: transparent;
}
.team-row .team-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.team-row .team-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 8px;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #334155;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}
.toast.error { background: #ef4444; }
.toast.success { background: #22c55e; }
/* ANOTADOR PWA */
.anotador-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.anotador-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
    flex-shrink: 0;
}
.anotador-header .btn-back { width: auto; height: auto; background: transparent; border: none; font-size: 1.1rem; gap: 5px; padding: 5px;
    color: #fff;
    font-weight: bold;
}
.anotador-status-container select {
    background: #334155;
    color: #fff;
    border: 1px solid #475569;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
}
.sets-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #0f172a;
    flex-shrink: 0;
    overflow-x: auto;
}
.set-btn {
    background: #334155;
    color: #94a3b8;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}
.set-btn.active {
    background: var(--cc-orange);
    color: #fff;
    box-shadow: 0 0 10px rgba(251, 107, 37, 0.4);
}
.score-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
.team-score-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
.team-score-panel.team-a {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
}
.team-score-panel.team-b {
    background: linear-gradient(0deg, #1e293b 0%, #0f172a 100%);
}
.score-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cc-orange);
    color: #fff;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 2;
    border: 2px solid #0f172a;
}
.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}
.team-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    margin-bottom: 5px;
    object-fit: cover;
}
.team-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 5px;
}
.sets-won {
    background: #334155;
    color: #e2e8f0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}
.score-display {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.score-display span {
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}



.score-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 60%;
}
.btn-score {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.1s;
}
.btn-score:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}
.btn-score.btn-plus {
    background: var(--cc-orange);
}
.btn-score.btn-plus:active {
    background: #e05a1d;
}

/* BOTTOM BAR */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    cursor: pointer;
    background: transparent;
    border: none;
}
.bottom-bar-item i {
    font-size: 20px;
}
.bottom-bar-item.active {
    color: var(--cc-orange);
}

/* Date Selector */
.date-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.date-selector button {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
}
.date-selector .date-display {
    font-weight: 700;
    color: var(--cc-orange);
}

/* Profile View */
.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.profile-avatar {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 15px;
}
.profile-name {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 25px;
}
.btn-logout-big {
    background: transparent;
    border: 2px solid var(--cc-orange);
    color: var(--cc-orange);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
}

/* Extra padding for views with bottom bar */
.view.has-bottom-bar {
    padding-bottom: 85px;
}

.cancha-card img.cancha-logo {
    height: 60px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    background: transparent;
}


/* Nuevo layout del anotador side-by-side */
.score-board-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.score-board-top {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    position: relative;
    border-bottom: 2px solid #334155;
    background: #0f172a;
}
.score-divider-vertical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #334155;
    color: #fff;
    font-weight: 900;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    z-index: 5;
    border: 2px solid #0d121c;
}
.score-board-top .team-score-panel {
    background: #1e2b3c !important;
    border: 1px solid #334155 !important;
    border-radius: 12px;
    position: relative;
    padding: 10px 50px 10px 10px;
    justify-content: center;
    flex: 1;
    display: flex;
    flex-direction: row;
    height: 110px;
}
.score-board-top .team-score-panel.team-a {
    border-right: none;
}
.score-board-top .team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-logo-container {
    position: relative;
}
.score-board-top .team-logo-container img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    margin-bottom: 5px;
    object-fit: cover;
}
.score-board-top .sets-won {
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: #334155;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}
.score-board-top .team-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.score-board-top .score-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.score-board-top .score-display span {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    min-width: 60px;
    text-align: center;
    display: inline-block;
}
.score-board-top .btn-score {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* Mitad Inferior: Atletas */
.athletes-board-bottom {
    flex: 1;
    display: flex;
    flex-direction: row;
    background: #0f172a;
    overflow: hidden;
}
.athletes-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    /* Evitar toques accidentales al hacer scroll */
    touch-action: pan-y;
}
.athletes-divider {
    width: 1px;
    background: #334155;
}
.athlete-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.1s;
}
.athlete-item:active {
    transform: scale(0.98);
    background: #f1f5f9;
}
.athlete-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e293b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 10px;
    flex-shrink: 0;
}
.team-a-list .athlete-number {
    background: #dc2626; /* Rojo */
}
.team-b-list .athlete-number {
    background: #2563eb; /* Azul */
}
.athlete-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.athlete-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.athlete-points {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}
.athlete-pts-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    margin-left: 5px;
}


/* NUEVO DISEÑO SCOREBOARD V4 (Basado en la captura) */
.score-board-wrapper {
    background: #0d121c; /* Fondo general ultra oscuro */
}

.anotador-header {
    background: #0d121c;
    border-bottom: none;
    padding: 10px 15px;
}
.btn-back {
    color: #e2e8f0;
}
.anotador-status-container select {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 5px 10px;
}

.sets-nav {
    background: #0d121c;
    border-bottom: none;
    padding: 5px 0 15px 0;
    gap: 0;
}
.set-btn {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid #0d121c;
    border-radius: 0;
    padding: 8px 16px;
    margin: 0;
    font-weight: 600;
}
.set-btn:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.set-btn:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }

.set-btn.active {
    background: #dc2626; /* Rojo fuerte */
    color: #fff;
    border: 1px solid #f87171;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
    z-index: 2;
}

.score-board-top {
    background: #0d121c;
    border-bottom: none;
    padding: 10px 10px 15px 10px; gap: 10px;
    gap: 15px;
}

.score-divider-vertical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #334155;
    color: #fff;
    font-weight: 900;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    z-index: 5;
    border: 2px solid #0d121c;
}

.score-board-top .team-score-panel {
    background: #1e2b3c !important;
    border: 1px solid #334155 !important;
    border-radius: 12px;
    position: relative;
    padding: 10px 50px 10px 10px;
    justify-content: center;
    flex: 1;
    display: flex;
    flex-direction: row;
    height: 110px;
}
.score-board-top .team-score-panel.team-a { border-right: none; }

/* Lado del Logo y Nombre */
.team-info-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}
.team-info-side img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #334155;
    margin-bottom: 3px;
    background: #fff;
    object-fit: cover;
}
.team-info-side .team-name {
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

/* Columna Central (Puntos y Sets Won) */
.score-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.sets-won-badge {
    background: transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 2px;
}
.score-box {
    background: #121b29;
    border: 1px solid #0f172a;
    border-radius: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.score-box span {
    font-family: 'Trebuchet MS', 'Impact', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
    letter-spacing: 2px;
    min-width: 90px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Botones + y - */
.score-buttons-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.score-buttons-side .btn-score {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
}
.score-buttons-side .btn-plus {
    background: #b91c1c;
    box-shadow: 0 0 10px rgba(185, 28, 28, 0.4);
}
.score-buttons-side .btn-plus:active { background: #991b1b; }
.score-buttons-side .btn-minus {
    background: #334155;
}
.score-buttons-side .btn-minus:active { background: #1e293b; }








/* V7 FIXES: LOGO TOP LEFT & SPACING */
.score-board-top {
    padding: 10px 10px 15px 10px; gap: 10px;
}

.score-board-top .team-score-panel {
    background: #1e2b3c !important;
    border: 1px solid #334155 !important;
    border-radius: 12px;
    position: relative;
    padding: 10px 50px 10px 10px;
    justify-content: center;
    flex: 1;
    display: flex;
    flex-direction: row;
    height: 110px;
}

.team-corner-info {
    position: absolute;
    top: 5px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}
.team-corner-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #334155;
    margin-bottom: 2px;
    background: #fff;
    object-fit: cover;
}
.team-corner-info .team-name {
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.score-buttons-side {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.score-center-col {
    margin-left: 20px; /* Para que el score no choque con el logo */
}




/* V8 FIXES: SINGLE CONTAINER PER SIDE, LOGO OUTSIDE TOP */

.score-board-top {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    gap: 15px;
    background: #0d121c;
    position: relative;
}

.team-side {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}
.team-header-row img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 1px solid #334155;
}
.team-header-row .team-name {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: bold;
}
.team-header-row .sets-won-badge {
    background: #334155;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 5px;
}

.score-board-top .team-score-panel {
    background: #1e2b3c !important;
    border: 1px solid #334155 !important;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: auto; /* Remove hardcoded height */
}
.score-board-top .team-score-panel.team-a, .score-board-top .team-score-panel.team-b {
    border-right: 1px solid #334155 !important; /* Restore normal border */
}

.score-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-box span {
    font-size: 4.5rem;
    margin-right: 10px; /* Separacion de los botones */
}

.score-buttons-side {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-divider-vertical {
    top: 65%; /* Adjusted down because the header row takes space at the top */
    background: #1e293b;
    border: 2px solid #0d121c;
}


/* V9 FIXES: FLAT ATHLETE ROWS & +/- BUTTONS */

.athlete-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #334155 !important;
    border-radius: 0 !important;
    padding: 8px 5px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    cursor: default !important;
}
.athlete-item:active {
    transform: none !important;
    background: transparent !important;
}

.athlete-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.atl-btn {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.atl-plus {
    background: #dc2626;
}
.atl-plus:active { background: #b91c1c; }
.atl-minus {
    background: #475569;
}
.atl-minus:active { background: #334155; }

.athlete-pts-badge {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    min-width: 40px;
    text-align: center;
}

.athlete-name {
    color: #e2e8f0 !important;
}




/* ATHLETE MODE CONTROL */
.athletes-mode-control {
    background: #0f172a;
    padding: 10px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #334155;
}

#btn-athlete-mode {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#btn-athlete-mode.mode-subtract {
    background: #ef4444;
}



/* V13: LANDSCAPE OPTIMIZATION & TOUCH FIXES */
button {
    touch-action: manipulation;
    z-index: 10;
    position: relative;
}



