/* ===== Nova+ Video Player - FULL CONTROLS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
    --player-primary: #a855f7;
    --player-primary-hover: #c084fc;
    --ctrl-bg: rgba(8, 8, 12, 0.92);
    --ctrl-border: rgba(168, 85, 247, 0.25);
    --ctrl-radius: 12px;
    --ctrl-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Modal — fullscreen overlay ── */
/* IMPORTANT: body { zoom: 0.75 } in style.css affects everything.
   We undo it on the modal with zoom: 1.3333 (= 1/0.75) so the player
   renders at true viewport dimensions. */
.video-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    z-index: 2147483646 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
    overflow: hidden !important;
    border-radius: 0 !important;
    zoom: 1.3333333 !important; /* counter the body { zoom: 0.75 } */
}
.video-modal.active {
    display: block !important;
}

/* ── Container ── */
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Loader ── */
.player-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #05050a;
    z-index: 500;
    color: #fff;
    overflow: hidden;
}

.loader-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.3);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    transform: scale(1.1);
}

.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.75);
    animation: spinLoader .85s linear infinite;
}

.loader-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes nova-loader-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.04); }
}

/* Loader status text */
#loader-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(168, 85, 247, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
    animation: nova-loader-breathe 2s ease-in-out infinite;
    margin: 0;
}

/* Loader progress bar */
.loader-progress-bar {
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
}

#loader-progress {
    height: 100%;
    background: #a855f7;
    border-radius: 999px;
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.video-modal.active {
    display: block;
    opacity: 1;
}

/* ══════════════════════════════════════════════
   PLYR INTEGRATION — Nova+ Theme
══════════════════════════════════════════════ */

/* Make Plyr fill the entire modal */
.video-player-container .plyr {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* Ensure the video wrapper also fills the container */
.video-player-container .plyr__video-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

.video-player-container #nova-video,
.video-player-container .plyr video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* ── Title Info (Top Center) ── */
.nova-title-info {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2147483647;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nova-title-info .main-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nova-title-info .sub-title {
    color: #c084fc;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plyr--hide-controls .nova-title-info {
    opacity: 0;
}

/* ── Nova+ Watermark (Fixed & Transparent — White Nova + Purple Plus) ── */
.nova-watermark {
    position: absolute !important;
    top: 22px !important;
    left: 24px !important;
    bottom: auto !important;
    right: auto !important;
    color: rgba(255, 255, 255, 0.78) !important; /* أبيض شفاف خفيف */
    font-size: 30px !important;
    font-weight: 900 !important;
    font-family: 'Inter', sans-serif !important;
    pointer-events: none !important;
    z-index: 2147483647 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65) !important;
    letter-spacing: -0.5px !important;
    opacity: 1 !important; /* ثابت لا يختفي عند إخفاء الأزرار */
    visibility: visible !important;
    background: transparent !important;
    user-select: none !important;
    line-height: 1 !important;
}

.nova-watermark .logo-plus-sign {
    color: #a855f7 !important; /* بنفسجي صريح */
    margin-right: 1px !important;
    margin-left: 1px !important;
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.85), 0 2px 8px rgba(0, 0, 0, 0.7) !important;
    opacity: 0.95 !important;
}

/* منع اختفاء الشعار عند اختفاء أزرار التحكم */
.plyr--hide-controls .nova-watermark {
    opacity: 1 !important;
    visibility: visible !important;
}

.video-player-container:hover .nova-watermark {
    opacity: 1 !important;
}

/* ══════════════════════════════════════════
   WATCH PARTY
══════════════════════════════════════════ */

/* ── Control bar button ── */
.nova-party-ctrl-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.85) !important;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 6px !important;
    transition: color 0.18s, filter 0.18s;
}
.nova-party-ctrl-btn svg { width: 22px; height: 22px; fill: rgba(255,255,255,0.85); }
.nova-party-ctrl-btn:hover svg { fill: #c084fc; filter: drop-shadow(0 0 6px rgba(168,85,247,0.55)); }

/* ── Full-screen backdrop ── */
.nova-party-overlay {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    z-index: 9500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.nova-party-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Centered modal card ── */
.npp-modal {
    position: relative;
    width: min(480px, 90vw);
    max-height: 88vh;
    overflow-y: auto;
    background: rgba(7,5,18,0.72);
    backdrop-filter: blur(36px) saturate(160%);
    -webkit-backdrop-filter: blur(36px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(109,40,217,0.14), inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #fff;
    animation: npp-modal-in 0.28s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes npp-modal-in {
    from { transform: scale(0.92) translateY(16px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Close / Back buttons ── */
.npp-close-btn {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.18s;
}
.npp-close-btn svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.65); }
.npp-close-btn:hover { background: rgba(255,255,255,0.12); }
.npp-close-btn:hover svg { fill: #fff; }

.npp-back-btn {
    align-self: flex-start;
    background: transparent; border: none;
    color: rgba(196,181,253,0.7); font-size: 13px; font-weight: 600;
    cursor: pointer; padding: 0 0 16px 0; font-family: inherit;
    transition: color 0.15s;
}
.npp-back-btn:hover { color: #c084fc; }

/* ── Hero icon ── */
.npp-hero-icon {
    width: 76px; height: 76px; border-radius: 22px;
    background: rgba(109,40,217,0.18);
    border: 1px solid rgba(109,40,217,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.npp-hero-icon svg { color: #a855f7; stroke: #a855f7; }
.npp-hero-sm { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; }
.npp-hero-sm svg { width: 26px; height: 26px; }

/* ── Loading screen ── */
#npp-loading {
    display: flex; flex-direction: column; align-items: center;
    gap: 18px; padding: 16px 0;
}
.npp-spinner {
    width: 44px; height: 44px; border-radius: 50%;
    border: 3px solid rgba(109,40,217,0.2);
    border-top-color: #a855f7;
    animation: npp-spin 0.75s linear infinite;
}
@keyframes npp-spin { to { transform: rotate(360deg); } }
.npp-loading-txt { font-size: 15px; color: rgba(255,255,255,0.55); margin: 0; }

/* ── Header elements ── */
.npp-main-title {
    font-size: 22px; font-weight: 800; color: #fff;
    margin: 0 0 8px; letter-spacing: -0.3px;
}
.npp-main-sub {
    font-size: 14px; color: rgba(255,255,255,0.45);
    margin: 0 0 28px; line-height: 1.5;
}

/* ── Create / Join option cards ── */
.npp-cards-row {
    display: flex; gap: 14px; width: 100%; margin-bottom: 4px;
}
.npp-card {
    flex: 1; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    padding: 22px 16px 20px;
    cursor: pointer; transition: all 0.2s ease;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.npp-card:hover {
    background: rgba(109,40,217,0.18);
    border-color: rgba(109,40,217,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109,40,217,0.25);
}
.npp-card-svg { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.npp-card-svg svg { fill: #a855f7; width: 32px; height: 32px; }
.npp-card-title { font-size: 15px; font-weight: 700; color: #fff; }
.npp-card-desc { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.4; }

/* ── Join input screen ── */
.npp-big-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 14px; color: #fff;
    padding: 16px 20px; font-size: 26px;
    font-weight: 900; letter-spacing: 10px; text-align: center;
    outline: none; font-family: monospace; text-transform: uppercase;
    margin-bottom: 14px; transition: border-color 0.2s;
}
.npp-big-input::placeholder { font-size: 14px; letter-spacing: 2px; font-weight: 500; color: rgba(255,255,255,0.2); }
.npp-big-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(109,40,217,0.2); }

.npp-primary-btn {
    width: 100%; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; font-size: 15px; font-weight: 700;
    padding: 15px 0; cursor: pointer; font-family: inherit;
    box-shadow: 0 6px 20px rgba(109,40,217,0.45);
    transition: all 0.18s ease;
}
.npp-primary-btn:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(109,40,217,0.55); }
.npp-primary-btn:active { transform: translateY(0); }

/* ── Active screen ── */
.npp-live-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.3);
    border-radius: 20px; padding: 5px 14px;
    font-size: 12px; font-weight: 700; color: #fca5a5;
    letter-spacing: 0.5px; margin-bottom: 20px;
}
.npp-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.8);
    animation: npp-live-pulse 1.4s ease-in-out infinite;
}
@keyframes npp-live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.npp-code-big {
    width: 100%; background: rgba(109,40,217,0.1);
    border: 1px solid rgba(109,40,217,0.25); border-radius: 18px;
    padding: 20px 16px 16px; margin-bottom: 18px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.npp-code-label-sm {
    font-size: 11px; font-weight: 700; color: rgba(196,181,253,0.55);
    text-transform: uppercase; letter-spacing: 1.5px;
}
.npp-code-chars {
    font-size: 38px; font-weight: 900; letter-spacing: 10px;
    color: #fff; font-family: monospace; direction: ltr;
    text-shadow: 0 0 20px rgba(168,85,247,0.45);
}
.npp-copy-code-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid rgba(196,181,253,0.25);
    color: rgba(196,181,253,0.7); border-radius: 10px;
    padding: 7px 18px; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.npp-copy-code-btn svg { width: 15px; height: 15px; fill: currentColor; }
.npp-copy-code-btn:hover { background: rgba(109,40,217,0.3); color: #fff; border-color: #7c3aed; }

.npp-members-bar {
    width: 100%; display: flex; gap: 12px;
    background: rgba(255,255,255,0.04); border-radius: 14px;
    padding: 14px 16px; margin-bottom: 12px;
}
.npp-member-item {
    flex: 1; display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.75);
}
.npp-member-svg { display: flex; align-items: center; }
.npp-member-svg svg { fill: #a855f7; }

.npp-info-box {
    width: 100%; background: rgba(109,40,217,0.1);
    border-radius: 12px; padding: 12px 16px;
    font-size: 13px; color: rgba(196,181,253,0.8);
    line-height: 1.5; margin-bottom: 14px;
    border: 1px solid rgba(109,40,217,0.18);
}

.npp-status-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.npp-dot-green {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 7px rgba(34,197,94,0.7);
    animation: npp-live-pulse 2s ease-in-out infinite;
}

.npp-leave-btn {
    width: 100%; border-radius: 14px;
    background: rgba(239,68,68,0.1); color: rgba(252,165,165,0.85);
    border: 1px solid rgba(239,68,68,0.22);
    font-size: 14px; font-weight: 700; padding: 13px 0;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.18s ease;
}
.npp-leave-btn svg { width: 18px; height: 18px; fill: currentColor; }
.npp-leave-btn:hover { background: rgba(239,68,68,0.22); color: #fff; }

/* ── Nova+ Watermark — fixed top-left, always visible ── */
.nova-wm-float {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
    user-select: none !important;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.nova-wm-float.nova-wm-visible {
    opacity: 1;
}
.nova-wm-logo {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    line-height: 1;
}
.nova-wm-plus {
    color: rgba(168, 85, 247, 0.6);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}
/* Keep visible when controls hidden or in fullscreen */
.plyr--hide-controls .nova-wm-float,
.plyr--fullscreen-active .nova-wm-float {
    opacity: 1 !important;
}

/* إصلاح مشكلة الخطين: إخفاء أي عناصر إضافية قد تسبب الخط الأبيض */
.plyr__progress__container::before,
.plyr__progress__container::after,
.plyr__progress::before,
.plyr__progress::after,
.plyr__progress__buffer::before,
.plyr__progress__buffer::after {
    display: none !important;
    content: none !important;
}

/* تأكيد إخفاء الخط الأبيض الخلفي */
.plyr__progress input[type="range"] {
    background: transparent !important;
    box-shadow: none !important;
}

.plyr__progress {
    background: rgba(255, 255, 255, 0.1) !important; /* الخط الرمادي الخلفي فقط */
    border: none !important;
}

.video-player-container .plyr--video .plyr__progress input[type="range"] {
    color: #7c3aed !important; /* اللون البنفسجي للتقدم */
}

.plyr__progress__buffer {
    background: rgba(124, 58, 237, 0.15) !important; /* تحميل خفيف جداً */
    border: none !important;
}



/* ── Episodes Button (In Control Bar) ── */
.nova-episodes-btn {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s ease;
    font-weight: 700;
    gap: 8px;
    flex-shrink: 0;
}

.nova-episodes-btn::after {
    content: "";
}

.nova-episodes-btn svg {
    fill: #fff;
    transition: fill 0.2s ease;
    width: 28px !important; /* 24px * 1.25 */
    height: 28px !important;
}

.nova-episodes-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── In-Player Episodes Panel ── */
.nova-episodes-panel {
    position: absolute;
    top: 0;
    left: 0;
    /* Left side in RTL */
    width: 360px;
    max-width: 85%;
    /* Ensure it doesn't cover whole screen on mobile */
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(216, 180, 254, 0.15);
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

/* Responsive adjustments for player */
@media (max-width: 768px) {
    .nova-episodes-panel {
        width: 300px;
    }

    .ep-thumb {
        width: 80px;
        height: 45px;
    }

    .ep-name {
        font-size: 12px;
    }

    .nova-watermark {
        font-size: 16px;
        top: 14px;
        left: 14px;
    }

    .nova-episodes-btn {
        top: 15px;
        height: 32px;
        padding: 0 12px;
    }

    .nova-episodes-btn::after {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .nova-episodes-panel {
        width: 100%;
        /* Full width on very small screens */
    }

    .nova-left .plyr__time {
        font-size: 10px !important;
    }

    .nova-btn-row .plyr__control:not(.plyr__menu__container .plyr__control) {
        width: 28px !important;
        height: 28px !important;
    }
}

.nova-episodes-panel.active {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(216, 180, 254, 0.1);
}

.panel-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.close-ep-panel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-ep-panel:hover {
    color: #d8b4fe;
}

.panel-seasons {
    padding: 15px 20px;
}

.season-selector {
    width: 100%;
    background: #1a1a24;
    border: 1px solid rgba(216, 180, 254, 0.3);
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    direction: rtl;
}

.season-selector option {
    background: #1a1a24;
    color: #ffffff;
    font-size: 14px;
}

.panel-episodes-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 20px;
}

.ep-loader,
.ep-error {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.ep-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.ep-item:hover {
    background: rgba(216, 180, 254, 0.1);
}

.ep-item.active {
    background: rgba(216, 180, 254, 0.2);
    border: 1px solid rgba(216, 180, 254, 0.3);
}

.ep-thumb {
    width: 100px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin-left: 12px;
}

.ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.ep-num-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.ep-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ep-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Resume Dialog ===== */
.nova-resume-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity .3s ease;
}
.nova-resume-overlay.nova-resume-visible { opacity: 1; }

.nova-resume-card {
    background: none;
    text-align: center;
    transform: translateY(16px);
    transition: transform .35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.nova-resume-overlay.nova-resume-visible .nova-resume-card { transform: translateY(0); }

.nova-resume-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    letter-spacing: .01em;
}
.nova-resume-title span {
    color: rgba(196, 148, 255, 0.95);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.nova-resume-btns {
    display: flex;
    flex-direction: row;
    gap: .75rem;
    justify-content: center;
}

.nova-resume-continue,
.nova-resume-restart {
    border-radius: 50px;
    padding: .65rem 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.nova-resume-continue:active,
.nova-resume-restart:active { transform: scale(0.97); }

.nova-resume-continue {
    background: rgba(168, 85, 247, 0.18);
    color: rgba(210, 170, 255, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.35);
}
.nova-resume-continue:hover {
    background: rgba(168, 85, 247, 0.28);
    border-color: rgba(168, 85, 247, 0.55);
    color: #fff;
}

.nova-resume-restart {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.nova-resume-restart:hover {
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.85);
}

.ep-playing {
    color: #d8b4fe;
    font-size: 14px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-now-playing {
    font-size: 11px;
    color: #a855f7;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════
   CENTER PLAY/PAUSE PULSE INDICATOR
══════════════════════════════════════════ */
@keyframes nova-play-pulse {
    0%   { opacity: 0.9; transform: translate(-50%,-50%) scale(1);   }
    60%  { opacity: 0.2; transform: translate(-50%,-50%) scale(1.45); }
    100% { opacity: 0;   transform: translate(-50%,-50%) scale(1.7);  }
}

.nova-center-indicator {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 40;
    opacity: 0;
}
.nova-center-indicator.nova-flash {
    animation: nova-play-pulse 0.65s ease-out forwards;
}
.nova-center-indicator svg {
    width: 32px; height: 32px;
    fill: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* ===== Nova Toast Notification ===== */
.nova-toast {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(18, 18, 18, 0.92);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
    z-index: 9999;
    border: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(8px);
}
.nova-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== PiP Button ===== */
.nova-pip-btn {
    position: absolute;
    bottom: 70px;
    left: 16px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    padding: 6px 8px;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    transition: background .2s, color .2s;
}
.nova-pip-btn:hover { background: rgba(168,85,247,0.25); color: #fff; }
.nova-pip-btn.active { color: #a855f7; border-color: rgba(168,85,247,0.5); }

/* ===== Seek Ripple ===== */
@keyframes nova-ripple-fade {
    0%   { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1.15); }
}
.nova-seek-ripple {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity .15s ease;
}
.nova-seek-ripple.left  { left: 10%; }
.nova-seek-ripple.right { right: 10%; }
.nova-seek-ripple.active { opacity: 1; animation: nova-ripple-fade .7s ease forwards; }
.nova-seek-ripple svg { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(0,0,0,0.6)); }
.nova-seek-ripple span { font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* Scrollbar for panel */
.panel-episodes-list::-webkit-scrollbar {
    width: 6px;
}

.panel-episodes-list::-webkit-scrollbar-track {
    background: transparent;
}

.panel-episodes-list::-webkit-scrollbar-thumb {
    background: rgba(216, 180, 254, 0.2);
    border-radius: 10px;
}

/* ── Plyr Controls: Two-row layout ── */
:root {
    --plyr-color-main: #7c3aed; /* بنفسجي مريح وفخم */
}

/* ── Bottom gradient fade (Netflix-style) — replaces the solid box ── */
.video-player-container .plyr--video .plyr__controls {
    display: flex !important;
    flex-direction: column !important;
    padding: 100px 28px 26px !important;
    gap: 8px !important;
    background: linear-gradient(to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.65) 45%,
        transparent 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: none !important;
    border-radius: 0 !important;
}

/* (الخط الافتراضي مخفي تماماً عبر display:none في القاعدة الأقوى أعلاه) */

/* خط Plyr الافتراضي مخفي تماماً — استبدلناه بخطّنا المخصص */
.video-player-container .plyr--video .plyr__controls .plyr__progress__container,
.video-player-container .plyr .plyr__progress__container,
.video-player-container .plyr__progress__container { display: none !important; visibility: hidden !important; height: 0 !important; padding: 0 !important; margin: 0 !important; }
.video-player-container .plyr__progress { display: none !important; }
.video-player-container .plyr__progress__fill { display: none !important; }
.video-player-container .plyr__progress__buffer { display: none !important; }

/* ══════════════════════════════════════════
   NOVA+ CUSTOM PROGRESS BAR (replaces Plyr)
   ══════════════════════════════════════════ */
.video-player-container .plyr--video .plyr__controls .nova-progress-container {
    position: relative !important;
    width: 100% !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: block !important;
    -webkit-tap-highlight-color: transparent;
}

.nova-progress-track {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.nova-progress-container:hover .nova-progress-track,
.nova-progress-container.dragging .nova-progress-track {
    height: 7px;
}

.nova-progress-buffer {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    pointer-events: none;
    width: 0;
    transition: width 0.5s ease;
}

.nova-progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: #6d28d9;
    border-radius: 999px;
    pointer-events: none;
    width: 0;
}

.nova-progress-knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px; height: 14px;
    background: #ede9fe;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.5), 0 2px 8px rgba(0,0,0,0.6);
    left: 0;
    pointer-events: none;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.nova-progress-container:hover .nova-progress-knob,
.nova-progress-container.dragging .nova-progress-knob {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.nova-progress-container.dragging .nova-progress-knob {
    transform: translate(-50%, -50%) scale(1.2);
}

/* مسح أي خطوط إضافية من المتصفح تسبب مشكلة الخط الأبيض */
.plyr__progress input[type="range"]::-webkit-slider-runnable-track { background: transparent !important; border: none !important; }
.plyr__progress input[type="range"]::-moz-range-track { background: transparent !important; border: none !important; }
.plyr__progress input[type="range"]::-ms-track { background: transparent !important; border: none !important; }

/* تصميم النقطة (Knob) */
.plyr__progress input[type=range]::-webkit-slider-thumb {
    width: 14px !important;
    height: 14px !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.35), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    margin-top: -4.5px !important;
    border-radius: 50% !important;
    -webkit-appearance: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    opacity: 0;
}
.plyr__progress__container:hover input[type=range]::-webkit-slider-thumb,
.plyr__progress.dragging input[type=range]::-webkit-slider-thumb {
    opacity: 1;
    margin-top: -5.5px !important;
}
.plyr__progress input[type=range]::-moz-range-thumb {
    width: 14px !important;
    height: 14px !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.35), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    opacity: 0;
}
.plyr__progress__container:hover input[type=range]::-moz-range-thumb,
.plyr__progress.dragging input[type=range]::-moz-range-thumb {
    opacity: 1;
}

/* إخفاء نظام التحكم القديم تماماً */
.nova-controls, .progress-area, .progress-track, .progress-fill, .progress-thumb {
    display: none !important;
}

.plyr__progress input[type=range]:hover::-webkit-slider-thumb {
    transform: scale(1.15);
    background: #f3f4f6 !important;
}

.plyr__progress input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.25);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.7) !important;
}

/* حذف أي تداخل من الكود القديم */
.nova-controls, .progress-area, .progress-track, .progress-fill, .progress-thumb {
    display: none !important;
}

.video-player-container .plyr--video .plyr__tooltip {
    background: rgba(109, 40, 217, 0.92) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 11px !important;
    padding: 3px 7px !important;
    border-radius: 5px !important;
}

/* ── Preview Tip (Netflix Style) — positioned over the new track ── */
.nova-progress-container {
    overflow: visible !important;
}
.nova-progress-track {
    overflow: visible !important;
}
.nova-preview-tip {
    position: absolute;
    bottom: 28px !important; /* فوق الخط مباشرة */
    left: 0;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 2147483647 !important;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.9));
    will-change: left, opacity;
}
.nova-preview-tip.show { opacity: 1; }
.nova-preview-tip::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(168,85,247,0.8);
}
.nova-preview-tip canvas {
  display: block;
  width: 180px; height: 101px;
  background: #000;
  border-radius: 8px;
  border: 2px solid rgba(168,85,247,0.6);
  box-shadow: inset 0 0 40px rgba(0,0,0,1);
}
.nova-preview-time {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.85);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
  border: 1px solid rgba(255,255,255,0.1);
}

.plyr__progress:hover .knob, .plyr__progress.dragging .knob { opacity: 1; }
.plyr__progress.dragging { height: 6px; }

/* ══════════════════════════════════════════
   SEEK BUTTONS — Special circular design
══════════════════════════════════════════ */
@keyframes nova-seek-click {
    0%   { box-shadow: 0 0 0 0 rgba(168,85,247,0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(168,85,247,0); }
    100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}

.nova-btn-row [data-plyr="rewind"],
.nova-btn-row [data-plyr="fast-forward"] {
    position: relative !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    flex-direction: column !important;
    gap: 1px !important;
    transition: transform 0.15s ease, filter 0.15s ease !important;
}

.nova-btn-row [data-plyr="rewind"]:hover,
.nova-btn-row [data-plyr="fast-forward"]:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.12) !important;
    filter: drop-shadow(0 0 8px rgba(168,85,247,0.6)) !important;
}

.nova-btn-row [data-plyr="rewind"]:active,
.nova-btn-row [data-plyr="fast-forward"]:active {
    transform: scale(0.92) !important;
    animation: nova-seek-click 0.5s ease-out !important;
}

.nova-btn-row [data-plyr="rewind"] svg,
.nova-btn-row [data-plyr="fast-forward"] svg {
    width: 36px !important;
    height: 36px !important;
    fill: none !important;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35)) !important;
}


/* Row 2: Buttons row — two-group layout (FORCED HORIZONTAL) */
.video-player-container .plyr--video .plyr__controls .nova-btn-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
}

/* Left group: all main controls (play, rewind, ff, time, mute, volume) */
.video-player-container .plyr--video .plyr__controls .nova-btn-row .nova-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
}

/* Spacer pushes right group to far right */
.video-player-container .plyr--video .plyr__controls .nova-btn-row .nova-spacer {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Right group: settings / pip / fullscreen */
.video-player-container .plyr--video .plyr__controls .nova-btn-row .nova-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
}

/* Each direct Plyr control inside the row stays inline */
.nova-btn-row .plyr__controls__item,
.nova-btn-row > div > * {
    flex: 0 0 auto !important;
}

/* Each control button — exclude seek buttons from general styles */
.nova-btn-row .plyr__control:not(.plyr__menu__container .plyr__control):not([data-plyr="rewind"]):not([data-plyr="fast-forward"]) {
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: transparent !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    flex-shrink: 0 !important;
}

.nova-btn-row .plyr__control:not(.plyr__menu__container .plyr__control):not([data-plyr="rewind"]):not([data-plyr="fast-forward"]):hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.08) !important;
}

.nova-btn-row .plyr__control:not(.plyr__menu__container .plyr__control):not([data-plyr="rewind"]):not([data-plyr="fast-forward"]):active {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(0.95) !important;
}

/* Volume container — always visible (mute button lives inside it) */
.nova-left .plyr__volume {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

/* Hide only the range slider by default */
.nova-left .plyr__volume input[type="range"] {
    width: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    transition: width 0.25s ease, opacity 0.2s ease !important;
    color: #a855f7 !important;
}

.nova-left .plyr__volume:hover input[type="range"] {
    width: 85px !important; /* Increased from 68px */
    opacity: 1 !important;
}

/* Time text — soft muted white */
.nova-left .plyr__time {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500 !important;
    font-size: 17.5px !important; /* 14px * 1.25 */
    padding: 0 8px !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
}

/* Icons — soft white default, full white on hover */
.video-player-container .plyr--video .plyr__control svg {
    fill: rgba(255, 255, 255, 0.65) !important;
    width: 25px !important; /* 20px * 1.25 */
    height: 25px !important;
    transition: fill 0.18s ease !important;
}

.video-player-container .plyr--video .plyr__control:hover svg {
    fill: rgba(255, 255, 255, 0.95) !important;
}

.video-player-container .plyr--playing .plyr__control[data-plyr="play"] svg {
    fill: rgba(255, 255, 255, 0.85) !important;
}

.video-player-container .plyr--video .plyr__control[data-plyr="settings"][aria-expanded="true"] svg {
    fill: #a78bfa !important;
}

/* ── Error State ── */
.nova-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    z-index: 600;
    gap: 16px;
    font-family: 'Inter', sans-serif;
}

.error-icon {
    font-size: 3rem;
}

.error-msg {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.retry-btn {
    background: #8a2be2;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: #a855f7;
}

/* ── Loader subtitle ── */
/* ── Loader subtitle override removed as it is now part of the main loader block ── */



/* ── Player Container ── */
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

/* Top gradient — covers back button + watermark area */
.video-player-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 28%;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.2) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.plyr--hide-controls .video-player-container::before { opacity: 0; }

/* ── iframe ── */
.video-player-container iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

/* ── UI Shields (block iframe controls) ── */
.ui-shield-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 13%;
    z-index: 20;
    background: transparent;
    pointer-events: all;
}

.ui-shield-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 13%;
    z-index: 20;
    background: transparent;
    pointer-events: all;
}

/* ── Watermark ── */
.player-watermark {
    position: absolute;
    top: 24px;
    left: 24px;
    font-weight: 900;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 300;
    user-select: none;
    letter-spacing: 1px;
}

.logo-plus {
    color: #a855f7;
    font-weight: 900;
}

/* ── Iframe Custom Controls ── */
.nova-iframe-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 0 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-player-container:hover .nova-iframe-controls {
    opacity: 1;
    pointer-events: all;
}

.nova-iframe-controls-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.nova-iframe-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-iframe-spacer {
    flex: 1;
}

.nova-iframe-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iframe-fullscreen-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
}

.iframe-fullscreen-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
}

/* ── Back Button ── */
.back-to-details {
    position: absolute;
    top: 22px !important;
    right: 22px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 0 20px;
    height: 44px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    letter-spacing: 0.2px;
}

.plyr--controls-open .back-to-details,
.video-player-container:not(.plyr--hide-controls) .back-to-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-details:hover {
    background: rgba(168,85,247,0.85) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45);
}

.plyr--hide-controls .back-to-details {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
}

/* ══════════════════════════════════════════
   NOVA+ CONTROL BAR
══════════════════════════════════════════ */
.nova-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 0 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.video-player-container:hover .nova-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ── Progress Bar ── */
.progress-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.time-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    min-width: 82px;
    letter-spacing: 0.3px;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s ease;
}

.progress-track:hover {
    height: 7px;
}

.progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 99px;
    pointer-events: none;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #a855f7;
    border-radius: 99px;
    pointer-events: none;
    width: 0%;
    transition: width 0.5s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid var(--player-primary);
    pointer-events: none;
    left: 0%;
    opacity: 0;
    transition: opacity 0.15s ease, left 0.5s linear;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

.progress-track:hover .progress-thumb {
    opacity: 1;
}

/* ── Bottom Controls Row ── */
.controls-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.controls-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

/* ── Control Buttons ── */
.ctrl-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--ctrl-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

.ctrl-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
    transform: scale(1.06);
}

.ctrl-btn.active {
    background: rgba(168, 85, 247, 0.35);
    border-color: var(--player-primary);
    color: var(--player-primary-hover);
}

/* icon-only buttons */
.ctrl-btn-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    padding: 0;
}

/* label buttons */
.ctrl-btn-label {
    height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
}

/* ── Volume Slider ── */
.volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width 0.25s ease;
    display: flex;
    align-items: center;
}

.volume-wrap:hover .volume-slider-wrap,
.volume-wrap:focus-within .volume-slider-wrap {
    width: 72px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 68px;
    height: 4px;
    border-radius: 99px;
    outline: none;
    cursor: pointer;
    background: #a855f7;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--player-primary);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}

/* ── Dropdown Panels ── */
.ctrl-dropdown-wrap {
    position: relative;
}

.ctrl-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    border-radius: var(--ctrl-radius);
    min-width: 150px;
    padding: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 85, 247, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

.ctrl-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(168, 85, 247, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ctrl-transition);
    user-select: none;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.18);
    color: #fff;
}

.dropdown-item.selected {
    background: rgba(168, 85, 247, 0.28);
    color: var(--player-primary-hover);
}

.dropdown-item.selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--player-primary);
}

/* ── Episode Navigation (integrated into controls) ── */
.player-navigation {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-player-container:hover .player-navigation {
    opacity: 1;
    pointer-events: all;
}

.nav-btn {
    background: rgba(10, 10, 10, 0.85);
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.5);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ctrl-transition);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.85rem;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.nav-btn:hover {
    background: var(--player-primary);
    border-color: var(--player-primary);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fullscreen Overrides */
.plyr--fullscreen-active .plyr__controls,
.plyr--fullscreen-active .nova-watermark,
.plyr--fullscreen-active .nova-episodes-btn,
.plyr--fullscreen-active .nova-episodes-panel {
    z-index: 2147483647 !important;
}

.plyr--fullscreen-active video,
.plyr--fullscreen-active .plyr__video-wrapper {
    z-index: 0 !important;
}

/* ══════════════════════════════════════════
   SETTINGS MENU — Glassmorphism Design
══════════════════════════════════════════ */
.plyr__menu__container {
    background: rgba(8, 6, 18, 0.45) !important;
    backdrop-filter: blur(32px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(109, 40, 217, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.06) !important;
    padding: 6px !important;
    color: #fff !important;
    min-width: 180px !important;
}

.plyr__menu__container > div {
    background: transparent !important;
}

/* Section divider */
.plyr__menu__container [role="menu"] {
    padding: 2px 0 !important;
}

/* Menu items */
.plyr__menu__container .plyr__control {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    text-align: right !important;
    width: 100% !important;
    letter-spacing: 0.1px !important;
}

.plyr__menu__container .plyr__control:hover {
    background: rgba(109, 40, 217, 0.22) !important;
    color: #fff !important;
}

.plyr__menu__container .plyr__control:active {
    background: rgba(109, 40, 217, 0.35) !important;
}

/* Forward arrow */
.plyr__menu__container .plyr__control--forward::after {
    border-left-color: rgba(255, 255, 255, 0.35) !important;
}

/* Back button */
.plyr__menu__container .plyr__control--back {
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px 10px 0 0 !important;
    margin-bottom: 4px !important;
    padding: 8px 14px 10px !important;
    background: transparent !important;
}

.plyr__menu__container .plyr__control--back::before {
    border-right-color: rgba(255, 255, 255, 0.35) !important;
}

/* Radio dot */
.plyr__menu__container .plyr__control[role="menuitemradio"]::before {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    width: 14px !important;
    height: 14px !important;
}

.plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::before {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
    box-shadow: 0 0 8px rgba(109, 40, 217, 0.6) !important;
}

.plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"] {
    color: #fff !important;
    background: rgba(109, 40, 217, 0.18) !important;
}

/* Value badge */
.plyr__menu__container .plyr__menu__value {
    background: rgba(109, 40, 217, 0.2) !important;
    color: rgba(196, 181, 253, 0.9) !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(109, 40, 217, 0.25) !important;
}


.nova-nav-prev,
.nova-nav-next {
    position: absolute;
    top: 20px;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Position them to the right of the episodes button (which is at left: 80px roughly) */
.nova-nav-prev {
    left: 130px;
}

.nova-nav-next {
    left: 180px;
}

.nova-nav-prev:hover,
.nova-nav-next:hover {
    background: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px) scale(1.06);
}

.nova-nav-prev:disabled,
.nova-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nova-nav-prev svg,
.nova-nav-next svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Adjust back button and episode button positions if needed */
.nova-back-btn {
    left: 20px !important;
}

/* Removed conflicting left position for episodes button - now in control bar */

/* In Fullscreen, ensure they are visible */
.plyr--fullscreen-active .nova-nav-prev,
.plyr--fullscreen-active .nova-nav-next,
.plyr--fullscreen-active .nova-episodes-btn,
.plyr--fullscreen-active .nova-back-btn {
    opacity: 0;
    visibility: hidden;
}

.plyr--hide-controls .nova-nav-prev,
.plyr--hide-controls .nova-nav-next,
.plyr--hide-controls .nova-episodes-btn,
.plyr--hide-controls .nova-back-btn {
    opacity: 0;
    visibility: hidden;
}

/* Show when controls are active */
.plyr--controls-open .nova-nav-prev,
.plyr--controls-open .nova-nav-next,
.plyr--controls-open .nova-episodes-btn,
.plyr--controls-open .nova-back-btn {
    opacity: 1;
    visibility: visible;
}

.nova-player-badge {
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    margin: 0 4px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 20px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.plyr--fullscreen-active .nova-player-badge {
    font-size: 13px;
    padding: 4px 10px;
    height: 24px;
}


/* -- Subtitle Sync Controls (Top Right) -- */
.nova-sub-sync {
    position: absolute;
    top: 22px;
    right: 120px;
    /* Leave space for back button if needed */
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(216, 180, 254, 0.25);
    border-radius: 10px;
    padding: 4px 12px;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.3s ease;
    gap: 8px;
}

.sync-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sync-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sync-btn:hover {
    background: #a855f7;
    transform: scale(1.1);
}

.sync-value {
    font-size: 14px;
    font-weight: 900;
    color: #d8b4fe;
    min-width: 45px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.plyr--hide-controls .nova-sub-sync {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nova-sub-sync {
        right: 80px;
        padding: 4px 8px;
    }

    .sync-label {
        display: none;
    }
}

/* -- TV & Large Screen (10-foot UI) -- */
@media (min-width: 1921px) {
    .video-modal {
        font-size: 1.25rem;
    }

    .nova-controls {
        padding: 0 40px 30px;
    }

    .ctrl-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    .time-label {
        font-size: 1.1rem;
        min-width: 120px;
    }

    .progress-track {
        height: 8px;
    }

    .progress-track:hover {
        height: 12px;
    }

    .nova-episodes-panel {
        width: 500px;
    }

    .ep-name {
        font-size: 1.1rem;
    }

    .back-to-details {
        top: 50px;
        right: 50px;
        padding: 15px 40px;
        font-size: 1.2rem;
    }
}

/* ── Subtitle Styling — Premium ── */
.plyr__captions {
    font-size: 22px !important;
    font-family: 'Inter', sans-serif !important;
    bottom: 90px !important;
    text-align: center !important;
    padding: 0 8% !important;
}

.plyr__caption {
    background: rgba(0, 0, 0, 0.72) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 5px 14px !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.95) !important;
    display: inline-block !important;
    letter-spacing: 0.15px !important;
    backdrop-filter: blur(4px) !important;
}

/* ── Nova Subtitle Settings Block (inside Plyr settings menu) ── */
.nova-sub-settings-block {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    padding-top: 8px;
}

.nova-sub-settings-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(168, 85, 247, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 2px 16px 6px;
}

.nova-sub-size-row,
.nova-sub-color-row,
.nova-sub-bg-row,
.nova-sub-offset-row {
    display: flex;
    align-items: center;
    padding: 4px 12px 4px 16px;
    gap: 6px;
}

.nova-sub-offset-row {
    flex-wrap: wrap;
    padding-bottom: 8px !important;
    border-top: 1px solid rgba(168, 85, 247, 0.08);
    margin-top: 4px;
    padding-top: 8px !important;
}
.nova-sub-offset-row .nova-sub-row-label {
    flex: 0 0 100%;
    margin-bottom: 4px;
    font-size: 12px;
    color: rgba(168, 85, 247, 0.85);
    font-weight: 700;
    text-align: right;
}
.nova-sub-offset-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    outline: 0;
    margin: 0 4px;
}
.nova-sub-offset-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}
.nova-sub-offset-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    border: 0;
}
.nova-sub-offset-val {
    font-size: 12px;
    font-weight: 700;
    color: #c084fc;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-align: center;
    direction: ltr;
}
.nova-sub-offset-mini, .nova-sub-offset-reset {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
    width: 26px; height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.nova-sub-offset-mini:hover, .nova-sub-offset-reset:hover {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
}

.nova-sub-row-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    text-align: right;
    direction: rtl;
}

.nova-sub-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    transition: all 0.18s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    height: 28px;
    display: flex;
    align-items: center;
}

.nova-sub-btn:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #fff !important;
}

.nova-sub-btn.active {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: #a855f7 !important;
    color: #d8b4fe !important;
}

.nova-sub-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.nova-sub-color-dot:hover,
.nova-sub-color-dot.active {
    border-color: #a855f7;
    transform: scale(1.15);
}

/* -- Mobile Player Adjustments -- */
@media (max-width: 768px) {
    .nova-controls {
        padding: 0 10px 10px;
    }

    .ctrl-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .time-label {
        font-size: 0.65rem;
        min-width: 65px;
    }

    .back-to-details {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .nova-episodes-panel {
        width: 280px;
        max-width: 85%;
        border-radius: 12px 0 0 12px;
    }
}

/* ══════════════════════════════════════════════════
   NOVA+ AUTOPLAY OVERLAY — Small Version (Bottom-Right)
   Netflix/Prime-style next episode countdown
══════════════════════════════════════════════════ */
@keyframes nova-countdown-stroke {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 283; }
}

@keyframes nova-autoplay-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nova-autoplay-overlay.small-version {
    position: absolute;
    bottom: 96px;
    right: 24px;
    z-index: 9000;
    animation: nova-autoplay-enter 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.nova-autoplay-overlay.small-version.fade-out {
    animation: none;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nova-autoplay-overlay.small-version .autoplay-content {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 16px;
    padding: 14px 18px 14px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(168, 85, 247, 0.08);
}

/* Text labels */
.nova-autoplay-overlay.small-version .autoplay-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
    margin-bottom: 3px;
}

.nova-autoplay-overlay.small-version .autoplay-info {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* Text wrapper column */
.nova-autoplay-overlay.small-version .autoplay-content > div:first-child + div {
    display: flex;
    flex-direction: column;
}

/* Circular SVG countdown */
.nova-autoplay-overlay.small-version .autoplay-timer {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.nova-autoplay-overlay.small-version .timer-svg {
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}

.nova-autoplay-overlay.small-version .timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 5;
}

.nova-autoplay-overlay.small-version .timer-bar {
    fill: none;
    stroke: #a855f7;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.7));
}

.nova-autoplay-overlay.small-version .timer-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* Play now button */
.nova-autoplay-overlay.small-version .autoplay-btn.play-now {
    background: #a855f7;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
    flex-shrink: 0;
}

.nova-autoplay-overlay.small-version .autoplay-btn.play-now:hover {
    background: #c084fc;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.nova-autoplay-overlay.small-version .autoplay-btn.play-now:active {
    transform: scale(0.97);
}

/* ══════════════════════════════════════════════════
   NOVA+ SKIP INTRO BUTTON
══════════════════════════════════════════════════ */
.nova-skip-intro {
    position: absolute;
    bottom: 96px;
    left: 24px;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9000;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    animation: nova-autoplay-enter 0.3s ease forwards;
}

.nova-skip-intro:hover {
    background: #a855f7;
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}