/* ============================================================
   NightCine template — dark cinema look with neon accents.
   Palette / type derived from the G15 snapshot: deep navy background,
   cyan→purple→pink neon, Bebas Neue display, Orbitron micro-labels, Inter body.
   Page-specific blocks are scoped by <body class="page-xxx">.
   ============================================================ */

:root {
    --primary: #00f5ff;
    --neon-purple: #bf00ff;
    --neon-pink: #ff006e;
    --neon-gold: #ffd700;
    --bg: #0a0e1a;
    --surface: #111827;
    --card: #151c2e;
    --card-alt: #0d1220;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #ffffff;
    --text-2: #d1d5db;
    --muted: #9ca3af;
    --muted-2: #6b7280;
    --primary-soft: rgba(0, 245, 255, 0.12);
    --primary-line: rgba(0, 245, 255, 0.35);
    --primary-glow: rgba(0, 245, 255, 0.3);
    --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    --font-label: 'Orbitron', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --nav-h: 72px;
    --gutter: 24px;
    --max: 1600px;
}
@supports (color: color-mix(in srgb, red 50%, transparent)) {
    :root {
        --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
        --primary-line: color-mix(in srgb, var(--primary) 35%, transparent);
        --primary-glow: color-mix(in srgb, var(--primary) 30%, transparent);
    }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; }
::selection { background: var(--primary); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1f293d; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-line); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ambient neon glow blobs behind the whole page */
.nc-ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nc-ambient span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.09; }
.nc-ambient-a { top: -120px; left: 15%; width: 600px; height: 600px; background: var(--primary); }
.nc-ambient-b { bottom: 10%; right: 10%; width: 500px; height: 500px; background: var(--neon-purple); }
.nc-ambient-c { top: 45%; left: 55%; width: 400px; height: 400px; background: var(--neon-pink); opacity: 0.05; }
.nc-main { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 24px); min-height: 60vh; }
body.page-home .nc-main, body.page-detail .nc-main, body.page-landing .nc-main { padding-top: 0; }

/* ---------- shared atoms ---------- */
.tag-badge {
    font-family: var(--font-label);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}
.gradient-text-gold {
    background: linear-gradient(135deg, var(--neon-gold), #ff8c00, var(--neon-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--neon-gold);
}
.glass-panel { background: rgba(17, 24, 39, 0.85); border: 1px solid var(--line); border-radius: var(--radius-lg); backdrop-filter: blur(8px); }
.glass-dark { background: rgba(10, 14, 26, 0.95); border: 1px solid var(--line); }
.glass-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: var(--radius);
    background: rgba(17, 24, 39, 0.85); border: 1px solid var(--line);
    color: var(--text-2); font-size: 0.85rem; transition: all 0.25s;
}
.glass-pill:hover { color: #fff; border-color: var(--line-strong); }
.btn-neon {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--neon-purple));
    color: #000; font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 0 10px var(--primary-glow);
    position: relative; overflow: hidden; transition: all 0.25s; white-space: nowrap;
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 0 22px var(--primary-glow); }
.btn-outline-neon {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius);
    color: var(--primary); border: 1px solid var(--primary-line);
    font-weight: 600; font-size: 0.85rem; transition: all 0.25s; white-space: nowrap;
}
.btn-outline-neon:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 14px; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 26, 0.85), rgba(10, 14, 26, 0.35) 45%, transparent); pointer-events: none; }
.hero-bottom-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(10, 14, 26, 0.2) 55%, var(--bg)); pointer-events: none; }
.search-input {
    color: #fff; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-line); border-radius: 10px;
    padding: 0 16px; height: 40px; width: 100%; transition: all 0.25s;
}
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { outline: none; border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.scroll-x { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.sr-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.meta-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 500;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text-2);
}
.meta-pill small { color: var(--muted-2); font-size: 0.7em; }
.meta-pill.rating { color: #facc15; background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.25); font-weight: 700; }
.meta-pill.quality { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); font-family: var(--font-label); font-size: 0.65rem; letter-spacing: 0.1em; }
.meta-pill.danger { color: #f87171; background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); }
.genre-tag {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--primary-line);
    color: var(--primary); font-size: 0.75rem; font-weight: 500; transition: all 0.2s;
}
.genre-tag:hover, .genre-tag.active { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }

/* ---------- navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    background: linear-gradient(to bottom, rgba(10, 14, 26, 0.95), rgba(10, 14, 26, 0));
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { background: rgba(10, 14, 26, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.nav-container {
    max-width: var(--max); margin: 0 auto; height: 100%;
    display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-image, .footer-logo img { height: 44px; width: auto; object-fit: contain; filter: drop-shadow(0 0 10px var(--primary-glow)); transition: filter 0.3s; }
.logo:hover .logo-image { filter: drop-shadow(0 0 18px var(--primary-glow)); }
.logo-text { font-family: var(--font-label); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
    display: block; padding: 8px 14px; border-radius: 10px;
    color: var(--muted); font-size: 0.9rem; font-weight: 500; position: relative; transition: all 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--neon-purple)); }
.nav-search { margin-left: auto; display: flex; align-items: center; position: relative; width: 300px; max-width: 40vw; }
.nav-search .search-input { height: 38px; padding-right: 40px; font-size: 0.85rem; }
.nav-search-btn { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border-radius: 8px; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.nav-search-btn:hover { background: var(--primary-soft); }
.hamburger {
    display: none; width: 42px; height: 42px; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: rgba(17, 24, 39, 0.85); border: 2px solid var(--line-strong);
}
.hamburger-line { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- section scaffolding ---------- */
.content-section { max-width: var(--max); margin: 0 auto 40px; padding: 0 var(--gutter); position: relative; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-bar { display: inline-block; width: 4px; height: 32px; border-radius: 4px; background: linear-gradient(to bottom, var(--primary), var(--neon-purple)); flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.06em; line-height: 1; color: #fff; }
.section-title.small { font-size: 1.5rem; }
.section-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.view-more { color: var(--primary); font-size: 0.8rem; font-weight: 600; margin-right: 8px; transition: color 0.2s; }
.view-more:hover { color: #fff; }
.row-arrow {
    width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; line-height: 1;
    background: rgba(17, 24, 39, 0.85); border: 1px solid var(--line); color: var(--muted); transition: all 0.2s;
}
.row-arrow:hover { color: var(--primary); border-color: var(--primary-line); }
.scroll-row { display: flex; gap: 16px; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.scroll-row .movie-card { flex: 0 0 176px; width: 176px; scroll-snap-align: start; }
@media (min-width: 768px) { .scroll-row .movie-card { flex-basis: 210px; width: 210px; } }

.page-header { max-width: var(--max); margin: 0 auto 28px; padding: 0 var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-header-row { display: flex; align-items: center; gap: 14px; }
.page-header-row .section-bar { height: 44px; }
.page-kicker { display: block; margin-bottom: 4px; }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; letter-spacing: 0.06em; line-height: 1; color: #fff; }
.page-title.huge { font-size: 7rem; }
.page-subtitle { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
form.site-search { display: flex; gap: 8px; align-items: center; width: 420px; max-width: 100%; }
body.page-search .search-input { flex: 1; }
form.site-search .btn-neon { height: 40px; padding: 0 18px; }

/* ---------- card ---------- */
.movies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .movies-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .movies-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .movies-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .movies-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1536px) { .movies-grid { grid-template-columns: repeat(7, 1fr); } }
.movie-card { display: block; position: relative; min-width: 0; transition: transform 0.25s; }
.movie-info { min-width: 0; }
.movie-card:hover { transform: translateY(-4px) scale(1.02); }
.poster-frame {
    position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px;
    background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.05); transition: border-color 0.25s, box-shadow 0.25s;
}
.movie-card:hover .poster-frame { border-color: var(--primary-line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-soft); }
.movie-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.movie-card:hover .movie-poster { transform: scale(1.05); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(10, 14, 26, 0.5) 60%, rgba(10, 14, 26, 0.95)); opacity: 0.55; transition: opacity 0.25s; }
.movie-card:hover .card-overlay { opacity: 1; }
.quality-badge { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 245, 255, 0.85); background: var(--primary); color: #000; font-size: 0.55rem; }
.rating-badge {
    position: absolute; top: 8px; right: 8px; padding: 3px 7px; border-radius: 6px;
    background: rgba(17, 24, 39, 0.85); border: 1px solid var(--line); color: #facc15; font-size: 0.7rem; font-weight: 700;
}
.type-badge { position: absolute; bottom: 8px; left: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 245, 255, 0.8); background: var(--primary); color: #fff; color: #000; font-size: 0.55rem; }
.type-badge.is-tv { background: rgba(168, 85, 247, 0.85); color: #fff; }
.play-hint {
    position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px);
    opacity: 0; transform: scale(0.8); transition: all 0.25s;
}
.movie-card:hover .play-hint { opacity: 1; transform: scale(1); }
.rank-badge {
    position: absolute; left: -4px; bottom: 6px; z-index: 3; pointer-events: none;
    font-family: var(--font-display); font-size: 4.2rem; line-height: 0.8; color: #fff;
    -webkit-text-stroke: 2px var(--primary); text-shadow: 0 0 12px rgba(0, 0, 0, 0.9), 0 0 24px var(--primary-glow);
}
.has-rank .type-badge { left: auto; right: 8px; }
.movie-info { padding: 10px 2px 0; }
.movie-title { font-size: 0.88rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.movie-card:hover .movie-title { color: var(--primary); }
.movie-meta { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 0.75rem; margin-top: 2px; }

/* ---------- list / filters ---------- */
.list-header { justify-content: space-between; }
.filter-buttons { display: flex; align-items: center; gap: 2px; margin-left: auto; border-bottom: 1px solid var(--line); }
.filter-btn { position: relative; padding: 8px 14px; color: var(--muted); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.filter-btn:hover { color: #fff; }
.filter-btn.active { color: var(--primary); }
.filter-btn.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; box-shadow: 0 0 8px var(--primary-glow); }
.genre-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 60px 20px; max-width: 520px; margin: 0 auto; color: var(--muted);
}
.empty-state strong { color: #fff; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.05em; font-weight: 400; }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 36px 0 10px; }
.page-btn {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
a.page-btn:hover { border-color: var(--primary-line); color: var(--primary); }
.page-btn.active { background: linear-gradient(135deg, var(--primary), var(--neon-purple)); color: #000; border-color: transparent; box-shadow: 0 0 12px var(--primary-glow); }
.page-btn[aria-disabled="true"] { opacity: 0.3; }
.page-arrow { font-size: 1.3rem; }
.page-info { color: var(--muted-2); padding: 0 8px; }

/* ---------- home hero ---------- */
.home-hero { position: relative; height: 82vh; min-height: 520px; max-height: 860px; overflow: hidden; }
.home-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; transform: scale(1.02); }
.home-hero-content {
    position: relative; z-index: 2; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 70px;
    display: flex; flex-direction: column; justify-content: flex-end; max-width: min(var(--max), 100%);
}
.home-hero-content > * { max-width: 680px; }
.hero-kicker { display: inline-block; margin-bottom: 10px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: 0.05em; line-height: 0.95; margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-overview { color: var(--text-2); font-size: 0.95rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-header { margin-top: -20px; margin-bottom: 34px; position: relative; z-index: 3; }

/* ---------- landing ---------- */
.landing-header {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter);
    background: rgba(10, 14, 26, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.landing-header .logo img { height: 44px; width: auto; filter: drop-shadow(0 0 10px var(--primary-glow)); }
.landing-nav { display: flex; gap: 4px; }
.landing-nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.landing-nav a:hover { color: var(--primary); background: rgba(255, 255, 255, 0.05); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; background: rgba(17, 24, 39, 0.85); border: 2px solid var(--line-strong); color: #fff; }
.mobile-nav { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999; padding: 10px 16px; flex-direction: column; gap: 4px; }
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 12px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--primary); }
.landing-hero { position: relative; padding: 80px var(--gutter) 60px; text-align: center; overflow: hidden; }
.landing-hero::before {
    content: ""; position: absolute; left: 50%; top: -200px; width: 900px; height: 600px; margin-left: -450px; border-radius: 50%;
    background: radial-gradient(closest-side, var(--primary-soft), transparent); pointer-events: none;
}
.landing-hero-inner { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.landing-kicker { font-size: 0.7rem; }
.center-logo img { height: 110px; width: auto; filter: drop-shadow(0 0 30px var(--primary-glow)); }
.landing-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: 0.06em; line-height: 1; }
.landing-intro { color: var(--text-2); font-size: 1.02rem; max-width: 640px; }
.search-container { width: 100%; max-width: none; width: 100%; }
.search-box { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(17, 24, 39, 0.85); border: 1px solid var(--line-strong); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.search-box input { flex: 1; height: 46px; background: transparent; border: 0; color: #fff; padding: 0 14px; font-size: 1rem; }
.search-box input:focus { outline: none; }
.search-box .btn-neon { height: 46px; padding: 0 26px; }
.social-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social-btn { padding: 7px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text-2); transition: all 0.2s; }
.social-btn:hover { transform: translateY(-2px); color: #fff; }
.btn-twitter:hover { border-color: #1d9bf0; box-shadow: 0 0 14px rgba(29, 155, 240, 0.4); }
.btn-facebook:hover { border-color: #1877f2; box-shadow: 0 0 14px rgba(24, 119, 242, 0.4); }
.btn-whatsapp:hover { border-color: #25d366; box-shadow: 0 0 14px rgba(37, 211, 102, 0.4); }
.btn-telegram:hover { border-color: #2aabee; box-shadow: 0 0 14px rgba(42, 171, 238, 0.4); }
.view-site-btn { margin-top: 6px; padding: 14px 34px; font-size: 1rem; }
.landing-genres { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.landing-faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.02); }
.landing-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::before { content: "+"; color: var(--primary); font-weight: 700; font-size: 1.1rem; width: 18px; }
.landing-faq details[open] summary::before { content: "−"; }
.landing-faq summary h3 { margin: 0; font-size: 1rem; }
.landing-faq p { margin: 10px 0 0 28px; }
.landing-links a { color: var(--primary); }
.landing-links a:hover { text-decoration: underline; }
.landing-network { max-width: var(--max); margin: 0 auto 50px; padding: 0 var(--gutter); }
.landing-network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.landing-network-card { padding: 22px 20px; transition: all 0.25s; }
.landing-network-card:hover { border-color: var(--primary-line); transform: translateY(-3px); box-shadow: 0 0 20px var(--primary-soft); }
.landing-network-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.06em; color: #fff; }
.landing-network-card span { color: var(--muted-2); font-size: 0.8rem; }

/* ---------- SEO / static text ---------- */
.seo-content-wrapper { max-width: 1000px; margin: 0 auto 50px; padding: 0 var(--gutter); }
.seo-content { padding: 34px 36px; color: var(--text-2); font-size: 0.95rem; }
.seo-content h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.06em; color: #fff; margin: 26px 0 12px; padding-left: 14px; border-left: 4px solid var(--primary); line-height: 1.1; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin: 18px 0 6px; }
.seo-content p { margin-bottom: 12px; }
.seo-content ul, .seo-content ol { margin: 0 0 12px 22px; list-style: disc; }
.seo-content a { color: var(--primary); }
.content-section .static-page { padding: 34px 36px; max-width: 1000px; margin: 0 auto; }

/* ---------- 404 ---------- */
.not-found { flex-direction: column; align-items: center; text-align: center; padding-top: 30px; }
.not-found form.site-search { margin-top: 20px; }
.not-found-actions { text-align: center; padding-bottom: 60px; }

/* ---------- detail ---------- */
.detail-hero { position: relative; height: 62vh; min-height: 380px; max-height: 720px; overflow: hidden; }
.detail-backdrop { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.back-button { position: absolute; top: calc(var(--nav-h) + 16px); left: var(--gutter); z-index: 5; }
.detail-content {
    position: relative; z-index: 2; max-width: 1400px; margin: -180px auto 40px; padding: 0 var(--gutter);
    display: flex; gap: 36px; align-items: flex-start;
}
.detail-poster-container { flex: 0 0 240px; width: 240px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-soft); }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; padding-top: 70px; }
.detail-kicker { display: inline-block; margin-bottom: 8px; }
.detail-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: 0.05em; line-height: 0.95; margin-bottom: 8px; }
.detail-year { color: var(--muted); font-size: 0.55em; }
.detail-tagline { color: var(--muted); font-style: italic; font-size: 0.9rem; margin-bottom: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.episode-selector { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.selector-group { position: relative; display: flex; flex-direction: column; gap: 4px; }
.selector-label { color: var(--muted); }
.selector-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 170px;
    padding: 9px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-strong);
    color: #fff; font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
}
.selector-btn:hover { border-color: var(--primary-line); background: #1c2740; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 100%; max-width: 320px; max-height: 300px; overflow-y: auto;
    margin-top: 6px; padding: 6px; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}
.dropdown-menu.show { display: block; animation: nc-fade 0.25s ease-out both; }
.dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-size: 0.85rem; white-space: nowrap; transition: all 0.15s; }
.dropdown-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dropdown-item.selected { color: var(--primary); background: var(--primary-soft); }
.dropdown-item small { color: var(--muted-2); font-size: 0.72rem; }
.detail-actions { margin-bottom: 26px; }
.watch-btn-wrapper { position: relative; display: inline-block; padding-bottom: 6px; }
.watch-dropdown-menu { top: calc(100% - 6px); min-width: 220px; }
.detail-overview { margin-bottom: 22px; }
.section-heading { display: block; margin-bottom: 8px; }
.overview-text { color: var(--text-2); font-size: 0.95rem; max-width: 800px; }
.extra-info { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; animation: nc-fade 0.4s ease-out both; }
@media (min-width: 768px) { .extra-info { grid-template-columns: repeat(4, 1fr); } }
.info-item { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-label { color: var(--muted-2); margin-bottom: 4px; }
.info-value { color: #fff; font-size: 0.9rem; font-weight: 500; }
.detail-cast { margin-bottom: 20px; }
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 640px) { .cast-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cast-grid { grid-template-columns: repeat(6, 1fr); } }
.cast-card { display: block; text-align: center; }
.cast-photo-frame { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #1f2937; border: 1px solid var(--line); margin-bottom: 8px; transition: border-color 0.2s; }
.cast-card:hover .cast-photo-frame { border-color: var(--primary-line); }
.cast-photo { width: 100%; height: 100%; object-fit: cover; }
.cast-name { font-size: 0.82rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-character { font-size: 0.72rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-section { padding-bottom: 20px; }

/* ---------- player ---------- */
.player-container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.player-info { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.player-info .dot { color: var(--muted-2); }
.player-title { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; letter-spacing: 0.05em; line-height: 1; margin-bottom: 18px; }
.player-layout { display: flex; gap: 22px; align-items: flex-start; }
.player-main { flex: 1; min-width: 0; }
.player-wrapper {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
    background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-soft);
}
.player-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity 0.3s; }
.loading-player { position: absolute; inset: 0; z-index: 3; background: rgba(10, 14, 26, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.loading-player .tag-badge { animation: nc-pulse 1.5s ease-in-out infinite; letter-spacing: 0.3em; }
.spinner-wrap { position: relative; width: 64px; height: 64px; }
.ring { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.ring-1 { inset: 0; border-color: var(--primary-soft); border-top-color: var(--primary); animation: nc-spin 1s linear infinite; }
.ring-2 { inset: 12px; border-color: rgba(191, 0, 255, 0.2); border-bottom-color: var(--neon-purple); animation: nc-spin 1.5s linear infinite reverse; }
.server-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.server-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.server-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-2);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.2s;
}
.server-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.server-btn.active { background: linear-gradient(135deg, var(--primary), var(--neon-purple)); color: #000; border-color: transparent; box-shadow: 0 0 14px var(--primary-glow); }
.episode-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.player-notice { padding: 16px 20px; color: var(--muted); font-size: 0.85rem; }
.player-notice h3 { margin-bottom: 6px; color: #facc15; }
.player-sidebar { width: 380px; flex-shrink: 0; overflow: hidden; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #0e1424; border-bottom: 1px solid var(--line); }
.sidebar-head .selector-btn { min-width: 140px; padding: 7px 12px; }
.episode-list { max-height: 620px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.episode-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); color: var(--text-2); font-size: 0.85rem; transition: all 0.2s;
}
.episode-row:hover { border-color: var(--primary-line); background: rgba(255, 255, 255, 0.04); color: #fff; }
.episode-row.active { border-color: var(--primary); background: var(--primary-soft); color: #fff; }
.episode-num { font-family: var(--font-label); font-size: 0.75rem; font-weight: 700; color: var(--primary); min-width: 28px; }
.episode-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-now { font-size: 0.5rem; padding: 3px 6px; border-radius: 6px; background: var(--primary); color: #000; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; margin-top: 40px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-glow { position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.5; }
.footer-container { max-width: var(--max); margin: 0 auto; padding: 50px var(--gutter) 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-description { color: var(--muted-2); font-size: 0.85rem; max-width: 380px; margin-bottom: 16px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link { padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: all 0.2s; }
.social-link:hover { color: var(--primary); border-color: var(--primary-line); }
.footer-title { color: var(--muted); margin-bottom: 14px; font-size: 0.65rem; }
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: var(--muted-2); font-size: 0.85rem; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.footer-network { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-network-title { color: var(--muted); margin-bottom: 10px; }
.footer-network-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-network-links a { padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); transition: all 0.2s; }
.footer-network-links a:hover { color: var(--primary); border-color: var(--primary-line); }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-copyright { color: var(--muted-2); font-size: 0.75rem; }
.footer-extra { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 0.75rem; }
.footer-extra-link:hover { color: var(--primary); }

/* ---------- animations ---------- */
@keyframes nc-fade { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes nc-spin { to { transform: rotate(360deg); } }
@keyframes nc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .player-layout.has-sidebar { flex-direction: column; }
    .player-sidebar { width: 100%; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .detail-content { margin-top: -140px; }
    .detail-poster-container { flex-basis: 200px; width: 200px; }
}
@media (max-width: 768px) {
    :root { --gutter: 16px; --nav-h: 64px; }
    .logo-text { display: none; }
    .nav-menu {
        display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
        flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 14px 16px;
        background: rgba(10, 14, 26, 0.97); border-top: 1px solid var(--line);
    }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 14px; font-size: 1rem; }
    .nav-search { width: auto; flex: 1; max-width: none; }
    .hamburger { display: flex; }
    .landing-nav { display: none; }
    .menu-toggle { display: block; }
    .page-header { flex-direction: column; align-items: stretch; }
    form.site-search { width: 100%; }
    .page-title { font-size: 2rem; }
    .page-title.huge { font-size: 5rem; }
    .home-hero { height: 70vh; min-height: 440px; }
    .home-hero-content { padding-bottom: 50px; }
    .detail-hero { height: 44vh; min-height: 260px; }
    .detail-content { flex-direction: column; align-items: center; margin-top: -110px; text-align: center; }
    .detail-info { padding-top: 0; }
    .detail-meta, .detail-genres, .episode-selector, .hero-meta { justify-content: center; }
    .detail-content .extra-info, .detail-content .cast-grid, .detail-content .overview-text { text-align: left; }
    .filter-buttons { margin-left: 0; width: 100%; overflow-x: auto; }
    .footer-top { grid-template-columns: 1fr; gap: 26px; }
    .seo-content, .content-section .static-page { padding: 24px 20px; }
    .rank-badge { font-size: 3.2rem; }
    .section-tools .row-arrow { display: none; }
    .sr-heading { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
    .home-header .page-title { font-size: 1.6rem; margin-bottom: 10px; }
}
@media (max-width: 480px) {
    .movies-grid { gap: 10px; }
    .scroll-row .movie-card { flex-basis: 140px; width: 140px; }
    .center-logo img { height: 80px; }
    .search-box { flex-direction: column; }
    .search-box .btn-neon { width: 100%; }
}
