:root {
    color-scheme: dark;
    --bg-color: #0d1012;
    --bg-gradient: radial-gradient(circle at 78% 8%, rgba(0, 255, 136, 0.12), transparent 34%),
        radial-gradient(circle at 12% 18%, rgba(0, 204, 255, 0.1), transparent 28%),
        linear-gradient(135deg, #0d1012, #15161d 58%, #0b1214);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --text-soft: rgba(210, 255, 232, 0.72);
    --text-strong: #f6fbff;
    --accent-color: #00ff88;
    /* Neon Green */
    --accent-secondary: #00ccff;
    /* Neon Blue */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.1);
    --surface-bg: rgba(255, 255, 255, 0.06);
    --surface-bg-strong: rgba(10, 16, 23, 0.88);
    --field-bg: rgba(0, 0, 0, 0.26);
    --header-bg: rgba(13, 16, 18, 0.82);
    --footer-bg: rgba(10, 10, 12, 0.8);
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --button-text-on-accent: #04110b;
    --font-main: 'Inter', 'Noto Sans KR', sans-serif;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg-color: #f6f8fb;
        --bg-gradient: radial-gradient(circle at 76% 7%, rgba(0, 174, 111, 0.13), transparent 32%),
            radial-gradient(circle at 10% 18%, rgba(0, 132, 196, 0.1), transparent 27%),
            linear-gradient(135deg, #ffffff, #f3f7fb 58%, #eef7f4);
        --text-main: #152028;
        --text-muted: #637181;
        --text-soft: #637181;
        --text-strong: #101820;
        --accent-color: #00a96b;
        --accent-secondary: #007db8;
        --glass-bg: rgba(255, 255, 255, 0.82);
        --glass-border: rgba(20, 35, 48, 0.12);
        --card-hover: rgba(0, 169, 107, 0.08);
        --surface-bg: rgba(255, 255, 255, 0.72);
        --surface-bg-strong: rgba(255, 255, 255, 0.9);
        --field-bg: rgba(255, 255, 255, 0.86);
        --header-bg: rgba(255, 255, 255, 0.88);
        --footer-bg: rgba(255, 255, 255, 0.8);
        --shadow-soft: rgba(24, 44, 64, 0.13);
        --button-text-on-accent: #ffffff;
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-color: #f6f8fb;
    --bg-gradient: radial-gradient(circle at 76% 7%, rgba(0, 174, 111, 0.13), transparent 32%),
        radial-gradient(circle at 10% 18%, rgba(0, 132, 196, 0.1), transparent 27%),
        linear-gradient(135deg, #ffffff, #f3f7fb 58%, #eef7f4);
    --text-main: #152028;
    --text-muted: #637181;
    --text-soft: #637181;
    --text-strong: #101820;
    --accent-color: #00a96b;
    --accent-secondary: #007db8;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(20, 35, 48, 0.12);
    --card-hover: rgba(0, 169, 107, 0.08);
    --surface-bg: rgba(255, 255, 255, 0.72);
    --surface-bg-strong: rgba(255, 255, 255, 0.9);
    --field-bg: rgba(255, 255, 255, 0.86);
    --header-bg: rgba(255, 255, 255, 0.88);
    --footer-bg: rgba(255, 255, 255, 0.8);
    --shadow-soft: rgba(24, 44, 64, 0.13);
    --button-text-on-accent: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.13), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #00ccaa);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--accent-color);
}

.highlight {
    color: var(--accent-color);
}

.desktop-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: none;
    overflow-x: auto;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: var(--surface-bg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a {
    flex: 0 0 auto;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 11px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.92rem;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.desktop-nav a.active::after {
    display: none;
}

.global-search {
    order: 4;
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: var(--field-bg);
    overflow: hidden;
}

.global-search input {
    min-width: 0;
    width: 100%;
    height: 36px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    padding: 0 10px;
    font: inherit;
    font-size: 0.9rem;
}

.global-search button {
    width: 38px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.global-search button:hover {
    color: var(--text-main);
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-control {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--surface-bg);
    color: var(--text-muted);
}

.theme-control select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.theme-control select option {
    color: #17212b;
    background: #ffffff;
}

.auth-button {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--button-text-on-accent);
    padding: 9px 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.auth-button.secondary {
    background: var(--surface-bg);
    color: var(--text-main);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: var(--surface-bg);
    color: var(--text-muted);
    padding: 7px 11px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b8b91;
}

.status-pill.connected {
    color: #a7f3d0;
    border-color: rgba(0, 255, 136, 0.28);
    background: rgba(0, 255, 136, 0.08);
}

.status-pill.connected::before {
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
}

[hidden] {
    display: none !important;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.app-view {
    display: none;
}

.app-view.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 85, 0.2);
    color: #ff0055;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 85, 0.4);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #ff0055;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.match-info {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
}

.vs {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.match-time {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-weight: 600;
    font-family: monospace;
}

/* Sections */
.section-padding {
    padding: 60px 0;
}

.compact-section {
    padding-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.section-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-action {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
}

.icon-action:hover {
    border-color: rgba(0, 255, 136, 0.5);
    color: var(--accent-color);
}

.icon-action.spinning i {
    animation: spin 0.8s linear infinite;
}

.text-accent {
    color: var(--accent-color);
    margin-right: 10px;
}

.view-all {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--accent-color);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

#coupang-grid.grid-layout,
#tving-grid.grid-layout,
#wavve-grid.grid-layout,
#ott-grid.grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

#global-search-grid.grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

#coupang-grid.grid-layout.landscape-grid,
#global-search-grid.grid-layout.landscape-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

#tving-grid.grid-layout.landscape-grid,
#wavve-grid.grid-layout.landscape-grid,
#ott-grid.grid-layout.landscape-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

#ott-grid.netflix-rail-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.netflix-rail {
    min-width: 0;
}

.netflix-rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.netflix-rail-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(0.95rem, 1.45vw, 1.2rem);
    font-weight: 800;
}

.netflix-rail-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.netflix-rail-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.netflix-rail-button:hover {
    transform: translateY(-1px);
    border-color: var(--accent-color);
    background: rgba(34, 224, 138, 0.12);
}

.netflix-rail-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(160px, 14.5vw, 230px);
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 2px 2px 8px;
}

.netflix-rail-track::-webkit-scrollbar {
    display: none;
}

.netflix-rail-card {
    scroll-snap-align: start;
    border-radius: 8px;
}

#ott-grid .netflix-rail-card .card-image {
    aspect-ratio: 16 / 9;
    height: auto;
}

#ott-grid .netflix-rail-card .card-content {
    padding: 8px 9px 9px;
}

#ott-grid .netflix-rail-card .match-teams {
    font-size: 0.78rem;
    line-height: 1.25;
}

#ott-grid .netflix-rail-card .match-meta {
    display: none;
}

@media (max-width: 980px) {
    #ott-grid.netflix-rail-layout {
        gap: 24px;
    }

    .netflix-rail-header {
        margin-bottom: 10px;
    }

    .netflix-rail-actions {
        display: none;
    }

    .netflix-rail-track {
        grid-auto-columns: clamp(145px, 42vw, 210px);
        gap: 8px;
        margin-inline: -4px;
        padding-inline: 4px;
        scroll-snap-type: x mandatory;
    }
}

@media (max-width: 520px) {
    .netflix-rail-track {
        grid-auto-columns: minmax(138px, 54vw);
    }

    #ott-grid .netflix-rail-card .card-content {
        padding: 7px 8px 8px;
    }
}

@media (max-width: 520px) and (orientation: portrait) {
    .netflix-rail-track {
        grid-auto-columns: auto;
        align-items: start;
    }

    #ott-grid .netflix-rail-card {
        width: clamp(178px, 62vw, 230px);
    }

    #ott-grid .netflix-rail-portrait-card {
        width: clamp(102px, 31vw, 128px);
    }

    #ott-grid .netflix-rail-portrait-card .card-image {
        aspect-ratio: 2 / 3;
    }

    #ott-grid .netflix-rail-portrait-card .match-teams {
        font-size: 0.74rem;
    }
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-soft);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card:hover::after {
    opacity: 1;
}

.card-image,
.video-thumbnail {
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#coupang-grid .portrait-card .card-image,
#tving-grid .portrait-card .card-image,
#wavve-grid .portrait-card .card-image,
#ott-grid .portrait-card .card-image {
    height: auto;
    aspect-ratio: 2 / 3;
    background-size: cover !important;
}

#coupang-grid .landscape-card .card-image,
#tving-grid .landscape-card .card-image,
#wavve-grid .landscape-card .card-image,
#ott-grid .landscape-card .card-image {
    height: auto;
    aspect-ratio: 16 / 9;
}

#coupang-grid .glass-card,
#tving-grid .glass-card,
#wavve-grid .glass-card,
#ott-grid .glass-card {
    border-radius: 10px;
}

#coupang-grid .card-content,
#tving-grid .card-content,
#wavve-grid .card-content {
    padding: 12px;
}

#coupang-grid .match-teams,
#tving-grid .match-teams,
#wavve-grid .match-teams {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 7px;
}

#coupang-grid .match-meta,
#tving-grid .match-meta,
#wavve-grid .match-meta,
#ott-grid .match-meta {
    font-size: 0.78rem;
}

#ott-grid .match-meta .status {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#coupang-grid .category-badge,
#tving-grid .category-badge,
#wavve-grid .category-badge {
    top: 9px;
    left: 9px;
    font-size: 0.7rem;
    padding: 3px 7px;
}

#coupang-grid .play-overlay,
#tving-grid .play-overlay,
#wavve-grid .play-overlay {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.66);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card-action-button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.68);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-action-button:hover {
    background: rgba(0, 255, 136, 0.22);
    border-color: rgba(0, 255, 136, 0.45);
    transform: translateY(-1px);
}

.card-action-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.play-overlay {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.glass-card:hover .play-overlay {
    opacity: 1;
    transform: scale(1);
}

.card-content {
    padding: 20px;
}

.match-teams {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-teams span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vs-small {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status.live {
    color: #ff0055;
    font-weight: 700;
}

.loading-panel {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.loading-panel i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.score-ticker-section {
    padding: 36px 0 0;
}

.score-ticker-section + #live {
    padding-top: 44px;
}

.score-ticker {
    min-height: 54px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(4, 15, 10, 0.96), rgba(1, 8, 6, 0.96)),
        repeating-linear-gradient(90deg, rgba(0, 255, 136, 0.06) 0 1px, transparent 1px 8px);
    box-shadow:
        inset 0 0 20px rgba(0, 255, 136, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.42);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.score-ticker-label,
.score-ticker-updated {
    position: relative;
    z-index: 2;
    height: 100%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: rgba(2, 8, 6, 0.94);
}

.score-ticker-label {
    padding: 0 18px;
    color: var(--accent-color);
    font-weight: 800;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.52);
}

.score-ticker-updated {
    padding: 0 18px;
    color: rgba(210, 255, 232, 0.72);
    font-size: 0.82rem;
}

.score-ticker-window {
    min-width: 0;
    overflow: hidden;
}

.score-ticker-track {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    color: #dfffea;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.28);
    will-change: transform;
}

.score-ticker-track.is-animated {
    animation: score-ticker-scroll var(--ticker-duration, 42s) linear infinite;
    animation-delay: var(--ticker-delay, 0s);
}

.score-ticker-track.is-dragging {
    animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
    .score-ticker-track.is-animated:hover {
        animation-play-state: paused;
    }
}

.score-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
}

.score-ticker-item::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

.score-ticker-item.live::before {
    background: #ff0055;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.75);
}

.score-ticker-item.final::before {
    background: var(--accent-color);
}

.score-ticker-status {
    color: #fff;
    font-weight: 800;
}

.score-ticker-league,
.score-ticker-time {
    color: rgba(210, 255, 232, 0.66);
    font-size: 0.82rem;
    font-weight: 700;
}

.score-ticker-match {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f4fff9;
    font-weight: 800;
}

.score-ticker-separator {
    color: rgba(210, 255, 232, 0.52);
}

.score-ticker-team.winner {
    color: #ffe45c;
    text-shadow: 0 0 12px rgba(255, 228, 92, 0.55);
}

.score-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 24px;
}

.score-league-filter {
    margin-top: -14px;
}

.score-filter-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
}

.score-filter-chip span {
    color: var(--text-main);
    font-size: 0.78rem;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-filter-chip.active,
.score-filter-chip:hover {
    color: var(--text-main);
    border-color: rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.12);
}

.score-mode-toggle {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: -8px 0 22px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.score-mode-toggle button {
    min-width: 76px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.score-mode-toggle button.active,
.score-mode-toggle button:hover {
    color: #00130a;
    background: var(--accent-color);
}

.score-standings {
    margin: 0 0 26px;
}

.score-standings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.score-standings-header h3 {
    color: var(--text-main);
    font-size: 1.05rem;
}

.score-standings-header span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.score-standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.standing-card {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    overflow: hidden;
}

.standing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.standing-card-header h3 {
    min-width: 0;
    color: var(--text-main);
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standing-card-header span {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.standing-table-wrap {
    overflow-x: auto;
}

.standing-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.standing-table th,
.standing-table td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.standing-table th {
    color: var(--text-muted);
    font-weight: 700;
}

.standing-table td {
    color: var(--text-main);
}

.standing-table th:nth-child(2),
.standing-table td:nth-child(2) {
    text-align: left;
}

.standing-rank {
    color: var(--text-muted) !important;
    text-align: center !important;
}

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

.standing-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
}

.standing-team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standing-points {
    color: var(--accent-color) !important;
    font-weight: 900;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.score-group-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--text-muted);
}

.score-group-heading h3 {
    color: var(--text-main);
    font-size: 1.15rem;
}

.score-card {
    min-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-card[role="button"] {
    cursor: pointer;
}

.score-card[role="button"]:focus-visible {
    outline: 3px solid rgba(0, 255, 136, 0.5);
    outline-offset: 3px;
}

.score-card.live {
    border-color: rgba(255, 0, 85, 0.45);
    background: rgba(255, 0, 85, 0.08);
}

.score-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.score-league {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.score-status {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}

.score-status.live {
    color: #fff;
    background: rgba(255, 0, 85, 0.95);
}

.score-status.final {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

.score-status.scheduled {
    color: #00130a;
    background: var(--accent-color);
}

.score-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
}

.score-time,
.score-venue,
.score-note {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.score-board {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
}

.score-row.winner {
    color: var(--accent-color);
    font-weight: 800;
}

.score-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.score-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.score-team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-value {
    min-width: 36px;
    text-align: right;
    color: var(--text-main);
    font-size: 1.08rem;
    font-weight: 800;
}

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

@keyframes score-ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.status.upcoming {
    color: var(--accent-secondary);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: var(--footer-bg);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: #000;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* TVING */
.tving-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.tving-menu {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.tving-menu-scroll {
    display: grid;
    gap: 8px;
}

.tving-menu-scroll button,
.load-more-button {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--surface-bg);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
}

.tving-menu-scroll button:hover,
.load-more-button:hover {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.1);
}

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

.segment-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--surface-bg);
    color: var(--text-main);
    min-height: 34px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 700;
}

.segment-button.active,
.tving-menu-scroll button.active {
    border-color: rgba(0, 255, 136, 0.7);
    background: rgba(0, 255, 136, 0.14);
}

.tving-menu-scroll button.active {
    position: relative;
    box-shadow: inset 3px 0 0 var(--accent-color);
}

.tving-search {
    display: grid;
    margin-top: 10px;
}

.tving-search input,
.tving-select,
.tving-cookie-box input,
.tving-cookie-box textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--field-bg);
    color: var(--text-main);
    min-height: 38px;
    padding: 0 11px;
    font: inherit;
}

.tving-cookie-box {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tving-cookie-box textarea {
    min-height: 110px;
    margin: 8px 0;
    padding: 10px;
    resize: vertical;
}

.tving-cookie-box input {
    margin: 8px 0 0;
}

.tving-title {
    margin: 0 0 14px;
    font-size: 1.2rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tving-list-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tving-list-header .tving-title {
    margin-bottom: 0;
}

.tving-back-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    padding: 0;
    transition: all 0.2s ease;
}

.tving-back-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.load-more-button {
    width: 100%;
    margin-top: 18px;
}

.tving-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tving-popup-toggle {
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {

    .desktop-nav {
        order: 3;
        width: 100%;
        max-width: 100%;
        padding-top: 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .desktop-nav:not(.open) {
        display: flex;
    }

    .desktop-nav a {
        min-width: 104px;
        text-align: center;
        padding: 9px 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
    }

    .header-content {
        gap: 12px;
    }

    .global-search {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
    }

    .header-actions {
        gap: 8px;
    }

    .status-pill {
        display: none;
    }

    .auth-button {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .live-badge {
        margin: 0 auto 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .score-ticker-section {
        padding-top: 24px;
    }

    .score-ticker {
        min-height: 48px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .score-ticker-label {
        padding: 0 12px;
        font-size: 0.84rem;
    }

    .score-ticker-updated {
        display: none;
    }

    .score-ticker-track {
        font-size: 0.84rem;
        gap: 18px;
    }

    .tving-actions {
        justify-content: flex-end;
    }

    .tving-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tving-menu {
        position: static;
        gap: 8px;
        padding: 10px;
    }

    .tving-menu-scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tving-menu-scroll::-webkit-scrollbar {
        display: none;
    }

    .tving-menu-scroll button {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px;
        white-space: nowrap;
        font-size: 0.84rem;
    }

    .tving-search {
        margin-top: 0;
    }

    .tving-search input {
        min-height: 34px;
        font-size: 0.84rem;
    }

    .tving-cookie-box {
        margin-top: 0;
    }

    .tving-cookie-box summary {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-main);
        font-size: 0.84rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .tving-cookie-box[open] {
        flex-basis: min(320px, 82vw);
        align-self: start;
    }

    .tving-cookie-box textarea {
        min-height: 84px;
        width: min(320px, 82vw);
    }

    .tving-cookie-box input {
        min-height: 34px;
        width: min(320px, 82vw);
    }

    #coupang-grid.grid-layout,
    #tving-grid.grid-layout,
    #wavve-grid.grid-layout,
    #ott-grid.grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        gap: 12px;
    }

    #coupang-grid.grid-layout.landscape-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    #tving-grid.grid-layout.landscape-grid,
    #wavve-grid.grid-layout.landscape-grid,
    #ott-grid.grid-layout.landscape-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-login-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-login-modal:hover {
    color: var(--accent-color);
}

.close-modal:hover {
    color: var(--accent-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper video::cue {
    text-align: center;
}

.custom-subtitle-overlay {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 9%;
    width: min(84%, 1100px);
    transform: translateX(-50%);
    box-sizing: border-box;
    z-index: 3;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: pre-line;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}

.track-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.track-controls[hidden] {
    display: none;
}

.track-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.track-controls select {
    min-width: 180px;
    max-width: min(260px, 70vw);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 8px 10px;
}

.track-controls option {
    background: #181818;
    color: #fff;
}

.modal-status {
    min-height: 22px;
    margin: 7px 0 0;
    color: var(--text-muted);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.login-modal-content {
    max-width: 420px;
}

.score-detail-modal-content {
    max-width: 780px;
    max-height: min(82vh, 760px);
    overflow: auto;
    padding-top: 50px;
}

.close-score-detail-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.close-score-detail-modal:hover {
    border-color: rgba(0, 255, 136, 0.38);
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-color);
}

.score-detail-content {
    display: grid;
    gap: 16px;
}

.score-detail-header {
    display: grid;
    gap: 8px;
}

.score-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.score-detail-board {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.score-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.score-detail-team {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    font-weight: 700;
}

.score-detail-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.score-detail-score {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 800;
}

.score-detail-section {
    display: grid;
    gap: 10px;
}

.score-detail-section h4 {
    margin: 0;
    font-size: 1rem;
}

.score-detail-stat-grid,
.score-detail-leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.score-detail-stat,
.score-detail-leader {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.score-detail-stat strong,
.score-detail-leader strong {
    color: var(--text-main);
}

.score-detail-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-detail-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.score-detail-table th,
.score-detail-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
    white-space: nowrap;
}

.score-detail-table th:first-child,
.score-detail-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 148px;
    background: #1a1a1a;
    text-align: left;
}

.score-detail-table th {
    color: var(--text-muted);
    font-weight: 700;
}

.score-detail-table tr:last-child td {
    border-bottom: 0;
}

.score-detail-table-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.score-detail-table-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.score-detail-position {
    margin-left: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.score-detail-event-list {
    display: grid;
    gap: 8px;
}

.score-detail-event {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.score-detail-event.scoring {
    background: rgba(0, 255, 136, 0.1);
}

.score-detail-event strong {
    color: var(--accent-color);
}

.spotv-login-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.spotv-login-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 12px;
    font: inherit;
}

.spotv-login-form button {
    border: 0;
    border-radius: 8px;
    background: var(--accent-color);
    color: #04110b;
    padding: 12px;
    font-weight: 800;
    cursor: pointer;
}

#modal-title {
    margin-top: 15px;
    color: #fff;
    font-size: 1.2rem;
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
    color: var(--accent-color);
    font-size: 2rem;
}

/* --- Multi-View Grid --- */
.multi-view-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 19, 0.95);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.multi-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: white;
}

.multi-view-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-view-controls button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: black;
}

.multi-view-grid {
    flex: 1;
    display: grid;
    gap: 10px;
    width: 100%;
    height: 100%;
}

/* Grid Layout Logic */
.multi-view-grid[data-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.multi-view-grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.multi-view-grid[data-count="3"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.multi-view-grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.multi-view-grid[data-count="5"],
.multi-view-grid[data-count="6"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.multi-view-grid[data-count="7"],
.multi-view-grid[data-count="8"],
.multi-view-grid[data-count="9"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.video-cell {
    position: relative;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.video-cell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-cell-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-cell:hover .video-cell-header {
    opacity: 1;
}

.video-cell-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.close-cell-btn {
    background: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.close-cell-btn:hover {
    background: red;
}

/* --- Toggle Switch --- */
.view-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Access Gate */
.access-gate {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-gradient);
}

.access-gate[hidden] {
    display: none !important;
}

body.access-locked .glass-header,
body.access-locked main,
body.access-locked footer,
body.access-locked .multi-view-container,
body.access-locked #video-modal,
body.access-locked #login-modal {
    visibility: hidden;
    pointer-events: none;
}

.access-card {
    width: min(420px, 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(18, 22, 26, 0.88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    padding: 34px;
    text-align: center;
}

.access-mark {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--accent-color);
    color: #04110b;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.access-card h1 {
    font-size: 1.7rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.access-card p {
    color: var(--text-muted);
}

.access-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.access-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    padding: 14px;
    font: inherit;
}

.access-form input:focus {
    outline: 2px solid rgba(0, 255, 136, 0.34);
    border-color: rgba(0, 255, 136, 0.5);
}

.access-form button {
    border: 0;
    border-radius: 10px;
    background: var(--accent-color);
    color: #04110b;
    padding: 14px;
    font-weight: 800;
    cursor: pointer;
}

.access-status {
    min-height: 22px;
    margin-top: 14px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.app-update-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2200;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 14px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 10px;
    background: rgba(14, 18, 22, 0.94);
    color: var(--text-main);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
    font-size: 0.9rem;
}

.app-update-notice[hidden] {
    display: none;
}

.app-update-notice button {
    border: 0;
    border-radius: 8px;
    background: var(--accent-color);
    color: #04110b;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* Deployment marker for app update watcher verification. */

/* --- Build Web Apps redesign layer: sports command center --- */
:root {
    --bg-color: #070b0f;
    --bg-gradient:
        linear-gradient(180deg, rgba(7, 11, 15, 0.98) 0%, rgba(9, 13, 18, 0.98) 48%, rgba(5, 8, 12, 0.98) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 96px);
    --text-main: #f6fbff;
    --text-muted: #8f9cab;
    --text-soft: #c8d2de;
    --text-light: #f6fbff;
    --text-primary: #f6fbff;
    --accent-color: #22e08a;
    --accent-secondary: #33b8ff;
    --accent-warm: #ffd166;
    --danger: #ff4d72;
    --surface-1: rgba(14, 21, 29, 0.78);
    --surface-2: rgba(20, 29, 39, 0.76);
    --surface-3: rgba(28, 39, 52, 0.62);
    --glass-bg: var(--surface-1);
    --glass-border: rgba(177, 207, 239, 0.13);
    --card-hover: rgba(255, 255, 255, 0.075);
    --shadow-soft: 0 20px 70px rgba(0, 0, 0, 0.34);
    --shadow-card: 0 14px 38px rgba(0, 0, 0, 0.26);
    --radius-card: 8px;
    --radius-control: 8px;
}

body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(180deg, rgba(4, 7, 11, 0) 0%, rgba(4, 7, 11, 0.68) 78%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 94px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 72px),
        var(--bg-gradient);
    letter-spacing: 0;
}

.background-glow {
    inset: 0;
    width: auto;
    height: auto;
    background:
        linear-gradient(120deg, rgba(34, 224, 138, 0.08), transparent 34%, rgba(51, 184, 255, 0.07) 68%, transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
    opacity: 0.7;
    z-index: -2;
}

.container {
    max-width: 1320px;
    padding: 0 24px;
}

.glass-header {
    background:
        linear-gradient(180deg, rgba(7, 11, 15, 0.92), rgba(7, 11, 15, 0.76)),
        rgba(7, 11, 15, 0.88);
    border-bottom: 1px solid rgba(177, 207, 239, 0.13);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 12px 0;
}

.header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
}

.logo {
    grid-column: 1;
    grid-row: 1;
    min-height: 40px;
    padding: 0 2px;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #061015;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 28px rgba(34, 224, 138, 0.22);
}

.highlight,
.text-accent {
    color: var(--accent-color);
}

.desktop-nav {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 4px;
    gap: 4px;
    border-color: rgba(177, 207, 239, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.desktop-nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 6px;
    color: #aab5c4;
    font-size: 0.84rem;
    font-weight: 800;
}

.desktop-nav a:hover {
    color: #f7fbff;
    background: rgba(255, 255, 255, 0.075);
}

.desktop-nav a.active {
    color: #061015;
    background: linear-gradient(135deg, var(--accent-color), #78f0bd);
    box-shadow: 0 7px 22px rgba(34, 224, 138, 0.18);
}

.global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    height: 42px;
    border-color: rgba(177, 207, 239, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(3, 7, 10, 0.48);
}

.global-search input {
    height: 40px;
    padding: 0 14px;
    color: var(--text-main);
    font-size: 0.93rem;
}

.global-search input::placeholder,
.tving-search input::placeholder {
    color: #718091;
}

.global-search button {
    width: 44px;
    height: 40px;
    color: var(--accent-secondary);
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 8px;
}

.auth-button,
.spotv-login-form button,
.access-form button,
.btn-primary {
    border-radius: var(--radius-control);
    background: linear-gradient(135deg, var(--accent-color), #89f2c0);
    color: #061015;
    box-shadow: 0 8px 22px rgba(34, 224, 138, 0.18);
}

.auth-button.secondary,
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    box-shadow: none;
}

.status-pill {
    border-color: rgba(177, 207, 239, 0.13);
    background: rgba(255, 255, 255, 0.045);
    color: #a9b6c5;
}

.section-padding {
    padding: 46px 0;
}

.compact-section {
    padding-top: 18px;
}

.score-ticker-section + #live {
    padding-top: 34px;
}

.section-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(177, 207, 239, 0.1);
}

.section-header h2 {
    font-size: clamp(1.32rem, 1.1rem + 0.7vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section-actions {
    gap: 10px;
}

.icon-action,
.segment-button,
.score-filter-chip,
.tving-menu-scroll button,
.load-more-button,
.tving-back-button {
    border-radius: var(--radius-control);
    border-color: rgba(177, 207, 239, 0.14);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-main);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-action:hover,
.segment-button:hover,
.score-filter-chip:hover,
.tving-menu-scroll button:hover,
.load-more-button:hover,
.tving-back-button:hover {
    border-color: rgba(34, 224, 138, 0.46);
    background: rgba(34, 224, 138, 0.11);
    color: var(--accent-color);
}

.grid-layout {
    gap: 18px;
}

.glass-card,
.score-card,
.standing-card,
.modal-content,
.access-card,
.loading-panel {
    border-radius: var(--radius-card);
    border-color: var(--glass-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--surface-1);
    box-shadow: var(--shadow-card);
}

.glass-card {
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.glass-card::after {
    background:
        linear-gradient(135deg, rgba(34, 224, 138, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(51, 184, 255, 0.1), transparent 38%);
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 224, 138, 0.34);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.card-image,
.video-thumbnail {
    height: 174px;
    background-color: #0c1118;
}

.card-image::before,
.video-thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.48) 100%);
    pointer-events: none;
    z-index: 1;
}

.top10-rank {
    position: absolute;
    left: 10px;
    bottom: 6px;
    z-index: 2;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.82;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.58);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.card-content {
    padding: 15px;
}

.match-teams {
    color: #f7fbff;
    font-size: 1.02rem;
    line-height: 1.38;
}

.match-meta,
.video-card .date {
    color: var(--text-muted);
}

.category-badge,
.duration,
.score-status {
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(2, 7, 11, 0.72);
    color: #eef6ff;
}

.play-overlay {
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #061015;
    box-shadow: 0 10px 26px rgba(34, 224, 138, 0.28);
}

.card-action-button {
    border-radius: 8px;
    background: rgba(2, 7, 11, 0.72);
    color: #f5fbff;
}

#coupang-grid.grid-layout,
#tving-grid.grid-layout,
#wavve-grid.grid-layout,
#ott-grid.grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 16px;
}

#global-search-grid.grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

#coupang-grid.grid-layout.landscape-grid,
#global-search-grid.grid-layout.landscape-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

#tving-grid.grid-layout.landscape-grid,
#wavve-grid.grid-layout.landscape-grid,
#ott-grid.grid-layout.landscape-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

#coupang-grid .glass-card,
#tving-grid .glass-card,
#wavve-grid .glass-card,
#ott-grid .glass-card {
    border-radius: var(--radius-card);
}

.score-ticker-section {
    padding: 28px 0 0;
}

.score-ticker {
    min-height: 56px;
    border-color: rgba(34, 224, 138, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(5, 13, 12, 0.98), rgba(4, 9, 10, 0.98)),
        repeating-linear-gradient(90deg, rgba(34, 224, 138, 0.12) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
    box-shadow:
        inset 0 0 26px rgba(34, 224, 138, 0.08),
        0 16px 36px rgba(0, 0, 0, 0.26);
}

.score-ticker-label,
.score-ticker-updated {
    background: rgba(2, 7, 9, 0.96);
}

.score-ticker-label {
    color: var(--accent-warm);
    text-shadow: 0 0 14px rgba(255, 209, 102, 0.38);
}

.score-ticker-track {
    color: #eafff4;
    text-shadow: 0 0 10px rgba(34, 224, 138, 0.24);
}

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

.score-ticker-team.winner,
.standing-points {
    color: var(--accent-warm) !important;
}

.score-filter,
.score-mode-toggle {
    margin-bottom: 18px;
}

.score-filter-chip.active,
.segment-button.active,
.tving-menu-scroll button.active,
.score-mode-toggle button.active {
    border-color: rgba(34, 224, 138, 0.64);
    background: linear-gradient(135deg, rgba(34, 224, 138, 0.22), rgba(51, 184, 255, 0.12));
    color: #f7fbff;
}

.score-mode-toggle {
    border-color: rgba(177, 207, 239, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.score-mode-toggle button {
    border-radius: 6px;
}

.score-card {
    min-height: 204px;
    padding: 16px;
}

.score-card.live {
    border-color: rgba(255, 77, 114, 0.46);
    background:
        linear-gradient(180deg, rgba(255, 77, 114, 0.12), rgba(255, 255, 255, 0.018)),
        var(--surface-1);
}

.score-row.winner {
    color: var(--accent-warm);
}

.tving-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
}

.tving-menu {
    top: 108px;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(12, 18, 25, 0.86);
}

.tving-menu-scroll button {
    justify-content: flex-start;
    padding: 0 12px;
    text-align: left;
    color: #c7d2df;
}

.tving-search input,
.tving-select,
.tving-cookie-box input,
.tving-cookie-box textarea,
.spotv-login-form input,
.access-form input,
.track-controls select {
    border-radius: var(--radius-control);
    border-color: rgba(177, 207, 239, 0.14);
    background: rgba(3, 7, 11, 0.56);
    color: var(--text-main);
}

.tving-title {
    font-size: 1.05rem;
    color: #edf6ff;
}

.modal {
    background-color: rgba(2, 5, 8, 0.88);
}

.modal-content {
    background:
        linear-gradient(180deg, rgba(18, 25, 34, 0.98), rgba(8, 12, 18, 0.98));
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.56);
}

.video-wrapper {
    border-radius: var(--radius-card);
}

.track-controls {
    padding: 10px 0 0;
}

.switch {
    width: 44px;
    height: 24px;
}

.slider {
    background-color: rgba(177, 207, 239, 0.24);
}

.slider:before {
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
}

input:checked+.slider {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.loading-spinner,
.loading-panel i {
    color: var(--accent-color);
}

.access-gate {
    background:
        linear-gradient(180deg, rgba(6, 10, 14, 0.96), rgba(6, 10, 14, 0.99)),
        var(--bg-gradient);
}

.access-card {
    max-width: 430px;
    border-radius: 8px;
}

.app-update-notice {
    border-color: rgba(34, 224, 138, 0.28);
    border-radius: 8px;
    background: rgba(12, 18, 25, 0.95);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(51, 184, 255, 0.78);
    outline-offset: 2px;
}

.desktop-nav a:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(51, 184, 255, 0.62);
}

@media (max-width: 980px) {
    .header-content {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .desktop-nav {
        grid-column: 1 / -1;
        grid-row: 3;
        order: initial;
    }

    .global-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }
}

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

    .glass-header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.02rem;
    }

    .desktop-nav {
        min-height: 40px;
        padding: 0;
        gap: 8px;
        border: 0;
        background: transparent;
    }

    .desktop-nav a {
        min-width: auto;
        min-height: 36px;
        padding: 8px 12px;
        border: 1px solid rgba(177, 207, 239, 0.12);
        background: rgba(255, 255, 255, 0.045);
        font-size: 0.82rem;
    }

    .global-search {
        height: 40px;
    }

    .section-padding {
        padding: 34px 0;
    }

    .score-ticker-section {
        padding-top: 22px;
    }

    .section-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .grid-layout,
    .score-grid {
        gap: 14px;
    }

    .score-ticker {
        min-height: 50px;
    }

    .score-ticker-item {
        min-height: 50px;
    }

    #coupang-grid.grid-layout,
    #tving-grid.grid-layout,
    #wavve-grid.grid-layout,
    #ott-grid.grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    }

    #coupang-grid.grid-layout.landscape-grid,
    #global-search-grid.grid-layout.landscape-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    #tving-grid.grid-layout.landscape-grid,
    #wavve-grid.grid-layout.landscape-grid,
    #ott-grid.grid-layout.landscape-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }

    .tving-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tving-menu {
        position: static;
        top: auto;
        padding: 10px;
    }

    .tving-menu-scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tving-menu-scroll::-webkit-scrollbar {
        display: none;
    }

    .tving-menu-scroll button {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px;
        white-space: nowrap;
        text-align: center;
        font-size: 0.84rem;
    }
}

@media (max-width: 520px) {
    .header-actions .auth-button {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.78rem;
    }

    .section-actions {
        align-items: center;
        gap: 8px;
    }

    .score-ticker-label {
        padding: 0 10px;
    }

    .score-ticker-track {
        font-size: 0.8rem;
    }
}

/* Sports command-center pass: bring the primary screen closer to the concept */
#sports-view.app-view.active {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    column-gap: 18px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

#sports-view > section {
    grid-column: 2;
    min-width: 0;
}

#sports-view > section .container {
    max-width: none;
    padding: 0;
}

.sports-command-rail {
    position: sticky;
    top: 116px;
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    margin-top: 28px;
    padding: 12px;
    border: 1px solid rgba(177, 207, 239, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
        rgba(10, 16, 23, 0.88);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.sports-command-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(34, 224, 138, 0.12), transparent 40%),
        linear-gradient(315deg, rgba(51, 184, 255, 0.08), transparent 42%);
    pointer-events: none;
}

.sports-rail-brand,
.sports-rail-nav,
.sports-rail-pulse {
    position: relative;
    z-index: 1;
}

.sports-rail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(177, 207, 239, 0.1);
}

.sports-rail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(34, 224, 138, 0.22), rgba(51, 184, 255, 0.14));
    color: var(--accent-color);
    box-shadow: inset 0 0 0 1px rgba(34, 224, 138, 0.18);
}

.sports-rail-brand strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.91rem;
    line-height: 1.2;
}

.sports-rail-brand span:not(.sports-rail-icon) {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sports-rail-nav {
    display: grid;
    gap: 7px;
}

.sports-rail-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sports-rail-nav a i {
    width: 16px;
    color: #7f91a4;
    text-align: center;
}

.sports-rail-nav a:hover,
.sports-rail-nav a.active {
    border-color: rgba(34, 224, 138, 0.32);
    background: rgba(34, 224, 138, 0.1);
    color: var(--text-strong);
}

.sports-rail-nav a:hover {
    transform: translateX(2px);
}

.sports-rail-nav a:hover i,
.sports-rail-nav a.active i {
    color: var(--accent-color);
}

.sports-rail-pulse {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(34, 224, 138, 0.2);
    border-radius: 8px;
    background: rgba(2, 7, 11, 0.42);
}

.sports-rail-pulse span {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 14px rgba(34, 224, 138, 0.85);
}

.sports-rail-pulse strong {
    color: var(--text-strong);
    font-size: 0.8rem;
}

.sports-rail-pulse small {
    grid-column: 2;
    color: var(--text-muted);
    font-size: 0.72rem;
}

#sports-view .score-ticker-section {
    padding-top: 28px;
}

#sports-view .score-ticker {
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border-color: rgba(34, 224, 138, 0.34);
    background:
        linear-gradient(180deg, rgba(5, 13, 12, 0.96), rgba(4, 9, 10, 0.98)),
        repeating-linear-gradient(90deg, rgba(34, 224, 138, 0.12) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
}

#sports-view .score-ticker-label {
    align-self: stretch;
    justify-content: center;
    min-width: 128px;
    padding: 0 14px;
    border-right: 1px solid rgba(34, 224, 138, 0.18);
}

#sports-view .score-ticker-updated {
    position: absolute;
    top: 6px;
    right: 10px;
    height: auto;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(34, 224, 138, 0.18);
    border-radius: 999px;
    background: rgba(2, 8, 6, 0.74);
    color: rgba(210, 255, 232, 0.62);
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
}

#sports-view .score-ticker-window {
    padding: 18px 8px 8px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

#sports-view .score-ticker-window.is-dragging {
    cursor: grabbing;
}

#sports-view .score-ticker-track {
    align-items: stretch;
    gap: 10px;
}

#sports-view .score-ticker-item {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 7px 14px;
    border: 1px solid rgba(177, 207, 239, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.048);
    box-shadow: inset 0 0 18px rgba(34, 224, 138, 0.035);
}

#sports-view .score-ticker-item::before {
    align-self: center;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    box-shadow: 0 0 12px currentColor;
}

#sports-view .score-ticker-match {
    color: var(--text-strong);
    font-size: 0.91rem;
    font-weight: 800;
}

#sports-view #live.section-padding {
    padding-top: 36px;
}

#sports-view .section-header {
    min-height: 68px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(177, 207, 239, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

#sports-view .section-header h2 {
    font-size: clamp(1.18rem, 1rem + 0.5vw, 1.55rem);
}

#sports-view .grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
}

#sports-view #channels .grid-layout,
#sports-view #highlights .grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}

#sports-view .glass-card {
    overflow: hidden;
}

#sports-view .card-image,
#sports-view .video-thumbnail {
    height: 164px;
}

:root[data-theme="light"] .background-glow {
    background: radial-gradient(circle, rgba(0, 169, 107, 0.1), transparent 70%);
}

:root[data-theme="light"] body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(238, 247, 244, 0.46) 78%),
        repeating-linear-gradient(90deg, rgba(20, 35, 48, 0.025) 0 1px, transparent 1px 94px),
        repeating-linear-gradient(0deg, rgba(20, 35, 48, 0.02) 0 1px, transparent 1px 72px),
        var(--bg-gradient);
}

:root[data-theme="light"] .glass-header {
    background: var(--header-bg);
    border-bottom-color: rgba(20, 35, 48, 0.11);
    box-shadow: 0 18px 50px rgba(24, 44, 64, 0.1);
}

:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .desktop-nav a:hover,
:root[data-theme="light"] .desktop-nav a.active,
:root[data-theme="light"] .tving-back-button,
:root[data-theme="light"] .social-icons a {
    background: rgba(20, 35, 48, 0.07);
    color: var(--text-main);
}

:root[data-theme="light"] .desktop-nav {
    border-color: rgba(20, 35, 48, 0.13);
    background: rgba(255, 255, 255, 0.76);
}

:root[data-theme="light"] .desktop-nav a {
    color: #34495c;
    font-weight: 750;
}

:root[data-theme="light"] .desktop-nav a:hover,
:root[data-theme="light"] .desktop-nav a.active {
    color: #ffffff;
    border-color: rgba(0, 143, 90, 0.38);
    background: linear-gradient(135deg, #008f5a, #007db8);
    box-shadow: 0 8px 18px rgba(0, 143, 90, 0.18);
}

:root[data-theme="light"] .sports-command-rail {
    border-color: rgba(20, 35, 48, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 252, 0.72)),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(24, 44, 64, 0.11);
}

:root[data-theme="light"] .sports-command-rail::before {
    background:
        linear-gradient(135deg, rgba(0, 169, 107, 0.1), transparent 40%),
        linear-gradient(315deg, rgba(0, 125, 184, 0.08), transparent 42%);
}

:root[data-theme="light"] .sports-rail-icon {
    background: linear-gradient(135deg, rgba(0, 169, 107, 0.14), rgba(0, 125, 184, 0.1));
}

:root[data-theme="light"] .sports-rail-nav a:hover,
:root[data-theme="light"] .sports-rail-nav a.active {
    background: rgba(0, 169, 107, 0.09);
}

:root[data-theme="light"] .sports-rail-pulse {
    background: rgba(255, 255, 255, 0.64);
}

:root[data-theme="light"] #sports-view .score-ticker {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 247, 0.96)),
        repeating-linear-gradient(90deg, rgba(0, 169, 107, 0.1) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(0deg, rgba(20, 35, 48, 0.04) 0 1px, transparent 1px 9px);
}

:root[data-theme="light"] #sports-view .score-ticker-updated {
    background: rgba(255, 255, 255, 0.84);
    color: #506172;
}

:root[data-theme="light"] #sports-view .score-ticker-item,
:root[data-theme="light"] #sports-view .section-header {
    border-color: rgba(20, 35, 48, 0.11);
    background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="light"] #sports-view .score-ticker-track {
    color: #1d2c38;
    text-shadow: none;
}

:root[data-theme="light"] #sports-view .score-ticker-league {
    color: #009b61;
}

:root[data-theme="light"] #sports-view .score-ticker-status {
    color: #b98000;
}

:root[data-theme="light"] #sports-view .score-ticker-item.live .score-ticker-status {
    color: #d82f56;
}

:root[data-theme="light"] .score-ticker-team-row {
    color: #1e3344;
}

:root[data-theme="light"] .score-ticker-team-row.winner {
    color: #0b7b50;
}

:root[data-theme="light"] .score-ticker-team-name,
:root[data-theme="light"] .score-ticker-team-score {
    text-shadow: none;
}

:root[data-theme="light"] .score-ticker-team-id img {
    filter: drop-shadow(0 1px 2px rgba(20, 35, 48, 0.22));
}

:root[data-theme="light"] .score-ticker-team-initials {
    background: rgba(0, 125, 184, 0.1);
    color: #176188;
}

:root[data-theme="light"] .score-card,
:root[data-theme="light"] .standing-card {
    border-color: rgba(20, 35, 48, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 12px 30px rgba(24, 44, 64, 0.09);
}

:root[data-theme="light"] .glass-card:not(.tving-menu) {
    border-color: rgba(20, 35, 48, 0.2);
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.74),
        0 12px 30px rgba(24, 44, 64, 0.1);
}

:root[data-theme="light"] .glass-card:not(.tving-menu)::after {
    background:
        linear-gradient(135deg, rgba(0, 169, 107, 0.08), transparent 36%),
        linear-gradient(315deg, rgba(0, 125, 184, 0.06), transparent 42%);
}

:root[data-theme="light"] .card-content {
    border-top: 1px solid rgba(20, 35, 48, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .match-teams,
:root[data-theme="light"] .video-card h3 {
    color: #162635;
}

:root[data-theme="light"] .match-meta,
:root[data-theme="light"] .video-card .date,
:root[data-theme="light"] .vs-small {
    color: #5c6f7f;
}

:root[data-theme="light"] .loading-panel,
:root[data-theme="light"] .empty-state {
    border-color: rgba(20, 35, 48, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: #405467;
    box-shadow: 0 12px 30px rgba(24, 44, 64, 0.08);
}

:root[data-theme="light"] .loading-panel i {
    color: #008f5a;
}

:root[data-theme="light"] .score-card.live {
    border-color: rgba(216, 47, 86, 0.28);
    background: rgba(255, 245, 248, 0.9);
}

:root[data-theme="light"] .score-league,
:root[data-theme="light"] .score-group-heading,
:root[data-theme="light"] .score-time,
:root[data-theme="light"] .score-venue,
:root[data-theme="light"] .score-note,
:root[data-theme="light"] .score-detail-meta,
:root[data-theme="light"] .standing-card-header span,
:root[data-theme="light"] .standing-rank {
    color: #5c6f7f !important;
}

:root[data-theme="light"] .score-card h3,
:root[data-theme="light"] .score-team,
:root[data-theme="light"] .score-value,
:root[data-theme="light"] .score-detail-content h3,
:root[data-theme="light"] .score-detail-team,
:root[data-theme="light"] .score-detail-score,
:root[data-theme="light"] .standing-card-header h3,
:root[data-theme="light"] .standing-table td {
    color: #162635;
}

:root[data-theme="light"] .score-row.winner,
:root[data-theme="light"] .standing-points {
    color: #008f5a !important;
}

:root[data-theme="light"] .score-status,
:root[data-theme="light"] .score-status.final {
    color: #223342;
    background: rgba(20, 35, 48, 0.08);
}

:root[data-theme="light"] .score-detail-board,
:root[data-theme="light"] .score-detail-stat,
:root[data-theme="light"] .score-detail-leader,
:root[data-theme="light"] .score-detail-event {
    background: rgba(238, 244, 249, 0.86);
}

:root[data-theme="light"] .close-score-detail-modal {
    border-color: rgba(20, 35, 48, 0.14);
    background: rgba(238, 244, 249, 0.9);
    color: #223342;
}

:root[data-theme="light"] .score-detail-stat strong,
:root[data-theme="light"] .score-detail-leader strong {
    color: #162635;
}

:root[data-theme="light"] .score-detail-table-wrap {
    border-color: rgba(20, 35, 48, 0.12);
}

:root[data-theme="light"] .score-detail-table th,
:root[data-theme="light"] .score-detail-table td {
    border-bottom-color: rgba(20, 35, 48, 0.1);
}

:root[data-theme="light"] .score-detail-table th:first-child,
:root[data-theme="light"] .score-detail-table td:first-child {
    background: #f8fbfd;
}

:root[data-theme="light"] .score-detail-event.scoring {
    background: rgba(0, 169, 107, 0.12);
}

:root[data-theme="light"] .score-filter-chip,
:root[data-theme="light"] .score-mode-toggle {
    border-color: rgba(20, 35, 48, 0.13);
    background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="light"] .score-filter-chip {
    color: #405467;
}

:root[data-theme="light"] .score-filter-chip span {
    color: #172b3b;
    background: rgba(20, 35, 48, 0.08);
}

:root[data-theme="light"] .score-filter-chip.active,
:root[data-theme="light"] .score-filter-chip:hover {
    border-color: rgba(0, 143, 90, 0.5);
    background: linear-gradient(135deg, rgba(0, 169, 107, 0.2), rgba(0, 125, 184, 0.1));
    color: #063c2a;
    box-shadow: inset 0 0 0 1px rgba(0, 143, 90, 0.08);
}

:root[data-theme="light"] .score-filter-chip.active span,
:root[data-theme="light"] .score-filter-chip:hover span {
    color: #ffffff;
    background: #008f5a;
}

:root[data-theme="light"] .score-mode-toggle button {
    color: #526678;
}

:root[data-theme="light"] .score-mode-toggle button.active,
:root[data-theme="light"] .score-mode-toggle button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #008f5a, #007db8);
    box-shadow: 0 6px 14px rgba(0, 143, 90, 0.18);
}

:root[data-theme="light"] .tving-menu.glass-card {
    border-color: rgba(20, 35, 48, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 252, 0.82)),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(24, 44, 64, 0.12);
}

:root[data-theme="light"] .tving-menu.glass-card::after {
    background:
        linear-gradient(135deg, rgba(0, 169, 107, 0.08), transparent 36%),
        linear-gradient(315deg, rgba(0, 125, 184, 0.06), transparent 42%);
}

:root[data-theme="light"] .tving-menu-scroll button,
:root[data-theme="light"] .segment-button,
:root[data-theme="light"] .load-more-button,
:root[data-theme="light"] .tving-back-button {
    border-color: rgba(20, 35, 48, 0.14);
    background: rgba(255, 255, 255, 0.78);
    color: #233748;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:root[data-theme="light"] .tving-menu-scroll button:hover,
:root[data-theme="light"] .segment-button:hover,
:root[data-theme="light"] .load-more-button:hover,
:root[data-theme="light"] .tving-back-button:hover {
    border-color: rgba(0, 143, 90, 0.42);
    background: rgba(0, 169, 107, 0.1);
    color: #063c2a;
}

:root[data-theme="light"] .tving-menu-scroll button.active,
:root[data-theme="light"] .segment-button.active {
    border-color: rgba(0, 143, 90, 0.52);
    background: linear-gradient(135deg, rgba(0, 169, 107, 0.2), rgba(0, 125, 184, 0.1));
    color: #063c2a;
    box-shadow:
        inset 3px 0 0 #008f5a,
        0 8px 18px rgba(0, 143, 90, 0.12);
}

:root[data-theme="light"] .tving-search input {
    border-color: rgba(20, 35, 48, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #172b3b;
}

:root[data-theme="light"] .tving-search input::placeholder {
    color: #6d7f90;
}

:root[data-theme="light"] .standing-card-header,
:root[data-theme="light"] .standing-table th,
:root[data-theme="light"] .standing-table td {
    border-color: rgba(20, 35, 48, 0.08);
}

:root[data-theme="light"] .standing-table th {
    color: #607080;
}

:root[data-theme="light"] .global-search,
:root[data-theme="light"] .tving-search input,
:root[data-theme="light"] .tving-select,
:root[data-theme="light"] .tving-cookie-box input,
:root[data-theme="light"] .tving-cookie-box textarea,
:root[data-theme="light"] .spotv-login-form input,
:root[data-theme="light"] .access-form input,
:root[data-theme="light"] .track-controls select {
    border-color: rgba(20, 35, 48, 0.13);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(20, 35, 48, 0.04);
}

:root[data-theme="light"] .tving-title {
    color: var(--text-main);
}

:root[data-theme="light"] .access-gate {
    background:
        linear-gradient(180deg, rgba(246, 248, 251, 0.96), rgba(246, 248, 251, 0.99)),
        var(--bg-gradient);
}

:root[data-theme="light"] .access-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 80px rgba(24, 44, 64, 0.14);
}

:root[data-theme="light"] .app-update-notice,
:root[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
    box-shadow: 0 24px 90px rgba(24, 44, 64, 0.16);
}

:root[data-theme="light"] #modal-title {
    color: #142433;
}

:root[data-theme="light"] .modal-status {
    color: #435669;
}

:root[data-theme="light"] #sports-view .score-ticker-time {
    color: rgba(80, 97, 114, 0.72);
}

:root[data-theme="light"] .score-ticker-summary {
    color: var(--text-main);
}

:root[data-theme="light"] .netflix-rail-header h3 {
    color: #142433;
}

:root[data-theme="light"] .netflix-rail-button {
    border-color: rgba(20, 35, 48, 0.16);
    background: rgba(255, 255, 255, 0.86);
    color: #203346;
}

@media (max-width: 1080px) {
    #sports-view.app-view.active {
        grid-template-columns: 176px minmax(0, 1fr);
        gap: 16px;
        padding: 0 18px 34px;
    }

    .sports-command-rail {
        top: 126px;
    }
}

@media (max-width: 980px) {
    #sports-view.app-view.active {
        display: block;
        max-width: none;
        padding: 0;
    }

    .sports-command-rail {
        display: none;
    }

    #sports-view > section .container {
        max-width: 1320px;
        padding: 0 24px;
    }

    #sports-view .score-ticker {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .netflix-rail-header h3 {
        color: #142433;
    }

    :root:not([data-theme="dark"]) .netflix-rail-button {
        border-color: rgba(20, 35, 48, 0.16);
        background: rgba(255, 255, 255, 0.86);
        color: #203346;
    }
}

@media (max-width: 768px) {
    #sports-view > section .container {
        padding: 0 16px;
    }

    #sports-view .score-ticker {
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr);
    }

    #sports-view .score-ticker-updated {
        top: 5px;
        right: 8px;
        padding: 2px 7px;
        font-size: 0.62rem;
    }

    #sports-view .score-ticker-window {
        padding: 16px 6px 6px;
    }

    #sports-view .score-ticker-item {
        min-height: 46px;
        padding: 6px 10px;
    }

    #sports-view .section-header {
        padding: 12px;
    }
}

/* Score ticker scoreboard cards */
#sports-view .score-ticker {
    min-height: 96px;
    position: relative;
    grid-template-columns: minmax(0, 1fr);
}

#sports-view .score-ticker-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    line-height: 1.1;
    text-transform: uppercase;
}

#sports-view .score-ticker-label i {
    font-size: 1rem;
}

#sports-view .score-ticker-label::after {
    content: "LIVE";
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border: 1px solid rgba(34, 224, 138, 0.28);
    border-radius: 999px;
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-shadow: none;
}

#sports-view .score-ticker-window {
    padding: 9px 8px;
}

#sports-view .score-ticker-track {
    gap: 8px;
}

#sports-view .score-ticker-item {
    display: inline-grid;
    grid-template-rows: auto 1fr auto;
    width: 178px;
    min-height: 76px;
    padding: 8px 10px;
    gap: 5px;
    white-space: normal;
    text-shadow: none;
}

#sports-view .score-ticker-item::before {
    display: none;
}

.score-ticker-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

#sports-view .score-ticker-league {
    overflow: hidden;
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sports-view .score-ticker-status {
    flex: 0 0 auto;
    color: var(--accent-warm);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
}

#sports-view .score-ticker-item.live .score-ticker-status {
    color: #ff4d72;
}

#sports-view .score-ticker-match {
    display: grid;
    gap: 3px;
    align-content: center;
    min-width: 0;
    font-size: 0.82rem;
}

.score-ticker-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    color: #eaf3ff;
}

.score-ticker-team-row.winner {
    color: #fff2a6;
}

.score-ticker-team-id {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.score-ticker-team-id img,
.score-ticker-team-initials {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.score-ticker-team-id img {
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.46));
}

.score-ticker-team-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(51, 184, 255, 0.14);
    color: #9fdcff;
    font-size: 0.58rem;
    font-weight: 900;
}

.score-ticker-team-name {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-ticker-team-score {
    min-width: 20px;
    color: inherit;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    text-align: right;
}

#sports-view .score-ticker-time {
    overflow: hidden;
    color: rgba(210, 255, 232, 0.54);
    font-size: 0.68rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-ticker-summary {
    display: block;
    overflow: hidden;
    max-width: 150px;
    color: #f6fbff;
    font-size: 0.78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    #sports-view .score-ticker {
        min-height: 78px;
        grid-template-columns: minmax(0, 1fr);
    }

    #sports-view .score-ticker-item {
        width: 156px;
        min-height: 66px;
        padding: 7px 9px;
    }

    #sports-view .score-ticker-match {
        font-size: 0.76rem;
    }

    .score-ticker-team-id img,
    .score-ticker-team-initials {
        width: 16px;
        height: 16px;
    }
}

/* Full-height playback layer */
#video-modal {
    padding: 8px;
    box-sizing: border-box;
}

#video-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 1920px);
    max-width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

#video-modal .close-modal {
    top: 12px;
    right: 14px;
    z-index: 8;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(2, 7, 11, 0.72);
    color: #fff;
    font-size: 26px;
    line-height: 32px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

@media (hover: hover) and (pointer: fine) {
    #video-modal .close-modal {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
        transition: opacity 0.16s ease, transform 0.16s ease, color 0.3s;
    }

    #video-modal.modal-close-visible .close-modal,
    #video-modal .close-modal:focus-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

#video-modal .video-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding-bottom: 0;
}

#video-modal .track-controls {
    flex: 0 0 auto;
    margin-top: 0;
}

#video-modal #modal-title {
    flex: 0 0 auto;
    margin: 2px 0 0;
    padding-right: 44px;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.25;
}

#video-modal .modal-status {
    flex: 0 0 auto;
    min-height: 0;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    #video-modal {
        padding: 0;
    }

    #video-modal .modal-content {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 8px;
        border-radius: 0;
    }

    #video-modal .close-modal {
        top: 10px;
        right: 10px;
    }
}
