/* ============================================================
   TOURNAMENT PAGE — tournament.css
   ============================================================ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.trn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0 10px;
    font-size: 13px;
    color: #9ca3af;
}
.trn-breadcrumb a { color: #6b7280; text-decoration: none; }
.trn-breadcrumb a:hover { color: var(--color-green); }
.trn-breadcrumb svg { opacity: .5; flex-shrink: 0; }
.trn-breadcrumb span { color: #374151; font-weight: 500; }

/* ── Hero card ──────────────────────────────────────────────── */
/* SEO H1 — visually hidden, JS updates with real league name */
.trn-page-h1 {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.trn-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1d2e;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    gap: 16px;
}
.trn-hero__info { flex: 1; min-width: 0; }
.trn-hero__name {
    font-size: 26px;
    font-weight: 800;
    color: #f3f4f6;
    line-height: 1.2;
    margin-bottom: 8px;
}
.trn-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}
.trn-hero__meta-item { }
.trn-hero__meta-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.trn-hero__meta-value { font-size: 14px; font-weight: 600; color: #e5e7eb; }
.trn-hero__logo-wrap {
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trn-hero__logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* Skeleton loaders */
.trn-hero__skeleton {
    background: linear-gradient(90deg, #232636 25%, #2d3148 50%, #232636 75%);
    background-size: 200% 100%;
    animation: trn-shimmer 1.2s infinite;
    border-radius: 6px;
}
.trn-hero__skeleton--title  { height: 30px; width: 60%; margin-bottom: 12px; }
.trn-hero__skeleton--meta   { height: 18px; width: 80%; }
.trn-hero__skeleton--logo   { width: 80px; height: 80px; border-radius: 50%; }
@keyframes trn-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── League selector bar ────────────────────────────────────── */
.trn-league-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.trn-league-bar__item {
    padding: 6px 12px 6px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    background: #1f2937;
    border: 1px solid #374151;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trn-league-bar__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
}
.trn-league-bar__item:hover { background: #374151; color: #f9fafb; border-color: #6b7280; }
.trn-league-bar__item:hover .trn-league-bar__icon { opacity: 1; }
.trn-league-bar__item.active { background: var(--color-green); color: #fff; border-color: var(--color-green); }
.trn-league-bar__item.active .trn-league-bar__icon { opacity: 1; }

/* ── Tabs ───────────────────────────────────────────────────── */
.trn-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}
.trn-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    font-family: 'Inter', sans-serif;
}
.trn-tab:hover { color: #1a1a1a; }
.trn-tab.active { color: var(--color-green); border-bottom-color: var(--color-green); }

/* ── Content area ───────────────────────────────────────────── */
.trn-content { min-height: 300px; }

/* ── Sections (blocks instead of tabs) ── */
.trn-section { margin-bottom: 8px; }
.trn-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 20px 0 10px;
    border-bottom: 2px solid var(--color-green);
    margin: 0 0 14px;
    display: inline-block;
}

/* Spinner */
.trn-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}
.trn-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-green);
    border-radius: 50%;
    animation: trn-spin .8s linear infinite;
}
@keyframes trn-spin { to { transform: rotate(360deg); } }

/* ── STATS TAB ──────────────────────────────────────────────── */
.trn-stats-card {
    background: #1a1d2e;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.trn-stats-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 20px;
}

/* Main stats row: Matches played / Home Wins / Draws / Home Lost */
.trn-main-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}
.trn-main-stat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.trn-main-stat__league-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.trn-main-stat__label { font-size: 12px; color: #6b7280; margin-bottom: 2px; }
.trn-main-stat__value {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
}
.trn-main-stat__value span { font-weight: 400; color: #6b7280; font-size: 14px; margin-left: 4px; }
.trn-progress {
    height: 6px;
    background: #2d3148;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}
.trn-progress__bar {
    height: 100%;
    border-radius: 3px;
    transition: width .6s ease;
}
.trn-progress__bar--green { background: #e8192c; }
.trn-progress__bar--blue  { background: #e8192c; }
.trn-progress__bar--gray  { background: #9ca3af; }
.trn-progress__bar--red   { background: #ef4444; }

/* Stats grid: small metric boxes */
.trn-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 4px;
}
@media (max-width: 700px) { .trn-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.trn-stat-box {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}
.trn-stat-box__label { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.trn-stat-box__value { font-size: 20px; font-weight: 800; color: #f3f4f6; }

/* ── TABLE TAB ──────────────────────────────────────────────── */
.trn-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.trn-table-card table {
    width: 100%;
    border-collapse: collapse;
}
.trn-table-card thead th {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: center;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.trn-table-card thead th:nth-child(2) { text-align: left; }
.trn-table-card tbody tr { border-bottom: 1px solid #f3f4f6; transition: background .1s; }
.trn-table-card tbody tr:last-child { border-bottom: none; }
.trn-table-card tbody tr:hover { background: #fafafa; }
.trn-table-card td {
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
    color: #374151;
}
.trn-table-card td:nth-child(2) { text-align: left; }
.trn-table-pos { font-weight: 700; color: #9ca3af; width: 28px; }
.trn-table-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.trn-table-team img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.trn-table-team span { font-weight: 500; color: #1a1a1a; }
.trn-table-team--link { text-decoration: none; cursor: pointer; }
.trn-table-team--link:hover span { color: var(--color-green); text-decoration: underline; }
.trn-table-pts { font-weight: 800; color: #1a1a1a; }
.trn-table-card td.trn-table-pos--cl  { color: #2563eb; }  /* CL zone */
.trn-table-card td.trn-table-pos--el  { color: #f59e0b; }  /* EL zone */
.trn-table-card td.trn-table-pos--rel { color: #ef4444; }  /* Relegation */

.trn-zone-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 0 4px;
    font-size: 11px;
    color: #6b7280;
}
.trn-zone-legend__item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.trn-zone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.trn-zone-dot--cl  { background: #2563eb; }
.trn-zone-dot--el  { background: #f59e0b; }
.trn-zone-dot--rel { background: #ef4444; }

/* ── FORM TABLE ──────────────────────────────────────────────── */
.trn-form-table {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.trn-form-table__title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.trn-form-table__title span {
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}
.trn-form-table__header {
    display: grid;
    grid-template-columns: 28px 1fr 120px 36px;
    padding: 6px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.trn-ft-row {
    display: grid;
    grid-template-columns: 28px 1fr 120px 36px;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}
.trn-ft-row:last-child { border-bottom: none; }
.trn-ft-row:hover { background: #fafafa; }
.trn-ft-pos { font-size: 12px; font-weight: 600; color: #9ca3af; }
.trn-ft-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}
.trn-ft-team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.trn-ft-badges { display: flex; gap: 4px; }
.trn-form-badge {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trn-fb--w { background: rgba(34,197,94,.12); color: #16a34a; }
.trn-fb--d { background: rgba(0,0,0,.06);     color: #6b7280; }
.trn-fb--l { background: rgba(232,25,44,.10); color: #e8192c; }
.trn-ft-pts { font-size: 13px; font-weight: 800; color: #1a1a1a; text-align: right; }

/* ── FIXTURES TAB ───────────────────────────────────────────── */
.trn-fixtures-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.trn-fixtures-btn {
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all .15s;
}
.trn-fixtures-btn.active { background: var(--color-green); border-color: var(--color-green); color: #fff; }

.trn-matchday { margin-bottom: 20px; }
.trn-matchday__title {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}
.trn-match-list { display: flex; flex-direction: column; gap: 4px; }
.trn-match {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    gap: 12px;
    font-size: 13px;
}
.trn-match__date { color: #9ca3af; font-size: 11px; min-width: 78px; flex-shrink: 0; line-height: 1.4; }
.trn-match__teams { flex: 1; display: grid; grid-template-columns: 1fr 68px 1fr; align-items: center; gap: 8px; }
.trn-match__team { display: flex; align-items: center; gap: 7px; font-weight: 600; color: #1a1a1a; }
.trn-match__team img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.trn-match__team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trn-match__team--home { justify-content: flex-start; flex-direction: row-reverse; }
.trn-match__team--away { justify-content: flex-start; }
.trn-match__score {
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: #1a1a1a;
    flex-shrink: 0;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px 6px;
    letter-spacing: .5px;
}
.trn-match__score--upcoming { color: #9ca3af; font-size: 13px; font-weight: 500; background: transparent; }
.trn-match__stage { font-size: 11px; color: #9ca3af; min-width: 80px; text-align: right; flex-shrink: 0; }

/* ── SCORERS TAB ────────────────────────────────────────────── */
.trn-scorers-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.trn-scorers-head {
    display: grid;
    grid-template-columns: 32px 1fr 130px 80px 50px 50px 60px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.trn-scorer-row {
    display: grid;
    grid-template-columns: 32px 1fr 130px 80px 50px 50px 60px;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}
.trn-scorer-row:last-child { border-bottom: none; }
.trn-scorer-row:hover { background: #fafafa; }

.trn-scorer-pos { font-weight: 700; color: #9ca3af; font-size: 13px; }
.trn-scorer-pos--1 { color: #f59e0b; }
.trn-scorer-pos--2 { color: #94a3b8; }
.trn-scorer-pos--3 { color: #a16207; }

.trn-scorer-player { display: flex; align-items: center; gap: 8px; }
.trn-scorer-player--link { text-decoration: none; color: inherit; border-radius: 6px; transition: background .12s; }
.trn-scorer-player--link:hover { background: rgba(232,25,44,.06); }
.trn-scorer-player--link:hover .trn-scorer-name { color: #e8192c; }
.trn-scorer-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
}
.trn-scorer-name { font-weight: 600; font-size: 13px; color: #1a1a1a; }
.trn-scorer-name--link { text-decoration: none; color: #1a1a1a; }
.trn-scorer-name--link:hover { color: #e8192c; text-decoration: underline; }
.trn-scorer-nationality { font-size: 11px; color: #9ca3af; }

.trn-scorer-team { display: flex; align-items: center; gap: 6px; }
.trn-scorer-team--link { text-decoration: none; }
.trn-scorer-team--link:hover span { color: #374151; }
.trn-scorer-team img { width: 18px; height: 18px; object-fit: contain; }
.trn-scorer-team span { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trn-scorer-bar-wrap { display: flex; align-items: center; gap: 8px; }
.trn-scorer-bar {
    flex: 1;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}
.trn-scorer-bar__fill {
    height: 100%;
    border-radius: 3px;
    background: var(--color-green);
    transition: width .5s ease;
}
.trn-scorer-goals { font-weight: 800; font-size: 15px; color: #1a1a1a; text-align: right; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .trn-hero { padding: 16px; }
    .trn-hero__name { font-size: 20px; }
    .trn-hero__logo { width: 60px; height: 60px; }
    .trn-main-stats { grid-template-columns: 1fr 1fr; }
    .trn-scorers-head,
    .trn-scorer-row { grid-template-columns: 28px 1fr 50px 60px; }
    .trn-scorers-head :nth-child(3),
    .trn-scorers-head :nth-child(4),
    .trn-scorers-head :nth-child(6),
    .trn-scorer-row .trn-scorer-team,
    .trn-scorer-row .trn-scorer-bar-wrap,
    .trn-scorer-row .trn-scorer-pens { display: none; }
    .trn-match__stage { display: none; }
    .trn-match__teams { grid-template-columns: 1fr 62px 1fr; }
    .trn-table-card td:nth-child(4),
    .trn-table-card th:nth-child(4),
    .trn-table-card td:nth-child(5),
    .trn-table-card th:nth-child(5) { display: none; }
}

/* ── Live match indicator ── */
.trn-match--live { background: rgba(232,25,44,.04); }
.trn-match--live:hover { background: rgba(232,25,44,.08); }
.trn-match__score--live {
    color: #e8192c;
    background: rgba(232,25,44,.1);
}
.trn-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e8192c;
    margin-left: 5px;
    vertical-align: middle;
    animation: trn-pulse 1.4s ease-in-out infinite;
}
@keyframes trn-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}
@media (max-width: 640px) {
    .trn-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }
    .trn-tabs::-webkit-scrollbar { display: none; }
    .trn-tab { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 420px) {
    .trn-hero { padding: 14px; }
    .trn-hero__name { font-size: 17px; }
    .trn-hero__logo { width: 48px; height: 48px; }
    .trn-tabs { gap: 0; }
    .trn-tab { font-size: 12px; padding: 8px 10px; }
    .trn-main-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .trn-stat__val { font-size: 20px; }
    .trn-match__time { font-size: 10px; width: 44px; }
    .trn-match__teams { grid-template-columns: 1fr 56px 1fr; }
    .trn-match__team { font-size: 11px; }
    .trn-table-card td, .trn-table-card th { padding: 6px 6px; font-size: 11px; }
    .trn-scorers-head, .trn-scorer-row { grid-template-columns: 24px 1fr 40px 50px; }
}

/* ── TOP SCORERS (APIF) block ───────────────────────────────── */
.trn-topscorers {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.trn-topscorers h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 14px 16px 12px;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.trn-topscorers table {
    width: 100%;
    border-collapse: collapse;
}
.trn-topscorers thead tr {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.trn-topscorers thead th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: center;
}
.trn-topscorers thead th:nth-child(2),
.trn-topscorers thead th:nth-child(3) { text-align: left; }
.trn-topscorers tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}
.trn-topscorers tbody tr:last-child { border-bottom: none; }
.trn-topscorers tbody tr:hover { background: #fafafa; }

/* Rank cell */
.trn-ts-rank {
    width: 28px;
    padding: 10px 8px 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-align: center;
}
.topscorer-row:first-child .trn-ts-rank { color: #f59e0b; }
.topscorer-row:nth-child(2) .trn-ts-rank { color: #94a3b8; }
.topscorer-row:nth-child(3) .trn-ts-rank { color: #a16207; }

/* Player cell: photo + name */
.trn-ts-player {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.trn-ts-player img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}
.trn-ts-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}
.trn-ts-player span {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Team cell: logo + name */
.trn-ts-team {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.trn-ts-team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 3px;
    padding: 1px;
}
.trn-ts-team span {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Goals / Assists cells */
.trn-ts-goals,
.trn-ts-assists {
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
}
.trn-ts-assists {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
}

/* Responsive: hide team column and assists on narrow screens */
@media (max-width: 480px) {
    .trn-topscorers thead th:nth-child(3),
    .trn-ts-team { display: none; }
    .trn-ts-player { min-width: 0; }
}

/* ── Explore other leagues nav ───────────────────────────────── */
.trn-other-leagues { margin: 32px 0 16px; padding: 20px; background: var(--color-bg-card, #1a1a2e); border-radius: 12px; }
.trn-other-leagues__title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.trn-other-leagues .trn-league-bar { margin-bottom: 0; }

/* ── Sprint LEAGUES_NAV_REDESIGN — featured + All leagues overlay ── */
.trn-league-bar__more {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: #1f2937; color: #f9fafb;
    border: 1px solid #6b7280; border-radius: 10px;
    font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    font-family: inherit;
}
.trn-league-bar__more:hover,
.trn-league-bar__more:focus-visible { background: #374151; border-color: #9ca3af; outline: none; }
.trn-league-bar__more svg { opacity: .8; }

.trn-leagues-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 16px;
}
.trn-leagues-overlay[hidden] { display: none !important; }
.trn-leagues-overlay.is-open { display: flex; }

.trn-leagues-overlay__panel {
    background: #1a1a2e;
    color: #f9fafb;
    max-width: 720px; width: 100%;
    max-height: 85vh; overflow: auto;
    border-radius: 16px;
    padding: 24px 24px 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    border: 1px solid #2a2a3e;
}
.trn-leagues-overlay__title {
    font-size: 1.15rem; font-weight: 700;
    margin: 0 0 14px;
    padding-right: 40px;
}
.trn-leagues-overlay__close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px;
    background: transparent; color: #f9fafb;
    border: 1px solid #334155; border-radius: 8px;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.trn-leagues-overlay__close:hover,
.trn-leagues-overlay__close:focus-visible { background: #334155; outline: none; }
.trn-leagues-overlay__search {
    width: 100%;
    padding: 12px 14px;
    background: #0f172a; color: #f9fafb;
    border: 1px solid #334155; border-radius: 8px;
    margin-bottom: 16px;
    font-size: .95rem;
    font-family: inherit;
    box-sizing: border-box;
}
.trn-leagues-overlay__search:focus { outline: none; border-color: var(--color-green, #10b981); }
.trn-leagues-overlay__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.trn-leagues-overlay__item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    background: #1f2937; color: #f9fafb;
    border: 1px solid #374151; border-radius: 10px;
    font-size: .88rem; font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
    min-height: 44px; box-sizing: border-box;
}
.trn-leagues-overlay__item:hover,
.trn-leagues-overlay__item:focus-visible { background: #374151; border-color: #6b7280; outline: none; }
.trn-leagues-overlay__item.active { background: var(--color-green, #10b981); color: #fff; border-color: var(--color-green, #10b981); }
.trn-leagues-overlay__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trn-leagues-overlay__item .trn-league-bar__icon { width: 20px; height: 20px; flex-shrink: 0; }
.trn-leagues-overlay__empty {
    text-align: center; padding: 24px 12px;
    color: #94a3b8; font-size: .92rem;
}

@media (max-width: 480px) {
    .trn-leagues-overlay__panel { padding: 20px 16px 16px; max-height: 92vh; }
    .trn-leagues-overlay__grid { grid-template-columns: 1fr 1fr; }
}

/* ── GSC-FIX-2 AC-4: tournament -> predictions cross-link ── */
.trn-cta-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 20px;
}
.trn-cta-links__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-bg-elevated, rgba(255,255,255,.04));
    border: 1px solid var(--color-border, rgba(255,255,255,.08));
    border-radius: 8px;
    color: var(--color-text, #e2e8f0);
    text-decoration: none;
    font-size: .87rem;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.trn-cta-links__btn:hover,
.trn-cta-links__btn:focus-visible {
    background: rgba(232, 25, 44, .08);
    border-color: #e8192c;
    color: #e8192c;
    transform: translateY(-1px);
    outline: none;
}
.trn-cta-links__btn--primary {
    background: #e8192c;
    border-color: #e8192c;
    color: #fff;
}
.trn-cta-links__btn--primary:hover,
.trn-cta-links__btn--primary:focus-visible {
    background: #c0111f;
    border-color: #c0111f;
    color: #fff;
}
@media (max-width: 480px) {
    .trn-cta-links { gap: 8px; }
    .trn-cta-links__btn { padding: 9px 14px; font-size: .82rem; flex: 1; justify-content: center; }
}
