/* Doplňkové styly pro stránky A-týmu (realizační tým, soupiska) — základ shell z mladez-site.css */

/* ── Výběr sezóny ──────────────────────────────────────────────────────────── */

/* ── Subnav + season selector — společný řádek ──────────────────────────────── */

.a-tym-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.a-tym-subnav h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin: 0 0 10px;
    width: 100%;
}
.a-tym-subnav-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.a-tym-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.a-tym-pills a,
.a-tym-pills button {
    display: inline-block;
    padding: 9px 16px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #1a1a1a !important;
    text-decoration: none;
    line-height: normal;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    transition: border-color .2s, color .2s;
}
/* Splash theme injects a green ::before fill — remove it */
.a-tym-pills button::before {
    display: none !important;
}
.a-tym-pills a:hover,
.a-tym-pills button:hover,
.a-tym-pills a.is-active,
.a-tym-pills button.is-active {
    border-color: var(--red) !important;
    color: var(--red) !important;
    background-color: #fff !important;
}

/* Season selector — inline varianta (bez margin-bottom) */
.season-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.season-selector-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #888;
    white-space: nowrap;
}
.season-selector-label .fa {
    margin-right: 4px;
}
.season-selector-select {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}
.season-selector-select:focus {
    outline: none;
    border-color: var(--red);
}

@media (max-width: 640px) {
    .a-tym-subnav {
        flex-direction: column;
        align-items: flex-start;
    }
    .a-tym-subnav-left {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }
    .a-tym-pills {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-right: 24px;
        cursor: grab;
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    }
    .a-tym-pills::-webkit-scrollbar { display: none; }
    .a-tym-pills a,
    .a-tym-pills button {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

/* Realizační tým */
.staff-section {
    margin-bottom: 42px;
}
.staff-section:last-child {
    margin-bottom: 0;
}
.staff-section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0 0 20px;
    padding-left: 14px;
    border-left: 4px solid var(--red);
    line-height: 1;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.staff-card {
    background: #fff;
    border-radius: 3px;
    border-top: 3px solid var(--red);
    padding: 24px 18px 22px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.staff-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.staff-card--lead {
    border-top-width: 4px;
    grid-column: span 1;
}
@media (min-width: 992px) {
    .staff-card--lead {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 20px;
        text-align: left;
        align-items: center;
        padding: 26px 28px;
    }
    .staff-card--lead .staff-photo {
        margin: 0;
    }
}
.staff-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #2a2a2a, #4a1515);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: rgba(255,255,255,.35);
    flex-shrink: 0;
}
.staff-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0 0 6px;
    line-height: 1.2;
}
.staff-role {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 10px;
}
.staff-bio {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* Soupiska */
.roster-note {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 22px;
    line-height: 1.6;
}
.roster-group {
    margin-bottom: 32px;
}
.roster-group:last-child {
    margin-bottom: 0;
}
.roster-group-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--dark);
    padding: 10px 16px;
    margin: 0 0 0;
    border-radius: 3px 3px 0 0;
    border-left: 4px solid var(--red);
}
.roster-table-wrap {
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.06);
    border-radius: 0 0 3px 3px;
    overflow-x: auto;
}
.roster-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}
.roster-table th {
    background: #f0f0f0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .4px;
    color: #555;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}
.roster-table th:nth-child(n+4) {
    text-align: center;
}
.roster-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.roster-table td:nth-child(n+4) {
    text-align: center;
}
.roster-table tr:hover td {
    background: #fafafa;
}
.roster-table .num {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--red);
    width: 48px;
}
.roster-table .name {
    font-weight: 700;
    color: var(--dark);
}
.roster-table .name a {
    color: var(--dark);
    text-decoration: none;
}
.roster-table .name a:hover {
    color: var(--red);
}
.roster-table .pos {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
}
.roster-legend {
    margin-top: 24px;
    padding: 16px 18px;
    background: #fff;
    border-left: 4px solid var(--red);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}
.roster-legend strong {
    color: var(--dark);
}

/* ── Zápasy — záložky ──────────────────────────────────────────────────────── */

.games-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.games-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--dark);
    cursor: pointer;
    transition: all .2s;
}
.games-tab-btn:hover {
    border-color: var(--red);
    color: var(--red);
}
.games-tab-btn.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.games-empty {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #999;
    padding: 24px 0;
    text-align: center;
}

/* ── Zápasy — grid karet ───────────────────────────────────────────────────── */

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
@media (max-width: 991px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .games-grid { grid-template-columns: 1fr; }
}

.games-grid .game-card-link {
    display: flex;
    flex-direction: column;
}
.games-grid .game-card {
    flex: 1;
    margin-bottom: 0;
}

/* ── Zápasy — karta výsledku ───────────────────────────────────────────────── */

.game-card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 5px rgba(0,0,0,.07);
    margin-bottom: 14px;
    padding: 16px 20px 14px;
    border-left: 4px solid var(--red);
    display: flex;
    flex-direction: column;
}
.game-card--scheduled {
    border-left-color: #bbb;
    opacity: .92;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}
.game-card-date,
.game-card-venue {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #888;
}
.game-card-date .fa,
.game-card-venue .fa {
    margin-right: 4px;
}

.game-card-score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
}
.game-card-score--future {
    margin-bottom: 4px;
}
.game-card-team {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-card-team--away {
    text-align: right;
}
.game-card-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.game-card-scorebox {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--dark);
    white-space: nowrap;
    letter-spacing: 2px;
}
.game-card-periods {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    letter-spacing: .3px;
}
.game-card-vs {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #bbb;
    white-space: nowrap;
}

/* ── Zápasy — góly ─────────────────────────────────────────────────────────── */

.game-card-goals {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.game-card-goals-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}
.game-card-goals-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
}
.game-card-goals-list {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.game-goal-item {
    display: inline;
}
.game-goal-period {
    font-size: 11px;
    color: #aaa;
}
.game-goal-assists {
    font-size: 12px;
    color: #888;
}
.game-goal-sep {
    color: #ccc;
}

/* ── Zápasy — výsledkový footer karty ─────────────────────────────────────── */

.game-card-result-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.game-card-result-footer .game-badge {
    display: block;
    text-align: center;
    padding: 6px 12px;
    font-size: 12px;
}

/* ── Zápasy — odznak výsledku ──────────────────────────────────────────────── */

.game-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}
.game-badge--win {
    background: #e8f5e0;
    color: #3a7d10;
}
.game-badge--ot {
    background: #fff3cd;
    color: #856404;
}
.game-badge--loss {
    background: #fde8e8;
    color: #b91c1c;
}
.game-badge--playoff {
    background: #1a2a4a;
    color: #fff;
}

/* ── Zápasy — klikatelné karty ─────────────────────────────────────────────── */

.game-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.game-card-link:hover .game-card {
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transform: translateY(-1px);
}
.game-card {
    transition: box-shadow .2s, transform .2s;
}

/* ── Detail zápasu — header ────────────────────────────────────────────────── */

.gd-header {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 5px rgba(0,0,0,.07);
    padding: 24px 24px 20px;
    margin-bottom: 20px;
    border-top: 4px solid var(--red);
}
.gd-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}
.gd-scoreboard {
    display: flex;
    align-items: center;
    gap: 16px;
}
.gd-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gd-team--away {
    text-align: right;
    align-items: flex-end;
}
.gd-team-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gd-team-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}
.gd-team-logo .gd-team-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
}
.gd-team-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
}
.gd-team-label {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #aaa;
}
.gd-score {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}
.gd-score-num {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}
.gd-score-sep {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: #ccc;
    line-height: 1;
    align-self: center;
}
.gd-score-badge {
    width: 100%;
    text-align: center;
}
.gd-score--future {
    min-width: 60px;
}
.gd-score-vs {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #bbb;
}

@media (max-width: 600px) {
    .gd-scoreboard { gap: 8px; }
    .gd-team {
        flex: 1 1 0;
        min-width: 0;
        gap: 6px;
    }
    .gd-team--home { align-items: center; text-align: center; }
    .gd-team--away { align-items: center; text-align: center; }
    .gd-team-logo { width: 44px; height: 44px; }
    .gd-team-logo img { max-width: 44px; max-height: 44px; }
    .gd-team-name {
        font-size: 14px;
        line-height: 1.2;
        word-break: break-word;
    }
    .gd-team-label { font-size: 10px; }
    .gd-score { min-width: 70px; gap: 4px; }
    .gd-score-num { font-size: 32px; }
    .gd-score-sep { font-size: 26px; }
}

/* ── Detail zápasu — góly ──────────────────────────────────────────────────── */

.gd-goals {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gd-period {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gd-period-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #aaa;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.gd-period-goals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gd-goal-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #555;
    padding: 8px 12px;
    border-radius: 3px;
    background: #fafafa;
}
.gd-goal-row--draci {
    background: #f0f7e8;
    border-left: 3px solid var(--red);
}
.gd-goal-time {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    min-width: 40px;
    flex-shrink: 0;
}
.gd-goal-team {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #999;
    min-width: 90px;
    flex-shrink: 0;
}
.gd-goal-scorer {
    flex: 1;
    color: var(--dark);
}
.gd-goal-scorer strong {
    color: var(--dark);
}
.gd-goal-assists {
    font-size: 13px;
    color: #888;
}

/* ── Detail zápasu — popis a galerie ───────────────────────────────────────── */

.gd-description {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}
.gd-description p {
    margin: 0 0 12px;
}
.gd-description p:last-child {
    margin-bottom: 0;
}
.gd-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--red);
    color: #fff;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-decoration: none;
    transition: opacity .2s;
}
.gd-gallery-link:hover {
    opacity: .85;
    color: #fff;
}
.gd-back-link,
a.gd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #444 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 3px;
    padding: 7px 14px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.gd-back-link::before {
    display: none !important;
}
.gd-back-link:hover,
a.gd-back-link:hover {
    border-color: var(--red) !important;
    color: var(--red) !important;
    background: #fff !important;
}

/* ── Person karty (Realizační tým / Management) ─────────────────────────────── */

.persons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 8px;
}
@media (max-width: 1199px) {
    .persons-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .persons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .persons-grid { grid-template-columns: 1fr; }
}

.person-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.person-card-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.person-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.person-card-avatar-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.person-card-avatar-wrap svg {
    width: 100% !important;
    height: 100% !important;
}

.person-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.person-card-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.person-card-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.person-role-tag {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 8px;
    border-radius: 2px;
}

.person-card-bio {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
}

.person-card-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.person-card-contact-item {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.person-card-contact-item:hover { color: var(--red); }
