 * { margin: 0; padding: 0; box-sizing: border-box; }
        body { background: #050505; color: white; font-family: 'Inter', sans-serif; }
        .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

        .navbar {
            padding: 20px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        .logo { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }
        .logo span { color: #00FF41; }
        .back-link { color: #00FF41; text-decoration: none; font-size: 14px; }

        /* СЕТКА: ПЛЕЕР И ПЛЕЙЛИСТ */
        .main-view-grid {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 20px;
            align-items: start;
            margin-bottom: 30px;
        }

        .player-section { width: 100%; }
        .player-wrapper {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(0,255,65,0.2);
            box-shadow: 0 0 50px rgba(0,255,65,0.08);
            background: #000;
            height: 0;
            padding-bottom: 65.25%;
        }
        .player-wrapper iframe {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* ПЛЕЙЛИСТ - теперь динамически подстраивается под высоту плеера */
        .episodes-sidebar {
            background: #111;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.05);
            display: flex;
            flex-direction: column;
            height: 100%;
            max-height: 0;
            min-height: 100%;
        }
        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .sidebar-header span { color: #00FF41; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

        .ep-list-scroll {
            overflow-y: auto;
            padding: 15px;
            flex: 1;
        }
        .ep-list-scroll::-webkit-scrollbar { width: 4px; }
        .ep-list-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

        .ep-list-item {
            display: block;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            text-decoration: none;
            color: white;
            border: 1px solid transparent;
            background: rgba(255,255,255,0.02);
            transition: all 0.2s ease;
        }
        .ep-list-item:hover { border-color: rgba(0,255,65,0.3); background: rgba(0,255,65,0.03); }
        .ep-list-item.active { border-color: #00FF41; background: rgba(0,255,65,0.1); }
        .ep-list-item .ep-num { font-size: 11px; color: #aaa; text-transform: uppercase;  font-weight: 600; }

        /* БЛОК ТЕКСТА */
        .episode-info-block { 
            margin-top: 10px; 
            max-width: 1000px;
        }
        .episode-label { font-size: 14px; color: #666; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
        .episode-info-block h1 { font-size: 32px; font-weight: 900; margin-bottom: 15px; }
        .episode-info-block h1 span { color: #00FF41; }
        .description p { color: #aaa; line-height: 1.8; font-size: 16px; }

        .grain-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; opacity: 0.02;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        }

        /* АДАПТИВ */
        @media (max-width: 1024px) {
            .main-view-grid { 
                grid-template-columns: 1fr; 
            }
            .episodes-sidebar { 
                height: 450px;
                min-height: auto;
                max-height: none;
            }
        }