/* 9AnimeHD (Otaku Sphere Aesthetic) - Pixel-Perfect Rose-Obsidian Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
    --bg-dark: #07070a;
    --bg-surface: #0e0d12;
    --bg-card: #14131a;
    --color-pink: #ff2a6d;
    --color-rose: #f43f5e;
    --color-rose-glow: rgba(255, 42, 109, 0.45);
    --color-gold: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #07070a;
}
::-webkit-scrollbar-thumb {
    background: #23222b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-pink);
}

/* Ambient Rose Aura inside Hero Card */
.ambient-rose-glow {
    position: absolute;
    bottom: -30px;
    right: 5%;
    width: 65%;
    height: 240px;
    background: radial-gradient(ellipse at center, rgba(255, 42, 109, 0.28) 0%, rgba(244, 63, 94, 0.15) 45%, transparent 75%);
    filter: blur(45px);
    pointer-events: none;
    z-index: 10;
}

/* ========================================================
   Next-Gen Header & Pill Navigation System (Otaku Spec)
   ======================================================== */
.site-header {
    background: rgba(10, 9, 16, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}
.site-header-glow-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 5%, #ff2a6d 35%, #8b5cf6 70%, transparent 95%);
    pointer-events: none;
    opacity: 0.9;
}

/* Floating Navigation Pill Dock */
.header-nav-dock {
    display: inline-flex;
    align-items: center;
    background: rgba(19, 17, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 3.5px 5px;
    gap: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    white-space: nowrap;
}
.nav-pill-link:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}
.nav-pill-link.active {
    background: #5a4bda !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 14px rgba(90, 75, 218, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.02);
}

.mobile-nav-pill-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}
.mobile-nav-pill-link:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.mobile-nav-pill-link.active {
    background: #5a4bda !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(90, 75, 218, 0.4) !important;
    font-weight: 800 !important;
}

/* Header Quick Search Pill */
.header-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6.5px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.header-search-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 42, 109, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
}

/* Header Watchlist CTA Pill */
.header-watchlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6.5px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(255, 42, 109, 0.4);
    color: #ff2a6d;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(255, 42, 109, 0.15);
}
.header-watchlist-btn:hover {
    background: linear-gradient(135deg, #ff2a6d 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(255, 42, 109, 0.45);
    transform: translateY(-1px);
}
.header-watchlist-btn:hover #watchlist-count-badge {
    background: #ffffff;
    color: #13111b;
}

/* Brand Initial Circled Logo */
.brand-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--color-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-pink);
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 14px var(--color-rose-glow);
    transition: transform 0.25s ease;
}
.brand-icon-circle:hover {
    transform: scale(1.05);
}

/* Pill CTA Buttons */
.btn-watch-now {
    background: linear-gradient(135deg, #ff2a6d 0%, #e11d48 100%);
    box-shadow: 0 8px 24px -4px rgba(255, 42, 109, 0.55);
    transition: all 0.25s ease;
}
.btn-watch-now:hover {
    background: linear-gradient(135deg, #ff437e 0%, #f43f5e 100%);
    box-shadow: 0 12px 30px -2px rgba(255, 42, 109, 0.75);
    transform: translateY(-2px) scale(1.02);
}

.btn-join-now {
    border: 1px solid rgba(255, 42, 109, 0.6);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.15);
    transition: all 0.25s ease;
}
.btn-join-now:hover {
    background: rgba(255, 42, 109, 0.15);
    border-color: #ff2a6d;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.4);
}

/* Translucent Genre Pills */
.genre-pill-translucent {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 42, 109, 0.25);
    color: #e5e7eb;
    transition: all 0.2s ease;
}
.genre-pill-translucent:hover {
    background: rgba(255, 42, 109, 0.15);
    border-color: rgba(255, 42, 109, 0.6);
    color: #ffffff;
}

/* Top Picks Cards & Desktop Guaranteed Responsive 6-Col Grid */
.desktop-top-hits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
@media (min-width: 640px) {
    .desktop-top-hits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}
@media (min-width: 768px) {
    .desktop-top-hits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}
@media (min-width: 1024px) {
    .desktop-top-hits-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

.top-pick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-pick-card:hover {
    transform: translateY(-4px);
}
.card-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 2.95;
    border-radius: 16px;
    overflow: hidden;
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
    display: block;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.top-pick-card:hover .card-poster-wrapper {
    border-color: rgba(255, 42, 109, 0.65);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 42, 109, 0.3);
}
.top-pick-rank {
    position: absolute;
    bottom: 2px;
    left: 8px;
    z-index: 20;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 900;
    font-size: 2.3rem;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 0, 0, 0.85);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-pick-card:hover .top-pick-rank {
    color: #ff2a6d;
    -webkit-text-stroke: 1.5px #ff2a6d;
    text-shadow: 0 0 20px rgba(255, 42, 109, 0.85), 0 3px 10px rgba(0, 0, 0, 0.95);
    transform: scale(1.1) translateY(-2px);
}

/* Star Rating Colors */
.star-pink {
    color: #ff2a6d;
}
.star-hollow {
    color: rgba(255, 42, 109, 0.35);
}

/* Toast Notification */
#app-toast {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 9999px;
    background: rgba(14, 13, 18, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 42, 109, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 42, 109, 0.25);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Line Clamps */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================================
   9AnimeHD Custom ArtPlayer 5.x Theme (Rose-Obsidian Signature)
   ======================================================== */
.art-video-player {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
}

/* Scrubbing Progress Bar in Signature Hot Rose */
.art-video-player .art-control-progress-played {
    background: linear-gradient(90deg, #ff2a6d 0%, #f43f5e 100%) !important;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.7) !important;
}

.art-video-player .art-control-progress-indicator {
    background: #ff2a6d !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 42, 109, 0.9) !important;
}

/* Volume Slider in Signature Pink */
.art-video-player .art-control-volume-slider-played {
    background: #ff2a6d !important;
}
.art-video-player .art-control-volume-slider-handle {
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.8) !important;
}

/* Next-Level Futuristic Dual-Ring Neon Cyberpunk Spinner (Zero Clutter) */
.stream-neon-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stream-neon-spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid rgba(255, 42, 109, 0.12);
    border-top-color: #ff2a6d;
    border-right-color: #f43f5e;
    animation: neon-spin 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 16px rgba(255, 42, 109, 0.65));
}
.stream-neon-spinner::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2.5px solid rgba(168, 85, 247, 0.12);
    border-bottom-color: #a855f7;
    border-left-color: #ec4899;
    animation: neon-spin-reverse 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.55));
}
.stream-neon-spinner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px #ff2a6d, 0 0 24px #ff2a6d, 0 0 36px #f43f5e;
    animation: neon-pulse 1.1s ease-in-out infinite alternate;
}
@keyframes neon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes neon-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes neon-pulse {
    from { transform: scale(0.7); opacity: 0.6; }
    to { transform: scale(1.3); opacity: 1; }
}

/* Hide ArtPlayer state play button when stage is loading to eliminate flash */
#video-stage.is-loading .art-state {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.85) !important;
}

/* Center Big Play Button (Paused State - Modern Frosted Neon Capsule) */
.art-video-player .art-state {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    background: rgba(14, 13, 22, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(255, 42, 109, 0.55) !important;
    box-shadow: 0 0 30px rgba(255, 42, 109, 0.45), inset 0 0 15px rgba(255, 42, 109, 0.2) !important;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}
.art-video-player .art-state:hover, .art-video-player .art-state:active {
    transform: scale(1.1) !important;
    border-color: #ff2a6d !important;
    box-shadow: 0 0 45px rgba(255, 42, 109, 0.8), inset 0 0 20px rgba(255, 42, 109, 0.4) !important;
}
.art-video-player .art-state svg, .art-video-player .art-state i {
    fill: #ffffff !important;
    color: #ffffff !important;
    width: 26px !important;
    height: 26px !important;
    margin-left: 3px !important;
}

/* Unified ArtPlayer Buffering Backdrop */
.art-video-player .art-loading {
    background: rgba(7, 7, 10, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
.art-video-player .art-loading .art-icon-loading {
    display: none !important;
}

/* Settings Panels & Popups */
.art-video-player .art-setting-panel {
    background: rgba(14, 13, 18, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 42, 109, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}
.art-video-player .art-setting-item.art-current,
.art-video-player .art-setting-item:hover {
    background: rgba(255, 42, 109, 0.15) !important;
    color: #ff2a6d !important;
}

/* Context Menu */
.art-video-player .art-contextmenu {
    background: rgba(14, 13, 18, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}
.art-video-player .art-contextmenu-item:hover {
    background: rgba(255, 42, 109, 0.2) !important;
    color: #ff2a6d !important;
}

/* Bottom Controls Bar Backdrop */
.art-video-player .art-bottom {
    background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 10, 0.95) 100%) !important;
}

/* Ambient Backlight Glow behind Player */
.player-ambient-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(ellipse at center, rgba(255, 42, 109, 0.25) 0%, rgba(225, 29, 72, 0.1) 40%, transparent 70%);
    filter: blur(35px);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Smart Watermark Shield (Blocks 3rd-Party Watermarks like HiAnime / Zoro) */
.watermark-shield {
    position: absolute;
    z-index: 25;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.watermark-shield.pos-top-right {
    top: 14px;
    right: 16px;
    left: auto;
}
.watermark-shield.pos-top-left {
    top: 14px;
    left: 16px;
    right: auto;
}
.watermark-shield.shield-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.92) !important;
}

/* Fullscreen Stage Adaptation with Persistent Watermark Shield */
#video-stage:fullscreen,
#video-stage:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #000 !important;
}
#video-stage:fullscreen .watermark-shield.pos-top-right,
#video-stage:-webkit-full-screen .watermark-shield.pos-top-right {
    top: 24px;
    right: 28px;
    transform: scale(1.15);
}
#video-stage:fullscreen .watermark-shield.pos-top-left,
#video-stage:-webkit-full-screen .watermark-shield.pos-top-left {
    top: 24px;
    left: 28px;
    transform: scale(1.15);
}

/* Cinema Lights Off Dimmer Overlay */
#lights-off-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 45;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}
#lights-off-overlay.active {
    opacity: 1;
}
.lights-off-stage {
    position: relative;
    z-index: 50 !important;
}

/* A-Z Alphabetical Navigation Bar & Next-Gen Anime Footer */
.site-footer-wrapper {
    position: relative;
    background-color: #07060b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.site-footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.6), transparent);
}
.site-footer-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    background-image: url('/static/images/footer-bg.jpg');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.38;
    pointer-events: none;
    mix-blend-mode: lighten;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.6) 35%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.6) 35%, black 100%);
}
@media (max-width: 768px) {
    .site-footer-bg {
        width: 100%;
        opacity: 0.15;
    }
}

.letter-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.letter-nav-btn:hover {
    color: #ffffff;
    background: #ff2a6d;
    border-color: #ff2a6d;
    box-shadow: 0 4px 14px rgba(255, 42, 109, 0.4);
    transform: translateY(-1.5px);
}
.letter-nav-btn.active {
    color: #ffffff;
    background: #ff2a6d;
    border-color: #ff2a6d;
    box-shadow: 0 4px 16px rgba(255, 42, 109, 0.5);
}

/* Estimated Schedule Card Component */
.sched-card-container {
    background: linear-gradient(180deg, #13111a 0%, #0c0b10 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}
.sched-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.4), transparent);
    z-index: 1;
}
.sched-card-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-image: url('/static/images/footer-bg.jpg');
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: lighten;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 40%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 40%, black 100%);
    z-index: 0;
}
.sched-day-tab {
    transition: all 0.2s ease;
}
.sched-day-tab.active-sched-day {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.sched-day-tab.active-sched-day span.sched-indicator {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.sched-day-tab:hover:not(.active-sched-day) {
    background: rgba(255, 255, 255, 0.04);
}
.sched-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}
.sched-row:hover {
    background: rgba(255, 42, 109, 0.04);
}
.sched-row:last-child {
    border-bottom: none;
}

/* Top Anime Sidebar Widget (Exact Otaku / Aniwave Spec) */
.top-anime-tab {
    padding: 4px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1.4;
}
.top-anime-tab:hover {
    color: #ffffff;
}
.top-anime-tab.active {
    background: #5a4bda !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(90, 75, 218, 0.4) !important;
}

.top-anime-item {
    background: #14131b !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}
.top-anime-item:hover {
    background: #1a1924 !important;
    border-color: rgba(255, 42, 109, 0.4) !important;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
.top-anime-item.rank-item-1 {
    border: 1px solid rgba(139, 92, 246, 0.7) !important;
    border-right: 3.5px solid #8b5cf6 !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15) !important;
}
.top-anime-item.rank-item-2 {
    border: 1px solid rgba(255, 42, 109, 0.7) !important;
    border-right: 3.5px solid #ff2a6d !important;
    box-shadow: 0 4px 16px rgba(255, 42, 109, 0.15) !important;
}
.top-anime-item.rank-item-3 {
    border: 1px solid rgba(245, 158, 11, 0.7) !important;
    border-right: 3.5px solid #f59e0b !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15) !important;
}

.rank-num-box {
    width: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-num {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    text-align: center;
    user-select: none;
    letter-spacing: -1px;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.rank-num-1 {
    -webkit-text-stroke: 1.8px #8b5cf6;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}
.rank-num-2 {
    -webkit-text-stroke: 1.8px #ff2a6d;
    filter: drop-shadow(0 0 6px rgba(255, 42, 109, 0.4));
}
.rank-num-3 {
    -webkit-text-stroke: 1.8px #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}
.rank-num-other {
    -webkit-text-stroke: 1.5px #475569;
}

/* ========================================================
   Next-Gen Anime Details Page (Flagship Otaku Experience)
   ======================================================== */

/* Cinematic Hero Backdrop */
.anime-details-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #0d0c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
}
.anime-details-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.anime-details-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(0.22) saturate(1.4);
    transform: scale(1.15);
}
.anime-details-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 42, 109, 0.18), transparent 60%),
                linear-gradient(to top, #0d0c14 12%, rgba(13, 12, 20, 0.85) 60%, rgba(13, 12, 20, 0.5) 100%);
}

/* Floating Poster 3D Glow */
.anime-poster-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85),
                0 0 35px rgba(255, 42, 109, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.anime-poster-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.9),
                0 0 45px rgba(255, 42, 109, 0.4);
    border-color: rgba(255, 42, 109, 0.6);
}

/* Stream CTA Button with Vibrant Pulse Glow */
.btn-stream-hero {
    background: linear-gradient(135deg, #ff2a6d 0%, #a855f7 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255, 42, 109, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-stream-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 42, 109, 0.65);
    filter: brightness(1.1);
    color: #ffffff;
}

/* Secondary Action Buttons */
.btn-action-hero {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 11px 20px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-action-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-action-hero.active {
    background: rgba(255, 42, 109, 0.2);
    border-color: #ff2a6d;
    color: #ff2a6d;
}

/* Otaku Sidebar Facts Card */
.anime-meta-card {
    background: #111018;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Movie Feature Film Card */
.movie-feature-card {
    background: linear-gradient(135deg, rgba(20, 19, 28, 0.95) 0%, rgba(14, 13, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.movie-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.4), transparent);
}
.movie-feature-card:hover {
    border-color: rgba(255, 42, 109, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 42, 109, 0.15);
}

/* Episode Grid Buttons (Pixel-Perfect Zoro / Aniwave) */
.ep-pill-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #14131c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 6px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.ep-pill-btn:hover {
    background: #ff2a6d;
    border-color: #ff2a6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 42, 109, 0.45);
}
.ep-pill-btn:hover .ep-pill-num,
.ep-pill-btn:hover .ep-pill-prefix {
    color: #ffffff !important;
}
.ep-pill-prefix {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #64748b;
    line-height: 1;
    margin-bottom: 2px;
}
.ep-pill-num {
    font-size: 13.5px;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
}

/* Character & Voice Cast Dual Card */
.character-dual-card {
    background: #121119;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s ease;
}
.character-dual-card:hover {
    background: #191822;
    border-color: rgba(255, 42, 109, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Flagship Interactive Search Modal */
.search-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.search-modal-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.search-modal-card {
    transform: scale(0.96) translateY(-12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 42, 109, 0.15);
}
.search-modal-wrapper.active .search-modal-card {
    transform: scale(1) translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.search-result-item:hover,
.search-result-item.keyboard-selected {
    background: rgba(255, 42, 109, 0.09) !important;
    border-color: rgba(255, 42, 109, 0.45) !important;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.search-result-item:hover .search-item-title,
.search-result-item.keyboard-selected .search-item-title {
    color: #ff2a6d !important;
}
.search-result-item:hover .search-item-arrow,
.search-result-item.keyboard-selected .search-item-arrow {
    color: #ffffff !important;
    background: #ff2a6d !important;
    transform: scale(1.05);
}

.search-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #d1d5db;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-chip-btn:hover {
    background: rgba(255, 42, 109, 0.15);
    border-color: rgba(255, 42, 109, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 42, 109, 0.2);
}

/* Dynamic Hero Spotlight Carousel */
.hero-carousel-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background-color: #0c0b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95);
    min-height: 460px;
    user-select: none;
}
@media (min-width: 640px) {
    .hero-carousel-container {
        min-height: 500px;
    }
}
@media (min-width: 1024px) {
    .hero-carousel-container {
        min-height: 520px;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
    z-index: 0;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
    z-index: 10 !important;
}

/* Bottom Progress Bar that fills dynamically */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2a6d, #9333ea, #5a4bda);
    width: 0%;
    z-index: 40;
    box-shadow: 0 0 12px rgba(255, 42, 109, 0.7);
    transition: width 0.05s linear;
}

.hero-dot-btn {
    height: 8px;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}
.hero-dot-btn.active {
    width: 28px !important;
    background: #ff2a6d !important;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.6) !important;
}
.hero-dot-btn:not(.active) {
    width: 8px;
    background: rgba(255, 255, 255, 0.25);
}
.hero-dot-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ========================================================
   Flagship Floating Glassmorphic App Dock (Level Ka Design)
   ======================================================== */
.mobile-floating-dock {
    position: fixed;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    right: 0.75rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    z-index: 45;
    height: 64px;
    background: rgba(14, 12, 22, 0.78);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: 
        0 16px 45px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(255, 42, 109, 0.14),
        inset 0 1px 1px rgba(255, 255, 255, 0.22);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 6px;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-floating-dock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events-none;
    border-radius: 9999px;
}

.mobile-floating-dock::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.5), transparent);
    pointer-events-none;
}

.mobile-bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #8b889e;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 20px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-tab:active {
    transform: scale(0.88);
}

.mobile-bottom-tab .tab-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    border-radius: 14px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-tab svg {
    width: 20px;
    height: 20px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-tab .tab-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    color: #7b7891;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Active Tab Floating Magic */
.mobile-bottom-tab.active {
    color: #ff2a6d;
}

.mobile-bottom-tab.active .tab-icon-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: translateY(-2px);
}

.mobile-bottom-tab.active svg {
    color: #ff2a6d;
    filter: drop-shadow(0 0 8px rgba(255, 42, 109, 0.75));
    transform: scale(1.1);
}

.mobile-bottom-tab.active .tab-label {
    color: #ff2a6d;
    font-weight: 800;
}

.mobile-bottom-tab .tab-active-dot {
    position: absolute;
    bottom: -3px;
    width: 0;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #ff2a6d, #ff5e8a);
    box-shadow: 0 0 8px #ff2a6d;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-tab.active .tab-active-dot {
    width: 14px;
    opacity: 1;
}

/* Netflix-Style Top 10 Giant Rank Number on Poster Cards */
.mobile-rank-number {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.85);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
    user-select: none;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1024px) {
    .mobile-rank-number {
        font-size: 2.6rem;
        -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.3);
    }
}
.top-pick-card:hover .mobile-rank-number {
    color: #ff2a6d;
    text-shadow: 0 0 20px rgba(255, 42, 109, 0.75), 0 4px 14px rgba(0, 0, 0, 0.95);
    transform: scale(1.08) translateY(-2px);
}

/* App Touch Scroll Containers */
.app-touch-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    padding-top: 4px;
}
.app-touch-carousel::-webkit-scrollbar {
    display: none;
}
.app-touch-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.app-touch-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ========================================================
   Native Mobile App Bottom Sheets & Modals (Next-Gen UI/UX)
   ======================================================== */
.mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.mobile-sheet-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 88vh;
    background: #0d0c15;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.9);
    z-index: 70;
    transform: translateY(102%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-sheet.active {
    transform: translateY(0%) !important;
}

/* Drag Handle Pill */
.sheet-drag-handle {
    width: 38px;
    height: 4.5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    margin: 10px auto 4px;
    flex-shrink: 0;
}

/* Filter Pill Tags (Reference Match: Green/Pink Active Glow) */
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.filter-pill:active {
    transform: scale(0.95);
}
.filter-pill.active {
    background: linear-gradient(135deg, #ff2a6d 0%, #e11d48 100%) !important;
    border-color: #ff2a6d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 42, 109, 0.35);
}

/* Social Share Circle Buttons (Reference Screen 2/3) */
.share-icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.share-icon-btn:active {
    transform: scale(0.92);
}

/* Star Rating Animation */
.rate-star-interactive {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
    cursor: pointer;
}
.rate-star-interactive:active {
    transform: scale(1.3);
}

/* Mobile Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Episode Slide-Over Drawer (Zero Flash on SPA Navigation) */
#mobile-ep-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 20rem;
    max-width: 88vw;
    background-color: #0c0b12;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

#mobile-ep-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Core Video Stage Styles (Always Pre-Rendered, Prevents Unstyled Layout) */
#player-container-wrapper {
    width: 100%;
}

#video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

#artplayer-app {
    width: 100%;
    height: 100%;
}

#fallback-iframe {
    width: 100%;
    height: 100%;
}

/* Core SVG & Structural Safety Protection (Prevents SVG blowout) */
svg {
    max-width: 100%;
}
.w-3\.5, svg.w-3\.5 { width: 0.875rem !important; }
.w-4, svg.w-4 { width: 1rem !important; }
.w-5, svg.w-5 { width: 1.25rem !important; }
.w-6, svg.w-6 { width: 1.5rem !important; }
.w-8, svg.w-8 { width: 2rem !important; }
.w-9, svg.w-9 { width: 2.25rem !important; }
.h-3\.5, svg.h-3\.5 { height: 0.875rem !important; }
.h-4, svg.h-4 { height: 1rem !important; }
.h-5, svg.h-5 { height: 1.25rem !important; }
.h-6, svg.h-6 { height: 1.5rem !important; }
.h-8, svg.h-8 { height: 2rem !important; }
.h-9, svg.h-9 { height: 2.25rem !important; }

/* Structural Visibility Fallbacks */
.hidden { display: none !important; }
@media (max-width: 1023px) {
    .site-header { display: none !important; }
    #desktop-episode-sidebar { display: none !important; }
    .hidden.lg\:flex, .hidden.lg\:block, .hidden.lg\:grid { display: none !important; }
    /* Suppress mini / PIP floating window on mobile */
    .art-video-player.art-mini,
    .art-mini { display: none !important; }
}
@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:flex { display: flex !important; }
    .lg\:block { display: block !important; }
    .lg\:grid { display: grid !important; }
}

/* ========================================================
   NEXT-LEVEL VIDEO PLAYER HUD & GESTURES
   ======================================================== */

/* Video Stage Pure Dark Backdrop & Smooth Presentation */
#video-stage {
    background-color: #000000 !important;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}
#artplayer-app {
    background-color: #000000 !important;
}
.art-video-player {
    background-color: #000000 !important;
}

/* Central HUD Notification Pill (Volume, Seek, Speed, Mute) */
.player-hud-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(9, 8, 16, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 42, 109, 0.4);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 42, 109, 0.35);
    z-index: 45;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}
.player-hud-toast.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Floating Turbo 2X Speed HUD Pill */
.player-speed-pill {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #ff2a6d 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(255, 42, 109, 0.65), 0 0 12px rgba(255, 42, 109, 0.4);
    z-index: 45;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.player-speed-pill.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Double-Tap Ripple Overlay */
.seek-ripple-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.45) 0%, rgba(255, 42, 109, 0) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.seek-ripple-badge.left {
    left: 12%;
}
.seek-ripple-badge.right {
    right: 12%;
}
.seek-ripple-badge.active {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

/* Smart Resume Toast */
.player-resume-toast {
    position: absolute;
    bottom: 64px;
    left: 20px;
    z-index: 42;
    background: rgba(14, 12, 22, 0.95);
    border: 1px solid rgba(255, 42, 109, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 42, 109, 0.25);
    border-radius: 14px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #ffffff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-resume-toast button {
    cursor: pointer;
    background: rgba(255, 42, 109, 0.25);
    color: #ff2a6d;
    border: 1px solid rgba(255, 42, 109, 0.5);
    border-radius: 8px;
    padding: 3px 10px;
    font-weight: 800;
    font-size: 11px;
    transition: all 0.2s;
}
.player-resume-toast button:hover {
    background: #ff2a6d;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 42, 109, 0.5);
}

/* Auto-Next Episode Overlay */
.player-autonext-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 45;
    background: rgba(14, 12, 22, 0.96);
    border: 1px solid rgba(255, 42, 109, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92), 0 0 25px rgba(255, 42, 109, 0.3);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    color: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}






/* ========================================================
   GOOGLE SHAKA PLAYER - ENTERPRISE CYBERPUNK PINK UI (#ff2a6d)
   ======================================================== */

.shaka-video-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    background-color: #000000 !important;
}

.shaka-video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000000 !important;
}

/* Bottom Controls Gradient Bar */
.shaka-controls-container {
    background: linear-gradient(to top, rgba(7, 7, 10, 0.95) 0%, rgba(7, 7, 10, 0.4) 65%, transparent 100%) !important;
    padding-bottom: 8px !important;
}

/* Cyberpunk Neon Seekbar */
.shaka-seek-bar-container {
    height: 6px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: height 0.2s ease !important;
}
.shaka-controls-container:hover .shaka-seek-bar-container {
    height: 8px !important;
}

.shaka-seek-bar-played {
    background: #ff2a6d !important;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.7) !important;
    border-radius: 9999px !important;
}

.shaka-seek-bar-buffered {
    background: rgba(255, 42, 109, 0.3) !important;
    border-radius: 9999px !important;
}

/* Volume Bar Pink */
.shaka-volume-bar-played {
    background: #ff2a6d !important;
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.5) !important;
    border-radius: 9999px !important;
}

/* Time & Duration Text */
.shaka-current-time {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #e5e7eb !important;
    letter-spacing: 0.02em !important;
}

/* Buttons Hover Glow */
.shaka-bottom-controls button {
    color: #ffffff !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}
.shaka-bottom-controls button:hover {
    color: #ff2a6d !important;
    transform: scale(1.1) !important;
}

/* Settings, Quality & Audio Language Glassmorphic Menu */
.shaka-overflow-menu,
.shaka-settings-menu,
.shaka-resolutions,
.shaka-audio-languages {
    background: rgba(9, 8, 16, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 42, 109, 0.3) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 42, 109, 0.25) !important;
    padding: 8px 6px !important;
    color: #ffffff !important;
}

.shaka-overflow-menu button,
.shaka-settings-menu button {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    color: #d1d5db !important;
}

.shaka-overflow-menu button:hover,
.shaka-settings-menu button:hover {
    background: rgba(255, 42, 109, 0.15) !important;
    color: #ff2a6d !important;
}

.shaka-overflow-menu button[aria-selected="true"],
.shaka-settings-menu button[aria-selected="true"] {
    color: #ff2a6d !important;
    font-weight: 800 !important;
    background: rgba(255, 42, 109, 0.12) !important;
}

/* Spinner Glow */
.shaka-spinner-path {
    stroke: #ff2a6d !important;
    filter: drop-shadow(0 0 8px rgba(255, 42, 109, 0.8)) !important;
}
