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

        :root {
            --bg: #080b12;
            --surface: #0f1420;
            --card: #141927;
            --border: rgba(255, 255, 255, 0.07);
            --accent: #e8a020;
            --accent2: #ff4e4e;
            --text: #e8eaf0;
            --muted: #6b7280;
            --gold: #f5c518;
            --radius: 10px;
            --nav-h: 62px;
            font-size: 16px;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Outfit', sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
            width: 100%;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        img {
            display: block;
            max-width: 100%;
        }

        button {
            cursor: pointer;
            border: none;
            background: none;
            font-family: inherit;
        }

        ::-webkit-scrollbar {
            width: 3px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--accent);
        }

        
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            height: var(--nav-h);
            display: flex;
            align-items: center;
            padding: 0 clamp(12px, 4vw, 48px);
            background: rgba(8, 11, 18, 0.92);
            backdrop-filter: blur(18px);
            border-bottom: 1px solid var(--border);
            gap: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--accent);
            border-radius: 8px;
            display: grid;
            place-items: center;
        }

        .logo-icon svg {
            width: 20px;
            height: 20px;
        }

        .logo-text {
            font-size: clamp(1.1rem, 2.5vw, 1.65rem);
            letter-spacing: 2px;
            color: #fff;
        }

        .logo-text span {
            color: var(--accent);
        }

        /* Desktop nav links */
        .nav-links {
            display: flex;
            gap: 4px;
            list-style: none;
            margin-left: 18px;
        }

        .nav-links a {
            font-size: 0.85rem;
            font-weight: 500;
            padding: 6px 14px;
            border-radius: 6px;
            color: var(--muted);
            transition: color 0.2s, background 0.2s;
            cursor: pointer;
            white-space: nowrap;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: #fff;
            background: rgba(255, 255, 255, 0.07);
        }

        .nav-right {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .search-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 7px 14px;
            width: clamp(140px, 20vw, 260px);
            transition: border-color 0.2s;
        }

        .search-bar:focus-within {
            border-color: var(--accent);
        }

        .search-bar svg {
            flex-shrink: 0;
            opacity: 0.5;
        }

        .search-bar input {
            background: none;
            border: none;
            outline: none;
            color: var(--text);
            font-family: inherit;
            font-size: 0.84rem;
            width: 100%;
            min-width: 0;
        }

        .search-bar input::placeholder {
            color: var(--muted);
        }

        .btn-primary {
            background: var(--accent);
            color: #000;
            font-weight: 700;
            font-size: 0.82rem;
            padding: 8px 18px;
            border-radius: 8px;
            transition: opacity 0.2s, transform 0.15s;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-primary:hover {
            opacity: 0.88;
            transform: translateY(-1px);
        }

        /* Hamburger – hidden on desktop */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            padding: 6px;
            border-radius: 6px;
            flex-shrink: 0;
            margin-left: auto;
        }

        .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--text);
            border-radius: 2px;
            transition: transform 0.3s, opacity 0.3s;
        }

        /* Tablet (768px – 1023px): keep links, hide search, shrink shuffle */
        @media (max-width: 1023px) and (min-width: 768px) {
            .search-bar {
                width: clamp(100px, 14vw, 180px);
            }

            .nav-links {
                margin-left: 8px;
                gap: 2px;
            }

            .nav-links a {
                padding: 6px 10px;
                font-size: 0.8rem;
            }

            .btn-primary {
                padding: 8px 12px;
                font-size: 0.78rem;
            }
        }

        /* Mobile (<768px): hamburger menu */
        @media (max-width: 767px) {
            .nav-links,
            .search-bar,
            .btn-primary {
                display: none;
            }

            .hamburger {
                display: flex;
            }

            /* Remove auto margin from nav-right since it's hidden */
            .nav-right {
                display: none;
            }
        }

        /* ── Mobile menu (slide-in drawer) ── */
        .mobile-menu {
            display: none;
            position: fixed;
            top: var(--nav-h);
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(8, 11, 18, 0.97);
            backdrop-filter: blur(20px);
            z-index: 99;
            flex-direction: column;
            padding: 30px clamp(16px, 5vw, 40px);
            gap: 8px;
            transform: translateX(-100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-menu.open {
            transform: translateX(0);
        }

        @media (max-width: 767px) {
            .mobile-menu {
                display: flex;
            }
        }

        .mobile-menu a {
            font-size: 1.2rem;
            font-weight: 600;
            padding: 14px 0;
            border-bottom: 1px solid var(--border);
            color: var(--muted);
            transition: color 0.2s;
            cursor: pointer;
        }

        .mobile-menu a:hover {
            color: var(--accent);
        }

        .mobile-search {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 16px;
        }

        .mobile-search input {
            background: none;
            border: none;
            outline: none;
            color: var(--text);
            font-family: inherit;
            font-size: 1rem;
            width: 100%;
        }

        /* Hero */
        .hero {
            margin-top: var(--nav-h);
            position: relative;
            width: 100%;
            height: clamp(420px, 56vw, 680px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center center;
            transition: opacity 1.2s ease;
        }

        .hero-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(0deg,
                    rgba(8, 11, 18, 1) 0%,
                    rgba(8, 11, 18, 0.75) 35%,
                    rgba(8, 11, 18, 0.2) 70%,
                    rgba(8, 11, 18, 0.35) 100%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 800px;
            padding: 0 clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 12px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(232, 160, 32, 0.15);
            border: 1px solid rgba(232, 160, 32, 0.3);
            color: var(--accent);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 4px 12px;
            border-radius: 20px;
            width: fit-content;
        }

        .hero-title {
            font-size: 72px;
            line-height: 1.05;
            letter-spacing: 0.5px;
            color: #fff;
            margin: 0;
        }

        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 8px 14px;
            font-size: 0.82rem;
            color: var(--muted);
        }

        .hero-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .hero-meta .rating {
            color: var(--gold);
            font-weight: 700;
        }

        .hero-overview {
            font-size: clamp(0.82rem, 1.6vw, 0.92rem);
            color: rgba(232, 234, 240, 0.68);
            line-height: 1.65;
            max-width: 560px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hero-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 4px;
        }

        .btn-hero {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.88rem;
            transition:
                transform 0.2s,
                opacity 0.2s;
        }

        .btn-hero:hover {
            transform: translateY(-2px);
            opacity: 0.9;
        }

        .btn-hero.play {
            background: #e50914;
            color: #fff;
        }

        .btn-hero.dl {
            background: var(--accent);
            color: #000;
        }

        .btn-hero.info {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .hero-dots {
            display: flex;
            gap: 8px;
            justify-content: center;
            margin-top: 16px;
            z-index: 3;
        }

        .hero-dot {
            width: 6px;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.3);
            transition:
                width 0.3s,
                background 0.3s;
            cursor: pointer;
        }

        .hero-dot.active {
            width: 24px;
            background: var(--accent);
        }

        /* Main and pages */
        main {
            padding: 0 clamp(12px, 4vw, 48px) 60px;
            overflow-x: hidden;
            width: 100%;
        }

        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        .section {
            margin-top: 80px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .section-title {
            font-size: clamp(1.3rem, 3vw, 1.75rem);
            letter-spacing: 1.5px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title::before {
            content: '';
            display: block;
            width: 4px;
            height: 22px;
            background: var(--accent);
            border-radius: 2px;
        }

        .see-all {
            font-size: 0.8rem;
            color: var(--accent);
            font-weight: 600;
            letter-spacing: 0.5px;
            padding: 5px 12px;
            border-radius: 6px;
            border: 1px solid rgba(232, 160, 32, 0.3);
            transition: background 0.2s;
            white-space: nowrap;
            cursor: pointer;
        }

        .see-all:hover {
            background: rgba(232, 160, 32, 0.1);
        }

        /* Curated section title group (badge + title side by side) */
        .section-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-title-group .section-title::before {
            display: none; /* badge replaces the accent bar */
        }
        .section-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            padding: 3px 9px;
            border-radius: 6px;
            text-transform: uppercase;
            flex-shrink: 0;
        }
        .bet-badge {
            background: #000;
            color: var(--accent);
            border: 1px solid var(--accent);
        }
        .sitcom-badge {
            font-size: 1.1rem;
            background: transparent;
            padding: 0;
        }
        .anim-badge {
            font-size: 1.1rem;
            background: transparent;
            padding: 0;
        }

        /* Filters */
        .filter-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 18px;
            padding: 10px 14px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
        }

        .filter-bar label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--muted);
            white-space: nowrap;
        }

        .filter-select {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 7px;
            padding: 6px 28px 6px 10px;
            color: var(--text);
            font-family: inherit;
            font-size: 0.8rem;
            font-weight: 500;
            outline: none;
            cursor: pointer;
            transition:
                border-color 0.2s,
                background 0.2s;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            min-width: 120px;
        }

        .filter-select:focus,
        .filter-select:hover {
            border-color: var(--accent);
            background-color: rgba(232, 160, 32, 0.05);
        }

        .filter-select option {
            background: #141927;
            color: var(--text);
        }

        .filter-divider {
            width: 1px;
            height: 20px;
            background: var(--border);
            flex-shrink: 0;
        }

        .filter-reset {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--muted);
            padding: 5px 10px;
            border-radius: 6px;
            border: 1px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .filter-reset:hover {
            color: var(--accent);
            border-color: rgba(232, 160, 32, 0.3);
            background: rgba(232, 160, 32, 0.06);
        }

        .filter-loading {
            display: none;
            align-items: center;
            gap: 6px;
            font-size: 0.72rem;
            color: var(--muted);
        }

        .filter-loading.show {
            display: flex;
        }

        .filter-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

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

        /* Genre pills */
        .genres-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 22px;
        }

        .genre-pill {
            padding: 7px 16px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--muted);
            background: var(--surface);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .genre-pill.active,
        .genre-pill:hover {
            color: #000;
            background: var(--accent);
            border-color: var(--accent);
        }

        /* Skeleton loading animation */

        /* Detail page skeleton */
        .detail-skeleton {
            padding: 0;
        }

        .detail-skeleton-hero {
            height: clamp(320px, 55vw, 560px);
            border-radius: 0;
        }

        .detail-skeleton-body {
            padding: 36px clamp(16px, 5vw, 80px);
            max-width: 600px;
        }

        /* Movie cards */
        .movies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill,
                    minmax(clamp(120px, 23vw, 160px), 1fr));
            gap: clamp(10px, 2vw, 18px);
        }

        .movie-card {
            display: block; /* works when element is <a> or <div> */
            background: var(--card);
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid var(--border);
            transition:
                transform 0.25s,
                border-color 0.25s,
                box-shadow 0.25s;
            cursor: pointer;
            position: relative;
            color: inherit;
            text-decoration: none;
        }

        .movie-card:hover {
            transform: translateY(-5px) scale(1.02);
            border-color: rgba(232, 160, 32, 0.4);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
        }

        .card-poster {
            position: relative;
            aspect-ratio: 2/3;
            background: var(--surface);
            overflow: hidden;
        }

        .card-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s;
        }

        .movie-card:hover .card-poster img {
            transform: scale(1.05);
        }

        .card-quality {
            position: absolute;
            top: 8px;
            left: 8px;
            background: var(--accent);
            color: #000;
            font-size: 0.6rem;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 4px;
            letter-spacing: 0.5px;
        }

        .card-type {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.7);
            color: #fff;
            font-size: 0.6rem;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            letter-spacing: 0.3px;
        }

        .card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
            display: flex;
            align-items: flex-end;
            padding: 8px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .movie-card:hover .card-overlay {
            opacity: 1;
        }

        .card-actions {
            display: flex;
            gap: 5px;
            width: 100%;
        }

        .card-play-btn {
            flex: 1;
            background: #e50914;
            color: #fff;
            font-weight: 800;
            font-size: 0.68rem;
            font-family: inherit;
            padding: 6px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: opacity 0.2s;
        }

        .card-dl-btn {
            flex: 1;
            background: var(--accent);
            color: #000;
            font-weight: 800;
            font-size: 0.68rem;
            font-family: inherit;
            padding: 6px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: opacity 0.2s;
        }

        .card-play-btn:hover,
        .card-dl-btn:hover {
            opacity: 0.85;
        }

        .card-info {
            padding: 10px 10px 12px;
        }

        .card-title {
            font-size: clamp(0.75rem, 0.9vw, 0.85rem);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #fff;
            margin-bottom: 5px;
        }

        .card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.68rem;
            color: var(--muted);
        }

        .card-rating {
            color: var(--gold);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .no-poster {
            width: 100%;
            height: 100%;
            background: var(--card);
            display: grid;
            place-items: center;
            color: var(--muted);
            font-size: 0.75rem;
            text-align: center;
            padding: 10px;
        }

        /* More like this */
        .more-like-section {
            margin-top: 40px;
            padding-top: 32px;
            border-top: 1px solid var(--border);
        }

        .more-like-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
        }

        .more-like-title {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .more-like-title svg {
            color: var(--accent);
        }

        .more-like-scroll {
            overflow-x: auto;
            padding-bottom: 10px;
            scrollbar-width: thin;
            scrollbar-color: var(--accent) transparent;
            -webkit-overflow-scrolling: touch;
            max-width: 100%;
        }

        .more-like-scroll::-webkit-scrollbar {
            height: 3px;
        }

        .more-like-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .more-like-scroll::-webkit-scrollbar-thumb {
            background: var(--accent);
            border-radius: 2px;
        }

        .more-like-row {
            display: flex;
            gap: 12px;
            width: max-content;
        }

        .more-like-card {
            width: 130px;
            flex-shrink: 0;
            background: var(--card);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border);
            cursor: pointer;
            transition:
                transform 0.22s,
                border-color 0.22s,
                box-shadow 0.22s;
        }

        .more-like-card:hover {
            transform: translateY(-4px);
            border-color: rgba(232, 160, 32, 0.4);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
        }

        .more-like-poster {
            aspect-ratio: 2/3;
            background: var(--surface);
            overflow: hidden;
            position: relative;
        }

        .more-like-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.35s;
        }

        .more-like-card:hover .more-like-poster img {
            transform: scale(1.06);
        }

        .more-like-poster-fallback {
            width: 100%;
            height: 100%;
            display: grid;
            place-items: center;
            background: var(--surface);
            color: var(--muted);
            font-size: 0.7rem;
            text-align: center;
            padding: 8px;
        }

        .more-like-info {
            padding: 7px 8px 9px;
        }

        .more-like-name {
            font-size: 0.72rem;
            font-weight: 600;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
        }

        .more-like-meta {
            font-size: 0.62rem;
            color: var(--muted);
            display: flex;
            justify-content: space-between;
        }

        .more-like-rating {
            color: var(--gold);
            font-weight: 700;
        }

        .more-like-skeleton-card {
            width: 130px;
            flex-shrink: 0;
            border-radius: 8px;
            overflow: hidden;
        }

        /* Detail page */
        #page-detail {
            display: none;
        }

        #page-detail.active {
            display: block;
        }

        .detail-hero {
            position: relative;
            height: clamp(320px, 55vw, 560px);
            overflow: hidden;
            margin-top: var(--nav-h);
        }

        .detail-hero-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center top;
        }

        .detail-hero-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(90deg,
                    rgba(8, 11, 18, 0.98) 0%,
                    rgba(8, 11, 18, 0.75) 55%,
                    rgba(8, 11, 18, 0.2) 100%),
                linear-gradient(0deg, var(--bg) 0%, transparent 45%);
        }

        .detail-hero-content {
            position: relative;
            z-index: 2;
            padding: clamp(24px, 6vw, 70px) clamp(16px, 5vw, 80px);
            max-width: 620px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: 100%;
            justify-content: flex-end;
            padding-bottom: 40px;
        }

        .detail-back-btn {
            position: absolute;
            top: clamp(16px, 3vw, 28px);
            left: clamp(16px, 5vw, 80px);
            z-index: 3;
            display: flex;
            align-items: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.82rem;
            font-weight: 600;
            padding: 7px 14px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.12);
            transition: all 0.2s;
            cursor: pointer;
        }

        .detail-back-btn:hover {
            color: #fff;
            background: rgba(0, 0, 0, 0.65);
        }

        .detail-title {
            font-size: clamp(2rem, 6vw, 3.8rem);
            line-height: 1;
            letter-spacing: 1px;
            color: #fff;
        }

        .detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.82rem;
            color: var(--muted);
        }

        .detail-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .detail-rating {
            color: var(--gold);
            font-weight: 700;
            font-size: 0.95rem;
        }

        .detail-overview-short {
            font-size: clamp(0.82rem, 1.8vw, 0.95rem);
            color: rgba(232, 234, 240, 0.72);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .detail-action-row {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .detail-body {
            padding: 36px clamp(16px, 5vw, 80px) 60px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 300px;
            gap: 40px;
            max-width: 1300px;
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }

        @media (max-width: 860px) {
            .detail-body {
                grid-template-columns: 1fr;
            }
        }

        .detail-overview-full {
            font-size: 0.95rem;
            line-height: 1.75;
            color: rgba(232, 234, 240, 0.78);
            margin-bottom: 28px;
        }

        .detail-section-label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 12px;
        }

        .detail-genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 28px;
        }

        .detail-genre-tag {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            color: var(--muted);
            font-size: 0.72rem;
            padding: 4px 12px;
            border-radius: 20px;
        }

        /* Player */
        .player-activate-screen {
            aspect-ratio: 16/9;
            background: #000;
            border-radius: 10px 10px 0 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            cursor: pointer;
            border: 1px solid var(--border);
            border-bottom: none;
            transition: background 0.2s;
            position: relative;
            overflow: hidden;
        }

        .player-activate-screen:hover {
            background: #0a0d18;
        }

        .player-activate-screen .pa-backdrop {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: brightness(0.18);
            pointer-events: none;
        }

        .player-activate-screen .pa-play {
            width: 64px;
            height: 64px;
            background: rgba(229, 9, 20, 0.9);
            border-radius: 50%;
            display: grid;
            place-items: center;
            position: relative;
            z-index: 1;
            transition:
                transform 0.2s,
                background 0.2s;
        }

        .player-activate-screen:hover .pa-play {
            transform: scale(1.1);
            background: #e50914;
        }

        .player-activate-screen .pa-title {
            color: #fff;
            font-size: 1rem;
            font-weight: 600;
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 0 16px;
        }

        .player-activate-screen .pa-sub {
            color: rgba(255, 255, 255, 0.45);
            font-size: 0.75rem;
            position: relative;
            z-index: 1;
        }

        .detail-player-wrap {
            background: #000;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
            border: 1px solid var(--border);
            border-bottom: none;
            position: relative;
        }

        .detail-player-wrap iframe {
            width: 100%;
            aspect-ratio: 16/9;
            border: none;
            display: block;
        }

        .detail-player-hint {
            padding: 10px 14px;
            background: #0a0d14;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            border: 1px solid var(--border);
            border-top: none;
            border-radius: 0 0 10px 10px;
            margin-bottom: 16px;
        }

        .detail-player-hint span:first-child {
            font-size: 0.75rem;
            color: var(--muted);
        }

        .detail-player-hint span:last-child {
            font-size: 0.72rem;
            color: var(--accent);
            font-weight: 600;
        }

        .server-switcher {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: #0a0d14;
            border: 1px solid var(--border);
            border-top: none;
            flex-wrap: wrap;
        }

        .server-switcher-label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.72rem;
            color: var(--muted);
            white-space: nowrap;
        }

        #serverBtnBar {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .server-btn {
            padding: 4px 13px;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 6px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--muted);
            cursor: pointer;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }

        .server-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .server-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #000;
        }

        .detail-ep-section {
            margin-top: 20px;
        }

        .season-selector {
            display: flex;
            gap: 6px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .season-btn {
            padding: 5px 14px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--muted);
            transition: all 0.2s;
        }

        .season-btn.active,
        .season-btn:hover {
            background: rgba(232, 160, 32, 0.15);
            color: var(--accent);
            border-color: rgba(232, 160, 32, 0.3);
        }

        .ep-grid {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .ep-btn {
            width: 42px;
            height: 42px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 700;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--muted);
            transition: all 0.2s;
        }

        .ep-btn.active,
        .ep-btn:hover {
            background: var(--accent);
            color: #000;
            border-color: var(--accent);
        }

        /* Sidebar */
        .detail-poster-wrap {
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border);
            margin-bottom: 20px;
        }

        .detail-poster-wrap img {
            width: 100%;
            display: block;
        }

        .detail-no-poster {
            width: 100%;
            aspect-ratio: 2/3;
            background: var(--card);
            display: grid;
            place-items: center;
            color: var(--muted);
            font-size: 0.75rem;
        }

        .download-section h3 {
            font-size: 1.1rem;
            letter-spacing: 1px;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .download-section h3 span {
            color: var(--accent);
        }

        .download-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .dl-option {
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px 16px;
            transition: border-color 0.2s;
        }

        .dl-option:hover {
            border-color: rgba(232, 160, 32, 0.4);
        }

        .dl-option-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }

        .dl-option-icon {
            width: 36px;
            height: 36px;
            background: rgba(232, 160, 32, 0.1);
            border-radius: 8px;
            display: grid;
            place-items: center;
            flex-shrink: 0;
        }

        .dl-quality {
            font-weight: 700;
            font-size: 0.88rem;
            color: #fff;
        }

        .dl-size {
            font-size: 0.75rem;
            color: var(--muted);
        }

        .dl-btn {
            background: var(--accent);
            color: #000;
            font-weight: 800;
            font-size: 0.78rem;
            padding: 8px 16px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 5px;
            flex-shrink: 0;
            transition: opacity 0.2s;
            font-family: inherit;
            text-decoration: none;
            border: none;
            cursor: pointer;
            white-space: nowrap;
        }

        .dl-btn:hover {
            opacity: 0.85;
        }

        .dl-btn-group {
            display: flex;
            gap: 8px;
            width: 100%;
        }

        .dl-btn-group .dl-btn {
            flex: 1;
            justify-content: center;
        }

        .dl-btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            border: 1px solid var(--border);
        }

        .dl-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.14);
            opacity: 1;
        }

        .dl-note {
            font-size: 0.72rem;
            color: var(--muted);
            margin-top: 10px;
            line-height: 1.5;
            padding: 0 2px;
        }

        /* Top cast */
        .cast-section {
            margin-top: 32px;
            padding-top: 28px;
            border-top: 1px solid var(--border);
        }

        .cast-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .cast-section-title {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--muted);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cast-section-title svg {
            color: var(--accent);
        }

        .cast-count {
            font-size: 0.72rem;
            color: var(--muted);
            font-weight: 400;
            letter-spacing: 0;
        }

        .cast-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 12px;
        }

        .cast-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
            transition:
                transform 0.22s,
                border-color 0.22s,
                box-shadow 0.22s;
            cursor: default;
        }

        .cast-card:hover {
            transform: translateY(-4px);
            border-color: rgba(232, 160, 32, 0.35);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        }

        .cast-photo-wrap {
            position: relative;
            aspect-ratio: 2/3;
            background: var(--surface);
            overflow: hidden;
        }

        .cast-photo-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.35s;
        }

        .cast-card:hover .cast-photo-wrap img {
            transform: scale(1.06);
        }

        .cast-no-photo {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--surface), var(--card));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: var(--muted);
        }

        .cast-no-photo .cast-initials {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--accent);
            line-height: 1;
        }

        .cast-info {
            padding: 8px 8px 10px;
        }

        .cast-real-name {
            font-size: 0.78rem;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
        }

        .cast-char-name {
            font-size: 0.68rem;
            color: var(--muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-style: italic;
        }

        .cast-skeleton-card {
            flex-shrink: 0;
            width: 110px;
        }

        .cast-skeleton-photo {
            aspect-ratio: 2/3;
            border-radius: 8px 8px 0 0;
        }

        .cast-skeleton-name {
            height: 12px;
            margin: 8px 8px 4px;
            border-radius: 4px;
        }

        .cast-skeleton-char {
            height: 10px;
            margin: 0 8px 8px;
            border-radius: 4px;
            width: 70%;
        }

        .cast-empty {
            color: var(--muted);
            font-size: 0.85rem;
            padding: 16px 0;
        }

        /* Social share */
        .share-section {
            margin-top: 28px;
            padding: 20px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
        }

        .share-label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .share-label svg {
            color: var(--accent);
        }

        .share-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .share-btn {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 700;
            font-family: inherit;
            border: none;
            cursor: pointer;
            transition:
                transform 0.2s,
                opacity 0.2s,
                box-shadow 0.2s;
            text-decoration: none;
            white-space: nowrap;
        }

        .share-btn:hover {
            transform: translateY(-2px);
            opacity: 0.92;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
        }

        .share-btn svg {
            flex-shrink: 0;
        }

        .share-btn.whatsapp {
            background: #25d366;
            color: #fff;
        }

        .share-btn.twitter {
            background: #000;
            color: #fff;
            border: 1px solid #333;
        }

        .share-btn.facebook {
            background: #1877f2;
            color: #fff;
        }

        .share-btn.telegram {
            background: #0088cc;
            color: #fff;
        }

        .share-btn.copy-link {
            background: rgba(255, 255, 255, 0.07);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .share-btn.copy-link.copied {
            background: rgba(232, 160, 32, 0.15);
            color: var(--accent);
            border-color: rgba(232, 160, 32, 0.35);
        }

        /* Modals */
        .trailer-modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 400;
            background: rgba(0, 0, 0, 0.9);
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .trailer-modal-backdrop.open {
            display: flex;
        }

        .trailer-wrap {
            width: 100%;
            max-width: 900px;
            position: relative;
        }

        .trailer-close {
            position: absolute;
            top: -40px;
            right: 0;
            color: #fff;
            font-size: 0.9rem;
            padding: 6px 14px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            transition: background 0.2s;
        }

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

        .trailer-wrap iframe {
            width: 100%;
            aspect-ratio: 16/9;
            border: none;
            border-radius: 10px;
        }

        #toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(80px);
            background: var(--card);
            border: 1px solid var(--accent);
            color: #fff;
            font-size: 0.85rem;
            padding: 12px 22px;
            border-radius: 10px;
            z-index: 500;
            white-space: nowrap;
            transition:
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s;
            opacity: 0;
            pointer-events: none;
        }

        #toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Comments */
        .comments-section {
            margin-top: 40px;
            padding-top: 32px;
            border-top: 1px solid var(--border);
            position: relative;
        }

        .comments-section .section-label-lg {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: #fff;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .comments-section .section-label-lg svg {
            color: var(--accent);
        }

        .admin-gate {
            display: block;
            text-align: right;
            margin-top: 12px;
            font-size: 0.5rem;
            letter-spacing: 4px;
            color: rgba(82, 82, 82, 0.363);
            user-select: none;
            cursor: default;
            line-height: 1;
            padding: 6px 4px;
            border-radius: 3px;
        }

        .comment-form {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 28px;
        }

        .comment-form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .comment-input {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 14px;
            color: var(--text);
            font-family: inherit;
            font-size: 0.88rem;
            transition: border-color 0.2s;
            outline: none;
        }

        .comment-input:focus {
            border-color: var(--accent);
        }

        .comment-input::placeholder {
            color: var(--muted);
        }

        .comment-name-input {
            width: 180px;
            flex-shrink: 0;
        }

        .comment-footer-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .captcha-row {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.82rem;
            color: var(--muted);
        }

        .captcha-box {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 12px;
            color: var(--text);
            font-family: monospace;
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 3px;
            user-select: none;
            min-width: 90px;
            text-align: center;
        }

        .captcha-input {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 12px;
            color: var(--text);
            font-family: inherit;
            font-size: 0.88rem;
            width: 100px;
            outline: none;
            transition: border-color 0.2s;
        }

        .captcha-input:focus {
            border-color: var(--accent);
        }

        .captcha-refresh {
            background: none;
            border: none;
            color: var(--accent);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            transition: opacity 0.2s;
        }

        .captcha-refresh:hover {
            opacity: 0.7;
        }

        .btn-submit-comment {
            background: var(--accent);
            color: #000;
            font-weight: 700;
            font-size: 0.84rem;
            padding: 9px 22px;
            border-radius: 8px;
            transition:
                opacity 0.2s,
                transform 0.15s;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .btn-submit-comment:hover {
            opacity: 0.85;
            transform: translateY(-1px);
        }

        .btn-submit-comment:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .comment-error {
            font-size: 0.78rem;
            color: #ff5f5f;
            margin-top: 6px;
            display: none;
        }

        .comment-error.show {
            display: block;
        }

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .comment-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px 16px;
            display: flex;
            gap: 12px;
            align-items: flex-start;
            position: relative;
        }

        .comment-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.92rem;
            color: #fff;
            text-transform: uppercase;
        }

        .comment-body {
            flex: 1;
            min-width: 0;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
            flex-wrap: wrap;
        }

        .comment-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: #fff;
        }

        .comment-time {
            font-size: 0.72rem;
            color: var(--muted);
        }

        .comment-text {
            font-size: 0.88rem;
            line-height: 1.6;
            color: rgba(232, 234, 240, 0.82);
            word-break: break-word;
        }

        .comment-delete-btn {
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            gap: 4px;
            transition:
                color 0.2s,
                background 0.2s;
            position: absolute;
            top: 12px;
            right: 12px;
        }

        .comment-delete-btn:hover {
            color: #ff5f5f;
            background: rgba(255, 95, 95, 0.1);
        }

        .comments-loading {
            text-align: center;
            color: var(--muted);
            font-size: 0.85rem;
            padding: 24px 0;
        }

        .comments-empty {
            text-align: center;
            color: var(--muted);
            font-size: 0.88rem;
            padding: 32px 0;
            border: 1px dashed var(--border);
            border-radius: 10px;
        }

        /* Admin modal */
        .admin-modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 600;
            background: rgba(0, 0, 0, 0.85);
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .admin-modal-backdrop.open {
            display: flex;
        }

        .admin-modal {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 28px;
            width: 100%;
            max-width: 400px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .admin-modal h3 {
            font-size: 1rem;
            color: #fff;
            font-weight: 700;
        }

        .admin-modal p {
            font-size: 0.84rem;
            color: var(--muted);
            line-height: 1.5;
        }

        .admin-pwd-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 14px;
            color: var(--text);
            font-family: inherit;
            font-size: 0.88rem;
            width: 100%;
            outline: none;
            transition: border-color 0.2s;
        }

        .admin-pwd-input:focus {
            border-color: var(--accent);
        }

        .admin-modal-btns {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .btn-admin-cancel {
            padding: 8px 18px;
            border-radius: 8px;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--muted);
            background: var(--surface);
            border: 1px solid var(--border);
            cursor: pointer;
            font-family: inherit;
        }

        .btn-admin-confirm {
            padding: 8px 18px;
            border-radius: 8px;
            font-size: 0.82rem;
            font-weight: 700;
            color: #fff;
            background: #e50914;
            border: none;
            cursor: pointer;
            font-family: inherit;
            transition: opacity 0.2s;
        }

        .btn-admin-confirm:hover {
            opacity: 0.85;
        }

        
footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

/* Desktop */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
  align-items: start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(232, 234, 240, 0.6);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

/* Bottom bar */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  padding-top: 24px;
  border-top: 1px solid var(--border);

  font-size: 0.75rem;
  color: var(--muted);
  gap: 8px;
}

.footer-bottom p {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-bottom p:first-child {
  text-align: left;
}

.footer-bottom p:last-child {
  text-align: right;
}

.footer-bottom span {
  color: var(--accent);
}

/* Tablet */
@media (max-width: 859px) {

  footer {
    padding: 40px 20px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 100%;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-bottom p,
  .footer-bottom p:first-child,
  .footer-bottom p:last-child {
    text-align: center;
    white-space: normal;
  }
}

/* Mobile */
@media (max-width: 479px) {

  footer {
    padding: 32px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    font-size: 0.78rem;
  }

  .footer-col h4 {
    font-size: 0.68rem;
    margin-bottom: 10px;
  }

  .footer-col ul {
    gap: 8px;
  }

  .footer-col ul li a {
    font-size: 0.8rem;
  }

  .footer-bottom {
    gap: 5px;
    padding-top: 16px;
    font-size: 0.72rem;
  }
}
        /* Scroll-to-top button */
        #scrollTopBtn {
            position: fixed;
            bottom: 24px;
            right: 20px;
            z-index: 50;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition:
                opacity 0.35s,
                transform 0.2s;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
        }

        #scrollTopBtn.visible {
            opacity: 1;
            pointer-events: all;
        }

        #scrollTopBtn:hover {
            transform: translateY(-3px) scale(1.05);
        }

        #scrollTopBtn svg.progress-ring {
            position: absolute;
            inset: 0;
            width: 48px;
            height: 48px;
            transform: rotate(-90deg);
        }

        #scrollTopBg {
            fill: rgba(8, 11, 18, 0.88);
            stroke: rgba(255, 255, 255, 0.07);
            stroke-width: 1.5;
        }

        #scrollTrack {
            fill: none;
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 3;
        }

        #scrollProgress {
            fill: none;
            stroke: var(--accent);
            stroke-width: 3;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.1s linear;
        }

        .scroll-arrow-icon {
            position: relative;
            z-index: 1;
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        /* Utilities */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-up {
            animation: fadeUp 0.5s ease forwards;
        }

        .show-more-wrap {
            display: flex;
            justify-content: center;
            margin-top: 28px;
        }

        .btn-show-more {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 11px 32px;
            border-radius: 8px;
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--accent);
            background: rgba(232, 160, 32, 0.08);
            border: 1px solid rgba(232, 160, 32, 0.3);
            transition:
                background 0.2s,
                transform 0.15s;
            font-family: inherit;
        }

        .btn-show-more:hover {
            background: rgba(232, 160, 32, 0.16);
            transform: translateY(-1px);
        }

        .btn-show-more:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
        }

        .no-results {
            text-align: center;
            padding: 48px 20px;
            color: var(--muted);
            font-size: 0.95rem;
        }

        .no-results svg {
            margin: 0 auto 14px;
            opacity: 0.35;
        }

        .no-results strong {
            display: block;
            color: var(--text);
            font-size: 1.05rem;
            margin-bottom: 6px;
        }

        /* Mobile responsive, max 768px */
        @media (max-width: 768px) {

            .movies-grid {
                grid-template-columns: repeat(auto-fill,
                        minmax(clamp(100px, 28vw, 140px), 1fr));
                gap: 10px;
            }

            .hero-content {
                padding: 0 16px clamp(32px, 8vw, 52px);
                align-items: center;
                text-align: center;
            }

            .hero {
                height: clamp(400px, 70vw, 560px);
            }

            .hero-title {
                font-size: clamp(1.9rem, 5.5vw, 3rem);
            }

            .hero-overview {
                -webkit-line-clamp: 2;
                line-clamp: 2;
            }

            .detail-body {
                padding: 20px 16px 50px !important;
                grid-template-columns: 1fr !important;
                gap: 24px !important;
                overflow: hidden !important;
                width: 100% !important;
                max-width: 100vw !important;
            }

            .detail-body>div:first-child {
                min-width: 0;
                overflow: hidden;
                width: 100%;
            }

            .detail-sidebar {
                order: -1;
                display: grid !important;
                grid-template-columns: 120px 1fr !important;
                gap: 14px;
                align-items: start;
                width: 100%;
            }

            .detail-poster-wrap {
                margin-bottom: 0 !important;
                width: 120px;
            }

            .download-section h3 {
                font-size: 0.9rem;
                margin-bottom: 10px;
            }

            .dl-option {
                padding: 10px 12px;
                gap: 10px;
            }

            .dl-option-info {
                width: 100%;
            }

            .dl-btn {
                justify-content: center;
                padding: 9px 10px;
            }

            .detail-hero {
                height: clamp(320px, 72vw, 460px);
            }

            .detail-hero-content {
                padding: 56px 16px 24px !important;
                max-width: 100%;
            }

            .detail-title {
                font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
                line-height: 1.1 !important;
            }

            .detail-action-row {
                gap: 7px;
                flex-wrap: wrap;
            }

            .btn-hero {
                padding: 9px 14px !important;
                font-size: 0.82rem !important;
            }

            #detailPlayerSection {
                margin-bottom: 20px;
            }

            .detail-player-hint {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
                padding: 10px 12px;
            }

            .detail-overview-full {
                font-size: 0.88rem;
                line-height: 1.65;
                word-break: break-word;
            }

            .detail-genre-tags {
                gap: 5px;
                flex-wrap: wrap;
            }

            .cast-section {
                margin-top: 24px;
                padding-top: 20px;
                width: 100%;
                overflow: hidden;
            }

            .cast-grid {
                grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)) !important;
                gap: 8px !important;
                width: 100%;
            }

            .more-like-section {
                margin-top: 24px;
                padding-top: 20px;
                overflow: hidden;
            }

            .more-like-scroll {
                overflow-x: auto;
                margin: 0;
            }

            .more-like-card {
                width: 108px !important;
            }

            .share-section {
                padding: 14px;
                margin-top: 24px;
            }

            .share-buttons {
                gap: 6px;
                flex-wrap: wrap;
            }

            .share-btn {
                font-size: 0.72rem !important;
                padding: 7px 10px !important;
            }

            .comments-section {
                margin-top: 28px;
                padding-top: 24px;
                overflow: hidden;
            }

            .comment-form {
                padding: 14px;
            }

            .comment-form-row {
                flex-direction: column;
            }

            .comment-name-input {
                width: 100% !important;
            }

            .captcha-row {
                flex-wrap: wrap;
                gap: 8px;
            }

            .comment-footer-row {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .btn-submit-comment {
                width: 100%;
                text-align: center;
            }

            .season-selector {
                flex-wrap: wrap;
            }

            .ep-grid {
                gap: 5px;
            }

            .ep-btn {
                width: 38px !important;
                height: 38px !important;
                font-size: 0.75rem !important;
            }

            .filter-bar {
                gap: 6px;
            }

            .filter-select {
                min-width: 100px;
            }

            .detail-skeleton-hero {
                height: clamp(200px, 55vw, 320px);
            }

            .detail-skeleton-body {
                padding: 20px 16px;
            }
        }

        @media (max-width: 480px) {
            /* Hero: left-aligned on mobile */
            .hero {
                height: clamp(360px, 90vw, 500px);
                align-items: flex-start;
            }

            .hero-content {
                align-items: flex-start;
                text-align: left;
                padding: 0 20px clamp(28px, 7vw, 44px);
                max-width: 100%;
            }

            .hero-dots {
                align-self: center;
                margin-top: 14px;
            }

            .hero-title {
                font-size: clamp(1.6rem, 7.5vw, 2.4rem);
            }

            .hero-overview {
                max-width: 100%;
                -webkit-line-clamp: 3;
                line-clamp: 3;
            }

            .hero-meta {
                justify-content: flex-start;
            }

            .hero-actions {
                justify-content: flex-start;
            }

            .detail-sidebar {
                grid-template-columns: 100px 1fr !important;
                gap: 10px;
            }

            .detail-poster-wrap {
                width: 100px !important;
            }

            .more-like-card {
                width: 98px !important;
            }

            .cast-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 7px !important;
            }

            .detail-title {
                font-size: clamp(1.2rem, 5vw, 1.7rem) !important;
            }

            .btn-hero {
                font-size: 0.78rem !important;
                padding: 8px 12px !important;
            }

            .movies-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .card-title {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 360px) {
            :root {
                --nav-h: 56px;
            }

            .movies-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .card-title {
                font-size: 0.7rem;
            }

            .cast-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1200px) {
            .movies-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }

            .cast-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
        }

        @media (min-width: 1600px) {
            main {
                max-width: 1500px;
                margin: 0 auto;
            }
        }

        /* No-JavaScript skeleton fallback */
        /* .noscript-shell lives inside <noscript> so it only exists in the DOM
   when JS is disabled — no JS-side hiding needed, just show it. */
        .noscript-shell {
            display: block;
        }

        /* Noscript nav */
        .noscript-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            height: var(--nav-h);
            display: flex;
            align-items: center;
            padding: 0 clamp(12px, 4vw, 48px);
            background: rgba(8, 11, 18, 0.92);
            backdrop-filter: blur(18px);
            border-bottom: 1px solid var(--border);
            gap: 20px;
        }

        .noscript-nav-links {
            display: flex;
            gap: 4px;
            margin-left: 18px;
        }

        .noscript-nav-links span {
            font-size: 0.85rem;
            font-weight: 500;
            padding: 6px 14px;
            border-radius: 6px;
            color: var(--muted);
        }

        .noscript-nav-links span:first-child {
            color: #fff;
            background: rgba(255, 255, 255, 0.07);
        }

        .noscript-nav-right {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .noscript-nav-search {
            width: clamp(140px, 22vw, 280px);
            height: 34px;
            border-radius: 8px;
        }

        .noscript-nav-btn {
            width: 82px;
            height: 34px;
            border-radius: 8px;
        }

        @media (max-width: 768px) {

            .noscript-nav-links,
            .noscript-nav-search {
                display: none;
            }
        }

        .noscript-hero {
            margin-top: var(--nav-h);
            height: clamp(360px, 62vw, 640px);
            position: relative;
            overflow: hidden;
            background: var(--surface);
        }

        .noscript-hero-gradient {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(90deg,
                    rgba(8, 11, 18, 0.96) 0%,
                    rgba(8, 11, 18, 0.5) 60%,
                    transparent 100%),
                linear-gradient(0deg, var(--bg) 0%, transparent 40%);
        }

        .noscript-hero-content {
            position: relative;
            z-index: 2;
            padding: clamp(28px, 6vw, 70px) clamp(16px, 5vw, 80px);
            max-width: 560px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 16px;
        }

        .noscript-hero-badge {
            width: 90px;
            height: 22px;
            border-radius: 20px;
        }

        .noscript-hero-title {
            height: clamp(52px, 8vw, 80px);
            width: 70%;
            border-radius: 8px;
        }

        .noscript-hero-title-sub {
            height: clamp(36px, 5vw, 52px);
            width: 45%;
            border-radius: 8px;
        }

        .noscript-hero-meta {
            display: flex;
            gap: 10px;
        }

        .noscript-hero-meta span {
            height: 14px;
            border-radius: 6px;
        }

        .noscript-hero-overview-1 {
            height: 14px;
            width: 100%;
            border-radius: 6px;
        }

        .noscript-hero-overview-2 {
            height: 14px;
            width: 85%;
            border-radius: 6px;
        }

        .noscript-hero-overview-3 {
            height: 14px;
            width: 60%;
            border-radius: 6px;
        }

        .noscript-hero-actions {
            display: flex;
            gap: 10px;
            margin-top: 4px;
        }

        .noscript-hero-btn {
            height: 40px;
            border-radius: 8px;
        }

        .noscript-main {
            padding: 0 clamp(12px, 4vw, 48px) 60px;
        }

        .noscript-section {
            margin-top: 80px;
        }

        .noscript-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .noscript-section-title {
            height: 28px;
            width: 200px;
            border-radius: 6px;
        }

        .noscript-see-all {
            height: 28px;
            width: 64px;
            border-radius: 6px;
        }

        .noscript-pills {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 22px;
        }

        .noscript-pill {
            height: 32px;
            border-radius: 20px;
        }

        .noscript-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill,
                    minmax(clamp(120px, 23vw, 160px), 1fr));
            gap: clamp(10px, 2vw, 18px);
        }

        .noscript-card {
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .noscript-card-poster {
            aspect-ratio: 2/3;
            border-radius: var(--radius) var(--radius) 0 0;
        }

        .noscript-card-info {
            padding: 10px 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            background: var(--card);
        }

        .noscript-card-title {
            height: 13px;
            width: 80%;
            border-radius: 4px;
        }

        .noscript-card-meta {
            height: 11px;
            width: 50%;
            border-radius: 4px;
        }

        .noscript-notice {
            display: flex;
            align-items: center;
            gap: 14px;
            background: rgba(232, 160, 32, 0.08);
            border: 1px solid rgba(232, 160, 32, 0.25);
            border-radius: 12px;
            padding: 16px 20px;
            margin: 32px 0 0;
            font-size: 0.88rem;
            color: var(--text);
            line-height: 1.55;
        }

        .noscript-notice svg {
            flex-shrink: 0;
            color: var(--accent);
        }

        .noscript-notice strong {
            color: var(--accent);
        }

        @media (max-width: 768px) {
            .noscript-grid {
                grid-template-columns: repeat(auto-fill,
                        minmax(clamp(100px, 28vw, 140px), 1fr));
                gap: 10px;
            }
        }

        @media (max-width: 480px) {
            .noscript-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
        }

        @media (min-width: 1200px) {
            .noscript-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
        }

        @media (min-width: 1600px) {
            .noscript-main {
                max-width: 1500px;
                margin: 0 auto;
            }
        }

        /* ── Enhancement: Genre pill on card ── */
        .card-genre-pill {
            display: inline-block;
            margin-top: 4px;
            padding: 2px 7px;
            border-radius: 20px;
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--accent);
            background: rgba(232, 160, 32, 0.12);
            border: 1px solid rgba(232, 160, 32, 0.25);
        }

        /* ── Enhancement: Popularity dot on card ── */
        .card-pop-dot {
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-left: 2px;
            vertical-align: middle;
        }

        /* ── Enhancement: Country tags on detail page ── */
        .detail-country-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text);
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid var(--border);
        }

        /* ── Enhancement: Status tag (Ongoing / Ended) ── */
        .detail-status-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 9px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text);
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
        }

        /* ── Enhancement: Movie tagline ── */
        .detail-tagline {
            font-size: 0.82rem;
            font-style: italic;
            color: var(--muted);
            margin-top: 6px;
            margin-bottom: 2px;
            padding-left: 2px;
            line-height: 1.4;
            border-left: 2px solid var(--accent);
            padding-left: 10px;
        }

        
        .brave-banner {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%) translateY(120px);
            z-index: 999;
            width: min(620px, calc(100vw - 32px));
            opacity: 0;
            transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
            pointer-events: none;
        }

        .brave-banner.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
            pointer-events: all;
        }

        .brave-banner-inner {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px 14px 18px;
            background: linear-gradient(135deg, #1a1205 0%, #1c1810 100%);
            border: 1px solid rgba(251, 84, 43, 0.35);
            border-radius: 16px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 108, 55, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            position: relative;
        }

        .brave-banner-icon {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            background: rgba(251, 84, 43, 0.12);
            border-radius: 12px;
            border: 1px solid rgba(251, 84, 43, 0.2);
        }

        .brave-banner-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .brave-banner-text strong {
            font-size: 0.88rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.3;
        }

        .brave-banner-text span {
            font-size: 0.75rem;
            color: var(--muted);
            line-height: 1.4;
        }

        .brave-banner-links {
            display: flex;
            gap: 7px;
            flex-shrink: 0;
        }

        .brave-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.15s, opacity 0.15s;
            white-space: nowrap;
        }

        .brave-link:hover {
            transform: translateY(-1px);
            opacity: 0.88;
        }

        .brave-link.ios {
            background: rgba(255, 255, 255, 0.08);
            color: #e8eaf0;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .brave-link.android {
            background: rgba(61, 220, 132, 0.12);
            color: #3ddc84;
            border: 1px solid rgba(61, 220, 132, 0.2);
        }

        .brave-link.desktop {
            background: rgba(251, 84, 43, 0.15);
            color: #ff8c6b;
            border: 1px solid rgba(251, 84, 43, 0.25);
        }

        .brave-banner-close {
            position: absolute;
            top: 8px;
            right: 10px;
            font-size: 1.1rem;
            line-height: 1;
            color: var(--muted);
            background: none;
            border: none;
            cursor: pointer;
            padding: 2px 5px;
            border-radius: 4px;
            transition: color 0.15s;
        }

        .brave-banner-close:hover {
            color: #fff;
        }

        @media (max-width: 600px) {
            .brave-banner {
                bottom: 16px;
            }

            .brave-banner-inner {
                flex-wrap: wrap;
                gap: 10px;
                padding: 14px;
            }

            .brave-banner-text strong {
                font-size: 0.82rem;
            }

            .brave-banner-links {
                width: 100%;
                justify-content: flex-start;
            }

            .brave-link {
                font-size: 0.72rem;
                padding: 5px 10px;
            }
        }

        
        .brave-inline-bar {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 14px;
            margin-top: 6px;
            border-radius: 10px;
            background: linear-gradient(90deg, rgba(251, 84, 43, 0.15) 0%, rgba(255, 108, 55, 0.08) 100%);
            border: 1px solid rgba(251, 84, 43, 0.55);
            overflow: visible;
            flex-wrap: wrap;
            box-shadow: 0 0 14px rgba(251, 84, 43, 0.25), inset 0 0 20px rgba(251, 84, 43, 0.06);
            animation: bravePulse 2.5s ease-in-out infinite;
        }

        @keyframes bravePulse {

            0%,
            100% {
                box-shadow: 0 0 10px rgba(251, 84, 43, 0.25), inset 0 0 20px rgba(251, 84, 43, 0.06);
                border-color: rgba(251, 84, 43, 0.45);
            }

            50% {
                box-shadow: 0 0 22px rgba(251, 84, 43, 0.55), inset 0 0 28px rgba(251, 84, 43, 0.12);
                border-color: rgba(251, 84, 43, 0.85);
            }
        }
        .brave-inline-glow {
            position: absolute;
            inset: 0;
            border-radius: 10px;
            background: linear-gradient(90deg, transparent 0%, rgba(251, 84, 43, 0.22) 50%, transparent 100%);
            background-size: 200% 100%;
            animation: braveShimmer 2s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes braveShimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .brave-inline-msg {
            font-size: 0.78rem;
            color: #e0d5cf;
            flex: 1;
            min-width: 0;
        }

        .brave-inline-msg strong {
            color: #ff7043;
            font-weight: 700;
        }

        .brave-inline-links {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .brave-inline-link {
            font-size: 0.75rem;
            font-weight: 700;
            color: #FB542B;
            text-decoration: none;
            transition: color 0.15s, opacity 0.15s;
        }

        .brave-inline-link:hover {
            color: #ff8c6b;
        }

        .brave-inline-sep {
            color: rgba(251, 84, 43, 0.45);
            font-size: 0.7rem;
        }

        /* Tooltip */
        .brave-tooltip {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: red;
            color: #fff;
            font-size: 1rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            white-space: nowrap;
            pointer-events: none;
            animation: tooltipBounce 2.5s ease-in-out infinite;
            box-shadow: 0 2px 8px rgba(251, 84, 43, 0.5);
        }

        .brave-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: red;
        }

        @keyframes tooltipBounce {

            0%,
            100% {
                transform: translateX(-50%) translateY(0);
            }

            50% {
                transform: translateX(-50%) translateY(-4px);
            }
        }

        @media (max-width: 480px) {
            .brave-inline-bar {
                gap: 7px;
                padding: 8px 11px;
                margin-top: 10px;
            }

            .brave-inline-msg {
                font-size: 0.72rem;
            }

            .brave-inline-links {
                width: 100%;
            }

            /* Move "Read me!" below the bar on mobile so it doesn't overlap server buttons */
            .brave-tooltip {
                top: auto;
                bottom: -28px;
                transform: translateX(-50%);
            }

            .brave-tooltip::after {
                top: auto;
                bottom: 100%;
                border-top-color: transparent;
                border-bottom-color: red;
            }

            
        }

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardPop {
    from { opacity: 0; transform: translateY(16px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes detailTitleIn {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes detailMetaIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes accentBarGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes badgePop {
    0%   { opacity: 0; transform: scale(0.7); }
    70%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0   rgba(229, 9, 20, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(229, 9, 20, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(229, 9, 20, 0);    }
}
@keyframes navGlow {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes shimmerV2 {
    0%   { background-position: -700px 0; }
    100% { background-position:  700px 0; }
}
@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes toastSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}
@keyframes posterReveal {
    from { opacity: 0; transform: scale(1.04) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes sectionTitleSlide {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.page.active {
    animation: pageEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.movie-card {
    animation: cardPop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--card-i, 0) * 40ms);
}
.movie-card:nth-child(1)  { --card-i: 0; }
.movie-card:nth-child(2)  { --card-i: 1; }
.movie-card:nth-child(3)  { --card-i: 2; }
.movie-card:nth-child(4)  { --card-i: 3; }
.movie-card:nth-child(5)  { --card-i: 4; }
.movie-card:nth-child(6)  { --card-i: 5; }
.movie-card:nth-child(7)  { --card-i: 6; }
.movie-card:nth-child(8)  { --card-i: 7; }
.movie-card:nth-child(n+9) { --card-i: 8; }

.hero-badge {
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.hero-title {
    animation: heroContentIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
.hero-meta {
    animation: heroContentIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
.hero-overview {
    animation: heroContentIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}
.hero-actions {
    animation: heroContentIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}
.hero-dots {
    animation: heroContentIn 0.45s ease 0.52s both;
}

.detail-title {
    animation: detailTitleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.detail-meta {
    animation: detailMetaIn 0.45s ease 0.15s both;
}
.detail-overview-short {
    animation: detailMetaIn 0.45s ease 0.22s both;
}
.detail-action-row {
    animation: detailMetaIn 0.45s ease 0.3s both;
}
.detail-body {
    animation: pageEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* Poster reveal */
.detail-poster-wrap {
    animation: posterReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    /* Floating glow on sidebar poster */
    box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0,0,0,0.6);
    transition: box-shadow 0.4s, transform 0.4s;
}
.detail-poster-wrap:hover {
    transform: scale(1.015) translateY(-3px);
    box-shadow: 0 0 0 1px rgba(232,160,32,0.3), 0 28px 70px rgba(0,0,0,0.75);
}

.section-title {
    animation: sectionTitleSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-title::before {
    transform-origin: top;
    animation: accentBarGrow 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.player-activate-screen .pa-play {
    animation: pulseRing 2s ease-out infinite;
}
.player-activate-screen:hover .pa-play {
    animation: pulseRing 0.8s ease-out infinite;
}

.logo:hover .logo-icon svg {
    animation: logoSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface)               0%,
        rgba(255,255,255,0.055)     35%,
        rgba(255,255,255,0.09)      50%,
        rgba(255,255,255,0.055)     65%,
        var(--surface)              100%
    );
    background-size: 700px 100%;
    animation: shimmerV2 1.6s ease-in-out infinite;
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(232, 160, 32, 0.45) 40%,
        rgba(232, 160, 32, 0.45) 60%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
nav.scrolled::after {
    opacity: 1;
}
nav.scrolled {
    background: rgba(8, 11, 18, 0.97);
    box-shadow: 0 4px 32px rgba(0,0,0,0.45);
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.025);
    border-color: rgba(232, 160, 32, 0.5);
    box-shadow:
        0 0 0 1px rgba(232,160,32,0.15),
        0 12px 32px rgba(0,0,0,0.55),
        0 0 24px rgba(232,160,32,0.08);
}

.card-overlay {
    background: linear-gradient(
        0deg,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.4)  50%,
        transparent      100%
    );
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-back-btn {
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-back-btn:hover {
    transform: translateX(-3px);
    color: #fff;
    background: rgba(0,0,0,0.72);
    border-color: rgba(255,255,255,0.22);
}

.genre-pill {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.genre-pill:active {
    transform: scale(0.94);
}

#toast.show {
    animation: toastSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-bg {
    transition: background-image 0s, opacity 0.8s ease;
}

.detail-hero-bg {
    transition: background-image 0s, opacity 0.6s ease;
    transform-origin: center;
}

.see-all {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.see-all:hover {
    background: rgba(232, 160, 32, 0.12);
    transform: translateX(2px);
}

.btn-hero {
    position: relative;
    overflow: hidden;
}
.btn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.btn-hero:active::after {
    opacity: 1;
}
.btn-hero:hover {
    transform: translateY(-3px);
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.btn-hero.play:hover {
    box-shadow: 0 8px 28px rgba(229, 9, 20, 0.45);
}
.btn-hero.dl:hover {
    box-shadow: 0 8px 28px rgba(232, 160, 32, 0.4);
}

.more-like-card {
    animation: cardPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.more-like-card:nth-child(1)  { animation-delay: 0ms; }
.more-like-card:nth-child(2)  { animation-delay: 40ms; }
.more-like-card:nth-child(3)  { animation-delay: 80ms; }
.more-like-card:nth-child(4)  { animation-delay: 120ms; }
.more-like-card:nth-child(5)  { animation-delay: 160ms; }
.more-like-card:nth-child(n+6){ animation-delay: 200ms; }

.cast-card {
    animation: cardPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-dot {
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

#scrollTopBtn:hover {
    transform: translateY(-4px) scale(1.1);
}

.server-btn {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.server-btn.active {
    transform: scale(1.05);
}

.ep-btn {
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ep-btn:hover, .ep-btn.active {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes logoBreathe {
    0%, 100% {
        box-shadow: 0 0 0px 0px rgba(232,160,32,0);
    }
    50% {
        box-shadow: 0 0 14px 4px rgba(232,160,32,0.45);
    }
}
.logo-icon {
    animation: logoBreathe 3.2s ease-in-out infinite;
}
/* Pause breathing on hover so the spin takes over cleanly */
.logo:hover .logo-icon {
    animation: none;
}

/* ── A2. Hero badge — float + shimmer border ── */
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-3px);  }
}
@keyframes badgeBorderSpin {
    0%   { border-color: rgba(232,160,32,0.25); }
    50%  { border-color: rgba(232,160,32,0.65); }
    100% { border-color: rgba(232,160,32,0.25); }
}
.hero-badge {
    animation:
        badgePop    0.5s  cubic-bezier(0.34,1.56,0.64,1) 0.1s  both,
        badgeFloat  3.8s  ease-in-out                    1.5s  infinite,
        badgeBorderSpin 3.8s ease-in-out                 1.5s  infinite;
}

@keyframes accentBarPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: none;
    }
    50% {
        opacity: 0.7;
        box-shadow: 2px 0 10px rgba(232,160,32,0.55);
    }
}
.section-title::before {
    animation:
        accentBarGrow  0.35s cubic-bezier(0.22,1,0.36,1) 0.1s both,
        accentBarPulse 2.6s  ease-in-out                 0.5s infinite;
}

@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 0px 0px rgba(232,160,32,0); }
    50%       { box-shadow: 0 0 8px 2px rgba(232,160,32,0.5); }
}
.hero-dot.active {
    animation:
        dotGlow 2.4s ease-in-out infinite;
}

@keyframes qualityShimmer {
    0%   { background-position: -60px 0; }
    100% { background-position: 120px 0; }
}
.card-quality {
    background: linear-gradient(
        100deg,
        var(--accent)        0%,
        #ffd770              35%,
        var(--accent)        65%,
        var(--accent)        100%
    );
    background-size: 180px 100%;
    animation: qualityShimmer 2.2s linear infinite;
}

@keyframes playIdlePulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(229,9,20,0); }
    55%       { box-shadow: 0 0 0 8px rgba(229,9,20,0.22); }
}
.btn-hero.play {
    animation: playIdlePulse 2.8s ease-in-out infinite;
}
/* Don't double-animate on hover */
.btn-hero.play:hover {
    animation: none;
}

@keyframes scrollBtnBounce {
    0%, 100% { transform: translateY(0); }
    45%       { transform: translateY(-5px); }
    65%       { transform: translateY(-2px); }
}
#scrollTopBtn {
    animation: scrollBtnBounce 2.2s ease-in-out infinite;
}
#scrollTopBtn:hover {
    animation: none;
    transform: translateY(-4px) scale(1.1);
}

@keyframes navBorderSweep {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
nav::after {
    background: linear-gradient(
        90deg,
        transparent              0%,
        rgba(232,160,32,0)       15%,
        rgba(232,160,32,0.55)    40%,
        rgba(232,160,32,0.55)    60%,
        rgba(232,160,32,0)       85%,
        transparent              100%
    );
    background-size: 200% 100%;
    animation: navBorderSweep 5s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s;
}
nav.scrolled::after {
    opacity: 1;
}

@keyframes heroBgZoom {
    0%   { transform: scale(1);    }
    100% { transform: scale(1.06); }
}
.hero-bg {
    animation: heroBgZoom 22s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes searchRingShimmer {
    0%   { border-color: var(--accent); box-shadow: 0 0 0px 0px rgba(232,160,32,0); }
    50%  { border-color: #ffd770;        box-shadow: 0 0 8px 1px rgba(232,160,32,0.2); }
    100% { border-color: var(--accent); box-shadow: 0 0 0px 0px rgba(232,160,32,0); }
}
.search-bar:focus-within {
    animation: searchRingShimmer 2s ease-in-out infinite;
}

@keyframes posterGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px var(--border),
            0 20px 60px rgba(0,0,0,0.6),
            0 0 0px 0px rgba(232,160,32,0);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(232,160,32,0.2),
            0 24px 68px rgba(0,0,0,0.7),
            0 0 32px 4px rgba(232,160,32,0.1);
    }
}
.detail-poster-wrap {
    animation: posterGlow 4s ease-in-out infinite;
}
.detail-poster-wrap:hover {
    animation: none;
}

@keyframes cardScan {
    0%   { top: -10%; }
    100% { top: 110%; }
}
.movie-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent        0%,
        rgba(232,160,32,0.3) 30%,
        rgba(232,160,32,0.7) 50%,
        rgba(232,160,32,0.3) 70%,
        transparent        100%
    );
    top: -10%;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.2s;
    border-radius: 0;
}
.movie-card:hover::before {
    opacity: 1;
    animation: cardScan 1.4s linear infinite;
}

@keyframes pillBreath {
    0%, 100% { box-shadow: 0 0 0 0px rgba(232,160,32,0); }
    50%       { box-shadow: 0 0 8px 2px rgba(232,160,32,0.35); }
}
.genre-pill.active {
    animation: pillBreath 2s ease-in-out infinite;
}

/* ── A15. Btn-primary (Shuffle) — subtle background pulse ── */
@keyframes shufflePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.82; box-shadow: 0 0 12px 2px rgba(232,160,32,0.45); }
}
.btn-primary {
    animation: shufflePulse 3s ease-in-out infinite;
}
.btn-primary:hover {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .logo-icon,
    .hero-badge,
    .section-title::before,
    .hero-dot.active,
    .card-quality,
    .btn-hero.play,
    #scrollTopBtn,
    .hero-bg,
    .detail-poster-wrap,
    .movie-card::before,
    .genre-pill.active,
    .btn-primary {
        animation: none !important;
    }
}

/* ── A17. Hero — ambient cinematic grain / noise overlay ── */
@keyframes grainShift {
    0%   { transform: translate(0,   0);   }
    10%  { transform: translate(-2%, -2%); }
    20%  { transform: translate(3%,  1%);  }
    30%  { transform: translate(-1%, 3%);  }
    40%  { transform: translate(2%,  -1%); }
    50%  { transform: translate(-3%, 2%);  }
    60%  { transform: translate(1%,  -3%); }
    70%  { transform: translate(-2%, 1%);  }
    80%  { transform: translate(3%,  -2%); }
    90%  { transform: translate(-1%, 3%);  }
    100% { transform: translate(0,   0);   }
}
.hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grainShift 0.5s steps(1) infinite;
    mix-blend-mode: overlay;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: none; }
    50%       { text-shadow: 0 0 40px rgba(255,255,255,0.08); }
}
.hero-title {
    animation:
        heroContentIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.18s both,
        titleGlow      6s  ease-in-out                  2s    infinite;
}

@keyframes mlCardBorder {
    0%, 100% { border-color: var(--border); }
    50%       { border-color: rgba(232,160,32,0.18); }
}
.more-like-card {
    animation:
        cardPop       0.35s cubic-bezier(0.22,1,0.36,1) both,
        mlCardBorder  4s    ease-in-out                 infinite;
}
.more-like-card:hover {
    animation: none;
    transform: translateY(-4px);
    border-color: rgba(232,160,32,0.4);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

/* ── A20. Prefers-reduced-motion — kill grain+glow too ── */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-title,
    .more-like-card {
        animation: none !important;
    }
}

/* Cast card is now an <a> tag — reset link styles */
a.cast-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* Hover lift + gold glow */
a.cast-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(232,160,32,0.45);
    box-shadow: 0 10px 28px rgba(0,0,0,0.55), 0 0 18px rgba(232,160,32,0.1);
}

/* External link hint icon — hidden by default, fades in on hover */
.cast-link-hint {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    background: rgba(8,11,18,0.82);
    border: 1px solid rgba(232,160,32,0.4);
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
    z-index: 4;
}
a.cast-card:hover .cast-link-hint {
    opacity: 1;
    transform: scale(1);
}

/* Ensure the photo wrap is position:relative for the hint to anchor to */
a.cast-card .cast-photo-wrap {
    position: relative;
}

/* Subtle photo zoom on hover */
a.cast-card:hover .cast-photo-wrap img {
    transform: scale(1.06);
}

/* Name gets accent colour tint on hover */
a.cast-card:hover .cast-real-name {
    color: var(--accent);
    transition: color 0.2s;
}

/* Keyboard focus ring */
a.cast-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Override the default cursor now that cast cards are links */
a.cast-card {
    cursor: pointer;
}

