/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;

    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;

    --border: #e6ebf2;
    --border-strong: #d8e0ea;

    --accent: #16a34a;
    --accent-2: #2563eb;
    --accent-sky: #0ea5e9;
    --accent-grad: linear-gradient(135deg, #16a34a 0%, #0ea5e9 50%, #2563eb 100%);

    --live: #dc2626;
    --idle-text: #64748b;
    --idle-dot: #94a3b8;

    --r-sm: 5px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);

    --header-h: 56px;
    --container-w: 1200px;
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 10% 0%, rgba(22, 163, 74, 0.06), transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.06), transparent 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 14px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.25s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-grad);
    opacity: 0.9;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

/* ============================================================
   LOGO
   ============================================================ */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-mark {
    transform: scale(1.04);
}

.logo-mark svg {
    display: block;
    overflow: visible;
}

/* ============================================================
   LIVE TICKER (header center)
   ============================================================ */

.live-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 8px;
    height: 100%;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    max-width: 340px;
    animation: ticker-swap 0.5s ease;
}

.ticker-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1;
}

.ticker-sport {
    color: var(--accent);
}

.ticker-label {
    color: var(--live);
    font-weight: 800;
}

.ticker-league {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-sep {
    color: var(--text-soft);
    font-size: 8px;
    flex-shrink: 0;
}

.ticker-match {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.2;
}

.ticker-team {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.ticker-score {
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    padding: 1px 6px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: var(--r-sm);
    font-size: 12px;
    flex-shrink: 0;
}

.ticker-vs {
    color: var(--text-soft);
    font-size: 10.5px;
    font-weight: 600;
    flex-shrink: 0;
}

.ticker-time {
    color: var(--live);
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.ticker-item.is-next .ticker-time {
    color: var(--accent-2);
}

@keyframes ticker-swap {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ticker-fade-out {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-4px); }
}

.ticker-item.ticker-fade-out {
    animation: ticker-fade-out 0.25s ease forwards;
}

/* ============================================================
   DATETIME
   ============================================================ */

.datetime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-muted);
}

.datetime-day {
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    
}

.datetime-date {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.datetime-time {
    color: var(--text);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    font-size: 12.5px;
}

.datetime-sep {
    color: var(--text-soft);
    font-size: 9px;
}

/* ============================================================
   SPORT NAV
   ============================================================ */

.sport-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 90;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);

    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.25s ease;

    height: var(--header-h);
}

.sport-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-grad);
    opacity: 0.6;
}

.sport-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
    position: relative;
}

.sport-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex: 1;
    height: 100%;
}

.sport-nav-list li {
    display: inline-flex;
    flex-shrink: 0;
    height: 100%;
    align-items: center;
}

.sport-nav-list a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: var(--text-muted);

    border-radius: var(--r-md);
    white-space: nowrap;
    text-decoration: none;

    transition: color 0.2s ease,
                background-color 0.2s ease,
                transform 0.15s ease;
}

.sport-nav-list a:hover {
    color: var(--accent);
    background: rgba(22, 163, 74, 0.08);
    transform: translateY(-1px);
}

.sport-nav-list a.active {
    color: var(--accent);
    background: rgba(22, 163, 74, 0.12);
    font-weight: 700;
}

/* MORE */

.sport-nav-more {
    position: relative;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.sport-nav-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;

    font-size: 13px;
    font-weight: 600;

    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;

    transition: color 0.2s ease,
                background-color 0.2s ease,
                transform 0.15s ease;
}

.sport-nav-more-btn:hover {
    color: var(--accent);
    background: rgba(22, 163, 74, 0.08);
    transform: translateY(-1px);
}

.sport-nav-more-btn svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.sport-nav-more.open .sport-nav-more-btn {
    color: var(--accent);
    background: rgba(22, 163, 74, 0.12);
}

.sport-nav-more.open .sport-nav-more-btn svg {
    transform: rotate(135deg);
}

.sport-nav-more-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);

    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);

    padding: 6px;
    list-style: none;
    margin: 0;

    display: none;
    z-index: 200;

    animation: dropdown-in 0.18s ease;
}

.sport-nav-more.open .sport-nav-more-list {
    display: block;
}

.sport-nav-more-list li {
    display: block;
}

.sport-nav-more-list a {
    display: block;
    padding: 8px 12px;

    font-size: 13px;
    font-weight: 600;
    color: var(--text);

    border-radius: var(--r-sm);
    white-space: nowrap;

    transition: background-color 0.15s ease,
                color 0.15s ease;
}

.sport-nav-more-list a:hover {
    background: rgba(22, 163, 74, 0.08);
    color: var(--accent);
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   MAIN
   ============================================================ */

main.container {
    padding-top: 16px;
    padding-bottom: 32px;
}

/* ============================================================
   LIVE SECTION
   ============================================================ */

.live-section {
    margin-bottom: 28px;
}

/* ------------------------------------------------------------
   GLOBAL HEADER
   ------------------------------------------------------------ */

.live-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    margin-top: 14px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(
        90deg,
        var(--accent) 0%,
        var(--accent-sky) 30%,
        transparent 70%
    ) 1;
}

.live-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    line-height: 1;
}

/* DOT */

.live-section-dot {
    position: relative;
    display: inline-block;

    width: 9px;
    height: 9px;
    border-radius: 50%;

    background: var(--live);
    flex-shrink: 0;

    animation: pulse-live 1.4s ease-in-out infinite;
}

.live-section-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--live);
    opacity: 0.5;
    animation: ping 1.4s ease-out infinite;
    pointer-events: none;
}

/* COUNT */

.live-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 22px;
    padding: 0 8px;

    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    border-radius: var(--r-pill);

    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;

    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.28);
}

/* SEE ALL */

.live-section-see-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 5px 12px;
    border-radius: var(--r-pill);

    background: rgba(22, 163, 74, 0.08);
    color: var(--accent);

    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.1px;

    transition: background-color 0.2s ease,
                transform 0.2s ease,
                color 0.2s ease;
}

.live-section-see-all:hover {
    background: rgba(22, 163, 74, 0.15);
    transform: translateX(2px);
}

.live-section-see-all svg {
    transition: transform 0.2s ease;
}

.live-section-see-all:hover svg {
    transform: translateX(2px);
}
/* ------------------------------------------------------------
   SPORT BLOCK
   ------------------------------------------------------------ */

.sport-block {
    position: relative;

    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--sport-color, var(--accent));
    border-radius: var(--r-md);

    margin-bottom: 16px;
    overflow: hidden;

    box-shadow: var(--shadow-xs);

    transition: box-shadow 0.2s ease;
}

.sport-block:hover {
    box-shadow: var(--shadow-sm);
}

/* HEADER */

.sport-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    padding: 4px 10px;

    background: linear-gradient(
        90deg,
        var(--sport-color) 0%,
        var(--sport-color-dark) 100%
    );

    color: #ffffff;
}

.sport-block-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
}

.sport-block-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 18px;
    padding: 0 6px;

    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--r-pill);

    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;

    backdrop-filter: blur(4px);
}

/* GRID */

.sport-block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    padding: 10px;
}

/* ============================================================
   MATCH CARD
   ============================================================ */

.match-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    padding: 10px 12px;
    background: var(--surface);
    border-top: 2px solid #94a3b8;
    border-left: 2px solid #94a3b8;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-xs);

    transition: transform 0.15s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
    min-width: 0;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--sport-color, var(--accent));
}

.match-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;

    white-space: nowrap;
    overflow: hidden;
    line-height: 1;
}

.match-card-league {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.match-card-time {
    color: var(--live);
    font-weight: 800;
    flex-shrink: 0;
    margin-left: auto;
}

.match-card-teams {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;

    min-width: 0;
}

.match-card-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.match-card-team:last-child {
    text-align: right;
}

.match-card-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1px 7px;
    min-width: 44px;

    background: rgba(22, 163, 74, 0.1);
    color: var(--accent);
    border-radius: var(--r-sm);

    font-weight: 800;
    font-size: 12px;
    font-variant-numeric: tabular-nums;

    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================================
   SPORT COLORS
   ============================================================ */

/* Football */
.sport-block[data-sport="football"] {
    --sport-color: #16a34a;
    --sport-color-dark: #15803d;
}

/* Ice Hockey */
.sport-block[data-sport="hockey"] {
    --sport-color: #2563eb;
    --sport-color-dark: #1d4ed8;
}

/* Tennis */
.sport-block[data-sport="tennis"] {
    --sport-color: #ca8a04;
    --sport-color-dark: #a16207;
}

/* Basketball */
.sport-block[data-sport="basketball"] {
    --sport-color: #ea580c;
    --sport-color-dark: #c2410c;
}

/* Volleyball */
.sport-block[data-sport="volleyball"] {
    --sport-color: #7c3aed;
    --sport-color-dark: #6d28d9;
}

/* Snooker */
.sport-block[data-sport="snooker"] {
    --sport-color: #0f766e;
    --sport-color-dark: #115e59;
}

/* Handball */
.sport-block[data-sport="handball"] {
    --sport-color: #0ea5e9;
    --sport-color-dark: #0284c7;
}

/* UFC */
.sport-block[data-sport="ufc"] {
    --sport-color: #b91c1c;
    --sport-color-dark: #7f1d1d;
}

/* Baseball */
.sport-block[data-sport="baseball"] {
    --sport-color: #dc2626;
    --sport-color-dark: #b91c1c;
}

/* Table Tennis */
.sport-block[data-sport="table_tennis"] {
    --sport-color: #db2777;
    --sport-color-dark: #be185d;
}

/* Rugby */
.sport-block[data-sport="rugby"] {
    --sport-color: #7c2d12;
    --sport-color-dark: #431407;
}

/* Beach Volleyball */
.sport-block[data-sport="beach_volleyball"] {
    --sport-color: #06b6d4;
    --sport-color-dark: #0891b2;
}

/* Darts */
.sport-block[data-sport="darts"] {
    --sport-color: #65a30d;
    --sport-color-dark: #4d7c0f;
}

/* American Football */
.sport-block[data-sport="american_football"] {
    --sport-color: #78350f;
    --sport-color-dark: #451a03;
}

/* Cricket */
.sport-block[data-sport="cricket"] {
    --sport-color: #15803d;
    --sport-color-dark: #166534;
}

/* Australian Rules */
.sport-block[data-sport="australian_rules"] {
    --sport-color: #0e7490;
    --sport-color-dark: #155e75;
}

/* Default (fallback) */
.sport-block {
    --sport-color: #64748b;
    --sport-color-dark: #475569;
}
/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .sport-block-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sport-block-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .sport-block-title {
        font-size: 12px;
    }

    .sport-block-header {
        padding: 7px 12px;
    }

    .live-section-title {
        font-size: 15px;
    }
}

/* ============================================================
   SCORE UPDATE FLASH
   ============================================================ */

.match-card-score.is-updated,
.match-card-time.is-updated {
    animation: score-flash 1s ease;
}

@keyframes score-flash {
    0% {
        background-color: rgba(22, 163, 74, 0.25);
        transform: scale(1.08);
    }
    100% {
        background-color: rgba(22, 163, 74, 0.1);
        transform: scale(1);
    }
}


/* ============================================================
   TODAY SECTION
   ============================================================ */

.today-section {
    margin-bottom: 28px;
}

/* ------------------------------------------------------------
   GLOBAL HEADER
   ------------------------------------------------------------ */

.today-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;

    border-bottom: 2px solid transparent;
    border-image: linear-gradient(
        90deg,
        var(--accent-2) 0%,
        var(--accent-sky) 30%,
        transparent 70%
    ) 1;
}

.today-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    line-height: 1;
}

.today-title-icon {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.today-title-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 22px;
    padding: 0 8px;

    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: var(--r-pill);

    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

/* ------------------------------------------------------------
   SPORT BLOCK
   ------------------------------------------------------------ */

.sport-block {
    margin-bottom: 18px;
}

.sport-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
    padding-left: 10px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text);

    border-left: 3px solid var(--sport-color, var(--accent));
}

.sport-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1px 7px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    border-radius: var(--r-pill);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* ============================================================
   LEAGUE BLOCK
   ============================================================ */

.league-block {
    margin-bottom: 8px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;

    box-shadow: var(--shadow-xs);

    transition: box-shadow 0.2s ease;
}

.league-block:hover {
    box-shadow: var(--shadow-sm);
}

/* SUMMARY */

.league-summary {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    cursor: pointer;
    user-select: none;
    list-style: none;

    background: linear-gradient(
        90deg,
        var(--sport-color) 0%,
        var(--sport-color-dark) 100%
    );

    color: #ffffff;

    transition: filter 0.15s ease;
}

.league-summary:hover {
    filter: brightness(1.08);
}

.league-summary::-webkit-details-marker { display: none; }
.league-summary::marker { content: ""; }

/* ARROW */

.league-arrow {
    display: inline-block;
    width: 0;
    height: 0;

    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;

    transform: rotate(0deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.league-block[open] .league-arrow {
    transform: rotate(90deg);
}

/* NAME */

.league-name {
    flex: 1;
    min-width: 0;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* COUNT */

.league-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 18px;
    padding: 0 6px;

    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--r-pill);

    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;

    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

/* MATCHES */

.league-matches {
    display: flex;
    flex-direction: column;

    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.015) 0%,
        transparent 100%
    );
}

.league-block[open] .league-matches {
    animation: slide-down 0.2s ease;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}






/* ------------------------------------------------------------
   MATCH ROW
   ------------------------------------------------------------ */

.match-row {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 7px 12px 7px 14px;

    border-bottom: 1px solid var(--border);

    transition: background-color 0.12s ease;

    min-width: 0;
}

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

.match-row:hover {
    background: rgba(15, 23, 42, 0.03);
}

.match-row-time {
    flex-shrink: 0;

    width: 44px;

    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.match-row-teams {
    display: flex;
    align-items: center;
    gap: 6px;

    flex: 1;
    min-width: 0;

    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.match-row-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.match-row-team:last-child {
    text-align: right;
}

.match-row-vs {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: lowercase;
}

.match-row-arrow {
    flex-shrink: 0;
    color: var(--text-soft);
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.match-row:hover .match-row-arrow {
    opacity: 1;
    transform: translateX(0);
}




/* ============================================================
   DAY ROW
   ============================================================ */

.day-row {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 14px;

    border-bottom: 1px solid var(--border);

    background: var(--surface);

    transition: background-color 0.12s ease;
    min-width: 0;
}

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

.day-row:hover {
    background: linear-gradient(
        90deg,
        rgba(37, 99, 235, 0.05) 0%,
        rgba(37, 99, 235, 0.02) 100%
    );
}

/* TIME */

.day-row-time {
    flex-shrink: 0;
    width: 48px;

    font-size: 12.5px;
    font-weight: 800;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

/* TEAMS */

.day-row-teams {
    display: flex;
    align-items: center;
    gap: 6px;

    flex: 1;
    min-width: 0;

    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.day-row-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.day-row-team:last-child {
    text-align: right;
}

.day-row-vs {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ARROW */

.day-row-arrow {
    flex-shrink: 0;
    color: var(--text-soft);
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.day-row:hover .day-row-arrow {
    opacity: 1;
    transform: translateX(0);
}
/* ------------------------------------------------------------
   SPORT COLORS (reuse)
   ------------------------------------------------------------ */

.sport-block[data-sport="football"]         { --sport-color: #16a34a; --sport-color-dark: #15803d; }
.sport-block[data-sport="basketball"]       { --sport-color: #ea580c; --sport-color-dark: #c2410c; }
.sport-block[data-sport="tennis"]           { --sport-color: #ca8a04; --sport-color-dark: #a16207; }
.sport-block[data-sport="hockey"]           { --sport-color: #2563eb; --sport-color-dark: #1d4ed8; }
.sport-block[data-sport="volleyball"]       { --sport-color: #7c3aed; --sport-color-dark: #6d28d9; }
.sport-block[data-sport="handball"]         { --sport-color: #0ea5e9; --sport-color-dark: #0284c7; }
.sport-block[data-sport="baseball"]         { --sport-color: #dc2626; --sport-color-dark: #b91c1c; }
.sport-block[data-sport="cricket"]          { --sport-color: #15803d; --sport-color-dark: #166534; }
.sport-block[data-sport="table_tennis"]     { --sport-color: #db2777; --sport-color-dark: #be185d; }
.sport-block[data-sport="beach_volleyball"] { --sport-color: #06b6d4; --sport-color-dark: #0891b2; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 600px) {
    .match-row {
        padding: 7px 10px;
        gap: 6px;
    }

    .match-row-time {
        width: 36px;
        font-size: 11px;
    }

    .match-row-teams {
        font-size: 11.5px;
        gap: 4px;
    }

    .league-name {
        font-size: 11px;
    }

    .sport-title {
        font-size: 12px;
    }
}

/* ============================================================
   NEXT SECTION
   ============================================================ */

.next-section {
    margin-bottom: 28px;
}

/* ------------------------------------------------------------
   GLOBAL HEADER
   ------------------------------------------------------------ */

.next-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;

    border-bottom: 2px solid transparent;
    border-image: linear-gradient(
        90deg,
        var(--accent-2) 0%,
        var(--accent-sky) 30%,
        transparent 70%
    ) 1;
}

.next-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    line-height: 1;
}

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

.next-title-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 22px;
    padding: 0 8px;

    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: var(--r-pill);

    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

/* ------------------------------------------------------------
   SPORT BLOCK — tweaks
   ------------------------------------------------------------ */

.next-sport-block {
    border-left-color: var(--sport-color, var(--accent-2));
}

/* ------------------------------------------------------------
   NEXT LIST
   ------------------------------------------------------------ */

.next-list {
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------------
   NEXT ROW
   ------------------------------------------------------------ */

.next-row {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 14px;

    border-bottom: 1px solid var(--border);

    background: var(--surface);

    transition: background-color 0.12s ease;

    min-width: 0;
}

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

.next-row:hover {
    background: rgba(37, 99, 235, 0.04);
}

/* TIME */

.next-row-time {
    flex-shrink: 0;
    width: 48px;

    font-size: 12.5px;
    font-weight: 800;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

/* LEAGUE */

.next-row-league {
    flex-shrink: 0;
    width: 130px;

    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TEAMS */

.next-row-teams {
    display: flex;
    align-items: center;
    gap: 6px;

    flex: 1;
    min-width: 0;

    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.next-row-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.next-row-team:last-child {
    text-align: right;
}

.next-row-vs {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: lowercase;
}

/* ARROW */

.next-row-arrow {
    flex-shrink: 0;
    color: var(--text-soft);
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.next-row:hover .next-row-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 768px) {
    .next-row {
        gap: 8px;
        padding: 8px 12px;
    }

    .next-row-time {
        width: 42px;
        font-size: 12px;
    }

    .next-row-league {
        width: 90px;
        font-size: 10px;
    }

    .next-row-teams {
        font-size: 11.5px;
    }
}

@media (max-width: 480px) {
    .next-row {
        gap: 6px;
        padding: 8px 10px;
    }

    .next-row-time {
        width: 38px;
        font-size: 11.5px;
    }

    .next-row-league {
        display: none;
    }

    .next-row-teams {
        font-size: 11px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    margin-top: 40px;
    padding: 20px 0;

    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copy {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.footer-copy a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-copy a:hover {
    color: var(--accent-2);
}

/* ============================================================
   SEO SECTION
   ============================================================ */

.seo-section {
    margin-top: 40px;
    padding: 24px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);

    box-shadow: var(--shadow-xs);
}

.seo-section h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.seo-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 8px;
}

.seo-section p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.seo-section strong {
    color: var(--text);
    font-weight: 700;
}

.seo-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.seo-section li {
    padding: 6px 0 6px 20px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    position: relative;
}

.seo-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

/* ============================================================
   SPORT PAGE
   ============================================================ */

.page-h1 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--accent) 0%, var(--accent-sky) 30%, transparent 70%) 1;
}

.days-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-sky) 30%, transparent 70%) 1;
}

.days-tab {
    padding: 5px 12px;
    border-radius: var(--r-md);
    background: transparent;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.days-tab:hover {
    color: var(--accent-2);
    background: rgba(37, 99, 235, 0.08);
}

.days-tab.is-active {
    color: var(--accent-2);
    background: rgba(37, 99, 235, 0.12);
}

.days-content {
    min-height: 100px;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background-color 0.12s ease;
    min-width: 0;
}

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

.day-row:hover {
    background: rgba(37, 99, 235, 0.04);
}

.day-row-time {
    flex-shrink: 0;
    width: 48px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
}

.day-row-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.day-row-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.day-row-team:last-child {
    text-align: right;
}

.day-row-vs {
    color: var(--text-soft);
    font-size: 10px;
    flex-shrink: 0;
}

.day-row-arrow {
    flex-shrink: 0;
    color: var(--text-soft);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.day-row:hover .day-row-arrow {
    opacity: 1;
}

.days-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.days-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .day-row-time { width: 38px; font-size: 11.5px; }
    .day-row-teams { font-size: 11px; }
}

/* ============================================================
   SPORT COLORS — body level
   ============================================================ */

body[data-sport="football"]         { --sport-color: #16a34a; --sport-color-dark: #15803d; }
body[data-sport="hockey"]           { --sport-color: #2563eb; --sport-color-dark: #1d4ed8; }
body[data-sport="tennis"]           { --sport-color: #ca8a04; --sport-color-dark: #a16207; }
body[data-sport="basketball"]       { --sport-color: #ea580c; --sport-color-dark: #c2410c; }
body[data-sport="volleyball"]       { --sport-color: #7c3aed; --sport-color-dark: #6d28d9; }
body[data-sport="snooker"]          { --sport-color: #0f766e; --sport-color-dark: #115e59; }
body[data-sport="handball"]         { --sport-color: #0ea5e9; --sport-color-dark: #0284c7; }
body[data-sport="ufc"]              { --sport-color: #b91c1c; --sport-color-dark: #7f1d1d; }
body[data-sport="baseball"]         { --sport-color: #dc2626; --sport-color-dark: #b91c1c; }
body[data-sport="table_tennis"]     { --sport-color: #db2777; --sport-color-dark: #be185d; }
body[data-sport="rugby"]            { --sport-color: #7c2d12; --sport-color-dark: #431407; }
body[data-sport="beach_volleyball"] { --sport-color: #06b6d4; --sport-color-dark: #0891b2; }
body[data-sport="darts"]            { --sport-color: #65a30d; --sport-color-dark: #4d7c0f; }
body[data-sport="american_football"]{ --sport-color: #92400e; --sport-color-dark: #78350f; }
body[data-sport="cricket"]          { --sport-color: #15803d; --sport-color-dark: #166534; }
body[data-sport="australian_rules"] { --sport-color: #0e7490; --sport-color-dark: #155e75; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 40px 20px;

    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;

    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #cbd5e1;
    border-radius: var(--r-md);
}

.empty-state::before {
    content: "○";
    display: block;
    font-size: 24px;
    color: var(--text-soft);
    margin-bottom: 4px;
}


/* ============================================================
   MATCH LAYOUT
   ============================================================ */

.match-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

/* ============================================================
   MATCH LAYOUT
   ============================================================ */

.match-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

/* ============================================================
   MATCH SIDEBAR
   ============================================================ */

.match-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;

    position: sticky;
    top: calc(var(--header-h) * 2 + 12px);

    align-self: start;
}

/* ============================================================
   SIDEBAR BLOCK
   ============================================================ */

.sidebar-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

/* HEADER */

.sidebar-block-header {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
}

.sidebar-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-dot-live {
    background: var(--live);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    animation: pulse-live 1.4s ease-in-out infinite;
}

.sidebar-dot-next {
    background: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sidebar-block-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text);
}

.sidebar-block-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 16px;
    padding: 0 6px;

    margin-left: auto;

    background: rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
    border-radius: var(--r-pill);

    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* ============================================================
   SIDEBAR LIST
   ============================================================ */

.sidebar-list {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   SIDEBAR ROW
   ============================================================ */

.sidebar-row {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 8px 12px 8px 14px;

    border-bottom: 1px solid var(--border);

    transition: background-color 0.12s ease;

    min-width: 0;
    overflow: hidden;
}

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

.sidebar-row:hover {
    background: rgba(15, 23, 42, 0.03);
}

/* ACCENT */

.sidebar-row-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    width: 3px;

    background: var(--sport-color, var(--border));
    opacity: 0.7;

    transition: opacity 0.15s ease;
}

.sidebar-row:hover .sidebar-row-accent {
    opacity: 1;
}

/* BODY (teams + score) — full width */

.sidebar-row-body {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    width: 100%;
}

.sidebar-row-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    flex: 1;
    min-width: 0;

    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-row-team:last-child {
    text-align: right;
}

/* SCORE */

.sidebar-row-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1px 6px;
    min-width: 36px;

    background: rgba(220, 38, 38, 0.1);
    color: var(--live);
    border-radius: var(--r-sm);

    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;

    flex-shrink: 0;
    white-space: nowrap;
}

/* VS */

.sidebar-row-vs {
    color: var(--text-soft);
    font-size: 9.5px;
    font-weight: 600;
    flex-shrink: 0;
}

/* META (minute / time) — under body, small */

.sidebar-row-meta {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.sidebar-row-meta.is-live {
    color: var(--live);
}
/* ============================================================
   SPORT COLORS (for sidebar rows)
   ============================================================ */

.sidebar-row[data-sport="football"]         { --sport-color: #16a34a; }
.sidebar-row[data-sport="hockey"]           { --sport-color: #2563eb; }
.sidebar-row[data-sport="tennis"]           { --sport-color: #ca8a04; }
.sidebar-row[data-sport="basketball"]       { --sport-color: #ea580c; }
.sidebar-row[data-sport="volleyball"]       { --sport-color: #7c3aed; }
.sidebar-row[data-sport="snooker"]          { --sport-color: #0f766e; }
.sidebar-row[data-sport="handball"]         { --sport-color: #0ea5e9; }
.sidebar-row[data-sport="ufc"]              { --sport-color: #b91c1c; }
.sidebar-row[data-sport="baseball"]         { --sport-color: #dc2626; }
.sidebar-row[data-sport="table_tennis"]     { --sport-color: #db2777; }
.sidebar-row[data-sport="rugby"]            { --sport-color: #7c2d12; }
.sidebar-row[data-sport="beach_volleyball"] { --sport-color: #06b6d4; }
.sidebar-row[data-sport="darts"]            { --sport-color: #65a30d; }
.sidebar-row[data-sport="american_football"]{ --sport-color: #92400e; }
.sidebar-row[data-sport="cricket"]          { --sport-color: #15803d; }
.sidebar-row[data-sport="australian_rules"] { --sport-color: #0e7490; }

/* ============================================================
   MATCH MAIN
   ============================================================ */

.match-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .match-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .match-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .sidebar-block {
        flex: 1 1 280px;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .match-sidebar {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar-block {
        flex: 1 1 100%;
    }

    .sidebar-row {
        padding: 7px 10px 7px 12px;
    }

    .sidebar-row-team {
        font-size: 11px;
    }

    .sidebar-row-time {
        width: 42px;
        font-size: 11px;
    }
}

/* ============================================================
   MATCH HEADER
   ============================================================ */

.match-header {
    position: relative;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);

    margin-bottom: 16px;
}

/* BACKGROUND GRADIENT */

.match-header-bg {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 0% 0%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);

    pointer-events: none;
}

/* CONTENT */

.match-header-content {
    position: relative;
    padding: 24px 20px;
}

/* META */

.match-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);

    margin-bottom: 8px;
}

.match-header-sport {
    color: var(--accent);
}

.match-header-sep {
    color: var(--text-soft);
    font-size: 8px;
}

.match-header-league {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TITLE (H1) */

.match-header-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 1.3;
    margin: 0 0 24px;
}

/* BODY */

.match-header-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

/* TEAM */

.match-header-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.match-header-team:last-child {
    flex-direction: row-reverse;
   
}

/* BADGE */

.match-header-team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex-shrink: 0;

    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 16px;
    font-weight: 800;
    color: var(--text);

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* NAME */

.match-header-team-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* CENTER */

.match-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.match-header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;
    

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    white-space: nowrap;

    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.match-header-status svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.match-header-status.is-live {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    border-color: transparent;

    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.match-header-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulse-live 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    .match-header-content {
        padding: 18px 14px;
    }

    .match-header-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .match-header-body {
        gap: 8px;
    }

    .match-header-team-badge {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .match-header-team-name {
        font-size: 12px;
    }

    .match-header-status {
        padding: 5px 10px;
        font-size: 10.5px;
    }
}

@media (max-width: 420px) {
    .match-header-team {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .match-header-team:last-child {
        flex-direction: column;
    }

    .match-header-team-name {
        font-size: 11px;
    }
}

/* ============================================================
   MATCH STREAM
   ============================================================ */

.match-stream {
    margin-bottom: 16px;
}

/* PLAYER (16:9) */

.match-stream-player {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;

    background: #0f172a;
    border-radius: var(--r-lg);
    overflow: hidden;

    box-shadow: var(--shadow-md);
}

/* STATE */

.match-stream-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* BG */

.match-stream-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.match-stream-bg.is-upcoming {
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.3), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.match-stream-bg.is-live {
    background:
        radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.35), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.3), transparent 55%),
        linear-gradient(135deg, #450a0a 0%, #1f0505 100%);
}

/* CONTENT */

.match-stream-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
}

/* LIVE BADGE */

.match-stream-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    border-radius: var(--r-pill);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;

    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15),
                0 4px 14px rgba(220, 38, 38, 0.4);
}

.match-stream-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulse-live 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

/* COUNTDOWN */

.match-stream-countdown-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.match-stream-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    min-width: 60px;
}

.countdown-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    color: #ffffff;

    text-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
}

.countdown-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.countdown-sep {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    align-self: flex-start;
    margin-top: 2px;
}

/* MESSAGE */

.match-stream-message {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.2px;
}

/* TEAMS */

.match-stream-teams {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    flex-wrap: wrap;
    justify-content: center;
}

.match-stream-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.match-stream-team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.match-stream-vs {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
}

/* META */

.match-stream-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.match-stream-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.match-stream-meta-sep {
    opacity: 0.4;
}

/* PROGRESS BAR */

.match-stream-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.match-stream-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 1s linear;
}

/* WATERMARK */

.match-stream-watermark {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.25);
    z-index: 2;
    text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .match-stream-state {
        padding: 16px 12px;
    }

    .match-stream-content {
        gap: 10px;
    }

    .match-stream-countdown-label {
        font-size: 10px;
    }

    .countdown-value {
        font-size: 24px;
    }

    .countdown-unit {
        min-width: 44px;
    }

    .countdown-sep {
        font-size: 18px;
    }

    .match-stream-teams {
        font-size: 12px;
        gap: 8px;
    }

    .match-stream-team {
        max-width: 130px;
    }

    .match-stream-team-badge {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .match-stream-meta {
        font-size: 10.5px;
    }

    .match-stream-message {
        font-size: 12px;
    }
}

/* PLAYER TARGET */

.match-stream-player-target {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #000;
}

.match-stream-player-target[hidden] {
    display: none;
}

.match-stream-oven {
    width: 100%;
    height: 100%;
}

/* ============================================================
   MATCH SEO
   ============================================================ */

.match-seo {
    margin-top: 32px;
    padding: 24px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
}

.match-seo h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.match-seo h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 10px;
}

.match-seo p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.match-seo strong {
    color: var(--text);
    font-weight: 700;
}

/* LIST */

.match-seo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.match-seo-list li {
    padding: 8px 12px;

    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);

    font-size: 13px;
    color: var(--text-muted);
}

.match-seo-list strong {
    color: var(--text);
    margin-right: 4px;
}

/* STEPS */

.match-seo-steps {
    padding-left: 20px;
    margin: 0 0 12px 0;
}

.match-seo-steps li {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .match-seo {
        padding: 18px 14px;
    }

    .match-seo h2 {
        font-size: 16px;
    }

    .match-seo h3 {
        font-size: 14px;
    }

    .match-seo-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ADS
   ============================================================ */

.ads-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    margin: 20px 0;
    padding: 12px;

    flex-wrap: wrap;
}

.ad-slot {
    width: 300px;
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    
    
    border-radius: var(--r-md);
    overflow: hidden;

    box-shadow: var(--shadow-xs);
}

.ad-slot img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .ads-container {
        gap: 12px;
        padding: 8px;
    }

    .ad-slot {
        width: 100%;
        max-width: 300px;
    }
}