/* =============================================================
   LAYOUT.CSS — Combined layout styles extracted from header.php
   and footer.php inline <style> blocks
   ============================================================= */

/* ── HEADER.PHP STYLE BLOCK 1: Critical CSS ────────────────── */
:root{--background:#141414;--border:rgba(255,255,255,0.1);--border-light:rgba(255,255,255,0.05);--keycolor:#E50914;--keycolor-rgb:229,9,20;}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;line-height:1.5}
body{background-color:#141414;color:#fff;font-family:'Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.site-top-header{height:64px;display:flex;align-items:center;padding:0 20px;background:rgba(14,14,14,0.98);backdrop-filter:blur(16px);position:sticky;top:0;z-index:900;border-bottom:2px solid rgba(229,9,20,0.18);box-shadow:0 3px 18px rgba(0,0,0,0.55);width:100%;box-sizing:border-box;gap:16px}
.sidebar{background-color:#0F0F0F;border-right:solid 1px rgba(255,255,255,0.1);box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;padding:20px 16px 10px;position:fixed;top:0;transition:width .35s ease;width:240px;z-index:1012}
main{margin-left:240px;transition:margin-left .35s ease}
body.sidebar-collapsed .sidebar{width:90px}
body.sidebar-collapsed main{margin-left:90px}
@media(max-width:768px){.sidebar{transform:translateX(-100%);z-index:2000}.sidebar.mobile-open{transform:translateX(0)}main{margin-left:0!important}}
.movie-card{border-radius:14px;overflow:hidden;position:relative;background:#1a1a1a;border:1px solid rgba(255,255,255,0.06);aspect-ratio:2/3;display:block}
.fas,.far,.fab{font-family:'Font Awesome 6 Free','Font Awesome 6 Brands',sans-serif;font-display:swap}

/* ── HEADER.PHP STYLE BLOCK 2: Main Layout CSS ────────────── */
:root {
    --background: #141414;
    --border: rgba(255,255,255,0.1);
    --border-light: rgba(255,255,255,0.05);
    --keycolor: #E50914;
    --keycolor-rgb: 229, 9, 20;
    --sidebar-width-expanded: 240px;
    --sidebar-width-collapsed: 90px;
}
body { background-color: var(--background); color: #fff; font-family: 'Outfit', sans-serif; }

/* Sidebar Styles */
.sidebar {
    background-color: #0F0F0F;
    border-right: solid 1px var(--border);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    padding: 20px 16px 10px;
    position: fixed;
    top: 0;
    transition: width .35s ease;
    width: var(--sidebar-width-expanded);
    z-index: 1012;
}
.sidebar-toggle {
    align-items: center;
    background: #0F0F0F;
    border: solid 1px rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #f5f5f5;
    cursor: pointer;
    display: flex;
    height: 38px;
    justify-content: center;
    left: var(--sidebar-width-expanded);
    margin-left: -19px;
    padding: 0;
    position: fixed;
    top: 20px;
    transition: left .35s ease;
    width: 38px;
    z-index: 1013;
}
.sidebar-toggle svg { fill: currentColor; height: 24px; width: 24px; transition: transform .3s ease; }

body.sidebar-collapsed .sidebar { width: var(--sidebar-width-collapsed); }
body.sidebar-collapsed .sidebar-toggle { left: var(--sidebar-width-collapsed); }
body.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }

.sidebar-header { align-items: center; display: flex; flex-shrink: 0; justify-content: flex-start; margin-bottom: 24px; height: 40px; }
.sidebar-logo .logo-link { align-items: center; color: #fff; display: flex; gap: 10px; text-decoration: none; overflow: hidden; min-width: 0; }
.sidebar-logo .logo-image { flex-shrink: 0; width: 36px; height: 36px; min-width: 36px; transition: transform .3s ease; }
.sidebar-logo .logo-image-full {
    display: block;
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(229,9,20,0.4)) drop-shadow(0 0 2px rgba(255,255,255,0.15));
    border-radius: 6px;
    transition: filter .3s ease, transform .3s ease, max-width .35s ease, opacity .25s ease;
    flex-shrink: 0;
    animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    0%   { filter: drop-shadow(0 0 6px rgba(229,9,20,0.35)) drop-shadow(0 0 2px rgba(255,255,255,0.1)); transform: scale(1); }
    50%  { filter: drop-shadow(0 0 14px rgba(229,9,20,0.55)) drop-shadow(0 0 6px rgba(236,72,153,0.25)); transform: scale(1.01); }
    100% { filter: drop-shadow(0 0 8px rgba(229,9,20,0.4)) drop-shadow(0 0 3px rgba(139,92,246,0.2)); transform: scale(1); }
}
.sidebar-logo .logo-link:hover .logo-image-full {
    animation: none;
    filter: drop-shadow(0 0 16px rgba(229,9,20,0.6)) drop-shadow(0 0 4px rgba(255,255,255,0.12));
    transform: scale(1.04);
}
.announcement-close-btn:hover {
    color: #fff !important;
}
.sidebar-logo img.logo-image { width: auto; max-height: 36px; min-width: unset; }
.sidebar-logo .logo-text { font-size: 20px; font-weight: 600; opacity: 1; transition: opacity .25s ease, width .35s ease, max-width .35s ease; white-space: nowrap; overflow: hidden; max-width: 160px; }

body.sidebar-collapsed .sidebar-header { justify-content: center; }
body.sidebar-collapsed .sidebar-logo .logo-link { justify-content: center; gap: 0; }
body.sidebar-collapsed .sidebar-logo .logo-image-full { max-width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
body.sidebar-collapsed .sidebar-logo .logo-text { opacity: 0; pointer-events: none; max-width: 0; width: 0; overflow: hidden; }

.sidebar-nav { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li a { align-items: center; border-radius: 8px; color: #a7a7a7; display: flex; font-size: 15px; font-weight: 500; margin: 4px 0; padding: 10px 11px; text-decoration: none; transition: background-color .2s, color .2s; white-space: nowrap; height: 46px; }
.sidebar-nav li a:hover, .sidebar-nav li a.active { background: linear-gradient(to bottom right, rgba(var(--keycolor-rgb),.11) 0, rgba(var(--keycolor-rgb),0) 75%); background-color: rgba(53,55,62,.11); color: var(--keycolor); }
.sidebar-nav a svg { flex-shrink: 0; height: 24px; margin-right: 12px; width: 24px; }
.sidebar-nav .nav-text { opacity: 1; transition: opacity .2s ease .1s; }

body.sidebar-collapsed .sidebar-nav li a { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .sidebar-nav a svg { margin-right: 0; }
body.sidebar-collapsed .sidebar-nav .nav-text { opacity: 0; pointer-events: none; width: 0; display: none; }

main { margin-left: var(--sidebar-width-expanded); transition: margin-left .35s ease; width: auto; }
body.sidebar-collapsed main { margin-left: var(--sidebar-width-collapsed); }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: var(--sidebar-width-expanded); z-index: 2000; }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar-toggle { display: none; }
    main { margin-left: 0 !important; }
    body.sidebar-collapsed .sidebar { width: var(--sidebar-width-expanded); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hero-number { font-size: 8rem; font-weight: 900; line-height: 1; position: absolute; bottom: -20px; left: -10px; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.2); z-index: 0; }

/* ===================== TOP HEADER REDESIGN ===================== */
.site-top-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(14,14,14,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 2px solid rgba(229,9,20,0.18);
    box-shadow: 0 3px 18px rgba(0,0,0,0.55);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    gap: 16px;
}
@media (max-width: 767px) {
    .site-top-header {
        height: auto;
        flex-direction: column;
        padding: 0;
        align-items: stretch;
        gap: 0;
    }
}
.mob-header-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 52px;
}
.mob-header-row2 {
    display: flex;
    align-items: center;
    padding: 0 12px 8px;
    gap: 8px;
}
.mob-header-row3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 8px;
}
.mob-search-full {
    flex: 1;
    position: relative;
}
.mob-search-full input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 44px 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    font-family: 'Outfit', sans-serif;
}
.mob-search-full input:focus {
    border-color: #E50914;
    background: rgba(255,255,255,0.10);
}
.mob-search-full input::placeholder {
    color: rgba(255,255,255,0.3);
}
.mob-search-full .mob-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    background: linear-gradient(135deg, #e50914, #c20c11);
    border: none;
    border-radius: 0 10px 10px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}
.mob-search-full .mob-search-btn:hover {
    background: linear-gradient(135deg, #f01020, #d00e13);
}
.mob-18-zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239,68,68,0.12);
    border: 1.5px solid rgba(239,68,68,0.4);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 800;
    color: #f87171;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    animation: pulse18 2s ease-in-out infinite;
}
.mob-18-zone-pill:hover {
    background: rgba(239,68,68,0.2);
    color: #fff;
}
@keyframes pulse18 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(239,68,68,0.12); }
}

/* Nav links row */
.header-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.header-nav-links a,
.header-nav-links button {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all .2s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-nav-links a:hover,
.header-nav-links button:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.header-nav-links a.active-link {
    color: #fff;
    font-weight: 700;
    background: rgba(229,9,20,0.12);
}

/* 18+ content toggle */
.content-toggle-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.content-toggle-pill span.label {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.toggle-track {
    width: 34px;
    height: 18px;
    border-radius: 9px;
    position: relative;
    cursor: pointer;
    transition: background .3s;
}
.toggle-thumb {
    position: absolute;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left .3s;
}
.toggle-text {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    margin-left: 4px;
}

/* Search bar */
.header-search-form {
    position: relative;
    flex-shrink: 0;
}
.header-search-form input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 7px 34px 7px 12px;
    width: 200px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all .25s;
}
.header-search-form input:focus {
    border-color: #E50914;
    width: 260px;
    background: rgba(255,255,255,0.1);
}
.header-search-form input::placeholder {
    color: rgba(255,255,255,0.3);
}
.header-search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color .2s;
}
.header-search-form button:hover {
    color: #fff;
}

/* Icon buttons */
.header-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
}
.header-icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}
.header-icon-btn .notif-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: #E50914;
    border-radius: 50%;
    border: 2px solid #141414;
}

/* Auth button */
.header-login-btn {
    padding: 7px 20px;
    border-radius: 8px;
    background: #E50914;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}
.header-login-btn:hover {
    background: #c20c11;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229,9,20,0.3);
}

/* Right section spacer */
.header-spacer { flex: 1; min-width: 0; }

/* ---- Genre dropdown ---- */
.genre-dropdown-wrap {
    position: relative;
}
.genre-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    min-width: 400px;
    background: rgba(20,20,20,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    z-index: 999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    transform-origin: top left;
    animation: genreSlideIn 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.genre-dropdown.show { display: block; }
@keyframes genreSlideIn {
    from { opacity: 0; transform: translateX(-12px) scaleX(0.96); }
    to   { opacity: 1; transform: translateX(0) scaleX(1); }
}
.genre-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.genre-dropdown-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}
.genre-dropdown-grid a:hover {
    background: rgba(229,9,20,0.1);
    color: #fff;
}
.genre-dropdown-grid a i {
    font-size: 11px;
    width: 16px;
    text-align: center;
    opacity: 0.5;
}

/* User avatar */
.header-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(229,9,20,0.3);
    flex-shrink: 0;
    transition: border-color .2s;
}
.header-user-avatar:hover {
    border-color: rgba(229,9,20,0.6);
}
.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Responsive ---- */
.desktop-only { display: none !important; }
.mobile-only { display: flex !important; }
.header-desktop-nav,
.header-desktop-spacer,
.header-desktop-right { display: none !important; }

@media (min-width: 768px) {
    .desktop-only { display: flex !important; }
    .header-desktop-nav { display: flex !important; }
    .header-desktop-spacer { display: flex !important; flex: 1; min-width: 0; }
    .header-desktop-right { display: flex !important; align-items: center; gap: 8px; flex-shrink: 0; }
    .mobile-only { display: none !important; }
    .mob-header-row1, .mob-header-row2, .mob-header-row3 { display: none !important; }
}

/* ---- 18+ Zone pill (header, both mobile+desktop) ---- */
.hdr-zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(220,38,38,0.12));
    border: 1.5px solid rgba(239,68,68,0.5);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    color: #f87171;
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    animation: zonePillPulse 2.5s ease-in-out infinite;
}
.hdr-zone-pill:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.30), rgba(220,38,38,0.22));
    border-color: rgba(239,68,68,0.8);
    color: #fff;
    transform: scale(1.04);
}
@keyframes zonePillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.25); }
    50%       { box-shadow: 0 0 8px 3px rgba(239,68,68,0.15); }
}

/* ---- Logo animations ---- */
@keyframes logoLetterPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(229,9,20,0.4); }
    50%       { box-shadow: 0 0 22px rgba(236,72,153,0.55); }
}
@keyframes logoTextShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ── HEADER.PHP STYLE BLOCK 3: Scroll Progress Bar ─────────── */
#scrollProgressBar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #e50914, #ec4899, #8b5cf6);
    z-index: 99999;
    transition: width 0.1s linear;
    pointer-events: none;
}
/* Mobile Header Fixes */
@media (max-width: 767px) {
    body { overflow: auto !important; height: auto !important; }
    #main-content-wrapper { height: auto !important; overflow: visible !important; }
    #main-site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        background: #0a0a0a !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
    }
    .main-content-scroll { overflow-y: auto !important; height: auto !important; }
}
/* Desktop Layout Fix */
@media (min-width: 768px) {
    body { overflow: auto; height: auto; min-height: 100vh; }
    #main-content-wrapper { overflow: visible; height: auto; }
    main { min-height: 100vh; }
}

/* ── Age gate: shell + backdrop live in _age_gate_overlay.html (inline + scoped style) ── */

.ag-badge-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #8b1a1a 50%, #3b0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 6px rgba(229,9,20,0.1), 0 0 40px rgba(229,9,20,0.35);
    animation: agRingPulse 3s ease-in-out infinite;
    position: relative;
}
.ag-badge-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(229,9,20,0.8), rgba(139,92,246,0.5)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: agRingSpin 8s linear infinite;
}
@keyframes agRingPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(229,9,20,0.1), 0 0 40px rgba(229,9,20,0.35); }
    50%       { box-shadow: 0 0 0 10px rgba(229,9,20,0.06), 0 0 60px rgba(229,9,20,0.5); }
}
@keyframes agRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.ag-badge-text {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
}
.ag-badge-plus {
    font-size: 16px;
    vertical-align: super;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.ag-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 10px;
}
.ag-title span {
    background: linear-gradient(90deg, #e50914, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ag-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin-bottom: 32px;
}

.ag-warning-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.25);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.ag-btn-yes {
    width: 100%;
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    box-shadow: 0 8px 24px rgba(229,9,20,0.4), 0 2px 6px rgba(229,9,20,0.3);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}
.ag-btn-yes::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s ease;
}
.ag-btn-yes:hover::before { left: 100%; }
.ag-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(229,9,20,0.5), 0 2px 8px rgba(229,9,20,0.4);
    background: linear-gradient(135deg, #f01020 0%, #c20c12 100%);
}
.ag-btn-yes:active { transform: translateY(0); }

.ag-btn-no {
    width: 100%;
    padding: 13px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}
.ag-btn-no:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    border-color: rgba(255,255,255,0.15);
}

.ag-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 22px;
}
.ag-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.07); }
.ag-divider-text { font-size: 11px; color: rgba(255,255,255,0.2); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.1em; }

.ag-footer-note {
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    line-height: 1.6;
}
.ag-footer-note a { color: rgba(255,255,255,0.35); text-decoration: underline; text-underline-offset: 2px; }

body.ag-locked { overflow: hidden; }

@media (max-width: 480px) {
    .ag-title { font-size: 22px; }
    .ag-badge-ring { width: 76px; height: 76px; }
    .ag-badge-text { font-size: 24px; }
}

@keyframes agShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px) rotate(-1deg); }
    40%       { transform: translateX(8px) rotate(1deg); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}
#ageGateCard.ag-shake { animation: agShake 0.45s ease; }

/* ── HEADER.PHP STYLE BLOCK 5: Centered Mobile Header ─────── */
.mob-ham-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: background 0.2s;
}
.mob-ham-btn:hover { background: rgba(255,255,255,0.08); }
.mob-ham-btn i { font-size: 19px; }

.mob-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    z-index: 2;
}
.mob-logo-img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 0 8px rgba(229,9,20,0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
}
.mob-logo-letter-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e50914, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(229,9,20,0.5);
    animation: logoLetterPulse 2.5s ease-in-out infinite;
}
.mob-logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
    background: linear-gradient(90deg, #fff 0%, #ffb3b3 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoTextShimmer 3s linear infinite;
}

.mob-right-btn {
    flex-shrink: 0;
    margin-left: auto;
}
.mob-login-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 10px;
    background: #E50914;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(229,9,20,0.35);
}
.mob-login-pill:hover {
    background: #c20c11;
    box-shadow: 0 4px 16px rgba(229,9,20,0.5);
    transform: translateY(-1px);
}

/* =============================================================
   FOOTER.PHP STYLES
   ============================================================= */

/* ── FOOTER.PHP STYLE BLOCK 1: Cookie slide-in animation ──── */
@keyframes cookieSlideIn {
    from { opacity:0; transform:translateY(20px) scale(0.95); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ── FOOTER.PHP STYLE BLOCK 2: Live search dropdown ────────── */
#live-search-dropdown {
    position:absolute;top:100%;left:0;right:0;
    background:rgba(20,20,20,0.98);backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.1);border-top:none;
    border-radius:0 0 12px 12px;
    max-height:360px;overflow-y:auto;
    display:none;z-index:999;
    box-shadow:0 16px 40px rgba(0,0,0,0.6);
}
#live-search-dropdown a {
    display:flex;align-items:center;gap:12px;
    padding:10px 14px;text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,0.04);
    transition:background 0.15s;
}
#live-search-dropdown a:hover { background:rgba(229,9,20,0.1); }
#live-search-dropdown a:last-child { border-bottom:none; }
.ls-poster { width:36px;height:54px;border-radius:6px;object-fit:cover;flex-shrink:0;background:#1a1a1a; }
.ls-title { font-size:13px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ls-meta { font-size:10px;color:rgba(255,255,255,0.4);margin-top:2px; }
.ls-no-result { padding:20px;text-align:center;color:rgba(255,255,255,0.35);font-size:13px; }

/* ── FOOTER.PHP STYLE BLOCK 3: FAB pulse, scroll reveal, share toast */
@keyframes fabPulse {
    0%,100% { box-shadow:0 4px 16px rgba(139,92,246,0.45); }
    50% { box-shadow:0 4px 24px rgba(139,92,246,0.7),0 0 40px rgba(139,92,246,0.15); }
}
#randomMovieFab:hover {
    transform:scale(1.15) rotate(15deg) !important;
    box-shadow:0 6px 28px rgba(139,92,246,0.65) !important;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity:0;
    transform:translateY(30px);
    transition:opacity 0.6s ease,transform 0.6s ease;
}
.scroll-reveal.revealed {
    opacity:1;
    transform:translateY(0);
}

/* Share Toast */
#shareToast {
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%) translateY(100px);
    background:rgba(16,185,129,0.95);
    color:#fff;
    padding:10px 24px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    z-index:99999;
    transition:transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
    pointer-events:none;
    box-shadow:0 4px 20px rgba(16,185,129,0.4);
}
#shareToast.show { transform:translateX(-50%) translateY(0); }

/* ── FOOTER.PHP STYLE BLOCK 4: Watchlist, Light Mode, Cards ── */
/* Watchlist pulse */
@keyframes wlPulse {
    0% { transform:scale(1); }
    50% { transform:scale(1.15); }
    100% { transform:scale(1); }
}
.wl-pulse { animation: wlPulse 0.4s ease !important; }

/* Watchlist button */
.watchlist-btn {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 18px;
    border-radius:10px;
    font-size:12px;
    font-weight:800;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
    color:rgba(255,255,255,0.6);
    cursor:pointer;
    transition:all 0.25s;
}
.watchlist-btn:hover {
    background:rgba(229,9,20,0.1);
    border-color:rgba(229,9,20,0.35);
    color:#f87171;
}




/* ===== VIEW COUNT BADGE ===== */
.card-views-badge {
    position: absolute;
    bottom: 54px;
    left: 6px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3;
    pointer-events: none;
}
.movie-card:hover .card-views-badge {
    opacity: 1;
    transform: translateY(0);
}
.card-views-badge.hot {
    color: #f97316;
    border: 1px solid rgba(249,115,22,0.3);
}
.card-views-badge i { font-size: 8px; }

/* ===== SKELETON LOADING ===== */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 480px) { .skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .skeleton-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .skeleton-grid { grid-template-columns: repeat(6, 1fr); } }

.skeleton-card {
    border-radius: 14px;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: skeletonShimmer 1.8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}
.skeleton-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(26,26,26,0.95), transparent);
}
.skeleton-bar {
    position: absolute;
    bottom: 12px; left: 10px; right: 10px;
    z-index: 1;
}
.skeleton-bar-title {
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    margin-bottom: 8px;
    width: 80%;
}
.skeleton-bar-meta {
    display: flex; gap: 6px;
}
.skeleton-bar-pill {
    height: 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.04);
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== IMAGE BLUR-UP LAZY LOAD ===== */
.img-blur-up {
    filter: blur(12px);
    transform: scale(1.05);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.img-blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}
.movie-card .img-blur-up.loaded:hover {
    transform: scale(1.08);
}

/* ── FOOTER.PHP STYLE BLOCK 5: Comment spoiler tag ─────────── */
.spoiler-tag {
    position: relative;
    display: inline;
    background: rgba(255,255,255,0.1);
    color: transparent;
    border-radius: 4px;
    padding: 1px 6px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}
.spoiler-tag::after {
    content: '⚠ Spoiler (click to reveal)';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s;
}
.spoiler-tag.revealed {
    color: inherit;
    background: rgba(229,9,20,0.08);
}
.spoiler-tag.revealed::after { opacity: 0; }

/* ── FOOTER.PHP STYLE BLOCK 6: Voice search button styles ─── */
.voice-search-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914, #ec4899);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 24px rgba(229,9,20,0.35);
    z-index: 9998;
    transition: all 0.3s;
}
.voice-search-btn:hover { transform: scale(1.1); }
.voice-search-btn.listening {
    animation: voicePulse 1.2s ease-in-out infinite;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 0 30px rgba(34,197,94,0.5);
}
@keyframes voicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.voice-feedback {
    position: fixed;
    bottom: 140px;
    right: 24px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 9998;
    display: none;
    max-width: 200px;
}

/* ── FOOTER.PHP STYLE BLOCK 7: Theme builder color button ─── */
.tb-c{width:28px;height:28px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:all 0.2s;}
.tb-c:hover{transform:scale(1.2);border-color:rgba(255,255,255,0.5);}
.tb-c.active{border-color:#fff;box-shadow:0 0 8px rgba(255,255,255,0.3);}

/* ── FOOTER.PHP STYLE BLOCK 8: slideUp animation ──────────── */
@keyframes slideUp{from{opacity:0;transform:translateX(-50%) translateY(20px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}


/* =============================================================
   Tailwind Utility Replacements
   ============================================================= */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-20 { z-index: 20; }
.z-10 { z-index: 10; }
.z-\[1999\] { z-index: 1999; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-1 > :not(:last-child) { margin-bottom: 0.25rem; }
.space-y-3 > :not(:last-child) { margin-bottom: 0.75rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-safe { padding-bottom: env(safe-area-inset-bottom); }
.pt-4 { padding-top: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-auto { margin-left: auto; }
.-ml-2 { margin-left: -0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-64 { width: 16rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-screen { height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-7xl { max-width: 80rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-\[10px\] { font-size: 10px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-900 { color: #111827; }
.bg-black\/80 { background: rgba(0,0,0,0.8); }
.bg-black\/90 { background: rgba(0,0,0,0.9); }
.bg-black\/20 { background: rgba(0,0,0,0.2); }
.bg-dark-800 { background-color: #141414; }
.bg-dark-900 { background-color: #0f0f0f; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scroll-smooth { scroll-behavior: smooth; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.transition-all { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.duration-200 { transition-duration: 200ms; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }
.font-sans { font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif; }
.cursor-pointer { cursor: pointer; }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:text-gray-300 { color: #d1d5db; }
.group:hover .group-hover\:bg-gray-100 { background-color: #f3f4f6; }
.bg-primary-500\/20 { background: rgba(229,9,20,0.2); }
.text-primary-500 { color: #e50914; }
.bg-green-600 { background-color: #16a34a; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.bg-red-100 { background: rgba(229,9,20,0.1); }
.text-red-600 { color: #dc2626; }
.text-red-500 { color: #ef4444; }
.text-red-400 { color: #f87171; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-white\/5:hover { background: rgba(255,255,255,0.05); }
.hover\:bg-gray-100:hover { background: #f3f4f6; }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-red-500 { border-color: #ef4444; }
.flex-wrap { flex-wrap: wrap; }

@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:block { display: block; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:space-x-3 > :not(:last-child) { margin-right: 0.75rem; }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Mobile bottom nav + FAB: see mobile-bottom-nav.css */

/* ═══════════════════════════════════════════
   HEADER SEARCH — Beautiful Box
   ═══════════════════════════════════════════ */
.hdr-search-wrap {
    position: relative;
    flex-shrink: 0;
}
.hdr-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.hdr-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}
.hdr-search-input {
    height: 40px;
    width: 240px;
    padding: 0 18px 0 38px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: width 0.25s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.hdr-search-input::placeholder {
    color: rgba(255,255,255,0.28);
    font-size: 13px;
}
.hdr-search-input:focus {
    width: 300px;
    border-color: rgba(229,9,20,0.55);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.09), 0 2px 12px rgba(0,0,0,0.3);
}
.hdr-search-input:focus ~ .hdr-search-icon,
.hdr-search-wrap:focus-within .hdr-search-icon {
    color: #e50914;
}

/* ═══════════════════════════════════════════
   LIVE SEARCH DROPDOWN — Modern UI
   ═══════════════════════════════════════════ */
.ls-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 380px;
    max-width: 440px;
    width: max-content;
    background: rgba(12, 12, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(229,9,20,0.07);
    overflow: hidden;
    z-index: 1050;
    padding: 8px 0 4px;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Mobile: full width, capped height (desktop .ls-dropdown max-height: 480px is too tall on phones) */
.ls-dropdown-mob {
    position: absolute;
    left: 0;
    right: 0;
    min-width: unset;
    max-width: unset;
    width: 100%;
    border-radius: 0 0 14px 14px;
    top: calc(100% + 4px);
    max-height: min(42vh, 280px);
    max-height: min(42dvh, 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Section label */
.ls-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.28);
    padding: 8px 14px 4px;
}
.ls-section-label i { font-size: 10px; color: #e50914; }

/* Trending keyword chips — single line, max 5 */
.ls-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 14px 10px;
    overflow: hidden;
}
.ls-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ls-chip:hover {
    background: rgba(229,9,20,0.12);
    border-color: rgba(229,9,20,0.35);
    color: #fff;
}

/* Result items */
.ls-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background 0.15s;
}
.ls-item:hover { background: rgba(255,255,255,0.05); }
.ls-poster {
    width: 36px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.ls-poster-empty {
    width: 36px;
    height: 52px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 14px;
    flex-shrink: 0;
}
.ls-info { flex: 1; min-width: 0; }
.ls-title {
    font-size: 13px;
    font-weight: 700;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.ls-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}
.ls-meta i { font-size: 10px; }
.ls-dot { opacity: 0.4; }
.ls-qual {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(229,9,20,0.12);
    color: #f87171;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-left: 4px;
}
.ls-match {
    color: #86efac;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.03em;
}
.ls-no-result {
    padding: 20px 16px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ls-no-result strong { color: rgba(255,255,255,0.5); }
.ls-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    margin: 4px 8px 6px;
    border-radius: 10px;
    background: rgba(229,9,20,0.08);
    border: 1px solid rgba(229,9,20,0.15);
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s;
}
.ls-view-all:hover {
    background: rgba(229,9,20,0.15);
    border-color: rgba(229,9,20,0.3);
    color: #fff;
}
.ls-view-all i { font-size: 11px; color: #e50914; }

/* ═══════════════════════════════════════════
   SITE FOOTER — Modern
   ═══════════════════════════════════════════ */
.site-footer {
    margin-top: 60px;
    padding-top: 0;
    padding-bottom: 20px;
}
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229,9,20,0.3), rgba(139,92,246,0.3), transparent);
    margin-bottom: 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: repeat(1, 1fr); gap: 28px; }
}
.footer-col-title {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s, transform 0.18s;
    width: fit-content;
}
.footer-link i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    color: rgba(255,255,255,0.2);
    transition: color 0.18s;
    flex-shrink: 0;
}
.footer-link:hover {
    color: #e50914;
    transform: translateX(3px);
}
.footer-link:hover i { color: #e50914; }
.footer-bottom {
    margin-top: 28px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.22);
    margin: 0;
}

/* ===== 18+ TOGGLE PILL — Global (all pages) ===== */
.hgp {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: all 0.22s; user-select: none;
}
.hgp-18toggle {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    gap: 7px; padding: 6px 12px; position: relative;
}
.hgp-18toggle::before {
    content: ''; position: absolute; inset: -1px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(239,68,68,0.4), rgba(139,92,246,0.2));
    z-index: -1; opacity: 0; transition: opacity 0.3s;
}
.hgp-18toggle.is-on {
    background: rgba(239,68,68,0.13);
    border-color: rgba(239,68,68,0.55);
    color: #fff;
    box-shadow: 0 0 18px rgba(239,68,68,0.25);
    animation: pill18GlowG 2s ease-in-out infinite;
}
.hgp-18toggle.is-on::before { opacity: 1; }
@keyframes pill18GlowG {
    0%,100% { box-shadow: 0 0 14px rgba(239,68,68,0.2); }
    50%      { box-shadow: 0 0 26px rgba(239,68,68,0.38); }
}
.hgp18-label { font-size: 11px; font-weight: 900; color: #ef4444; letter-spacing: 0.02em; }
.hgp-18toggle.is-on .hgp18-label { color: #f87171; }
.hgp18-track {
    width: 28px; height: 15px; border-radius: 8px;
    background: #4b5563; position: relative;
    transition: background 0.25s; flex-shrink: 0;
}
.hgp-18toggle.is-on .hgp18-track { background: #ef4444; }
.hgp18-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #fff; transition: left 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hgp-18toggle.is-on .hgp18-thumb { left: 15px; }
.hgp18-txt { font-size: 9px; font-weight: 800; color: rgba(255,255,255,0.35); min-width: 18px; }
.hgp-18toggle.is-on .hgp18-txt { color: #f87171; }
@media (max-width: 480px) {
    .hgp18-txt { display: none; }
    .hgp-18toggle { padding: 6px 10px; gap: 5px; }
}

/* ===== USER AVATAR LETTER — header ===== */
.ua-letter {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 15px; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, #e50914, #8b5cf6);
    border-radius: 50%;
    letter-spacing: -0.01em;
    user-select: none;
    pointer-events: none;
}

/* ===== SIDEBAR 18+ TOGGLE ===== */
.sidebar-18-wrap {
    padding: 8px 12px 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}
.sidebar-18-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s;
    text-align: left;
}
.sidebar-18-btn:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: #fff;
}
.sidebar-18-btn.is-on {
    background: rgba(239,68,68,0.13);
    border-color: rgba(239,68,68,0.45);
    color: #fff;
    box-shadow: 0 0 14px rgba(239,68,68,0.18);
}
.sidebar-18-icon {
    font-size: 15px;
    flex-shrink: 0;
}
.sidebar-18-label {
    flex: 1;
    font-size: 13px !important;
}
.sidebar-18-track {
    width: 30px; height: 16px;
    border-radius: 8px;
    background: #4b5563;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
    margin-left: auto;
}
.sidebar-18-btn.is-on .sidebar-18-track { background: #ef4444; }
.sidebar-18-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.sidebar-18-btn.is-on .sidebar-18-thumb { left: 16px; }

/* Hide 18-label when sidebar collapsed (desktop) */
.sidebar-collapsed .sidebar-18-label { display: none; }
.sidebar-collapsed .sidebar-18-btn { justify-content: center; padding: 9px 0; border-radius: 12px; }

/* Sidebar 18+ toggle — mobile only */
@media (min-width: 768px) {
    .sidebar-18-wrap { display: none !important; }
}
