/* DESIGN SYSTEM & CONSTANTS */
:root {
    --bg-primary: #060608;
    --bg-secondary: #0c0c10;
    --bg-tertiary: #111116;
    --card-bg: #121218;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --accent-primary: #8b5cf6;
    --accent-primary-rgb: 139, 92, 246;
    --accent-primary-hover: #7c3aed;
    --accent-secondary: #06b6d4;
    
    --live-red: #ef4444;
    --live-glow: rgba(239, 68, 68, 0.4);
    --gold: #f59e0b;
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(139, 92, 246, 0.25);
    --glass-bg: rgba(12, 12, 16, 0.75);
    --glass-border: rgba(255, 255, 255, 0.07);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Archivo', var(--font-sans);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 72px; /* For fixed navbar */
}

/* SCROLLBAR CUSTOMIZATION */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* UTILITIES & SPINNERS */
.text-live {
    color: var(--live-red);
    font-weight: 600;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-spinner-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

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

.live-dot-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--live-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--live-red);
    animation: pulse 1.5s infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--text-primary);
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.nav-link .badge {
    background-color: var(--accent-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

/* SEARCH CONTAINER */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0 14px;
    width: 240px;
    height: 40px;
    transition: var(--transition-normal);
}

.search-container:focus-within {
    width: 320px;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.clear-search-btn {
    color: var(--text-secondary);
    font-size: 18px;
    padding: 0 4px;
    transition: var(--transition-fast);
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 64px 24px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.badge-live-now {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.4; box-shadow: 0 0 8px var(--accent-primary); }
    100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-desc {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* MAIN CONTAINER & GRID */
.app-main-container, .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 32px 64px;
    box-sizing: border-box;
}

.view-panel {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.stream-stats {
    font-size: 13.5px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

/* CATEGORIES FILTER BAR */
.categories-bar-wrapper {
    position: relative;
    margin-bottom: 32px;
    width: 100%;
}

.categories-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none; /* Firefox */
}

.categories-bar::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.category-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.category-btn.active {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

/* LEAGUES & TOURNAMENTS FILTER BAR */
.leagues-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -12px;
    margin-bottom: 28px;
    padding: 10px 16px;
    background: rgba(12, 12, 16, 0.65);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
}

.leagues-bar-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.leagues-bar-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.leagues-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}

.leagues-bar::-webkit-scrollbar {
    display: none;
}

.league-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
}

.league-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.league-btn.active {
    background-color: rgba(139, 92, 246, 0.22);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.league-btn .league-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.league-btn.active .league-badge {
    background: var(--accent-primary);
    color: #fff;
}

/* STREAMS GRID & CARDS */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.stream-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Thumbnail */
.card-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.stream-card:hover .card-thumbnail {
    transform: scale(1.05);
}

/* Card Overlays */
.card-badge-live {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge-live .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: cardPulse 1.2s infinite;
}

@keyframes cardPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.card-badge-upcoming {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(12, 12, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.card-favorite-btn:hover {
    background: var(--bg-tertiary);
    color: var(--gold);
    transform: scale(1.1);
}

.card-favorite-btn.is-favorite {
    color: var(--gold);
}

.card-favorite-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Card Body */
.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.card-league {
    font-size: 12.5px;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: auto; /* Push footer elements down */
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.card-time {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.btn-card-watch {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.stream-card:hover .btn-card-watch {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* EMPTY STATE FOR FAVORITES */
.empty-favorites {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--border-light);
    border-radius: 16px;
    background-color: var(--bg-secondary);
}

.empty-fav-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-favorites h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-favorites p {
    color: var(--text-secondary);
    font-size: 14.5px;
    max-width: 450px;
    margin: 0 auto 20px;
}

/* PLAYER MODAL OVERLAY */
.player-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 6, 0.96);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 1300px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Drag Handle Indicator */
.mobile-drag-handle-bar {
    display: none;
    width: 100%;
    height: 18px;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    cursor: grab;
    touch-action: none;
}

.mobile-drag-handle-bar .drag-pill {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.player-modal-header {
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.player-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.player-back-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateX(-2px);
}

.player-back-btn:active {
    transform: scale(0.96);
}

.player-back-btn .back-icon {
    width: 18px;
    height: 18px;
}

.player-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    overflow: hidden;
}

.player-category-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.player-stream-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--live-red);
    flex-shrink: 0;
}

/* STREAM HEALTH BADGE */
.stream-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.health-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    animation: healthPulse 1.8s infinite;
}

@keyframes healthPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.player-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.player-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.player-action-btn.is-fav {
    color: var(--gold);
    border-color: rgba(245, 158, 11, 0.3);
}

.player-action-btn svg {
    width: 18px;
    height: 18px;
}

.player-close-btn {
    font-size: 28px;
    color: var(--text-secondary);
    padding: 0 8px;
    line-height: 1;
    transition: var(--transition-fast);
}

.player-close-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Video & Chat Container */
.player-view-container {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}

.video-wrapper {
    flex-grow: 1;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* STREAM CONTROL BAR (Fast Server Switcher & Anti-Buffer Controls) */
.stream-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 12, 16, 0.92);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 16px;
    gap: 12px;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.server-pills-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.server-pills-wrapper::-webkit-scrollbar {
    display: none;
}

.server-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-secondary);
    white-space: nowrap;
}

.server-pills {
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.server-pill.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.server-pill.optimal:not(.active) {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.server-pill .pill-badge {
    background: rgba(0, 0, 0, 0.3);
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.server-pill .pill-badge.optimal {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.server-pill.active .pill-badge.optimal {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

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

.stream-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.stream-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.auto-failover-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.auto-failover-btn.active .status-indicator-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.auto-failover-btn:not(.active) .status-indicator-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
}

/* NATIVE VIDEO PLAYER & ENTERPRISE CONTROLS */
.native-player-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.native-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.native-player-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(139, 92, 246, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 20;
    pointer-events: auto;
}

.native-player-overlay-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-primary);
}

.native-player-overlay-play.playing {
    opacity: 0;
    pointer-events: none;
}

/* Controls Bar */
.native-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 30;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.native-player-container:hover .native-controls-bar,
.native-controls-bar.active {
    opacity: 1;
}

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

.native-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
    font-size: 14px;
}

.native-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.native-volume-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.native-vol-slider {
    width: 65px;
    height: 4px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.native-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--live-red);
    background: rgba(239, 68, 68, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
}

/* P2P Stats Badge */
.p2p-stats-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
}

.p2p-mesh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 6px #06b6d4;
    animation: pulse 1.5s infinite;
}

/* Quality Menu Dropdown */
.native-quality-wrapper {
    position: relative;
}

.quality-menu-dropdown {
    position: absolute;
    bottom: 44px;
    right: 0;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    z-index: 50;
}

.quality-opt-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quality-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.quality-opt-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

.iframe-container {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    position: relative;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.unmute-banner {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 20, 0.88);
    border: 1px solid var(--accent-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    transition: var(--transition-fast);
}

.unmute-banner:hover {
    background: var(--accent-primary);
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Under Player Details */
.player-details-row {
    height: 52px;
    border-top: 1px solid var(--border-light);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 13.5px;
}

.player-league-info, .player-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-league-info .label, .player-status-info .label {
    color: var(--text-secondary);
}

.player-league-info .value, .player-status-info .value {
    font-weight: 500;
}

/* MULTI-VIEW WORKSPACE */
.multiview-layout {
    display: flex;
    height: calc(100vh - 250px);
    min-height: 550px;
    gap: 24px;
}

.multiview-sidebar {
    width: 320px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 18px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sidebar-search {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.sidebar-search-input:focus {
    border-color: var(--accent-primary);
}

.sidebar-streams-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-stream-item {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-stream-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.sidebar-stream-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-stream-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Workspace Grid Area */
.multiview-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.multiview-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 20px;
}

.mv-layouts-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-label {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.mv-layout-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.mv-layout-btn:hover {
    color: var(--text-primary);
}

.mv-layout-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* MultiView grid layouts */
.multiview-grid {
    flex-grow: 1;
    display: grid;
    gap: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
}

.multiview-grid.layout-2x2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.multiview-grid.layout-1x2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.multiview-grid.layout-1x1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.mv-slot {
    background: #000;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-slot-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
}

.slot-plus {
    font-size: 32px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.mv-slot-empty p {
    font-size: 12px;
    max-width: 180px;
    margin: 0 auto;
}

.mv-slot-player {
    width: 100%;
    height: 100%;
    position: relative;
}

.mv-slot-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mv-slot-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 10;
}

.mv-slot:hover .mv-slot-header {
    opacity: 1;
}

.mv-slot-title {
    font-size: 11.5px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.mv-slot-close {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.mv-slot-close:hover {
    background: var(--live-red);
}

/* FOOTER */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 32px 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -1px;
}

.footer-moto {
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* MOBILE-FIRST BOTTOM NAVIGATION DOCK */
.mobile-bottom-nav {
    display: none;
}

/* RESPONSIVENESS & MOBILE-FIRST EXPERIENCE */
@media (max-width: 1024px) {
    .multiview-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .multiview-sidebar {
        width: 100%;
        height: 250px;
    }
    
    .multiview-workspace {
        height: 550px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-bottom: 74px; /* Space for bottom dock */
    }
    
    /* Top Navbar on Mobile */
    .navbar {
        height: 60px;
        background: rgba(10, 10, 14, 0.92);
    }
    
    .navbar-container {
        padding: 0 16px;
        gap: 12px;
    }
    
    .nav-logo-text {
        font-size: 19px;
        letter-spacing: -0.5px;
    }
    
    /* Hide top nav links on mobile; replaced by bottom dock */
    .nav-links {
        display: none !important;
    }
    
    .navbar-right {
        flex-grow: 1;
        max-width: 220px;
    }
    
    .search-container {
        width: 100%;
        height: 38px;
    }
    
    .search-input {
        font-size: 13px;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 28px 20px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 13.5px;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 14px;
        justify-content: center;
    }

    /* Main Container & Section Spacing - Generous 20px side gutters */
    .app-main-container, .container {
        padding: 16px 20px 96px;
        width: 100%;
        box-sizing: border-box;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .stream-stats {
        align-self: flex-start;
        font-size: 12px;
    }

    /* Categories & League Filter Bars on Mobile */
    .categories-bar-wrapper, .leagues-bar-wrapper {
        margin-bottom: 18px;
        width: 100%;
    }

    .categories-bar, .leagues-bar {
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 12.5px;
        border-radius: 20px;
        flex-shrink: 0;
    }

    .league-pill {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 16px;
        flex-shrink: 0;
    }

    /* Streams Grid on Mobile */
    .streams-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .stream-card {
        border-radius: 16px;
        padding: 18px;
        border: 1px solid var(--border-light);
        background: var(--card-bg);
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
    }

    .stream-card:active {
        transform: scale(0.98);
        border-color: var(--accent-primary);
    }

    .stream-card-body {
        gap: 12px;
    }

    .matchup-row {
        gap: 8px;
    }

    .team-badge-wrapper img {
        width: 44px;
        height: 44px;
    }

    .team-name {
        font-size: 13.5px;
    }

    .stream-card-footer {
        padding-top: 12px;
    }

    .btn-watch {
        width: 100%;
        padding: 10px;
        font-size: 13.5px;
        justify-content: center;
        border-radius: 10px;
    }

    /* FULLSCREEN MOBILE PLAYER EXPERIENCE */
    .player-overlay {
        padding: 0;
        background: #000;
        z-index: 2000;
    }

    .player-modal-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }

    /* MOBILE FULLSCREEN CINEMATIC PLAYER */
    .player-overlay {
        position: fixed;
        inset: 0;
        padding: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #000;
        border-radius: 0;
        z-index: 99999;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
    }

    .player-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        background: #08080c;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-drag-handle-bar {
        display: flex;
        height: 18px;
        align-items: center;
        justify-content: center;
        background: #0c0c12;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        flex-shrink: 0;
    }

    .player-modal-header {
        height: 52px;
        padding: 0 12px;
        gap: 8px;
        background: #0c0c12;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .player-back-btn {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 700;
        gap: 6px;
        border-radius: 20px;
        background: rgba(139, 92, 246, 0.25);
        border: 1.5px solid var(--accent-primary);
        color: #fff;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
    }

    .player-back-btn:active {
        transform: scale(0.95);
        background: var(--accent-primary);
    }

    .player-meta {
        overflow: hidden;
        flex-grow: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .player-stream-title {
        font-size: 13.5px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .player-category-tag, .player-health-pill, #player-health-pill, .player-live-badge {
        display: none !important; /* Keep mobile header uncluttered */
    }

    .player-modal-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .player-action-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
    }

    .player-view-container {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        background: #000;
    }

    .video-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 40vh;
        min-height: 210px;
        flex-shrink: 0;
        background: #000;
        position: relative;
    }

    .iframe-container {
        width: 100%;
        height: 100%;
    }

    /* Mobile Server Switcher Bar */
    .stream-control-bar {
        padding: 8px 12px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--border-light);
        background: #101017;
        flex-shrink: 0;
    }

    .server-pills-wrapper {
        flex-shrink: 0;
        gap: 6px;
    }

    .server-pill {
        padding: 6px 12px;
        font-size: 11.5px;
        font-weight: 700;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .stream-control-actions {
        flex-shrink: 0;
        gap: 6px;
    }

    .stream-pill-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Mobile Match Details & Action Hub */
    .player-details-row {
        flex-grow: 1;
        overflow-y: auto;
        padding: 16px 14px 60px;
        background: #08080c;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-match-info-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-radius: 14px;
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .match-info-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13px;
        font-weight: 600;
    }

    .match-info-league {
        color: var(--text-primary);
    }

    .match-info-time {
        color: var(--accent-secondary);
        font-size: 12px;
    }

    .mobile-hub-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mobile-action-pill {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--border-light);
        color: var(--text-primary);
        padding: 8px 6px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-action-pill:active {
        background: var(--accent-primary);
        color: #fff;
        transform: scale(0.96);
    }

    .mobile-action-pill.is-fav {
        background: rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.5);
        color: var(--gold);
    }

    /* Landscape Mode for Smartphones */
    @media (max-width: 920px) and (orientation: landscape) {
        .player-modal-header,
        .mobile-drag-handle-bar,
        .stream-control-bar,
        .player-details-row {
            display: none !important;
        }

        .player-view-container,
        .video-wrapper {
            width: 100vw !important;
            height: 100vh !important;
            max-height: 100vh !important;
            aspect-ratio: unset !important;
        }
    }

    /* Multi-View Grid on Mobile */
    .multiview-grid.layout-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 220px);
    }
    
    .multiview-grid.layout-1x2 {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 240px;
    }

    .mv-layouts-selector {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    /* Footer Mobile Spacing */
    .footer {
        padding: 24px 14px 80px;
    }

    /* MOBILE-FIRST BOTTOM NAVIGATION DOCK (ACTIVE ON MOBILE) */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(10, 10, 14, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-light);
        z-index: 1000;
        align-items: center;
        justify-content: space-around;
    }

    .mob-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 100%;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 500;
        transition: var(--transition-fast);
        position: relative;
        -webkit-tap-highlight-color: transparent;
        border: none;
        background: none;
        cursor: pointer;
    }

    .mob-nav-btn.active {
        color: var(--accent-primary);
        font-weight: 700;
    }

    .mob-nav-btn.active::before {
        content: '';
        position: absolute;
        top: 0;
        width: 28px;
        height: 3px;
        background: var(--accent-primary);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 2px 8px var(--accent-primary);
    }

    .mob-nav-icon-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
    }

    .mob-nav-icon-wrapper svg {
        width: 19px;
        height: 19px;
    }

    .mob-live-badge-dot {
        position: absolute;
        top: 0;
        right: -2px;
        width: 6px;
        height: 6px;
        background: var(--live-red);
        border-radius: 50%;
        box-shadow: 0 0 6px var(--live-red);
    }

    .mob-fav-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: var(--accent-primary);
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        padding: 1px 4px;
        border-radius: 10px;
        min-width: 14px;
        text-align: center;
    }
}

/* STREAM SOURCE DROPDOWN SELECTOR */
.stream-source-select {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 30px 8px 12px;
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-right: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.stream-source-select:hover, .stream-source-select:focus {
    border-color: var(--accent-primary);
    background-color: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.stream-source-select option {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13.5px;
    padding: 10px;
}

