:root,
[data-theme="dark"] {
    --bg: #061a14;
    --bg-elevated: #0a2820;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #f4f7f5;
    --text-muted: rgba(244, 247, 245, 0.68);
    --gold: #d4af37;
    --gold-light: #f0d878;
    --accent: #1db954;
    --live: #ff3b3b;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    --nav-h: 64px;
}

[data-theme="light"] {
    --bg: #eef2f0;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text: #0f1a16;
    --text-muted: #5a6b64;
    --border: rgba(15, 26, 22, 0.1);
    --shadow: 0 12px 32px rgba(15, 26, 22, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

[data-theme="dark"] body {
    background:
        radial-gradient(ellipse 900px 400px at 0% -10%, rgba(212, 175, 55, 0.12), transparent 50%),
        radial-gradient(ellipse 600px 300px at 100% 0%, rgba(29, 185, 84, 0.1), transparent 45%),
        var(--bg);
}

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

.container { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }

/* —— Top bar —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--nav-h);
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    flex-shrink: 0;
}
.logo span { color: var(--text); }
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a2018;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

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

.btn-live-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--live);
    box-shadow: 0 4px 14px rgba(255, 59, 59, 0.4);
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-live-now:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-live-now.is-active {
    box-shadow: 0 0 0 2px var(--gold-light), 0 4px 14px rgba(255, 59, 59, 0.45);
}

.btn-live-now-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.2s infinite;
}

@media (max-width: 767px) {
    .header-inner .btn-live-now {
        margin-left: auto;
    }
}

@media (max-width: 380px) {
    .btn-live-now {
        padding: 6px 10px;
        font-size: 0.65rem;
    }
}

/* Sub navigation under header */
.subnav {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
}

.subnav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

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

.subnav::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, var(--bg-elevated) 30%, transparent);
}

.subnav-inner {
    display: inline-flex;
    gap: 8px;
    padding: 10px 12px;
    width: max-content;
    min-width: 100%;
}

@media (min-width: 768px) {
    .subnav::after {
        display: none;
    }

    .subnav-scroll {
        display: flex;
        justify-content: center;
    }

    .subnav-inner {
        width: auto;
        min-width: 0;
        padding: 10px 0;
    }
}
.subnav-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.subnav-link:hover {
    color: var(--text);
    background: var(--bg-card);
    border-color: var(--border);
}
.subnav-link.is-active {
    color: #0a2018;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-color: transparent;
}

/* Page hero banner */
.page-hero-banner {
    padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 32px);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 70%),
        var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero-banner h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    letter-spacing: 0.04em;
    line-height: 1;
}
.page-hero-banner p {
    margin-top: 12px;
    color: var(--text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}
.page-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--live);
    border: 1px solid rgba(255, 59, 59, 0.4);
    background: rgba(255, 59, 59, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.page-section { padding: 28px 0 40px; }

/* History timeline */
.history-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) {
    .history-grid { grid-template-columns: repeat(2, 1fr); }
}
.history-intro {
    margin: -4px 0 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.history-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 20px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.history-card--clickable {
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.history-card--clickable:hover,
.history-card--clickable:focus-visible {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    outline: none;
}

.history-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--gold-light);
    letter-spacing: 0.06em;
}

.history-card h3 {
    margin-top: 6px;
    font-size: 1.15rem;
}

.history-card__excerpt {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-winner {
    margin-top: 14px;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9rem;
}

.history-card__cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gold-light);
    text-transform: uppercase;
}

.history-moment-card h3 {
    margin-top: 8px;
}

.history-moment-card .history-card__excerpt {
    -webkit-line-clamp: 3;
}

.history-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

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

.history-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.history-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    max-height: min(88vh, 720px);
    overflow: hidden;
    margin: 0;
    padding: 24px 20px 20px;
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    background: var(--bg-card);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
    .history-modal {
        align-items: center;
        padding: 24px;
    }

    .history-modal__panel {
        border-radius: 20px;
        border-bottom: 1px solid var(--border);
        max-height: min(85vh, 680px);
    }
}

.history-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.history-modal__close:hover {
    background: var(--gold);
    color: var(--bg);
}

.history-modal__meta {
    margin: 0 40px 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.history-modal__title {
    margin: 0 32px 16px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.history-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.history-modal__body p {
    margin: 0 0 14px;
}

.history-modal__body p:last-child {
    margin-bottom: 0;
}

.history-modal__ad {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.history-modal__ad .ad-slot {
    margin: 0 auto;
}

body.history-modal-open {
    overflow: hidden;
}

/* League hub */
.league-hub-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.league-hub-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 22px;
    display: block;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.league-hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}
.league-hub-icon { font-size: 2.5rem; margin-bottom: 10px; }
.league-hub-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}
.league-hub-card p { margin-top: 8px; color: var(--text-muted); font-size: 0.85rem; }
.league-hub-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Stat pills row */
.stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.stat-pill {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 700;
}
.stat-pill strong { color: var(--gold-light); margin-right: 6px; }

.footer-tagline {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
}
.footer-heading {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.live-page-player { max-width: 920px; margin: 0 auto 28px; }

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.15s, filter 0.15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a2018;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}
.btn-ghost {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.search-form {
    flex: 1;
    max-width: 320px;
    display: none;
    position: relative;
}
@media (min-width: 768px) { .search-form { display: flex; } }

.search-form input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
}
.search-form input:focus { border-color: var(--gold); }
.search-form svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--gold); }

.btn-login {
    display: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a2018;
}
@media (min-width: 640px) { .btn-login { display: inline-flex; } }

.menu-toggle { display: flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* —— Nav —— */
.main-nav {
    display: none;
    border-top: 1px solid var(--border);
}
.main-nav.is-open { display: block; }
@media (min-width: 1024px) {
    .main-nav { display: block; border-top: none; }
    .header-inner { flex-wrap: nowrap; }
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 12px;
}
@media (min-width: 1024px) {
    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        gap: 4px;
    }
}

.nav-list a {
    display: block;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav-list a:hover,
.nav-list a.is-active {
    color: var(--text);
    background: var(--bg-card);
}
.nav-list a.is-active { color: var(--gold-light); }

/* —— Main —— */
main { padding-bottom: 48px; }

.section { padding: 32px 0; }
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Hero / Live TV */
.hero-grid {
    display: grid;
    gap: 20px;
    padding-top: 20px;
}
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.player-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow);
}

.player-screen {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0.35)),
        radial-gradient(circle at 50% 40%, #1a4d3a, #061a14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.player-thumb-bg {
    position: absolute;
    inset: 0;
    background-image: var(--player-thumb);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.player-screen.has-thumb .player-thumb-bg {
    opacity: 1;
}

.player-thumb-logos {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 8vw, 64px);
    z-index: 0;
    filter: blur(0.5px);
    opacity: 0.35;
}

.player-screen.has-logos:not(.has-thumb) .player-thumb-logos {
    display: flex;
}

.player-thumb-logo {
    width: clamp(72px, 22vw, 140px);
    height: clamp(72px, 22vw, 140px);
    object-fit: contain;
}

.player-screen-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.player-screen .play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--live);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 59, 59, 0.45);
    cursor: pointer;
}
.player-screen .play-btn svg { margin-left: 4px; }

.player-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.player-bar {
    padding: 12px 16px;
    background: var(--bg-elevated);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    overflow: hidden;
}

.player-bar > * {
    flex-shrink: 0;
    white-space: nowrap;
}

.player-bar > span,
.player-bar > a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar > a {
    flex-shrink: 0;
}

/* Live match card */
.live-match-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--live);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.match-competition {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.team-name {
    font-weight: 800;
    font-size: 1.1rem;
}
.team-flag { font-size: 2rem; display: block; margin-bottom: 6px; }

.score-center {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.score-center--soon {
    font-size: 1.35rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
}

.live-match-card--soon {
    border-color: rgba(201, 162, 39, 0.45);
}

.live-badge--soon {
    background: var(--gold) !important;
    color: var(--bg);
}
.match-minute-block {
    margin-top: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.match-minute-clock {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.85rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    line-height: 1;
}

.match-minute-phase {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-minute {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 4px;
}

/* Cards grid */
.card-grid {
    display: grid;
    gap: 12px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.score-card,
.upcoming-card,
.league-card,
.highlight-card,
.news-card {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 14px;
    transition: border-color 0.15s, transform 0.15s;
}
.score-card:hover,
.upcoming-card:hover,
.league-card:hover,
.highlight-card:hover,
.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.score-row + .score-row { margin-top: 6px; }
.score-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    min-width: 48px;
    text-align: center;
}
.score-card-league {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.score-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.score-clock-minute {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    line-height: 1;
}

.score-clock-phase {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.score-clock-live {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--live);
    letter-spacing: 0.06em;
}

.score-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.score-meta .live-dot { color: var(--live); font-weight: 700; }
.score-meta .match-minute { color: var(--gold-light); font-weight: 700; }

.upcoming-card .time { font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.upcoming-card .venue { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.upcoming-teams { font-weight: 700; margin-top: 8px; }

.league-card {
    text-align: center;
    padding: 20px 12px;
}
.league-icon { font-size: 2rem; margin-bottom: 8px; }
.league-name { font-weight: 700; font-size: 0.9rem; }
.league-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.highlight-thumb {
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a4d3a, #0a2820);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.highlight-card h3 { font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.highlight-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

.news-card .tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}
.news-card h3 { font-size: 0.95rem; font-weight: 700; margin: 8px 0; line-height: 1.4; }
.news-card time { font-size: 0.75rem; color: var(--text-muted); }

/* Inner page */
.page-hero {
    padding: 40px 0 24px;
    text-align: center;
}
.page-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: 0.04em;
}
.page-hero p {
    margin-top: 12px;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.content-box {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 24px;
    background: var(--bg-elevated);
}
.footer-grid {
    display: grid;
    gap: 24px;
}
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; color: var(--gold-light); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.mobile-search {
    display: block;
    padding: 0 0 12px;
}
@media (min-width: 768px) { .mobile-search { display: none; } }
.mobile-search .search-form { display: flex; max-width: none; }

.sync-bar {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 10px 14px;
    margin-top: 12px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.sync-warn { color: var(--gold); }

.team-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.team-line img, .team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.team-logo { display: block; margin: 0 auto 6px; }

.empty-msg {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px;
    text-align: center;
}

.player-matchline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.standings-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.standings-table th,
.standings-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.standings-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* World Cup 2026 chart */
.wc-page .wc-section { margin-top: 40px; }
.wc-section-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: -8px 0 20px;
}

.wc-timeline {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.wc-timeline::-webkit-scrollbar { display: none; }
.wc-timeline-step {
    flex: 1 0 120px;
    min-width: 110px;
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
}
.wc-timeline-step.is-active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}
.wc-timeline-step.is-done { opacity: 0.65; }
.wc-timeline-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    margin: 0 auto 10px;
}
.wc-timeline-step.is-active .wc-timeline-dot {
    background: var(--live);
    box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.25);
}
.wc-timeline-label {
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wc-timeline-dates {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wc-fixture-grid,
.wc-knockout-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.wc-fixture {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 14px;
    transition: border-color 0.15s, transform 0.15s;
}
.wc-fixture:hover { border-color: var(--gold); transform: translateY(-2px); }
.wc-fixture.is-live { border-color: rgba(0, 200, 83, 0.5); }
.wc-fixture.is-today { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35); }

.wc-fixture-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.wc-fixture-num { font-weight: 800; color: var(--gold-light); }
.wc-fixture-group {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
}
.wc-fixture-live { color: var(--live); font-weight: 800; margin-left: auto; }
.wc-fixture-teams {
    font-size: 0.92rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.wc-fixture-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}
.wc-fixture-vs { color: var(--text-muted); font-size: 0.8rem; }
.wc-fixture-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.wc-fixture-minute {
    color: var(--accent);
    font-weight: 800;
}

.wc-groups-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wc-group-table-wrap {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
}
.wc-group-heading {
    padding: 12px 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid var(--border);
}
.wc-group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.wc-group-table th,
.wc-group-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.wc-group-table th:first-child,
.wc-group-table td:first-child { text-align: left; font-weight: 700; }
.wc-group-table th {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wc-day-block {
    margin-bottom: 28px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.wc-day-block.is-today .wc-day-title { color: var(--gold-light); }
.wc-day-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.wc-today-badge {
    font-size: 0.65rem;
    background: var(--live);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: Inter, sans-serif;
    font-weight: 800;
}
.wc-day-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-weight: 600;
    margin-left: auto;
}

/* Ads */
body[data-ads-enabled="1"] {
    padding-bottom: 72px;
}

.site-main {
    display: block;
}

.ad-row {
    margin: 0 auto;
    padding: 16px 0;
}

.ad-row--top {
    margin-top: 4px;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--border);
}

.ad-row--bottom {
    margin-top: 28px;
    padding: 24px 0 8px;
    border-top: 1px solid var(--border);
}

.ad-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ad-slot {
    position: relative;
    margin: 8px 0;
}

.ad-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4px;
}

.ad-slot-inner {
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.ad-native-wrap {
    min-height: 90px;
}

.ad-sticky-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 6px 8px 8px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.ad-sticky-footer .ad-slot {
    margin: 0;
}

.player-screen[data-live-tv-trigger],
.smartlink-card[data-smartlink-trigger] {
    cursor: pointer;
}

.smartlink-card[data-smartlink-trigger]:hover {
    border-color: var(--gold);
}

.smartlink-card[data-smartlink-trigger]:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.player-screen[data-live-tv-trigger]:hover .play-btn {
    transform: scale(1.06);
}

.play-btn {
    transition: transform 0.15s ease;
}

/* News & Discover layout */
.discover-hero .eyebrow,
.article-header .eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.discover-hero .lead {
    color: var(--text-muted);
    max-width: 42rem;
    line-height: 1.6;
}

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

.section-link {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.news-card-thumb picture {
    display: block;
    width: 100%;
    height: 100%;
}

.news-card-link > picture {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.news-card-thumb picture img,
.news-card-link picture img,
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--bg-elevated);
}

.news-card-thumb .news-card-placeholder,
.news-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.news-card-placeholder {
    display: block;
}

.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.news-card-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--live);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.news-card-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.2s infinite;
}

.news-card-body {
    padding: 16px;
}

.badge-trending {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg);
    background: var(--gold);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.badge-sport {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--accent, #1a6b4a);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    margin-right: 6px;
}

.news-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-lead {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text);
}

.news-card-meta {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trending-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.trending-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
}

.trending-pill:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-load-more {
    display: block;
    margin: 28px auto 0;
    padding: 12px 28px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold-light);
    font-weight: 700;
    cursor: pointer;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: wait;
}

.article-page {
    max-width: 720px;
}

.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.ai-tag {
    color: var(--gold-light);
}

.article-hero-img {
    margin: 20px 0 28px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.content-prose {
    line-height: 1.75;
    color: var(--text);
}

.content-prose h2 {
    margin: 1.5em 0 0.5em;
    font-size: 1.25rem;
}

.content-prose p {
    margin-bottom: 1em;
    color: var(--text-muted);
}

.content-prose a {
    color: var(--gold-light);
}

.source-badge {
    color: var(--gold-light);
    font-weight: 600;
}

.article-lead a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.article-lead a:hover,
.news-card-excerpt-smartlink[data-smartlink-read]:hover {
    color: var(--gold-light);
}

.article-lead a.smartlink-read-pending,
.news-card-excerpt-smartlink.smartlink-read-pending {
    color: var(--gold-light);
}

.article-lead a.smartlink-read-pending::after,
.news-card-excerpt-smartlink.smartlink-read-pending::after {
    content: ' · Tap again for full article';
    font-weight: 600;
    font-size: 0.88em;
}

.news-card-excerpt-smartlink[data-smartlink-read] {
    cursor: pointer;
}

.source-read-more a {
    font-weight: 700;
    cursor: pointer;
}

.source-read-more a.smartlink-read-pending {
    color: var(--gold-light);
}

.source-read-more a.smartlink-read-pending::after {
    content: ' · Tap again for full article';
    font-weight: 600;
    font-size: 0.88em;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.share-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-right: 4px;
}

.share-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
}

.share-btn:hover {
    border-color: var(--gold);
}

.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.home-news-section {
    padding-top: 4px;
    margin-bottom: 8px;
}

.news-grid--home {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch;
}

.news-grid--home .news-card {
    height: 100%;
    border-radius: 10px;
}

.news-grid--home .news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.news-grid--home .news-card-title {
    flex: 1;
    margin-bottom: 0;
}

.news-grid--home .news-card-meta {
    margin-top: auto;
    padding-top: 6px;
}

@media (max-width: 639px) {
    .news-grid--home .news-card-link > picture {
        aspect-ratio: 4 / 3;
    }

    .news-grid--home .news-card-body {
        padding: 8px 8px 10px;
    }

    .news-grid--home .news-card-title {
        font-size: 0.78rem;
        line-height: 1.28;
        min-height: 2.95em;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-grid--home .news-card-excerpt {
        display: none;
    }

    .news-grid--home .news-card-meta {
        font-size: 0.65rem;
        line-height: 1.3;
        padding-top: 4px;
    }

    .news-grid--home .badge-trending,
    .news-grid--home .badge-sport {
        font-size: 0.55rem;
        padding: 2px 5px;
        margin-bottom: 4px;
    }
}

@media (min-width: 640px) {
    .news-grid--home {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid--home {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .news-grid--home .news-card-body {
        padding: 16px;
    }

    .news-grid--home .news-card-title {
        font-size: 1.05rem;
        min-height: 0;
        -webkit-line-clamp: 2;
    }

    .news-grid--home .news-card-excerpt {
        display: -webkit-box;
    }

    .news-grid--home .news-card-meta {
        font-size: 0.8rem;
    }
}

.home-news-more {
    margin: 20px 0 0;
    text-align: center;
}

.btn-more-news {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-more-news:hover {
    background: var(--gold);
    color: var(--bg);
}

/* —— Live TV page —— */
.live-tv-page {
    padding: 16px 0 48px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.12), transparent),
        var(--bg);
}

.live-tv-container {
    max-width: 1280px;
}

.live-tv-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.live-tv-topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-tv-topbar-icon {
    font-size: 2rem;
    line-height: 1;
}

.live-tv-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 2.75rem);
    letter-spacing: 0.06em;
    line-height: 1;
    margin: 0;
}

.live-tv-tagline {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.live-tv-broadcast-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.live-tv-on-air {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--live);
}

.live-tv-on-air-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    animation: pulse 1.2s infinite;
}

.live-tv-wall-clock {
    font-family: 'Bebas Neue', monospace;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    letter-spacing: 0.12em;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
}

.live-tv-sync {
    margin-bottom: 16px;
}

.live-tv-layout {
    display: grid;
    gap: 20px;
}

@media (min-width: 1024px) {
    .live-tv-layout {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }
}

.live-tv-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.live-tv-screen {
    aspect-ratio: 16 / 9;
    min-height: min(56vw, 520px);
    cursor: pointer;
}

.live-tv-screen .live-tv-play {
    width: 88px;
    height: 88px;
    border-width: 4px;
}

.live-tv-scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.4) 2px,
        rgba(0, 0, 0, 0.4) 4px
    );
}

.live-tv-overlay {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
}

.live-tv-overlay--top {
    top: 0;
}

.live-tv-overlay--bottom {
    top: auto;
    bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    align-items: flex-end;
}

.live-tv-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--live);
    box-shadow: 0 4px 16px rgba(255, 59, 59, 0.5);
}

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

.live-tv-match-clock {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.live-tv-center {
    z-index: 2;
}

.live-tv-matchline {
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
}

.live-tv-now-playing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-tv-now-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.65);
}

.live-tv-now-playing strong {
    font-size: 0.9rem;
    color: var(--gold-light);
}

.live-tv-quick-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.live-tv-quick-score-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.06em;
}

.live-tv-control-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #0d1a14, #06100c);
    border-top: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.live-tv-control-bar::-webkit-scrollbar {
    display: none;
}

.live-tv-control-bar > * {
    flex-shrink: 0;
}

.live-tv-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.live-tv-ctrl:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.live-tv-ctrl--play {
    background: var(--live);
    border-color: transparent;
    color: #fff;
}

.live-tv-ctrl--play:hover {
    filter: brightness(1.1);
    color: #fff;
}

.live-tv-ctrl--icon {
    padding: 8px 10px;
}

.live-tv-ctrl--icon.is-muted {
    opacity: 0.5;
}

.live-tv-quality {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.live-tv-quality-btn {
    padding: 8px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.live-tv-quality-btn.is-active {
    background: var(--gold);
    color: #0a2018;
}

.live-tv-control-spacer {
    flex: 1 1 auto;
    min-width: 4px;
}

.live-tv-phase {
    flex-shrink: 1;
    min-width: 0;
    max-width: 38%;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-tv-control-actions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

@media (max-width: 520px) {
    .live-tv-control-bar {
        gap: 6px;
        padding: 8px 10px;
    }

    .live-tv-ctrl--play span {
        display: none;
    }

    .live-tv-ctrl--play {
        padding: 8px 10px;
    }

    .live-tv-quality-btn {
        padding: 8px 7px;
        font-size: 0.62rem;
    }

    .live-tv-ctrl--icon {
        padding: 8px 9px;
    }

    .live-tv-phase {
        font-size: 0.65rem;
        max-width: 32%;
    }
}

@media (max-width: 360px) {
    .live-tv-phase {
        max-width: 28%;
    }
}

.live-tv-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.live-tv-scoreboard-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.live-tv-scoreboard-team--away {
    text-align: center;
}

.live-tv-team-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.live-tv-team-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.live-tv-scoreboard-center {
    text-align: center;
    padding: 0 8px;
}

.live-tv-scoreboard-league {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.live-tv-scoreboard-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--gold-light);
}

.live-tv-scoreboard-score--soon {
    font-size: 1.25rem;
    font-family: inherit;
    font-weight: 800;
}

.live-tv-scoreboard-minute {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--live);
    font-weight: 700;
}

.live-tv-scoreboard-minute span:last-child {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.live-tv-sidebar {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 16px;
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
}

.live-tv-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.live-tv-sidebar-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    animation: pulse 1.2s infinite;
}

.live-tv-channel-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.live-tv-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.live-tv-channel-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-deep);
}

.live-tv-channel-thumb--logos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
}

.live-tv-channel-thumb--logos img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.live-tv-channel-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-tv-channel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.live-tv-channel:hover,
.live-tv-channel.is-active {
    border-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, var(--bg-elevated));
}

.live-tv-channel-live {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--live);
}

.live-tv-channel-teams {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
}

.live-tv-channel-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.live-tv-channel-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--gold-light);
}

.live-tv-channel-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 12px 0;
}

.live-tv-sidebar-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 14px;
}

.live-broadcast-spot {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-top: 4px;
}

.live-broadcast-spot__media {
    position: relative;
    flex-shrink: 0;
}

.live-broadcast-spot__thumb {
    display: block;
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-deep);
}

.live-broadcast-spot__thumb--logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    height: 68px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--bg-deep), var(--bg-card));
}

.live-broadcast-spot__thumb--logos img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.live-broadcast-spot__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--live);
    color: #fff;
}

.live-broadcast-spot__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.live-broadcast-spot__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
}

.live-broadcast-spot__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.player-wrap .live-broadcast-spot {
    margin-top: 12px;
}

.live-tv-frame:fullscreen {
    border-radius: 0;
    max-height: 100vh;
}

.live-tv-frame:fullscreen .live-tv-screen {
    min-height: calc(100vh - 56px);
    aspect-ratio: unset;
    height: calc(100vh - 56px);
}
