@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    
    --brand-yellow: #FFC90E;
    --brand-pink: #FF6B9C;
    --brand-orange: #FF8F00;
    
    
    --bg-main: #0F1115;
    --bg-surface: #181B21;
    --bg-surface-hover: #22262E;
    --bg-glass: rgba(24, 27, 33, 0.85);
    --bg-glass-light: rgba(255, 255, 255, 0.03);
    
    
    --text-primary: #FFFFFF;
    --text-secondary: #B0B5C0;
    --text-tertiary: #6B7280;
    
    
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active: rgba(255, 201, 14, 0.4);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    --glow-primary: 0 0 25px rgba(255, 201, 14, 0.25);
    
    
    --gradient-brand: linear-gradient(135deg, var(--brand-pink), var(--brand-orange), var(--brand-yellow));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('images/saltarka.png') no-repeat center top fixed;
    background-size: cover;
    background-color: var(--bg-main); 
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

.bg-clickable {
    position: fixed;
    inset: 0;
    z-index: 0;
    cursor: pointer;
    display: block;
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: transparent; 
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    will-change: transform;
    animation: float 25s ease-in-out infinite;
}

.circle-1 { width: 40vw; height: 40vw; background: var(--brand-yellow); top: -10%; left: -10%; }
.circle-2 { width: 35vw; height: 35vw; background: var(--brand-pink); bottom: -10%; right: -10%; animation-delay: -5s; }
.circle-3 { width: 25vw; height: 25vw; background: var(--brand-orange); top: 40%; left: 40%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: static;
    z-index: 100;
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 201, 14, 0.15));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    max-width: 620px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.header-nav-link {
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    letter-spacing: 0.1px;
}

.header-nav-link:first-child {
    color: var(--brand-yellow);
    background: rgba(255, 201, 14, 0.08);
    border: 1px solid rgba(255, 201, 14, 0.15);
}

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

.header-nav-link:first-child:hover {
    background: rgba(255, 201, 14, 0.15);
}

.header-channel-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-channel-count svg {
    opacity: 0.6;
}

.header-banner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-height: 70px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    padding: 8px;
}

.header-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 201, 14, 0.15);
    border-color: var(--border-active);
}

.header-banner img {
    width: 100%;
    height: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-banner:hover img {
    transform: scale(1.02);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 68, 68, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #FF4444;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.live-indicator:hover {
    background: rgba(255, 68, 68, 0.15);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 2001;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

main {
    position: relative;
    padding: 24px 0;
    z-index: 1;
}

@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
    header {
        padding-top: max(16px, env(safe-area-inset-top));
    }
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(15, 17, 21, 0.95) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-brand);
}

.welcome-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.close-banner {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-banner:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.1);
}

.sponsors-carousel {
    width: 100%;
    max-width: 728px;
    margin: 0 auto 32px;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 12.36%; 
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
}

.carousel-item:hover img {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.promo-strip-banner {
    display: block;
    width: min(95%, 980px);
    margin: 0 auto 16px;
    padding: 14px 20px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: #e9f3ff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg, rgba(4, 37, 58, 0.85) 0%, rgba(10, 32, 54, 0.88) 45%, rgba(6, 49, 46, 0.85) 100%);
    border: 1px solid rgba(84, 214, 177, 0.28);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.promo-strip-banner:hover {
    transform: translateY(-1px);
    border-color: rgba(84, 214, 177, 0.45);
}

.inline-ad-banner {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(95vw, 760px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 12, 18, 0.92);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    z-index: 2500;
}

.inline-ad-link {
    display: block;
    line-height: 0;
    padding-right: 0;
    text-decoration: none;
}

.inline-ad-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.inline-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    transform: none;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-ad-close:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.45);
}

body.is-video-fullscreen .inline-ad-banner {
    display: none !important;
}

body.has-inline-ad .toast {
    bottom: 110px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.dot.active {
    background: var(--brand-yellow);
    box-shadow: 0 0 12px rgba(255, 201, 14, 0.6);
    width: 28px;
    border-radius: 5px;
    border-color: var(--brand-yellow);
}

.video-section {
    background: #000;
    border-radius: 20px;
    
    box-shadow: 0 0 30px rgba(255, 201, 14, 0.08), 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 201, 14, 0.15);
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
    transition: all 0.3s ease;
}
.video-section::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-brand);
    z-index: -1;
    border-radius: 21px;
    opacity: 0.15;
    filter: blur(10px);
}
@media (max-width: 768px) {
    .video-section {
        border-radius: 16px;
    }
    .video-section::before {
        border-radius: 17px;
    }
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.plyr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay-banner {
    position: absolute;
    z-index: 20;
    transition: all 0.3s ease; 
    opacity: 0;
    pointer-events: none;
}

.video-overlay-banner.show {
    opacity: 1;
    pointer-events: auto;
}

.video-overlay-banner.bottom-left {
    bottom: 0;
    left: 40px;
    width: 150px;
}

.video-overlay-banner.top-right {
    top: 55px;
    right: 40px;
    width: 100px;
}

.video-overlay-banner img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.video-overlay-banner:hover img {
    transform: scale(1.02);
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 15px;
    z-index: 25; 
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none; 
}

.video-container:hover .custom-controls,
.video-container.show-controls .custom-controls {
    opacity: 1;
}

.controls-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 0; 
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-container:hover,
.control-btn:hover + .volume-container,
.volume-container:focus-within {
    width: 140px;
}

#volumeSlider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
}

.live-status .live-dot {
    width: 8px;
    height: 8px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF0000;
}

.video-overlay-banner.bottom-left {
    bottom: 60px; 
}

@media (max-width: 768px) {
    .custom-controls {
        opacity: 1; 
        padding: 10px;
    }
    
    .volume-container {
        display: none; 
    }

    .video-overlay-banner.bottom-left {
        bottom: 50px;
    }
}

.custom-video-controls {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease;
}

.video-container:has(#videoPlayer[style*="block"]) .custom-video-controls,
.custom-video-controls.visible {
    display: flex;
}

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

.ctrl-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ctrl-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
}

:fullscreen .custom-video-controls,
:-webkit-full-screen .custom-video-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2147483646;
}

:fullscreen,
:-webkit-full-screen,
:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    border-radius: 0 !important;
}

.video-section:fullscreen .video-container,
.video-section:-webkit-full-screen .video-container {
    position: fixed;
    inset: 0;
    width: 100vw !important;
    height: 100dvh !important;
    padding-top: 0 !important;
}

.video-section:fullscreen #videoPlayer,
.video-section:-webkit-full-screen #videoPlayer {
    position: fixed;
    inset: 0;
    width: 100vw !important;
    height: 100dvh !important;
}

.video-container.is-fullscreen {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-container.is-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container.is-fullscreen .video-overlay-banner {
    position: fixed !important;
    z-index: 2147483647 !important;
}

.video-container.is-fullscreen .video-overlay-banner {
    
    position: fixed !important; 
    z-index: 2147483647 !important;
}

.video-container.is-fullscreen-ios {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 99999;
    background: #000;
    padding: 0;
}

.video-container.is-fullscreen-ios video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ios-exit-fs {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100000;
    background: rgba(0,0,0,0.5);
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 0;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-arrow-hint {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 201, 14, 0.3);
    color: var(--brand-yellow);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    animation: arrowPulse 2s ease-in-out infinite;
    z-index: 5;
    transition: all 0.3s ease;
}

.menu-arrow-hint:hover {
    background: rgba(255, 201, 14, 0.15);
    border-color: var(--brand-yellow);
    transform: translateY(-50%) translateX(3px);
}

.menu-arrow-hint svg {
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@media (max-width: 768px) {
    .menu-arrow-hint {
        right: auto;
        bottom: 16px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .menu-arrow-hint:hover {
        transform: translateX(-50%) translateY(3px);
    }
    .menu-arrow-hint svg {
        transform: rotate(90deg);
        animation: arrowBounceDown 1.5s ease-in-out infinite;
    }
    @keyframes arrowBounceDown {
        0%, 100% { transform: rotate(90deg) translateX(0); }
        50% { transform: rotate(90deg) translateX(4px); }
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
}

.video-overlay.active { display: flex; }

.spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--brand-yellow);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

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

.server-selector-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
}

.server-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.server-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.server-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-family: inherit;
}

.server-btn:hover {
    background: rgba(255, 201, 14, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 201, 14, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.server-btn.active {
    background: var(--gradient-brand);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 201, 14, 0.3);
    transform: translateY(-1px);
}

.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.server-btn.active .server-dot {
    background: #000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.now-playing {
    background: rgba(24, 27, 33, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 32px;
    position: relative;
    z-index: 2;
    border-radius: 0 0 20px 20px;
}

.now-playing-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-section.fake-fullscreen {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    
    z-index: 2147483000 !important;
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.video-section.fake-fullscreen .video-container {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
}

.video-section.fake-fullscreen #videoPlayer {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.video-section.fake-fullscreen .now-playing {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000 !important;
    border-radius: 0 !important;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(8px) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

.video-section.fake-fullscreen .server-selector-bar {
    display: none !important;
}

.has-fake-fullscreen {
    overflow: hidden !important;
}
html.has-fake-fullscreen {
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
}
html.has-fake-fullscreen body {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

.ctrl-btn-np {
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ctrl-btn-np:hover {
    background: rgba(255, 201, 14, 0.15);
    border-color: rgba(255, 201, 14, 0.3);
    color: var(--brand-yellow);
}

.sponsor-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.sponsor-banner-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.02);
}

.sponsor-banner-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 201, 14, 0.1), rgba(255, 107, 156, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.sponsor-banner-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 15px 40px rgba(255, 201, 14, 0.2);
}

.sponsor-banner-item:hover::before {
    opacity: 1;
}

.sponsor-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sponsor-banner-item:hover img {
    transform: scale(1.05);
}

.channel-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #FF4444;
    border-radius: 50%;
    box-shadow: 0 0 15px #FF4444;
}

.channel-badge span:last-child {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.quality-badge {
    background: rgba(255, 201, 14, 0.05);
    color: var(--brand-yellow);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 201, 14, 0.2);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 201, 14, 0.05);
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}

.channels-section {
    background: rgba(24, 27, 33, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    position: sticky;
    top: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

    .channels-header {
        flex-shrink: 0;
        margin-bottom: 24px;
    }

    
    .close-menu-mobile {
        background: transparent;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 4px;
        display: none; 
        transition: all 0.3s;
    }

    .close-menu-mobile:hover {
        color: var(--text-primary);
        transform: rotate(90deg);
    }

    @media (max-width: 768px) {
        .close-menu-mobile {
            display: flex !important; 
        }
        
        .channels-section {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
    }

.header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    padding-left: 14px;
    border-left: 3px solid var(--brand-yellow);
    color: var(--text-primary);
}

.channel-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 100px;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    transition: color 0.3s;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    padding: 14px 14px 14px 48px;
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 201, 14, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 201, 14, 0.08);
    transform: translateY(-1px);
}

.search-box input:focus + .search-icon {
    color: var(--brand-yellow);
}

.clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    display: flex;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-search:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.filter-tab:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

.filter-tab.active {
    background: var(--brand-yellow);
    color: #0F1115;
    border-color: var(--brand-yellow);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 201, 14, 0.25);
}

.channels-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 201, 14, 0.3) transparent;
}

.channels-list::-webkit-scrollbar {
    width: 4px;
}

.channels-list::-webkit-scrollbar-track {
    background: transparent;
}

.channels-list::-webkit-scrollbar-thumb {
    background: rgba(255, 201, 14, 0.3);
    border-radius: 10px;
}

.channels-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 201, 14, 0.6);
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(20, 22, 28, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInSlide 0.3s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.channel-item:nth-child(1) { animation-delay: 0.03s; }
.channel-item:nth-child(2) { animation-delay: 0.06s; }
.channel-item:nth-child(3) { animation-delay: 0.09s; }
.channel-item:nth-child(4) { animation-delay: 0.12s; }
.channel-item:nth-child(5) { animation-delay: 0.15s; }
.channel-item:nth-child(n+6) { animation-delay: 0.18s; }

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 201, 14, 0.3);
    transform: scale(1.02) translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.channel-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.channel-item.active {
    background: rgba(255, 201, 14, 0.08);
    border-color: rgba(255, 201, 14, 0.3);
    transform: scale(1.02) translateX(4px);
}

.channel-item.active::before {
    opacity: 1;
}

.channel-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.channel-play-btn svg {
    margin-left: 2px;
}

.channel-item:hover .channel-play-btn {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.channel-item.active .channel-play-btn {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #0F1115;
}

.channel-live-badge {
    background: #E50914;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.channel-logo-right {
    width: 80px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.channel-logo-right img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.channel-item:hover .channel-logo-right img {
    opacity: 1;
}

.channel-item.active .channel-logo-right img {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 201, 14, 0.3));
}

.channel-ad-banner {
    display: block;
    width: 100%;
    margin: 8px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 201, 14, 0.15);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.channel-ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.channel-ad-banner:hover {
    opacity: 1;
    border-color: rgba(255, 201, 14, 0.4);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 201, 14, 0.15);
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.channel-item.active .channel-name {
    color: var(--brand-yellow);
}

.toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(24, 27, 33, 0.95);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 201, 14, 0.2);
    border-left: 4px solid var(--brand-yellow);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--brand-yellow);
    display: flex;
    filter: drop-shadow(0 0 10px rgba(255, 201, 14, 0.4));
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

.startup-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 16, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.startup-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.startup-popup {
    position: relative;
    width: min(92vw, 360px);
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 201, 14, 0.15);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 201, 14, 0.05);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.startup-popup-overlay.show .startup-popup {
    transform: translateY(0) scale(1);
}

.popup-content-wrapper {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
    scrollbar-width: none; 
}
.popup-content-wrapper::-webkit-scrollbar {
    display: none; 
}

.popup-image-container {
    position: relative;
    width: 100%;
}

.popup-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
    pointer-events: none;
}

.startup-popup-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 180px;
}

.popup-info-section {
    padding: 8px 22px 22px 22px;
    background: var(--bg-surface);
    text-align: center;
}

.popup-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 14px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.popup-title span {
    color: var(--brand-yellow);
}

.popup-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    text-align: left;
}

.popup-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.popup-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 201, 14, 0.2);
    transform: translateY(-2px);
}

.popup-feature svg {
    flex-shrink: 0;
    color: #4CAF50;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
}

.popup-feature span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.popup-join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #2AABEE;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.3);
}

.popup-join-button:hover {
    background: #229ED9;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(42, 171, 238, 0.4);
}

.popup-join-button:active {
    transform: translateY(0);
}

.startup-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.startup-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.vertical-banners-section {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 8px;
    margin: 12px 0 0 0;
    padding-top: 0;
    width: 100%;
    grid-column: 1; 
}

.vertical-banner-item {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    position: relative;
    transition: all 0.3s ease;
}

.vertical-banner-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vertical-banner-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-active);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.vertical-banner-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .vertical-banners-section {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .vertical-banners-section {
        grid-template-columns: 1fr; 
        gap: 10px;
        margin-top: 12px;
    }
    
    .vertical-banner-item {
        aspect-ratio: auto; 
    }
}

footer {
    border-top: 1px solid var(--border-glass);
    background: #0B0C0F;
    padding: 48px 0 32px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    margin-bottom: 12px;
}

.footer-logo:hover img {
    opacity: 1;
    filter: none;
    transform: translateY(-2px);
}

.footer-info p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    main {
        top: 62px;
    }
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .video-section {
        order: 1;
    }
    .channels-section {
        order: 2;
        height: auto;
        max-height: 500px;
        position: static;
        padding: 20px;
    }
    .vertical-banners-section {
        order: 3;
    }
    .channels-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
        padding-right: 0;
    }
    .sponsor-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 24px 0;
    }
    .header-nav-link:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    
    header {
        position: static !important;
        padding: 8px 0;
    }
    header .container {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .logo-image {
        height: 32px !important;
        max-height: 32px;
    }
    .logo {
        flex-shrink: 0;
    }
    .logo-text {
        font-size: 1rem;
    }

    .header-nav {
        display: none;
    }

    .header-channel-count {
        display: none;
    }

    
    main {
        padding: 16px 0;
        -webkit-overflow-scrolling: touch;
    }

    
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 2001;
        cursor: pointer;
        touch-action: manipulation;
    }
    .now-playing {
        position: relative;
        z-index: 100;
    }

    
    .channels-section {
        position: fixed;
        top: 0;
        right: 0;
        width: min(100%, 360px);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        z-index: 1999;
        border-radius: 0;
        padding: 16px;
        margin: 0;
        border-left: 1px solid var(--border-glass);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: var(--bg-surface);
    }
    .channels-section.active {
        transform: translateX(0);
    }
    .channels-section .channels-header {
        padding-top: env(safe-area-inset-top);
    }

    .channels-section .channels-list {
        display: block;
        padding-right: 4px;
        max-height: none;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    
    .close-menu-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    .welcome-content h2 {
        font-size: 1.25rem;
    }
    .welcome-content p {
        font-size: 0.875rem;
    }

    .stats {
        display: none;
    }

    
    .now-playing {
        padding: 12px 16px;
    }
    .now-playing-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    .channel-badge {
        min-width: 0;
        flex: 1;
    }
    .channel-badge span:last-child {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    
    .server-selector-bar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .server-label {
        width: 100%;
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer {
        padding: 32px 0 24px;
        margin-top: 48px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: max(24px, env(safe-area-inset-bottom));
        justify-content: center;
    }

    
    .video-overlay-banner.bottom-left {
        bottom: 60px !important;
        left: 8px !important;
        width: 50px !important;
    }
    .video-overlay-banner.top-right {
        top: 8px !important;
        right: 8px !important;
        width: 65px !important;
    }

    
    .container {
        padding: 0 16px;
    }

    
    .sponsors-carousel {
        margin-bottom: 20px;
    }

    .promo-strip-banner {
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.35;
        padding: 11px 14px;
        margin-bottom: 12px;
    }

    .inline-ad-close {
        width: 28px;
        height: 28px;
    }

    
    #tg-overlay > div {
        margin: 16px;
        padding: 24px 20px !important;
        max-width: 100%;
    }
    #tg-overlay h2 {
        font-size: 1.25rem !important;
    }
    #tg-overlay p {
        font-size: 0.9rem !important;
    }

    .startup-popup {
        width: min(90vw, 340px);
    }
    
    .popup-info-section {
        padding: 8px 16px 18px 16px;
    }
    
    .popup-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .popup-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .popup-join-button {
        padding: 11px 18px;
        font-size: 13px;
    }

    .startup-popup-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 380px) {
    .logo-image {
        height: 28px !important;
    }
    .logo-text {
        font-size: 0.9rem;
    }
    .channels-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    main {
        padding: 12px 0;
    }
    
    
    .video-container {
        min-height: 240px; 
    }

    .placeholder-content {
        padding: 1.5rem 1rem;
    }

    .play-icon-wrapper svg {
        width: 48px;
        height: 48px;
    }

    
    
    
    .placeholder-content h3 {
        font-size: 1.2rem;
        margin: 12px 0 6px;
    }

    .placeholder-content p {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.4;
        max-width: 280px;
    }
    
    
    .now-playing {
        padding: 16px;
    }

    .channel-badge span:last-child {
        font-size: 1rem;
    }

    
    .sponsor-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 20px 0;
    }

    .sponsor-banner-item {
        border-radius: 12px;
    }
    
    .channel-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .channel-play-btn {
        width: 28px;
        height: 28px;
    }
    
    .channel-play-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .channel-name {
        font-size: 0.7rem;
    }
    
    .channel-logo-right {
        width: 60px;
        height: 35px;
    }
    
    .channel-live-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
    }
    
    .sponsors-carousel {
        margin-bottom: 24px;
        max-width: 100%;
        padding: 0 16px;
    }

    .promo-strip-banner {
        font-size: 0.76rem;
        letter-spacing: 0;
        padding: 10px 12px;
        margin: 0 8px 10px;
        width: auto;
    }

    .inline-ad-banner {
        border-radius: 10px;
        width: calc(100vw - 10px);
        bottom: 6px;
    }

    .inline-ad-close {
        width: 24px;
        height: 24px;
    }
    
    .carousel-container {
        padding-bottom: 12.36%; 
    }
    
    .carousel-item img {
        border-radius: 8px;
    }
    
    .carousel-dots {
        margin-top: 12px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 22px;
    }
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.login-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.login-btn:hover {
    background: var(--bg-glass-light);
    border-color: var(--brand-yellow);
}

.register-btn {
    background: var(--gradient-brand);
    color: #000;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    transition: all 0.3s;
}

.user-profile:hover {
    border-color: var(--brand-yellow);
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-yellow);
}

.username {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 8px;
    min-width: 150px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.user-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.dropdown-item:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #FF4444;
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-overlay.show .auth-modal {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo {
    height: 60px;
    margin-bottom: 15px;
}

.auth-modal-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.auth-tabs {
    display: flex;
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.auth-tab.active {
    background: var(--bg-glass-light);
    color: var(--brand-yellow);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-yellow);
}

.form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-options a {
    color: var(--brand-yellow);
    text-decoration: none;
    transition: opacity 0.3s;
}

.form-options a:hover {
    opacity: 0.8;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-brand);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

.auth-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.auth-message.error {
    background: rgba(255, 68, 68, 0.1);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.auth-message.success {
    background: rgba(0, 200, 81, 0.1);
    color: #00C851;
    border: 1px solid rgba(0, 200, 81, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .header-info {
        gap: 10px;
    }
    .auth-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .username {
        display: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.seo-footer {
    position: relative;
    background: linear-gradient(180deg, #0a0b0e 0%, #070809 100%);
    padding: 0 0 20px;
    margin-top: 48px;
    z-index: 1;
    overflow: hidden;
}

.blog-preview-section {
    margin-top: 24px;
    padding: 0;
}
.blog-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.blog-preview-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-left: 12px;
    border-left: 3px solid var(--brand-yellow);
}
.blog-preview-header a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-preview-header a:hover { text-decoration: underline; }
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.blog-preview-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}
.blog-preview-card:hover {
    border-color: rgba(255, 201, 14, 0.2);
    background: rgba(255, 201, 14, 0.03);
    transform: translateY(-2px);
}
.blog-preview-card h3 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}
.blog-preview-card p {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}

.seo-footer-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 201, 14, 0.4) 30%, rgba(255, 107, 156, 0.3) 50%, rgba(255, 143, 0, 0.4) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 201, 14, 0.15), 0 0 60px rgba(255, 201, 14, 0.05);
}

.seo-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.seo-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.seo-footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(30%);
    transition: all 0.3s;
}

.seo-footer-brand:hover .seo-footer-logo {
    opacity: 1;
    filter: none;
}

.seo-footer-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.seo-footer-tagline {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.seo-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 20px;
}

.seo-links-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-right: 4px;
}

.seo-links-sep {
    width: 1px;
    height: 16px;
    background: var(--border-glass);
    margin: 0 6px;
}

.seo-links-row a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.seo-links-row a:hover {
    color: var(--brand-yellow);
    border-color: rgba(255, 201, 14, 0.3);
    background: rgba(255, 201, 14, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 201, 14, 0.1);
}

.seo-links-row a.team-link {
    border-color: rgba(255, 107, 156, 0.1);
}

.seo-links-row a.team-link:hover {
    color: var(--brand-pink);
    border-color: rgba(255, 107, 156, 0.3);
    background: rgba(255, 107, 156, 0.08);
    box-shadow: 0 4px 12px rgba(255, 107, 156, 0.1);
}

.seo-collapse-section {
    margin-bottom: 0;
}

.seo-details {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}

.seo-details:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.seo-details[open] {
    border-color: rgba(255, 201, 14, 0.15);
}

.seo-summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    user-select: none;
}

.seo-summary::-webkit-details-marker { display: none; }
.seo-summary::marker { display: none; content: ''; }

.seo-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 201, 14, 0.08);
    color: var(--brand-yellow);
    flex-shrink: 0;
}

.seo-chevron {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-details[open] .seo-chevron {
    transform: rotate(180deg);
}

.seo-summary:hover {
    color: var(--text-primary);
}

.seo-summary:hover .seo-summary-icon {
    background: rgba(255, 201, 14, 0.15);
}

.seo-details-body {
    padding: 0 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.seo-details-body > p {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    line-height: 1.8;
    margin: 16px 0;
}

.seo-details-body strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.seo-grid > div {
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s;
}

.seo-grid > div:hover {
    border-color: rgba(255, 201, 14, 0.15);
    background: rgba(255, 201, 14, 0.03);
    transform: translateY(-2px);
}

.seo-grid h3 {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-grid p {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0;
}

.seo-grid strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.seo-footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 14px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.seo-footer-bottom p {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.68rem;
    letter-spacing: 0.3px;
}

.partner-link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s;
}
.partner-link:hover {
    color: rgba(255, 201, 14, 0.5);
}

@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .seo-footer {
        margin-top: 24px;
    }
    .seo-footer-inner {
        padding: 20px 16px 0;
    }
    .seo-links-row {
        gap: 6px;
    }
    .seo-links-sep {
        display: none;
    }
    .seo-links-label {
        width: 100%;
        margin-bottom: -2px;
    }
}

@media (max-width: 480px) {
    .seo-grid {
        grid-template-columns: 1fr 1fr;
    }
    .seo-grid > div {
        padding: 10px 12px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .inline-ad-banner,
    .video-overlay-banner,
    .promo-strip-banner {
        display: none !important;
    }
    .startup-popup {
        max-height: 90vh;
        width: min(90vw, 320px);
    }
    
    .startup-popup-image {
        max-height: 160px;
        object-fit: cover;
    }
    
    .popup-info-section {
        padding: 8px 14px 16px 14px;
    }
    
    .popup-title {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .popup-feature {
        padding: 10px;
    }
    
    .popup-feature span {
        font-size: 12px;
    }
    
    .popup-join-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    header {
        padding: 2px 0 !important;
    }
    .logo-image {
        height: 28px !important;
    }
    .logo-text {
        display: none;
    }
    .header-nav {
        display: none;
    }
    .header-channel-count {
        display: none;
    }
    .toast {
        bottom: 10px !important;
    }
    .video-container {
        min-height: auto;
    }
    .auth-modal {
        max-height: 90vh;
        padding: 15px;
        overflow-y: auto;
    }
    .auth-logo {
        height: 40px;
        margin-bottom: 10px;
    }
    .auth-modal-header h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .auth-tabs {
        margin-bottom: 15px;
    }
}

.wheel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.wheel-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.wheel-modal {
    background: radial-gradient(circle at right center, #131a15 0%, #080a08 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    min-height: 480px;
    position: relative;
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(212, 175, 55, 0.05);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
    overflow: hidden; 
}

.wheel-modal-content-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.wheel-left-col {
    width: 300px; 
    position: relative;
    flex-shrink: 0;
}

.wheel-wrap {
    position: absolute;
    left: -200px; 
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wheel-pointer-wrap {
    position: absolute;
    top: 50%;
    right: 18px; 
    left: auto;
    transform: translateY(-50%) rotate(-90deg); 
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
    animation: pointerPulseRight 1s ease-in-out infinite alternate;
}

#wheelCanvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(15px 0 30px rgba(0, 0, 0, 0.9));
}

.wheel-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px 40px 0;
    z-index: 2;
}

.wheel-modal-overlay.show .wheel-modal {
    transform: scale(1) translateY(0);
}

.wheel-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.wheel-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.1);
}

.wheel-header {
    text-align: center;
    margin-bottom: 24px;
}

.wheel-sponsor-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(142, 115, 27, 0.25) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.2);
    animation: glowBadge 2s ease-in-out infinite alternate;
}

.wheel-sponsor-badge span {
    color: #f9e596;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

@keyframes glowBadge {
    0% { box-shadow: 0 6px 15px rgba(0,0,0,0.4), inset 0 0 15px rgba(212, 175, 55, 0.2); border-color: rgba(212, 175, 55, 0.4); transform: scale(1); }
    100% { box-shadow: 0 6px 25px rgba(212,175,55,0.4), inset 0 0 25px rgba(212, 175, 55, 0.4); border-color: rgba(212, 175, 55, 0.8); text-shadow: 0 0 15px rgba(212, 175, 55, 0.6); transform: scale(1.02); }
}

.wheel-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: 1px;
}
.wheel-title span {
    font-weight: 800;
    background: linear-gradient(135deg, #f9e596 0%, #d4af37 50%, #8e731b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 6px;
}

.wheel-promo-img {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 40%, transparent 100%);
}
.wheel-promo-img img {
    width: 100%;
    max-width: 400px; 
    display: block;
    height: auto;
    object-fit: cover;
    opacity: 0.85; 
    mix-blend-mode: screen; 
}

@keyframes pointerPulseRight {
    0%   { transform: translateY(-50%) translateX(0) rotate(-90deg); filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4)); }
    100% { transform: translateY(-50%) translateX(-4px) rotate(-90deg); filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8)); }
}

#wheelCanvas {
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
}

.wheel-spin-btn {
    display: none;
}
.neon-text {
    color: #00f2fe;
    text-shadow: 0 0 10px #00f2fe;
}

.wheel-result {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid transparent; 
    margin: 0 0 24px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    width: 100%;
}
.wheel-result-label { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.wheel-result-text  { font-size: 26px; letter-spacing: 2px; }

@keyframes wheelPopIn {
    0%   { transform: scale(0.6) translateY(20px); opacity: 0; filter: brightness(0.5); }
    50%  { transform: scale(1.1) translateY(-5px); filter: brightness(1.5); }
    100% { transform: scale(1) translateY(0); opacity: 1; filter: brightness(1); }
}
.wheel-pop-in {
    animation: wheelPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.wheel-divider {
    display: none;
}

.wheel-subscribe { 
    padding: 0;
}

.subscribe-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #FFC90E;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.subscribe-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.subscribe-email-input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    background: #090c0a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}
.subscribe-email-input::placeholder { color: #6b7280; font-weight: 400; }
.subscribe-email-input:focus {
    border-color: #d4af37;
    background: #0d120f;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), inset 0 2px 8px rgba(0,0,0,0.4);
}

.subscribe-cta-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37 0%, #b5952f 100%);
    color: #111;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 8px 20px -4px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}
.subscribe-cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}
.subscribe-cta-btn:hover:not(:disabled)::before {
    left: 100%;
}
.subscribe-cta-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -4px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f9e596 0%, #d4af37 100%);
}
.subscribe-cta-btn:active:not(:disabled) { transform: translateY(1px); }
.subscribe-cta-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; background: #3a321a; color: #8e7d52; }

.subscribe-hint {
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.subscribe-hint.error   { color: #ff4444; text-shadow: 0 0 10px rgba(255, 68, 68, 0.4); }
.subscribe-hint.success { color: #d4af37; text-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }

@media (max-width: 768px) {
    .wheel-modal {
        max-width: 420px;
        min-height: auto;
        max-height: 88vh;
        overflow: hidden;
        padding: 44px 14px 0;
    }
    .wheel-modal-content-row {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        max-height: calc(88vh - 44px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .wheel-modal-content-row::-webkit-scrollbar { display: none; }
    .wheel-left-col { width: 100%; height: 220px; overflow: hidden; display: flex; justify-content: center; }
    .wheel-wrap { position: relative; left: auto; top: auto; transform: none; width: 220px; height: 220px; }
    #wheelCanvas { width: 100% !important; height: 100% !important; }
    .wheel-right-col { padding: 0; }
    .wheel-header { text-align: center; margin-bottom: 10px; }
    .wheel-close-btn { top: 10px; right: 10px; width: 38px; height: 38px; z-index: 20; }
}

@media (max-width: 480px) {
    .wheel-modal {
        padding: 44px 12px 0;
        border-radius: 18px;
        border-width: 1px;
        max-height: 86vh;
    }
    .wheel-modal-content-row {
        max-height: calc(86vh - 44px);
    }
    .wheel-left-col { height: 190px; }
    .wheel-wrap { width: 190px; height: 190px; }
    .wheel-title { font-size: 20px; }
    .wheel-title span { font-size: 14px; }
    .wheel-sponsor-badge { font-size: 12px; letter-spacing: 1.5px; padding: 6px 14px; }
    .subscribe-title { font-size: 13px; }
    .subscribe-row { flex-direction: column; gap: 8px; }
    .subscribe-cta-btn { width: 100%; padding: 12px; font-size: 14px; }
    .subscribe-email-input { width: 100%; }
    .wheel-promo-img { display: block; }
    .wheel-promo-img img { max-height: 90px; width: auto; margin: 0 auto; display: block; }
}
