/* ==========================================================================
   TRENÉRSKÁ SEKCE (/trener) — dashboard, scouting, karty, sestavy, profily
   ========================================================================== */

/* --- Shell: horní hlavička (logo + taby) nad obsahem --- */
.coach-shell { display: block; }
.coach-content { min-width: 0; }

.coach-topbar {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* Logo klubu = přepínač týmu */
.coach-club-picker { position: relative; flex-shrink: 0; }

.coach-logo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
}
.coach-logo-btn .club-logo-xl { transition: transform 0.15s ease; }
.coach-logo-btn:hover .club-logo-xl { transform: scale(1.04); }
.coach-logo-caret { font-size: 0.8rem; }

.coach-club-popover {
    position: absolute;
    left: 0; top: calc(100% + 8px);
    z-index: 30;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    padding: 14px;
    min-width: 260px;
}
.coach-club-popover-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.coach-club-popover .custom-select { width: 100%; max-width: 100%; }

/* Záložky */
.coach-nav-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.coach-topnav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.coach-topnav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease;
}
.coach-topnav-link:hover { color: var(--text-main); background: var(--bg-surface); }
.coach-topnav-link.active { color: var(--accent); background: var(--accent-glow); }

.coach-subnav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.coach-subnav-link {
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.coach-subnav-link:hover { color: var(--text-main); }
.coach-subnav-link.active { color: var(--text-main); border-bottom-color: var(--accent); }

.coach-empty-picker { margin-top: 16px; display: flex; justify-content: center; }

@media (max-width: 700px) {
    .coach-topbar { flex-direction: column; gap: 14px; align-items: stretch; }
    .coach-club-picker { align-self: flex-start; }
    .coach-nav-wrap { width: 100%; min-width: 0; }
    .coach-topnav { overflow-x: auto; flex-wrap: nowrap; min-width: 0; }
    .coach-topnav-link { white-space: nowrap; }
    .coach-subnav { flex-wrap: nowrap; min-width: 0; }
}

/* --- Dashboard karty --- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.dash-grid-single { grid-template-columns: 1fr; }

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    min-width: 0;
}

.dash-card-empty { text-align: center; padding: 50px 30px; }
.dash-card-empty h2 { margin-top: 0; }
.dash-card-empty p { max-width: 480px; margin: 0 auto; }

.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.dash-card-head h2 {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-card-head-secondary { margin-top: 22px; }

.dash-card-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 6px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.dash-card-more {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}
.dash-card-more:hover { color: var(--accent); }

/* Kompaktní tabulka v kartě */
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.dash-table th {
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 4px 8px;
    text-align: center;
}
.dash-table td { padding: 7px 8px; text-align: center; border-top: 1px solid var(--border); }
.dash-table .text-left { text-align: left; }

.dash-row-own td {
    background: var(--accent-glow);
}
.dash-row-own td:first-child { border-radius: 8px 0 0 8px; }
.dash-row-own td:last-child { border-radius: 0 8px 8px 0; }

/* Soupiska v kartě */
.dash-squad-list {
    display: flex;
    flex-direction: column;
    max-height: 380px;
    overflow-y: auto;
}

.dash-squad-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.dash-squad-item:first-child { border-top: none; }
.dash-squad-item:hover .dash-squad-name { color: var(--accent); }

.dash-squad-shirt {
    flex: 0 0 26px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
}

.dash-squad-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-squad-meta { color: var(--text-muted); font-size: 0.72rem; white-space: nowrap; }

/* Výsledky posledního kola */
.dash-results-list { display: flex; flex-direction: column; }

.dash-result-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    border-radius: 6px;
}
.dash-result-row:first-child { border-top: none; }
.dash-result-row:hover { background: var(--bg-surface); }
.dash-result-own { background: var(--accent-glow); border-top: none; }

.dash-result-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.dash-result-winner { color: var(--text-main); font-weight: 600; }
.text-right { text-align: right; }

.dash-result-score {
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.85rem;
}
.dash-result-score small { color: var(--text-muted); font-weight: 400; }

/* Nejbližší zápas */
.dash-next-match { padding: 4px 0 6px; }
.dash-next-date { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 6px; }
.dash-next-teams { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.dash-next-actions { margin-bottom: 6px; }

/* Kalendář */
.dash-calendar-list { display: flex; flex-direction: column; }

.dash-cal-row {
    display: grid;
    grid-template-columns: 30px 90px 46px 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    border-radius: 6px;
}
.dash-cal-row:first-child { border-top: none; }
.dash-cal-row:hover { background: var(--bg-surface); }
.dash-cal-next { background: var(--accent-glow); border-top: none; }
.dash-cal-upcoming .dash-result-score { color: var(--text-muted); font-weight: 400; }

.dash-cal-round { font-size: 0.72rem; text-align: right; }
.dash-cal-date { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }
.dash-cal-badge { text-align: center; }
.dash-cal-result { position: static; }
.dash-cal-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
    .dash-cal-row { grid-template-columns: 70px 40px 1fr auto 1fr; }
    .dash-cal-round { display: none; }
}

.minute-bars-flat { background: none; border: none; padding: 0; }

.team-picker-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-picker-form .custom-select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.coach-disclaimer {
    margin-bottom: 20px;
}

/* --- Společné pro nástroje (scouting, karty, sestava) --- */
.coach-tool-picker {
    margin-bottom: 25px;
}

.scout-team-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 25px;
}

.scout-team-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.coach-tool-crosslinks {
    margin-top: 25px;
}

.coach-data-note {
    font-size: 0.85rem;
    margin: -10px 0 25px;
}

/* --- Scouting --- */
.scout-note { font-size: 0.9rem; margin-bottom: 15px; }
.scout-note-small { font-size: 0.78rem; margin-top: 10px; }

.scout-xi-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.scout-xi-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px 5px 6px;
    font-size: 0.85rem;
}

.scout-xi-chip:hover { border-color: var(--accent); }
.scout-xi-filled .scout-xi-name { font-style: italic; opacity: 0.8; }

.scout-xi-shirt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
}

.scout-xi-starts { color: var(--text-muted); font-size: 0.75rem; }

.scout-gk-tag, .scout-captain-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--accent-glow);
    color: var(--accent);
    vertical-align: middle;
}

.scout-pen-note {
    font-size: 0.85rem;
    margin-top: 12px;
    color: var(--text-muted);
}
.scout-pen-note a { color: var(--text-main); }

/* Distribuce gólů po minutách — čisté CSS bary */
.minute-bars {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.minute-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.minute-bar-label {
    flex: 0 0 52px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.minute-bar-track { flex: 1; min-width: 0; }

.minute-bar {
    height: 14px;
    border-radius: 3px;
    margin-bottom: 3px;
    min-width: 2px;
    position: relative;
}

.minute-bar span {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translate(100%, -50%);
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1;
}

.minute-bar-scored { background: var(--accent); opacity: 0.85; }
.minute-bar-conceded { background: #e5534b; opacity: 0.75; }

.minute-bars-legend {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.minute-bars-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: -1px;
}
.legend-scored::before { background: var(--accent); }
.legend-conceded::before { background: #e5534b; }

/* --- Hlídání karet --- */
.cw-flag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.cw-flag-warn { background: rgba(210, 153, 34, 0.15); color: #d29922; }
.cw-flag-risk { background: rgba(229, 83, 75, 0.15); color: #e5534b; }

.cw-row-warning td:first-child { box-shadow: inset 3px 0 0 #d29922; }
.cw-row-reached td:first-child { box-shadow: inset 3px 0 0 #e5534b; }

.cw-rc-list { display: flex; flex-direction: column; gap: 8px; }

.cw-rc-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 0.85rem;
}

.cw-rc-item:hover { border-color: var(--accent); }
.cw-rc-date { color: var(--text-muted); font-size: 0.75rem; flex: 0 0 70px; }
.cw-rc-type { font-size: 0.75rem; font-weight: 600; }
.cw-rc-direct { color: #e5534b; }
.cw-rc-2yc { color: #d29922; }
.cw-rc-opponent { font-size: 0.78rem; }

.discipline-flag-list {
    margin: 0 0 10px;
    padding-left: 18px;
    font-size: 0.85rem;
}
.discipline-flag-list li { margin-bottom: 5px; }

/* --- Správa kádru (záložka Tým) --- */
.coach-roster-head { margin-bottom: 18px; }

.coach-roster-club {
    display: flex;
    align-items: center;
    gap: 14px;
}
.coach-roster-club h2 { margin: 0; font-size: 1.3rem; }
.coach-roster-count { font-size: 0.82rem; margin-top: 2px; }

.coach-roster-search {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.coach-search-box { position: relative; flex: 1; min-width: 220px; }
.coach-search-box .lb-name-input { width: 100%; min-width: 0; }

.coach-search-results {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 4px);
    z-index: 20;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 320px;
    overflow-y: auto;
}

.coach-search-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 9px 14px;
    cursor: pointer;
    color: var(--text-main);
    font-family: inherit;
}
.coach-search-item:last-child { border-bottom: none; }
.coach-search-item:hover:not(:disabled) { background: var(--bg-card); }
.coach-search-item:disabled { opacity: 0.5; cursor: default; }

.coach-search-name { font-size: 0.9rem; font-weight: 600; }
.coach-search-meta { font-size: 0.72rem; color: var(--text-muted); }
.coach-search-empty { padding: 12px 14px; color: var(--text-muted); font-size: 0.85rem; }

.coach-roster-list { display: flex; flex-direction: column; gap: 8px; }

.roster-player {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.roster-player-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.roster-player-name { font-weight: 600; font-size: 0.92rem; }
.roster-player-name:hover { color: var(--accent); }

.roster-remove {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.roster-remove:hover { border-color: #e5534b; color: #e5534b; }

.roster-player-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.roster-pos-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.roster-pos-chip .chip-x { opacity: 0.6; font-weight: 400; }
.roster-pos-chip:hover .chip-x { opacity: 1; }

.roster-pos-add {
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px dashed var(--border);
    background: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.roster-pos-add:hover, .roster-pos-add.active { border-color: var(--accent); color: var(--accent); }

.roster-pos-picker {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.picker-line { display: flex; align-items: center; gap: 10px; }
.picker-line-label {
    flex: 0 0 62px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.picker-line-pos { display: flex; flex-wrap: wrap; gap: 5px; }

.picker-pos {
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.picker-pos:hover { color: var(--text-main); }
.picker-pos.active { color: #fff; }

/* Barvy linií pro odznaky pozic (chip + aktivní tlačítko v pickeru) */
.pos-line-GK { border-color: #d29922; color: #d29922; }
.pos-line-DF { border-color: #4c8bf5; color: #4c8bf5; }
.pos-line-MF { border-color: var(--accent); color: var(--accent); }
.pos-line-FW { border-color: #e5534b; color: #e5534b; }
.picker-pos.pos-line-GK.active { background: #d29922; border-color: #d29922; }
.picker-pos.pos-line-DF.active { background: #4c8bf5; border-color: #4c8bf5; }
.picker-pos.pos-line-MF.active { background: var(--accent); border-color: var(--accent); color: #04212a; }
.picker-pos.pos-line-FW.active { background: #e5534b; border-color: #e5534b; }

.coach-roster-empty { padding: 20px 0; text-align: center; }

/* Odznaky pozic v dashboard kartě kádru */
.dash-squad-positions { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dash-squad-positions .roster-pos-chip { cursor: default; padding: 1px 7px; font-size: 0.68rem; }

/* --- Builder sestav --- */
.lb-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.lb-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Filtr formací podle počtu hráčů v řadách */
.lb-filter-group {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.lb-filter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.lb-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lb-filter {
    padding: 4px 6px;
    font-size: 0.8rem;
    min-width: 52px;
}

.lb-name-input {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    min-width: 200px;
}
.lb-name-input:focus { outline: none; border-color: var(--accent); }

.lb-hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lb-storage-note {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #d29922;
}

.lb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .lb-layout { grid-template-columns: 1fr; }
}

/* Hřiště na výšku, zelené pruhy gradientem */
.lb-pitch {
    position: relative;
    aspect-ratio: 68 / 96;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        repeating-linear-gradient(
            to bottom,
            #17351f 0, #17351f 12.5%,
            #1b3d24 12.5%, #1b3d24 25%
        );
    overflow: hidden;
}

/* Středový kruh + čáry přes pseudo-elementy */
.lb-pitch::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 24%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.lb-pitch::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.lb-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1;
    font-family: inherit;
}

/* Poziční štítek pod obsazeným slotem (barva dle linie) */
.lb-slot-pos {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.75);
}
.lb-slot.pos-line-GK .lb-slot-pos { color: #ffcf5a; }
.lb-slot.pos-line-DF .lb-slot-pos { color: #7db0ff; }
.lb-slot.pos-line-MF .lb-slot-pos { color: var(--accent); }
.lb-slot.pos-line-FW .lb-slot-pos { color: #ff8a83; }

/* Barevný rámeček prázdného slotu dle linie */
.lb-slot.pos-line-GK .lb-slot-empty { border-color: rgba(255, 207, 90, 0.6); color: rgba(255, 207, 90, 0.85); }
.lb-slot.pos-line-DF .lb-slot-empty { border-color: rgba(125, 176, 255, 0.55); color: rgba(125, 176, 255, 0.85); }
.lb-slot.pos-line-FW .lb-slot-empty { border-color: rgba(255, 138, 131, 0.55); color: rgba(255, 138, 131, 0.85); }

.lb-slot-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.15);
}

.lb-slot:hover .lb-slot-empty {
    border-color: var(--accent);
    color: var(--accent);
}

.lb-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-width: 110px;
}

.lb-chip-shirt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
}

.lb-slot .lb-chip-name {
    font-size: 0.66rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    padding: 1px 6px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-slot.lb-selected .lb-chip-shirt,
.lb-player.lb-selected {
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 0 1px var(--accent);
}

/* Soupiska + lavička */
.lb-roster, .lb-bench {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.lb-bench { margin-top: 14px; min-height: 70px; }

.lb-roster-title, .lb-bench-title {
    margin: 0 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.lb-roster-list, .lb-bench-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 560px;
    overflow-y: auto;
}

.lb-bench-list { flex-direction: row; flex-wrap: wrap; }

.lb-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    text-align: left;
}

.lb-player:hover { border-color: var(--accent); }

.lb-player .lb-chip { flex-direction: row; gap: 8px; max-width: none; }
.lb-player .lb-chip-shirt { width: 26px; height: 26px; font-size: 0.72rem; border-width: 1px; }
.lb-player .lb-chip-name { font-size: 0.85rem; }

.lb-bench-player { width: auto; }

.lb-player-meta {
    color: var(--text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
}

.lb-ghost-tag {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    background: #d29922;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 4px;
}

/* Tisková hlavička — na obrazovce skrytá */
.lb-print-header { display: none; }

/* --- Tisk sestavy --- */
@media print {
    .main-nav, .nav-spacer, .site-footer, .breadcrumb,
    .section-header, .coach-tool-picker, .lb-controls,
    .lb-roster, .coach-disclaimer {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .lb-print-header {
        display: block;
        margin-bottom: 12px;
        font-size: 1rem;
        color: #000;
    }

    .lb-layout { display: block; }

    .lb-pitch {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
        page-break-inside: avoid;
        max-width: 480px;
        margin: 0 auto;
    }

    .lb-bench {
        border: none;
        padding: 10px 0 0;
        background: none;
    }
    .lb-bench-title, .lb-player { color: #000; }
    .lb-player { background: none; border-color: #ccc; }
    .lb-slot { cursor: default; }
}
