html, body {
    margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
    background: var(--bg-main); color: var(--text-main); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility; touch-action: manipulation; overscroll-behavior-y: none;
}
* { box-sizing: border-box; -webkit-box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

@keyframes fadeInScale { 0% { opacity: 0; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
@keyframes borderPulse { 0% { border-color: rgba(229, 9, 20, 0.2); } 50% { border-color: rgba(229, 9, 20, 0.8); box-shadow: inset 0 0 10px rgba(229, 9, 20, 0.2); } 100% { border-color: rgba(229, 9, 20, 0.2); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

@keyframes floatLogo {
    0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 4px rgba(229, 9, 20, 0.3)); }
    50% { transform: translateY(-4px) scale(1.02); filter: drop-shadow(0 6px 12px rgba(229, 9, 20, 0.7)); }
    100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 4px rgba(229, 9, 20, 0.3)); }
}

@keyframes starFloat {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: -500px -500px, -400px -300px, 500px 500px, 300px 400px; }
}

@keyframes floatBlob1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.1); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes floatBlob2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, -40px) scale(1.2); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes floatBlob3 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -20px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }

:root {
    --bg-main: #000000;
    --bg-panel: #0A0E17;
    --border-color: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent: #E50914;
    --accent-hover: #B91C1C;
    --touch-min: 48px;
}

#init-loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-main); z-index: 9999999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.4s ease; }
#init-loader .spinner { border: 4px solid rgba(255,255,255,0.1); border-left-color: var(--accent); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 20px; }

#app-wrapper { display: flex; flex-direction: column; height: 100vh; width: 100vw; overflow: hidden; animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards; position: relative; z-index: 1; }

header { 
    background: transparent !important; 
    border-bottom: none !important; 
    padding: max(12px, env(safe-area-inset-top)) 20px 12px 20px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: flex-start !important; 
    z-index: 1010 !important; 
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5) !important;
    flex-shrink: 0;
    position: relative;
    overflow: visible !important;
}

.header-shapes {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
    background:
        radial-gradient(900px 220px at 12% 0%, rgba(229, 9, 20, 0.22), transparent 60%),
        radial-gradient(900px 260px at 80% 0%, rgba(56, 189, 248, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.98) 100%);
}
.header-shapes::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 210deg, rgba(56,189,248,0.10), rgba(229,9,20,0.10), rgba(139,92,246,0.08), rgba(56,189,248,0.10));
    filter: blur(40px);
    opacity: 0.35;
    animation: headerAura 18s linear infinite;
}
@keyframes headerAura {
    0% { transform: rotate(0deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1.05); }
}
.header-shapes::after {
    content: ''; position: absolute;
    width: 100%; height: 1px; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.6), transparent);
}
.header-shape-poly { display: none; }
.header-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 80px 70px, rgba(56, 189, 248, 0.3), transparent),
        radial-gradient(1px 1px at 150px 160px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 200px 40px, rgba(229, 9, 20, 0.3), transparent);
    background-size: 250px 250px, 300px 300px, 150px 150px, 350px 350px;
    animation: starFloat 60s linear infinite;
    opacity: 0.4;
}

.logo-area { position: relative; z-index: 1; cursor: pointer; display: flex; align-items: center; margin-right: 4px; flex-shrink: 0; }
.logo-area img { max-height: 35px; animation: floatLogo 4s ease-in-out infinite; }
.logo-area:hover img { filter: brightness(1.4) drop-shadow(0 0 15px rgba(229, 9, 20, 0.8)); transform: scale(1.08); animation-play-state: paused; }

.main-layout { display: flex !important; flex-direction: row !important; flex: 1 !important; width: 100% !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }

.main-content-wrapper { flex: 1; display: flex; flex-direction: column; overflow-y: auto; position: relative; min-width: 0; min-height: 0; background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.05), transparent 60%); padding: 20px; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); transition: padding-left 0.4s ease; container-type: inline-size; container-name: contentArea; }

.sidebar { 
    width: 320px !important; 
    background: rgba(15, 23, 42, 0.95) !important; 
    backdrop-filter: blur(20px) !important; 
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid var(--border-color) !important; 
    display: flex !important; 
    flex-direction: column !important; 
    height: 100% !important; 
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; 
    position: relative !important; 
    z-index: 1005 !important;
    margin: 0 !important; 
    border-radius: 0 !important; 
    flex-shrink: 0;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    padding-bottom: env(safe-area-inset-bottom);
}

.sidebar.hidden { width: 0 !important; transform: translateX(-100%) !important; overflow: hidden !important; border: none !important; box-shadow: none !important; }
.sidebar.hidden + .main-content-wrapper { padding-left: 70px; }

@media (max-width: 1024px) {
    html, body {
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
    }
    .header-shapes::before,
    .header-particles,
    .fluid-bg {
        display: none !important;
        animation: none !important;
    }
    .main-layout { flex-direction: column !important; }
    .sidebar { position: fixed !important; top: 0 !important; left: -100% !important; width: 300px !important; height: 100vh !important; z-index: 99999 !important; transform: none !important; border-right: 1px solid var(--border-color) !important; margin: 0 !important; }
    .sidebar.active-mobile { left: 0 !important; box-shadow: 10px 0 50px rgba(0,0,0,0.8); }
    header { padding: max(10px, env(safe-area-inset-top)) 15px 10px 15px !important; }
    .video-grid { grid-template-columns: 1fr; width: 100%; }
    .main-content-wrapper { padding: 15px; text-align: left; }
    .sidebar.hidden + .main-content-wrapper { padding-left: 15px; }
    .main-content-wrapper {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    #downloads-container {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    .downloads-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0 80px 0 !important;
    }
    #dl-grid {
        width: 100% !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #dl-grid { width: 100% !important; min-height: 180px; }
    #dl-grid > * { width: 100% !important; max-width: 100% !important; }
    #account-modal .modal-box { width: 92vw !important; max-width: 92vw !important; overflow-y: auto; padding: 8px !important; border-radius: 12px !important; }
    #account-modal img { max-width: 64px !important; height: auto !important; }
    #account-modal h3 { font-size: 15px !important; margin-bottom: 8px !important; }
    #account-modal .status-badge, #account-modal .btn-account { padding: 8px 10px !important; font-size: 11px !important; }
    #account-modal .modal-body, #account-modal .modal-content { gap: 10px !important; }
    .mobile-player-actions { display: none !important; }
}
.player-btn-desktop-pip, .player-btn-desktop-live, .player-btn-desktop-unmute, .player-btn-desktop-cast,
.player-btn-mobile-pip, .player-btn-mobile-live, .player-btn-mobile-unmute, .player-btn-mobile-cast {
    position: absolute;
    z-index: 45;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
}
.player-btn-desktop-pip, .player-btn-desktop-live {
    bottom: 56px; min-width: 110px; height: 28px; font-size: 11px; border-radius: 999px; background: rgba(0,0,0,0.62);
}
.player-btn-desktop-pip { left: 12px; }
.player-btn-desktop-live { right: 12px; }
.player-btn-desktop-unmute {
    top: 10px; right: 10px; min-width: 120px; height: 30px; font-size: 11px; border-radius: 999px; background: rgba(229, 9, 20, 0.92);
}
.player-btn-mobile-pip, .player-btn-mobile-live {
    bottom: 44px; min-width: 72px; height: 22px; font-size: 9px; border-radius: 999px; background: rgba(0,0,0,0.64);
}
.player-btn-mobile-pip { left: 8px; }
.player-btn-mobile-live { right: 8px; }
.player-btn-mobile-unmute {
    top: 8px; right: 8px; min-width: 78px; height: 22px; font-size: 9px; border-radius: 999px; background: rgba(229, 9, 20, 0.94);
}
.player-btn-desktop-cast { top: 10px; right: 136px; min-width: 86px; height: 30px; font-size: 11px; border-radius: 999px; background: rgba(14, 116, 144, 0.92); }
.player-btn-mobile-cast { top: 8px; right: 92px; min-width: 70px; height: 22px; font-size: 9px; border-radius: 999px; background: rgba(14, 116, 144, 0.94); }
.player-btn-live-on { background: rgba(229, 9, 20, 0.92) !important; border-color: rgba(255,255,255,0.42) !important; }
.watermark-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: clamp(84px, 11vw, 140px);
    height: auto;
    z-index: 44;
    opacity: 0.9;
    pointer-events: none;
    filter: blur(0.6px) drop-shadow(0 4px 12px rgba(0,0,0,0.55));
    transition: opacity 0.3s ease;
}
@media (max-width: 1024px) {
    .watermark-logo {
        top: 8px;
        left: 8px;
        width: clamp(72px, 26vw, 110px);
    }
}
.plyr.plyr--hide-controls .player-btn-desktop-pip,
.plyr.plyr--hide-controls .player-btn-desktop-live,
.plyr.plyr--hide-controls .player-btn-desktop-unmute,
.plyr.plyr--hide-controls .player-btn-desktop-cast,
.plyr.plyr--hide-controls .player-btn-mobile-pip,
.plyr.plyr--hide-controls .player-btn-mobile-live,
.plyr.plyr--hide-controls .player-btn-mobile-unmute,
.plyr.plyr--hide-controls .player-btn-mobile-cast,
.plyr.plyr--hide-controls .watermark-logo { opacity: 0; pointer-events: none; }
.plyr__controls .plyr__volume { max-width: 108px !important; }
@media (min-width: 1025px) { .player-btn-mobile-pip, .player-btn-mobile-live, .player-btn-mobile-unmute, .player-btn-mobile-cast { display: none !important; } }

.controls-area { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; margin-left: auto; }
.header-nav-btn { 
    background: rgba(30, 41, 59, 0.8); 
    color: #e2e8f0; 
    border: 1px solid rgba(56, 189, 248, 0.2); 
    padding: 10px 16px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 700; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    white-space: nowrap; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.header-nav-btn:hover { 
    background: rgba(56, 189, 248, 0.15); 
    border-color: rgba(56, 189, 248, 0.5); 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}
.top-banner-slider {
    flex: 0 0 auto;
    width: auto;
    max-width: 36vw;
    min-width: 0;
    margin: 0 0 0 2px;
    position: relative;
    display: none;
    align-self: center;
}
.top-banner-slider.has-content { display: block; }
.top-banner-slide {
    display: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 7px 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    animation: fadeInScale .35s ease;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    color: #fff;
    overflow: hidden;
}
.top-banner-slide.active { display: flex; }
.top-banner-slide .sh-title-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    border-radius: 8px !important;
}
.top-banner-slide-title {
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.15;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}
.top-banner-slide-day {
    font-size: 9px !important;
    margin-top: 1px !important;
    opacity: .88;
}
@media (max-width: 1024px) {
    .top-banner-slider {
        order: 3;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin: 8px 0 0 0;
    }
    .top-banner-slide {
        border-radius: 10px;
        min-height: 42px;
        padding: 6px 8px;
        gap: 6px;
    }
    .top-banner-slide .sh-title-icon {
        width: 24px !important;
        height: 24px !important;
    }
    .top-banner-slide-title {
        font-size: 10px !important;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }
    .top-banner-slide-day { font-size: 8px !important; }
}

.dropdown-container { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-container::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 25px; background: transparent; }
.dropdown-container:hover .dropdown-content { display: flex; flex-direction: column; animation: floatDrop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.dropdown-content { display: none; position: absolute; right: 0; top: calc(100% + 15px); background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.8); min-width: 220px; z-index: 1000; }
.dropdown-content a { padding: 12px 15px; color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; border-radius: 8px; transition: all 0.2s; }
.dropdown-content a:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); color: #fff; }

.modal-overlay { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 10000; display: none; align-items: center; justify-content: center; animation: fadeInScale 0.2s ease-out; padding: 12px; overflow-y: auto; overscroll-behavior: contain; }
.modal-box { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); padding: 30px; max-width: 420px; width: min(100%, 420px); max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: left; margin: auto; }
.modal-box h3 { color: var(--text-main); font-size: 22px; font-weight: 900; margin-top: 0; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.modal-box input { background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); color: #fff; border-radius: 10px; padding: 14px 15px; width: 100%; box-sizing: border-box; margin-bottom: 15px; outline: none; transition: border-color 0.3s; font-size: 14px; }
.modal-box input:focus { border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
.modal-btns { display: flex; gap: 12px; margin-top: 15px; }
.modal-btns button { flex: 1; padding: 14px; border-radius: 10px; font-weight: 800; cursor: pointer; border: none; transition: all 0.2s; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-btns .btn-cancel { background: rgba(255,255,255,0.08); color: var(--text-main); }
.modal-btns .btn-cancel:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.modal-btns .btn-confirm { background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3); }
.modal-btns .btn-confirm:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(229, 9, 20, 0.5); }

.schedule-header-modern { display: flex; gap: 20px; justify-content: flex-start; width: 100%; max-width: 1600px; margin-left: 0; padding: 0; box-sizing: border-box; margin-top: 15px; }
video:fullscreen + .plyr__controls, video:-webkit-full-screen + .plyr__controls { display:flex !important; }

.sh-main-title-banner { 
    flex: 1; min-width: 250px; max-width: 400px; display: flex; align-items: center; gap: 18px; 
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%); 
    border-radius: 16px; padding: 18px 25px; text-decoration: none; color: #fff; 
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.3); border: 1px solid rgba(239, 68, 68, 0.3); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; text-align: left;
}
.sh-main-title-banner::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.sh-main-title-banner:hover::after { animation: shimmer 1.5s infinite; }
.sh-main-title-banner:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(185, 28, 28, 0.5); border-color: rgba(239, 68, 68, 0.6); }

.sh-banner { 
    flex: 1; min-width: 250px; max-width: 400px; display: flex; align-items: center; gap: 18px; 
    background: var(--bg-panel); border-radius: 16px; padding: 18px 25px; 
    text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}
.sh-banner:hover { transform: translateY(-6px); background: #1e293b; box-shadow: 0 15px 30px rgba(0,0,0,0.5); border-color: rgba(56, 189, 248, 0.3); }

.sh-title-icon, .sh-banner-icon { width: 55px; height: 55px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 26px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);}
.sh-main-title-banner:hover .sh-title-icon, .sh-banner:hover .sh-banner-icon { transform: rotate(10deg) scale(1.15); }
.sh-title-icon { background: rgba(255,255,255,0.2); color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.sh-banner-icon { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; border-radius: 50%; box-shadow: 0 0 20px rgba(14, 165, 233, 0.5); font-size: 24px; }

.sh-title-text h2, .sh-banner-title { margin: 0; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.sh-title-text span { font-size: 12px; color: #fca5a5; font-weight: 800; margin-top: 4px; display: block; text-transform: uppercase; letter-spacing: 1px;}
.sh-banner-desc { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 4px; display: block; }
.sh-banner-arrow { margin-left: auto; font-size: 24px; color: #38bdf8; font-weight: bold; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.sh-banner:hover .sh-banner-arrow { transform: translateX(8px); }

.sidebar-header { 
    padding: 22px 18px 18px 18px; 
    border-bottom: 1px solid rgba(255,255,255,0.08); 
    flex-shrink: 0; 
    position: relative; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(760px 220px at 12% 0%, rgba(229, 9, 20, 0.22), transparent 62%),
        radial-gradient(760px 240px at 85% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 17, 32, 0.98) 100%);
}
.sidebar-header::before {
    content: '';
    position: absolute;
    inset: -28%;
    background: conic-gradient(from 230deg, rgba(56,189,248,0.12), rgba(229,9,20,0.12), rgba(34,197,94,0.08), rgba(56,189,248,0.12));
    filter: blur(44px);
    opacity: 0.30;
    animation: sidebarAura 10s linear infinite;
    pointer-events: none;
}
.sidebar-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -45%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    transform: skewX(-18deg);
    animation: sidebarSheenFast 7.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.55;
}
@keyframes sidebarAura {
    0% { transform: rotate(0deg) scale(1.06); }
    100% { transform: rotate(360deg) scale(1.06); }
}
@keyframes sidebarSheenFast {
    0% { left: -45%; opacity: 0; }
    18% { opacity: 0.65; }
    36% { left: 120%; opacity: 0; }
    100% { left: 120%; opacity: 0; }
}

.fluid-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background: transparent; }
.fluid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 18px 22px, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 110px 70px, rgba(56, 189, 248, 0.28), transparent),
        radial-gradient(1px 1px at 220px 160px, rgba(255,255,255,0.20), transparent);
    background-size: 260px 260px, 320px 320px, 200px 200px;
    opacity: 0.28;
    animation: starFloat 32s linear infinite;
    pointer-events: none;
}
.fluid-bg .blob { position: absolute; border-radius: 50%; filter: blur(35px); opacity: 0.7; }
.fluid-bg .blob { mix-blend-mode: screen; }
.fluid-bg .blob-1 { top: -28%; left: -16%; width: 220px; height: 220px; background: rgba(229, 9, 20, 0.42); animation: floatBlob1 6.5s infinite alternate ease-in-out; }
.fluid-bg .blob-2 { bottom: -22%; right: -30%; width: 300px; height: 300px; background: rgba(56, 189, 248, 0.34); animation: floatBlob2 7.5s infinite alternate ease-in-out; }
.fluid-bg .blob-3 { top: 30%; left: 34%; width: 190px; height: 190px; background: rgba(139, 92, 246, 0.24); animation: floatBlob3 8.5s infinite alternate ease-in-out; }

.fluid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(11, 17, 32, 0.22), rgba(11, 17, 32, 0.98)); z-index: 1; pointer-events: none; }

.sidebar-header-content { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 15px; }

.sidebar-header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.sidebar-title-creative { display: flex; align-items: center; gap: 10px; }
.sidebar-title-creative .icon-live { width: 10px; height: 10px; background: #2ecc71; border-radius: 50%; box-shadow: 0 0 12px #2ecc71; animation: pulseGlow 1.5s infinite; }
.sidebar-title-creative .text { font-size: 14px; font-weight: 1000; letter-spacing: 1.4px; color: #fff; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }

.sidebar-actions-wrap { display: flex; gap: 6px; background: rgba(2, 6, 23, 0.35); padding: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(10px); }
.sidebar-pill-btn { 
    background: transparent; color: var(--text-main); border: none; 
    border-radius: 6px; font-size: 11px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 6px 10px; white-space: nowrap;
}
.sidebar-pill-btn:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
.sidebar-pill-btn.btn-hide { padding: 6px 10px; color: rgba(252, 165, 165, 0.95); }
.sidebar-pill-btn.btn-hide:hover { background: rgba(239, 68, 68, 0.22); color: #fff; }

.sidebar-search-wrap { position: relative; width: 100%; }
.sidebar-search-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; transition: all 0.3s; color: #fff; }
.sidebar-search { width: 100%; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.05); color: #fff; padding: 12px 14px 12px 38px; border-radius: 10px; font-size: 13px; font-weight: 600; box-sizing: border-box; outline: none; transition: all 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.3); }
.sidebar-search:focus { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2), inset 0 2px 5px rgba(0,0,0,0.3); background: rgba(0,0,0,0.85); }
.sidebar-search:focus + .search-icon { color: #38bdf8; opacity: 1; filter: drop-shadow(0 0 5px #38bdf8); }

#channel-list { padding: 15px 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; }

.channel-btn { 
    background: var(--bg-panel); 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 12px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    color: var(--text-main); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.channel-btn:hover { 
    background: rgba(59, 130, 246, 0.15); 
    border-color: rgba(59, 130, 246, 0.5); 
    transform: translateX(8px) scale(1.02); 
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}
.channel-btn.active { 
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.05) 100%); 
    border-color: rgba(229, 9, 20, 0.5); 
    border-left: 4px solid #e50914; 
    animation: borderPulse 2s infinite;
}

.c-main-info { display: flex; align-items: center; gap: 12px; flex: 1; overflow: hidden; width: 100%; }
.c-name-text { font-size: 13px !important; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.3px; }

/* En vivo: visión compacta y limpia */
.sidebar {
    width: 290px !important;
}
.sidebar-header {
    padding: 10px 10px 8px 10px !important;
    border-radius: 12px !important;
}
.sidebar-header-content {
    gap: 8px !important;
}
.sidebar-title-creative .text {
    font-size: 12px !important;
    letter-spacing: .8px !important;
    white-space: nowrap !important;
}
.sidebar-actions-wrap {
    padding: 4px !important;
    border-radius: 10px !important;
    gap: 4px !important;
    width: auto !important;
    max-width: 62% !important;
    margin-left: auto !important;
    flex-shrink: 1 !important;
}
.sidebar-pill-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    min-height: 28px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}
.sidebar-header-top { gap: 8px !important; }
.sidebar-pill-btn:not(.btn-hide) {
    max-width: 118px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.sidebar-search {
    min-height: 34px !important;
    padding: 8px 10px 8px 32px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}
.sidebar-search-wrap .search-icon {
    left: 11px !important;
    font-size: 12px !important;
}
#channel-list {
    padding: 8px !important;
    gap: 6px !important;
}
.channel-btn {
    padding: 8px 10px !important;
    border-radius: 9px !important;
    min-height: 38px !important;
    box-shadow: none !important;
}
.channel-btn:hover {
    transform: translateX(4px) !important;
}
.c-main-info {
    gap: 8px !important;
}
.c-name-text {
    font-size: 12px !important;
    letter-spacing: 0 !important;
}
.status-dot {
    width: 8px !important;
    height: 8px !important;
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: #2ecc71; animation: pulseGlow 2s infinite; }
.status-dot.offline { background: #e63946; }
.fav-star { font-size: 16px; color: #475569; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.fav-star:hover { transform: scale(1.3) rotate(20deg); color: #fcd34d; }
.fav-star.active { color: #f59e0b; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)); }

.video-section { display: flex; flex-direction: column; width: 100%; align-items: center; justify-content: flex-start; padding: 0; box-sizing: border-box; flex: 1 1 auto; min-height: 0; overflow: hidden; }
#main-grid { flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; }
.video-grid { display: flex; flex-direction: column; width: 100%; align-items: center; height: 100%; min-height: 0; }
.video-wrapper { width: 100%; max-width: none; margin: 0 auto; height: 100%; min-height: 0; background: #000; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(56,189,248,.22), 0 0 0 8px rgba(14,23,42,.8); border: 1px solid rgba(255,255,255,0.05); animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.video-wrapper .plyr, .video-wrapper .plyr__video-wrapper, .video-wrapper video { height: 100% !important; width: 100% !important; }
.video-wrapper video { object-fit: contain !important; object-position: center center !important; }
.video-grid.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; max-width: none; margin: 0; align-items: start; }

.floating-toggle-btn {
    position: fixed;
    left: 0;
    top: 75%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-left: none;
    padding: 25px 12px 25px 15px;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    z-index: 1000;
    display: none; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    box-shadow: 6px 0 30px rgba(0,0,0,0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}
.floating-toggle-btn:hover {
    background: #1e293b;
    padding-left: 20px;
    border-color: #e50914;
    box-shadow: 8px 0 40px rgba(229, 9, 20, 0.3);
}
.floating-toggle-btn .icon { font-size: 18px; color: #fff; transition: transform 0.3s; }
.floating-toggle-btn:hover .icon { transform: translateX(3px); }
.floating-toggle-btn .text { color: #fca5a5; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }

.downloads-wrapper { display: flex; flex-direction: column; gap: 20px; width: 98%; max-width: 1800px; margin: 0 auto; color: #fff; position: relative; animation: slideUpFade 0.4s ease-out; text-align: left;}
.dl-header { position: sticky; top: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(15, 23, 42, 0.9); padding: 20px 25px; border-radius: 16px; border: 1px solid var(--border-color); gap: 15px; backdrop-filter: blur(20px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.dl-controls-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; flex-wrap: wrap; margin-top: 5px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 15px; }
.dl-search-input { flex: 1; min-width: 250px; background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 18px; color: #fff; font-size: 14px; font-weight: 600; outline: none; transition: all 0.3s; }
.dl-search-input:focus { border-color: #38bdf8; box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); background: rgba(0,0,0,0.7); }

.view-toggle-btn { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 14px; color: var(--text-muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.view-toggle-btn:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }
.view-toggle-btn.active { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.4); color: #38bdf8; box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15); }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.dl-item { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--text-main); position: relative; overflow: hidden; min-height: 160px; justify-content: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.dl-item.folder { cursor: pointer; }
.dl-item:hover { transform: translateY(-8px) scale(1.03); border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15); z-index: 5; background: rgba(30, 41, 59, 0.8); }
.dl-icon { font-size: 45px; margin-bottom: 15px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.dl-item:hover .dl-icon { transform: scale(1.15) translateY(-5px); }
.dl-name { font-size: 14px; font-weight: 800; word-break: break-word; overflow: hidden; margin-bottom: 10px; width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.dl-meta { font-size: 12px; color: #cbd5e1; background: rgba(0,0,0,0.5); padding: 5px 12px; border-radius: 10px; margin-bottom: 5px; font-weight: 700; border: 1px solid rgba(255,255,255,0.05); }
.dl-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; opacity: 0; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: absolute; bottom: 20px; left: 0; padding: 0 20px; box-sizing: border-box; }
.dl-item:hover .dl-actions { opacity: 1; transform: translateY(0); }
.dl-item.file { padding-bottom: 80px; justify-content: flex-start; } 

.dl-grid.list-view { display: flex; flex-direction: column; gap: 12px; }
.dl-grid.list-view > .dl-item { width: 100% !important; max-width: 100% !important; }
.dl-grid.list-view .dl-item { flex-direction: row; padding: 18px 25px; text-align: left; align-items: center; justify-content: flex-start; min-height: 80px; border-radius: 14px; }
.dl-grid.list-view .dl-item:hover { transform: translateX(8px); }
.dl-grid.list-view .dl-icon { font-size: 35px; margin-bottom: 0; margin-right: 25px; }

.dl-grid.list-view .dl-name { 
    flex: 1; margin-right: 20px; font-size: 16px; margin-bottom: 0; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; 
}

.dl-grid.list-view .dl-meta { margin-top: 0; margin-right: 25px; margin-bottom: 0; min-width: 90px; text-align: center; }
.dl-grid.list-view .dl-actions { position: relative; opacity: 1; transform: none; bottom: auto; left: auto; padding: 0; width: auto; margin-top: 0; flex-direction: row; align-items: center; flex-shrink: 0; gap: 12px;}
.dl-grid.list-view .dl-item.file { padding-bottom: 18px; }
.dl-grid .dl-item { width: 100%; }
.dl-grid .dl-item.folder { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; min-height: 72px; padding: 14px 18px; }
.dl-grid .dl-item.folder .dl-icon { font-size: 30px; margin: 0 12px 0 0; }
.dl-grid .dl-item.folder .dl-name { margin: 0; -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

.dl-btn { white-space: nowrap !important; flex-shrink: 0; color: #fff; border: none; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); min-width: 150px; }
.download-btn { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4); }
.download-btn:hover { background: linear-gradient(135deg, #2563eb, #1e3a8a); transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.6); }
.copy-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 10px rgba(0,0,0,0.2);}
.copy-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.empty-zone-text { padding: 80px 20px; text-align: center; color: var(--text-muted); font-size: 18px; font-weight: 800; border: 2px dashed rgba(255,255,255,0.1); border-radius: 20px; width: 100%; box-sizing: border-box; background: rgba(0,0,0,0.3); animation: slideUpFade 0.5s ease-out; }

#schedule-container { width: 100%; max-width: 1300px; margin: 0; animation: slideUpFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; display: flex; flex-direction: column; align-items: flex-start; text-align: left;}
#schedule-home { display: flex; flex-direction: column; gap: 15px; width: 100%; align-self: flex-start; text-align: left; }
.evento-row { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: slideUpFade 0.5s ease-out backwards; text-align: left; width: 100%;}
.evento-row:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 15px 35px rgba(0,0,0,0.4); background: rgba(30, 41, 59, 0.8) !important; border-color: rgba(56, 189, 248, 0.3) !important; }

.news-wrapper { max-width: 1300px; width: 100%; margin: 0; align-self: flex-start; color: #fff; position: relative; animation: slideUpFade 0.4s ease-out; text-align: left; }
.news-post { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: fadeInUp 0.5s ease-out backwards; transition: transform 0.3s; margin-bottom: 25px; text-align: left;}
.news-post:hover { transform: translateY(-4px); border-color: rgba(14, 165, 233, 0.3); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.news-title { font-size: 26px; font-weight: 900; color: #fff; margin-top: 0; margin-bottom: 15px; letter-spacing: 0.5px; text-align: left;}
.news-meta { font-size: 13px; color: #38bdf8; font-weight: 800; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; background: rgba(14, 165, 233, 0.1); padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(14, 165, 233, 0.2); text-align: left;}

.news-content { font-size: 15px; line-height: 1.8; color: #e2e8f0; text-align: left;}
.news-content h1, .news-content h2, .news-content h3 { color: #fff; margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 800; text-align: left;}
.news-content p { margin-top: 0; margin-bottom: 1.5em; text-align: left;}
.news-content a { color: #38bdf8; text-decoration: underline; font-weight: 600; }
.news-content a:hover { color: #0ea5e9; }
.news-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 15px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.4); display: block; }
.news-content ul, .news-content ol { margin-bottom: 1.5em; padding-left: 20px; text-align: left;}
.news-content li { margin-bottom: 0.5em; text-align: left;}
.news-content blockquote { border-left: 4px solid #38bdf8; margin: 1.5em 0; padding: 15px 25px; background: rgba(56, 189, 248, 0.1); border-radius: 0 12px 12px 0; font-style: italic; font-size: 16px; color: #bae6fd; text-align: left;}

body.cinema-active header,
body.cinema-active .sidebar,
body.cinema-active #schedule-container,
body.cinema-active #downloads-container,
body.cinema-active #news-container,
body.cinema-active .main-bg {
    display: none !important;
}
body.cinema-active .main-layout {
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
}
body.cinema-active .video-section {
    padding: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
}
body.cinema-active .video-wrapper {
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
body.cinema-active .main-content-wrapper {
    padding: 0 !important;
    background: #000 !important;
}

:root { --touch-min: 48px; }
.header-nav-btn, .sidebar-pill-btn, .floating-toggle-btn { min-height: var(--touch-min); min-width: var(--touch-min); }
.modal-overlay { padding: 12px; box-sizing: border-box; }
.modal-box { max-height: calc(100vh - 24px); overflow-y: auto; }
#main-content, .main-content, .content-wrap { min-width: 0; }

.main-content-wrapper {
    container-type: inline-size;
    container-name: contentArea;
}

@container contentArea (max-width: 600px) {
    .dl-grid { grid-template-columns: 1fr; }
    .evento-row { flex-direction: column; align-items: stretch; }
    .evento-row > div { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; margin-bottom: 4px; }
}

@media (max-width: 1024px) {
  body { font-size: 14px; }
  header { padding: 12px 14px; }
  .header-top-row { gap: 8px; flex-wrap: wrap; }
  .header-nav-btn { font-size: 12px; padding: 10px 11px; border-radius: 10px; }
  .sidebar { width: min(88vw, 360px); }
  .sidebar-header { padding: 12px; border-radius: 12px; }
  .sidebar-title-creative .text { font-size: 12px; letter-spacing: 1px; }
  .sidebar-search { min-height: 48px; font-size: 13px; }
  .schedule-header-modern { gap: 10px; margin-bottom: 14px; }
  .video-grid, .channels-grid { gap: 10px; }
  .video-wrapper { border-radius: 12px; overflow: hidden; }
}
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; }
  .main-content-wrapper { padding: 12px !important; }
  #schedule-container, #schedule-home, .schedule-home-grid, .news-wrapper, .downloads-wrapper { width: 100% !important; max-width: 100% !important; }
  .modal-overlay { align-items: flex-end; padding: max(10px, env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); }
  .modal-box { width: 100%; max-width: 100%; border-radius: 14px; padding: 16px; max-height: 85dvh; }
  .modal-box h3 { font-size: 17px; margin-bottom: 12px; }
  .modal-box p { font-size: 13px; margin-bottom: 14px; line-height: 1.45; }
  .modal-box input { font-size: 16px; padding: 12px; }
  .modal-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .modal-btns button { width: 100%; min-height: 48px; }
  .sidebar-actions-wrap { width: 100%; justify-content: space-between; }
  .sidebar-pill-btn { flex: 1; justify-content: center; min-height: 48px; }
  #floating-show-sidebar { bottom: 14px; right: 14px; min-height: 48px; min-width: 48px; }
}
@media (max-width: 560px) {
  .header-nav-btn { font-size: 11px; padding: 9px 10px; min-height: 48px; }
  .sidebar { width: 92vw; }
  .sidebar-search { padding-left: 36px; min-height: 48px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  header { position: static; }
  .sidebar { width: min(72vw, 320px); }
  .sidebar-header { padding: 10px; }
  .sidebar-pill-btn { padding: 8px 9px; font-size: 11px; min-height: 48px; }
  .modal-box { max-height: 92vh; }
  #floating-show-sidebar { bottom: 10px; right: 10px; min-height: 48px; min-width: 48px; }
}

@media (max-width: 1024px) {
  .controls-area.hide-on-mobile { display: none !important; }
  #app-wrapper {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  .main-layout {
    height: auto !important;
    min-height: calc(100dvh - 64px);
    overflow: visible !important;
  }
  .main-content-wrapper {
    height: auto !important;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
  #schedule-container, #schedule-home {
    overflow: visible !important;
  }
  #account-modal {
    align-items: flex-end !important;
    padding: max(8px, env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }
  #account-modal .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 86dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 14px !important;
    margin: 0 !important;
  }
  #account-modal .modal-box > div:last-child {
    max-height: none !important;
    overflow: visible !important;
  }

  #app-wrapper { min-height: 100dvh; }
  header {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px 12px !important;
    min-height: 64px;
    border-bottom: 1px solid rgba(148,163,184,.16) !important;
  }
  .logo-area img { height: 28px !important; max-height: 28px !important; }
  .top-banner-slider {
    grid-column: 1 / -1;
    margin-top: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .top-banner-slide {
    min-height: 48px !important;
    border-radius: 12px !important;
    padding: 7px 9px !important;
  }
  .top-banner-slide-title { font-size: 10px !important; letter-spacing: .25px !important; }
  .top-banner-slide-day { font-size: 9px !important; }

  .main-content-wrapper {
    padding: 12px !important;
    gap: 10px;
  }
  #schedule-container { padding: 0 !important; }
  .schedule-header-modern {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }
  .sh-main-title-banner,
  .sh-banner {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
  }
  .sh-title-icon, .sh-banner-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
  }
  .sh-title-text h2, .sh-banner-title {
    font-size: 13px !important;
    line-height: 1.18 !important;
    letter-spacing: .35px !important;
  }
  .sh-title-text span, .sh-banner-desc {
    font-size: 11px !important;
    margin-top: 2px !important;
    line-height: 1.25 !important;
  }
  .sh-banner-arrow { font-size: 17px !important; }

  .evento-row {
    border-radius: 12px !important;
    padding: 8px !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.25) !important;
  }
  .evento-row > div:first-child {
    min-width: 82px !important;
    padding-right: 6px !important;
    gap: 6px !important;
  }
  .evento-row .t { font-size: 12px !important; }
  .evento-row > div:nth-child(2) { min-width: 0 !important; }
  .evento-row > div:nth-child(2) > span {
    font-size: 12px !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }
  .countdown-timer { font-size: 10px !important; }
  .evento-canales {
    width: 100%;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-top: 2px;
  }
  .evento-play-btn-neo {
    min-height: 48px;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
  }

  #welcome-telegram-promo {
    padding: 14px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }
  #welcome-telegram-promo h4 { font-size: 14px !important; margin-bottom: 6px !important; }
  #welcome-telegram-promo p { font-size: 12px !important; line-height: 1.4 !important; }
  #welcome-telegram-promo button {
    min-height: 48px;
    border-radius: 10px !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
  }
  #btn-connect-telegram {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    letter-spacing: .2px !important;
    padding: 12px !important;
  }

  #bottom-nav-bar {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(148,163,184,.20) !important;
    background: rgba(10,15,28,0.96) !important;
    backdrop-filter: blur(16px) saturate(130%);
  }
  #bottom-nav-bar .nav-item {
    min-height: 48px;
    border-radius: 11px;
    padding: 4px 2px;
    gap: 4px;
  }
  #bottom-nav-bar .nav-item .icon { font-size: 18px !important; }
  #bottom-nav-bar .nav-item span:not(.icon) {
    font-size: 10px !important;
    line-height: 1.1;
    letter-spacing: .2px;
  }
}

@media (max-width: 768px) {
  html, body {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .downloads-wrapper, .news-wrapper {
    gap: 12px !important;
  }
  .dl-header {
    padding: 10px !important;
    border-radius: 12px !important;
  }
  .dl-controls-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .dl-search-input {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    min-height: 48px;
  }
  .news-post {
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }
  .news-title { font-size: 20px !important; line-height: 1.2 !important; }
  .news-content { font-size: 14px !important; line-height: 1.6 !important; }

  .video-section {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
  }
  #main-grid {
    overflow: visible !important;
    height: auto !important;
  }
  .video-grid {
    height: auto !important;
    min-height: 210px !important;
  }
  .video-wrapper {
    height: auto !important;
    min-height: 210px !important;
    aspect-ratio: 16/9;
  }
  .video-wrapper .plyr {
    min-height: 210px !important;
  }
  .plyr--fullscreen-enabled [data-plyr='fullscreen'] {
    display: inline-flex !important;
  }

  #account-modal .modal-box {
    max-width: min(96vw, 360px) !important;
    width: min(96vw, 360px) !important;
    max-height: 82dvh !important;
    border-radius: 12px !important;
  }
  #account-modal .modal-box > div:first-child {
    padding: 12px !important;
  }
  #account-modal .modal-box > div:nth-child(2) {
    padding: 12px !important;
  }
  #account-modal h3 {
    font-size: 14px !important;
    margin: 0 0 6px 0 !important;
  }
  #account-modal p {
    font-size: 12px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
  }
  #account-modal .btn-account,
  #account-modal button {
    min-height: 48px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
  }

  .downloads-wrapper { gap: 10px !important; }
  .dl-controls-row > div { width: 100% !important; }
  .dl-controls-row > div > div { width: 100% !important; justify-content: space-between !important; }
  .dl-grid.list-view { gap: 8px !important; }
  .dl-grid.list-view .dl-item {
    min-height: 62px !important;
    padding: 10px 11px !important;
    border-radius: 11px !important;
  }
  .dl-grid.list-view .dl-icon {
    font-size: 22px !important;
    margin-right: 10px !important;
  }
  .dl-grid.list-view .dl-name {
    font-size: 12px !important;
    margin-right: 8px !important;
  }
  .dl-grid.list-view .dl-meta {
    font-size: 10px !important;
    padding: 4px 7px !important;
    margin-right: 8px !important;
    min-width: 64px !important;
  }
  .dl-grid.list-view .dl-actions {
    gap: 6px !important;
  }
  .dl-btn {
    min-width: 0 !important;
    padding: 6px 8px !important;
    font-size: 9px !important;
    letter-spacing: .2px !important;
    border-radius: 8px !important;
    min-height: 48px !important;
  }
  .dl-grid .dl-item.folder {
    min-height: 58px !important;
    padding: 10px 11px !important;
  }
  .dl-grid .dl-item.folder .dl-icon {
    font-size: 22px !important;
    margin-right: 8px !important;
  }
}

body.mobile-video-fs header,
body.mobile-video-fs #bottom-nav-bar,
body.mobile-video-fs .sidebar,
body.mobile-video-fs #floating-show-sidebar,
body.mobile-video-fs .player-btn-desktop-pip,
body.mobile-video-fs .player-btn-desktop-live,
body.mobile-video-fs .player-btn-desktop-unmute,
body.mobile-video-fs .player-btn-desktop-cast,
body.mobile-video-fs .player-btn-mobile-pip,
body.mobile-video-fs .player-btn-mobile-live,
body.mobile-video-fs .player-btn-mobile-unmute,
body.mobile-video-fs .player-btn-mobile-cast {
  display: none !important;
}

@media (max-width: 1024px) and (orientation: landscape) {
  html, body {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
  }
  #app-wrapper {
    min-height: 100dvh !important;
  }
  header {
    padding: 8px 10px !important;
    min-height: 50px !important;
  }
  .logo-area img {
    height: 22px !important;
    max-height: 22px !important;
  }
  .top-banner-slide {
    min-height: 36px !important;
    padding: 4px 7px !important;
  }
  .schedule-header-modern.desktop-only {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 8px !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .schedule-header-modern.desktop-only .sh-main-title-banner,
  .schedule-header-modern.desktop-only .sh-banner {
    min-height: 48px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }
  .schedule-header-modern.desktop-only .sh-title-icon,
  .schedule-header-modern.desktop-only .sh-banner-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  .schedule-header-modern.desktop-only .sh-title-text h2,
  .schedule-header-modern.desktop-only .sh-banner-title {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }
  .schedule-header-modern.desktop-only .sh-title-text span,
  .schedule-header-modern.desktop-only .sh-banner-desc {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
  .video-wrapper {
    min-height: 180px !important;
    height: calc(100dvh - 56px) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .video-section {
    width: 100% !important;
    height: calc(100dvh - 56px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .video-grid {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: 0 !important;
  }
  .video-wrapper .plyr,
  .video-wrapper .plyr__video-wrapper,
  .video-wrapper video {
    width: 100% !important;
    height: 100% !important;
  }
  .player-btn-mobile-pip,
  .player-btn-mobile-live,
  .player-btn-mobile-unmute,
  .player-btn-mobile-cast {
    min-width: 54px !important;
    height: 18px !important;
    font-size: 8px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
  }
  .player-btn-mobile-pip { left: 6px !important; bottom: 34px !important; }
  .player-btn-mobile-live { right: 6px !important; bottom: 34px !important; }
  .player-btn-mobile-unmute { right: 6px !important; top: 6px !important; }
  .player-btn-mobile-cast { right: 64px !important; top: 6px !important; }
}

body.mobile-video-fs,
body.mobile-video-fs #app-wrapper,
body.mobile-video-fs .main-layout,
body.mobile-video-fs .main-content-wrapper,
body.mobile-video-fs .video-section,
body.mobile-video-fs .video-grid,
body.mobile-video-fs .video-wrapper {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.mobile-video-fs .video-wrapper {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
  #welcome-modal .modal-box {
    width: min(94vw, 560px) !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
  }
  #welcome-modal .modal-box > div:first-child {
    padding: 14px 12px !important;
  }
  #welcome-modal .modal-box > div:last-child {
    padding: 12px !important;
  }
  #welcome-modal h2 {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
  #welcome-latest-files {
    max-height: 120px !important;
  }
