:root {
            --bg-color: #141414;
            --panel-bg: #1f1f1f;
            --accent: #e50914;
            --text-main: #ffffff;
            --text-sub: #b3b3b3;
            --border: rgba(255, 255, 255, 0.1);
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            min-height: 100vh;
            padding-bottom: 60px;
            overflow-x: hidden;
        }

        /* 屏蔽 DPlayer 提示 */
        .dplayer-notice,
        .dplayer-notice-list {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        /* 全局滚动条 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #141414;
        }

        ::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* 导航 */
        .navbar-custom {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 15px 4%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
            transition: 0.3s;
        }

        .navbar-custom.scrolled {
            background: #141414;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        }

        .brand {
            font-size: 26px;
            font-weight: 800;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        }

        /* Hero */
        .carousel-item {
            height: 70vh;
            background-color: #000;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center top;
            transition: transform 10s ease;
            mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
            -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        }

        .carousel-item.active .hero-bg {
            transform: scale(1.05);
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, #141414 0%, transparent 60%), linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
            display: flex;
            align-items: center;
            padding-left: 5%;
        }

        .hero-content {
            max-width: 600px;
            margin-top: 60px;
            animation: fadeInUp 0.8s;
        }

        .hero-tag {
            background: rgba(255, 255, 255, 0.2);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 15px;
            backdrop-filter: blur(5px);
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 15px;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
        }

        .hero-desc {
            font-size: 1.1rem;
            color: #ddd;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            margin-bottom: 25px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .btn-play {
            background: #fff;
            color: #000;
            border: none;
            padding: 10px 30px;
            font-size: 1.2rem;
            font-weight: 700;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: 0.2s;
        }

        .btn-play:hover {
            transform: scale(1.05);
        }

        .btn-info {
            background: rgba(109, 109, 110, 0.7);
            color: #fff;
            border: none;
            padding: 10px 30px;
            font-size: 1.2rem;
            font-weight: 700;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: 0.2s;
            backdrop-filter: blur(5px);
        }

        .btn-info:hover {
            background: rgba(109, 109, 110, 0.5);
        }

        @media(max-width: 768px) {
            .carousel-item {
                height: 55vh;
            }

            .hero-title {
                font-size: 2.2rem;
            }

            .btn-play,
            .btn-info {
                padding: 8px 20px;
                font-size: 1rem;
            }
        }

        /* 搜索框 */
        .search-section {
            position: sticky;
            top: 10px;
            /* 吸顶时位于 Navbar 内部 */
            margin-top: -35px;
            z-index: 1001;
            /* 高于 Navbar */
            padding: 0 4%;
            /* 对齐 Navbar Padding */
            margin-bottom: 30px;
            pointer-events: none;
        }

        .search-box-wrapper {
            pointer-events: auto;
            background: rgba(20, 20, 20, 0.95);
            /* 加深背景，防止透视干扰 */
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            border-radius: 50px;
            /* 更圆润 */
            display: flex;
            align-items: center;
            transition: 0.3s;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            width: 100%;
            /* 撑满 */
            max-width: none;
            margin: 0 auto;
        }

        .search-box-wrapper.compact {
            max-width: 280px;
            height: 40px;
            margin-right: 0;
            /* 右对齐 */
            margin-left: auto;
            background: rgba(40, 40, 40, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .search-box-wrapper.compact .search-input {
            height: 40px;
            font-size: 14px;
        }

        .search-box-wrapper.compact .search-icon {
            font-size: 14px;
            padding: 0 12px;
        }

        .btn-top {
            position: fixed;
            bottom: 40px;
            right: 40px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #e50914, #b20710);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
            cursor: pointer;
            z-index: 1000;
            border: none;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
        }

        .btn-top.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .btn-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 15px 30px rgba(229, 9, 20, 0.5);
        }



        .search-box-wrapper:focus-within {
            border-color: var(--accent);
            background: #000;
        }

        .search-icon {
            padding: 0 20px;
            color: #888;
            font-size: 18px;
            cursor: pointer;
        }

        .search-input {
            width: 100%;
            height: 60px;
            background: transparent;
            border: none;
            color: #fff;
            font-size: 18px;
            outline: none;
        }

        /* 分类导航栏 */
        .category-nav-container {
            display: flex;
            overflow-x: auto;
            padding: 20px 4%;
            gap: 20px;
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE/Edge */
        }

        .category-nav-container::-webkit-scrollbar {
            display: none;
            /* Chrome/Safari */
        }

        .category-item {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            width: 70px;
            transition: transform 0.2s;
        }

        .category-item:hover {
            transform: translateY(-5px);
        }

        .category-item span {
            font-size: 12px;
            color: #aaa;
            font-weight: 500;
        }

        .category-item:hover span {
            color: #fff;
        }

        .cat-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        /* 列表通用 */
        .section-container {
            padding: 0 5%;
            margin-bottom: 40px;
        }

        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .section-line {
            width: 4px;
            height: 22px;
            background: var(--accent);
            border-radius: 2px;
            margin-right: 12px;
        }

        .section-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #fff;
            margin: 0;
            line-height: 1;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title i {
            font-size: 1.1rem;
            opacity: 0.7;
        }

        /* 滚动容器 */
        .scroll-container {
            position: relative;
        }

        .hot-row {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            padding-bottom: 20px;
            scroll-behavior: smooth;
        }

        .hot-row::-webkit-scrollbar {
            height: 0px;
        }

        /* 滚动按钮 */
        .scroll-btn {
            position: absolute;
            top: 35%;
            transform: translateY(-50%);
            width: 36px;
            height: 80px;
            background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(50, 50, 50, 0.9) 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            z-index: 20;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            opacity: 0.6;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }

        .scroll-btn:hover {
            background: linear-gradient(135deg, rgba(229, 9, 20, 0.9) 0%, rgba(180, 0, 15, 0.85) 100%);
            opacity: 1;
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
        }

        .scroll-btn.left {
            left: -5px;
            border-radius: 0 8px 8px 0;
        }

        .scroll-btn.right {
            right: -5px;
            border-radius: 8px 0 0 8px;
        }

        @media (max-width: 768px) {
            .scroll-btn {
                display: none;
                /* 移动端隐藏，使用手指滑动 */
            }
        }

        .hot-card {
            min-width: 150px;
            width: 150px;
            cursor: pointer;
            transition: 0.3s;
            position: relative;
        }

        .hot-card:hover {
            transform: scale(1.08);
            z-index: 10;
        }

        .poster-wrap {
            width: 100%;
            aspect-ratio: 2/3;
            border-radius: 6px;
            overflow: hidden;
            background: #222;
            position: relative;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border);
        }

        .poster-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.5s;
        }

        .rank-badge {
            position: absolute;
            top: -12px;
            left: -8px;
            font-size: 64px;
            font-weight: 900;
            color: #141414;
            -webkit-text-stroke: 2px #666;
            font-family: impact, sans-serif;
            text-shadow: 2px 2px 0px #eee;
            z-index: 10;
            pointer-events: none;
            line-height: 1;
        }

        .rating-badge {
            position: absolute;
            top: 6px;
            right: 6px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            color: #46d369;
            font-weight: bold;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid rgba(70, 211, 105, 0.3);
        }

        .poster-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #333 0%, #111 100%);
            padding: 5px;
            text-align: center;
        }

        .fallback-text {
            font-size: 12px;
            color: #999;
        }

        .movie-name {
            margin-top: 10px;
            font-size: 14px;
            color: #eee;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            font-weight: 500;
        }

        .movie-date {
            font-size: 12px;
            color: #666;
            text-align: center;
            margin-top: 2px;
        }

        .result-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 20px;
            min-height: 300px;
        }

        .result-card {
            cursor: pointer;
            transition: 0.2s;
        }

        .result-card:hover {
            transform: translateY(-5px);
        }

        /* ★★★ 播放页重构：影院模式 ★★★ */
        .detail-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #141414;
            z-index: 9999;
            display: none;
            overflow-y: auto;
        }

        .detail-overlay.active {
            display: block;
            animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }

        .close-btn {
            position: fixed;
            top: 25px;
            right: 30px;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            cursor: pointer;
            z-index: 10005;
            backdrop-filter: blur(10px);
            transition: 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: rotate(90deg);
        }

        /* 布局容器 */
        .player-layout {
            max-width: 1200px;
            margin: 0 auto;
            padding: 90px 4% 50px;
        }

        /* 视频区域 */
        .player-box {
            width: 100%;
            aspect-ratio: 16/9;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            margin-bottom: 30px;
            border: 1px solid #333;
        }

        /* 视频信息栏 */
        .video-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .video-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 5px;
            line-height: 1.2;
        }

        .video-meta {
            color: #888;
            font-size: 14px;
        }

        /* 投屏按钮 */
        .btn-cast {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            color: #fff;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: 0.2s;
            font-size: 14px;
        }

        .btn-cast:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* 控制区域 (下半部分) */
        .controls-area {
            background: #1f1f1f;
            border-radius: 12px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* 线路选择 (横向滚动) */
        .panel-title {
            font-size: 14px;
            color: #888;
            font-weight: 700;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .source-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
        }

        .source-pill {
            padding: 8px 16px;
            border-radius: 6px;
            background: #2a2a2a;
            border: 1px solid #333;
            color: #ccc;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 500;
        }

        .source-pill:hover {
            background: #333;
            border-color: #666;
            color: #fff;
        }

        .ad-badge {
            font-size: 9px;
            background: rgba(255, 152, 0, 0.2);
            color: #ff9800;
            padding: 1px 5px;
            border-radius: 3px;
            border: 1px solid rgba(255, 152, 0, 0.3);
        }

        .btn-report-ad {
            padding: 5px 12px;
            border-radius: 6px;
            background: rgba(255, 152, 0, 0.1);
            border: 1px solid rgba(255, 152, 0, 0.3);
            color: #ff9800;
            cursor: pointer;
            transition: 0.2s;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-report-ad:hover {
            background: rgba(255, 152, 0, 0.2);
            border-color: #ff9800;
        }

        .btn-report-ad.reported {
            background: rgba(255, 152, 0, 0.3);
            color: #fff;
            pointer-events: none;
        }


        /* 播放历史 & 收藏 */
        .history-section, .fav-section {
            padding: 0 5%;
            margin-bottom: 40px;
        }

        .history-grid, .fav-grid {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            padding-bottom: 15px;
        }

        .history-grid::-webkit-scrollbar, .fav-grid::-webkit-scrollbar { height: 0; }

        .history-card, .fav-card {
            min-width: 130px;
            width: 130px;
            cursor: pointer;
            transition: 0.3s;
            position: relative;
            flex-shrink: 0;
        }

        .history-card:hover, .fav-card:hover { transform: scale(1.05); }

        .history-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: var(--accent);
            border-radius: 0 0 6px 6px;
        }

        .history-ep-tag {
            position: absolute;
            bottom: 6px;
            left: 6px;
            background: rgba(0,0,0,0.8);
            color: #fff;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
        }

        .btn-fav {
            padding: 8px 16px;
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #fff;
            cursor: pointer;
            transition: 0.2s;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-fav:hover { background: rgba(255,255,255,0.2); }
        .btn-fav.is-fav { background: rgba(229,9,20,0.2); border-color: var(--accent); color: var(--accent); }

        .remove-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 22px;
            height: 22px;
            background: rgba(0,0,0,0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 10px;
            cursor: pointer;
            opacity: 0;
            transition: 0.2s;
        }

        .history-card:hover .remove-btn, .fav-card:hover .remove-btn { opacity: 1; }

        /* 搜索历史 */
        .search-history {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px 0;
        }

        .search-history-tag {
            padding: 5px 12px;
            background: #2a2a2a;
            border: 1px solid #333;
            border-radius: 20px;
            color: #ccc;
            font-size: 12px;
            cursor: pointer;
            transition: 0.2s;
        }

        .search-history-tag:hover { background: #333; color: #fff; border-color: #555; }

        .search-history-clear {
            padding: 5px 12px;
            background: transparent;
            border: 1px dashed #444;
            border-radius: 20px;
            color: #666;
            font-size: 12px;
            cursor: pointer;
        }

        /* 主题切换 */
        .theme-toggle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            border: none;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: 0.2s;
        }

        .theme-toggle:hover { background: rgba(255,255,255,0.2); }

        /* 亮色主题 */
        body.light-theme {
            --bg-color: #f5f5f5;
            --panel-bg: #ffffff;
            --text-main: #1a1a1a;
            --text-sub: #666666;
            --border: rgba(0, 0, 0, 0.1);
            background-color: var(--bg-color);
            color: var(--text-main);
        }

        body.light-theme .navbar-custom.scrolled { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        body.light-theme .search-box-wrapper { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.15); }
        body.light-theme .search-box-wrapper:focus-within { background: #fff; }
        body.light-theme .search-input { color: #1a1a1a; }
        body.light-theme .controls-area { background: #fff; border-color: rgba(0,0,0,0.08); }
        body.light-theme .source-pill { background: #f0f0f0; border-color: #ddd; color: #333; }
        body.light-theme .source-pill:hover { background: #e0e0e0; color: #000; }
        body.light-theme .ep-btn { background: #f0f0f0; color: #333; }
        body.light-theme .ep-btn:hover { background: #e0e0e0; color: #000; }
        body.light-theme .ep-btn.active { background: #1a1a1a; color: #fff; }
        body.light-theme .movie-name { color: #1a1a1a; }
        body.light-theme .detail-overlay { background: #f5f5f5; }
        body.light-theme .player-box { border-color: #ddd; }
        body.light-theme .video-title { color: #1a1a1a; }
        body.light-theme .search-history-tag { background: #f0f0f0; border-color: #ddd; color: #333; }

        /* 手势提示 */
        .gesture-hint {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.8);
            color: #fff;
            padding: 15px 25px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: bold;
            z-index: 99999;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .gesture-hint.show { opacity: 1; }

        .source-pill.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
            box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
        }

        /* 选集 (大网格) */
        .ep-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            /* 自适应宽度，最小100px */
            gap: 12px;
        }

        .ep-btn {
            background: #2a2a2a;
            border: 1px solid transparent;
            color: #ddd;
            padding: 12px 5px;
            text-align: center;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: 0.2s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ep-btn:hover {
            background: #333;
            color: #fff;
            border-color: #555;
        }

        .ep-btn.active {
            background: #fff;
            color: #000;
            font-weight: bold;
            border-color: #fff;
        }

        /* 状态灯 */
        .latency-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .dot-green {
            background: #46d369;
            box-shadow: 0 0 5px #46d369;
        }

        .dot-yellow {
            background: #ffcc00;
        }

        .dot-red {
            background: #ff453a;
        }

        .footer {
            text-align: center;
            font-size: 12px;
            color: #444;
            margin-top: 80px;
            padding-bottom: 20px;
        }

        /* 电影详情弹窗 */
        .info-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .info-modal {
            position: relative;
            max-width: 800px;
            width: 100%;
            background: #181818;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .info-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.6);
            border: none;
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            font-size: 16px;
        }

        .info-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .info-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 250px;
            background-size: cover;
            background-position: center;
            opacity: 0.4;
        }

        .info-modal-backdrop::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent, #181818);
        }

        .info-modal-content {
            position: relative;
            display: flex;
            gap: 25px;
            padding: 30px;
            padding-top: 180px;
        }

        .info-modal-poster {
            flex-shrink: 0;
            width: 180px;
        }

        .info-modal-poster img {
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        }

        .info-modal-details {
            flex: 1;
        }

        .info-modal-details h2 {
            font-size: 1.8rem;
            margin-bottom: 12px;
            color: #fff;
        }

        .info-modal-meta {
            display: flex;
            gap: 15px;
            font-size: 14px;
            color: #aaa;
            margin-bottom: 15px;
        }

        .info-rating {
            color: #ffc107;
            font-weight: bold;
        }

        .info-overview {
            color: #bbb;
            font-size: 14px;
            line-height: 1.7;
            max-height: 120px;
            overflow-y: auto;
            margin-bottom: 20px;
        }

        .info-modal-btns {
            display: flex;
            gap: 12px;
        }

        @media (max-width: 600px) {
            .info-modal-content {
                flex-direction: column;
                padding-top: 200px;
                text-align: center;
            }

            .info-modal-poster {
                width: 120px;
                margin: 0 auto;
            }

            .info-modal-meta {
                justify-content: center;
            }

            .info-modal-btns {
                justify-content: center;
            }
        }

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

        /* Loading Screen */
        .app-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #0a0a0a;
            /* Deep dark background */
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: opacity 0.6s ease-out, visibility 0.6s;
        }

        .app-loader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .loader-logo {
            font-size: 3rem;
            font-weight: 800;
            background: linear-gradient(45deg, #e50914, #ff5151);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 30px;
            letter-spacing: 2px;
            animation: pulse 2s infinite;
        }

        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-top-color: #e50914;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        ``` @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.8;
            }
        }