:root {
  --bg: #08080c;
  --bg-soft: #0d0d13;
  --surface: #121218;
  --surface-2: #181821;
  --surface-3: #20202b;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #f5f2ea;
  --muted: #a09baa;
  --muted-2: #6f6a7b;
  --gold: #7aa2ff;
  --gold-soft: #a5c0ff;
  --violet: #6f97f5;
  --violet-soft: #a5c0ff;
  --danger: #ff6b7a;
  --success: #5ee0a0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --font: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Manrope', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(111,151,245,.16), transparent 65%),
    radial-gradient(700px 420px at 0% 15%, rgba(122,162,255,.08), transparent 60%),
    linear-gradient(180deg, #0b0b10 0%, #08080c 55%, #08080c 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
::selection { background: rgba(122,162,255,.3); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { width: min(1380px, calc(100% - 64px)); margin-inline: auto; }
.section { padding: 58px 0; }
.section-tight { padding: 32px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Ambient + loader */
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; opacity: .2; }
.ambient-one { background: var(--violet); top: 18%; left: -250px; }
.ambient-two { background: var(--gold); bottom: 5%; right: -260px; opacity: .1; }
.page-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; gap: 14px; justify-items: center; background: #08080c; transition: opacity .45s ease, visibility .45s ease; font-family: var(--display); letter-spacing: .16em; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.page-loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.1); border-top-color: var(--gold); border-right-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(8,8,12,.82); backdrop-filter: blur(22px); border-color: var(--line); }
.nav-wrap { width: min(1440px, calc(100% - 48px)); margin: auto; height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(122,162,255,.22), 0 8px 26px rgba(0,0,0,.4); }
.brand-word { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.brand-word span { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; transition: .2s; }
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.active { color: var(--text); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-toggle { display: none; }
.mobile-nav { display: none; }
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.user-trigger img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.user-trigger-name { font-size: 12px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.plan-dot.paid { background: var(--gold); box-shadow: 0 0 12px rgba(122,162,255,.7); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #121218; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { padding: 12px 12px 10px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.dropdown-head strong { font-size: 13px; }
.dropdown-head span { color: var(--muted); font-size: 11px; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; color: var(--muted); font-size: 12.5px; border-radius: 9px; }
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.user-dropdown .admin-link { color: var(--gold); }
.user-dropdown form { margin: 0; border-top: 1px solid var(--line); padding-top: 5px; margin-top: 5px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(4,4,7,.76); backdrop-filter: blur(16px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 24px 24px; opacity: 0; visibility: hidden; transition: .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel { width: min(760px, 100%); background: #111117; border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transform: translateY(-12px) scale(.98); transition: .25s; }
.search-overlay.open .search-panel { transform: none; }
.search-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-form { display: flex; align-items: center; gap: 12px; flex: 1; }
.search-form svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-form input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 600; }
.search-results { max-height: 56vh; overflow: auto; padding: 10px; }
.search-hint { color: var(--muted); padding: 22px; text-align: center; font-size: 13px; }
.search-result-item { display: flex; gap: 13px; align-items: center; padding: 9px; border-radius: 12px; transition: .15s; }
.search-result-item:hover { background: rgba(255,255,255,.06); }
.search-result-item img { width: 44px; height: 64px; object-fit: cover; border-radius: 7px; background: var(--surface-2); }
.search-result-item strong { display: block; font-size: 13px; }
.search-result-item span { color: var(--muted); font-size: 11px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #171207; box-shadow: 0 10px 30px rgba(122,162,255,.18); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(122,162,255,.3); }
.btn-violet { background: linear-gradient(135deg, #a77cff, var(--violet)); color: white; box-shadow: 0 10px 30px rgba(111,151,245,.2); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: rgba(255,107,122,.12); color: var(--danger); border-color: rgba(255,107,122,.28); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 11.5px; }
.btn-lg { min-height: 50px; padding: 0 25px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Flash */
.flash-stack { position: fixed; right: 22px; top: 90px; z-index: 300; display: grid; gap: 9px; width: min(380px, calc(100% - 44px)); }
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(18,18,24,.96); box-shadow: var(--shadow); font-size: 12.5px; animation: slideIn .3s ease; }
.flash button { border: 0; background: none; color: var(--muted); }
.flash-success { border-color: rgba(94,224,160,.35); }
.flash-error { border-color: rgba(255,107,122,.4); }
.flash-info { border-color: rgba(111,151,245,.4); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } }

/* Hero */
.hero { position: relative; min-height: min(790px, 86vh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(.9); transform: scale(1.03); animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.03); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,12,.97) 0%, rgba(8,8,12,.78) 38%, rgba(8,8,12,.12) 72%), linear-gradient(0deg, #08080c 0%, transparent 42%); }
.hero-content { padding: 100px 0 84px; max-width: 720px; animation: fadeUp .8s .1s both; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-kicker .rating-pill { background: rgba(122,162,255,.14); color: var(--gold); border-color: rgba(122,162,255,.24); }
.hero-title { font-size: clamp(46px, 7vw, 92px); line-height: .93; letter-spacing: -.055em; margin-bottom: 18px; max-width: 850px; text-wrap: balance; }
.hero-overview { color: #c8c3cf; max-width: 610px; font-size: 14.5px; line-height: 1.75; margin-bottom: 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-side-note { position: absolute; right: 48px; bottom: 92px; writing-mode: vertical-rl; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.hero-dots { position: absolute; right: 54px; bottom: 44px; display: flex; gap: 8px; }
.hero-dot { width: 24px; height: 3px; border-radius: 99px; border: 0; background: rgba(255,255,255,.25); padding: 0; }
.hero-dot.active { background: var(--gold); width: 44px; }

/* Sections / rows */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.section-title span { color: var(--muted-2); font-weight: 500; }
.section-link { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
.section-link:hover { color: var(--gold); gap: 10px; }
.movie-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.movie-row::-webkit-scrollbar { height: 5px; }
.movie-row::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 9px; }
.movie-row .movie-card { scroll-snap-align: start; }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 24px 17px; }
.movie-card { min-width: 0; position: relative; }
.card-poster { display: block; position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: 0 14px 34px rgba(0,0,0,.3); transform: translateZ(0); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .4s; }
.card-poster::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; pointer-events: none; }
.movie-card:hover .card-poster img { transform: scale(1.065); filter: saturate(1.12); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 45%); opacity: .65; transition: .3s; }
.movie-card:hover .card-shade { opacity: 1; }
.card-badge { position: absolute; top: 10px; left: 10px; background: rgba(8,8,12,.78); backdrop-filter: blur(10px); color: var(--gold); border: 1px solid rgba(122,162,255,.3); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; }
.card-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 50%; background: rgba(122,162,255,.94); color: #171207; display: grid; place-items: center; font-size: 15px; padding-left: 3px; transform: translate(-50%, -42%) scale(.7); opacity: 0; transition: .28s; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.movie-card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-body { position: relative; padding: 11px 2px 0; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 10px; font-weight: 700; margin-bottom: 3px; }
.rating-pill { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); background: rgba(122,162,255,.09); border: 1px solid rgba(122,162,255,.16); padding: 2px 6px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.card-body h3 { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; padding-right: 30px; }
.card-body h3 a:hover { color: var(--gold-soft); }
.watchlist-mini { position: absolute; right: 0; bottom: 0; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; display: grid; place-items: center; transition: .2s; }
.watchlist-mini:hover, .watchlist-mini.is-saved { color: var(--gold); border-color: rgba(122,162,255,.45); background: rgba(122,162,255,.1); }
.movie-card:hover { z-index: 2; }

/* Genre strip */
.genre-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.genre-strip::-webkit-scrollbar { display: none; }
.genre-chip { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); font-size: 11px; font-weight: 700; transition: .2s; }
.genre-chip:hover, .genre-chip.active { color: #171207; background: var(--gold); border-color: var(--gold); }

/* Page hero / filters */
.page-hero { padding: 70px 0 28px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.055em; margin: 10px 0 12px; }
.page-hero p { color: var(--muted); max-width: 620px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border: 1px solid var(--line); background: rgba(18,18,24,.65); border-radius: 16px; margin: 24px 0 28px; }
.filter-bar form { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; flex: 1; }
.select, .input, textarea.input { min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 12px; color: var(--text); font-size: 12px; outline: 0; }
.select:focus, .input:focus, textarea.input:focus { border-color: rgba(122,162,255,.55); box-shadow: 0 0 0 3px rgba(122,162,255,.08); }
.filter-search { flex: 1; min-width: 180px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: var(--muted); }
.pagination a:hover, .pagination .current { background: var(--gold); color: #171207; border-color: var(--gold); }

/* Movie detail */
.detail-hero { position: relative; padding: 54px 0 0; overflow: hidden; }
.detail-backdrop { position: absolute; inset: 0; z-index: -2; }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .32; filter: blur(2px) saturate(.8); }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #08080c 2%, rgba(8,8,12,.74) 48%, rgba(8,8,12,.4)), linear-gradient(90deg, #08080c, transparent 65%); }
.detail-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 46px; align-items: end; padding-bottom: 42px; }
.detail-poster { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); aspect-ratio: 2/3; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-poster .rating-pill { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(10px); }
.detail-content h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.055em; margin: 8px 0 14px; text-wrap: balance; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.detail-facts span { display: inline-flex; align-items: center; gap: 6px; }
.detail-overview { color: #c9c4d0; max-width: 760px; font-size: 14px; line-height: 1.8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.detail-actions .btn.is-saved { background: rgba(122,162,255,.12); border-color: rgba(122,162,255,.35); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); padding: 5px 11px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.detail-body { padding: 36px 0 64px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; }
.panel { border: 1px solid var(--line); background: rgba(18,18,24,.62); border-radius: var(--radius); padding: 23px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.panel + .panel { margin-top: 18px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.cast-card { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.cast-card img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.cast-card strong { display: block; font-size: 11px; line-height: 1.3; }
.cast-card span { display: block; font-size: 9px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.source-preview { display: grid; gap: 9px; }
.source-preview-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); font-size: 11px; }
.source-preview-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.source-preview-item span { color: var(--muted); margin-left: auto; font-size: 9px; }
.trailer-modal { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: .25s; }
.trailer-modal.open { opacity: 1; visibility: visible; }
.trailer-modal iframe { width: min(1000px, 100%); aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #000; }
.trailer-close { position: absolute; top: 24px; right: 24px; }

/* Watch / player */
.watch-page { padding: 28px 0 64px; }
.watch-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.watch-head h1 { font-size: clamp(22px, 3vw, 32px); }
.watch-head h1 span { color: var(--muted); font-weight: 500; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.player-shell { background: #050507; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.player-stage { position: relative; aspect-ratio: 16/9; background: #000; }
.player-stage iframe, .player-stage video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.7); z-index: 4; transition: .3s; }
.player-loading.is-hidden { opacity: 0; visibility: hidden; }
.player-error { position: absolute; inset: 0; display: none; place-items: center; text-align: center; background: rgba(5,5,7,.94); z-index: 6; padding: 24px; }
.player-error.show { display: grid; }
.player-error h3 { margin-bottom: 8px; }
.player-error p { color: var(--muted); font-size: 12px; max-width: 420px; }
.player-controls { padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: #0b0b10; border-top: 1px solid var(--line); }
.player-controls button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; border-radius: 50%; }
.player-controls button:hover { background: rgba(255,255,255,.08); }
.player-controls svg { width: 17px; height: 17px; fill: currentColor; }
.seek-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.seek-wrap input[type=range] { width: 100%; accent-color: var(--gold); height: 3px; }
.time-label { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.volume-wrap { display: flex; align-items: center; gap: 5px; }
.volume-wrap input { width: 65px; accent-color: var(--gold); }
.source-panel { padding: 15px; background: #0d0d13; border-top: 1px solid var(--line); }
.source-panel h3 { font-size: 12px; margin-bottom: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.source-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.source-tab { padding: 7px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 8px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.source-tab.active { border-color: rgba(122,162,255,.5); color: var(--gold); background: rgba(122,162,255,.08); }
.source-tab small { color: var(--muted-2); font-size: 8px; margin-left: 4px; }
.watch-side .panel { padding: 18px; }
.watch-side .btn + .btn { margin-top: 8px; }
.watch-note { color: var(--muted); font-size: 10.5px; line-height: 1.65; margin-top: 13px; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.room-cta { margin-top: 14px; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(111,151,245,.14), rgba(122,162,255,.07)); border: 1px solid rgba(111,151,245,.25); }
.room-cta h4 { font-size: 13px; margin-bottom: 5px; }
.room-cta p { font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.iframe-note { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; background: rgba(111,151,245,.09); border-top: 1px solid rgba(111,151,245,.18); font-size: 10.5px; color: #c9bded; }
.iframe-note strong { color: var(--violet-soft); }

/* Forms/auth */
.auth-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 55px 24px; }
.auth-card { width: min(460px, 100%); background: rgba(18,18,24,.82); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card h1 { font-size: 32px; margin: 10px 0 7px; }
.auth-card > p { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field .input, .field .select { width: 100%; min-height: 44px; }
.field textarea.input { min-height: 100px; padding: 10px 12px; resize: vertical; }
.form-help { color: var(--muted-2); font-size: 10px; }
.form-error { color: var(--danger); font-size: 11px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 18px; }
.auth-switch a { color: var(--gold); font-weight: 700; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--muted); }
.checkbox input { accent-color: var(--gold); margin-top: 3px; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 22px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(111,151,245,.1), rgba(18,18,24,.7)); margin-bottom: 25px; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(122,162,255,.45); }
.profile-head h1 { font-size: 32px; }
.profile-head p { color: var(--muted); font-size: 12px; }
.profile-stats { display: flex; gap: 26px; margin-top: 12px; }
.profile-stats strong { display: block; font-family: var(--display); font-size: 20px; }
.profile-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 25px; overflow-x: auto; }
.tab-nav button, .tab-nav a { padding: 12px 15px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.tab-nav button.active, .tab-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .3s ease; }
.list-stack { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.list-row img { width: 46px; height: 66px; object-fit: cover; border-radius: 7px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row strong { display: block; font-size: 12px; }
.list-row span { color: var(--muted); font-size: 10px; }
.progress-track { height: 3px; background: rgba(255,255,255,.1); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }

/* Rooms */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.room-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(111,151,245,.1), rgba(18,18,24,.7)); border-radius: 17px; padding: 20px; }
.room-card .code { font-family: var(--display); font-size: 25px; letter-spacing: .16em; color: var(--gold); }
.room-card h3 { font-size: 17px; margin: 8px 0 4px; }
.room-card p { color: var(--muted); font-size: 11px; }
.room-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.room-create { border: 1px dashed rgba(122,162,255,.35); border-radius: 17px; padding: 25px; background: rgba(122,162,255,.035); }
.room-create h3 { font-size: 20px; margin-bottom: 6px; }
.room-create p { color: var(--muted); font-size: 11.5px; margin-bottom: 16px; }
.join-code { display: flex; gap: 8px; }
.join-code .input { text-transform: uppercase; letter-spacing: .2em; font-family: var(--display); font-weight: 700; }
.room-page { padding: 24px 0 50px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.room-top h1 { font-size: clamp(22px, 3vw, 30px); }
.room-code-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(122,162,255,.35); background: rgba(122,162,255,.08); border-radius: 999px; font-size: 10px; color: var(--gold); font-weight: 800; letter-spacing: .15em; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.room-main { min-width: 0; }
.room-sidebar { border: 1px solid var(--line); background: rgba(18,18,24,.75); border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; height: min(680px, calc(100vh - 130px)); position: sticky; top: 92px; }
.room-tabs { display: flex; border-bottom: 1px solid var(--line); }
.room-tabs button { flex: 1; padding: 13px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.room-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }
.room-pane { display: none; flex: 1; min-height: 0; }
.room-pane.active { display: flex; flex-direction: column; }
.member-list { padding: 10px; overflow: auto; }
.member-row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; }
.member-row:hover { background: rgba(255,255,255,.04); }
.member-avatar { width: 29px; height: 29px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--gold)); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #100c18; flex: none; }
.member-row strong { font-size: 11px; }
.member-row small { color: var(--muted); font-size: 9px; }
.host-tag { margin-left: auto; color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.chat-messages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 88%; align-self: flex-start; padding: 7px 10px; border-radius: 10px 10px 10px 3px; background: rgba(255,255,255,.055); font-size: 11px; }
.chat-msg.mine { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: rgba(111,151,245,.18); }
.chat-msg b { display: block; color: var(--gold); font-size: 9px; margin-bottom: 1px; }
.chat-msg time { display: block; color: var(--muted-2); font-size: 8px; margin-top: 3px; }
.chat-form { display: flex; gap: 7px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 0 10px; font-size: 11px; }
.chat-form button { width: 38px; height: 38px; border: 0; border-radius: 9px; background: var(--gold); color: #171207; font-weight: 900; }
.room-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.room-status .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sync-banner { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); background: rgba(111,151,245,.07); font-size: 10px; color: var(--muted); }
.sync-banner strong { color: var(--violet-soft); }

/* Plans/payments */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.plan-card { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: rgba(18,18,24,.68); display: flex; flex-direction: column; }
.plan-card.featured { border-color: rgba(122,162,255,.42); background: linear-gradient(160deg, rgba(122,162,255,.1), rgba(18,18,24,.8)); box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.plan-card .plan-label { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.plan-card h2 { font-size: 28px; margin: 8px 0 2px; }
.plan-price { font-family: var(--display); font-size: 44px; letter-spacing: -.05em; margin: 10px 0 4px; }
.plan-price small { font-size: 12px; color: var(--muted); font-family: var(--font); letter-spacing: 0; }
.plan-features { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; font-size: 11.5px; color: var(--muted); flex: 1; }
.plan-features li::before { content: "✓"; color: var(--gold); font-weight: 900; margin-right: 8px; }
.current-plan { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--success); }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.payment-box { border: 1px solid var(--line); border-radius: 17px; padding: 22px; background: rgba(18,18,24,.7); }
.payment-box h3 { font-size: 18px; margin-bottom: 6px; }
.payment-box p { color: var(--muted); font-size: 11.5px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.method-option input { position: absolute; opacity: 0; }
.method-option span { display: grid; place-items: center; gap: 5px; min-height: 66px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; padding: 8px; cursor: pointer; }
.method-option input:checked + span { border-color: var(--gold); color: var(--gold); background: rgba(122,162,255,.08); }
.gcash-details { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 14px 0; }
.gcash-details .number { font-family: var(--display); font-size: 24px; letter-spacing: .05em; color: var(--gold); }
.qr-preview { width: 150px; border-radius: 12px; margin: 12px 0; background: white; padding: 6px; }
.faq { display: grid; gap: 9px; margin-top: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.faq summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.faq p { color: var(--muted); font-size: 11px; margin-top: 7px; }

/* Misc */
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: 20px; background: rgba(255,255,255,.015); }
.empty-state h1, .empty-state h2 { font-size: 30px; margin: 10px 0; }
.empty-state p { color: var(--muted); max-width: 480px; margin: 0 auto 20px; font-size: 12px; }
.ad-slot { margin: 20px auto; min-height: 70px; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; color: var(--muted-2); font-size: 9px; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-home_banner { min-height: 100px; }
.ad-player { min-height: 70px; margin: 14px 0 0; }
.ad-sidebar { min-height: 240px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 46px; background: rgba(5,5,8,.45); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; }
.footer-brand p { color: var(--muted); font-size: 11.5px; max-width: 390px; margin-top: 14px; }
.footer-brand .footer-small { color: var(--muted-2); font-size: 9.5px; }
.footer-grid h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid a:not(.brand) { color: var(--muted); font-size: 11px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 22px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted-2); font-size: 9.5px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1b1b24; border: 1px solid var(--line-strong); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 11px; z-index: 400; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .mobile-nav { display: none; padding: 0 24px 18px; background: rgba(8,8,12,.96); border-bottom: 1px solid var(--line); }
  .mobile-nav.open { display: grid; gap: 3px; }
  .mobile-nav a { padding: 11px 12px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
  .mobile-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
  .detail-grid { grid-template-columns: 240px minmax(0,1fr); gap: 30px; }
  .detail-columns, .watch-layout { grid-template-columns: 1fr; }
  .watch-side { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .room-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .plan-card:last-child { grid-column: span 2; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 36px); }
  .nav-wrap { width: calc(100% - 30px); height: 68px; gap: 12px; }
  .brand-word { font-size: 19px; }
  .user-trigger-name, .hide-mobile { display: none; }
  .hero { min-height: 78vh; }
  .hero-bg img { object-position: 62% center; }
  .hero-bg::after { background: linear-gradient(0deg, #08080c 2%, rgba(8,8,12,.7) 58%, rgba(8,8,12,.3)), linear-gradient(90deg, rgba(8,8,12,.9), transparent); }
  .hero-content { padding: 100px 0 55px; }
  .hero-side-note, .hero-dots { display: none; }
  .detail-grid { grid-template-columns: 150px minmax(0,1fr); align-items: start; gap: 20px; }
  .detail-poster { margin-top: 30px; }
  .detail-content h1 { font-size: 36px; }
  .detail-overview { font-size: 12px; }
  .detail-actions .btn { min-height: 38px; padding: 0 13px; font-size: 11px; }
  .room-layout { grid-template-columns: 1fr; }
  .room-sidebar { position: static; height: 520px; }
  .watch-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .payment-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card:last-child { grid-column: auto; }
  .profile-head { align-items: flex-start; padding: 22px; }
  .profile-avatar { width: 70px; height: 70px; }
  .profile-head h1 { font-size: 26px; }
  .profile-stats { gap: 15px; }
}
@media (max-width: 560px) {
  .section { padding: 38px 0; }
  .movie-row { grid-auto-columns: 42vw; gap: 11px; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .hero-title { font-size: 42px; }
  .hero-overview { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-poster { width: 150px; margin-top: 0; }
  .detail-content h1 { font-size: 34px; }
  .detail-hero { padding-top: 25px; }
  .cast-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 23px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .room-top { align-items: flex-start; flex-direction: column; }
  .room-top .btn { width: 100%; }
  .player-controls { flex-wrap: wrap; }
  .volume-wrap { display: none; }
  .method-grid { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; }
  .watch-head { align-items: flex-start; flex-direction: column; }
}

/* ============ Admin dashboard ============ */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: rgba(12,12,17,.92); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.admin-side .brand { margin-bottom: 18px; padding-left: 6px; }
.admin-side .admin-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); padding: 8px 10px 4px; font-weight: 900; }
.admin-side a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 11.5px; font-weight: 700; transition: .2s; }
.admin-side a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.admin-side a.active { background: rgba(122,162,255,.1); color: var(--gold); }
.admin-side .admin-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 30px; }
.admin-topbar p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(18,18,24,.65); padding: 18px; }
.stat-card .stat-value { font-family: var(--display); font-size: 30px; letter-spacing: -.04em; }
.stat-card .stat-label { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 900; margin-top: 3px; }
.stat-card .stat-note { font-size: 10px; color: var(--muted-2); margin-top: 8px; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 620px; }
.data-table th { text-align: left; padding: 11px 13px; background: rgba(255,255,255,.03); color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 900; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 13px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(255,255,255,.018); }
.data-table img.thumb { width: 38px; height: 54px; object-fit: cover; border-radius: 6px; }
.status-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--muted); }
.status-pill.status-active, .status-pill.status-approved, .status-pill.status-paid { color: var(--success); border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); }
.status-pill.status-pending { color: var(--gold); border-color: rgba(122,162,255,.4); background: rgba(122,162,255,.08); }
.status-pill.status-rejected, .status-pill.status-banned { color: var(--danger); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }
.status-pill.status-ended, .status-pill.status-cancelled { color: var(--muted-2); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-xs { min-height: 27px; padding: 0 9px; font-size: 9.5px; border-radius: 7px; }
.admin-form { display: grid; gap: 13px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.admin-form .field label { font-size: 9px; }
.admin-form .input, .admin-form .select { width: 100%; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); }
.check-row input { width: 15px; height: 15px; accent-color: var(--gold); }
.admin-search { display: flex; gap: 9px; margin-bottom: 18px; }
.admin-search .input { flex: 1; }
.admin-empty { text-align: center; padding: 40px; color: var(--muted); font-size: 12px; }
.admin-note { border: 1px solid rgba(122,162,255,.25); background: rgba(122,162,255,.06); border-radius: 11px; padding: 13px 15px; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.admin-note strong { color: var(--gold); }
.tmdb-result { display: flex; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.tmdb-result img { width: 42px; height: 63px; object-fit: cover; border-radius: 6px; }
.tmdb-result div { flex: 1; min-width: 0; }
.tmdb-result strong { display: block; font-size: 12px; }
.tmdb-result small { color: var(--muted); font-size: 10px; }
.admin-list { display: grid; gap: 9px; }
.proof-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .brand { margin: 0 10px 0 0; }
  .admin-side .admin-label, .admin-side .admin-side-foot { display: none; }
  .admin-main { padding: 22px 18px 50px; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .admin-cards { grid-template-columns: 1fr; }
  .admin-form .form-row, .admin-form .form-row-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PurrCine 1.1 — content pages, vouchers, downloads, PWA, a11y
   ========================================================================== */

/* Skip link + focus */
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10000; padding: 12px 18px; border-radius: 10px; background: var(--gold); color: #171207; font-weight: 800; font-size: 13px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Install button */
.install-btn { border-color: rgba(122,162,255,.35); color: var(--gold); }
.install-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.install-btn:hover { background: rgba(122,162,255,.1); }

/* Content pages */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 26px; }
.content-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(18,18,24,.7)); padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.content-card:hover { transform: translateY(-4px); border-color: rgba(122,162,255,.35); box-shadow: 0 22px 55px rgba(0,0,0,.35); }
.content-card h2, .content-card h3 { font-size: 20px; margin-bottom: 9px; }
.content-card p { color: var(--muted); font-size: 12.5px; }
.content-card .step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(122,162,255,.14); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.step-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(18,18,24,.6); }
.step-card h3 { font-size: 16px; margin: 12px 0 7px; }
.step-card p { color: var(--muted); font-size: 12px; }
.content-cta { margin-top: 34px; padding: 32px; border-radius: var(--radius); border: 1px solid rgba(122,162,255,.3); background: linear-gradient(140deg, rgba(122,162,255,.12), rgba(111,151,245,.08)); text-align: center; }
.content-cta h2 { font-size: 26px; margin-bottom: 8px; }
.content-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.value-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.value-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 12.5px; }
.value-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }

/* Legal documents */
.legal-doc { max-width: 860px; margin: 0 auto; }
.legal-doc h2 { font-size: 22px; margin: 34px 0 10px; }
.legal-doc h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.legal-doc p { margin-bottom: 12px; }
.legal-doc ul { margin: 0 0 16px; padding-left: 20px; }
.legal-doc li { margin-bottom: 7px; }
.legal-doc .legal-updated { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.legal-doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 22px; align-items: start; margin-top: 26px; }
.contact-form-card, .contact-side { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,18,24,.68); padding: 26px; }
.contact-form-card h2, .contact-side h2 { font-size: 20px; margin-bottom: 6px; }
.form-stack { display: grid; gap: 15px; margin-top: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 10.5px; color: var(--muted-2); }
.field-error { font-size: 11px; color: var(--danger); font-weight: 700; }
.input.is-invalid, .select.is-invalid, textarea.is-invalid { border-color: rgba(255,107,122,.55); box-shadow: 0 0 0 3px rgba(255,107,122,.08); }
.notice { padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); font-size: 12.5px; margin-bottom: 16px; }
.notice-success { border-color: rgba(94,224,160,.4); background: rgba(94,224,160,.07); color: #bff3d9; }
.notice-error { border-color: rgba(255,107,122,.4); background: rgba(255,107,122,.07); color: #ffc2c8; }
.contact-list { display: grid; gap: 16px; margin-top: 18px; }
.contact-item { display: grid; gap: 3px; }
.contact-label { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 900; }
.contact-item a, .contact-item span { font-size: 13px; color: var(--text); }
.contact-item a:hover { color: var(--gold); }
.link-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.link-list a { color: var(--muted); font-size: 12.5px; }
.link-list a:hover { color: var(--gold); }

/* Type toggle (movies / series) */
.type-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.type-pill { padding: 8px 18px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); transition: .2s; }
.type-pill:hover { color: var(--text); }
.type-pill.active { background: var(--gold); color: #171207; box-shadow: 0 8px 22px rgba(122,162,255,.22); }

/* Season + episode pickers */
.season-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.season-chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); font-size: 12px; font-weight: 700; color: var(--muted); transition: .2s; }
.season-chip:hover { color: var(--text); border-color: rgba(122,162,255,.4); }
.season-chip.active { background: rgba(122,162,255,.16); border-color: rgba(122,162,255,.5); color: var(--gold); }
.episode-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18,18,24,.62); margin: 16px 0; }
.episode-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; width: 100%; }
.field-inline { display: grid; gap: 5px; min-width: 140px; }
.field-inline label { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 900; }
.field-inline .select { min-height: 40px; }
.episode-list { display: grid; gap: 10px; margin-top: 14px; }
.episode-item { display: flex; gap: 13px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); transition: .2s; }
.episode-item:hover { border-color: rgba(122,162,255,.35); background: rgba(255,255,255,.04); }
.episode-item.active { border-color: rgba(122,162,255,.55); background: rgba(122,162,255,.07); }
.episode-thumb { width: 96px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.episode-meta { min-width: 0; }
.episode-meta strong { display: block; font-size: 12.5px; }
.episode-meta span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.episode-meta p { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Ads */
.ad-inline-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.ad-inline-row .ad-slot { margin: 0; width: 100%; }
.smartlink { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px dashed rgba(122,162,255,.4); color: var(--gold); font-size: 11.5px; font-weight: 800; white-space: nowrap; transition: .2s; }
.smartlink:hover { background: rgba(122,162,255,.1); }
.card-badge-tv { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(111,151,245,.9); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* Vouchers */
.voucher-box { border: 1px solid rgba(122,162,255,.28); border-radius: var(--radius); background: linear-gradient(140deg, rgba(122,162,255,.08), rgba(111,151,245,.05)); padding: 22px; margin-bottom: 20px; }
.voucher-box-head h3 { font-size: 19px; margin: 4px 0 4px; }
.voucher-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.voucher-form .input { flex: 1; min-width: 180px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); font-weight: 700; }
.voucher-applied { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(94,224,160,.08); border: 1px solid rgba(94,224,160,.35); }
.voucher-code { font-family: var(--display); font-size: 17px; letter-spacing: .12em; color: var(--success); }
.voucher-tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.voucher-free-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
.voucher-free-form .field { min-width: 220px; flex: 1; }

/* Watch-party ad gate */
.ad-gate-page { display: grid; place-items: center; min-height: 70vh; }
.ad-gate { max-width: 760px; width: 100%; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: rgba(18,18,24,.72); padding: 38px 30px; box-shadow: var(--shadow); }
.ad-gate h1 { font-size: clamp(26px, 4vw, 40px); margin: 10px 0; }
.ad-gate p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.ad-gate-player { margin: 24px auto; max-width: 640px; }
.ad-gate-player .ad-slot { min-height: 120px; }
.ad-gate-timer { display: grid; justify-items: center; gap: 14px; margin-top: 8px; }
.ad-gate-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(122,162,255,.3); border-top-color: var(--gold); font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--gold); animation: spin 2.4s linear infinite; }
.ad-gate-ring span { animation: spin 2.4s linear infinite reverse; }
.ad-gate .btn[disabled] { opacity: .5; }

/* Downloads */
.download-gate { display: flex; gap: 24px; align-items: center; border: 1px solid rgba(122,162,255,.3); border-radius: var(--radius); background: linear-gradient(140deg, rgba(122,162,255,.1), rgba(111,151,245,.06)); padding: 34px; margin-top: 20px; }
.download-gate-art { flex: none; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 24px; background: rgba(122,162,255,.15); color: var(--gold); font-size: 40px; }
.download-gate h2 { font-size: 26px; margin: 4px 0 8px; }
.download-gate p { color: var(--muted); max-width: 560px; margin-bottom: 16px; }
.download-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 20px; align-items: start; margin-top: 22px; }
.download-card { display: flex; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,18,24,.68); padding: 24px; }
.download-poster { width: 150px; border-radius: 14px; flex: none; object-fit: cover; }
.download-info { min-width: 0; flex: 1; }
.download-info h2 { font-size: 24px; margin-bottom: 4px; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.download-progress { margin-top: 16px; }
.download-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.download-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--violet)); transition: width .25s ease; }
.download-note { margin-top: 14px; }
.download-side { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,18,24,.6); padding: 22px; }
.download-side h3 { font-size: 17px; margin-bottom: 6px; }
.offline-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.offline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.offline-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(18,18,24,.68); overflow: hidden; display: flex; flex-direction: column; }
.offline-poster { position: relative; aspect-ratio: 2/3; background: var(--surface-2); }
.offline-poster img { width: 100%; height: 100%; object-fit: cover; }
.offline-size { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.72); font-size: 10px; font-weight: 800; }
.offline-meta { padding: 13px 14px 4px; }
.offline-meta h3 { font-size: 14px; }
.offline-actions { display: flex; gap: 8px; padding: 12px 14px 15px; margin-top: auto; }
.offline-actions .btn { flex: 1; }
.offline-player { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #050507; padding: 16px; }
.offline-player-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.offline-player-head h2 { font-size: 18px; }
.offline-player video { width: 100%; border-radius: 12px; background: #000; max-height: 70vh; }

/* Install modal */
body.modal-open { overflow: hidden; }
.install-modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; background: rgba(5,5,8,.78); backdrop-filter: blur(10px); }
.install-modal[hidden] { display: none; }
.install-modal-card { position: relative; max-width: 440px; width: 100%; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); padding: 30px; text-align: center; box-shadow: var(--shadow); animation: fadeUp .3s ease; }
.install-modal-icon { margin: 0 auto 14px; border-radius: 16px; }
.install-modal-card h2 { font-size: 22px; margin-bottom: 6px; }
.install-modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); }
.install-steps { text-align: left; margin: 16px 0 20px; }
.install-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.install-steps li { color: var(--muted); font-size: 12.5px; }
.install-steps strong { color: var(--text); }

/* Admin messages */
.message-list { display: grid; gap: 14px; }
.message-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); padding: 18px; }
.message-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.message-head strong { font-size: 14px; }
.message-body { margin: 12px 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.message-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.message-actions form { display: flex; gap: 6px; align-items: center; }
.select-sm { min-height: 30px; padding: 0 8px; font-size: 10px; }
.status-pill.status-read { color: var(--violet-soft); border-color: rgba(111,151,245,.4); background: rgba(111,151,245,.08); }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .content-card:hover, .btn:hover { transform: none; }
}

/* Responsive additions */
@media (max-width: 900px) {
  .contact-layout, .download-layout { grid-template-columns: 1fr; }
  .download-gate { flex-direction: column; text-align: center; }
  .download-gate p { margin-inline: auto; }
  .ad-inline-row { grid-template-columns: 1fr; }
  .ad-inline-row .smartlink { justify-self: start; }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; }
  .download-poster { width: 130px; }
  .episode-thumb { width: 74px; height: 44px; }
  .ad-gate { padding: 26px 18px; }
  .voucher-form { flex-direction: column; }
  .voucher-form .btn { width: 100%; }
  .offline-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==========================================================================
   PurrCine v2 — interactive, cute & organized UI layer
   ========================================================================== */

/* ---------- Global polish ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 0; }
.container, .nav-wrap, .admin-main, .room-main, .room-sidebar { min-width: 0; }
img, video, iframe, svg { max-width: 100%; }
.movie-grid > *, .movie-row > *, .rooms-grid > *, .plans-grid > *, .payment-grid > *, .admin-grid > *, .admin-grid-2 > *, .detail-columns > *, .watch-layout > * { min-width: 0; }

/* Soft interactive lift used across cards */
.room-card, .plan-card, .payment-box, .panel, .content-card, .admin-panel, .featured-admin-row {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s, background .25s;
}
.room-card:hover, .plan-card:hover, .payment-box:hover, .admin-panel:hover { border-color: var(--line-strong); }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.32); }

/* Nicer scrollbars everywhere */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Hero carousel ---------- */
.hero.hero-carousel { display: block; padding: 0; min-height: min(790px, 86vh); }
.hero-slides { position: relative; min-height: min(790px, 86vh); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; isolation: isolate;
  transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .hero-bg { z-index: -2; }
.hero-slide .hero-content { position: relative; z-index: 1; }
.hero-slide:not(.active) .hero-bg img { animation: none; }
.hero-tagline {
  font-family: var(--display); font-size: clamp(15px, 1.6vw, 20px);
  color: var(--gold-soft); font-style: italic; letter-spacing: -.01em;
  margin: -6px 0 14px; max-width: 620px; opacity: .95;
}
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(8,8,12,.55);
  backdrop-filter: blur(14px); color: var(--text); font-size: 26px; line-height: 1;
  padding-bottom: 3px; opacity: 0; transition: .25s;
}
.hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: var(--gold); color: #171207; border-color: var(--gold); transform: translateY(-50%) scale(1.06); }
.hero-nav.prev { left: 22px; }
.hero-nav.next { right: 22px; }
.hero-dots { z-index: 6; }
.hero-dot { position: relative; overflow: hidden; transition: width .3s, background .3s; cursor: pointer; }
.hero-dot span { display: block; width: 100%; height: 100%; background: rgba(255,255,255,.55); border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.hero-dot.active span { animation: dotFill var(--hero-interval, 7s) linear forwards; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-dot:hover { background: rgba(255,255,255,.5); }

/* ---------- Notifications dropdown ---------- */
.notif-menu { position: relative; }
.notif-trigger { position: relative; }
.notif-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 99px; background: var(--danger);
  color: #fff; font-size: 9px; font-weight: 900; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg); animation: badgePop .3s ease;
}
@keyframes badgePop { from { transform: scale(.4); } }
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 12px); width: 340px; max-width: calc(100vw - 28px);
  background: #121218; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: .22s; z-index: 120;
}
.notif-menu.open .notif-dropdown { opacity: 1; visibility: visible; transform: none; }
.notif-dropdown .dropdown-head { display: flex; align-items: center; justify-content: space-between; }
.link-btn { border: 0; background: none; color: var(--gold); font-size: 10.5px; font-weight: 800; padding: 2px 0; }
.link-btn:hover { color: var(--gold-soft); text-decoration: underline; }
.notif-list { max-height: min(60vh, 420px); overflow: auto; display: grid; gap: 2px; }
.notif-item {
  display: flex; gap: 11px; padding: 11px 10px; border-radius: 11px; align-items: flex-start;
  transition: background .18s; position: relative;
}
.notif-item:hover { background: rgba(255,255,255,.05); }
.notif-item.unread { background: rgba(111,151,245,.1); }
.notif-item.unread::after { content: ""; position: absolute; right: 10px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.notif-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 16px; }
.notif-body { display: grid; gap: 2px; min-width: 0; }
.notif-body strong { font-size: 11.5px; font-weight: 800; line-height: 1.35; }
.notif-body span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.notif-body time { color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.notif-empty { text-align: center; padding: 28px 14px; color: var(--muted); font-size: 12px; }

/* ---------- Voice bar ---------- */
.voice-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(135deg, rgba(111,151,245,.1), rgba(18,18,24,.7));
  transition: border-color .3s, background .3s;
}
.voice-bar.is-on { border-color: rgba(94,224,160,.4); background: linear-gradient(135deg, rgba(94,224,160,.09), rgba(18,18,24,.7)); }
.voice-status { display: flex; align-items: center; gap: 10px; }
.voice-status strong { display: block; font-size: 12px; font-weight: 800; }
.voice-status .small { font-size: 10px; }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); flex: none; transition: .3s; }
.voice-dot.live { background: var(--success); box-shadow: 0 0 0 4px rgba(94,224,160,.15), 0 0 12px var(--success); animation: pulse 1.8s infinite; }
.voice-people { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: 1; min-width: 0; }
.voice-empty { color: var(--muted-2); font-size: 10.5px; }
.voice-person {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px;
  border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-size: 10.5px; transition: .2s; position: relative;
}
.voice-person .voice-avatar {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--gold)); color: #100c18;
  font-size: 9px; font-weight: 900;
}
.voice-person .voice-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.voice-person .voice-mic { font-size: 9px; opacity: .85; }
.voice-person.speaking { border-color: rgba(94,224,160,.7); box-shadow: 0 0 0 2px rgba(94,224,160,.18); }
.voice-person.muted { opacity: .6; }
.voice-person.muted .voice-avatar { filter: grayscale(.6); }
.voice-actions { display: flex; gap: 7px; margin-left: auto; }
.voice-audio { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Modal (invite friends) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  padding: 20px; background: rgba(4,4,7,.72); backdrop-filter: blur(14px);
  animation: fadeIn .2s ease;
}
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  width: min(460px, 100%); max-height: min(88vh, 640px); overflow: auto;
  background: #121218; border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  animation: modalIn .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal-head h3 { font-size: 18px; letter-spacing: -.03em; }
.modal-close {
  width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--muted); font-size: 18px; line-height: 1;
  display: grid; place-items: center; transition: .2s;
}
.modal-close:hover { background: rgba(255,255,255,.1); color: var(--text); transform: rotate(90deg); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.invite-list { display: grid; gap: 6px; max-height: 46vh; overflow: auto; margin: 2px -4px; padding: 0 4px; }
.invite-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; transition: .18s;
}
.invite-row:hover { border-color: rgba(122,162,255,.4); background: rgba(122,162,255,.06); }
.invite-row.is-inside { opacity: .5; cursor: default; }
.invite-row input { width: 17px; height: 17px; accent-color: var(--gold); flex: none; }
.invite-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--gold)); color: #100c18; font-size: 12px; font-weight: 900;
}
.invite-name { display: grid; gap: 1px; font-size: 12px; font-weight: 700; min-width: 0; }
.invite-name small { color: var(--muted); font-size: 10px; font-weight: 500; }
.invite-empty { text-align: center; padding: 22px 12px; display: grid; gap: 12px; justify-items: center; color: var(--muted); font-size: 12px; }

/* ---------- Room extras ---------- */
.room-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.room-ended-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(255,107,122,.35); background: rgba(255,107,122,.08);
}
.room-ended-banner strong { font-size: 13px; }
.room-ended-banner span { color: var(--muted); font-size: 11.5px; flex: 1; min-width: 180px; }
.you-tag { font-style: normal; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); background: rgba(122,162,255,.14); padding: 1px 5px; border-radius: 99px; vertical-align: middle; }
.voice-chip { font-size: 9px; margin-left: 4px; }
.voice-chip.muted { opacity: .6; }
.member-row { transition: background .2s; }
.member-row[data-member-id] strong { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Ads ---------- */
.ad-slot { display: block; margin: 22px auto; width: 100%; max-width: 970px; }
.ad-frame { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.02); }
.ad-frame iframe { display: block; width: 100%; border: 0; }
.ad-label { position: absolute; top: 6px; left: 8px; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); pointer-events: none; }
.ad-inline-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; }

/* ---------- Admin: featured movies ---------- */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: 30px; }
.admin-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-panel { border: 1px solid var(--line); border-radius: 16px; background: rgba(18,18,24,.6); padding: 18px; margin-bottom: 18px; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-panel-head h2 { font-size: 16px; display: inline-flex; align-items: center; gap: 9px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; background: rgba(122,162,255,.14); color: var(--gold); font-size: 10px; font-weight: 900; }
.featured-admin-list { display: grid; gap: 10px; }
.featured-admin-row {
  display: grid; grid-template-columns: 26px 52px minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.featured-admin-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.featured-admin-row.is-hidden { opacity: .5; }
.featured-order { font-family: var(--display); font-size: 15px; color: var(--muted-2); text-align: center; }
.featured-thumb { width: 52px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.featured-info { min-width: 0; display: grid; gap: 6px; }
.featured-info strong { font-size: 12.5px; display: block; }
.featured-info .muted { font-size: 10px; }
.featured-edit { display: grid; grid-template-columns: minmax(0,1fr) 110px 62px auto; gap: 7px; align-items: center; }
.input-sm { min-height: 32px; height: 32px; padding: 0 9px; font-size: 11px; border-radius: 8px; }
.badge-input { text-align: center; }
.order-input { text-align: center; }
.featured-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.featured-add-form { display: grid; gap: 9px; }
.featured-add-form .input, .featured-add-form .select { width: 100%; }
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); position: relative; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(16px); }

/* ---------- Toasts (both variants) ---------- */
.pc-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #1b1b24; border: 1px solid var(--line-strong); color: var(--text);
  padding: 11px 18px; border-radius: 999px; font-size: 12px; font-weight: 600;
  z-index: 600; opacity: 0; transition: .3s; pointer-events: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); max-width: calc(100vw - 40px); text-align: center;
}
.pc-toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Responsive: tablets ---------- */
@media (max-width: 1000px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
  .hero-nav { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 900px) {
  .featured-edit { grid-template-columns: 1fr 1fr; }
  .featured-edit .order-input { grid-column: 1; }
  .featured-edit .switch { grid-column: 2; justify-self: end; }
  .featured-edit .btn { grid-column: 1 / -1; }
  .voice-bar { gap: 10px; }
  .voice-actions { margin-left: 0; width: 100%; }
  .voice-actions .btn { flex: 1; }
}

/* ---------- Responsive: phones ---------- */
@media (max-width: 800px) {
  .hero.hero-carousel, .hero-slides { min-height: min(74vh, 620px); }
  .hero-nav { display: none; }
  .hero-dots { display: flex; right: 18px; bottom: 22px; }
  .hero-dot { width: 18px; }
  .hero-dot.active { width: 34px; }
  .hero-tagline { font-size: 14px; margin-bottom: 10px; }
  .notif-dropdown { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; max-width: none; }
  .featured-admin-row { grid-template-columns: 22px 44px minmax(0,1fr); }
  .featured-thumb { width: 44px; height: 64px; }
  .featured-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .modal-card { padding: 18px; border-radius: 18px; }
}
@media (max-width: 560px) {
  /* Stop iOS/Android auto-zoom on focus by keeping inputs >= 16px */
  .input, .select, textarea, .chat-form input, .search-form input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"] { font-size: 16px; }
  .hero.hero-carousel, .hero-slides { min-height: 68vh; }
  .hero-content { padding: 84px 0 46px; }
  .hero-title { font-size: clamp(34px, 11vw, 46px); }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1; min-width: 132px; }
  .room-actions { width: 100%; }
  .room-actions .btn, .room-actions .room-code-pill { flex: 1 1 auto; justify-content: center; }
  .voice-person .voice-name { max-width: 64px; }
  .featured-edit { grid-template-columns: minmax(0,1fr); min-width: 0; }
  .featured-edit .order-input, .featured-edit .switch, .featured-edit .btn { grid-column: auto; }
  .featured-edit .switch { justify-self: start; }
  .featured-edit .input { width: 100%; min-width: 0; }
  .admin-panel { padding: 14px; }
  .modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .modal-foot .btn { width: 100%; }
  .modal-foot .link-btn { align-self: center; }
  .notif-dropdown { top: 68px; }
  .room-ended-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .nav-wrap { width: calc(100% - 20px); }
  .brand-word { display: none; }
  .hero-title { font-size: 30px; }
}


/* Split content panel (collapses on phones) */
.split-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 34px; }
@media (max-width: 800px) { .split-panel { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }

/* Compact header actions on small screens so nothing overflows */
@media (max-width: 620px) {
  .nav-wrap { gap: 8px; }
  .nav-actions { gap: 7px; }
  .install-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
  .install-btn span { display: none; }
  .install-btn svg { width: 17px; height: 17px; }
  .icon-btn { width: 38px; height: 38px; }
  .user-trigger { padding: 3px; }
  .user-trigger img { width: 30px; height: 30px; }
  .plan-dot { display: none; }
}
@media (max-width: 380px) {
  .nav-actions { gap: 5px; }
  .icon-btn, .install-btn { width: 34px; height: 34px; min-height: 34px; }
}


/* Mobile hero: let the active slide size the section so nothing is clipped */
@media (max-width: 800px) {
  .hero.hero-carousel, .hero-slides { min-height: 0; }
  .hero-slide {
    position: relative; inset: auto; display: none;
    opacity: 1; visibility: visible; min-height: min(72vh, 600px);
  }
  .hero-slide.active { display: flex; }
  .hero-slide .hero-content { padding: 88px 0 40px; }
  .hero-slide .hero-bg img { animation: none; }
}
@media (max-width: 560px) {
  .hero-slide { min-height: 0; }
  .hero-slide .hero-content { padding: 74px 0 34px; }
}

/* Print */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .site-header, .site-footer, .page-loader, .ambient, .ad-slot, .install-btn, .flash-stack, .mobile-nav { display: none !important; }
  .container { width: 100%; }
  a { color: #111; text-decoration: underline; }
  .legal-doc p, .legal-doc li { color: #333; }
}

/* Admin — AI drama episode rows */
.ep-rows { display: flex; flex-direction: column; gap: 8px; }
.ep-row { display: grid; grid-template-columns: 26px minmax(0,1.1fr) minmax(0,2fr) 110px; gap: 8px; align-items: center; }
.ep-row .ep-num { font-size: 12px; font-weight: 800; color: #e9b85c; text-align: center; }
.ep-row .input { width: 100%; }
@media (max-width: 720px) { .ep-row { grid-template-columns: 22px 1fr; } .ep-row .input:nth-child(4) { grid-column: 2; } }
