/* ════════════════════════════════════════════════════════════════
   FIBA BASKETBALL LIVE — Premium Streaming Landing Page
   style.css — Dark luxury sports UI (glassmorphism + neumorphism)
   ════════════════════════════════════════════════════════════════ */

/* ─────────────── 1. Design Tokens ─────────────── */
:root {
    --bg-deep:      #050816;
    --bg-navy:      #091329;
    --bg-slate:     #101827;
    --primary:      #ff6b00;
    --secondary:    #ff8f00;
    --accent:       #00d4ff;
    --text:         #ffffff;
    --gray:         #cbd5e1;

    --grad-orange:  linear-gradient(135deg, #ff6b00 0%, #ff8f00 60%, #ffb347 100%);
    --grad-blue:    linear-gradient(135deg, #00d4ff 0%, #0091ff 100%);

    --glass-bg:     rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur:   blur(18px);

    --shadow-orange: 0 0 32px rgba(255, 107, 0, 0.45);
    --shadow-blue:   0 0 32px rgba(0, 212, 255, 0.35);

    --radius-lg:    1.25rem;
    --radius-xl:    1.75rem;

    --safe-bottom:  env(safe-area-inset-bottom, 0px);
    --safe-top:     env(safe-area-inset-top, 0px);
}

/* ─────────────── 2. Base / Reset ─────────────── */
* { -webkit-tap-highlight-color: transparent; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* offset for sticky navbar */
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;   /* never allow horizontal scroll */
    min-height: 100vh;
}

img, canvas, svg { max-width: 100%; }

::selection { background: var(--primary); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 8px;
}

/* Gradient text helpers */
.text-gradient-orange {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-gradient-blue {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.glow-blue-text { filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.65)); }

/* ─────────────── 3. Navbar ─────────────── */
.glass-nav {
    padding-top: calc(0.9rem + var(--safe-top));
    padding-bottom: 0.9rem;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.glass-nav.scrolled {
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    padding-top: calc(0.55rem + var(--safe-top));
    padding-bottom: 0.55rem;
}

.brand-ball {
    font-size: 1.7rem;
    display: inline-block;
    animation: ballBounce 2.4s ease-in-out infinite;
}
.brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text);
}

.navbar-nav .nav-link {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0.9rem; right: 100%;
    bottom: 0.25rem;
    height: 2px;
    background: var(--grad-orange);
    border-radius: 2px;
    transition: right 0.35s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--text); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { right: 0.9rem; }

/* Small navbar CTA */
.btn-watch-sm {
    background: var(--grad-orange);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 50rem;
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-watch-sm:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--shadow-orange), 0 0 24px rgba(0, 212, 255, 0.25);
}

/* Custom hamburger */
.custom-toggler {
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--glass-bg);
}
.custom-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.35); }
.toggler-bar {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.custom-toggler.open .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.custom-toggler.open .toggler-bar:nth-child(2) { opacity: 0; }
.custom-toggler.open .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown panel */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(9, 19, 41, 0.92);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        margin-top: 0.9rem;
        padding: 1rem 1.25rem 1.25rem;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    }
    .navbar-nav .nav-link { padding: 0.7rem 0.25rem; }
    .navbar-nav .nav-link::after { display: none; }
    .btn-watch-sm { width: 100%; padding: 0.75rem; }
}

/* ─────────────── 4. Hero + Arena Background ─────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(110px + var(--safe-top)) 0 90px;
    overflow: hidden;
}

.arena-bg { position: absolute; inset: 0; z-index: 0; }
.arena-bg > * { position: absolute; }

/* Deep arena gradient base */
.arena-gradient {
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 212, 255, 0.14), transparent 60%),
        radial-gradient(ellipse 70% 55% at 18% 105%, rgba(255, 107, 0, 0.20), transparent 62%),
        radial-gradient(ellipse 70% 55% at 82% 105%, rgba(0, 145, 255, 0.16), transparent 62%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 55%, var(--bg-slate) 100%);
}

/* Court floor perspective at the bottom */
.arena-court {
    left: -10%; right: -10%; bottom: -6%;
    height: 34%;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 150, 60, 0.10) 0 2px, transparent 2px 90px),
        linear-gradient(180deg,
            rgba(150, 75, 20, 0.35), rgba(90, 45, 12, 0.55));
    transform: perspective(700px) rotateX(58deg);
    transform-origin: bottom;
    border-top: 2px solid rgba(255, 140, 40, 0.35);
    box-shadow: 0 -30px 80px rgba(255, 107, 0, 0.18) inset;
}

/* Crowd bokeh — thousands of tiny blurred lights */
.arena-crowd {
    left: 0; right: 0; top: 18%; height: 42%;
    background-image:
        radial-gradient(circle 2px at 10% 30%, rgba(255,255,255,0.5) 40%, transparent 60%),
        radial-gradient(circle 2px at 25% 60%, rgba(255,200,120,0.45) 40%, transparent 60%),
        radial-gradient(circle 1.5px at 40% 25%, rgba(160,220,255,0.5) 40%, transparent 60%),
        radial-gradient(circle 2px at 55% 65%, rgba(255,255,255,0.4) 40%, transparent 60%),
        radial-gradient(circle 1.5px at 70% 35%, rgba(255,180,90,0.5) 40%, transparent 60%),
        radial-gradient(circle 2px at 85% 55%, rgba(140,210,255,0.45) 40%, transparent 60%),
        radial-gradient(circle 1.5px at 93% 25%, rgba(255,255,255,0.4) 40%, transparent 60%),
        radial-gradient(circle 2px at 5% 75%, rgba(255,190,110,0.4) 40%, transparent 60%),
        radial-gradient(circle 1.5px at 62% 15%, rgba(255,255,255,0.35) 40%, transparent 60%),
        radial-gradient(circle 2px at 33% 85%, rgba(150,215,255,0.4) 40%, transparent 60%);
    background-size: 190px 130px;
    filter: blur(0.6px);
    opacity: 0.8;
    animation: crowdFlicker 4s ease-in-out infinite alternate;
}

/* Sweeping stadium light rays */
.light-ray {
    top: -12%;
    width: 26vw; max-width: 420px;
    height: 85vh;
    opacity: 0.5;
    filter: blur(14px);
    transform-origin: top center;
    pointer-events: none;
}
.ray-orange {
    left: 6%;
    background: linear-gradient(180deg, rgba(255, 140, 40, 0.5), transparent 80%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    animation: raySweep 9s ease-in-out infinite alternate;
}
.ray-blue {
    right: 6%;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.45), transparent 80%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    animation: raySweep 11s ease-in-out infinite alternate-reverse;
}
.ray-center {
    left: 50%;
    transform: translateX(-50%);
    width: 34vw; max-width: 520px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 75%);
    clip-path: polygon(45% 0, 55% 0, 95% 100%, 5% 100%);
    animation: rayPulse 6s ease-in-out infinite;
}

/* Drifting smoke clouds */
.smoke {
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.smoke-1 {
    width: 46vw; height: 30vh; left: -8%; bottom: 6%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.35), transparent 70%);
    animation: smokeDrift 16s ease-in-out infinite alternate;
}
.smoke-2 {
    width: 44vw; height: 28vh; right: -6%; bottom: 10%;
    background: radial-gradient(circle, rgba(0, 145, 255, 0.32), transparent 70%);
    animation: smokeDrift 20s ease-in-out infinite alternate-reverse;
}
.smoke-3 {
    width: 36vw; height: 22vh; left: 32%; bottom: -4%;
    background: radial-gradient(circle, rgba(200, 220, 255, 0.16), transparent 70%);
    animation: smokeDrift 24s ease-in-out infinite alternate;
}

/* LED strip along the top */
.led-strip {
    left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        transparent, var(--primary) 20%, var(--accent) 50%,
        var(--secondary) 80%, transparent);
    background-size: 200% 100%;
    animation: ledScroll 5s linear infinite;
    opacity: 0.85;
}
.led-top { top: 0; }

/* Floating particles canvas */
#particleCanvas { inset: 0; width: 100%; height: 100%; }

/* Vignette to focus the center */
.hero-vignette {
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 50% 45%,
        transparent 40%, rgba(5, 8, 22, 0.55) 85%, rgba(5, 8, 22, 0.9) 100%);
}

/* Floating decorative basketballs */
.float-ball {
    position: absolute;
    z-index: 1;
    opacity: 0.55;
    filter: drop-shadow(0 8px 20px rgba(255, 107, 0, 0.5));
    pointer-events: none;
}
.float-ball-1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    top: 18%; left: 6%;
    animation: floatBall 7s ease-in-out infinite;
}
.float-ball-2 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    top: 26%; right: 8%;
    animation: floatBall 9s ease-in-out infinite reverse;
}

/* ─────────────── 5. Hero Content ─────────────── */
.hero-content { position: relative; z-index: 2; }

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gray);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.15);
}

.pulse-dot {
    width: 9px; height: 9px;
    background: #ff2e2e;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.1rem, 6.5vw, 4.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 1px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-sub {
    max-width: 620px;
    margin-top: 1.1rem;
    font-size: clamp(0.98rem, 2vw, 1.18rem);
    font-weight: 300;
    color: var(--gray);
}

/* ─────────────── 6. Video Player ─────────────── */
.player-wrapper {
    max-width: 860px;
    margin-top: 2.6rem;
    perspective: 1200px;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--bg-navy);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(255, 107, 0, 0.18),
        0 0 90px rgba(0, 212, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.video-player:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(255, 107, 0, 0.3),
        0 0 110px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.video-player:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* CSS-built arena thumbnail */
.player-thumb { position: absolute; inset: 0; }
.player-thumb > * { position: absolute; }

/* CSS fallback arena (shown if the photo fails to load) */
.thumb-lights {
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(ellipse 45% 60% at 12% 80%, rgba(255, 107, 0, 0.32), transparent 65%),
        radial-gradient(ellipse 45% 60% at 88% 80%, rgba(0, 145, 255, 0.3), transparent 65%),
        linear-gradient(180deg, #0a1430 0%, #0d1a38 55%, #1a2440 100%);
}

/* Real basketball arena photo — covers the player */
.thumb-photo {
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    /* subtle brand tint + slight zoom for a cinematic feel */
    filter: saturate(1.15) contrast(1.05) brightness(0.92);
    animation: thumbZoom 14s ease-in-out infinite alternate;
}
/* Light overlay only at the edges/bottom so the arena stays clear but badges/scoreboard remain legible */
.thumb-photo-overlay {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 22, 0.35) 0%, transparent 22%, transparent 55%, rgba(5, 8, 22, 0.6) 100%),
        radial-gradient(ellipse 55% 55% at 50% 50%, transparent 55%, rgba(5, 8, 22, 0.35) 100%);
}
.thumb-court {
    left: -6%; right: -6%; bottom: -4%;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(255, 120, 30, 0.12));
    pointer-events: none;
}
/* Keep the coloured glows very light so the real stadium shows through clearly */
.thumb-glow-orange {
    width: 45%; height: 45%; left: -8%; top: 10%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.22), transparent 70%);
    filter: blur(34px);
    mix-blend-mode: screen;
    animation: rayPulse 5s ease-in-out infinite;
}
.thumb-glow-blue {
    width: 45%; height: 45%; right: -8%; top: 10%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    filter: blur(34px);
    mix-blend-mode: screen;
    animation: rayPulse 6s ease-in-out infinite reverse;
}

/* Mini scoreboard inside the thumbnail */
.thumb-scoreboard {
    top: 16%; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 1.1rem;
    background: rgba(5, 8, 22, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: 0.7rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: clamp(0.6rem, 1.6vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
.thumb-scoreboard .score { color: var(--secondary); font-size: 1.15em; }
.thumb-scoreboard .quarter {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.85em;
    border-left: 1px solid var(--glass-border);
    padding-left: 0.7rem;
}

/* Badges */
.player-badges {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.top-badges { top: 4%; left: 3.5%; }

.badge-live, .badge-hd, .badge-fiba {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.62rem, 1.4vw, 0.75rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.32rem 0.8rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.badge-live {
    background: linear-gradient(135deg, #ff2e2e, #d40000);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 46, 46, 0.6);
    animation: badgeGlow 1.8s ease-in-out infinite;
}
.badge-hd {
    background: var(--grad-blue);
    color: #04121f;
}
.badge-fiba {
    background: var(--grad-orange);
    color: #fff;
}

/* Viewer count */
.viewer-count {
    position: absolute;
    top: 4%; right: 3.5%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.62rem, 1.5vw, 0.8rem);
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    color: var(--text);
    background: rgba(5, 8, 22, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 50rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.viewer-count .bi { color: var(--accent); }

/* Big animated play button */
.play-button-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: grid;
    place-items: center;
}
.play-ring {
    position: absolute;
    width: clamp(88px, 15vw, 128px);
    height: clamp(88px, 15vw, 128px);
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 0, 0.55);
    animation: ringExpand 2.2s ease-out infinite;
}
.play-ring-2 { animation-delay: 1.1s; border-color: rgba(0, 212, 255, 0.45); }

.play-button {
    width: clamp(68px, 11vw, 96px);
    height: clamp(68px, 11vw, 96px);
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad-orange);
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    cursor: pointer;
    box-shadow:
        var(--shadow-orange),
        0 12px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.35),
        inset 0 -3px 6px rgba(140, 50, 0, 0.5); /* neumorphic depth */
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.play-button .bi { margin-left: 5px; }
.video-player:hover .play-button {
    transform: scale(1.12);
    box-shadow:
        0 0 46px rgba(255, 107, 0, 0.7),
        0 0 70px rgba(0, 212, 255, 0.3),
        0 14px 34px rgba(0, 0, 0, 0.55),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

/* Player control bar (UI only) */
.player-controls {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 2.4rem 4% 3.5%;
    background: linear-gradient(180deg, transparent, rgba(3, 5, 14, 0.88) 55%);
}
.progress-track {
    position: relative;
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 0.8rem;
    overflow: visible;
}
.progress-buffer {
    position: absolute;
    inset: 0 22% 0 0;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
}
.progress-fill {
    position: absolute;
    inset: 0 32% 0 0;
    z-index: 1;
    background: var(--grad-orange);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.7);
    animation: progressLive 8s ease-in-out infinite alternate;
}
.progress-knob {
    position: absolute;
    right: -7px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 143, 0, 0.9);
}
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 2vw, 1.1rem);
}
.ctrl-icon {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    color: var(--gray);
    transition: color 0.25s ease, transform 0.25s ease;
}
.video-player:hover .ctrl-icon { color: var(--text); }
.volume-track {
    width: 70px; height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    position: relative;
}
.volume-fill {
    position: absolute;
    inset: 0 30% 0 0;
    background: var(--grad-blue);
    border-radius: 4px;
}
.time-label {
    font-size: clamp(0.62rem, 1.6vw, 0.8rem);
    font-weight: 600;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.live-dot-sm {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ff2e2e;
    animation: pulseDot 1.4s ease-in-out infinite;
}
.quality-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 0.15rem 0.5rem;
    border-radius: 0.4rem;
}

/* Glass shine sweep across the player */
.glass-shine {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 30%, rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.08) 55%,
        transparent 70%);
    background-size: 250% 100%;
    background-position: 130% 0;
    animation: shineSweep 6s ease-in-out infinite;
}

/* ─────────────── 7. CTA Buttons ─────────────── */
.cta-wrap { margin-top: 2.4rem; }

.btn-watch-live {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    overflow: hidden;
    padding: 1rem 3.2rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: var(--grad-orange);
    border: none;
    border-radius: 50rem;
    cursor: pointer;
    box-shadow:
        var(--shadow-orange),
        0 0 70px rgba(0, 212, 255, 0.25),
        inset 0 2px 3px rgba(255, 255, 255, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    animation: ctaGlow 3s ease-in-out infinite;
}
.btn-watch-live .bi { font-size: 1.35em; }
.btn-watch-live:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 0 50px rgba(255, 107, 0, 0.65),
        0 0 90px rgba(0, 212, 255, 0.4),
        0 16px 34px rgba(0, 0, 0, 0.45),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
}
.btn-watch-live:active { transform: translateY(-1px) scale(1.01); }
.btn-watch-live:disabled { opacity: 0.7; cursor: wait; }

/* Sliding shine inside CTA */
.btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 130% 0;
    animation: shineSweep 3.2s ease-in-out infinite;
    pointer-events: none;
}

.btn-watch-alt {
    background: linear-gradient(135deg, #0091ff, #00d4ff);
    box-shadow:
        var(--shadow-blue),
        0 0 70px rgba(255, 107, 0, 0.2),
        inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.cta-note {
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: var(--gray);
}
.cta-note .bi { color: var(--accent); }

/* Scroll hint chevron */
.scroll-hint {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--gray);
    font-size: 1.5rem;
    text-decoration: none;
    animation: floatBall 2.4s ease-in-out infinite;
    transition: color 0.3s ease;
}
.scroll-hint:hover { color: var(--primary); }

/* ─────────────── 8. Sections / Glass Cards ─────────────── */
.section-block {
    position: relative;
    padding: clamp(4rem, 9vw, 7rem) 0;
    background: var(--bg-deep);
}

.section-head { max-width: 720px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 50rem;
    background: rgba(255, 107, 0, 0.07);
    margin-bottom: 1.1rem;
}
.section-title {
    font-size: clamp(1.7rem, 4.5vw, 2.7rem);
    font-weight: 800;
}
.section-sub {
    max-width: 560px;
    color: var(--gray);
    font-weight: 300;
    margin-top: 0.8rem;
}

/* Shared glass card */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-card::before {           /* shine sweep on hover */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 135% 0;
    transition: background-position 0.9s ease;
    pointer-events: none;
}
.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 107, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.glass-card:hover::before { background-position: -35% 0; }

/* Feature cards */
.feature-card { padding: 2rem 1.7rem; }
.feature-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 1.15rem 0 0.55rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 0;
}
.feature-icon {
    width: 58px; height: 58px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    border-radius: 1rem;
    color: #fff;
    /* soft neumorphic inset */
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3),
                inset 0 -3px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-orange { background: var(--grad-orange); box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4); }
.icon-blue   { background: var(--grad-blue);   box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35); color: #04121f; }
.glass-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); }

/* ─────────────── 9. Stats Section ─────────────── */
.stats-section {
    background: linear-gradient(180deg, var(--bg-deep), var(--bg-navy) 50%, var(--bg-deep));
    overflow: hidden;
}
.stats-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw; height: 60%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 107, 0, 0.12), transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.1), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.stats-section .container { position: relative; z-index: 1; }

.stat-card { padding: 2.1rem 1rem; }
.stat-emoji {
    font-size: 2.4rem;
    animation: floatBall 4s ease-in-out infinite;
    display: inline-block;
}
.stat-value {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    margin-top: 0.6rem;
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-card:nth-child(odd) .stat-value { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; }
.stat-label {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.2rem;
}

/* ─────────────── 10. Footer ─────────────── */
.glass-footer {
    background: rgba(9, 19, 41, 0.65);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 2.6rem 0 calc(2rem + var(--safe-bottom));
}
.footer-copy { color: var(--gray); font-size: 0.88rem; }
.footer-social a {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-left: 0.5rem;
    font-size: 1.05rem;
    color: var(--gray);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    color: #fff;
    background: var(--grad-orange);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}
.footer-divider { border-color: var(--glass-border); opacity: 1; margin: 1.8rem 0 1.2rem; }
.footer-disclaimer { color: #7c8aa5; font-size: 0.78rem; }

/* ─────────────── 11. Sticky Mobile CTA ─────────────── */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    padding: 0.8rem 1rem calc(0.8rem + var(--safe-bottom));
    background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.92) 35%);
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.sticky-cta.visible { transform: translateY(0); pointer-events: auto; }
.btn-sticky {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    animation: none;
}

/* ─────────────── 12. In-Player Loading State ─────────────── */
/* Fills the video player so it looks like the stream itself is buffering */
.player-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 70% 70% at 50% 45%, rgba(5, 8, 22, 0.72), rgba(3, 5, 14, 0.92) 85%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.player-loading.active { opacity: 1; visibility: visible; }

/* When loading, dim the play button & badges so it reads as "starting to play" */
.video-player.is-loading .play-button-wrap,
.video-player.is-loading .player-controls,
.video-player.is-loading .top-badges,
.video-player.is-loading .viewer-count { opacity: 0; transition: opacity 0.3s ease; }

.pl-inner { position: relative; padding: 0.5rem; }

/* Quad-arc spinner (scales with player size) */
.spinner-ring {
    position: relative;
    width: clamp(70px, 14vw, 100px);
    height: clamp(70px, 14vw, 100px);
    margin: 0 auto;
}
.spinner-ring div {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.spinner-ring div:nth-child(1) { border-top-color: var(--primary);   animation-delay: -0.45s; }
.spinner-ring div:nth-child(2) { border-top-color: var(--accent);    animation-delay: -0.3s; }
.spinner-ring div:nth-child(3) { border-top-color: var(--secondary); animation-delay: -0.15s; }
.spinner-ring div:nth-child(4) { border-top-color: rgba(255,255,255,0.6); }

/* Spinning basketball in the exact center of the spinner ring */
.loading-ball {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1;
    animation: ballSpin 1.6s linear infinite;
    filter: drop-shadow(0 6px 14px rgba(255, 107, 0, 0.6));
}

.pl-title {
    font-size: clamp(1rem, 2.6vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 1.1rem;
    margin-bottom: 0.3rem;
}
.pl-title .dots span { animation: dotBlink 1.4s infinite; display: inline-block; }
.pl-title .dots span:nth-child(2) { animation-delay: 0.2s; }
.pl-title .dots span:nth-child(3) { animation-delay: 0.4s; }

.pl-sub {
    color: var(--gray);
    font-size: clamp(0.72rem, 1.8vw, 0.85rem);
    font-weight: 300;
    margin-bottom: 0.4rem;
}

/* Small countdown number */
.pl-countdown {
    display: inline-block;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 900;
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 107, 0, 0.55));
    animation: countPop 1s ease-in-out infinite;
}

/* Buffering bar along the bottom of the player */
.pl-buffer {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.pl-buffer-fill {
    height: 100%;
    width: 0;
    background: var(--grad-orange);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.8);
}
/* Fill the buffer bar over the countdown duration once loading starts */
.player-loading.active .pl-buffer-fill {
    animation: bufferFill var(--buffer-time, 3s) linear forwards;
}

/* ─────────────── 13. Keyframe Animations ─────────────── */
@keyframes ballBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
@keyframes ballSpin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes floatBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(12deg); }
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 46, 46, 0.7); }
    50%      { opacity: 0.65; box-shadow: 0 0 0 6px rgba(255, 46, 46, 0); }
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 14px rgba(255, 46, 46, 0.5); }
    50%      { box-shadow: 0 0 26px rgba(255, 46, 46, 0.9); }
}
@keyframes ringExpand {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 28px rgba(255, 107, 0, 0.45), 0 0 60px rgba(0, 212, 255, 0.2),  inset 0 2px 3px rgba(255,255,255,0.35); }
    50%      { box-shadow: 0 0 44px rgba(255, 107, 0, 0.7),  0 0 90px rgba(0, 212, 255, 0.35), inset 0 2px 3px rgba(255,255,255,0.35); }
}
@keyframes shineSweep {
    0%, 55%  { background-position: 130% 0; }
    85%, 100%{ background-position: -30% 0; }
}
@keyframes raySweep {
    0%   { transform: rotate(-7deg); opacity: 0.35; }
    50%  { opacity: 0.6; }
    100% { transform: rotate(7deg); opacity: 0.4; }
}
@keyframes rayPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.6; }
}
@keyframes smokeDrift {
    0%   { transform: translateX(0) scale(1); }
    100% { transform: translateX(6vw) scale(1.15); }
}
@keyframes crowdFlicker {
    0%   { opacity: 0.65; }
    100% { opacity: 0.9; }
}
@keyframes ledScroll {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
@keyframes progressLive {
    0%   { inset: 0 34% 0 0; }
    100% { inset: 0 28% 0 0; }
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes dotBlink {
    0%, 60%, 100% { opacity: 0.2; }
    30%           { opacity: 1; }
}
@keyframes countPop {
    0%   { transform: scale(0.7); opacity: 0.4; }
    35%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes bufferFill {
    0%   { width: 0; }
    100% { width: 100%; }
}
@keyframes thumbZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ─────────────── 14. Responsive Fine-Tuning ─────────────── */

/* Tablets */
@media (max-width: 991.98px) {
    .hero-section { padding-top: calc(96px + var(--safe-top)); padding-bottom: 70px; }
    .light-ray { width: 34vw; }
}

/* Phones */
@media (max-width: 575.98px) {
    .hero-section { padding-top: calc(88px + var(--safe-top)); padding-bottom: 96px; }
    .hero-title { letter-spacing: 0.5px; }

    .player-wrapper { margin-top: 2rem; }
    .video-player { border-radius: 1rem; }
    .thumb-scoreboard { gap: 0.45rem; padding: 0.35rem 0.7rem; }

    /* Full-width CTA on mobile */
    .btn-watch-live { width: 100%; padding: 1rem 1.4rem; }
    .cta-wrap { padding: 0 0.25rem; }

    .feature-card { padding: 1.6rem 1.35rem; }
    .stat-card { padding: 1.6rem 0.75rem; }

    .float-ball-1 { top: 13%; left: 3%; }
    .float-ball-2 { top: 20%; right: 4%; }

    .scroll-hint { display: none; } /* keep clear of sticky CTA */
}

/* Very narrow / fold devices (Galaxy Fold ~280px) */
@media (max-width: 359.98px) {
    .brand-text { font-size: 1.05rem; }
    .hero-title { font-size: 1.75rem; }
    .live-pill { font-size: 0.62rem; padding: 0.4rem 0.85rem; letter-spacing: 1px; }
    .thumb-scoreboard .quarter { display: none; }
    .badge-fiba { display: none; }
    .btn-watch-live { font-size: 0.9rem; letter-spacing: 1px; }
}

/* Short landscape phones — keep hero usable */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-section { min-height: auto; padding: calc(84px + var(--safe-top)) 0 60px; }
    .float-ball, .scroll-hint { display: none; }
    .player-wrapper { max-width: 560px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
