/* ==========================================================================
   FAGLeague — League Detail Page
   Design system: Plus Jakarta Sans · FAGLeague league detail
   ========================================================================== */

/* ── 1. Reset, variables, typography ───────────────────────────────────── */

:root {
    --red: #E11D2E;
    --red-dark: #B91C1C;
    --red-soft: #FEE2E2;
    --navy: #0F172A;
    --navy-soft: #1E293B;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --green: #16A34A;
    --green-dark: #15803D;
    --green-soft: #DCFCE7;
    --gold: #D97706;
    --gold-soft: #FEF3C7;
    --gold-border: #FDE68A;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 4px 6px rgba(15, 23, 42, .04), 0 20px 48px rgba(15, 23, 42, .12);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, .04);
    --max: 1200px;
    --sidebar: 340px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --header-h: 72px;
    --transition: .2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--navy);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
select,
input {
    font-family: inherit;
    cursor: pointer;
}

button {
    border: none;
    background: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    letter-spacing: -.02em;
}


/* ── 2. Topbar, header, logo, nav, buttons ─────────────────────────────── */

/* Topbar + site header layout: home.css (shared partials) */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(225, 29, 46, .3);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

/* Header / light surfaces */
.header .btn-ghost,
.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: none;
    backdrop-filter: none;
}

.header .btn-ghost:hover,
.btn-ghost:hover {
    color: var(--navy);
    background: var(--gray-100);
}

/* Ghost on dark / hero surfaces */
.league-hero .btn-ghost,
.btn-ghost-light {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
}

.league-hero .btn-ghost:hover,
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.btn-outline {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    color: var(--navy);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}


/* ── 3. League hero ────────────────────────────────────────────────────── */

.league-hero {
    position: relative;
    color: var(--white);
    background: var(--navy);
}

.league-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 248px;
}

.league-hero-panel {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--navy);
    padding: 28px clamp(20px, 3vw, 40px) 28px max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.league-hero-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--red);
    border-radius: 0 2px 2px 0;
}

.league-hero-panel-inner {
    width: 100%;
    max-width: 560px;
}

.league-hero-visual {
    position: relative;
    background-color: var(--navy-soft);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 248px;
}

.league-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, transparent 18%);
    pointer-events: none;
}

.league-hero-visual--cover {
    background-position: 72% center;
}

.league-hero-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.league-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.league-hero-titles {
    flex: 1;
    min-width: 0;
}

.league-hero h1 {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin-bottom: 0;
}

.league-hero-titles .league-subtitle {
    margin-top: 6px;
    margin-bottom: 0;
}

.league-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .62);
    line-height: 1.45;
}

.league-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.league-badge-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.league-badge-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.league-season-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.league-season-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 5px 12px;
    border-radius: 100px;
}

.badge-live {
    background: var(--green);
    color: #fff;
}

.badge-live .dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.badge-sport {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .14);
}

.badge-ended {
    background: rgba(34, 197, 94, .16);
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, .32);
}

.league-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.league-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
}

.league-meta-item svg {
    opacity: .65;
    flex-shrink: 0;
}

.league-meta-sep {
    color: rgba(255, 255, 255, .28);
    font-weight: 700;
}

.league-meta-link {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.league-meta-link:hover {
    color: #fff;
}

.season-select-hero {
    flex: 1;
    min-width: 0;
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .92);
    padding: 9px 36px 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='rgba(255,255,255,.65)' stroke-width='2'%3E%3Cpath d='M1.5 3.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    width: auto;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-select-hero option {
    color: var(--navy);
}

.season-select {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    min-width: 160px;
}

.season-select option {
    color: var(--navy);
}

.btn-ghost-light {
    color: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
}

.hero-btns {
    display: flex;
    gap: 10px;
}


/* legacy stat rail — removed */

.league-stat-rail,
.league-stat-rail .wrap,
.lsr-grid,
.lsr-item,
.lsr-val,
.lsr-lbl,
.quick-stats {
    display: none;
}

.qs-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.qs-card:hover {
    background: var(--white);
    border-color: var(--gray-100);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.qs-accent-gold {
    background: linear-gradient(135deg, #FFFBEB 0%, #FFF 100%);
    border-color: var(--gold-border);
}

.qs-accent-gold:hover {
    border-color: var(--gold);
}

.qs-accent-green {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFF 100%);
    border-color: #BBF7D0;
}

.qs-accent-green:hover {
    border-color: var(--green);
}

.qs-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    color: var(--gray-500);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.qs-icon svg {
    width: 18px;
    height: 18px;
}

.qs-accent-gold .qs-icon {
    color: var(--gold);
    border-color: var(--gold-border);
    background: #FFFBEB;
}

.qs-accent-green .qs-icon {
    color: var(--green);
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.qs-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qs-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.qs-accent-gold .qs-val {
    color: #B45309;
}

.qs-accent-green .qs-val {
    color: var(--green-dark);
}

.qs-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.2;
}


/* ── 5. Sticky subnav tabs ─────────────────────────────────────────────── */

.league-shell {
    display: flex;
    flex-direction: column;
}

.league-shell .league-hero {
    order: 1;
}

.league-shell .subnav-wrap {
    order: 2;
}

/* Keep page content / sponsors below hero+subnav when using flex order */
.league-shell > *:not(.subnav-wrap):not(.league-hero) {
    order: 3;
}

.subnav-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.subnav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0;
    align-items: stretch;
    width: 100%;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav a {
    display: inline-flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 10px 6px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-600);
    border-radius: 12px;
    white-space: normal;
    text-align: center;
    transition: color var(--transition), background var(--transition);
}

.subnav a .fa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    opacity: .72;
    flex-shrink: 0;
}

.subnav a:hover .fa,
.subnav a.active .fa {
    opacity: 1;
}

.subnav a:hover {
    color: var(--navy);
    background: var(--gray-100);
}

.subnav a.active {
    color: var(--red);
    background: var(--red-soft);
}

.subnav-txt {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: keep-all;
    hyphens: none;
}

.subnav-txt-sm {
    display: none;
}

.btn-embed-v2 {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 100px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-embed-v2:hover {
    background: #9f1819;
}

.btn-embed-v2 .fa {
    font-size: 13px;
}

.embed-modal-v2 {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.embed-modal-v2[hidden] {
    display: none !important;
}

.embed-modal-v2-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.embed-modal-v2-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.embed-modal-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.embed-modal-v2-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.embed-modal-v2-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--gray-500);
    cursor: pointer;
}

.embed-modal-v2-body {
    padding: 20px;
}

.embed-modal-v2-note {
    margin: 0 0 12px;
    color: var(--red);
    text-align: center;
    font-size: 14px;
}

.embed-modal-v2-code {
    width: 100%;
    min-height: 110px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    resize: vertical;
}

.embed-modal-v2-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.embed-modal-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.embed-modal-v2-btn-preview {
    background: #16a34a;
    color: #fff;
}

.embed-modal-v2-btn-copy {
    background: var(--red);
    color: #fff;
}

.embed-modal-v2-preview {
    overflow: auto;
    max-height: 420px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
}

body.embed-modal-v2-open {
    overflow: hidden;
}

.embed-league-v2-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.embed-league-v2-logo img {
    display: block;
    height: 32px;
    width: auto;
}

.embed-league-v2-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
}

.fl-v2-embed .page-body {
    padding-top: 20px;
}

.layout.layout-embed {
    grid-template-columns: 1fr;
}


/* ── 6. Teams strip — grouped by bảng, pill cards + logos ─────────────── */

.teams-strip {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 0 18px;
}

.teams-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.teams-strip-head-info {
    min-width: 0;
    flex: 1;
}

.teams-strip-head-compact {
    align-items: flex-end;
}

.teams-strip-head-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    min-width: 0;
}

.teams-strip-head-compact .teams-strip-title {
    margin: 0;
}

.teams-strip-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.teams-strip-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    line-height: 1.2;
}

.teams-strip-stat strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
}

.teams-strip-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
    letter-spacing: -.02em;
}

.teams-strip-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

.teams-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--red-soft);
    border: 1px solid rgba(225, 29, 46, .14);
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s;
}

.teams-strip-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    text-decoration: none;
}

.teams-groups {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.team-group {
    --group-color: var(--red);
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 10px 12px;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--group-color);
}

.team-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--navy);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.team-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--group-color);
}

.team-group-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.team-pill {
    display: grid;
    grid-template-columns: 18px 28px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: inherit;
    background: var(--gray-50);
    border: 1px solid transparent;
    transition: all .18s ease;
}

.team-pill:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    transform: translateX(2px);
}

.team-pill.top {
    background: linear-gradient(90deg, color-mix(in srgb, var(--group-color) 6%, transparent), var(--gray-50));
    border-color: color-mix(in srgb, var(--group-color) 18%, transparent);
}

.team-pill-rank {
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-400);
    text-align: center;
}

.team-pill.top .team-pill-rank {
    color: var(--group-color);
}

.team-pill-logo,
.team-avatar,
.match-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
    position: relative;
}

.match-badge {
    width: 28px;
    height: 28px;
    border-width: 1px;
}

.team-pill-logo img,
.team-avatar img,
.match-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-logo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.team-pill-logo:not(:has(img)),
.match-badge:not(:has(img)),
.sc-logo:not(:has(img)),
.team-pill-logo.fallback .team-logo-fallback,
.match-badge.fallback .team-logo-fallback,
.team-avatar.fallback .team-logo-fallback,
.sc-logo.fallback .team-logo-fallback {
    display: flex;
}

.team-pill-logo:not(:has(img)) img,
.match-badge:not(:has(img)) img,
.sc-logo:not(:has(img)) img,
.team-pill-logo.fallback img,
.match-badge.fallback img,
.sc-logo.fallback img {
    display: none;
}

.team-pill-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.team-pill-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-pill-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: .01em;
}

.team-pill-end {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.team-pill-qual {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    padding: 2px 5px;
    border-radius: 4px;
}

.team-pill-pts {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    min-width: 22px;
    text-align: center;
}

.team-pill.top .team-pill-pts {
    color: var(--group-color);
}

/* ── Giải vòng tròn — cuộn ngang compact ───────────────────────────────── */

.standings-zone-legend.inline {
    margin: 0;
    padding: 0;
    border: none;
}

.standings-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin: 0 -2px;
    padding-bottom: 2px;
}

.standings-scroll {
    display: flex;
    gap: 10px;
    min-width: min-content;
    padding: 2px 2px 6px;
}

/* Vòng tròn / ít đội: chip grid full-width */
.standings-scroll-wrap--fill {
    overflow: visible;
}

.standings-scroll--fill {
    display: grid;
    grid-template-columns: repeat(var(--team-cols, 10), minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    width: 100%;
    padding: 2px 0 4px;
}

.standings-scroll--fill .standings-chip {
    flex: unset;
    width: 100%;
    min-width: 0;
}

.standings-scroll--fill .sc-name {
    max-width: 100%;
    font-size: 10px;
}

@media (max-width: 768px) {
    .standings-scroll-wrap--fill {
        overflow-x: auto;
    }

    .standings-scroll--fill {
        display: flex;
        min-width: min-content;
        width: auto;
    }

    .standings-scroll--fill .standings-chip {
        flex: 0 0 72px;
        width: 72px;
    }
}

.standings-chip {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px 9px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    border-top: 4px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.standings-chip:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.standings-chip.zone-champ { border-top-color: var(--gold); }
.standings-chip.zone-playoff { border-top-color: var(--green); }
.standings-chip.zone-consolation { border-top-color: var(--gray-400); }

.sc-rank {
    font-size: 12px;
    font-weight: 800;
    color: var(--gray-400);
    line-height: 1;
}

.standings-chip.zone-champ .sc-rank { color: var(--gold); }
.standings-chip.zone-playoff .sc-rank { color: var(--green); }

.sc-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
    position: relative;
}

.sc-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-pts {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.sc-pts small {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
}

.standings-zone-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
}

.standings-zone-tag i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.standings-zone-tag.zone-champ i { background: var(--gold); }
.standings-zone-tag.zone-playoff i { background: var(--green); }
.standings-zone-tag.zone-consolation i { background: var(--gray-400); }

.team-pill.zone-champ {
    background: linear-gradient(90deg, rgba(217, 119, 6, .08), var(--gray-50));
    border-color: rgba(217, 119, 6, .18);
}

.team-pill.zone-champ .team-pill-rank,
.team-pill.zone-champ .team-pill-pts {
    color: var(--gold);
}

.team-pill.zone-playoff {
    background: linear-gradient(90deg, rgba(22, 163, 74, .06), var(--gray-50));
    border-color: rgba(22, 163, 74, .14);
}

.team-pill.zone-playoff .team-pill-rank,
.team-pill.zone-playoff .team-pill-pts {
    color: var(--green);
}

.team-pill.zone-consolation {
    opacity: .88;
}

.team-pill-qual.zone-champ {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: var(--gold-border);
}

.team-pill-qual.zone-playoff {
    color: var(--green);
    background: #DCFCE7;
    border-color: #BBF7D0;
}

.team-pill-qual.zone-consolation {
    color: var(--gray-500);
    background: var(--gray-100);
    border-color: var(--gray-200);
}

@media (max-width: 960px) {
    .teams-groups {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .teams-groups {
        grid-template-columns: 1fr;
    }

    .teams-strip-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid var(--gray-200);
        box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    }

    .teams-strip-stats {
        margin-bottom: 6px;
    }

    .teams-strip-stat {
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 8px 10px;
        background: var(--gray-50);
    }

    .teams-strip-stat strong {
        font-size: 16px;
    }

    .teams-strip-sub {
        font-size: 12px;
    }

    .teams-strip-link {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        border-radius: 12px;
    }

    .team-pill-meta {
        display: none;
    }
}

/* legacy team-chip (unused) */
.team-chip { display: none; }


/* ── 6b. Latest results — featured match cards ─────────────────────────── */

.latest-results {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-100);
    padding: 0 0 20px;
}

.latest-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.latest-results-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    letter-spacing: -.02em;
}

.lr-icon {
    font-size: 18px;
    line-height: 1;
}

.latest-results-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

.latest-results-link:hover {
    text-decoration: underline;
}

.featured-matches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.featured-match {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}

.featured-match:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
}

.featured-match.featured {
    border-color: rgba(217, 119, 6, .35);
    box-shadow: 0 4px 20px rgba(217, 119, 6, .15);
}

.fm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.fm-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .75);
}

.featured-match.featured .fm-label {
    color: var(--gold);
}

.fm-status {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4ADE80;
    background: rgba(74, 222, 128, .12);
    border: 1px solid rgba(74, 222, 128, .25);
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.fm-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 16px 14px;
}

.fm-side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fm-side.home {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.fm-side.away {
    flex-direction: row;
    justify-content: flex-start;
}

.fm-team {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.fm-team.home {
    text-align: right;
}

.fm-team.away {
    text-align: left;
}

.fm-team.win {
    color: var(--white);
    font-weight: 800;
}

.fm-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    position: relative;
}

.fm-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px;
}

.fm-score-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    background: rgba(74, 222, 128, .15);
    border: 1px solid rgba(74, 222, 128, .3);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: .04em;
    line-height: 1.2;
}

.fm-pen {
    font-size: 12px;
    font-weight: 800;
    color: #FB923C;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.fm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .15);
}

.fm-pitch {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-outcome {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-outcome.gold { color: #FBBF24; }
.fm-outcome.green { color: #4ADE80; }
.fm-outcome.teal { color: #2DD4BF; }

@media (max-width: 960px) {
    .featured-matches {
        grid-template-columns: 1fr;
    }

    .latest-results {
        padding-bottom: 16px;
    }

    .latest-results-head {
        margin-bottom: 12px;
    }

    .latest-results-title {
        font-size: 15px;
    }

    .featured-match {
        border-radius: 16px;
    }

    .fm-body {
        padding: 14px 12px;
        gap: 8px 10px;
    }

    .fm-side {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .fm-side.home,
    .fm-side.away {
        flex-direction: column;
    }

    .fm-team.home,
    .fm-team.away {
        text-align: center;
        font-size: 11px;
        max-width: 100%;
    }

    .fm-logo {
        width: 40px;
        height: 40px;
    }

    .fm-score {
        min-width: 64px;
    }

    .fm-score-val {
        font-size: 20px;
        padding: 6px 14px;
    }

    .fm-foot {
        padding: 9px 12px;
        gap: 10px;
    }

    .fm-pitch,
    .fm-outcome {
        font-size: 11px;
    }

    .fm-outcome {
        flex-shrink: 0;
    }
}

@media (max-width: 520px) {
    .latest-results-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .latest-results-title {
        font-size: 14px;
        line-height: 1.25;
        flex: 1;
        min-width: 0;
    }

    .latest-results-link {
        font-size: 12px;
        flex-shrink: 0;
    }

    .fm-head {
        padding: 9px 12px;
    }

    .fm-body {
        padding: 14px 10px;
    }

    .fm-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .fm-pitch {
        min-width: 0;
    }
}


/* ── 7. Sponsors row ───────────────────────────────────────────────────── */

.sponsors {
    padding: 20px 0 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.sponsors-footer {
    border-bottom: none;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    margin-top: auto;
}

.sponsors-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.sponsor-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sponsor-logos::-webkit-scrollbar {
    display: none;
}

.sponsor-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 96px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    opacity: .95;
    transition: opacity .2s, transform .2s;
}

.sponsor-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.sponsor-logo img {
    display: block;
    max-height: 44px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* ── 8. Page layout: main + sidebar ────────────────────────────────────── */

.page-body {
    padding: 32px 0 64px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar);
    gap: 24px;
    align-items: start;
}

.main-col {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}


/* ── 9. Panel cards with head/body ─────────────────────────────────────── */

.panel {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}

.panel-head h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
}

.panel-head .actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.panel-head a.link {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    transition: opacity var(--transition);
}

.panel-head a.link:hover {
    opacity: .8;
}

.round-select {
    padding: 7px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    transition: border-color var(--transition);
}

.round-select:hover,
.round-select:focus {
    border-color: var(--gray-400);
    outline: none;
}

.panel-body {
    padding: 0;
}


/* ── 10. Match hub — tile grid (FAGLeague original) ──────────────────── */

.match-hub {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.match-hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.match-hub-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

.match-hub-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: 12px;
}

.match-hub-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    border-radius: 9px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
}

.match-hub-tab:hover {
    color: var(--navy);
}

.match-hub-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.match-hub-round {
    min-width: 140px;
}

@media (max-width: 640px) {
    .match-hub-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        align-items: stretch;
    }

    .match-hub-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 4px;
        padding: 4px;
        border-radius: 14px;
        background: #EEF2F7;
    }

    .match-hub-tab {
        width: 100%;
        min-height: 40px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 11px;
        text-align: center;
    }

    .match-hub-tab.active {
        color: var(--red);
        background: #fff;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
    }

    .match-hub .round-select,
    .match-hub-round {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 10px 40px 10px 14px;
        border-radius: 12px;
        border: 1.5px solid var(--gray-200);
        font-size: 14px;
        font-weight: 700;
        appearance: none;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
    }

    .match-hub-title {
        font-size: 15px;
    }
}

.match-feed-pane {
    display: none;
}

.match-feed-pane.active {
    display: block;
}

.match-feed {
    padding: 4px 16px 16px;
}

.match-day {
    margin-bottom: 4px;
}

.match-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px 10px;
}

.match-day-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.01em;
}

.match-day-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
}

.match-feed-note {
    margin: 0 16px 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    text-align: center;
}

.match-feed-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.match-feed-empty p {
    margin: 0;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.match-tile {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.match-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
    border-color: var(--gray-200);
}

/* Palette đồng bộ teams strip — mọi bảng qua --group-color inline */
.match-tile--group .mt-top,
.match-tile--ko .mt-top {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--group-color) 9%, #fff) 0%,
        color-mix(in srgb, var(--group-color) 3%, #fff) 55%,
        #fff 100%
    );
    border-bottom: 1px solid color-mix(in srgb, var(--group-color) 14%, var(--gray-100));
}

.match-tile--group .mt-time,
.match-tile--ko .mt-time {
    color: var(--group-color);
    background: color-mix(in srgb, var(--group-color) 10%, #fff);
    border-color: color-mix(in srgb, var(--group-color) 30%, var(--gray-100));
}

.match-tile--group .mt-group {
    color: var(--group-color);
    background: color-mix(in srgb, var(--group-color) 11%, #fff);
    border-color: color-mix(in srgb, var(--group-color) 22%, transparent);
}

.mt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-50);
    min-width: 0;
}

.mt-top-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.mt-group {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--group-color);
    background: color-mix(in srgb, var(--group-color) 11%, #fff);
    border: 1px solid color-mix(in srgb, var(--group-color) 22%, transparent);
    border-radius: 6px;
    line-height: 1;
}

.mt-group--ko {
    min-width: 24px;
    font-size: 9px;
    letter-spacing: .04em;
}

.mt-datetime {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
}

.mt-date {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}

.mt-time {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    background: color-mix(in srgb, var(--red) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--red) 28%, var(--gray-100));
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2;
    letter-spacing: .02em;
}

.mt-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.mt-faceoff {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    min-height: 88px;
}

.mt-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1 1 0;
    min-width: 0;
    padding: 2px 4px;
    text-align: center;
}

.mt-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 2px;
}

.mt-team {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.mt-side.win .mt-team {
    color: var(--navy);
    font-weight: 800;
}

.mt-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
    flex-shrink: 0;
    position: relative;
}

.mt-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-logo:not(:has(img)) .team-logo-fallback,
.mt-logo.fallback .team-logo-fallback {
    display: flex;
}

.mt-logo:not(:has(img)) img,
.mt-logo.fallback img {
    display: none;
}

.mt-vs {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--gray-400);
    padding: 5px 9px;
    border: 1px dashed var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
}

.mt-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 72px;
}

.mt-score-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 20px;
    font-weight: 900;
    color: #B91C1C;
    background: linear-gradient(180deg, #fff 0%, #FEF2F2 100%);
    border: 2px solid color-mix(in srgb, #B91C1C 25%, var(--gray-200));
    padding: 6px 12px;
    border-radius: 10px;
    letter-spacing: .02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(185, 28, 28, .12);
}

.mt-score-num,
.mt-score-num.win {
    min-width: 1ch;
    text-align: center;
    color: #B91C1C;
    font-weight: 900;
}

.mt-score-sep {
    color: #B91C1C;
    opacity: .45;
    margin: 0 2px;
    font-weight: 700;
    font-size: 16px;
}

.mt-pen {
    font-size: 12px;
    font-weight: 800;
    color: #EA580C;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.mt-sets,
.fm-sets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 168px;
    margin-top: 2px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.mt-set,
.fm-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 24px;
    padding: 3px 5px;
    border-radius: 6px;
    background: #fff;
    border: 1.5px solid #FECACA;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(185, 28, 28, .1);
}

.mt-set-home,
.fm-set-home {
    color: #B91C1C;
    font-weight: 500;
}

.mt-set-away,
.fm-set-away {
    color: #475569;
    font-weight: 500;
}

.fm-sets {
    max-width: 180px;
}

.fm-set {
    background: rgba(15, 23, 42, .35);
    border-color: rgba(251, 146, 60, .45);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.fm-set-home {
    color: #FDBA74;
}

.fm-set-away {
    color: rgba(255, 255, 255, .72);
}

.mt-foot {
    padding: 6px 12px 8px;
    border-top: 1px solid var(--gray-50);
}

.mt-pitch {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .match-grid {
        grid-template-columns: 1fr;
    }

    .match-feed {
        padding: 4px 12px 12px;
    }
}

@media (max-width: 520px) {
    .mt-faceoff {
        gap: 3px;
        padding: 12px 8px;
    }

    .mt-team {
        font-size: 12px;
    }

    .mt-logo {
        width: 24px;
        height: 24px;
    }
}

.match-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 56px;
}

.meta-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--red-soft);
    color: var(--red);
    white-space: nowrap;
}

.meta-chip.muted {
    background: var(--gray-100);
    color: var(--gray-500);
}

.match-hub-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.match-expand-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 99px;
    cursor: pointer;
    transition: all .2s;
}

.match-expand-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.match-hub-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

.match-hub-link:hover {
    text-decoration: underline;
}

.match-hub-full .match-feed {
    max-height: none;
}

@media (max-width: 720px) {
    .match-hub-footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* legacy hidden tables */
.tbl-matches,
.match-table-wrap,
.match-table,
.match-card {
    display: none;
}

.match-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.match-tag.live-tag {
    background: var(--green-soft);
    color: var(--green-dark);
}

.match-pitch {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    margin-top: 4px;
}


/* ── 11. Stats section — pro dashboard ─────────────────────────────────── */

.stats-pro {
    overflow: hidden;
}

.stats-pro-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.stats-pro-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    letter-spacing: -.02em;
}

.stats-pro-select {
    flex-shrink: 0;
}

.stats-pro-body {
    padding: 18px 20px 20px;
}

.stats-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.stats-kpi {
    flex: 1 1 calc(14.28% - 8px);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

.stats-kpi:hover {
    border-color: var(--gray-200);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.stats-kpi.accent-gold {
    background: linear-gradient(135deg, #FFFBEB, var(--gray-50));
    border-color: var(--gold-border);
}

.stats-kpi.accent-green {
    background: linear-gradient(135deg, #F0FDF4, var(--gray-50));
    border-color: #BBF7D0;
}

.stats-kpi.accent-red {
    background: linear-gradient(135deg, #FEF2F2, var(--gray-50));
    border-color: #FECACA;
}

.stats-kpi-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    color: var(--gray-500);
}

.stats-kpi-icon svg {
    width: 16px;
    height: 16px;
}

.stats-kpi.accent-gold .stats-kpi-icon { color: var(--gold); border-color: var(--gold-border); }
.stats-kpi.accent-green .stats-kpi-icon { color: var(--green); border-color: #BBF7D0; }
.stats-kpi.accent-red .stats-kpi-icon { color: var(--red); border-color: #FECACA; }

.stats-kpi-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stats-kpi-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.stats-kpi.accent-gold .stats-kpi-val { color: var(--gold); }
.stats-kpi.accent-green .stats-kpi-val { color: var(--green); }
.stats-kpi.accent-red .stats-kpi-val { color: var(--red); }

.stats-kpi-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.2;
}

.stats-kpi-lbl em {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    color: var(--green);
    margin-top: 1px;
}

.stats-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

.stats-outcomes {
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
}

.stats-outcomes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stats-outcomes-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.stats-outcomes-total {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
}

.stats-bar-stack {
    display: flex;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--gray-200);
    margin-bottom: 10px;
}

.stats-bar-seg {
    height: 100%;
    transition: width .3s ease;
}

.stats-bar-seg.win { background: var(--green); }
.stats-bar-seg.draw { background: var(--gray-400); }

.stats-outcomes-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
}

.stats-outcomes-legend span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.stats-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stats-dot.win { background: var(--green); }
.stats-dot.draw { background: var(--gray-400); }

.stats-outcomes-legend.legend-sets .stats-dot.set-20 { background: #0D9488; }
.stats-outcomes-legend.legend-sets .stats-dot.set-21 { background: #6366F1; }

.stats-bar-stack .stats-bar-seg.set-20 { background: #0D9488; }
.stats-bar-stack .stats-bar-seg.set-21 { background: #6366F1; }

.stats-kpi-row--set .stats-kpi {
    flex: 1 1 calc(20% - 8px);
    min-width: 88px;
    justify-content: center;
}

.stats-kpi-row--set .stats-kpi-body {
    align-items: center;
    text-align: center;
    width: 100%;
}

.stats-pro-set .stats-kpi-icon {
    display: none;
}

.stats-record-teal {
    border-left: 3px solid #0D9488;
    background: linear-gradient(90deg, #F0FDFA 0%, var(--white) 40%);
}

.stats-record-teal .stats-record-tag { color: #0D9488; }
.stats-record-teal .stats-record-val { color: #0D9488; }

.stats-records-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-record {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    background: var(--white);
}

.stats-record-gold {
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, #FFFBEB 0%, var(--white) 40%);
}

.stats-record-red {
    border-left: 3px solid var(--red);
    background: linear-gradient(90deg, #FEF2F2 0%, var(--white) 40%);
}

.stats-record-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.stats-record-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-400);
}

.stats-record-gold .stats-record-tag { color: var(--gold); }
.stats-record-red .stats-record-tag { color: var(--red); }

.stats-record-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    white-space: nowrap;
}

.stats-record-gold .stats-record-val { color: var(--gold); }
.stats-record-red .stats-record-val { color: var(--red); }

.stats-record-val small {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    margin-left: 2px;
}

.stats-record-match {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.stats-record-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    margin-top: 4px;
}

.stats-extra-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.stats-extra-item {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    background: var(--gray-50);
    border-radius: var(--radius-xs);
    border: 1px solid var(--gray-100);
}

.stats-extra-val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.stats-extra-lbl {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .stats-kpi {
        flex: 1 1 calc(33.33% - 8px);
    }

    .stats-pro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .stats-kpi {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .stats-extra-row {
        flex-direction: column;
    }
}

/* legacy stats (tab compat) */
.stats-section {
    padding: 0;
}

.stats-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}

.stats-section-title h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.stats-section-title .round-select {
    flex-shrink: 0;
}

.stats-section-body {
    padding: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-card);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.stat-card .stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-card .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.3;
}

/* stat-card variants */
.stat-card.highlight {
    background: var(--gold-soft);
    border-color: var(--gold-border);
}

.stat-card.highlight .stat-icon {
    background: var(--white);
    border-color: var(--gold-border);
    color: var(--gold);
}

.stat-card.highlight .stat-num {
    color: var(--gold);
}

.stat-card.danger {
    background: var(--red-soft);
    border-color: #FECACA;
}

.stat-card.danger .stat-icon {
    background: var(--white);
    border-color: #FECACA;
    color: var(--red);
}

.stat-card.danger .stat-num {
    color: var(--red);
}

/* highlight box — "Trận nhiều bàn thắng nhất" */
.stat-highlight-box {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.stat-highlight-box .shb-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.stat-highlight-box .shb-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-highlight-box .shb-teams {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.stat-highlight-box .shb-score {
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -.02em;
}

.stat-highlight-box .shb-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 6px;
}

/* two-column stat rows — win/draw/loss, hattrick/double */
.stat-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.stat-row-2col .stat-mini {
    padding: 16px 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
}

.stat-row-2col .stat-mini .sm-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.stat-row-2col .stat-mini .sm-values {
    display: flex;
    gap: 16px;
}

.stat-row-2col .stat-mini .sm-item {
    flex: 1;
    text-align: center;
}

.stat-row-2col .stat-mini .sm-item .sm-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.stat-row-2col .stat-mini .sm-item .sm-val.win { color: var(--green); }
.stat-row-2col .stat-mini .sm-item .sm-val.draw { color: var(--gray-500); }
.stat-row-2col .stat-mini .sm-item .sm-val.loss { color: var(--red); }

.stat-row-2col .stat-mini .sm-item .sm-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    margin-top: 2px;
}

/* progress bar — bàn/trận visualization */
.progress-bar-wrap {
    margin-top: 20px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.progress-bar-label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.progress-bar-label strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
}

.progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--red);
    border-radius: 100px;
    transition: width .4s ease;
}

.progress-bar-fill.green { background: var(--green); }
.progress-bar-fill.gold { background: var(--gold); }


/* ── 12. Standings table ───────────────────────────────────────────────── */

.standings-table-pro {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.standings-table th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
}

.standings-table th.st-col-rank,
.standings-table th.st-col-team {
    text-align: left;
}

.standings-table th.st-col-rank {
    padding-left: 18px;
    width: 44px;
}

.standings-table th.st-col-team {
    padding-left: 8px;
}

.standings-table th.st-col-form {
    padding-right: 16px;
}

.standings-table td {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    border-bottom: 1px solid var(--gray-50);
    font-variant-numeric: tabular-nums;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover td {
    background: var(--gray-50);
}

.standings-table-full .st-row.qual-1 td {
    background: var(--green-soft);
}

.standings-table-full .st-row.qual-2 td {
    background: rgba(220, 252, 231, .45);
}

.standings-table-full .st-row.qual-1:hover td {
    background: #CBF5D8;
}

.standings-table-full .st-row.qual-2:hover td {
    background: rgba(220, 252, 231, .72);
}

.standings-table .st-col-rank {
    text-align: left;
    padding-left: 18px;
    width: 44px;
}

.standings-table .st-col-team {
    text-align: left;
    padding-left: 8px;
    min-width: 160px;
}

.standings-table .st-col-form {
    padding-right: 16px;
}

.standings-table .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: var(--gray-100);
    color: var(--gray-600);
}

.standings-table-full .st-row.qual-1 .rank {
    background: var(--green-soft);
    color: var(--green-dark);
}

.standings-table .st-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.standings-table .st-team-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-table-full .st-team-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.st-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--gray-100);
    flex-shrink: 0;
    position: relative;
}

.st-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-logo:not(:has(img)) .team-logo-fallback,
.st-logo.fallback .team-logo-fallback {
    display: flex;
}

.st-logo:not(:has(img)) img,
.st-logo.fallback img {
    display: none;
}

.standings-table .st-gd {
    font-weight: 700;
    color: var(--gray-600);
}

.standings-table .st-cards {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.standings-table .st-cards .st-rc {
    color: var(--red);
}

.standings-table-set {
    min-width: 920px;
}

.standings-table-set thead tr:first-child th {
    border-bottom: none;
    padding-bottom: 4px;
}

.standings-table-set thead tr:last-child th {
    padding-top: 4px;
    font-size: 9px;
}

.standings-table-set .st-pts-lead {
    color: var(--red);
    font-weight: 800;
}

.standings-table-full.standings-table-set .st-row.qual-1 .st-pts-lead,
.standings-table-full.standings-table-set .st-row.qual-2 .st-pts-lead {
    color: var(--red);
}

.standings-table-set-compact .st-gd {
    font-weight: 700;
}

.standings-table-fiba-compact .st-wl {
    font-weight: 700;
    white-space: nowrap;
}

.standings-table-full.standings-table-fiba th {
    white-space: nowrap;
}

.standings-table .pts {
    font-weight: 800;
    color: var(--navy);
    font-size: 14px;
}

.standings-table-full .st-row.qual-1 .pts {
    color: var(--green-dark);
}

.form-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
}

.form-w {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid #BBF7D0;
}

.form-d {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.form-l {
    background: var(--red-soft);
    color: var(--red-dark);
    border: 1px solid #FECACA;
}

.form-empty {
    color: var(--gray-400);
    font-size: 12px;
}

/* Sidebar compact standings — light theme */
.sidebar .panel-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar .standings-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.sidebar .standings-table-sidebar {
    min-width: 0;
}

.sidebar .standings-table th,
.sidebar .standings-table td {
    padding: 10px 6px;
    font-size: 11px;
}

.sidebar .standings-table .st-col-rank {
    width: 28px;
    padding-left: 12px;
}

.sidebar .standings-table .st-col-team {
    min-width: 0;
    width: auto;
}

.sidebar .standings-table th:nth-child(3),
.sidebar .standings-table th:nth-child(4),
.sidebar .standings-table th:nth-child(5),
.sidebar .standings-table td:nth-child(3),
.sidebar .standings-table td:nth-child(4),
.sidebar .standings-table td:nth-child(5) {
    width: 36px;
    padding-left: 4px;
    padding-right: 4px;
}

.sidebar .standings-table .st-logo {
    width: 24px;
    height: 24px;
}

.sidebar .standings-table .st-team-name {
    font-size: 11px;
    text-transform: none;
}

.sidebar .standings-table .st-row.qual-1 td {
    background: var(--green-soft);
}

.sidebar .standings-table .st-row.qual-2 td {
    background: rgba(220, 252, 231, .45);
}

.sidebar .standings-table .st-row.qual-1:hover td,
.sidebar .standings-table .st-row.qual-2:hover td {
    filter: brightness(.97);
}


/* ── 12b. Card stats by round ─────────────────────────────────────────── */

.cards-empty {
    padding: 28px 20px 32px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
}

.cards-stats-panel {
    margin-bottom: 20px;
    overflow: hidden;
}

.cards-stats-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.cards-stats-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
    letter-spacing: -.02em;
}

.cards-stats-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0;
}

.cards-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cards-sum-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    border: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.cards-sum-pill strong {
    font-weight: 800;
    color: var(--navy);
}

.cards-sum-y {
    background: linear-gradient(135deg, #FFFBEB, #FFF);
    border-color: var(--gold-border);
}

.cards-sum-r {
    background: linear-gradient(135deg, #FEF2F2, #FFF);
    border-color: #FECACA;
}

.cards-sum-pill .card-icon {
    width: 10px;
    height: 14px;
    flex-shrink: 0;
}

.cards-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cards-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
}

.cards-table thead th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray-500);
    padding: 10px 8px;
    text-align: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
}

.cards-table .cards-col-player {
    text-align: left;
    padding-left: 16px;
    min-width: 200px;
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--gray-50);
    box-shadow: 1px 0 0 var(--gray-100);
}

.cards-table tbody .cards-col-player {
    background: var(--white);
}

.cards-table .cards-col-num {
    width: 48px;
    position: sticky;
    left: 200px;
    z-index: 2;
    background: inherit;
    box-shadow: 1px 0 0 var(--gray-100);
}

.cards-table thead .cards-col-num {
    background: var(--gray-50);
    left: 200px;
    z-index: 3;
}

.cards-round-group {
    font-size: 10px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: .04em;
    border-left: 1px solid var(--gray-100);
}

.cards-round-total {
    background: var(--gray-100);
    color: var(--navy);
}

.cards-type-y,
.cards-total-y {
    color: #B45309;
    border-left: 1px solid var(--gray-100);
}

.cards-type-r,
.cards-total-r {
    color: var(--red-dark);
}

.cards-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--gray-50);
    vertical-align: middle;
}

.cards-table tbody tr:hover td {
    background: #FAFBFC;
}

.cards-table tbody tr:hover .cards-col-player,
.cards-table tbody tr:hover .cards-col-num {
    background: #FAFBFC;
}

.cards-row-hot .cards-col-player {
    box-shadow: inset 3px 0 0 var(--gold);
}

.cards-row.has-red .cards-col-player {
    box-shadow: inset 3px 0 0 var(--red);
}

.cards-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cards-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.cards-player-meta {
    min-width: 0;
    text-align: left;
}

.cards-player-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cards-player-team {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cards-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
}

.card-cell-empty {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(241, 245, 249, .5) 4px,
        rgba(241, 245, 249, .5) 8px
    );
}

.card-empty {
    color: var(--gray-200);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.card-cell-active {
    padding: 6px 4px;
}

.card-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

.card-chip .card-icon {
    width: 8px;
    height: 11px;
    flex-shrink: 0;
}

.card-chip-y {
    background: linear-gradient(180deg, #FEF9C3 0%, #FDE047 100%);
    color: #854D0E;
    border: 1px solid #FACC15;
    box-shadow: 0 1px 3px rgba(202, 138, 4, .15);
}

.card-chip-r {
    background: linear-gradient(180deg, #FECACA 0%, #F87171 100%);
    color: #7F1D1D;
    border: 1px solid #EF4444;
    box-shadow: 0 1px 3px rgba(185, 28, 28, .15);
}

.card-chip-ri {
    background: linear-gradient(180deg, #FEF9C3 0%, #FDE047 50%, #FECACA 50%, #F87171 100%);
    color: #7F1D1D;
    border: 1px solid #CA8A04;
    box-shadow: 0 1px 3px rgba(185, 28, 28, .12);
}

.card-chip-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.card-icon-split {
    overflow: visible;
}

.card-legend-ri {
    background: linear-gradient(180deg, #FACC15 0%, #FACC15 50%, #EF4444 50%, #EF4444 100%);
    border: 1px solid #CA8A04;
}

.cards-col-total {
    font-size: 14px;
    font-weight: 800;
    background: var(--gray-50);
    border-left: 1px solid var(--gray-100);
}

.cards-total-y {
    color: #B45309;
}

.cards-total-r {
    color: var(--red-dark);
}

.cards-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--gray-100);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
}

.cards-legend span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-legend-dot {
    width: 10px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

.card-legend-y {
    background: #FACC15;
    border: 1px solid #CA8A04;
}

.card-legend-r {
    background: #EF4444;
    border: 1px solid #B91C1C;
}

.cards-legend-note {
    margin-left: auto;
    color: var(--gray-400);
    font-weight: 500;
}

@media (max-width: 720px) {
    .cards-stats-head {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-summary {
        width: 100%;
    }

    .cards-sum-pill {
        flex: 1;
        justify-content: center;
    }

    .cards-legend-note {
        margin-left: 0;
        width: 100%;
    }

    .cards-table .cards-col-num {
        left: 160px;
    }

    .cards-table .cards-col-player {
        min-width: 160px;
    }
}


/* ── 13. Top scorers podium + list ─────────────────────────────────────── */

.scorers-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 100px;
}

.podium-place .podium-avatar,
.scorer-avatar {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-place .podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    margin-bottom: 8px;
}

.scorer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
}

.podium-avatar img,
.scorer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scorer-avatar-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.podium-avatar .scorer-avatar-fallback {
    font-size: 16px;
}

.podium-place.first .podium-avatar .scorer-avatar-fallback {
    font-size: 18px;
}

.scorer-avatar:not(:has(img)),
.podium-avatar:not(:has(img)),
.scorer-avatar.fallback .scorer-avatar-fallback,
.podium-avatar.fallback .scorer-avatar-fallback {
    display: flex;
}

.scorer-avatar:not(:has(img)) img,
.podium-avatar:not(:has(img)) img,
.scorer-avatar.fallback img,
.podium-avatar.fallback img {
    display: none;
}

.scorer-list.compact .scorer-avatar {
    width: 36px;
    height: 36px;
}

.scorer-list.compact .scorer-avatar-fallback {
    font-size: 11px;
}

.podium-place .podium-rank {
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.podium-place .podium-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podium-place .podium-team {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 6px;
}

.podium-place .podium-goals {
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
}

.scorers-panel-set .podium-place.first .podium-goals,
.scorers-panel-set .scorer-points {
    color: #2563EB;
}

.scorers-panel-set .podium-place.second .podium-goals,
.scorers-panel-set .podium-place.third .podium-goals {
    color: var(--red);
}

.scorers-empty {
    margin: 0;
    padding: 16px 0 8px;
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

.podium-place .podium-bar {
    width: 100%;
    margin-top: 10px;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    background: var(--gray-100);
}

/* 2nd place — left, medium height */
.podium-place.second {
    order: 1;
}

.podium-place.second .podium-bar {
    height: 56px;
    background: var(--gray-200);
}

.podium-place.second .podium-rank {
    color: var(--gray-500);
}

/* 1st place — center, tallest */
.podium-place.first {
    order: 2;
    max-width: 110px;
}

.podium-place.first .podium-avatar {
    width: 56px;
    height: 56px;
    border-color: var(--gold-border);
    background: var(--gold-soft);
}

.podium-place.first .podium-rank {
    color: var(--gold);
}

.podium-place.first .podium-bar {
    height: 80px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-bottom: none;
}

/* 3rd place — right, shortest */
.podium-place.third {
    order: 3;
}

.podium-place.third .podium-bar {
    height: 40px;
    background: #FED7AA;
}

.podium-place.third .podium-rank {
    color: #C2410C;
}

/* list below podium */
.scorer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-50);
}

.scorer-row:last-child {
    border-bottom: none;
}

.scorer-rank {
    width: 24px;
    font-size: 13px;
    font-weight: 800;
    color: var(--gray-400);
    text-align: center;
}

.scorer-rank.gold {
    color: var(--gold);
}

.scorer-info {
    flex: 1;
    min-width: 0;
}

.scorer-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.scorer-team {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
}

.scorer-goals {
    font-size: 16px;
    font-weight: 800;
    color: var(--red);
}


/* ── 14. All 4 group standings in tabs ─────────────────────────────────── */

.group-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 22px 0;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
    scrollbar-width: none;
}

.group-tabs::-webkit-scrollbar {
    display: none;
}

.group-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    margin-bottom: -1px;
}

.group-tab:hover {
    color: var(--navy);
    background: var(--gray-50);
}

.group-tab.active {
    color: var(--red);
    background: var(--white);
    border-color: var(--gray-200);
    border-bottom-color: var(--white);
}

.group-standings-panel .panel-body {
    padding-top: 0;
}


/* ── 15. Knockout bracket visual ───────────────────────────────────────── */

.bracket-preview {
    padding: 24px;
    text-align: center;
}

.bracket-preview p {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.bracket-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bracket-node {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xs);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.bracket-node.final {
    background: var(--gold-soft);
    border-color: var(--gold-border);
    color: var(--gold);
    padding: 10px 18px;
    font-size: 13px;
}

.bracket-arrow {
    display: flex;
    align-items: center;
    color: var(--gray-400);
    font-weight: 800;
    font-size: 14px;
}

/* full tree layout */
.bracket-tree {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    overflow-x: auto;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 24px;
    min-width: 140px;
}

.bracket-round-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 8px;
}

.bracket-match {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xs);
    overflow: hidden;
    min-width: 180px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bracket-match:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.bracket-match.final-match {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-card);
}

.bracket-match--pending {
    opacity: .92;
}

.bracket-match-code {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 6px 12px 0;
}

.bracket-match-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    padding: 0 12px 8px;
    text-align: right;
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-100);
}

.bracket-team:last-child {
    border-bottom: none;
}

.bt-side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bt-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .06);
}

.bt-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-team.winner {
    background: var(--white);
    font-weight: 800;
}

.bracket-team .bt-score {
    font-weight: 800;
    color: var(--gray-500);
}

.bracket-team.winner .bt-score {
    color: var(--navy);
}

.bracket-connector {
    display: flex;
    align-items: center;
    color: var(--gray-300, #CBD5E1);
    font-size: 18px;
    flex-shrink: 0;
}


/* ── 16. League info grid (2 columns key-value) ────────────────────────── */

.info-list {
    padding: 4px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--gray-50);
    font-size: 13px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-grid .info-row {
    flex-direction: column;
    gap: 4px;
    border-bottom: none;
    border-right: 1px solid var(--gray-50);
    padding: 14px 20px;
}

.info-grid .info-row:nth-child(2n) {
    border-right: none;
}

.info-grid .info-row:nth-last-child(-n+2) {
    border-top: 1px solid var(--gray-50);
}

.info-row .k {
    font-weight: 600;
    color: var(--gray-500);
    flex-shrink: 0;
}

.info-row .v {
    font-weight: 700;
    color: var(--navy);
    text-align: right;
}

.info-grid .info-row .v {
    text-align: left;
}


/* ── 17. News, fanpage placeholder, map placeholder ──────────────────── */

.news-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-50);
    transition: background .15s;
    cursor: pointer;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: var(--gray-50);
}

.news-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    flex-shrink: 0;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content time {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
}

.fanpage-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    padding: 24px;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-200);
    border-radius: var(--radius-sm);
    margin: 16px 20px 20px;
    text-align: center;
}

.fanpage-placeholder .fp-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1877F2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.fanpage-placeholder p {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    max-width: 220px;
    line-height: 1.4;
}

.fanpage-placeholder a {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

.map-placeholder {
    position: relative;
    min-height: 200px;
    margin: 0 20px 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            var(--gray-200) 19px,
            var(--gray-200) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            var(--gray-200) 19px,
            var(--gray-200) 20px
        );
    opacity: .5;
}

.map-placeholder .map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 36px;
    height: 36px;
    background: var(--red);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -60%) rotate(-45deg);
    box-shadow: 0 4px 12px rgba(225, 29, 46, .35);
}

.map-placeholder .map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-placeholder .map-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    line-height: 1.45;
}

.map-placeholder .map-label strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2px;
}

.sidebar-empty-note {
    padding: 16px 20px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    line-height: 1.45;
}


/* ── 18. Tab panels ────────────────────────────────────────────────────── */

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}


/* ── 19. Footer (legacy simple bar — footer-v2 styles in home.css) ─────── */


/* ── 20. Responsive breakpoints ────────────────────────────────────────── */

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

    /* Main site nav: mobile panel styles come from home.css */

    .league-hero-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    }

    .subnav-wrap {
        top: 64px; /* matches .hm-bar height */
    }

    .league-shell .subnav-wrap {
        order: 1;
    }

    .league-shell .league-hero {
        order: 2;
    }

    .league-shell > *:not(.subnav-wrap):not(.league-hero) {
        order: 3;
    }

    .subnav {
        gap: 4px;
        padding: 8px 0 10px;
    }

    .subnav a {
        flex: 0 0 auto;
        min-width: 76px;
        height: auto;
        min-height: 56px;
        padding: 8px 10px 6px;
        font-size: 11px;
        white-space: normal;
    }

    .subnav a .fa {
        width: 20px;
        height: 20px;
        font-size: 16px;
        opacity: .8;
    }

    .subnav-txt-lg {
        display: none;
    }

    .subnav-txt-sm {
        display: block;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bracket-tree {
        justify-content: flex-start;
        padding: 20px 16px;
    }

    .scorers-podium {
        padding: 20px 16px 12px;
    }
}

@media (max-width: 860px) {
    .league-hero-split {
        grid-template-columns: 1fr;
    }

    .league-hero-panel {
        padding: 0 0 20px;
        order: 2;
        align-items: stretch;
    }

    .league-hero-panel::before {
        display: none;
    }

    .league-hero-panel-inner {
        max-width: none;
        padding: 0 20px;
    }

    .league-hero-visual {
        order: 1;
        min-height: 200px;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .league-hero-visual::before {
        background: linear-gradient(to bottom, transparent 40%, rgba(11, 18, 32, .55) 72%, var(--navy) 100%);
    }

    .league-badge-row {
        margin-top: -18px;
        margin-bottom: 16px;
        position: relative;
        z-index: 1;
    }

    .league-hero-head {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 14px;
    }

    .league-hero h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .league-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        row-gap: 8px;
    }

    .league-meta-sep {
        display: none;
    }

    .league-meta-item,
    .league-meta-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .1);
        font-size: 12px;
    }

    .league-season-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 14px;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, .1);
        background: rgba(255, 255, 255, .05);
    }

    .season-select-hero {
        width: 100%;
        max-width: none;
        padding: 11px 40px 11px 14px;
        font-size: 14px;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, .22);
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 16px;
    }

    .league-hero-panel-inner {
        padding: 0 16px;
    }

    .league-hero-visual {
        aspect-ratio: 4 / 3;
        min-height: 180px;
    }

    .league-hero-head {
        align-items: flex-start;
    }

    .league-hero-logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        padding: 5px;
    }

    .league-hero h1 {
        font-size: 18px;
    }

    .league-badge-group {
        gap: 6px;
    }

    .badge {
        font-size: 9px;
        padding: 5px 10px;
    }

    .subnav {
        gap: 2px;
        margin: 0 -16px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .subnav a {
        min-width: 72px;
        height: auto;
        min-height: 54px;
        padding: 7px 8px 5px;
        font-size: 10px;
    }

    .subnav a .fa {
        width: 18px;
        height: 18px;
        font-size: 15px;
    }

    .qs-icon {
        width: 36px;
        height: 36px;
    }

    .qs-val {
        font-size: 20px;
    }

    .match-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 16px;
    }

    .match-datetime {
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .match-meta-right {
        text-align: left;
        min-width: 0;
    }

    .match-teams-row {
        flex-direction: column;
        gap: 8px;
    }

    .match-team-name.right {
        flex-direction: row;
        text-align: left;
    }

    .panel-head {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card .stat-num {
        font-size: 24px;
    }

    .stat-row-2col {
        grid-template-columns: 1fr;
    }

    .stats-section-body {
        padding: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid .info-row {
        border-right: none;
        border-bottom: 1px solid var(--gray-50);
    }

    .info-grid .info-row:nth-last-child(-n+2) {
        border-top: none;
    }

    .scorers-podium {
        gap: 8px;
        padding: 16px 12px 12px;
    }

    .podium-place {
        max-width: 80px;
    }

    .podium-place.first {
        max-width: 90px;
    }

    .podium-place.first .podium-bar {
        height: 64px;
    }

    .podium-place.second .podium-bar {
        height: 48px;
    }

    .podium-place.third .podium-bar {
        height: 32px;
    }

    .bracket-mini {
        flex-direction: column;
    }

    .bracket-arrow {
        transform: rotate(90deg);
    }

    .group-tabs {
        padding: 10px 16px 0;
    }
}


/* ── 21. Preview ribbon ────────────────────────────────────────────────── */

.preview-ribbon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.stat-highlight-box.gold {
    background: var(--gold-soft);
    border-color: var(--gold-border);
}

.stat-highlight-box.red {
    background: var(--red-soft);
    border-color: #FECACA;
}

.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 14px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon.blue { color: #2563EB; border-color: #BFDBFE; background: #EFF6FF; }
.stat-icon.gold { color: var(--gold); border-color: var(--gold-border); background: var(--gold-soft); }
.stat-icon.green { color: var(--green); border-color: #BBF7D0; background: var(--green-soft); }
.stat-icon.red { color: var(--red); border-color: #FECACA; background: var(--red-soft); }
.stat-icon.purple { color: #7C3AED; border-color: #DDD6FE; background: #F5F3FF; }

.hero-btns { display: flex; gap: 10px; }

.teams-page-panel {
    overflow: hidden;
}

.teams-page-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}

.teams-page-head h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
}

.teams-page-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0;
}

.teams-group-section {
    padding: 20px 22px 8px;
    border-bottom: 1px solid var(--gray-100);
}

.teams-group-section:last-child {
    border-bottom: none;
    padding-bottom: 22px;
}

.teams-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.teams-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--group-color);
    background: color-mix(in srgb, var(--group-color) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--group-color) 25%, transparent);
    padding: 6px 12px;
    border-radius: 99px;
}

.teams-group-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--group-color);
}

.teams-group-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
}

.teams-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.team-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 14px 14px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.team-card-v2:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tc-accent) 35%, var(--gray-200));
    box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
}

.team-card-v2:hover .tc-action {
    color: var(--red);
}

.team-card-v2:hover .tc-action svg {
    transform: translateX(3px);
}

.tc-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-accent), color-mix(in srgb, var(--tc-accent) 40%, #fff));
}

.tc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-bottom: 12px;
}

.tc-group {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tc-accent);
}

.tc-qual {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid #BBF7D0;
    padding: 3px 7px;
    border-radius: 99px;
    white-space: nowrap;
}

.tc-qual-1 {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: var(--gold-border);
}

.tc-logo-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--white), var(--gray-50));
    border: 2px solid var(--gray-100);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
    margin-bottom: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.team-card-v2:hover .tc-logo-ring {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    border-color: color-mix(in srgb, var(--tc-accent) 30%, var(--gray-100));
}

.tc-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tc-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-logo:not(:has(img)) .team-logo-fallback,
.tc-logo.fallback .team-logo-fallback {
    display: flex;
}

.tc-logo:not(:has(img)) img,
.tc-logo.fallback img {
    display: none;
}

.tc-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    line-height: 1.35;
    margin: 0 0 12px;
    letter-spacing: .01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.tc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--gray-50);
    border-bottom: 1px solid var(--gray-50);
    margin-bottom: 10px;
}

.tc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tc-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.tc-stat-pts .tc-stat-val {
    color: var(--tc-accent);
}

.tc-stat-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-400);
}

.tc-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    min-height: 22px;
}

.tc-form-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
}

.tc-form-dot.form-w {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid #BBF7D0;
}

.tc-form-dot.form-d {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.tc-form-dot.form-l {
    background: var(--red-soft);
    color: var(--red-dark);
    border: 1px solid #FECACA;
}

.tc-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    transition: color .15s ease;
}

.tc-action svg {
    transition: transform .15s ease;
}

@media (max-width: 1024px) {
    .teams-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .teams-grid-v2 {
        grid-template-columns: 1fr;
    }

    .teams-group-section {
        padding: 16px;
    }
}

.see-detail-link {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    border-top: 1px solid var(--gray-100);
}

.see-detail-link:hover { background: var(--gray-50); }

.media-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
}

.media-partners span {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    padding: 8px 14px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
}

.media-partners .media-partner-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    padding: 8px 14px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.media-partners .media-partner-tag:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.media-partners-logos {
    align-items: center;
}

.media-partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    min-height: 52px;
}

.media-partner-logo img {
    display: block;
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sidebar-fanpage {
    padding: 0 12px 16px;
    overflow: hidden;
}

.sidebar-fanpage .fb-page,
.sidebar-fanpage .fb-page span,
.sidebar-fanpage .fb-page iframe {
    width: 100% !important;
}

.sidebar-map {
    padding: 0 12px 16px;
}

.sidebar-map-canvas {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.bracket-col { display: flex; flex-direction: column; gap: 8px; }
.bracket-arrow { color: var(--gray-400); font-weight: 800; font-size: 18px; display: flex; align-items: center; }
.bracket-node.muted { opacity: .55; font-weight: 600; }
.bracket-node.final { background: var(--gold-soft); border-color: var(--gold-border); color: var(--gold); font-weight: 800; }

.news-icon {
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; background: var(--red-soft);
}

@media (max-width: 640px) {
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}


/* ── 17. Home tab — full layout like fagleague.vn ─────────────────────── */

.home-stats-panel {
    margin-bottom: 20px;
}

.home-stats-panel.stats-pro .stats-pro-head {
    padding: 16px 20px;
}

.home-stats-panel.stats-pro .stats-pro-body {
    padding: 18px 20px 20px;
}

.info-grid-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 8px 22px 22px;
}

.info-grid-icons .info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-grid-icons .info-item:nth-child(odd) {
    padding-right: 20px;
    border-right: 1px solid var(--gray-100);
}

.info-grid-icons .info-item:nth-last-child(-n+2):not(.full) {
    border-bottom: none;
}

.info-grid-icons .info-item.full {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
    padding-top: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
}

.info-grid-icons .info-key {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.info-grid-icons .info-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}

.knockout-bracket {
    padding: 8px 0 24px;
}

.page-body-knockout {
    padding: 32px 0 48px;
}

.panel-bracket {
    margin-bottom: 0;
    overflow: visible !important;
}

.panel-head-bracket {
    align-items: flex-start;
}

.panel-head-bracket h2 {
    margin-bottom: 4px;
}

.panel-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0;
}

.link-back {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

.link-back:hover {
    text-decoration: underline;
}

.knockout-bracket-page {
    padding: 8px 12px 24px;
    overflow: visible;
}

.league-hero-compact .league-hero-split {
    min-height: 200px;
}

.league-hero-compact .league-hero-panel {
    padding-top: 20px;
    padding-bottom: 20px;
}

.league-hero-compact .league-hero-visual {
    min-height: 200px;
}

.knockout-empty {
    text-align: center;
    padding: 48px 24px 56px;
}

.knockout-empty-icon {
    display: inline-block;
    font-size: 36px;
    margin-bottom: 12px;
}

.knockout-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.knockout-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .page-body-knockout {
        padding: 20px 0 36px;
    }

    .panel-head-bracket {
        flex-direction: column;
        gap: 10px;
    }

    .knockout-bracket-page {
        padding: 8px 8px 16px;
    }
}

#tab-home .panel {
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .stat-highlights-row {
        grid-template-columns: 1fr;
    }

    .info-grid-icons {
        grid-template-columns: 1fr;
    }

    .info-grid-icons .info-item:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }
}

/* Integration — live PHP v2 */
.fl-v2-league .teams-strip-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-v2-league .team-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}
.fl-v2-league .team-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.fl-v2-league .empty-feed { padding: 32px 16px; text-align: center; color: var(--gray-500); font-size: 14px; }
.fl-v2-league .scorer-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--gray-100); }
.fl-v2-league .scorer-item.compact { padding: 8px 16px; }
.fl-v2-league .scorer-rank { font-weight: 800; color: var(--gray-400); min-width: 20px; }
.fl-v2-league .scorer-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.fl-v2-league .scorer-info span { color: var(--gray-500); font-size: 12px; }
.fl-v2-league .scorer-goals { font-weight: 700; color: var(--red); font-size: 13px; white-space: nowrap; }
.fl-v2-league .match-grid-compact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .fl-v2-league .match-grid-compact { grid-template-columns: 1fr; } }

/* ── Player banned (v2) ─────────────────────────────────────────────────── */
.fl-v2-player-banned .player-banned-page {
    padding: 24px 0 40px;
}

.fl-v2-player-banned .player-banned-panel {
    overflow: hidden;
}

.fl-v2-player-banned .player-banned-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fl-v2-player-banned .player-banned-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-player-banned .player-banned-sub {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
}

.fl-v2-player-banned .player-banned-back {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
}

.fl-v2-player-banned .player-banned-back:hover {
    text-decoration: underline;
}

.fl-v2-player-banned .player-banned-round-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fl-v2-player-banned .player-banned-round-tabs::-webkit-scrollbar {
    display: none;
}

.fl-v2-player-banned .player-banned-round-tab {
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.fl-v2-player-banned .player-banned-round-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.fl-v2-player-banned .player-banned-round-pane {
    display: none;
    padding: 0 20px 20px;
}

.fl-v2-player-banned .player-banned-round-pane.active {
    display: block;
}

.fl-v2-player-banned .player-banned-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fl-v2-player-banned .player-banned-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, #FFF 0%, #FFF7F7 100%);
}

.fl-v2-player-banned .player-banned-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(220, 38, 38, .15);
}

.fl-v2-player-banned .player-banned-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-v2-player-banned .player-banned-card-avatar span {
    font-size: 24px;
    font-weight: 800;
    color: var(--red);
}

.fl-v2-player-banned .player-banned-card-body {
    min-width: 0;
}

.fl-v2-player-banned .player-banned-card-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    line-height: 1.25;
}

.fl-v2-player-banned .player-banned-card-team {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

.fl-v2-player-banned .player-banned-card-reason,
.fl-v2-player-banned .player-banned-card-round {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--gray-600);
}

.fl-v2-player-banned .player-banned-card-reason {
    color: #B91C1C;
    font-weight: 600;
}

.fl-v2-player-banned .player-banned-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--gray-500);
}

.fl-v2-player-banned .player-banned-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #059669;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.fl-v2-player-banned .player-banned-empty p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .fl-v2-player-banned .player-banned-grid {
        grid-template-columns: 1fr;
    }

    .fl-v2-player-banned .player-banned-head {
        flex-direction: column;
    }
}

/* ── Prizes (v2) ─────────────────────────────────────────────────────────── */
.fl-v2-prizes .prizes-page {
    padding: 24px 0 48px;
}

.fl-v2-prizes .prizes-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(251, 191, 36, .18) 0%, transparent 55%),
        linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: none;
    color: #fff;
}

.fl-v2-prizes .prizes-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 24px 20px;
}

.fl-v2-prizes .prizes-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, .15);
    border: 1px solid rgba(251, 191, 36, .35);
    color: #FCD34D;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 10px;
}

.fl-v2-prizes .prizes-hero-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.fl-v2-prizes .prizes-hero-sub {
    margin: 0;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .72);
}

.fl-v2-prizes .prizes-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fl-v2-prizes .prizes-stat {
    min-width: 96px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

.fl-v2-prizes .prizes-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #FCD34D;
}

.fl-v2-prizes .prizes-stat span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fl-v2-prizes .prizes-back-link {
    display: inline-flex;
    margin: 0 24px 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.fl-v2-prizes .prizes-back-link:hover {
    color: #FCD34D;
}

.fl-v2-prizes .prizes-section {
    margin-bottom: 24px;
}

.fl-v2-prizes .prizes-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.fl-v2-prizes .prizes-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fl-v2-prizes .prizes-section-icon--team {
    background: #FEF3C7;
    color: #B45309;
}

.fl-v2-prizes .prizes-section-icon--player {
    background: #DBEAFE;
    color: #1D4ED8;
}

.fl-v2-prizes .prizes-section-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-prizes .prizes-section-head p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
}

.fl-v2-prizes .prizes-grid {
    display: grid;
    gap: 16px;
}

.fl-v2-prizes .prizes-grid--team {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.fl-v2-prizes .prizes-grid--team-extra {
    margin-top: 28px;
}

.fl-v2-prizes .prizes-grid--player {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Podium stage styles live in prizes-podium.css */

.fl-v2-prizes .prize-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px 18px;
    border-radius: 18px;
    border: 1px solid var(--gray-100);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fl-v2-prizes .prize-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .1);
}

.fl-v2-prizes .prize-card-glow {
    position: absolute;
    inset: 0 0 auto;
    height: 96px;
    background: linear-gradient(180deg, rgba(251, 191, 36, .14) 0%, transparent 100%);
    pointer-events: none;
}

.fl-v2-prizes .prize-card-glow--blue {
    background: linear-gradient(180deg, rgba(59, 130, 246, .12) 0%, transparent 100%);
}

.fl-v2-prizes .prize-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, .35);
}

.fl-v2-prizes .prize-card-badge--blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.fl-v2-prizes .prize-card-media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    text-decoration: none;
}

.fl-v2-prizes .prize-card-media img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    background: #fff;
}

.fl-v2-prizes .prize-card-media--player img {
    width: 120px;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
}

.fl-v2-prizes .prize-card-fallback {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    font-size: 24px;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.fl-v2-prizes .prize-card-fallback--player {
    width: 120px;
    height: 160px;
    border-radius: 14px;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E40AF;
    font-size: 40px;
}

.fl-v2-prizes .prize-card-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.fl-v2-prizes .prize-card-body {
    position: relative;
    z-index: 1;
    width: 100%;
}

.fl-v2-prizes .prize-card-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.fl-v2-prizes .prize-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy);
}

.fl-v2-prizes .prize-card-player {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--red);
}

.fl-v2-prizes .prize-card-winner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.fl-v2-prizes .prize-card-winner:hover {
    background: #FEF2F2;
    border-color: rgba(220, 38, 38, .2);
    color: var(--red);
}

.fl-v2-prizes .prize-card-winner--team {
    font-size: 13px;
    padding: 10px 14px;
}

.fl-v2-prizes .prizes-empty-panel {
    padding: 0;
}

.fl-v2-prizes .prizes-empty {
    padding: 56px 24px;
    text-align: center;
}

.fl-v2-prizes .prizes-empty-icon {
    display: inline-block;
    font-size: 40px;
    margin-bottom: 12px;
}

.fl-v2-prizes .prizes-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-prizes .prizes-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .fl-v2-prizes .prizes-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fl-v2-prizes .prizes-hero-stats {
        width: 100%;
    }

    .fl-v2-prizes .prizes-stat {
        flex: 1;
        min-width: 0;
    }

    .fl-v2-prizes .prizes-grid--team,
    .fl-v2-prizes .prizes-grid--player {
        grid-template-columns: 1fr;
    }
}

/* ── Register open / team-register list (V2) ─────────────────────────── */

.badge-register {
    background: #15803D;
    color: #fff;
}

.badge-register .dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.fl-v2-register .register-open-page {
    padding-top: 8px;
}

.fl-v2-register .register-open-panel {
    max-width: 980px;
    margin: 0 auto 24px;
    padding: 36px 36px 40px;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius, 16px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.fl-v2-register .register-open-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    gap: 28px 36px;
    align-items: center;
}

.fl-v2-register .register-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ECFDF5;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.fl-v2-register .register-open-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse 1.5s infinite;
}

.fl-v2-register .register-open-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.8vw, 34px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.fl-v2-register .register-open-copy {
    margin: 0 0 24px;
    max-width: 540px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--gray-600);
}

.fl-v2-register .register-open-copy strong {
    color: var(--navy);
}

.fl-v2-register .register-countdown {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-100);
}

.fl-v2-register .register-countdown-item {
    min-width: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.fl-v2-register .register-countdown-item strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fl-v2-register .register-countdown-item span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
}

.fl-v2-register .register-open-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 20px;
    margin-bottom: 26px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.fl-v2-register .register-open-meta i {
    margin-right: 4px;
    color: var(--gray-400);
}

.fl-v2-register .register-open-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.fl-v2-register .register-open-actions .btn-lg {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 800;
}

.fl-v2-register .register-open-actions .btn-outline {
    border-color: var(--red);
    color: var(--red);
}

.fl-v2-register .register-open-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-v2-register .register-open-visual img {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    padding: 18px;
}

.fl-v2-register .team-register-panel {
    overflow: hidden;
}

.fl-v2-register .team-register-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fl-v2-register .team-register-sub {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.fl-v2-register .team-register-empty {
    padding: 48px 20px;
    text-align: center;
}

.fl-v2-register .team-register-empty p {
    margin: 0 0 16px;
    color: var(--gray-500);
    font-weight: 600;
}

.fl-v2-register .team-register-table-wrap {
    overflow-x: auto;
}

.fl-v2-register .team-register-table {
    width: 100%;
    border-collapse: collapse;
}

.fl-v2-register .team-register-table th,
.fl-v2-register .team-register-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    vertical-align: middle;
}

.fl-v2-register .team-register-table th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-400);
    background: var(--gray-50);
}

.fl-v2-register .team-register-table .col-idx {
    width: 48px;
    font-weight: 800;
    color: var(--gray-400);
}

.fl-v2-register .team-register-table .col-team {
    font-weight: 700;
    color: var(--navy);
}

.fl-v2-register .team-register-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fl-v2-register .team-register-table .col-team img,
.fl-v2-register .team-register-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-100);
}

.fl-v2-register .team-register-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--gray-500);
}

.fl-v2-register .hs-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.fl-v2-register .hs-pending {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FDBA74;
}

.fl-v2-register .hs-ok {
    background: #ECFDF5;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.fl-v2-register .hs-reject {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

@media (max-width: 860px) {
    .fl-v2-register .register-open-hero {
        grid-template-columns: 1fr;
    }

    .fl-v2-register .register-open-visual {
        order: -1;
    }

    .fl-v2-register .register-open-visual img {
        width: min(100%, 200px);
    }
}

@media (max-width: 640px) {
    .fl-v2-register .register-open-panel {
        padding: 28px 16px 32px;
    }

    .fl-v2-register .register-countdown {
        gap: 12px;
    }

    .fl-v2-register .register-countdown-item strong {
        font-size: 24px;
    }

    .fl-v2-register .register-open-actions .btn-lg {
        width: 100%;
        justify-content: center;
    }
}


/* ── News detail V2 ─────────────────────────────────────────────────────── */

.fl-v2-news-detail .news-detail-page {
    padding-top: 8px;
    padding-bottom: 48px;
}

.fl-v2-news-detail .news-detail-layout {
    align-items: start;
}

.fl-v2-news-detail .news-article {
    min-width: 0;
}

.fl-v2-news-detail .news-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
}

.fl-v2-news-detail .news-crumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.fl-v2-news-detail .news-crumb a:hover {
    color: var(--red);
}

.fl-v2-news-detail .news-article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.fl-v2-news-detail .news-article-header h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.035em;
    line-height: 1.2;
}

.fl-v2-news-detail .news-article-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
}

.fl-v2-news-detail .news-article-lead {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--gray-600);
}

.fl-v2-news-detail .news-article-body {
    font-size: 16.5px;
    line-height: 1.75;
    color: #1E293B;
}

.fl-v2-news-detail .news-article-body > *:first-child {
    margin-top: 0;
}

.fl-v2-news-detail .news-article-body h1,
.fl-v2-news-detail .news-article-body h2,
.fl-v2-news-detail .news-article-body h3,
.fl-v2-news-detail .news-article-body h4 {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 1.5em 0 .55em;
    line-height: 1.3;
}

.fl-v2-news-detail .news-article-body h1 { font-size: 1.3em; }
.fl-v2-news-detail .news-article-body h2 { font-size: 1.18em; }
.fl-v2-news-detail .news-article-body h3 { font-size: 1.08em; }

.fl-v2-news-detail .news-article-body p {
    margin: 0 0 1em;
}

.fl-v2-news-detail .news-article-body img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    margin: 16px auto;
    border-radius: 4px;
    object-fit: contain;
}

.fl-v2-news-detail .news-article-body figure {
    margin: 18px 0;
}

.fl-v2-news-detail .news-article-body figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
}

.fl-v2-news-detail .news-article-body ul,
.fl-v2-news-detail .news-article-body ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
}

.fl-v2-news-detail .news-article-body li {
    margin-bottom: .35em;
}

.fl-v2-news-detail .news-article-body a {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fl-v2-news-detail .news-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.fl-v2-news-detail .news-article-body table th,
.fl-v2-news-detail .news-article-body table td {
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.fl-v2-news-detail .news-article-body table th {
    font-weight: 800;
    color: var(--gray-500);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fl-v2-news-detail .news-article-body blockquote {
    margin: 16px 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--red);
    color: var(--gray-600);
}

.fl-v2-news-detail .news-article-foot {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-100);
}

.fl-v2-news-detail .news-article-back {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-500);
    text-decoration: none;
}

.fl-v2-news-detail .news-article-back:hover {
    color: var(--red);
}

.fl-v2-news-detail .news-detail-cta-text {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

@media (max-width: 900px) {
    .fl-v2-news-detail .news-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ── News list page ─────────────────────────────────────────────────── */

.fl-v2-news-list .news-list-page {
    padding: 24px 0 48px;
}

.fl-v2-news-list .news-list-panel {
    overflow: hidden;
}

.fl-v2-news-list .news-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fl-v2-news-list .news-list-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-news-list .news-list-sub {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--gray-500);
}

.fl-v2-news-list .news-list-back {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.fl-v2-news-list .news-list-back:hover {
    text-decoration: underline;
}

.fl-v2-news-list .news-list-body {
    padding: 0;
}

.fl-v2-news-list .news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.fl-v2-news-list .news-list-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--gray-50);
    border-right: 1px solid var(--gray-50);
    background: #fff;
    transition: background .15s, box-shadow .15s;
}

.fl-v2-news-list .news-list-card:hover {
    background: var(--gray-50);
    box-shadow: inset 0 0 0 1px rgba(184, 30, 32, .08);
}

.fl-v2-news-list .news-list-card-thumb {
    aspect-ratio: 16 / 10;
    background: var(--gray-100);
    overflow: hidden;
}

.fl-v2-news-list .news-list-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-v2-news-list .news-list-card-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.fl-v2-news-list .news-list-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fl-v2-news-list .news-list-card-body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-v2-news-list .news-list-card-body time {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
}

.fl-v2-news-list .news-list-card-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-v2-news-list .news-list-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--gray-500);
}

.fl-v2-news-list .news-list-empty-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
}

.fl-v2-news-list .panel-head-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 768px) {
    .fl-v2-news-list .news-list-grid {
        grid-template-columns: 1fr;
    }

    .fl-v2-news-list .news-list-card {
        border-right: none;
    }
}

/* ── Voted list page ────────────────────────────────────────────────── */

.fl-v2-voted-list .voted-list-page,
.fl-v2-voted-detail .voted-detail-page {
    padding: 24px 0 48px;
}

.fl-v2-voted-list .voted-list-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 24px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #334155 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    position: relative;
    overflow: hidden;
}

.fl-v2-voted-list .voted-list-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 30, 32, .35) 0%, transparent 70%);
    pointer-events: none;
}

.fl-v2-voted-list .voted-list-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.fl-v2-voted-list .voted-list-hero-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
}

.fl-v2-voted-list .voted-list-eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
}

.fl-v2-voted-list .voted-list-hero h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.fl-v2-voted-list .voted-list-sub {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
    max-width: 520px;
}

.fl-v2-voted-list .voted-list-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: background .15s, border-color .15s;
}

.fl-v2-voted-list .voted-list-back:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .35);
    text-decoration: none;
}

.fl-v2-voted-list .voted-list-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.fl-v2-voted-list .voted-list-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 16px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.fl-v2-voted-list .voted-list-stat strong {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.fl-v2-voted-list .voted-list-stat span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
}

.fl-v2-voted-list .voted-list-stat--active strong { color: #0b8c4c; }
.fl-v2-voted-list .voted-list-stat--upcoming strong { color: var(--gold); }
.fl-v2-voted-list .voted-list-stat--ended strong { color: var(--gray-500); }

.fl-v2-voted-list .voted-list-panel {
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.fl-v2-voted-list .voted-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
}

.fl-v2-voted-list .voted-list-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.fl-v2-voted-list .voted-list-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-200);
}

.fl-v2-voted-list .voted-list-card--active::before {
    background: linear-gradient(90deg, #0b8c4c, #34d399);
}

.fl-v2-voted-list .voted-list-card--upcoming::before {
    background: linear-gradient(90deg, var(--gold), #fbbf24);
}

.fl-v2-voted-list .voted-list-card--ended::before {
    background: linear-gradient(90deg, var(--gray-400), var(--gray-200);
}

.fl-v2-voted-list .voted-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    border-color: rgba(184, 30, 32, .15);
}

.fl-v2-voted-list .voted-list-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fl-v2-voted-list .voted-list-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(184, 30, 32, .08);
    color: var(--red);
}

.fl-v2-voted-list .voted-list-card--active .voted-list-card-icon {
    background: rgba(11, 140, 76, .1);
    color: #0b8c4c;
}

.fl-v2-voted-list .voted-list-card--upcoming .voted-list-card-icon {
    background: var(--gold-soft);
    color: var(--gold);
}

.fl-v2-voted-list .voted-list-card--ended .voted-list-card-icon {
    background: var(--gray-100);
    color: var(--gray-500);
}

.fl-v2-voted-list .voted-list-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fl-v2-voted-list .voted-list-card--active .voted-list-card-badge {
    background: rgba(11, 140, 76, .12);
    color: #0b8c4c;
}

.fl-v2-voted-list .voted-list-card--upcoming .voted-list-card-badge {
    background: var(--gold-soft);
    color: #b45309;
}

.fl-v2-voted-list .voted-list-card--ended .voted-list-card-badge {
    background: var(--gray-100);
    color: var(--gray-500);
}

.fl-v2-voted-list .voted-list-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy);
}

.fl-v2-voted-list .voted-list-card-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fl-v2-voted-list .voted-list-card-dates span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
}

.fl-v2-voted-list .voted-list-card-dates svg {
    flex-shrink: 0;
    opacity: .7;
}

.fl-v2-voted-list .voted-list-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-50);
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    transition: gap .15s ease;
}

.fl-v2-voted-list .voted-list-card:hover .voted-list-card-cta {
    gap: 10px;
}

.fl-v2-voted-list .voted-list-empty {
    padding: 56px 24px;
    text-align: center;
}

.fl-v2-voted-list .voted-list-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: var(--gray-50);
    color: var(--gray-400);
}

.fl-v2-voted-list .voted-list-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-voted-list .voted-list-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}

.fl-v2-voted-detail .voted-detail-layout {
    overflow: hidden;
}

.fl-v2-voted-detail .voted-article-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-voted-detail .voted-article-back {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.fl-v2-voted-detail .voted-article-back:hover {
    text-decoration: underline;
}

/* ── Voted detail page ──────────────────────────────────────────────── */

.fl-v2-voted-detail .voted-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.fl-v2-voted-detail .voted-crumb a {
    color: var(--brand);
    font-weight: 600;
}

.fl-v2-voted-detail .voted-article-body {
    margin: 16px 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
}

.fl-v2-voted-detail .voted-article-foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-50);
}

.fl-v2-voted-detail .voted-poll-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 24px;
}

.fl-v2-voted-detail .voted-poll-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-50);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.fl-v2-voted-detail .voted-poll-head {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.fl-v2-voted-detail .voted-poll-area {
    margin: 20px 0 16px;
}

.fl-v2-voted-detail .voted-poll-option {
    display: block;
    margin-bottom: 10px;
    padding: 10px 14px;
    border: 2px solid var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s ease;
}

.fl-v2-voted-detail .voted-poll-option.active {
    border-color: var(--brand);
    background: rgba(184, 30, 32, .04);
}

.fl-v2-voted-detail .voted-poll-option:hover {
    background: var(--gray-50);
}

.fl-v2-voted-detail .voted-poll-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.fl-v2-voted-detail .voted-poll-col {
    display: flex;
    align-items: center;
    min-width: 0;
}

.fl-v2-voted-detail .voted-poll-circle {
    position: relative;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
}

.fl-v2-voted-detail .voted-poll-circle::after {
    position: absolute;
    content: "";
    height: 11px;
    width: 11px;
    background: #0b8c4c;
    border-radius: 50%;
    left: 2px;
    top: 2px;
    display: none;
}

.fl-v2-voted-detail .voted-poll-option.active .voted-poll-circle::after {
    display: block;
    background: var(--brand) !important;
}

.fl-v2-voted-detail .voted-poll-option:hover .voted-poll-circle::after {
    display: block;
    background: var(--gray-100);
}

.fl-v2-voted-detail .voted-poll-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fl-v2-voted-detail .voted-poll-text .text {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.fl-v2-voted-detail .voted-poll-text small {
    color: var(--gray-500);
    font-weight: normal;
}

.fl-v2-voted-detail .voted-poll-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
}

.fl-v2-voted-detail .voted-poll-progress {
    position: relative;
    height: 7px;
    width: 100%;
    background: var(--gray-100);
    margin: 8px 0 3px;
    border-radius: 30px;
    pointer-events: none;
}

.fl-v2-voted-detail .voted-poll-progress::after {
    position: absolute;
    content: "";
    height: 100%;
    width: calc(1% * var(--w));
    background: var(--brand);
    border-radius: 30px;
    left: 0;
}

.fl-v2-voted-detail .voted-poll-actions form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fl-v2-voted-detail .voted-poll-btn {
    min-width: 110px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
}

.fl-v2-voted-detail .voted-poll-btn--ghost {
    background: var(--gray-100);
    color: var(--gray-700);
}

.fl-v2-voted-detail .voted-poll-btn--primary {
    background: var(--brand);
    color: #fff;
}

.fl-v2-voted-detail .voted-poll-btn--primary:hover {
    opacity: .92;
}

@media (max-width: 768px) {
    .fl-v2-voted-list .voted-list-hero {
        padding: 20px;
    }

    .fl-v2-voted-list .voted-list-hero h2 {
        font-size: 22px;
    }

    .fl-v2-voted-list .voted-list-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .fl-v2-voted-list .voted-list-stat {
        padding: 12px 8px;
    }

    .fl-v2-voted-list .voted-list-stat strong {
        font-size: 22px;
    }

    .fl-v2-voted-list .voted-list-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}
