/* TV MODE */
:root {
    --bg: #030806;
    --bg-2: #05100c;
    --dynamic-r: 31;
    --dynamic-g: 224;
    --dynamic-b: 138;
    --panel: rgba(5, 12, 10, 0.85);
    --panel-2: rgba(7, 18, 14, 0.95);
    --line: rgba(0, 255, 216, 0.12);
    --line-2: rgba(255, 255, 255, 0.08);
    --text: #f4f7f6;
    --muted: rgba(244, 247, 246, 0.72);
    --emerald: #1fe08a;
    --turquoise: #00ffd8;
    --emerald-soft: rgba(31, 224, 138, 0.16);
    --gold: #c8b26b;
    --gold-soft: rgba(200, 178, 107, 0.14);
    --danger: #ff6f6f;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --leaderboard-bg-image: url("../../../assets/images/kauzariyya.png");
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #010403;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

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

.tv-root {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.tv-app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: visible;
    background: transparent !important;
}

.tv-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent !important;
}

.tv-particles,
    opacity: 0.65;
}

.tv-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--dynamic-r, 31), var(--dynamic-g, 224), var(--dynamic-b, 138), 0.85) 0%, rgba(0, 255, 216, 0.45) 60%, transparent 100%);
    filter: blur(1.5px);
    will-change: transform, opacity;
    animation: tv-particle-float linear infinite;
}

.tv-particle.p1 { width: 8px; height: 8px; left: 12%; top: 80%; animation-duration: 18s; animation-delay: 0s; }
.tv-particle.p2 { width: 12px; height: 12px; left: 28%; top: 90%; animation-duration: 22s; animation-delay: -4s; }
.tv-particle.p3 { width: 6px; height: 6px; left: 45%; top: 85%; animation-duration: 16s; animation-delay: -2s; }
.tv-particle.p4 { width: 14px; height: 14px; left: 62%; top: 95%; animation-duration: 24s; animation-delay: -8s; }
.tv-particle.p5 { width: 9px; height: 9px; left: 78%; top: 82%; animation-duration: 20s; animation-delay: -5s; }
.tv-particle.p6 { width: 7px; height: 7px; left: 88%; top: 88%; animation-duration: 17s; animation-delay: -1s; }
.tv-particle.p7 { width: 10px; height: 10px; left: 35%; top: 75%; animation-duration: 21s; animation-delay: -7s; }
.tv-particle.p8 { width: 15px; height: 15px; left: 52%; top: 88%; animation-duration: 25s; animation-delay: -11s; }

@keyframes tv-particle-float {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    15%, 85% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-105vh) translateX(40px) scale(1.2);
        opacity: 0;
    }
}

.tv-geometric {
    display: none;
}

.tv-spotlight {
    position: absolute;
    inset: -12%;
    z-index: 0;
    opacity: .52;
    filter: blur(32px);
}

.tv-spotlight-a {
    background: linear-gradient(128deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .28), transparent 52%);
}

.tv-spotlight-b {
    background: linear-gradient(308deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .2), transparent 54%);
}

.tv-sweep {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: .18;
    background: linear-gradient(115deg, transparent 0%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .16) 42%, transparent 62%);
    transform: translateX(-28%);
    animation: tv-background-sweep 14s ease-in-out infinite;
}

@keyframes tv-background-sweep {
    0%, 100% {
        transform: translateX(-36%);
    }
    50% {
        transform: translateX(36%);
    }
}

.tv-slide-bumper {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    background:
        linear-gradient(90deg, rgba(1, 4, 3, .96), rgba(3, 22, 15, .74) 48%, rgba(1, 4, 3, .96)),
        rgba(0, 0, 0, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    isolation: isolate;
}

.tv-slide-bumper::before,
.tv-slide-bumper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.tv-slide-bumper::before {
    background: linear-gradient(90deg, transparent 0%, rgba(31, 224, 138, .9) 44%, rgba(0, 255, 216, .64) 54%, transparent 100%);
    transform: translateX(-120%) skewX(-18deg);
}

.tv-slide-bumper::after {
    background: radial-gradient(circle at center, rgba(31, 224, 138, .42), transparent 58%);
    mix-blend-mode: screen;
}

.tv-slide-bumper.is-active {
    visibility: visible;
    animation: tv-bumper-shell .5s ease both;
}

.tv-slide-bumper.is-active::before {
    animation: tv-bumper-green-flash .5s cubic-bezier(.18, .82, .22, 1) both;
}

.tv-slide-bumper.is-active::after {
    animation: tv-bumper-green-pulse .5s ease both;
}

.tv-slide-bumper-track {
    position: relative;
    z-index: 1;
    width: 100%;
    transform: translateX(110%);
}

.tv-slide-bumper.is-active .tv-slide-bumper-track {
    animation: tv-bumper-slide .5s cubic-bezier(.18, .82, .22, 1) both;
}

.tv-slide-bumper-text {
    display: block;
    width: 100%;
    color: #f4fff8;
    direction: rtl;
    font-family: Amiri, Cairo, Inter, system-ui, sans-serif;
    font-size: clamp(54px, 7vw, 128px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    text-shadow:
        0 0 18px rgba(31, 224, 138, .95),
        0 0 44px rgba(0, 255, 216, .5),
        0 18px 42px rgba(0, 0, 0, .72);
    white-space: nowrap;
}

@keyframes tv-bumper-shell {
    0% { opacity: 0; }
    15%, 88% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes tv-bumper-slide {
    0% { transform: translateX(110%) skewX(-8deg); }
    42%, 66% { transform: translateX(0) skewX(0deg); }
    100% { transform: translateX(-110%) skewX(8deg); }
}

@keyframes tv-bumper-green-flash {
    0% {
        opacity: 0;
        transform: translateX(-120%) skewX(-18deg);
    }
    18%, 52% {
        opacity: .92;
    }
    100% {
        opacity: 0;
        transform: translateX(120%) skewX(-18deg);
    }
}

@keyframes tv-bumper-green-pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(.96);
    }
    38%, 68% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.tv-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(31, 224, 138, 0.22), transparent 32%),
        radial-gradient(circle at 80% 15%, rgba(0, 255, 216, 0.16), transparent 28%),
        linear-gradient(180deg, #03120e 0%, #010405 100%);
}

.tv-bg-glow {
    position: absolute;
    width: 44vw;
    height: 44vw;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .35;
    mix-blend-mode: screen;
}

.tv-bg-glow-a {
    top: -15vw;
    left: -8vw;
    background: rgba(31, 224, 138, .26);
}

.tv-bg-glow-b {
    bottom: -18vw;
    right: -8vw;
    background: rgba(0, 255, 216, .18);
}

.tv-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .18;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 110%);
}

.tv-topbar {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 34px;
    pointer-events: none;
}

.tv-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tv-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3));
}

.tv-brand-kicker,
.tv-kicker {
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: 11px;
    color: rgba(244, 247, 246, .58);
    margin-bottom: 6px;
}

.tv-brand-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .03em;
}

.tv-clock {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--text);
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 216, 0.2);
    border-radius: 999px;
    background: rgba(5, 12, 10, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 216, 0.15), var(--shadow);
    backdrop-filter: blur(10px);
}

.tv-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
    padding: 108px 34px 36px;
    display: flex;
    flex-direction: column;
}

#slide-leaderboard {
    transition: none !important;
}

.tv-slide--active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.tv-slide-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.tv-slide-head h1 {
    font-size: clamp(34px, 4vw, 64px);
    line-height: .95;
    margin: 0;
    letter-spacing: -.03em;
}

.tv-pill {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 216, 0.22);
    background: linear-gradient(180deg, rgba(31, 224, 138, 0.15), rgba(0, 255, 216, 0.08));
    color: var(--text);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tv-intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.02) brightness(.74);
}

.tv-intro-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 52px;
    background: linear-gradient(180deg, rgba(3, 4, 5, 0.12) 0%, rgba(3, 4, 5, 0.62) 75%, rgba(3, 4, 5, 0.82) 100%);
}

.tv-intro-mark {
    width: 170px;
    height: 170px;
    object-fit: contain;
    align-self: flex-start;
    opacity: .96;
}

.tv-intro-copy {
    max-width: 780px;
    text-align: right;
}

.tv-intro-eyebrow {
    color: rgba(244, 247, 246, .7);
    letter-spacing: .24em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 18px;
}

.tv-intro-title {
    font-size: clamp(46px, 6vw, 92px);
    line-height: .94;
    font-weight: 800;
    letter-spacing: -.05em;
}

.tv-intro-subtitle {
    margin-top: 16px;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 23px);
    letter-spacing: .03em;
}

.tv-leaderboard {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}

.tv-card-rank {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(14, 22, 27, .92), rgba(6, 10, 12, .92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 24px;
    min-height: 120px;
}

.tv-card-rank:nth-child(1),
.tv-card-rank:nth-child(2),
.tv-card-rank:nth-child(3) {
    min-height: 140px;
    border-color: rgba(31, 224, 138, .24);
    background:
        linear-gradient(180deg, rgba(31, 224, 138, .10), rgba(14, 22, 27, .92)),
        linear-gradient(180deg, rgba(14, 22, 27, .92), rgba(6, 10, 12, .92));
}

.tv-rank-number {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(244, 247, 246, .6);
}

.tv-rank-team {
    margin-top: 12px;
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.tv-rank-score {
    margin-top: 10px;
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 900;
    line-height: 1;
}

.tv-rank-bar {
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), transparent);
}

.tv-schedule-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 0;
    width: 100%;
}

.tv-schedule-grid--single {
    grid-template-columns: 1fr;
}

.tv-panel {
    border-radius: var(--radius-xl);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 22px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tv-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-2);
}

.tv-panel-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.02em;
}

.tv-panel-head span {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tv-list {
    display: grid;
    gap: 12px;
    min-height: 0;
}

.tv-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.tv-list-column {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.tv-list--compact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
}

.tv-item {
    border-radius: 12px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .05);
    min-height: 108px;
}

.tv-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.tv-item-time {
    min-width: 0;
    color: rgba(244, 247, 246, .88);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-item-title {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.tv-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: rgba(244, 247, 246, .72);
    font-size: 13px;
    font-weight: 700;
}

.tv-item-meta span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .055);
    line-height: 1;
}

.tv-item-progress {
    height: 4px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.tv-item-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--emerald), var(--turquoise));
}

.tv-status {
    flex: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    background: rgba(255,255,255,.04);
    color: var(--muted);
}

.tv-status.upcoming {
    color: #d7e5dd;
    background: rgba(255,255,255,.04);
}

.tv-status.inprogress {
    color: var(--emerald);
    background: rgba(31, 224, 138, .12);
}


#slide-schedule {
    padding: 0 !important;
    overflow: hidden;
}

body.tv-schedule-active .tv-topbar,
body:has(#slide-schedule.tv-slide--active) .tv-topbar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tv-topbar[hidden] {
    display: none !important;
}

.tv-schedule {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.tv-schedule-cinema.tv-app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: visible;
    background: transparent !important;
}

.tv-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent !important;
}

/* DEEP AMBIENT CANVAS BACKDROP FROM GREEN SHAPES FLOW */
.stage-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--first-team-color, #10b981) 35%, #0c1220) 0%, color-mix(in srgb, var(--first-team-color, #10b981) 18%, #0c1220) 45%, #05080f 80%, #020306 100%);
    z-index: 1;
    transition: background 1.2s ease;
}

/* AMBIENT GLOW SPHERES */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: orbFloat 14s ease-in-out infinite alternate;
    transition: background 1.2s ease;
}

.glow-orb-1 {
    top: -10%;
    left: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--first-team-color, #10b981) 0%, transparent 70%);
}

.glow-orb-2 {
    bottom: -15%;
    right: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, color-mix(in srgb, var(--first-team-color, #10b981) 70%, #000) 0%, transparent 70%);
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(-40px, 70px) scale(0.9); }
}

/* FLOW CANVAS OVERLAY */
#flowCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.tv-schedule-cinema {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 22px 62px 18px;
    background:
        radial-gradient(circle at 14% 24%, color-mix(in srgb, var(--schedule-team-1, #ffe34a) 24%, transparent), transparent 28%),
        radial-gradient(circle at 86% 22%, color-mix(in srgb, var(--schedule-team-4, #2ee8ff) 25%, transparent), transparent 28%),
        radial-gradient(circle at 50% 92%, color-mix(in srgb, var(--schedule-team-3, #25ff8a) 22%, transparent), transparent 30%),
        linear-gradient(115deg, transparent 0 38%, color-mix(in srgb, var(--schedule-team-2, #ff42f5) 13%, transparent) 48%, transparent 60%),
        linear-gradient(180deg, #03070d 0%, #010306 100%);
    background-size: 130% 130%, 140% 140%, 125% 125%, 220% 220%, auto;
    animation: schedule-neon-drift 18s ease-in-out infinite;
    isolation: isolate;
}

.tv-schedule-cinema::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(700px) rotateX(60deg) translateY(18%);
    transform-origin: 50% 100%;
    opacity: .42;
    animation: schedule-grid-crawl 12s linear infinite;
}

.tv-schedule-cinema::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.68), transparent 22%, transparent 78%, rgba(0,0,0,.68)),
        linear-gradient(105deg, transparent 0 44%, color-mix(in srgb, var(--schedule-team-4, #2ee8ff) 18%, transparent) 48%, transparent 54%),
        radial-gradient(ellipse at 50% 50%, transparent 36%, rgba(0,0,0,.54) 100%);
    background-size: auto, 260% 100%, auto;
    animation: schedule-energy-sweep 7s ease-in-out infinite;
    pointer-events: none;
}

.tv-schedule-light {
    position: absolute;
    width: 285px;
    height: 492px;
    top: 118px;
    border-radius: 42% 42% 8% 8%;
    opacity: .56;
    filter: drop-shadow(0 0 34px currentColor);
    clip-path: polygon(50% 0, 100% 14%, 90% 82%, 50% 100%, 10% 82%, 0 14%);
    animation: schedule-banner-pulse 4.8s ease-in-out infinite;
}

.tv-schedule-light--gold {
    left: 30px;
    color: var(--schedule-team-1, #ffd229);
    border: 3px solid color-mix(in srgb, var(--schedule-team-1, #ffd229) 92%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--schedule-team-1, #ffd229) 16%, transparent), color-mix(in srgb, var(--schedule-team-1, #ffd229) 3%, transparent));
}

.tv-schedule-light--cyan {
    right: 30px;
    color: var(--schedule-team-4, #2aa8ff);
    border: 3px solid color-mix(in srgb, var(--schedule-team-4, #2aa8ff) 92%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--schedule-team-4, #2aa8ff) 16%, transparent), color-mix(in srgb, var(--schedule-team-4, #2aa8ff) 3%, transparent));
    animation-delay: -2.4s;
}

.tv-schedule-side {
    position: absolute;
    bottom: 92px;
    width: 118px;
    height: 168px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.9);
    font-weight: 900;
    letter-spacing: .18em;
    text-shadow: 0 0 18px currentColor;
}

.tv-schedule-side--left {
    left: 108px;
    color: var(--schedule-team-1, #ffd229);
}

.tv-schedule-side--right {
    right: 108px;
    color: var(--schedule-team-4, #2aa8ff);
}

.tv-schedule-side span {
    position: absolute;
    inset: 0;
    border: 1px solid currentColor;
    clip-path: polygon(50% 0, 100% 16%, 92% 76%, 50% 100%, 8% 76%, 0 16%);
    opacity: .42;
    animation: schedule-side-ring 3.6s ease-in-out infinite;
}

.tv-schedule-brand-card,
.tv-schedule-live-card {
    position: absolute;
    top: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(2, 8, 15, .82);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
}

.tv-schedule-brand-card {
    left: 28px;
    min-width: 360px;
    border-color: rgba(255,210,41,.22);
}

.tv-schedule-brand-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.tv-schedule-brand-card strong,
.tv-schedule-brand-card span {
    display: block;
    text-transform: uppercase;
}

.tv-schedule-brand-card strong {
    max-width: 310px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 22px;
    letter-spacing: .04em;
}

.tv-schedule-brand-card span {
    margin-top: 3px;
    color: #ffd229;
    font-weight: 900;
    letter-spacing: .18em;
}

.tv-schedule-live-card {
    right: 28px;
    min-width: 330px;
    justify-content: space-between;
    border-color: rgba(42,168,255,.24);
}

.tv-schedule-live-card > div {
    display: grid;
    gap: 7px;
}

.tv-schedule-live-card strong {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-transform: uppercase;
    font-size: 21px;
}

.tv-schedule-live-card strong span {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ff3939;
    box-shadow: 0 0 18px #ff3939;
    animation: live-pulse 1.2s ease-in-out infinite;
}

.tv-schedule-live-card small {
    color: #ffd229;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tv-schedule-live-card em {
    color: rgba(255,255,255,.92);
    font-style: normal;
    font-size: 24px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.tv-schedule-title-block {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 0;
    text-transform: uppercase;
}

.tv-schedule-title-block h2 {
    margin: 0;
    font-size: clamp(54px, 5.2vw, 88px);
    line-height: .86;
    letter-spacing: .08em;
    color: #f7f8fb;
    text-shadow: 0 0 24px rgba(255,255,255,.34), 0 8px 0 rgba(0,0,0,.34);
}

.tv-schedule-title-block div {
    margin-top: 6px;
    color: #ffd229;
    font-size: clamp(24px, 2.2vw, 38px);
    font-weight: 900;
    letter-spacing: .46em;
    text-shadow: 0 0 16px rgba(255,210,41,.48);
}

.tv-schedule-board {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100vw - 320px));
    height: min(740px, calc(100vh - 326px));
    margin: 14px auto 0;
    border: 2px solid var(--schedule-team-4, #2ee8ff);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 210, 41, .08), transparent 34%),
        linear-gradient(180deg, rgba(2, 12, 18, .94), rgba(0, 7, 12, .92));
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--schedule-team-1, #ffe34a) 44%, transparent),
        0 0 30px color-mix(in srgb, var(--schedule-team-4, #2ee8ff) 62%, transparent),
        0 0 64px color-mix(in srgb, var(--schedule-team-3, #25ff8a) 25%, transparent),
        0 0 64px color-mix(in srgb, var(--schedule-team-1, #ffe34a) 18%, transparent) inset,
        0 28px 80px rgba(0,0,0,.62);
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
    padding: 0 26px 18px;
    overflow: hidden;
}

.tv-schedule-board::before,
.tv-schedule-board::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tv-schedule-board::before {
    z-index: 0;
    background:
        linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--schedule-team-2, #ff42f5) 18%, transparent) 48%, transparent 72%),
        linear-gradient(180deg, color-mix(in srgb, var(--schedule-team-4, #2ee8ff) 8%, transparent), transparent 42%);
    transform: translateX(-72%) skewX(-18deg);
    animation: schedule-board-sweep 6.8s ease-in-out infinite;
}

.tv-schedule-board::after {
    z-index: 0;
    border: 1px solid color-mix(in srgb, var(--schedule-team-3, #25ff8a) 36%, transparent);
    box-shadow:
        0 0 20px color-mix(in srgb, var(--schedule-team-4, #2ee8ff) 28%, transparent) inset,
        0 0 34px color-mix(in srgb, var(--schedule-team-2, #ff42f5) 20%, transparent);
    opacity: .66;
    animation: schedule-board-breathe 3.8s ease-in-out infinite;
}

.tv-schedule-board > * {
    position: relative;
    z-index: 1;
}

.tv-schedule-board-head,
.tv-schedule-row {
    display: grid;
    grid-template-columns: 72px 188px minmax(0, 1fr) 210px 192px;
    align-items: center;
    gap: 18px;
}

.tv-schedule-board-head {
    height: 66px;
    padding-left: 90px;
    grid-template-columns: 188px minmax(0, 1fr) 210px 192px;
    color: #ffe34a;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 208, 255, .32);
    text-shadow: 0 0 12px rgba(255, 210, 41, .55);
}

.tv-schedule-page {
    display: grid;
    gap: 0;
}

.tv-schedule-row {
    min-height: 92px;
    border-bottom: 1px solid color-mix(in srgb, var(--row-neon) 36%, transparent);
    border-left: 3px solid color-mix(in srgb, var(--row-neon) 82%, transparent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--row-neon) 13%, transparent), transparent 48%, color-mix(in srgb, var(--row-neon) 5%, transparent));
    box-shadow: 10px 0 26px color-mix(in srgb, var(--row-neon) 7%, transparent) inset;
}

.tv-schedule-row.is-live {
    background: linear-gradient(90deg, color-mix(in srgb, var(--row-neon) 30%, transparent), color-mix(in srgb, var(--row-neon) 10%, transparent), transparent);
    box-shadow: 0 0 38px color-mix(in srgb, var(--row-neon) 28%, transparent) inset, 0 0 24px color-mix(in srgb, var(--row-neon) 24%, transparent);
    animation: schedule-live-row-glow 1.8s ease-in-out infinite;
}

.tv-schedule-row-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--row-neon);
    border: 1px solid var(--row-neon);
    text-shadow: 0 0 14px var(--row-neon);
    box-shadow: 0 0 18px color-mix(in srgb, var(--row-neon) 46%, transparent), inset 0 0 12px color-mix(in srgb, var(--row-neon) 20%, transparent);
    font-weight: 900;
    clip-path: polygon(50% 0, 100% 20%, 100% 80%, 50% 100%, 0 80%, 0 20%);
}

.tv-schedule-row-time {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-shadow: 0 0 16px rgba(255,255,255,.2);
}

.tv-schedule-row-program {
    min-width: 0;
}

.tv-schedule-row-program strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f8fb;
    font-size: 32px;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.tv-schedule-row-program span {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(244,247,246,.58);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tv-schedule-row-category {
    color: var(--row-neon);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 12px var(--row-neon);
}

.tv-status.upcoming {
    color: #2ee8ff;
    background: rgba(46,232,255,.11);
    border: 1px solid rgba(46,232,255,.34);
    box-shadow: 0 0 16px rgba(46,232,255,.12);
}

.tv-status.inprogress {
    color: #ffe34a;
    background: rgba(255,227,74,.14);
    border: 1px solid rgba(255,227,74,.5);
    box-shadow: 0 0 18px rgba(255,227,74,.18);
}

.tv-status.completed {
    color: #25ff8a;
    background: rgba(37,255,138,.14);
    border: 1px solid rgba(37,255,138,.55);
    box-shadow: 0 0 18px rgba(37,255,138,.18);
}

.tv-status.break {
    color: #ff4df3;
    background: rgba(255,77,243,.13);
    border: 1px solid rgba(255,77,243,.42);
    box-shadow: 0 0 18px rgba(255,77,243,.16);
}

.tv-schedule-stats {
    position: relative;
    z-index: 2;
    width: min(1500px, calc(100vw - 52px));
    height: 92px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(1, 8, 14, .9);
    border: 1px solid rgba(0, 208, 255, .24);
    box-shadow: 0 0 26px rgba(0,208,255,.16), 0 20px 60px rgba(0,0,0,.5);
}

.tv-schedule-stats div {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.tv-schedule-stats div:last-child {
    border-right: 0;
}

.tv-schedule-stats span {
    color: rgba(244,247,246,.72);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tv-schedule-stats strong {
    color: #ffe34a;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

@keyframes schedule-neon-drift {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%, 0 0;
        filter: saturate(1.08);
    }
    50% {
        background-position: 10% 8%, 88% 12%, 48% 86%, 100% 50%, 0 0;
        filter: saturate(1.24);
    }
}

@keyframes schedule-grid-crawl {
    0% {
        background-position: 0 0, 0 0;
        transform: perspective(700px) rotateX(60deg) translateY(18%);
    }
    100% {
        background-position: 0 72px, 72px 0;
        transform: perspective(700px) rotateX(60deg) translateY(18%);
    }
}

@keyframes schedule-energy-sweep {
    0%, 16% {
        background-position: 0 0, -130% 0, 0 0;
        opacity: 1;
    }
    52% {
        background-position: 0 0, 130% 0, 0 0;
        opacity: .82;
    }
    100% {
        background-position: 0 0, 130% 0, 0 0;
        opacity: 1;
    }
}

@keyframes schedule-banner-pulse {
    0%, 100% {
        opacity: .42;
        filter: drop-shadow(0 0 24px currentColor);
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: .72;
        filter: drop-shadow(0 0 48px currentColor);
        transform: translateY(-8px) scale(1.025);
    }
}

@keyframes schedule-side-ring {
    0%, 100% {
        opacity: .22;
        transform: scale(.94);
    }
    50% {
        opacity: .58;
        transform: scale(1.06);
    }
}

@keyframes schedule-board-sweep {
    0%, 24% {
        transform: translateX(-78%) skewX(-18deg);
        opacity: 0;
    }
    42%, 58% {
        opacity: .72;
    }
    82%, 100% {
        transform: translateX(78%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes schedule-board-breathe {
    0%, 100% {
        opacity: .48;
    }
    50% {
        opacity: .84;
    }
}

@keyframes schedule-live-row-glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.22);
    }
}

.tv-schedule-empty {
    height: calc(100vh - 360px);
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 12px;
}

.tv-schedule-empty strong {
    font-size: 42px;
    color: #fff;
}

.tv-schedule-empty span {
    color: var(--muted);
    font-size: 18px;
}

/* TV Minimal Schedule Mode */
.tv-schedule--minimal {
    background: radial-gradient(circle at top, rgba(22, 192, 141, 0.1) 0%, rgba(4, 16, 12, 0.95) 100%), #03070c !important;
    padding: 30px 48px !important;
}

.tv-schedule--minimal .tv-schedule-side,
.tv-schedule--minimal .tv-schedule-light,
.tv-schedule--minimal::before,
.tv-schedule--minimal::after {
    display: none !important;
}

.tv-schedule--minimal .tv-schedule-board {
    background: rgba(8, 20, 16, 0.85);
    border: 1px solid rgba(22, 192, 141, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(16px);
}

.tv-schedule--minimal .tv-schedule-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.tv-schedule--minimal .tv-schedule-row.is-live {
    background: rgba(22, 192, 141, 0.14) !important;
    border-left: 5px solid #16c08d;
}

.tv-schedule--minimal .tv-schedule-title-block h2 {
    color: #16c08d;
    letter-spacing: 0.15em;
}

@media (max-width: 1400px) {
    .tv-schedule-cinema {
        padding: 16px 24px 18px;
    }

    .tv-schedule-light,
    .tv-schedule-side {
        opacity: .18;
        transform: scale(.82);
        transform-origin: center;
    }

    .tv-schedule-light--gold {
        left: -92px;
    }

    .tv-schedule-light--cyan {
        right: -92px;
    }

    .tv-schedule-brand-card,
    .tv-schedule-live-card {
        top: 14px;
        padding: 9px 12px;
        min-width: 0;
    }

    .tv-schedule-brand-card {
        left: 14px;
        max-width: 260px;
    }

    .tv-schedule-brand-card img {
        width: 40px;
        height: 40px;
    }

    .tv-schedule-brand-card strong {
        max-width: 185px;
        font-size: 14px;
    }

    .tv-schedule-brand-card span,
    .tv-schedule-live-card small {
        font-size: 10px;
    }

    .tv-schedule-live-card {
        right: 14px;
        width: 250px;
    }

    .tv-schedule-live-card strong {
        font-size: 15px;
    }

    .tv-schedule-live-card em {
        font-size: 17px;
    }

    .tv-schedule-title-block {
        margin-top: 2px;
    }

    .tv-schedule-title-block h2 {
        font-size: 48px;
    }

    .tv-schedule-title-block div {
        font-size: 22px;
        letter-spacing: .34em;
    }

    .tv-schedule-board {
        width: calc(100vw - 48px);
        height: min(690px, calc(100vh - 250px));
        margin-top: 12px;
        padding-inline: 14px;
    }

    .tv-schedule-board-head,
    .tv-schedule-row {
        grid-template-columns: 48px 132px minmax(0, 1fr) 120px 126px;
        gap: 10px;
    }

    .tv-schedule-board-head {
        grid-template-columns: 132px minmax(0, 1fr) 120px 126px;
        padding-left: 58px;
        height: 58px;
        font-size: 13px;
    }

    .tv-schedule-row {
        min-height: 86px;
    }

    .tv-schedule-row-num {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .tv-schedule-row-time {
        font-size: 23px;
    }

    .tv-schedule-row-program strong {
        font-size: 23px;
    }

    .tv-schedule-row-program span {
        font-size: 11px;
    }

    .tv-schedule-row-category {
        font-size: 13px;
    }

    .tv-status {
        padding: 7px 10px;
        font-size: 10px;
        letter-spacing: .1em;
    }

    .tv-schedule-stats {
        width: calc(100vw - 48px);
        height: 78px;
        margin-top: 12px;
    }

    .tv-schedule-stats span {
        font-size: 10px;
    }

    .tv-schedule-stats strong {
        font-size: 27px;
    }
}

.tv-result-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.tv-place {
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(244, 247, 246, .65);
}

.tv-result-team {
    font-size: 18px;
    font-weight: 800;
}

.tv-result-chip {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(31, 224, 138, .10);
    color: var(--emerald);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tv-now {
    flex: 1;
    display: grid;
    grid-template-columns: 1.3fr .85fr;
    gap: 20px;
    min-height: 0;
}

.tv-now-main,
.tv-now-side .tv-card {
    border-radius: var(--radius-xl);
    background: var(--panel-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.tv-now-main {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.tv-now-main h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 88px);
    line-height: .92;
    letter-spacing: -.05em;
}

.tv-now-performer {
    margin-top: 18px;
    font-size: clamp(28px, 3vw, 50px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.tv-team-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 216, 0.22);
    background: linear-gradient(180deg, rgba(31, 224, 138, 0.15), rgba(0, 255, 216, 0.08));
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
}

.tv-now-side {
    display: grid;
    gap: 18px;
    min-height: 0;
}

.tv-card {
    padding: 26px;
}

.tv-card-label {
    color: rgba(244, 247, 246, .58);
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 14px;
}

.tv-card-value {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.02;
}

.tv-card-sub {
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
}

.tv-break {
    display: grid;
    place-items: center;
    height: 100%;
    text-align: center;
}

.tv-break h1 {
    margin: 0;
    font-size: clamp(54px, 8vw, 110px);
    letter-spacing: -.06em;
}

.tv-break p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 28px);
}

.tv-team-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-right: 10px;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(31, 224, 138, .12);
}

.tv-fade-enter {
    opacity: 0;
    transform: translateY(12px);
}

/* VS Leaderboard styles */
.tv-chart-legend {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.tv-legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.tv-legend-dot {
    width: 36px;
    height: 36px;
    border-radius: 99px;
    box-shadow: 0 0 25px currentColor;
}

.tv-chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    position: relative;
    z-index: 2;
    padding-inline: 40px;
    margin-bottom: 24px;
}

.tv-chart-gridlines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
    padding-inline: 40px;
    margin-bottom: 80px; /* offset axis height */
}

.tv-gridline {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.tv-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 2;
}

.tv-chart-row-wrapper {
    display: flex;
    flex-direction: column;
    animation: tv-card-float 8s ease-in-out infinite;
}

/* Stagger floating delays */
.tv-chart-bars .tv-chart-row-wrapper:nth-child(1) { animation-delay: 0s; }
.tv-chart-bars .tv-chart-row-wrapper:nth-child(2) { animation-delay: -2s; }
.tv-chart-bars .tv-chart-row-wrapper:nth-child(3) { animation-delay: -4s; }
.tv-chart-bars .tv-chart-row-wrapper:nth-child(4) { animation-delay: -6s; }

@keyframes tv-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.tv-chart-row {
    position: relative;
    display: flex;
    align-items: center;
    height: 110px;
}

.tv-chart-bar-bg {
    flex: 1;
    height: 84px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    position: relative;
    backdrop-filter: blur(16px);
    overflow: visible;
}

.tv-chart-bar-fill {
    height: 100%;
    border-radius: var(--radius-xl);
    background: var(--card-team-color);
    box-shadow: 
        0 0 25px rgba(var(--card-team-color-rgb, 59, 130, 246), 0.25),
        0 0 50px rgba(var(--card-team-color-rgb, 59, 130, 246), 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    width: 0%;
    transition: width 1s ease-out;
}

/* Sweep light strip on fill */
.tv-chart-bar-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: tv-card-light-sweep 5s linear infinite;
}

@keyframes tv-card-light-sweep {
    0% { left: -50%; }
    100% { left: 150%; }
}

.tv-chart-bar-badge {
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 16, 22, 0.95);
    border: 2px solid var(--card-team-color);
    border-radius: var(--radius-lg);
    padding: 12px 26px;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(var(--card-team-color-rgb), 0.4), var(--shadow);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-chart-bar-badge-arrow {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(10, 16, 22, 0.95);
    border-left: 2px solid var(--card-team-color);
    border-bottom: 2px solid var(--card-team-color);
}

.tv-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    padding-inline: 10px;
    position: relative;
    z-index: 2;
}

.tv-axis-tick {
    font-size: 28px;
    font-weight: 800;
    color: var(--muted);
}

/* Program Completion */
.tv-completion-panel {
    background: rgba(10, 16, 20, 0.5);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 20px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.tv-completion-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.tv-completion-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.tv-completion-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--emerald);
}

.tv-completion-bar-bg {
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
}

.tv-completion-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), #60a5fa);
    box-shadow: 0 0 15px var(--emerald);
    border-radius: 99px;
    transition: width 1s ease-out;
}

/* Ambient Background Effects */
.tv-dynamic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(var(--dynamic-r, 0), var(--dynamic-g, 255), var(--dynamic-b, 136), 0.15) 0%, transparent 70%);
    filter: blur(40px);
}

.tv-islamic-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.025;
    animation: tv-rotate-pattern 35s linear infinite;
    mix-blend-mode: overlay;
}

.tv-islamic-pattern svg {
    width: 70vh;
    height: 70vh;
    color: #ffffff;
}

.tv-light-beams {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.tv-light-beam {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.12;
    mix-blend-mode: screen;
    animation: tv-float-beam 25s ease-in-out infinite alternate;
}

.tv-light-beam-1 {
    background: radial-gradient(circle, rgba(var(--dynamic-r, 0), var(--dynamic-g, 255), var(--dynamic-b, 136), 0.3), transparent 75%);
    top: -15%;
    left: 10%;
}

.tv-light-beam-2 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 75%);
    bottom: -15%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes tv-rotate-pattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes tv-float-beam {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 12%) scale(1.15); }
}

@media (max-width: 1100px) {
    .tv-leaderboard,
    .tv-schedule-grid,
    .tv-now {
        grid-template-columns: 1fr;
    }

    .tv-vs-divider {
        display: none;
    }

    .tv-slide {
        padding-inline: 20px;
    }

    .tv-topbar {
        padding-inline: 18px;
    }

    .tv-intro-overlay {
        flex-direction: column;
        align-items: start;
        justify-content: end;
        gap: 22px;
    }

    .tv-intro-copy {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .tv-chart-container {
        padding-inline: 20px;
    }
    .tv-chart-legend {
        gap: 16px;
        margin-bottom: 20px;
    }
    .tv-legend-item {
        font-size: 16px;
        gap: 8px;
    }
    .tv-legend-dot {
        width: 16px;
        height: 16px;
    }
    .tv-chart-row {
        height: 50px;
    }
    .tv-chart-bar-bg {
        height: 36px;
    }
    .tv-chart-bar-badge {
        font-size: 14px;
        padding: 4px 10px;
        right: -16px;
    }
    .tv-axis-tick {
        font-size: 14px;
    }
}

/* =====================================================
   LEADERBOARD ONLY VIEW STYLES (BACKGROUNDS & LAYOUTS)
   ===================================================== */
#slide-leaderboard {
    transition: none !important;
}

body.tv-leaderboard-only .tv-topbar,
body.tv-leaderboard-only .tv-lower-third {
    display: none;
}

body.tv-leaderboard-only {
    background: #010403;
}

body.tv-leaderboard-only .tv-backdrop {
    opacity: 1;
    background:
        radial-gradient(circle at 50% 12%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .44), transparent 34%),
        radial-gradient(circle at 18% 82%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .24), transparent 30%),
        radial-gradient(circle at 84% 76%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .18), transparent 28%),
        linear-gradient(180deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .18), rgba(1, 3, 3, .98) 72%, #000101 100%);
}

body.tv-leaderboard-only .tv-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .76)),
        linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .2) 48%, rgba(0, 0, 0, .72)),
        var(--leaderboard-bg-image);
    background-size: cover;
    background-position: center;
    filter: saturate(.86) contrast(1.12) brightness(.72);
    opacity: .9;
    transform: scale(1.035);
}

body.tv-leaderboard-only .tv-particles {
    display: none !important;
}

body.tv-leaderboard-only .tv-geometric {
    display: none;
}

body.tv-leaderboard-only .tv-spotlight-a {
    background: linear-gradient(125deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .28), transparent 50%);
}

body.tv-leaderboard-only .tv-spotlight-b {
    background: linear-gradient(305deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .18), transparent 50%);
}

body.tv-leaderboard-only #slide-leaderboard {
    padding: 0 !important;
    align-items: center;
    justify-content: center;
}

.tv-floating-leaderboard {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 4;
    padding: 96px 94px;
    perspective: 2100px;
    perspective-origin: 50% 38%;
    transform-style: preserve-3d;
    isolation: isolate;
    overflow: hidden;
}

.tv-floating-leaderboard::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .7)),
        radial-gradient(circle at 50% 38%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .2), transparent 44%);
    pointer-events: none;
}

.tv-floating-leaderboard::after {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: -8%;
    height: 42%;
    z-index: -1;
    background:
        linear-gradient(rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .22) 1px, transparent 1px),
        linear-gradient(180deg, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .18), rgba(0, 0, 0, 0));
    background-size: 86px 34px, 86px 34px, 100% 100%;
    border-top: 1px solid rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .36);
    opacity: .48;
    transform: rotateX(72deg) translateY(72px) translateZ(-180px);
    transform-origin: center bottom;
    filter: drop-shadow(0 -12px 34px rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), .18));
    pointer-events: none;
}

.tv-floating-card-grid {
    width: min(1640px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-3deg) translateZ(70px);
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45));
}

.tv-float-card {
    --card-tilt-y: 0deg;
    --card-lift: -24px;
    --card-depth: 34px;
    position: relative;
    min-height: 548px;
    padding: 28px;
    border: 1px solid rgba(var(--team-color-rgb), .72);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(var(--team-color-rgb), .92) 0%, rgba(var(--team-color-rgb), .72) 54%, rgba(var(--team-color-rgb), .56) 100%),
        radial-gradient(circle at 50% 0%, rgba(var(--team-color-rgb), .96), transparent 52%);
    box-shadow:
        0 28px 64px rgba(var(--team-color-rgb), .24),
        0 0 44px rgba(var(--team-color-rgb), .2),
        inset 0 0 0 1px rgba(var(--team-color-rgb), .36);
    overflow: visible;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 22px;
    isolation: isolate;
    transform-style: preserve-3d;
    transform-origin: center center;
    animation: tv-card-levitate-3d 7.5s ease-in-out infinite;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.tv-float-card:nth-child(2) {
    animation-delay: -1.4s;
}

.tv-float-card:nth-child(3) {
    animation-delay: -2.8s;
}

.tv-float-card:nth-child(4) {
    animation-delay: -4.2s;
}

.tv-float-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(var(--team-color-rgb), .34) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(var(--team-color-rgb), .26) 0 1px, transparent 1px 100%);
    background-size: 42px 42px;
    opacity: .24;
    pointer-events: none;
    transform: translateZ(4px);
    z-index: -1;
}

.tv-float-card::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -54px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--team-color-rgb), .38), transparent 68%);
    filter: blur(18px);
    opacity: .82;
    transform: translateZ(calc(var(--card-depth) * -1)) rotateX(84deg);
    transform-origin: center top;
    z-index: -4;
}

.tv-float-card-glow {
    position: absolute;
    inset: 0;
    border-top: 7px solid rgba(var(--team-color-rgb), .86);
    border-radius: 8px;
    pointer-events: none;
    transform: translateZ(18px);
    box-shadow:
        inset 16px 0 26px rgba(var(--team-color-rgb), .2),
        inset -16px 0 26px rgba(255,255,255,.12);
    z-index: 2;
}

.tv-float-card-edge {
    position: absolute;
    pointer-events: none;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(var(--team-color-rgb), .74), rgba(var(--team-color-rgb), .36)),
        linear-gradient(90deg, rgba(255,255,255,.18), transparent);
    z-index: -3;
}

.tv-float-card-edge-right {
    top: 10px;
    right: calc(var(--card-depth) * -.5);
    bottom: 10px;
    width: var(--card-depth);
    transform: rotateY(90deg) translateZ(calc(var(--card-depth) * .5));
    transform-origin: left center;
}

.tv-float-card-edge-bottom {
    left: 10px;
    right: 10px;
    bottom: calc(var(--card-depth) * -.5);
    height: var(--card-depth);
    transform: rotateX(-90deg) translateZ(calc(var(--card-depth) * .5));
    transform-origin: center top;
}

.tv-float-rank {
    width: 100%;
    min-width: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(var(--team-color-rgb), .52);
    background: transparent;
    border-radius: 0;
    color: var(--card-ink);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    position: relative;
    z-index: 3;
    transform: translateZ(46px);
    text-shadow: 0 8px 18px rgba(var(--team-color-rgb), .24);
}

.tv-float-name {
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    color: var(--card-ink);
    font-family: Cairo, Inter, system-ui, sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.04;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    transform: translateZ(62px);
    text-shadow: 0 12px 28px rgba(var(--team-color-rgb), .28);
}

.tv-float-score {
    display: grid;
    gap: 10px;
    padding: 22px 0 20px;
    border-block: 1px solid rgba(var(--team-color-rgb), .42);
    position: relative;
    z-index: 3;
    transform: translateZ(72px);
}

.tv-float-score span {
    color: var(--card-ink);
    font-size: 94px;
    font-weight: 900;
    line-height: .82;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 10px 26px rgba(var(--team-color-rgb), .28);
}

.tv-float-score small {
    color: color-mix(in srgb, var(--card-ink) 72%, transparent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    transform: translateZ(52px);
}

.tv-float-meta {
    min-height: 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    color: color-mix(in srgb, var(--card-ink) 76%, transparent);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tv-float-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-float-meta strong {
    flex: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: .08em;
    border: 1px solid rgba(var(--team-color-rgb), .5);
}

.tv-float-meta strong.is-positive {
    background: rgba(var(--team-color-rgb), .36);
    color: var(--card-ink);
}

.tv-float-meta strong.is-negative {
    background: rgba(var(--team-color-rgb), .28);
    color: var(--card-ink);
}

.tv-float-card.is-empty {
    opacity: .58;
    filter: saturate(.75);
}

@keyframes tv-card-levitate-3d {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(var(--card-tilt-y)) rotateZ(0deg);
        box-shadow:
            0 28px 64px rgba(var(--team-color-rgb), .24),
            0 0 44px rgba(var(--team-color-rgb), .2),
            inset 0 0 0 1px rgba(var(--team-color-rgb), .36);
    }
    50% {
        transform: translateY(var(--card-lift)) translateZ(54px) rotateX(4.5deg) rotateY(calc(var(--card-tilt-y) * .82)) rotateZ(-.35deg);
        box-shadow:
            0 54px 98px rgba(var(--team-color-rgb), .34),
            0 0 76px rgba(var(--team-color-rgb), .28),
            inset 0 0 0 1px rgba(var(--team-color-rgb), .42);
    }
}

@keyframes tv-card-shimmer {
    0%, 18% {
        transform: translateX(-68%);
        opacity: 0;
    }
    42% {
        opacity: .75;
    }
    64%, 100% {
        transform: translateX(72%);
        opacity: 0;
    }
}

/* =====================================================
   LEADERBOARD LAYOUTS: ORBIT, PODIUM & STAGGERED STYLES
   ===================================================== */

@keyframes tv-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* 1. ORBIT LAYOUT (Radial Dials) */
.tv-style-orbit.tv-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 10px;
}

.tv-orbit-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    width: 100%;
    padding-inline: 40px;
}

.tv-orbit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: tv-card-float 8s ease-in-out infinite;
}

.tv-orbit-dial {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    background: rgba(14, 22, 27, 0.95);
    border: 1px solid var(--line);
}

.tv-orbit-progress {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mask-image: radial-gradient(circle, transparent 66%, black 67%);
    -webkit-mask-image: radial-gradient(circle, transparent 66%, black 67%);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
}

.tv-orbit-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tv-orbit-rank {
    font-size: 14px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tv-orbit-score {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-top: 6px;
    text-shadow: 0 0 20px var(--team-color);
}

.tv-orbit-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 2. PODIUM LAYOUT (3D Pedestals) */
.tv-style-podium.tv-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 10px;
}

.tv-podium-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.tv-podium-block {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 900px;
    padding-inline: 40px;
}

.tv-podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.tv-podium-col.podium-empty {
    visibility: hidden;
    pointer-events: none;
}

.tv-podium-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    color: #0b0f19;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    margin-bottom: -15px;
    transition: transform 0.3s ease;
}

.tv-podium-box {
    width: 100%;
    background: linear-gradient(180deg, rgba(var(--card-team-color-rgb, 31, 224, 138), 0.15) 0%, rgba(14, 22, 27, 0.95) 100%);
    border: 1px solid rgba(var(--card-team-color-rgb, 31, 224, 138), 0.3);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Specific heights and styles for 1st, 2nd, 3rd podium pedestals */
.podium-1st .tv-podium-box {
    height: 280px;
    background: linear-gradient(180deg, rgba(200, 178, 107, 0.2) 0%, rgba(14, 22, 27, 0.95) 100%);
    border-color: rgba(200, 178, 107, 0.5);
    box-shadow: 0 0 30px rgba(200, 178, 107, 0.15), var(--shadow);
}
.podium-1st .tv-podium-avatar {
    border-color: #c8b26b;
    box-shadow: 0 0 25px rgba(200, 178, 107, 0.4);
}

.podium-2nd .tv-podium-box {
    height: 210px;
}

.podium-3rd .tv-podium-box {
    height: 150px;
}

.tv-podium-num {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.podium-1st .tv-podium-num {
    color: rgba(200, 178, 107, 0.12);
}

.tv-podium-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tv-podium-team {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.tv-podium-score {
    font-size: 18px;
    font-weight: 900;
    color: var(--team-color);
}

/* Runners Up list for Podium style */
.tv-podium-runners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 900px;
    padding-inline: 40px;
}

.tv-runner-item {
    background: rgba(14, 22, 27, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    box-shadow: var(--shadow);
}

.tv-runner-rank {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
}

.tv-runner-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex: 1;
}

.tv-runner-score {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

/* 3. STAGGERED LAYOUT */
.tv-style-staggered.tv-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 10px;
    background: radial-gradient(circle at center, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), 0.22) 0%, transparent 75%) !important;
}

.tv-staggered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 170px);
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    padding-inline: 40px;
}

.tv-staggered-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(var(--card-team-color-rgb), 0.1) 0%, rgba(14, 22, 27, 0.95) 100%);
    border: 1px solid rgba(var(--card-team-color-rgb), 0.35);
    border-radius: var(--radius-xl);
    padding: 24px 30px;
    box-shadow: 0 10px 30px rgba(var(--card-team-color-rgb), 0.15), inset 0 0 15px rgba(255,255,255,0.02);
    animation: tv-card-float 8s ease-in-out infinite;
}

.tv-staggered-card.card-1 { grid-column: 1; grid-row: 1; animation-delay: 0s; }
.tv-staggered-card.card-2 { grid-column: 2; grid-row: 2; animation-delay: -2s; }
.tv-staggered-card.card-3 { grid-column: 3; grid-row: 1; animation-delay: -4s; }
.tv-staggered-card.card-4 { grid-column: 4; grid-row: 2; animation-delay: -6s; }

.tv-staggered-avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--team-color);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tv-staggered-rank {
    font-size: 16px;
    font-weight: 900;
    color: #0b0f19;
}

.tv-staggered-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tv-staggered-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.tv-staggered-score {
    font-size: 24px;
    font-weight: 900;
    color: var(--team-color);
}


/* =====================================================
   CINEMATIC STADIUM LEADERBOARD v2
   ===================================================== */

/* Stage Background */
body.tv-leaderboard-only #tvApp {
    background: radial-gradient(ellipse at 50% 20%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), 0.08) 0%, #020508 60%);
}

/* ===== STAGE HAZE ===== */
.stage-haze {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), 0.08), transparent 50%),
        linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* ===== CINEMA HEADER ===== */
.cinema-header {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cinema-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 28px;
    background: rgba(8, 12, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cinema-logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.cinema-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.cinema-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cinema-event-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cinema-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* LIVE Badge */
.cinema-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 20px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-family: 'Cairo', sans-serif;
    margin-left: 12px;
}

.cinema-live-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===== SCORE OVERLAY TABLE ===== */
.cinema-score-table {
    position: absolute;
    top: 85px;
    right: 40px;
    z-index: 18;
    width: 380px;
}

.score-table-inner {
    background: rgba(8, 12, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.score-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    padding: 10px 18px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Cairo', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.score-table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    padding: 10px 18px;
    font-family: 'Cairo', sans-serif;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s;
}

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

.score-table-row .st-rank strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--row-color);
    color: var(--row-color);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.score-table-row .st-team {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding-left: 6px;
}

.score-table-row .st-score {
    font-size: 22px;
    font-weight: 900;
    color: var(--row-color);
    text-align: right;
    text-shadow: 0 0 16px var(--row-color);
    font-variant-numeric: tabular-nums;
}

/* ===== PEDESTAL STAGE ===== */
.cinema-pedestal-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 80px;
    height: 100%;
    padding-bottom: 100px;
    position: relative;
    z-index: 5;
    perspective: 1200px;
}

.cinema-pedestal-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
}

/* ===== SPOTLIGHT BEAM ===== */
.cinema-spotlight-beam {
    position: absolute;
    top: -500px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 700px;
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.0) 0%,
        rgba(var(--team-rgb), 0.04) 20%,
        rgba(var(--team-rgb), 0.12) 50%,
        rgba(var(--team-rgb), 0.25) 80%,
        rgba(var(--team-rgb), 0.04) 100%
    );
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 1;
    filter: blur(8px);
    animation: spotlight-sway 8s ease-in-out infinite alternate;
}

.is-winner .cinema-spotlight-beam {
    width: 280px;
    filter: blur(6px);
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.0) 0%,
        rgba(var(--team-rgb), 0.08) 20%,
        rgba(var(--team-rgb), 0.22) 50%,
        rgba(var(--team-rgb), 0.4) 80%,
        rgba(var(--team-rgb), 0.06) 100%
    );
}

@keyframes spotlight-sway {
    0% { transform: translateX(-50%) skewX(-2deg); }
    100% { transform: translateX(-50%) skewX(2deg); }
}

/* ===== SCORE BADGE ===== */
.cinema-score-badge {
    position: relative;
    z-index: 10;
    margin-bottom: -10px;
}

.cinema-score-badge .badge-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 56px;
    padding: 0 20px;
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--team-color);
    border-radius: 14px;
    box-shadow:
        0 0 20px rgba(var(--team-rgb), 0.4),
        0 0 40px rgba(var(--team-rgb), 0.15),
        inset 0 0 12px rgba(var(--team-rgb), 0.1);
    text-shadow:
        0 0 12px var(--team-color),
        0 0 30px rgba(var(--team-rgb), 0.6);
}

/* ===== CYLINDRICAL PEDESTAL ===== */
.cinema-pedestal-wrapper {
    position: relative;
    width: 180px;
    height: var(--pedestal-height, 200px);
    transform-origin: bottom center;
    z-index: 6;
}

.cinema-pedestal {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: bottom center;
}

.pedestal-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.7) 0%,
        rgba(var(--team-rgb), 0.4) 30%,
        rgba(var(--team-rgb), 0.6) 60%,
        rgba(var(--team-rgb), 0.85) 100%
    );
    box-shadow:
        0 0 40px rgba(var(--team-rgb), 0.35),
        0 0 80px rgba(var(--team-rgb), 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.3),
        inset -20px 0 30px rgba(0, 0, 0, 0.2),
        inset 20px 0 30px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--team-rgb), 0.6);
    overflow: hidden;
}

/* Shiny reflection stripe on pedestal */
.pedestal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        transparent 60%
    );
    border-radius: 16px 0 0 16px;
}

/* Animated inner energy */
.pedestal-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        0deg,
        rgba(var(--team-rgb), 0.5) 0%,
        transparent 100%
    );
    animation: pedestal-energy 3s ease-in-out infinite alternate;
}

@keyframes pedestal-energy {
    0% { opacity: 0.6; height: 55%; }
    100% { opacity: 1; height: 65%; }
}

/* Top Disc of pedestal */
.pedestal-top-disc {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(var(--team-rgb), 0.8) 0%,
        rgba(var(--team-rgb), 0.5) 50%,
        rgba(var(--team-rgb), 0.3) 100%
    );
    border: 1px solid rgba(var(--team-rgb), 0.7);
    box-shadow:
        0 0 20px rgba(var(--team-rgb), 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Glow underneath pedestal */
.pedestal-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--team-rgb), 0.6);
    filter: blur(12px);
    z-index: -1;
}

/* ===== GLOWING BASE PLATFORM ===== */
.cinema-base-platform {
    position: relative;
    width: 260px;
    height: 40px;
    margin-top: -10px;
    z-index: 4;
}

.base-ring-outer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(var(--team-rgb), 0.6);
    box-shadow:
        0 0 20px rgba(var(--team-rgb), 0.3),
        0 0 50px rgba(var(--team-rgb), 0.15),
        inset 0 0 15px rgba(var(--team-rgb), 0.2);
    animation: ring-pulse 3s ease-in-out infinite alternate;
}

.base-ring-inner {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 195px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--team-rgb), 0.4);
    box-shadow: 0 0 12px rgba(var(--team-rgb), 0.2);
}

.base-glow-pool {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(var(--team-rgb), 0.4) 0%,
        rgba(var(--team-rgb), 0.1) 40%,
        transparent 70%
    );
    filter: blur(8px);
    animation: glow-pool-pulse 4s ease-in-out infinite alternate;
}

@keyframes ring-pulse {
    0% { box-shadow: 0 0 20px rgba(var(--team-rgb), 0.3), 0 0 50px rgba(var(--team-rgb), 0.15), inset 0 0 15px rgba(var(--team-rgb), 0.2); }
    100% { box-shadow: 0 0 35px rgba(var(--team-rgb), 0.5), 0 0 70px rgba(var(--team-rgb), 0.25), inset 0 0 25px rgba(var(--team-rgb), 0.35); }
}

@keyframes glow-pool-pulse {
    0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Winner ring enhancement */
.is-winner .base-ring-outer {
    border-width: 3px;
    border-color: rgba(var(--team-rgb), 0.9);
    box-shadow:
        0 0 40px rgba(var(--team-rgb), 0.6),
        0 0 80px rgba(var(--team-rgb), 0.3),
        inset 0 0 25px rgba(var(--team-rgb), 0.4);
}

.is-winner .base-glow-pool {
    width: 350px;
    height: 80px;
    opacity: 1;
}

/* ===== NAME TAG ===== */
.cinema-name-tag {
    position: relative;
    z-index: 10;
    margin-top: 12px;
    text-align: center;
    padding: 12px 24px;
    min-width: 200px;
    background: rgba(8, 12, 24, 0.85);
    border: 1.5px solid rgba(var(--team-rgb), 0.5);
    border-radius: 12px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(var(--team-rgb), 0.15);
}

.name-tag-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.name-tag-rank {
    font-size: 14px;
    font-weight: 800;
    color: var(--team-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(var(--team-rgb), 0.5);
}

/* Winner name tag */
.is-winner .cinema-name-tag {
    border-color: rgba(var(--team-rgb), 0.8);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(var(--team-rgb), 0.3),
        inset 0 0 12px rgba(var(--team-rgb), 0.08);
}

/* ===== CONFETTI CANVAS ===== */
.confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

/* AUTO-SCALER & BROADCAST CONTAINER (LOCKED 16:9 LANDSCAPE CANVAS) */
.tv-viewport-scaler {
    position: absolute;
    width: 1920px;
    height: 1080px;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
}

/* Enforce fixed 1920x1080 internal component sizing inside scaler */
.tv-viewport-scaler .tv-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 108px;
    padding: 24px 34px !important;
    z-index: 10;
}

.tv-viewport-scaler .tv-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tv-viewport-scaler .tv-slide {
    position: absolute;
    inset: 0;
    padding: 108px 34px 36px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.tv-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.tv-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(5, 12, 10, 0.65);
    border: 1px solid rgba(0, 255, 216, 0.3);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 216, 0.15);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    outline: none;
}

.tv-fullscreen-btn:hover, .tv-fullscreen-btn:active {
    background: rgba(0, 255, 216, 0.22);
    border-color: rgba(0, 255, 216, 0.7);
    color: #00ffd8;
    transform: scale(1.08);
}

/* Orientation Hint for Portrait Mobile Screens */
.tv-orientation-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(5, 12, 10, 0.94);
    border: 1px solid rgba(0, 255, 216, 0.35);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(14px);
    pointer-events: auto;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.tv-hint-fs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00ffd8;
    color: #04100b;
    border: none;
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.tv-hint-fs-btn:hover, .tv-hint-fs-btn:active {
    background: #ffffff;
    transform: scale(1.04);
}

/* =====================================================
   REDESIGNED SCHEDULE TABLE CARD (DARK STADIUM GLASSMATCH)
   ===================================================== */
.schedule-table-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(6, 78, 59, 0.65) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1.5px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(16, 185, 129, 0.1);
    overflow: hidden;
    z-index: 1;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.schedule-table th {
    background-color: rgba(15, 23, 42, 0.75);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.schedule-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.program-row {
    background: rgba(15, 23, 42, 0.45);
    transition: background 0.2s ease;
    border-left: 5px solid transparent;
}

.program-row:nth-child(even) {
    background: rgba(15, 23, 42, 0.25);
}

.program-row.is-running-program {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 78, 59, 0.5) 100%) !important;
    border-left: 5px solid #10b981 !important;
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.25);
}

.program-row.is-break {
    background: rgba(245, 158, 11, 0.2) !important;
    border-left: 5px solid #f59e0b !important;
}

/* Bracketed Number Badges */
.num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.05em;
    min-width: 44px;
}

.num-badge.num-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-left: 2.5px solid #10b981;
    border-right: 2.5px solid #10b981;
}

.num-badge.num-blue {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-left: 2.5px solid #38bdf8;
    border-right: 2.5px solid #38bdf8;
}

.num-badge.num-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-left: 2.5px solid #f59e0b;
    border-right: 2.5px solid #f59e0b;
}

.num-badge.num-gray {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-left: 2.5px solid rgba(255, 255, 255, 0.3);
    border-right: 2.5px solid rgba(255, 255, 255, 0.3);
}

/* Table Column Details */
.col-time {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}

.col-program {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.program-sec-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 10px;
    letter-spacing: 0.05em;
}

.col-venue {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill.status-in-progress {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1.5px solid #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.status-pill.status-upcoming {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.status-pill.status-completed {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.status-pill.status-break {
    background: rgba(254, 243, 199, 0.9);
    color: #b45309;
    border: 1.5px solid #d97706;
}

@media (max-width: 991px) and (orientation: portrait) {
    .tv-orientation-hint {
        display: flex;
    }
}

body.tv-idle-cursor,
body.tv-idle-cursor * {
    cursor: none !important;
}

.tv-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.04);
    filter: blur(8px);
    will-change: opacity, transform, filter, visibility;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s step-end;
    padding: 108px 34px 36px;
    display: flex;
    flex-direction: column;
}

#slide-leaderboard, #slide-schedule {
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease !important;
}

.tv-slide--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    filter: blur(0px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s step-start;
}

.tv-slide--exiting {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
    visibility: visible;
    pointer-events: none;
}

.three-stage-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s ease;
}

.three-stage-ready .three-stage-canvas {
    opacity: 1;
}

.three-stage-ready .cinema-pedestal-stage {
    z-index: 9;
    pointer-events: none;
}

.three-stage-ready .cinema-banner,
.three-stage-ready .cinema-spotlight-beam,
.three-stage-ready .cinema-pedestal-wrapper,
.three-stage-ready .cinema-base-platform {
    visibility: hidden;
}

.three-stage-ready .cinema-pedestal-slot {
    height: 100%;
    justify-content: flex-end;
}

.three-stage-ready .cinema-score-badge {
    position: absolute;
    bottom: calc(clamp(126px, 16vh, 168px) + min(var(--podium-px), 36vh));
}

.three-stage-ready .cinema-name-tag {
    position: absolute;
    bottom: clamp(36px, 6vh, 76px);
}

@media (max-width: 980px), (max-height: 660px) {
    .three-stage-ready .three-stage-canvas {
        display: none;
    }

    .three-stage-ready .cinema-banner,
    .three-stage-ready .cinema-spotlight-beam,
    .three-stage-ready .cinema-pedestal-wrapper,
    .three-stage-ready .cinema-base-platform {
        visibility: visible;
    }

    .three-stage-ready .cinema-pedestal-slot {
        height: auto;
    }

    .three-stage-ready .cinema-score-badge,
    .three-stage-ready .cinema-name-tag {
        position: relative;
        bottom: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .three-stage-canvas {
        display: none;
    }
}

/* ===== CINEMA STAGE OVERRIDES ===== */
.cinema-stage {
    position: relative;
}

/* Floor Grid for cinema stage */
.cinema-stage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 40%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--dynamic-r), var(--dynamic-g), var(--dynamic-b), 0.1), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    transform: perspective(600px) rotateX(60deg);
    transform-origin: bottom center;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Hide the old metallic title in cinema mode */
.tv-leaderboard-only .cinema-stage ~ .tv-stage::before,
.cinema-stage .tv-stage::before {
    display: none !important;
}

/* ===== TEAM MASCOT BANNERS ===== */
.cinema-banner {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%) translateZ(-30px);
    width: 180px;
    height: 480px;
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.16) 0%,
        rgba(var(--team-rgb), 0.03) 70%,
        transparent 100%
    );
    border-left: 1.5px solid rgba(var(--team-rgb), 0.35);
    border-right: 1.5px solid rgba(var(--team-rgb), 0.35);
    border-top: 3px solid var(--team-color);
    border-radius: 6px 6px 0 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 24px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
    box-shadow: 
        0 0 30px rgba(var(--team-rgb), 0.05),
        inset 0 10px 20px rgba(var(--team-rgb), 0.05);
}

.banner-mascot {
    width: 120px;
    height: 120px;
    color: var(--team-color);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(var(--team-rgb), 0.6)) drop-shadow(0 0 20px rgba(var(--team-rgb), 0.3));
    margin-bottom: 15px;
}

.banner-mascot svg {
    width: 100%;
    height: 100%;
}

.banner-team-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--team-color);
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.75;
    text-shadow: 0 0 8px rgba(var(--team-rgb), 0.5);
}

/* Winner banner spotlight highlight */
.is-winner .cinema-banner {
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.25) 0%,
        rgba(var(--team-rgb), 0.06) 75%,
        transparent 100%
    );
    border-left-color: rgba(var(--team-rgb), 0.6);
    border-right-color: rgba(var(--team-rgb), 0.6);
    box-shadow: 
        0 0 45px rgba(var(--team-rgb), 0.12),
        inset 0 15px 30px rgba(var(--team-rgb), 0.1);
}

.is-winner .banner-mascot {
    opacity: 1;
    filter: drop-shadow(0 0 14px var(--team-color)) drop-shadow(0 0 30px var(--team-color));
}

/* ==========================================================================
   STYLE 2: DIAMOND 3D LEADERBOARD LAYOUT
   ========================================================================== */

/* Hide the score table and name tags in Style 2 */
.style-style2 .cinema-score-table {
    display: none !important;
}
.style-style2 .cinema-name-tag {
    display: none !important;
}

/* Base Stage Configuration */
.style-style2 .cinema-pedestal-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: block; /* Override default flex row layout */
}

/* Absolute positioning of each slot in a 3D perspective cross/diamond shape */
.style-style2 .cinema-pedestal-slot {
    position: absolute;
    width: 280px;
    height: 320px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* Rank 1 (Gold) - Center Top */
.style-style2 .cinema-pedestal-slot[data-index="0"] {
    left: 50%;
    top: 40%;
    z-index: 10;
}

/* Rank 2 (Purple) - Left Center */
.style-style2 .cinema-pedestal-slot[data-index="1"] {
    left: 23%;
    top: 57%;
    z-index: 12;
}

/* Rank 3 (Green) - Right Center */
.style-style2 .cinema-pedestal-slot[data-index="2"] {
    left: 77%;
    top: 57%;
    z-index: 12;
}

/* Rank 4 (Blue) - Center Bottom */
.style-style2 .cinema-pedestal-slot[data-index="3"] {
    left: 50%;
    top: 74%;
    z-index: 15;
}

/* Banners aligned to the left/right walls of the stage like tapestries */
.style-style2 .cinema-pedestal-slot .cinema-banner {
    position: fixed;
    width: 130px;
    height: 380px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.12) 0%,
        rgba(var(--team-rgb), 0.03) 70%,
        transparent 100%
    );
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(var(--team-rgb), 0.05);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 10px;
    z-index: 2;
    transform-origin: center center;
}

.style-style2 .cinema-pedestal-slot[data-index="0"] .cinema-banner { /* Rank 1 - Left inner banner */
    left: 140px;
    top: 48%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0.75;
}
.style-style2 .cinema-pedestal-slot[data-index="1"] .cinema-banner { /* Rank 2 - Left outer banner */
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.style-style2 .cinema-pedestal-slot[data-index="2"] .cinema-banner { /* Rank 3 - Right outer banner */
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.style-style2 .cinema-pedestal-slot[data-index="3"] .cinema-banner { /* Rank 4 - Right inner banner */
    right: 140px;
    top: 48%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0.75;
}

.style-style2 .cinema-pedestal-slot .cinema-banner .banner-mascot {
    width: 65px;
    height: 65px;
    margin-bottom: 12px;
    opacity: 0.7;
    filter: drop-shadow(0 0 8px var(--team-color));
}

.style-style2 .cinema-pedestal-slot .cinema-banner .banner-team-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--team-color);
    letter-spacing: 0.1em;
}

/* Diamond Panel Wrapper */
.style-style2 .cinema-diamond-panel-wrapper {
    position: absolute;
    bottom: 50px;
    z-index: 20;
    transform-origin: center center;
}

/* Glassmorphic Diamond Panel (square rotated 45 degrees) */
.style-style2 .cinema-diamond-panel {
    width: 210px;
    height: 210px;
    transform: rotate(45deg);
    border: 3px solid var(--team-color);
    background: linear-gradient(
        135deg,
        rgba(15, 15, 25, 0.75) 0%,
        rgba(25, 25, 40, 0.85) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(var(--team-rgb), 0.25),
        inset 0 0 20px rgba(var(--team-rgb), 0.2);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Shine/Glass Reflection effect on Diamond */
.style-style2 .cinema-diamond-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 55%
    );
    transform: rotate(-45deg);
    pointer-events: none;
    animation: shine-sweep 6s infinite ease-in-out;
}

@keyframes shine-sweep {
    0% { transform: translate(-30%, -30%) rotate(-45deg); }
    50% { transform: translate(30%, 30%) rotate(-45deg); }
    100% { transform: translate(-30%, -30%) rotate(-45deg); }
}

/* Content inside diamond, rotated back to be upright */
.style-style2 .diamond-content {
    transform: rotate(-45deg);
    width: 141.4%; /* scale up to fill bounds of rotated parent */
    height: 141.4%;
    position: absolute;
    top: -20.7%;
    left: -20.7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 12px;
}

/* Diamond Mascot SVG */
.style-style2 .diamond-mascot {
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.style-style2 .diamond-mascot svg {
    width: 100%;
    height: 100%;
    color: var(--team-color);
    filter: drop-shadow(0 0 10px var(--team-color));
}

/* Team name / subtitle inside diamond */
.style-style2 .diamond-team-name {
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.style-style2 .diamond-team-sub {
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Score display inside diamond */
.style-style2 .diamond-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.style-style2 .diamond-score-val {
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 34px;
    color: #ffffff;
    text-shadow: 
        0 0 12px var(--team-color),
        0 0 25px rgba(var(--team-rgb), 0.6);
}

.style-style2 .diamond-score-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.5px;
    margin-top: 1px;
}

/* Rank Badge at top apex of the diamond */
.style-style2 .cinema-diamond-rank {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 36px;
    height: 36px;
    background: #0f0f15;
    border: 2px solid var(--team-color);
    box-shadow: 
        0 0 12px var(--team-color),
        0 5px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    border-radius: 6px;
}

.style-style2 .cinema-diamond-rank span {
    transform: rotate(-45deg);
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 0 5px var(--team-color);
}

/* Flat Glowing Base Platform under each diamond */
.style-style2 .cinema-base-platform {
    position: absolute;
    bottom: 0;
    width: 250px;
    height: 50px;
    z-index: 5;
    transform: scale(0.9);
}

.style-style2 .cinema-base-platform .base-ring-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--team-color);
    box-shadow: 
        0 0 15px var(--team-color),
        inset 0 0 15px var(--team-color);
    opacity: 0.85;
}

.style-style2 .cinema-base-platform .base-ring-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0.9;
}

.style-style2 .cinema-base-platform .base-glow-pool {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--team-rgb), 0.6) 0%, transparent 70%);
    filter: blur(12px);
    opacity: 0.9;
}

/* Spotlight Beam */
.style-style2 .cinema-spotlight-beam {
    position: absolute;
    top: -500px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 700px;
    background: linear-gradient(
        180deg,
        rgba(var(--team-rgb), 0.18) 0%,
        rgba(var(--team-rgb), 0.05) 50%,
        transparent 100%
    );
    clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

/* =====================================================
   LEADERBOARD RESPONSIVE SAFETY
   Keeps all leaderboard variants inside TV, laptop, tablet, and phone frames.
   ===================================================== */
#slide-leaderboard,
#slide-leaderboard.tv-slide--active {
    overflow: hidden;
}

.tv-floating-leaderboard.cinema-stage {
    --leader-pad: clamp(14px, 4vw, 84px);
    --leader-gap: clamp(14px, 4vw, 80px);
    padding: var(--leader-pad);
    min-width: 0;
}

.cinema-header {
    top: clamp(10px, 1.7vh, 18px);
    padding-inline: clamp(12px, 3vw, 40px);
}

.cinema-header-inner {
    max-width: min(100%, 960px);
    padding: clamp(8px, 1vw, 12px) clamp(12px, 2vw, 28px);
    gap: clamp(10px, 1.4vw, 16px);
}

.cinema-event-title {
    max-width: min(64vw, 720px);
    font-size: clamp(15px, 1.7vw, 28px);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cinema-logo-mark {
    width: clamp(30px, 3.2vw, 44px);
    height: clamp(30px, 3.2vw, 44px);
}

.cinema-score-table {
    top: clamp(68px, 9vh, 96px);
    right: clamp(14px, 3vw, 40px);
    width: min(380px, 36vw);
}

.score-table-header,
.score-table-row {
    grid-template-columns: clamp(44px, 4vw, 60px) minmax(0, 1fr) clamp(86px, 8vw, 120px);
    gap: 8px;
    padding: clamp(8px, 1vw, 10px) clamp(10px, 1.4vw, 18px);
}

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

.score-table-row .st-score {
    font-size: clamp(16px, 1.8vw, 24px);
}

.cinema-pedestal-stage {
    gap: var(--leader-gap);
    padding: clamp(100px, 13vh, 150px) clamp(12px, 2vw, 40px) clamp(52px, 8vh, 100px);
}

.cinema-pedestal-slot {
    width: clamp(150px, 17vw, 260px);
    min-width: 0;
}

.cinema-banner {
    width: clamp(96px, 11vw, 180px);
    height: min(42vh, 480px);
    bottom: clamp(110px, 17vh, 150px);
}

.banner-mascot {
    width: clamp(64px, 8vw, 120px);
    height: clamp(64px, 8vw, 120px);
}

.banner-team-label,
.cinema-name-tag .name-tag-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cinema-pedestal-wrapper {
    width: clamp(112px, 12vw, 180px);
    height: min(var(--pedestal-height, 200px), 42vh);
}

.pedestal-top-disc {
    width: 100%;
}

.cinema-base-platform {
    width: clamp(150px, 17vw, 260px);
}

.base-ring-outer {
    width: min(92%, 240px);
}

.base-ring-inner {
    width: min(76%, 195px);
}

.base-glow-pool {
    width: min(112%, 290px);
}

.cinema-score-badge .badge-value {
    min-width: clamp(64px, 7vw, 90px);
    height: clamp(42px, 5vw, 56px);
    padding-inline: clamp(12px, 1.6vw, 20px);
    font-size: clamp(24px, 3vw, 38px);
}

.cinema-name-tag {
    min-width: min(200px, 100%);
    width: min(100%, 220px);
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 24px);
}

.name-tag-name {
    font-size: clamp(15px, 1.7vw, 22px);
}

.name-tag-rank {
    font-size: clamp(11px, 1.1vw, 14px);
}

.style-style2 .cinema-pedestal-slot {
    width: clamp(170px, 18vw, 280px);
    height: clamp(220px, 30vh, 320px);
}

.style-style2 .cinema-diamond-panel {
    width: clamp(138px, 16vw, 210px);
    height: clamp(138px, 16vw, 210px);
}

.style-style2 .diamond-team-name {
    max-width: 132px;
    font-size: clamp(12px, 1.3vw, 18px);
    overflow-wrap: anywhere;
}

.style-style2 .diamond-score-val {
    font-size: clamp(22px, 3vw, 34px);
}

.style-style2 .cinema-base-platform {
    width: clamp(150px, 17vw, 250px);
}

@media (max-width: 1400px), (max-height: 820px) {
    .tv-floating-leaderboard.cinema-stage {
        --leader-pad: clamp(10px, 2.2vw, 36px);
        --leader-gap: clamp(18px, 3vw, 48px);
    }

    .cinema-score-table {
        width: min(340px, 34vw);
    }

    .cinema-pedestal-stage {
        padding-top: 112px;
        padding-bottom: 48px;
    }

    .cinema-banner {
        opacity: .68;
    }
}

@media (max-width: 980px), (max-height: 660px) {
    .tv-floating-leaderboard.cinema-stage {
        display: block;
        overflow: auto;
        overscroll-behavior: contain;
        padding: 14px;
    }

    .cinema-header {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        margin-bottom: 12px;
    }

    .cinema-header-inner {
        width: 100%;
        justify-content: space-between;
    }

    .cinema-event-title {
        max-width: 54vw;
    }

    .cinema-score-table {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 14px;
    }

    .cinema-pedestal-stage {
        min-height: 0;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 0 0 14px;
        perspective: none;
    }

    .cinema-pedestal-slot {
        width: 100%;
        min-height: 154px;
        justify-content: flex-end;
        padding: 10px;
        border: 1px solid rgba(var(--team-rgb), .32);
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(var(--team-rgb), .14), rgba(0,0,0,.34));
    }

    .cinema-banner,
    .cinema-spotlight-beam {
        display: none;
    }

    .cinema-pedestal-wrapper {
        height: min(var(--pedestal-height, 120px), 16vh);
    }

    .cinema-base-platform {
        height: 24px;
        margin-top: -5px;
    }

    .cinema-name-tag {
        width: 100%;
        min-width: 0;
    }

    .style-style2 .cinema-pedestal-stage {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }

    .style-style2 .cinema-pedestal-slot {
        position: relative;
        inset: auto !important;
        transform: none;
        width: 100%;
        height: 178px;
    }

    .style-style2 .cinema-pedestal-slot .cinema-banner {
        display: none;
    }

    .style-style2 .cinema-diamond-panel-wrapper {
        bottom: 30px;
    }
}

@media (max-width: 620px) {
    .tv-floating-leaderboard.cinema-stage {
        padding: 10px;
    }

    .cinema-header-inner {
        align-items: flex-start;
        border-radius: 10px;
    }

    .cinema-title-block {
        min-width: 0;
    }

    .cinema-event-title {
        max-width: 100%;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cinema-live-badge {
        margin-left: 0;
        padding: 5px 9px;
        font-size: 10px;
    }

    .score-table-header,
    .score-table-row {
        grid-template-columns: 42px minmax(0, 1fr) 74px;
        padding-inline: 10px;
    }

    .score-table-header {
        font-size: 9px;
    }

    .score-table-row .st-rank strong {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .score-table-row .st-team {
        font-size: 13px;
    }

    .score-table-row .st-score {
        font-size: 17px;
    }

    .cinema-pedestal-stage,
    .style-style2 .cinema-pedestal-stage {
        grid-template-columns: 1fr;
    }

    .cinema-pedestal-slot {
        min-height: 92px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .cinema-score-badge {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
    }

    .cinema-pedestal-wrapper,
    .cinema-base-platform {
        display: none;
    }

    .cinema-name-tag {
        grid-column: 1 / 3;
        grid-row: 1;
        margin: 0;
        text-align: left;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .name-tag-name {
        font-size: clamp(16px, 4.8vw, 21px);
    }

    .name-tag-rank {
        margin-bottom: 2px;
    }

    .cinema-pedestal-wrapper {
        height: min(var(--pedestal-height, 140px), 170px);
    }

    .style-style2 .cinema-pedestal-slot {
        height: 112px;
        display: flex;
        justify-content: center;
    }

    .style-style2 .cinema-diamond-panel {
        width: 86px;
        height: 86px;
    }

    .style-style2 .cinema-diamond-panel-wrapper {
        position: relative;
        bottom: auto;
        transform: none !important;
    }

    .style-style2 .diamond-mascot,
    .style-style2 .diamond-team-sub,
    .style-style2 .cinema-base-platform {
        display: none;
    }

    .style-style2 .diamond-team-name {
        max-width: 82px;
        font-size: 10px;
        line-height: 1;
    }

    .style-style2 .diamond-score-val {
        font-size: 20px;
    }
}

/* ORBITAL CONCEPT LEADERBOARD STYLES */
.orbital-stage-container {
    position: relative;
    width: 1050px;
    height: 820px;
    max-width: 96vw;
    max-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.orbital-aura-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orbital-aura-spot {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.38;
    mix-blend-mode: screen;
    animation: aura-float 8s ease-in-out infinite alternate;
}

.orbital-aura-spot.top {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-1-color, #10b981);
}

.orbital-aura-spot.right {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    background: var(--card-2-color, #f43f5e);
}

.orbital-aura-spot.left {
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    background: var(--card-3-color, #eab308);
}

.orbital-aura-spot.bottom {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-4-color, #3b82f6);
}

@keyframes aura-float {
    0% { transform: scale(0.92) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.08) translate(0, 0); opacity: 0.45; }
}

.orbital-vector-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orbital-center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(10, 18, 30, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 216, 0.3);
    box-shadow: 0 0 35px rgba(0, 255, 216, 0.25), inset 0 0 20px rgba(0, 255, 216, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.orbital-center-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.orbital-center-pct-text {
    position: relative;
    z-index: 2;
    font-size: 34px;
    font-weight: 900;
    color: #00ffd8;
    font-family: 'Plus Jakarta Sans', monospace;
    text-shadow: 0 0 16px rgba(0, 255, 216, 0.8);
    line-height: 1;
}

.orbital-card {
    position: absolute;
    width: 320px;
    height: 255px;
    border-radius: 30px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(12, 22, 35, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2.5px solid var(--accent-color, #10b981);
    box-shadow: 
        0 0 40px color-mix(in srgb, var(--accent-color, #10b981) 45%, transparent),
        0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 25px color-mix(in srgb, var(--accent-color, #10b981) 22%, transparent);
    overflow: hidden;
    z-index: 5;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.orbital-card:hover {
    transform: scale(1.03) !important;
}

.orbital-card-dark-wave {
    position: absolute;
    bottom: -40px;
    left: -20px;
    right: -20px;
    height: 120px;
    background: radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orbital-card[data-pos="1"] {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbital-card[data-pos="2"] {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.orbital-card[data-pos="3"] {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.orbital-card[data-pos="4"] {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbital-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.orbital-badge-leading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--accent-color, #10b981) 32%, rgba(0,0,0,0.5));
    border: 1.5px solid var(--accent-color, #10b981);
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent-color, #10b981) 50%, transparent);
}

.orbital-rank-index {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    margin-left: auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.orbital-team-title {
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    margin: 10px 0 4px 0;
    line-height: 1.15;
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orbital-score-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.orbital-score-digit {
    font-size: 76px;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', monospace;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.orbital-score-label {
    font-size: 14px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.orbital-extra-teams-bar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(10, 18, 30, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 24px;
    border-radius: 30px;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.orbital-extra-team-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

/* Embedded Card Chevron Animations (Stroked in Team Color) */
.card-chevrons-svg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: hidden !important;
    border-radius: inherit;
}

.animated-card-group {
    will-change: transform, opacity;
    animation: bg-chevron-pulse-float 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.animated-dash-line {
    stroke-dasharray: 160 80;
    will-change: stroke-dashoffset;
    animation: line-dash-flow 18s linear infinite;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--first-team-color, #6400a6) 40%, transparent));
    transition: stroke 1s ease;
}

.animated-cross-line {
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--first-team-color, #6400a6) 30%, transparent));
    transition: stroke 1s ease;
}

/* Constellation Hub Center 8-Point Star Medallion Node */
.orbital-center-node.constellation-star-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2.5px solid color-mix(in srgb, var(--first-team-color, #10b981) 45%, white);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.08),
        0 0 30px color-mix(in srgb, var(--first-team-color, #10b981) 28%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.constellation-star-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.star-rotation-group {
    transform-origin: 80px 80px;
    animation: slow-star-spin 30s linear infinite;
}

@keyframes slow-star-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.constellation-center-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.constellation-kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.constellation-lead-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--first-team-color, #10b981);
    font-family: 'Plus Jakarta Sans', monospace;
    line-height: 1;
}

.constellation-unit {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #475569;
}

/* Pulsing Radial Laser Connector Beams */
.constellation-laser-line {
    animation: laser-flow 1.8s linear infinite;
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes laser-flow {
    0% { stroke-dashoffset: 56; }
    100% { stroke-dashoffset: 0; }
}

/* Card Point Gap Pills */
.orbital-gap-pill {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 3px 12px;
    border-radius: 16px;
    font-family: 'Plus Jakarta Sans', monospace;
}

.orbital-gap-pill.leader-gap {
    background: color-mix(in srgb, var(--accent-color, #10b981) 16%, rgba(255,255,255,0.9));
    border: 1px solid color-mix(in srgb, var(--accent-color, #10b981) 40%, white);
    color: var(--accent-color, #10b981);
}

.orbital-gap-pill.chaser-gap {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #64748b;
}

/* ==========================================================================
   SLIDESHOW ELEMENT IN & OUT ANIMATIONS & TRANSITIONS (ALL PAGES)
   ========================================================================== */

/* 1. Primitives: Hardware-Accelerated Element Transitions */
.tv-slide .tv-intro-logo-stage > *,
.tv-slide .orbital-stage-container > *,
.tv-slide .orbital-center-card,
.tv-slide .orbit-card-2,
.tv-slide .orbit-card-3,
.tv-slide .orbit-card-4,
.tv-slide .schedule-slide-title,
.tv-slide .page-count-badge,
.tv-slide .tv-schedule-board,
.tv-slide .tv-schedule-board-head,
.tv-slide .current-programs-stage-root > header,
.tv-slide .now-performing-card,
.tv-slide .performer-identity,
.tv-slide .chest-badge,
.tv-slide .next-performer-card,
.tv-slide .next-program-card,
.tv-slide .judges-card,
.tv-slide .tv-card-rank,
.tv-slide .tv-item,
.tv-slide .tv-panel,
.tv-slide .glass-panel {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: opacity, transform, filter;
}

/* 2. Slide Initial Inactive State (Before Active) */
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .schedule-slide-title,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .current-programs-stage-root > header,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .tv-slide-head {
    opacity: 0 !important;
    transform: translateY(-28px) !important;
    filter: blur(8px) !important;
}

.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .orbital-center-card,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .now-performing-card,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .tv-schedule-board,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .tv-intro-logo-stage > * {
    opacity: 0 !important;
    transform: scale(0.9) translateY(24px) !important;
    filter: blur(10px) !important;
}

.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .orbit-card-2 {
    opacity: 0 !important;
    transform: translateX(-50px) scale(0.91) !important;
    filter: blur(8px) !important;
}

.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .orbit-card-3,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .next-performer-card,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .next-program-card {
    opacity: 0 !important;
    transform: translateX(50px) scale(0.91) !important;
    filter: blur(8px) !important;
}

.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .orbit-card-4,
.tv-slide:not(.tv-slide--active):not(.tv-slide--exiting) .judges-card {
    opacity: 0 !important;
    transform: translateY(45px) scale(0.92) !important;
    filter: blur(8px) !important;
}

/* 3. Slide Active Entrance State (IN) */
.tv-slide--active .schedule-slide-title,
.tv-slide--active .page-count-badge,
.tv-slide--active .current-programs-stage-root > header,
.tv-slide--active .tv-slide-head,
.tv-slide--active .tv-schedule-board,
.tv-slide--active .orbital-center-card,
.tv-slide--active .orbit-card-2,
.tv-slide--active .orbit-card-3,
.tv-slide--active .orbit-card-4,
.tv-slide--active .now-performing-card,
.tv-slide--active .performer-identity,
.tv-slide--active .chest-badge,
.tv-slide--active .next-performer-card,
.tv-slide--active .next-program-card,
.tv-slide--active .judges-card,
.tv-slide--active .tv-intro-logo-stage > * {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
    filter: blur(0) !important;
}

/* Entrance Staggering Delays */
.tv-slide--active .schedule-slide-title,
.tv-slide--active .current-programs-stage-root > header { transition-delay: 0.05s !important; }

.tv-slide--active .tv-schedule-board,
.tv-slide--active .now-performing-card,
.tv-slide--active .orbital-center-card { transition-delay: 0.1s !important; }

.tv-slide--active .orbit-card-2,
.tv-slide--active .performer-identity,
.tv-slide--active .next-performer-card { transition-delay: 0.18s !important; }

.tv-slide--active .orbit-card-3,
.tv-slide--active .next-program-card { transition-delay: 0.25s !important; }

.tv-slide--active .orbit-card-4,
.tv-slide--active .judges-card { transition-delay: 0.32s !important; }

/* 4. Slide Exiting State (OUT) */
.tv-slide--exiting {
    opacity: 0 !important;
    transform: scale(0.97) !important;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease !important;
}

.tv-slide--exiting .schedule-slide-title,
.tv-slide--exiting .page-count-badge,
.tv-slide--exiting .current-programs-stage-root > header,
.tv-slide--exiting .tv-slide-head {
    opacity: 0 !important;
    transform: translateY(-34px) !important;
    filter: blur(8px) !important;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tv-slide--exiting .tv-schedule-board,
.tv-slide--exiting .now-performing-card,
.tv-slide--exiting .orbital-center-card {
    opacity: 0 !important;
    transform: scale(0.91) translateY(-22px) !important;
    filter: blur(10px) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tv-slide--exiting .orbit-card-2 {
    opacity: 0 !important;
    transform: translateX(-65px) scale(0.9) !important;
    filter: blur(10px) !important;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tv-slide--exiting .orbit-card-3,
.tv-slide--exiting .next-performer-card,
.tv-slide--exiting .next-program-card {
    opacity: 0 !important;
    transform: translateX(65px) scale(0.9) !important;
    filter: blur(10px) !important;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tv-slide--exiting .orbit-card-4,
.tv-slide--exiting .judges-card {
    opacity: 0 !important;
    transform: translateY(50px) scale(0.9) !important;
    filter: blur(10px) !important;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tv-slide--exiting .tv-intro-logo-stage > * {
    opacity: 0 !important;
    transform: scale(0.85) translateY(25px) !important;
    filter: blur(10px) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* =====================================================
   SCORE UPDATE LIVE REVEAL OVERLAY (3-PHASE REVEAL)
   ===================================================== */
.score-reveal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #0f172a;
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-reveal-overlay.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.reveal-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 22px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #4338ca;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.pulse-dot-red {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse-red 1.2s infinite ease-in-out;
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.reveal-title {
    font-size: 38px;
    font-weight: 900;
    margin: 16px 0 6px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: -0.5px;
}

.reveal-prog-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 16px;
    text-align: center;
}

.reveal-programs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 8px 0 20px;
}

.reveal-program-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.reveal-program-chip small {
    color: #64748b;
    font-weight: 700;
}

/* Phase 1: Countdown Ring */
.reveal-countdown-box {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.reveal-countdown-box svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.reveal-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 6;
}

.reveal-circle-progress {
    fill: none;
    stroke: #4f46e5;
    stroke-width: 6;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s linear, stroke 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.3));
}

.reveal-countdown-num {
    font-size: 84px;
    font-weight: 900;
    color: #0f172a;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: countdown-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes countdown-pop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Phase 2: Team Score Grid */
.reveal-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 20px 0;
}

.reveal-team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-card-stagger {
    animation: reveal-card-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes reveal-card-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-team-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 17px;
    color: #0f172a;
}

.reveal-team-card.is-highest-gainer {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    box-shadow: 0 14px 35px rgba(16, 185, 129, 0.22), 0 0 0 1px #10b981 !important;
    transform: translateY(-3px);
}

.reveal-top-gainer-badge {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #047857;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: #d1fae5;
    padding: 3px 12px;
    border-radius: 999px;
    display: inline-block;
}

.reveal-team-card.is-top-rank {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fffdf0 0%, #ffffff 100%) !important;
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.3), 0 0 0 2px #f59e0b !important;
    transform: scale(1.08) translateY(-6px) !important;
    z-index: 10;
}

.reveal-rank1-banner {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #d97706;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    background: #fef3c7;
    padding: 4px 14px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.reveal-team-score {
    font-size: 38px;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
    margin: 8px 0 4px;
}

.reveal-gained-pts-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    font-weight: 800;
}

.reveal-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reveal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.reveal-breakdown-box {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    text-align: left;
}

.reveal-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-weight: 700;
}

.reveal-breakdown-item strong {
    color: #059669;
    font-weight: 900;
}

/* Dynamic Top Team SVG Background Line Color Binding */
.animated-dash-line,
.animated-cross-line,
.card-chevrons-svg path,
.side-chevrons-svg path,
.side-chevrons-svg line {
    stroke: var(--first-team-color, var(--top-team-color, #6400a6)) !important;
    transition: stroke 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tv-schedule-stage-root,
.current-programs-stage-root,
.programs-wrapper {
    --current-neon: var(--first-team-color, var(--top-team-color, #6400a6)) !important;
    --current-team-color: var(--first-team-color, var(--top-team-color, #6400a6)) !important;
}

.tv-schedule-row.is-running-program {
    background: color-mix(in srgb, var(--first-team-color, #6400a6) 10%, transparent) !important;
    border-left: 8px solid var(--first-team-color, #6400a6) !important;
}

.tv-schedule-row.is-running-program .tv-schedule-row-num,
.tv-schedule-row.is-running-program .tv-schedule-row-program strong {
    color: var(--first-team-color, #6400a6) !important;
}

.tv-schedule-row-live-badge {
    background: color-mix(in srgb, var(--first-team-color, #6400a6) 18%, transparent) !important;
    border-color: color-mix(in srgb, var(--first-team-color, #6400a6) 45%, transparent) !important;
    color: var(--first-team-color, #6400a6) !important;
}

.tv-schedule-row-live-badge .live-dot {
    background: var(--first-team-color, #6400a6) !important;
    box-shadow: 0 0 8px var(--first-team-color, #6400a6) !important;
}

/* High-Contrast Light Theme Text Overrides for Schedule Table */
.tv-schedule-board .tv-schedule-row-program strong,
.tv-schedule-row-program strong,
.tv-schedule-row-program {
    color: #0f172a !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.tv-schedule-board .tv-schedule-row-time,
.tv-schedule-row-time {
    color: #1e293b !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.tv-schedule-board .tv-schedule-row-location,
.tv-schedule-row-location {
    color: #334155 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

.tv-schedule-board-head span,
.tv-schedule-board-head div,
.tv-schedule-board-head {
    color: #475569 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* ==========================================================================
   PURE CLEAN STAGE OVERRIDES: REMOVE EXTRA BACKGROUND OVERLAY LINES & SVGS
   ========================================================================== */
.bg-3d-cuts-svg,
.side-chevrons-svg,
.card-chevrons-svg,
.background-silk-svg,
.ambient-mesh-bg,
#particles-js,
.tv-particles,
.tv-geometric,
.tv-spotlight,
.tv-sweep,
.animated-chevron-group,
.animated-card-group,
.animated-dash-line,
.animated-cross-line {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.glass-panel {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   DISPLAY ONLY: HIDE ALL BUTTONS & CLOSE CONTROLS ON SCORE REVEAL OVERLAY
   ========================================================================== */
.score-reveal-overlay button,
.reveal-close-btn,
#btnCloseReveal,
#btnDoneReveal {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES FOR WHITE BACKDROP & SLOW WIND FLOW
   ========================================================================== */
body.theme-light,
body.theme-light.tv-current-programs-theme {
  background: #faf6eb !important; /* Premium soft cream background */
}

body.theme-light .tv-backdrop {
  background: radial-gradient(circle at center, #ffffff 0%, #fdfcf7 60%, #faf6eb 100%) !important; /* White-to-cream gradient */
}

body.theme-light .stage-backdrop {
  display: none !important;
}

body.theme-light .tv-backdrop .stage-backdrop .glow-orb {
  display: none !important;
}

body.theme-light #tvBgVideo {
  display: none !important;
}

body.theme-light .tv-noise {
  background-image: 
      linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px) !important;
  opacity: 0.8 !important;
}

/* Page Header Titles legibility overrides */
body.theme-light .leaderboard-title,
body.theme-light .schedule-slide-title {
  color: #936a0d !important; /* Rich golden text */
}

body.theme-light .page-count-badge {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .tv-brand-title {
  color: #0f172a !important;
}

body.theme-light .tv-brand-kicker {
  color: #64748b !important;
}

body.theme-light .tv-clock {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

/* Current Program Slide & General Glass Panel overrides */
body.theme-light .glass-panel,
body.theme-light .now-performing-card,
body.theme-light .side-card-top,
body.theme-light .side-card-bottom {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  color: #0f172a !important;
}

body.theme-light .program-title-display {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.theme-light .stage-awaiting-title {
  color: #0f172a !important;
}

body.theme-light .stage-awaiting-sub {
  color: #475569 !important;
}

body.theme-light .stage-awaiting-icon {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .side-box-label {
  color: #64748b !important;
}

body.theme-light .next-prog-title {
  color: #0f172a !important;
}

body.theme-light .next-prog-time-badge {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #475569 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .stat-widget-box {
  background: rgba(15, 23, 42, 0.03) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

body.theme-light .stat-widget-icon {
  color: #64748b !important;
}

body.theme-light .stat-widget-label {
  color: #64748b !important;
}

body.theme-light .stat-widget-value {
  color: #0f172a !important;
}

body.theme-light .program-stage-header-bar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .program-stage-header-bar span[style*="rgba(255,255,255,0.65)"] {
  color: #64748b !important;
}

.tv-live-chip {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #dc2626 !important;
}

.tv-live-chip span {
  background-color: #dc2626 !important;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6) !important;
}

/* ==========================================================================
   SCHEDULE SLIDE: WHITE TABLE WITH GOLD TEXT OVERRIDES
   ========================================================================== */
.schedule-timeline-container {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 2px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
}

.schedule-card {
  border-bottom: 1.5px solid rgba(15, 23, 42, 0.06) !important;
}

.schedule-card:nth-child(odd) {
  background: #ffffff !important;
}

.schedule-card:nth-child(even) {
  background: #faf6eb !important; /* Elegant soft cream background */
}

.schedule-card.is-running-program {
  background: rgba(16, 185, 129, 0.1) !important; /* Green highlight */
}

.schedule-card.is-break {
  background: rgba(245, 158, 11, 0.08) !important; /* Amber highlight */
}

.schedule-program-title,
.schedule-time-label {
  color: #936a0d !important; /* Premium Gold honey text for high visibility */
  text-shadow: none !important;
}

.program-sec-tag,
.program-day-tag {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #475569 !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.schedule-index-inline.num-blue {
  background: rgba(59, 130, 246, 0.08) !important;
  color: #1d4ed8 !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.schedule-index-inline.num-green {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.schedule-index-inline.num-gray {
  background: rgba(100, 116, 139, 0.08) !important;
  color: #475569 !important;
  border-color: rgba(100, 116, 139, 0.2) !important;
}

.schedule-index-inline.num-amber {
  background: rgba(245, 158, 11, 0.08) !important;
  color: #936a0d !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
}

.no-results-placeholder {
  color: rgba(15, 23, 42, 0.2) !important;
}




/* ==========================================================================
   CINEMATIC QUICK SCREEN IMAGE OVERLAY
   ========================================================================== */
.quick-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow: hidden;
}

.quick-screen-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Background blurred cover image */
.quick-screen-blur-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.35);
    transform: scale(1.1);
}

/* Foreground Contain image */
.quick-screen-contain-img {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}
