/* ==========================================================================
   WTC SPORTS / HSSPORTS LIVE - ULTRA HD BROADCAST DESIGN SYSTEM (style.css)
   ========================================================================== */

:root {
    --bg-base: #060b16;
    --bg-surface: #0d1526;
    --bg-card: rgba(18, 28, 48, 0.85);
    --bg-card-hover: rgba(26, 39, 68, 0.95);
    --bg-glass: rgba(11, 18, 34, 0.82);
    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-highlight: rgba(59, 130, 246, 0.45);
    --brand-red: #ef4444;
    --brand-red-dark: #dc2626;
    --brand-red-glow: rgba(239, 68, 68, 0.45);
    --brand-blue: #3b82f6;
    --brand-blue-dark: #2563eb;
    --brand-blue-glow: rgba(59, 130, 246, 0.4);
    --brand-emerald: #10b981;
    --brand-emerald-dark: #059669;
    --brand-amber: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
    --shadow-glow-red: 0 10px 28px -4px rgba(239, 68, 68, 0.5);
    --shadow-glow-blue: 0 10px 28px -4px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   1. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.10) 0%, transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.10) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

h1, h2, h3, h4, .logo, .vs-badge-circle, .btn-hero-play, .btn-affiliate {
    font-family: 'Outfit', 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. BROADCAST GLASS NAVBAR & LIVE SEARCH
   ========================================================================== */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-emerald));
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    flex-shrink: 0;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 12px var(--brand-red);
    animation: pulse-dot 2s infinite;
}

.logo span {
    color: var(--brand-red);
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    margin-left: 2px;
}

.navbar nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links li a.nav-item {
    padding: 0.48rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a.nav-item:hover,
.nav-links li a.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links li a.nav-item.active {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #ffffff;
}

.btn-login {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    padding: 0.52rem 1.15rem;
    border-radius: var(--radius-pill);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

/* Search Bar & Instant Dropdown */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 6px;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(6, 11, 22, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 2px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-form input {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 0.85rem;
    width: 175px;
    transition: width 0.3s ease;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form input:focus {
    width: 230px;
}

.search-form button {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--brand-blue);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: var(--brand-blue-dark);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 290px;
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    z-index: 1100;
    display: none;
    max-height: 340px;
    overflow-y: auto;
}

.search-dropdown-item {
    padding: 11px 15px;
    border-bottom: 1px solid var(--border-subtle);
    display: block;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.14);
}

.search-item-teams {
    font-weight: 700;
    font-size: 0.86rem;
    color: #ffffff;
}

.search-item-cat {
    font-size: 0.72rem;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-top: 3px;
}

/* ==========================================================================
   3. HERO SECTION & BROADCAST BANNER
   ========================================================================== */
.hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4.5rem 20px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 10%, var(--bg-base) 95%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.25);
}

.hero-content h1 {
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.hero-content h1 span {
    background: linear-gradient(135deg, #f87171, #ef4444, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: clamp(0.98rem, 2vw, 1.18rem);
    color: var(--text-secondary);
    margin: 0 auto 1.85rem auto;
    max-width: 640px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.75rem;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff !important;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    letter-spacing: 0.4px;
    box-shadow: var(--shadow-glow-red);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.65);
}

/* ==========================================================================
   4. FILTER PILLS, DATE PICKER & SECTION HEADERS
   ========================================================================== */
.streams-section {
    padding: 3.2rem 20px;
}

.section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--brand-red);
    padding-left: 14px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
    padding-left: 18px;
}

.frontend-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0 32px 0;
    flex-wrap: wrap;
    background: rgba(13, 21, 38, 0.75);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.frontend-filters a {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.frontend-filters a:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.8);
    transform: translateY(-1px);
}

.frontend-filters a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border-color: rgba(147, 197, 253, 0.35);
    box-shadow: var(--shadow-glow-blue);
}

.date-picker-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
    transition: border-color 0.2s ease;
}

.date-picker-wrapper:hover {
    border-color: var(--brand-blue);
}

.date-picker-wrapper input[type="date"] {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.date-picker-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ==========================================================================
   5. AD CONTAINER STYLING
   ========================================================================== */
.ad-container {
    text-align: center;
    margin: 0 auto 30px auto;
    max-width: 100%;
    overflow: hidden;
    padding: 10px;
    background: rgba(13, 21, 38, 0.5);
    border: 1px dashed rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-md);
}

.ad-label {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ad-frame-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20px;
    overflow-x: auto;
}

.ad-container iframe {
    max-width: 100% !important;
    border-radius: 6px;
}

/* ==========================================================================
   6. STREAM GRID & MATCHUP CARDS
   ========================================================================== */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stream-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.stream-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(59, 130, 246, 0.15);
}

.thumbnail {
    position: relative;
    height: 176px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #131f38 0%, #091020 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.thumbnail > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stream-card:hover .thumbnail > img {
    transform: scale(1.04);
}

.html-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(circle at 80% 50%, rgba(239, 68, 68, 0.18), transparent 55%),
        linear-gradient(135deg, #111c33 0%, #080e1c 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    z-index: 1;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42%;
    z-index: 2;
}

.team-side img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    padding: 7px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}

.stream-card:hover .team-side img {
    transform: scale(1.06);
}

.team-side .team-abbr {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.vs-badge-circle {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-red), #991b1b);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.55);
    border: 2px solid #091020;
    z-index: 2;
    flex-shrink: 0;
}

/* Status Badges */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    border-radius: var(--radius-pill);
    color: #ffffff;
    z-index: 10;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.live-badge {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    animation: pulse 2s infinite;
}

.upcoming-badge {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

.ondemand-badge {
    background: linear-gradient(135deg, var(--brand-emerald), var(--brand-emerald-dark));
}

/* Countdown Overlay inside Card */
.countdown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(6, 11, 22, 0.96) 25%, rgba(6, 11, 22, 0.15) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.countdown-overlay .timer-label {
    font-size: 0.65rem;
    margin-bottom: 3px;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.countdown-overlay .timer-text {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.6);
    color: #f8fafc;
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.timer-text.is-starting {
    color: #fecaca;
    background: rgba(185, 28, 28, 0.9);
    border-color: var(--brand-red);
    animation: pulse 2s infinite;
}

/* Card Hover Overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 22, 0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 20;
}

.stream-card:hover .overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff !important;
    padding: 0.65rem 1.45rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    box-shadow: var(--shadow-glow-red);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 21;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.play-btn:hover {
    transform: scale(1.06);
}

/* Card Body Info */
.stream-info {
    padding: 1.15rem 1.2rem 1.25rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stream-info .category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stream-info .category {
    font-size: 0.72rem;
    font-weight: 800;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(59, 130, 246, 0.12);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
}

.stream-info h3 {
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 4px 0 8px 0;
    color: #ffffff;
}

.stream-meta-time {
    font-size: 0.8rem;
    color: #f87171;
    margin-bottom: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stream-info .tournament {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: #ffffff !important;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: var(--shadow-glow-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.55);
}

/* ==========================================================================
   7. WATCH PAGE & BROADCAST VIDEO PLAYER FUNNEL
   ========================================================================== */
.watch-section {
    padding: 2rem 20px 3.5rem 20px;
    max-width: 1060px;
    margin: 0 auto;
}

.breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb-bar a:hover {
    color: #ffffff;
}

.funnel-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background-color: #091122;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(239, 68, 68, 0.12);
    aspect-ratio: 16 / 9;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.funnel-player-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(6, 11, 22, 0.35) 0%, rgba(6, 11, 22, 0.85) 100%),
        linear-gradient(180deg, rgba(6, 11, 22, 0.55) 0%, rgba(6, 11, 22, 0.35) 50%, rgba(6, 11, 22, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.player-top-hud {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 30;
    pointer-events: none;
}

.hud-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

.hud-badge-replay {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-emerald), var(--brand-emerald-dark));
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.hud-viewer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 11, 22, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Realistic Broadcast Bottom Control Bar */
.player-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: linear-gradient(to top, rgba(6, 11, 22, 0.95), rgba(6, 11, 22, 0.4));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 28;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #cbd5e1;
}

.player-progress-track {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.player-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--brand-red);
    box-shadow: 0 0 8px var(--brand-red);
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hd-quality-tag {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Phase 1: Matchup Showcase */
.phase1-thumbnail {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 55px 24px 55px 24px;
    transition: opacity 0.35s ease;
}

.phase1-thumbnail .html-thumbnail {
    height: auto !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    margin-bottom: 26px;
    width: 100%;
    max-width: 720px;
}

.phase1-thumbnail .team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-align: center;
    width: 40%;
}

.phase1-thumbnail .team-side img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.18);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.phase1-thumbnail .vs-badge-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-red), #991b1b);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.75);
    flex-shrink: 0;
}

.phase1-thumbnail .team-abbr {
    margin-top: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
    white-space: normal;
    line-height: 1.25;
}

.btn-hero-play {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px 44px;
    font-size: 1.18rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse-btn 2s infinite;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-play:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 38px rgba(239, 68, 68, 0.85);
}

/* Phase 2: Loading & Countdown */
.phase2-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(6, 11, 22, 0.9);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 16px;
}

/* Phase 3: High-Converting CPA Overlay */
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 25;
    padding: 24px 20px 56px 20px;
}

.cta-lock-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.cta-title {
    color: #4ade80;
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: clamp(0.86rem, 1.8vw, 1.05rem);
    margin-bottom: 16px;
    max-width: 600px;
    line-height: 1.5;
}

.cta-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cta-perk-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 4px 11px;
    border-radius: var(--radius-pill);
}

.btn-affiliate {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff !important;
    padding: 15px 38px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-glow-red);
    animation: pulse-btn 2s infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-affiliate:hover {
    transform: scale(1.04);
}

.server-switch-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px auto 24px auto;
}

.btn-backup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.28);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-backup:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Match Details Box below Player */
.match-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 24px auto 0 auto;
    max-width: 980px;
    box-shadow: var(--shadow-card);
}

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

.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: #ffffff;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.match-title {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 900;
    margin: 10px 0 6px 0;
    color: #ffffff;
    line-height: 1.25;
}

.tournament-name {
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 600;
}

.match-description-box {
    margin-top: 18px;
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 16px 20px;
    background: rgba(6, 11, 22, 0.55);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-red);
}

.share-btn {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--brand-blue);
}

/* ==========================================================================
   8. CATEGORY AUTH HERO CARD
   ========================================================================== */
.hero-auth {
    padding: 28px 20px 10px 20px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
    max-width: 920px;
    width: 100%;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-emerald));
}

.auth-subtitle {
    color: #93c5fd;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 800;
}

.auth-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-weight: 900;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-title svg {
    color: var(--brand-emerald);
    width: 44px;
    height: 44px;
}

.auth-text {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin: 0 auto 26px auto;
    line-height: 1.6;
    max-width: 600px;
}

.btn-register {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-glow-red);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.65);
}

/* ==========================================================================
   9. STATIC PAGES (CONTACT, PRIVACY, TERMS)
   ========================================================================== */
.static-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
    line-height: 1.8;
}

.static-page-card h1 {
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    font-size: 2rem;
}

.static-page-card h3 {
    color: #ffffff;
    margin-top: 26px;
    margin-bottom: 10px;
}

.form-input-field {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: #060b16;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input-field:focus {
    border-color: var(--brand-blue);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
    background: #040811;
    border-top: 1px solid var(--border-subtle);
    padding: 2.8rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
    max-width: 420px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   11. ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
    70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

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

/* ==========================================================================
   12. MOBILE RESPONSIVENESS (TABLET & SMARTPHONE)
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1005;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle .bar {
    width: 24px;
    height: 2.5px;
    background-color: #f8fafc;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0b1324;
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a.nav-item {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .search-container {
        width: 100%;
        margin: 8px 0;
    }

    .search-form input,
    .search-form input:focus {
        width: 100%;
    }

    .btn-login {
        width: 100%;
        justify-content: center;
        padding: 11px;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 320px;
        padding: 2.8rem 16px;
    }

    .streams-section {
        padding: 2rem 14px;
    }

    .stream-grid {
        grid-template-columns: 1fr;
    }

    .watch-section {
        padding: 1.2rem 12px 2.5rem 12px;
    }

    /* Fix mobile player height so CTA & logos never clip */
    .funnel-player-wrapper {
        aspect-ratio: auto;
        min-height: 340px;
        border-radius: var(--radius-md);
    }

    .phase1-thumbnail {
        padding: 48px 14px 52px 14px;
    }

    .phase1-thumbnail .html-thumbnail {
        gap: 14px;
        margin-bottom: 18px;
    }

    .phase1-thumbnail .team-side img {
        width: 72px;
        height: 72px;
        padding: 8px;
    }

    .phase1-thumbnail .vs-badge-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .phase1-thumbnail .team-abbr {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .btn-hero-play {
        padding: 13px 28px;
        font-size: 0.95rem;
    }

    .cta-overlay {
        padding: 44px 16px 52px 16px;
    }

    .cta-lock-badge {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .cta-perks {
        gap: 6px;
        margin-bottom: 14px;
    }

    .cta-perk-pill {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .btn-affiliate {
        width: 100%;
        max-width: 320px;
        padding: 13px 18px;
        font-size: 0.88rem;
    }

    .match-details-card,
    .static-page-card {
        padding: 1.35rem;
    }

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

    .footer-links {
        justify-content: center;
    }
}