/* ================================================
   TSV LIGA 5v5 — Complete page styles
   Matches: mockups/liga-5v5..png
   ================================================ */

/* ── HERO ── */
.tsv-liga-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-color: var(--tsv-dark);
}
.tsv-liga-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.30)  0%,
        rgba(10,10,10,0.80)  60%,
        rgba(10,10,10,0.95) 100%
    );
}
.tsv-liga-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 36px;
}

/* Badge */
.tsv-liga-badge {
    display: inline-block;
    background: var(--tsv-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 12px 3px;
    border-radius: 3px;
    margin-bottom: 14px;
}

/* Title */
.tsv-liga-hero__title-wrap { margin-bottom: 18px; }
.tsv-liga-hero__title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin: 0;
}
.tsv-liga-hero__title-main {
    display: block;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.05;
}
.tsv-liga-hero__title-season {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-top: 6px;
}

/* Meta row */
.tsv-liga-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}
.tsv-liga-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
}
.tsv-liga-meta-item svg {
    width: 15px;
    height: 15px;
    stroke: rgba(255,255,255,0.55);
    flex-shrink: 0;
}

/* CTA buttons */
.tsv-liga-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tsv-btn--red {
    background: var(--tsv-primary);
    color: #fff;
    border: 2px solid var(--tsv-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.tsv-btn--red:hover {
    background: #aa0000;
    border-color: #aa0000;
    color: #fff;
    text-decoration: none;
}
.tsv-btn--ghost-white {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.40);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(4px);
}
.tsv-btn--ghost-white:hover {
    background: rgba(255,255,255,0.20);
    color: #fff;
    text-decoration: none;
}

/* ── Full width override — remove catch-everest content limits ── */
.tsv-liga-fullwidth #content,
.tsv-liga-fullwidth #primary,
.tsv-liga-fullwidth .site-content,
.tsv-liga-fullwidth .content-area,
.tsv-liga-fullwidth #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
.tsv-liga-fullwidth #secondary,
.tsv-liga-fullwidth .widget-area {
    display: none !important;
}
.tsv-liga-fullwidth .site-content {
    display: block !important;
}
.tsv-liga-fullwidth .entry-content,
.tsv-liga-fullwidth .entry-header {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ── OUTER WRAP ── */
.tsv-liga-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 768px) { .tsv-liga-wrap { padding: 0 16px; } }

/* ── 3-COLUMN GRID ── */
.tsv-liga-layout {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    grid-template-areas: "left main right";
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 48px;
    align-items: start;
}

/* ── SIDEBARS ── */
.tsv-sidebar--left {
    grid-area: left;
    position: sticky;
    top: 88px;
}
.tsv-sidebar--right {
    grid-area: right;
    position: sticky;
    top: 88px;
}

/* Active league card */
.tsv-league-active-card {
    background: var(--tsv-primary);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.tsv-league-active-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
    display: block;
    margin-bottom: 4px;
}
.tsv-league-active-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.3;
}
.tsv-league-active-dates {
    font-size: 11px;
    color: rgba(255,255,255,0.70);
    margin-top: 4px;
}

/* Sidebar heading */
.tsv-sidebar-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--tsv-muted);
    margin-bottom: 10px;
    margin-top: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tsv-border);
}
.tsv-sidebar-heading:first-child { margin-top: 0; }

/* League nav */
.tsv-league-nav__list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}
.tsv-league-nav__list li { border-bottom: 1px solid #f0f0f0; }
.tsv-league-nav__list li:last-child { border-bottom: none; }
.tsv-league-nav__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 13px;
    color: var(--tsv-dark);
    text-decoration: none;
    transition: color 0.15s;
}
.tsv-league-nav__list a:hover { color: var(--tsv-primary); }
.tsv-league-nav__list li.is-active a {
    color: var(--tsv-primary);
    font-weight: 700;
}
.tsv-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tsv-primary);
    flex-shrink: 0;
}
.tsv-nav-icon {
    font-size: 14px;
    width: 20px;
    flex-shrink: 0;
    display: inline-block;
    text-align: center;
    line-height: 1;
}
.tsv-league-nav__list li.is-active .tsv-nav-icon {
    animation: tsv-spin 2s linear infinite;
    display: inline-block;
}
@keyframes tsv-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Quick links */
.tsv-league-quicklinks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tsv-league-quicklinks li { border-bottom: 1px solid #f0f0f0; }
.tsv-league-quicklinks li:last-child { border-bottom: none; }
.tsv-league-quicklinks a {
    display: block;
    padding: 8px 0;
    font-size: 12px;
    color: var(--tsv-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.tsv-league-quicklinks a:hover { color: var(--tsv-primary); }

/* Promo card */
.tsv-promo-card {
    border: 1px solid var(--tsv-border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
}
.tsv-promo-card__img {
    height: 110px;
    background-size: cover;
    background-position: center;
}
.tsv-promo-card__img--placeholder {
    background: linear-gradient(135deg, var(--tsv-primary) 0%, #8B0000 100%);
}
.tsv-promo-card__body { padding: 12px; }
.tsv-promo-card__body p {
    font-size: 12px;
    font-weight: 600;
    color: var(--tsv-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* ── MAIN CONTENT ── */
.tsv-liga-main {
    grid-area: main;
    background: #fff;
    border: 1px solid var(--tsv-border);
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    min-width: 0;
}
.tsv-main-section { padding: 28px 32px; }
.tsv-main-section + .tsv-main-section { border-top: 1px solid #f0f0f0; }

.tsv-main-heading {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tsv-dark);
    border-bottom: 3px solid var(--tsv-primary);
    padding-bottom: 10px;
    margin: 0 0 20px;
    display: inline-block;
}

/* Empty state */
.tsv-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--tsv-muted);
}
.tsv-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}
.tsv-empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ── RIGHT SIDEBAR CARDS ── */
.tsv-sidebar-card {
    background: #fff;
    border: 1px solid var(--tsv-border);
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tsv-sidebar-card .tsv-sidebar-heading {
    margin-top: 0;
    font-size: 11px;
    color: var(--tsv-dark);
    letter-spacing: 0.08em;
}

/* Info table */
.tsv-info-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.tsv-info-table tr { border-bottom: 1px solid #f5f5f5; }
.tsv-info-table tr:last-child { border-bottom: none; }
.tsv-info-table td { padding: 7px 0; vertical-align: top; }
.tsv-info-label {
    font-weight: 600;
    color: var(--tsv-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 90px;
    padding-right: 12px;
}

/* Locations list */
.tsv-locations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tsv-locations-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.tsv-locations-list li:last-child { border-bottom: none; }
.tsv-locations-list svg { margin-top: 2px; flex-shrink: 0; stroke: var(--tsv-primary); }
.tsv-locations-list a { color: var(--tsv-dark); text-decoration: none; line-height: 1.4; }
.tsv-locations-list a:hover { color: var(--tsv-primary); }

/* Age list */
.tsv-age-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: var(--tsv-muted);
}
.tsv-age-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.4;
}
.tsv-age-list li:last-child { border-bottom: none; }
.tsv-age-list li::before { content: '⚽ '; font-size: 11px; }

.tsv-see-all {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--tsv-primary);
    text-decoration: none;
}
.tsv-see-all:hover { text-decoration: underline; }

/* ── Team results list ── */
.tsv-team-results { display: flex; flex-direction: column; gap: 2px; }

.tsv-result-row {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 5px;
    border: 1px solid var(--tsv-border);
    font-size: 13px;
    background: #fff;
    margin-bottom: 6px;
}
.tsv-result-row.is-win  { border-left: 4px solid var(--tsv-positive); }
.tsv-result-row.is-loss { border-left: 4px solid var(--tsv-primary); }
.tsv-result-row.is-draw { border-left: 4px solid #f0a500; }

.tsv-result-row__date {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: var(--tsv-muted);
    font-weight: 600;
    white-space: nowrap;
}
.tsv-result-row__date small { font-weight: 400; margin-top: 2px; }

.tsv-result-row__match {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tsv-result-row__home,
.tsv-result-row__away { font-weight: 500; }
.tsv-result-row__home.is-this-team,
.tsv-result-row__away.is-this-team {
    font-weight: 700;
    color: var(--tsv-dark);
}
.tsv-result-row__score {
    min-width: 52px;
    text-align: center;
    font-size: 14px;
    background: #f8f8f8;
    border-radius: 3px;
    padding: 3px 8px;
}
.tsv-upcoming-label {
    font-size: 10px;
    color: var(--tsv-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tsv-result-row__field {
    font-size: 11px;
    color: var(--tsv-muted);
    white-space: nowrap;
}
.tsv-result-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.tsv-result-badge--win  { background: #e8f5e9; color: var(--tsv-positive); }
.tsv-result-badge--loss { background: #fff0f0; color: var(--tsv-primary); }
.tsv-result-badge--draw { background: #fff8e1; color: #c8a000; }

@media (max-width: 600px) {
    .tsv-result-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .tsv-result-row__date { grid-row: 1; }
    .tsv-result-row__match { grid-column: span 2; flex-wrap: wrap; gap: 6px; }
    .tsv-result-row__field { display: none; }
}

/* ── Team page hero ── */
.tsv-team-hero {
    background: var(--tsv-dark);
    border-bottom: 3px solid var(--tsv-primary);
    padding: 40px 0;
}
.tsv-team-hero__inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.tsv-team-hero__logo-wrap { flex-shrink: 0; }
.tsv-team-hero__logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tsv-primary);
    display: block;
}
.tsv-team-hero__logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(204,0,0,0.15);
    border: 3px solid var(--tsv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.tsv-team-hero__name {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.tsv-team-hero__league {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.60);
    margin-bottom: 12px;
}
.tsv-team-hero__back a {
    font-size: 12px;
    color: var(--tsv-primary);
    text-decoration: none;
    font-weight: 600;
}
.tsv-team-hero__back a:hover { text-decoration: underline; }

.tsv-team-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 32px 48px 64px;
}
.tsv-team-page__inner { max-width: 900px; }
.tsv-team-section { margin-bottom: 40px; }

@media (max-width: 768px) {
    .tsv-team-hero__inner { padding: 0 20px; flex-direction: column; gap: 20px; }
    .tsv-team-page { padding: 24px 20px 48px; }
}

/* ── MOBILE ACCORDION TOGGLES ── */
.tsv-sidebar-toggle {
    display: none;
    width: 100%;
    background: var(--tsv-dark);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 2px;
    text-align: left;
}
.tsv-toggle-icon {
    float: right;
    font-size: 18px;
    line-height: 1;
}

/* ── STANDINGS inside main card ── */
.tsv-standings-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tsv-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}
.tsv-standings-table thead tr {
    border-bottom: 2px solid #CC0000;
}
.tsv-standings-table th {
    padding: 7px 8px;
    text-align: center;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}
.tsv-standings-table th.tsv-col-team {
    text-align: left;
    min-width: 160px;
}
.tsv-standings-table td {
    padding: 7px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.tsv-standings-table td.tsv-col-team {
    text-align: left;
    white-space: nowrap;
}
.tsv-standings-table td.tsv-col-team a {
    color: #CC0000;
    text-decoration: none;
    font-weight: 600;
}
.tsv-standings-table td.tsv-col-team a:hover { text-decoration: underline; }
.tsv-standings-table td.tsv-col-pts {
    font-weight: 700;
    color: #CC0000;
}
.tsv-standings-table .tsv-first-place {
    border-left: 3px solid #CC0000;
}
.tsv-standings-table .tsv-gd-positive { color: #2E8B57; font-weight: 600; }
.tsv-standings-table .tsv-gd-negative { color: #CC0000; }
.tsv-team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
@media (max-width: 768px) {
    .tsv-hide-mobile { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .tsv-liga-layout {
        grid-template-columns: 180px 1fr 260px;
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .tsv-liga-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "main"
            "right";
        gap: 0;
        margin-top: 16px;
    }

    /* Left sidebar — collapsed accordion on mobile */
    .tsv-sidebar--left {
        position: static;
        order: 1;
        margin-bottom: 0;
    }

    /* Main content */
    .tsv-liga-main {
        order: 2;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
    }

    /* Right sidebar */
    .tsv-sidebar--right {
        position: static;
        order: 3;
        margin-top: 0;
    }

    /* Show toggle buttons on mobile */
    .tsv-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: #f8f8f8;
        color: var(--tsv-dark);
        border: none;
        border-top: 1px solid var(--tsv-border);
        border-bottom: 1px solid var(--tsv-border);
        padding: 14px 20px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        cursor: pointer;
        margin-bottom: 0;
        border-radius: 0;
        text-align: left;
    }

    /* Arrow icon on right — rotates smoothly when open */
    .tsv-toggle-icon {
        float: none;
        font-size: 14px;
        color: var(--tsv-muted);
        transition: transform 0.25s ease;
        display: inline-block;
        margin-left: auto;
    }
    .tsv-sidebar-toggle[aria-expanded="true"] .tsv-toggle-icon {
        transform: rotate(180deg);
        color: var(--tsv-primary);
    }
    .tsv-sidebar-toggle[aria-expanded="true"] {
        background: #fff8f8;
        color: var(--tsv-primary);
        border-bottom-color: var(--tsv-primary);
    }

    /* Sidebar label icons */
    .tsv-sidebar--left .tsv-sidebar-toggle::before  { content: '🏆 '; }
    .tsv-sidebar--right .tsv-sidebar-toggle::before { content: 'ℹ️ '; }

    /* Sidebar body — collapsed by default, full-width accordion panel */
    .tsv-sidebar-body,
    .tsv-sidebar--left .tsv-sidebar-body {
        display: none;
        padding: 20px;
        background: #fff;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--tsv-border);
        box-shadow: none;
    }
    .tsv-sidebar-body.is-open,
    .tsv-sidebar--left .tsv-sidebar-body.is-open { display: block; }

    /* Promo card — simplified on mobile */
    .tsv-promo-card { margin-top: 16px; }
    .tsv-promo-card__img { height: 120px; }

    /* Sidebar cards — remove extra borders/shadows for flat full-width look */
    .tsv-sidebar-card {
        border: none;
        border-bottom: 1px solid var(--tsv-border);
        border-radius: 0;
        padding: 16px 0;
        box-shadow: none;
        margin-bottom: 0;
    }
    .tsv-sidebar-card:last-child { border-bottom: none; }

    .tsv-info-table { font-size: 13px; }
    .tsv-info-label { min-width: 100px; }

    .tsv-league-nav__list a { padding: 12px 4px; }
    .tsv-league-quicklinks a,
    .tsv-league-quicklinks__list a { padding: 10px 4px; }

    /* Hero adjustments */
    .tsv-liga-hero__content { padding: 28px 20px 24px; }
    .tsv-liga-hero__title   { font-size: 1.6rem; }
    .tsv-liga-hero__ctas    { flex-direction: column; }
    .tsv-liga-hero__ctas .tsv-btn { width: 100%; justify-content: center; }

    .tsv-main-section { padding: 20px 16px; }
    .tsv-liga-wrap { padding: 0; }
}
@media (max-width: 480px) {
    .tsv-liga-hero { min-height: 280px; }
    .tsv-liga-hero__title { font-size: 1.4rem; }
    .tsv-liga-hero__meta { gap: 12px; }
}

/* ================================================
   TEAM PAGE — Professional redesign (FIX 1)
   ================================================ */

.tsv-team-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 50%, #1a1a1a 100%);
    border-bottom: 3px solid var(--tsv-primary);
    padding: 0;
    position: relative;
    overflow: hidden;
}
.tsv-team-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/themes/catch-everest-child/assets/img/liga-hero.jpg');
    background-image: image-set(
        url('/wp-content/themes/catch-everest-child/assets/img/liga-hero.webp') type('image/webp'),
        url('/wp-content/themes/catch-everest-child/assets/img/liga-hero.jpg')  type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
.tsv-team-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    padding: 48px 48px 40px;
    display: flex;
    align-items: center;
    gap: 36px;
}
.tsv-team-hero__logo-wrap { flex-shrink: 0; }
.tsv-team-hero__logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--tsv-primary);
    display: block;
    box-shadow: 0 0 0 6px rgba(204,0,0,0.15);
}
.tsv-team-hero__logo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(204,0,0,0.12);
    border: 4px solid var(--tsv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    box-shadow: 0 0 0 6px rgba(204,0,0,0.10);
}
.tsv-team-hero__info { flex: 1; min-width: 0; }
.tsv-team-hero__name {
    color: #ffffff;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
    line-height: 1.1;
}
.tsv-team-hero__league {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.60);
    margin-bottom: 16px;
}
.tsv-team-hero__league::before { content: '\26BD'; font-size: 13px; }

/* Stats row in hero */
.tsv-team-hero__stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tsv-team-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    padding: 10px 18px;
    min-width: 64px;
}
.tsv-team-hero__stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tsv-primary);
    line-height: 1;
}
.tsv-team-hero__stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    white-space: nowrap;
}

/* Back link */
.tsv-team-hero__back { margin-top: 4px; }
.tsv-team-hero__back a {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.tsv-team-hero__back a:hover { color: var(--tsv-primary); text-decoration: none; }

/* Team page content */
.tsv-team-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 40px 48px 72px;
}
.tsv-team-page__inner { max-width: 860px; }
.tsv-team-section { margin-bottom: 48px; }

/* Results container */
.tsv-team-results {
    border: 1px solid var(--tsv-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    display: block;
}

/* Results header row */
.tsv-results-header {
    display: grid;
    grid-template-columns: 96px 1fr 60px 90px;
    align-items: center;
    background: #f8f8f8;
    border-bottom: 2px solid var(--tsv-border);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tsv-muted);
}
.tsv-results-header > div {
    padding: 8px 16px;
    border-right: 1px solid #f0f0f0;
}
.tsv-results-header > div:last-child { border-right: none; }

/* Result row — replaces earlier grid version */
.tsv-result-row {
    display: grid;
    grid-template-columns: 96px 1fr 60px 90px;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    background: #fff;
    transition: background 0.1s;
    margin-bottom: 0;
    border-radius: 0;
}
.tsv-result-row:last-child { border-bottom: none; }
.tsv-result-row:hover { background: #fafafa; }
.tsv-result-row.is-win  { border-left: 4px solid var(--tsv-positive); }
.tsv-result-row.is-loss { border-left: 4px solid var(--tsv-primary); }
.tsv-result-row.is-draw { border-left: 4px solid #e8a000; }

.tsv-result-row__date {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid #f5f5f5;
    align-items: flex-start;
}
.tsv-result-row__date span {
    font-size: 12px;
    font-weight: 700;
    color: var(--tsv-dark);
    white-space: nowrap;
}
.tsv-result-row__date small {
    font-size: 10px;
    font-weight: 400;
    color: var(--tsv-muted);
}
.tsv-result-row__match {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.tsv-result-row__home,
.tsv-result-row__away {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--tsv-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tsv-result-row__home { text-align: right; }
.tsv-result-row__away { text-align: left; }
.tsv-result-row__home.is-this-team,
.tsv-result-row__away.is-this-team { font-weight: 800; }
.tsv-result-row__score {
    padding: 14px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tsv-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tsv-upcoming-label {
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.tsv-result-row__field {
    padding: 14px 12px;
    font-size: 11px;
    color: var(--tsv-muted);
    white-space: nowrap;
    border-left: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
}
.tsv-result-badge {
    padding: 14px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
    border-left: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tsv-result-badge--win  { color: var(--tsv-positive); }
.tsv-result-badge--loss { color: var(--tsv-primary); }
.tsv-result-badge--draw { color: #e8a000; }

@media (max-width: 768px) {
    .tsv-team-hero__inner { padding: 32px 20px 28px; gap: 20px; flex-direction: column; align-items: flex-start; }
    .tsv-team-hero__logo,
    .tsv-team-hero__logo-placeholder { width: 80px; height: 80px; }
    .tsv-team-hero__name { font-size: 1.4rem; }
    .tsv-team-page { padding: 28px 20px 48px; }
    .tsv-team-hero__stats { gap: 10px; }
    .tsv-team-hero__stat { padding: 8px 12px; }
}
@media (max-width: 640px) {
    .tsv-result-row,
    .tsv-results-header { grid-template-columns: 72px 1fr 52px; }
    .tsv-result-row__field,
    .tsv-result-badge,
    .tsv-results-header .tsv-col-badge,
    .tsv-results-header .tsv-col-field { display: none; }
    .tsv-result-row__match { padding: 12px 10px; gap: 6px; }
    .tsv-result-row__home,
    .tsv-result-row__away { font-size: 12px; }
}

/* ================================================
   LIGA LEFT SIDEBAR — Legibility fix (FIX 2)
   ================================================ */

/* White card background for sidebar body (desktop) */
.tsv-sidebar--left .tsv-sidebar-body {
    background: #fff;
    border: 1px solid var(--tsv-border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Active league card */
.tsv-league-active-card {
    background: var(--tsv-primary);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.tsv-league-active-card::after {
    content: '\26BD';
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 3.5rem;
    opacity: 0.12;
    pointer-events: none;
}
.tsv-league-active-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.70);
    display: block;
    margin-bottom: 4px;
}
.tsv-league-active-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.tsv-league-active-dates {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

/* Sidebar heading labels */
.tsv-sidebar-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--tsv-muted);
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tsv-border);
}
.tsv-sidebar-heading:first-child { margin-top: 0; }

/* League nav — explicit dark text for contrast */
.tsv-league-nav__list { list-style: none; margin: 0 0 4px; padding: 0; }
.tsv-league-nav__list li { border-bottom: 1px solid #f5f5f5; }
.tsv-league-nav__list li:last-child { border-bottom: none; }
.tsv-league-nav__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 4px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 500;
}
.tsv-league-nav__list a:hover { color: var(--tsv-primary); text-decoration: none; }
.tsv-league-nav__list li.is-active a { color: var(--tsv-primary); font-weight: 700; }

/* Quick links — cover both class variants */
.tsv-league-quicklinks ul,
.tsv-league-quicklinks__list { list-style: none; margin: 0; padding: 0; }
.tsv-league-quicklinks li,
.tsv-league-quicklinks__list li { border-bottom: 1px solid #f5f5f5; }
.tsv-league-quicklinks li:last-child,
.tsv-league-quicklinks__list li:last-child { border-bottom: none; }
.tsv-league-quicklinks a,
.tsv-league-quicklinks__list a {
    display: block;
    padding: 8px 4px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 500;
}
.tsv-league-quicklinks a:hover,
.tsv-league-quicklinks__list a:hover { color: var(--tsv-primary); text-decoration: none; }

/* Promo card */
.tsv-promo-card {
    border: 1px solid var(--tsv-border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
    background: #fff;
}
.tsv-promo-card__img {
    height: 90px;
    background-size: cover;
    background-position: center;
}
.tsv-promo-card__img--placeholder {
    background: linear-gradient(135deg, var(--tsv-primary) 0%, #8B0000 100%);
}
.tsv-promo-card__body { padding: 12px; }
.tsv-promo-card__body p {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* ================================================
   EVENT / MATCH PAGE (FIX 3)
   ================================================ */

.tsv-event-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 40%, #1a1a1a 100%);
    padding: 0;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.tsv-event-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/themes/catch-everest-child/assets/img/liga-hero.jpg');
    background-image: image-set(
        url('/wp-content/themes/catch-everest-child/assets/img/liga-hero.webp') type('image/webp'),
        url('/wp-content/themes/catch-everest-child/assets/img/liga-hero.jpg')  type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.07;
}
.tsv-event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(180,0,0,0.4) 50%, rgba(26,26,26,0.95) 100%);
}
.tsv-event-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 48px 40px;
}

/* Breadcrumb */
.tsv-event-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.40);
    margin-bottom: 16px;
}
.tsv-event-breadcrumb a { color: rgba(255,255,255,0.40); text-decoration: none; transition: color 0.15s; }
.tsv-event-breadcrumb a:hover { color: rgba(255,255,255,0.75); }

/* Meta strip */
.tsv-event-meta-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tsv-event-badge {
    display: inline-block;
    background: var(--tsv-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 4px 12px;
    border-radius: 3px;
}
.tsv-event-season {
    font-size: 12px;
    color: rgba(255,255,255,0.50);
    font-weight: 500;
}

/* Scoreboard */
.tsv-scoreboard {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}
.tsv-scoreboard__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.tsv-scoreboard__team--home { align-items: flex-end; text-align: right; }
.tsv-scoreboard__team--away { align-items: flex-start; text-align: left; }

.tsv-scoreboard__logo-link { display: block; }
.tsv-scoreboard__logo {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.15);
    transition: border-color 0.15s;
}
.tsv-scoreboard__logo-link:hover .tsv-scoreboard__logo { border-color: var(--tsv-primary); }
.tsv-scoreboard__logo-placeholder {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 3px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.tsv-scoreboard__name {
    font-size: clamp(13px, 2.5vw, 16px);
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1.2;
    max-width: 200px;
    display: block;
}
.tsv-scoreboard__name:hover { color: #fff; text-decoration: none; }
.tsv-scoreboard__team.is-winner .tsv-scoreboard__name { color: #fff; }
.tsv-scoreboard__team.is-winner .tsv-scoreboard__logo {
    border-color: var(--tsv-primary);
    box-shadow: 0 0 0 4px rgba(204,0,0,0.20);
}
.tsv-scoreboard__result-badge {
    display: inline-block;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.10em;
    padding: 3px 10px; border-radius: 3px;
}
.tsv-result-win  { background: rgba(46,139,87,0.20);  color: #5cb85c; }
.tsv-result-loss { background: rgba(204,0,0,0.20);    color: #e05555; }
.tsv-result-draw { background: rgba(200,160,0,0.20);  color: #d4a800; }

/* Score numbers */
.tsv-scoreboard__score-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tsv-scoreboard__score { display: flex; align-items: center; gap: 12px; }
.tsv-scoreboard__score-home,
.tsv-scoreboard__score-away {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: rgba(255,255,255,0.50);
    line-height: 1; min-width: 48px; text-align: center;
}
.tsv-scoreboard__score-home.is-winner,
.tsv-scoreboard__score-away.is-winner { color: #fff; }
.tsv-scoreboard__score-sep { font-size: 2rem; color: rgba(255,255,255,0.25); font-weight: 300; }
.tsv-scoreboard__vs { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.25); letter-spacing: 0.10em; }
.tsv-scoreboard__status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.tsv-scoreboard__status.is-played   { color: #5cb85c; }
.tsv-scoreboard__status.is-upcoming { color: rgba(255,255,255,0.35); }

/* Details strip */
.tsv-event-details {
    display: flex; flex-wrap: wrap; gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.10);
}
.tsv-event-detail {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500;
}
.tsv-event-detail svg { opacity: 0.6; }
.tsv-event-detail--admin a { color: var(--tsv-primary); text-decoration: none; font-weight: 700; }

/* Content area */
.tsv-event-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 64px;
}
.tsv-event-page__inner { max-width: 960px; margin: 0 auto; }

/* 3-card comparison */
.tsv-event-teams-comparison {
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    gap: 20px;
    align-items: start;
}
.tsv-team-card {
    background: #fff;
    border: 1px solid var(--tsv-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    text-align: center;
}
.tsv-team-card__header {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; margin-bottom: 12px;
}
.tsv-team-card__logo {
    width: 64px; height: 64px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--tsv-border);
}
.tsv-team-card__logo-ph {
    width: 64px; height: 64px;
    border-radius: 50%; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; border: 2px solid var(--tsv-border);
}
.tsv-team-card__name { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 2px; }
.tsv-team-card__name a { color: var(--tsv-dark); text-decoration: none; }
.tsv-team-card__name a:hover { color: var(--tsv-primary); }
.tsv-team-card__role { font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em; color: var(--tsv-muted); font-weight: 600; }
.tsv-team-card__score-big {
    font-size: 3.5rem; font-weight: 900; line-height: 1;
    margin: 8px 0; color: var(--tsv-muted);
}
.tsv-team-card__score-big.is-win  { color: var(--tsv-primary); }
.tsv-team-card__score-big.is-loss { color: #ccc; }
.tsv-team-card__score-big.is-draw { color: #e8a000; }

/* Centre info card */
.tsv-event-info-card {
    background: #fff;
    border: 1px solid var(--tsv-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.tsv-event-info-card__title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--tsv-muted); margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tsv-primary);
    display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
    .tsv-event-hero__inner { padding: 24px 20px 28px; }
    .tsv-scoreboard { grid-template-columns: 1fr; text-align: center; }
    .tsv-scoreboard__team--home,
    .tsv-scoreboard__team--away { align-items: center; text-align: center; }
    .tsv-scoreboard__score-wrap { order: -1; }
    .tsv-event-teams-comparison { grid-template-columns: 1fr; }
    .tsv-event-page { padding: 24px 20px 48px; }
    .tsv-event-page__inner { max-width: 100%; }
}
