/* =====================================================================
   Cine18 — public web app
   Identity: a late-night cinema hall. Plum velvet dark, ruby for actions,
   marigold only for Premium, mint only for Free. Posters do the talking.
   ===================================================================== */
:root {
  --ruby: #ff3366; --ruby-2: #ff5c85; --marigold: #ffb238; --mint: #35d6a8; --sky: #4cc3ff;
  --bg: #140a1c; --bg-2: #1a0e24; --surface: #1f1129; --surface-2: #2a1736; --surface-3: #372146;
  --line: rgba(244, 230, 255, .09); --line-strong: rgba(244, 230, 255, .18);
  --text: #f6eff9; --text-2: #dccfe6; --muted: #a897b8;
  --tint-ruby: rgba(255, 51, 102, .14); --tint-gold: rgba(255, 178, 56, .14); --tint-mint: rgba(53, 214, 168, .14);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .95);
  --r: 16px; --r-sm: 10px; --r-lg: 24px;
  --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px); --left: env(safe-area-inset-left, 0px); --right: env(safe-area-inset-right, 0px);
  --tabbar: 62px; --topbar: 56px; --gut: 16px;
  --display: "Bricolage Grotesque", "Hind Siliguri", system-ui, sans-serif;
  --font: "DM Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
  /* player.css hooks */
  --pink: var(--ruby); --violet: #9b5cff;
}
:root[data-theme="light"] {
  --bg: #fff7f9; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f7ebf1; --surface-3: #eedbe5;
  --line: rgba(70, 20, 60, .1); --line-strong: rgba(70, 20, 60, .2);
  --text: #2a1530; --text-2: #4a3150; --muted: #85708c;
  --tint-ruby: rgba(255, 51, 102, .1); --tint-gold: rgba(255, 160, 30, .14); --tint-mint: rgba(20, 170, 130, .12);
  --shadow: 0 16px 34px -22px rgba(90, 20, 60, .35); --shadow-lg: 0 30px 60px -30px rgba(90, 20, 60, .4);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

/* one warm glow behind the top of every page */
.aurora { position: fixed; inset: 0 0 auto 0; height: 70vh; z-index: -1; pointer-events: none; background: radial-gradient(120% 60% at 15% 0%, rgba(255, 51, 102, .16), transparent 60%), radial-gradient(90% 50% at 100% 0%, rgba(155, 92, 255, .12), transparent 60%); }
.aurora i { display: none; }
:root[data-theme="light"] .aurora { opacity: .6; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; }
.stage { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: calc(var(--topbar) + var(--top));
  padding: var(--top) calc(var(--gut) + var(--right)) 0 calc(var(--gut) + var(--left));
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid transparent; background-origin: border-box; transition: border-color .2s, background .25s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar.on-hero:not(.scrolled) { background: linear-gradient(180deg, rgba(10, 4, 16, .72), rgba(10, 4, 16, 0)); -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand b { white-space: nowrap; font-weight: 700; }
.logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ruby); color: #fff; font-size: 13px; overflow: hidden; flex: none; box-shadow: 0 6px 16px -6px var(--ruby); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo svg { margin-left: 2px; }
.tb-back { width: 40px; height: 40px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(20, 10, 28, .45); border: 1px solid var(--line-strong); color: inherit; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:root[data-theme="light"] .topbar:not(.on-hero) .tb-back, :root[data-theme="light"] .topbar.scrolled .tb-back { background: var(--surface); }
.tb-title { flex: 1; min-width: 0; font-family: var(--display); font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.topbar.show-title .tb-title { opacity: 1; }
.topbar.has-back .tb-brand { display: none; }
.topbar:not(.has-back) .tb-title { display: none; }
.topbar:not(.has-back) .tb-brand { flex: 1; }
.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-premium { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #2b1600; background: var(--marigold); }
.tb-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 700; background: rgba(20, 10, 28, .4); border: 1px solid var(--line-strong); overflow: hidden; color: inherit; }
:root[data-theme="light"] .topbar:not(.on-hero) .tb-avatar, :root[data-theme="light"] .topbar.scrolled .tb-avatar { background: var(--surface); }
.tb-avatar.on { background: var(--ruby); color: #fff; border-color: transparent; font-size: 15px; }

.view { padding: 4px calc(var(--gut) + var(--right)) calc(var(--tabbar) + var(--bottom) + 28px) calc(var(--gut) + var(--left)); outline: none; min-height: 60vh; }
.view > * { animation: fade .25s ease-out both; }
@keyframes fade { from { opacity: 0; } }

.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--tabbar) + var(--bottom)); padding: 0 calc(4px + var(--right)) var(--bottom) calc(4px + var(--left));
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a svg { font-size: 23px; }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { color: var(--ruby); }
.tabbar a.active span { position: relative; }
.rail { display: none; }

/* ---------- common ---------- */
.h-page { font-size: 28px; margin: 10px 0 4px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform .12s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { font-size: 19px; }
.btn-main { color: #fff; border-color: transparent; background: var(--ruby); box-shadow: 0 12px 26px -14px var(--ruby); }
.btn-main:hover { background: var(--ruby-2); }
.btn-gold { color: #2b1600; border-color: transparent; background: var(--marigold); }
.btn-light { color: #2a1530; background: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; padding: 0; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.chip svg { font-size: 13px; }
.chip.free { color: var(--mint); background: var(--tint-mint); }
.chip.prem { color: var(--marigold); background: var(--tint-gold); }
.chip.rate { color: var(--marigold); background: transparent; padding: 0 4px; }
:root[data-theme="light"] .chip.free { color: #0f8a68; }
:root[data-theme="light"] .chip.prem, :root[data-theme="light"] .chip.rate { color: #b56a00; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.empty { text-align: center; padding: 48px 18px; color: var(--muted); }
.empty .e-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; color: var(--ruby); background: var(--tint-ruby); }
.empty h3 { color: var(--text); font-size: 19px; margin-bottom: 6px; }
.empty p { margin: 0 0 18px; }
.notice-bar { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; color: var(--text); background: var(--tint-gold); border: 1px solid rgba(255, 178, 56, .25); margin: 8px 0 16px; }
.notice-bar svg { color: var(--marigold); }

/* skeletons */
.sk { background-color: var(--sh-base); background-image: linear-gradient(100deg, transparent 25%, var(--sh-hi) 50%, transparent 75%); background-size: 220% 100%; background-repeat: no-repeat; animation: shimmer 1.35s ease-in-out infinite; border-radius: var(--r-sm); }
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.sk-hero { aspect-ratio: 4 / 5; max-height: 78vh; margin: calc(-1 * (var(--topbar) + var(--top) + 4px)) calc(-1 * var(--gut)) 20px; border-radius: 0; }
.sk-row { display: flex; gap: 10px; overflow: hidden; margin: 12px 0 26px; }
.sk-row .sk { flex: 0 0 116px; aspect-ratio: 2 / 3; }
.sk-title { height: 18px; width: 40%; margin-top: 8px; border-radius: 6px; }

/* ---------- hero: the one big moment ---------- */
.hero { position: relative; margin: calc(-1 * (var(--topbar) + var(--top) + 4px)) calc(-1 * var(--gut)) 22px; color: #fff; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; max-height: 78vh; overflow: hidden; isolation: isolate; background: #1a0e24; }
.hero-slide .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-slide.on .hero-bg { animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 2%, rgba(20, 10, 28, .82) 30%, rgba(20, 10, 28, .1) 62%, rgba(20, 10, 28, .45) 100%); }
:root[data-theme="light"] .hero-slide::after { background: linear-gradient(0deg, var(--bg) 2%, rgba(30, 10, 30, .75) 32%, rgba(30, 10, 30, .08) 62%, rgba(30, 10, 30, .45) 100%); }
.hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 calc(var(--gut) + var(--right)) 22px calc(var(--gut) + var(--left)); }
.hero-plat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.hero-plat i { width: 22px; height: 22px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; font-style: normal; font-size: 11px; background: hsl(var(--h) 70% 50%); }
.hero-plat i img { width: 100%; height: 100%; object-fit: cover; }
.hero-info h2 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-info p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.hero-meta .chip.free, .hero-meta .chip.prem { height: 24px; }
.hero-meta .chip.free { color: #7af2cf; background: rgba(53, 214, 168, .2); }
.hero-meta .chip.prem { color: #ffd38a; background: rgba(255, 178, 56, .22); }
.hero-meta .rate { color: #ffd38a; display: inline-flex; align-items: center; gap: 4px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; }
.hero-actions .btn-main { flex: 1; max-width: 220px; height: 50px; }
.hero-actions .btn-glass { width: 50px; height: 50px; padding: 0; color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-bars { position: absolute; z-index: 3; left: calc(var(--gut) + var(--left)); right: calc(var(--gut) + var(--right)); top: calc(var(--topbar) + var(--top) + 4px); display: flex; gap: 5px; }
.hero-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; cursor: pointer; }
.hero-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.hero-bars i.done b { width: 100%; }
.hero-bars i.on b { animation: bar 6s linear both; }
.hero.paused .hero-bars i.on b { animation-play-state: paused; }
@keyframes bar { to { width: 100%; } }

/* ---------- platform strip ---------- */
.plat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gut) 6px; margin: 0 calc(-1 * var(--gut)) 22px; scrollbar-width: none; scroll-snap-type: x proximity; }
.plat-strip::-webkit-scrollbar { display: none; }
.plat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 16px 0 6px; border-radius: 16px; scroll-snap-align: start;
  background: hsl(var(--h) 70% 55% / .12); border: 1px solid hsl(var(--h) 70% 60% / .22); }
.plat-chip > span { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 17px; color: #fff; background: hsl(var(--h) 65% 45%); }
.plat-chip img { width: 100%; height: 100%; object-fit: cover; }
.plat-chip b { font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- rows ---------- */
.row { margin: 0 0 28px; }
.row-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.row-head h2 { font-size: 19px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.row-head h2 .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-head .mark { display: none; }
.row-head .plogo { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 12px; color: #fff; background: hsl(var(--h) 65% 45%); align-self: center; }
.row-head .plogo img { width: 100%; height: 100%; object-fit: cover; }
.see-all { display: inline-flex; align-items: center; gap: 1px; font-size: 13.5px; font-weight: 600; color: var(--muted); flex: none; }
.see-all:hover { color: var(--ruby); }
.scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px var(--gut) 4px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 var(--gut); }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* cards */
.card { position: relative; display: block; min-width: 0; }
.card .thumb { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); aspect-ratio: 2 / 3; isolation: isolate; }
.card .thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .card:hover .thumb img { transform: scale(1.035); } }
.card .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.15; color: rgba(255, 255, 255, .9);
  background: linear-gradient(160deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 50% 18%)); }
.card .tag-free { position: absolute; top: 7px; left: 7px; z-index: 1; height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: #06281f; background: var(--mint); }
.card .tag-prem { position: absolute; top: 7px; right: 7px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #2b1600; background: var(--marigold); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); }
.card .meta { padding: 7px 1px 0; }
.card .meta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; }
.card .meta small { display: flex; gap: 8px; align-items: center; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.card .meta small span { overflow: hidden; text-overflow: ellipsis; }
.card .meta small em { font-style: normal; color: var(--marigold); display: inline-flex; align-items: center; gap: 3px; flex: none; }
.card .meta small em svg { font-size: 11px; }
.scroller .card.portrait { flex: 0 0 clamp(112px, 31vw, 168px); }
.scroller .card.landscape { flex: 0 0 clamp(230px, 70vw, 330px); }
.card.landscape .thumb { aspect-ratio: 16 / 9; }
.card .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); z-index: 1; }
.card .prog i { display: block; height: 100%; background: var(--ruby); }
.card .play-ic { position: absolute; left: 10px; bottom: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(20, 10, 28, .6); border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card .play-ic svg { margin-left: 2px; }
.scroller .card.top { flex: 0 0 clamp(150px, 44vw, 214px); display: flex; align-items: flex-end; }
.card.top .num { flex: none; width: 56px; margin-right: -16px; font-family: var(--display); font-size: 104px; line-height: .74; font-weight: 800; letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 2px var(--ruby); paint-order: stroke fill; z-index: 2; }
.card.top .thumb { flex: 1; z-index: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.more-wrap { display: flex; justify-content: center; padding: 22px 0 6px; }

/* premium promo — the only place marigold fills a large area */
.promo { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; border-radius: var(--r); padding: 16px 16px 16px 18px; margin: 0 0 28px;
  background: linear-gradient(110deg, rgba(255, 178, 56, .2), rgba(255, 51, 102, .12)); border: 1px solid rgba(255, 178, 56, .3); }
.promo .p-ico { display: none; }
.promo h3 { font-size: 17px; }
.promo p { grid-column: 1; margin: 0; color: var(--text-2); font-size: 13.5px; }
.promo .btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- platforms ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.plat-tile { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: space-between; min-height: 132px; padding: 14px; border-radius: var(--r);
  background: hsl(var(--h) 60% 50% / .12); border: 1px solid hsl(var(--h) 70% 60% / .2); }
.plat-tile .pt-logo { width: 52px; height: 52px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff; background: hsl(var(--h) 65% 45%); }
.plat-tile .pt-logo img { width: 100%; height: 100%; object-fit: cover; }
.plat-tile b { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.2; }
.plat-tile small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.plat-head { position: relative; overflow: hidden; margin: calc(-1 * (var(--topbar) + var(--top) + 4px)) calc(-1 * var(--gut)) 14px; padding: calc(var(--topbar) + var(--top) + 18px) calc(var(--gut) + var(--right)) 18px calc(var(--gut) + var(--left)); isolation: isolate;
  background: linear-gradient(180deg, hsl(var(--h) 55% 30% / .9), var(--bg)); }
:root[data-theme="light"] .plat-head { background: linear-gradient(180deg, hsl(var(--h) 70% 80%), var(--bg)); }
.plat-head .ph-row { display: flex; gap: 14px; align-items: center; }
.plat-head .pt-logo { width: 72px; height: 72px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 700; color: #fff; background: hsl(var(--h) 65% 45%); flex: none; box-shadow: var(--shadow); }
.plat-head .pt-logo img { width: 100%; height: 100%; object-fit: cover; }
.plat-head h1 { font-size: 28px; }
.plat-head p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }

/* filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gut) 4px; margin: 0 calc(-1 * var(--gut)) 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.fchip.on { color: #fff; border-color: transparent; background: var(--ruby); }
.fchip.hue.on { color: #fff; background: hsl(var(--h) 60% 45%); }
select.fsel { flex: none; height: 36px; padding: 0 30px 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a897b8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; border: 1px solid var(--line); -webkit-appearance: none; appearance: none; }
select.fsel option { background: var(--bg-2); color: var(--text); }

/* ---------- search ---------- */
.search-box { position: sticky; top: calc(var(--topbar) + var(--top)); z-index: 5; margin: 0 calc(-1 * var(--gut)) 16px; padding: 4px var(--gut) 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 15px; font-size: 20px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; height: 50px; padding: 0 46px; font-size: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); outline: none; -webkit-appearance: none; appearance: none; }
.search-field input:focus { border-color: var(--ruby); box-shadow: 0 0 0 4px var(--tint-ruby); }
.search-field .clear { position: absolute; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search-field .clear svg { position: static; font-size: 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.cat-tile { position: relative; overflow: hidden; height: 70px; padding: 12px 14px; border-radius: 14px; text-align: left; display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--text); background: hsl(var(--h) 60% 50% / .14); border: 1px solid hsl(var(--h) 70% 60% / .2); }
.cat-tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: hsl(var(--h) 75% 60%); }
.cat-tile small { order: 2; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.recent { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sec-title { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-title button { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- detail ---------- */
.detail-top { position: relative; margin: calc(-1 * (var(--topbar) + var(--top) + 4px)) calc(-1 * var(--gut)) 0; isolation: isolate; }
.detail-top .backdrop { position: relative; aspect-ratio: 16 / 10; max-height: 62vh; background: center 25% / cover no-repeat var(--surface-2); }
.detail-top .backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(20, 10, 28, .55) 45%, rgba(20, 10, 28, .25) 75%, rgba(20, 10, 28, .5) 100%); }
:root[data-theme="light"] .detail-top .backdrop::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 247, 249, .4) 45%, rgba(30, 10, 30, .15) 75%, rgba(30, 10, 30, .45) 100%); }
.detail-hero { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: end; margin-top: -84px; padding: 0 calc(var(--gut) + var(--right)) 0 calc(var(--gut) + var(--left)); }
.detail-hero .poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); }
.detail-hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero h1 { font-size: clamp(24px, 6.4vw, 40px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 8px; text-wrap: balance; }
.plat-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 3px; border-radius: 9px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; max-width: 100%; }
.plat-pill i { width: 22px; height: 22px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; background: hsl(var(--h) 65% 45%); flex: none; }
.plat-pill i img { width: 100%; height: 100%; object-fit: cover; }
.plat-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-actions { display: flex; gap: 10px; margin: 18px 0 10px; }
.detail-actions .btn-main, .detail-actions .btn-gold { flex: 1; height: 52px; font-size: 16px; }
.detail-actions .btn-icon { width: 52px; height: 52px; }
.btn-icon.on { color: #fff; background: var(--ruby); border-color: transparent; }
.resume-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.lock-note { display: flex; gap: 12px; align-items: center; padding: 13px 14px; margin: 6px 0 14px; border-radius: 14px; background: var(--tint-gold); border: 1px solid rgba(255, 178, 56, .28); font-size: 13.5px; }
.lock-note .l-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #2b1600; background: var(--marigold); font-size: 17px; }
.desc { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 8px 0 4px; white-space: pre-line; max-width: 70ch; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { font-weight: 600; font-size: 13.5px; color: var(--ruby); margin-bottom: 14px; }
.info-list { display: grid; gap: 8px; margin: 12px 0 22px; font-size: 13.5px; }
.info-list div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--text-2); }
.parts { display: grid; gap: 8px; margin: 0 0 24px; }
.part { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; }
.part .n { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 700; color: var(--ruby); background: var(--tint-ruby); font-size: 15px; }
.part.on { border-color: var(--ruby); }
.part.on .n { color: #fff; background: var(--ruby); }
.part b { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part svg { color: var(--muted); }

/* ---------- player layer ---------- */
.player-layer { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #0a0510; color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: fade .2s both; }
.pl-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--top) + 8px) calc(14px + var(--right)) 8px calc(14px + var(--left)); }
.pl-top button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .1); }
.pl-top strong { flex: 1; min-width: 0; font-family: var(--display); font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 calc(10px + var(--right)) 0 calc(10px + var(--left)); }
.pl-main .c18p-stage { border-radius: 14px; }
.pl-info { width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px calc(16px + var(--right)) calc(30px + var(--bottom)) calc(16px + var(--left)); --bg: #0a0510; --surface: #1a0e24; --surface-2: #2a1736; --line: rgba(255, 255, 255, .1); --text: #f6eff9; --text-2: #dccfe6; --muted: #a897b8; }
.pl-info h2 { font-size: 20px; margin-bottom: 10px; }
.pl-info .row-head h2 { font-size: 17px; }
.pl-msg { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 9; border-radius: 14px; padding: 20px; background: radial-gradient(circle at 50% 30%, #3a1838, #140a1c); }
.pl-msg h3 { font-size: 20px; margin-bottom: 6px; }
.pl-msg p { margin: 0 0 16px; color: #dccfe6; }

/* ---------- sheets ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 3, 12, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s both; }
.sheet { position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px calc(20px + var(--right)) calc(22px + var(--bottom)) calc(20px + var(--left));
  border-radius: 26px 26px 0 0; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-lg); animation: up .32s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes up { from { transform: translateY(48px); opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet .s-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; }
.sheet h2 { font-size: 24px; margin: 4px 0 4px; }
.sheet .sub { margin-bottom: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 18px; }
.seg button { height: 40px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { color: var(--text); background: var(--bg-2); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .4); }
:root:not([data-theme="light"]) .seg button.on { background: var(--surface-3); }
.form { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.fld input { height: 50px; padding: 0 15px; font-size: 16px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); outline: none; -webkit-appearance: none; appearance: none; width: 100%; }
.fld input:focus { border-color: var(--ruby); box-shadow: 0 0 0 4px var(--tint-ruby); }
.form-err { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #ff9db6; background: var(--tint-ruby); border: 1px solid rgba(255, 51, 102, .3); }
:root[data-theme="light"] .form-err { color: #c2184b; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* age gate */
.age { text-align: center; padding-top: 8px; }
.age .big { width: 96px; height: 96px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--ruby); background: var(--tint-ruby); border: 2px solid var(--ruby); }
.age .btns { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- premium ---------- */
.prem-hero { position: relative; text-align: center; margin: 0 calc(-1 * var(--gut)) 18px; padding: 22px var(--gut) 18px; }
.prem-hero::before { content: ""; position: absolute; inset: -60px 0 0; z-index: -1; background: radial-gradient(60% 70% at 50% 0%, rgba(255, 178, 56, .28), transparent 70%); }
.prem-hero .crown { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; color: #2b1600; background: var(--marigold); box-shadow: 0 20px 40px -18px var(--marigold); }
.prem-hero h1 { font-size: 30px; }
.prem-hero p { color: var(--muted); margin: 6px auto 0; max-width: 34ch; }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 22px; }
.perk { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.perk i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-style: normal; color: var(--marigold); background: var(--tint-gold); font-size: 16px; }
.plans { display: grid; gap: 12px; margin-bottom: 20px; }
.plan { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.plan.on { border-color: var(--marigold); background: linear-gradient(120deg, var(--tint-gold), transparent 70%), var(--surface); }
.plan.on .radio { border-color: var(--marigold); background: var(--marigold); }
.plan.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2b1600; }
.plan h3 { font-size: 18px; }
.plan small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.plan .price { text-align: right; }
.plan .price b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.plan .price s { font-size: 12.5px; color: var(--muted); }
.plan .pbadge { position: absolute; top: -11px; left: 54px; height: 22px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; color: #2b1600; background: var(--marigold); }
.plan ul { grid-column: 2 / -1; list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-2); }
.plan ul li { display: inline-flex; align-items: center; gap: 4px; }
.plan ul svg { color: var(--mint); font-size: 13px; }
.gws { display: grid; gap: 10px; margin-bottom: 18px; }
.gw { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 16px; text-align: left; width: 100%; background: var(--surface); border: 1.5px solid var(--line); }
.gw.on { border-color: var(--ruby); }
.gw .g-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 19px; color: var(--ruby); background: var(--tint-ruby); }
.gw b { display: block; font-size: 15px; }
.gw small { color: var(--muted); font-size: 12.5px; }
.gw .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.gw.on .radio { border: 7px solid var(--ruby); }
.paybar { position: sticky; bottom: calc(var(--tabbar) + var(--bottom) + 10px); z-index: 4; margin-top: 8px; }
.paybar .btn { height: 56px; font-size: 16.5px; border-radius: 16px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- account ---------- */
.profile { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; }
.profile .av { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 25px; font-weight: 700; color: #fff; background: var(--ruby); flex: none; }
.profile h1 { font-size: 22px; }
.profile p { margin: 0; color: var(--muted); font-size: 13.5px; word-break: break-all; }
.member-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); }
.member-card.pro { background: linear-gradient(130deg, rgba(255, 178, 56, .22), rgba(255, 51, 102, .1) 70%), var(--surface); border-color: rgba(255, 178, 56, .35); }
.member-card .mc-top { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--muted); }
.member-card.pro .mc-top { color: var(--marigold); }
.member-card h2 { font-size: 24px; margin: 6px 0 2px; }
.member-card p { margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; }
.member-card .meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.member-card .meter i { display: block; height: 100%; background: var(--marigold); border-radius: inherit; }
.menu { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 16px; }
.menu > * { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; text-align: left; font-weight: 600; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.menu > *:last-child { border-bottom: 0; }
.menu .m-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); font-size: 17px; }
.menu .m-txt { flex: 1; min-width: 0; }
.menu .m-txt small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.menu .m-end { color: var(--muted); font-size: 18px; }
.toggle { width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.toggle.on { background: var(--ruby); }
.toggle.on::after { transform: translateX(18px); }
.pay-row { display: flex; align-items: center; gap: 12px; }
.pay-row .amt { font-weight: 700; }
.st { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: capitalize; }
.st.paid { color: var(--mint); background: var(--tint-mint); }
.st.pending { color: var(--marigold); background: var(--tint-gold); }
.st.cancelled, .st.failed { color: var(--muted); background: var(--surface-3); }
.guest { text-align: center; padding: 26px 8px 8px; }
.guest .g-art { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: var(--ruby); background: var(--tint-ruby); }
.guest h1 { font-size: 26px; }
.guest p { color: var(--muted); margin: 6px auto 20px; max-width: 32ch; }
.guest .btns { display: grid; gap: 10px; max-width: 360px; margin: 0 auto 26px; }

/* install hint */
.install { display: flex; gap: 12px; align-items: center; padding: 12px; margin: 0 0 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.install .i-ico { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; }
.install .i-ico img { width: 100%; height: 100%; }
.install b { display: block; font-size: 14.5px; }
.install small { color: var(--muted); font-size: 12.5px; }
.install .btn { margin-left: auto; }
.ios-steps { display: grid; gap: 8px; margin: 6px 0 14px; padding: 0; list-style: none; counter-reset: s; }
.ios-steps li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 13px; background: var(--surface-2); font-size: 14px; counter-increment: s; }
.ios-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; background: var(--ruby); }

/* toast */
.toast-wrap { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--tabbar) + var(--bottom) + 14px); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 13px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; color: #fff; background: rgba(42, 23, 54, .96); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); animation: up .25s both; }
.toast.ok { background: #138a68; }
.toast.err { background: #c2184b; }

/* player overrides */
.c18p { --pa: var(--ruby); --pb: #9b5cff; }
.player-layer .c18p-sources { display: none !important; }

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --gut: 36px; --topbar: 66px; }
  .shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
  .rail .brand { padding: 4px 10px; font-size: 22px; }
  .rail-nav { display: grid; gap: 2px; }
  .rail-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; color: var(--muted); }
  .rail-nav a svg { font-size: 20px; }
  .rail-nav a:hover { color: var(--text); background: var(--surface); }
  .rail-nav a.active { color: var(--text); background: var(--surface-2); }
  .rail-nav a.active svg { color: var(--ruby); }
  .rail-promo { margin-top: auto; }
  .rail-promo .promo { margin: 0; grid-template-columns: 1fr; padding: 16px; }
  .rail-promo .promo .btn { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .tabbar, .tb-brand { display: none !important; }
  .topbar:not(.has-back) .tb-title { display: block; opacity: 1; }
  .topbar.on-hero:not(.scrolled) .tb-title { opacity: 0; }
  .view { padding-bottom: 56px; max-width: 1500px; }
  .hero-slide { aspect-ratio: 21 / 9; max-height: 78vh; }
  .sk-hero { aspect-ratio: 21 / 9; max-height: 78vh; }
  .hero-slide::after { background: linear-gradient(90deg, rgba(20, 10, 28, .92) 0%, rgba(20, 10, 28, .55) 38%, rgba(20, 10, 28, 0) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
  :root[data-theme="light"] .hero-slide::after { background: linear-gradient(90deg, rgba(30, 10, 30, .85) 0%, rgba(30, 10, 30, .45) 38%, rgba(30, 10, 30, 0) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
  .hero-info { bottom: 12%; padding-left: calc(var(--gut) + 8px); max-width: 680px; }
  .hero-info h2 { font-size: 58px; }
  .hero-info p { font-size: 15.5px; -webkit-line-clamp: 3; }
  .hero-bars { left: auto; right: var(--gut); width: 240px; top: auto; bottom: 14%; }
  .scroller .card.portrait { flex-basis: 170px; }
  .scroller .card.landscape { flex-basis: 310px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 24px 16px; }
  .plat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .detail-top .backdrop { aspect-ratio: 21 / 8; }
  .detail-hero { grid-template-columns: 210px 1fr; gap: 28px; margin-top: -170px; }
  .detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
  .detail-body .grid { grid-template-columns: repeat(3, 1fr); }
  .detail-actions { max-width: 520px; }
  .paybar { bottom: 16px; }
  .prem-wrap, .acct-wrap { max-width: 640px; margin: 0 auto; }
  .sheet-layer { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); }
  .toast-wrap { bottom: 24px; }
  .row-head h2 { font-size: 22px; }
}
@media (max-width: 380px) {
  .detail-hero { grid-template-columns: 94px 1fr; }
  .perks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.detail-hero .poster.card .ph { font-size: 14px; }

/* images always sit above their placeholder (not only on hover) */
.card .thumb img, .detail-hero .poster img { position: absolute; inset: 0; z-index: 0; }
.card .tag-free, .card .tag-prem, .card .prog, .card .play-ic { z-index: 2; }
/* Google sign-in */
.g-box { margin: 0 0 16px; }
.g-box.solo { margin: 18px auto 0; max-width: 360px; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.g-btn.is-busy { opacity: .5; pointer-events: none; }
.g-box .or { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.g-box.solo .or { margin: 0 0 14px; }
.g-box .or::before, .g-box .or::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(255,255,255,.12)); }
/* Access codes */
.code-sheet { text-align: center; }
.code-art { width: 68px; height: 68px; margin: 4px auto 14px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ffb238, #ff3366); box-shadow: 0 18px 40px -16px #ff3366; }
.code-art svg { width: 32px; height: 32px; }
.code-art.ok { background: linear-gradient(135deg, #35d6a8, #13b8d9); box-shadow: 0 18px 40px -16px #35d6a8; }
.code-sheet .form { text-align: left; margin-top: 6px; }
.code-field { width: 100%; height: 58px; border-radius: 16px; border: 1.5px solid var(--line, rgba(255,255,255,.14)); background: var(--surface-2); color: var(--text); text-align: center;
  font: 700 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; outline: none; }
.code-field:focus { border-color: #ff3366; box-shadow: 0 0 0 4px rgba(255, 51, 102, .18); }
.code-field::placeholder { color: var(--muted); opacity: .45; letter-spacing: .18em; }
.code-keep { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 6px; text-align: left; }
.code-keep > span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.code-keep .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.code-keep .g-box.solo { margin: 8px 0 0; max-width: none; }
.code-ok-bar { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(53, 214, 168, .14); color: var(--text); font-size: 14px; line-height: 1.45; }
.code-ok-bar svg { flex: none; width: 20px; height: 20px; color: #35d6a8; margin-top: 1px; }
.member-card.code-card { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; background: linear-gradient(135deg, rgba(255, 178, 56, .18), rgba(255, 51, 102, .14)); }
.member-card.code-card.on { cursor: default; }
.member-card.code-card.on h2 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.member-card.code-card .cc-note { font-size: 13px; opacity: .8; margin-top: 4px; }
.member-card.code-card .btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.member-card.code-card > .btn { margin-top: 12px; }
.notice-bar.code-bar { width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; background: linear-gradient(135deg, rgba(255, 178, 56, .2), rgba(255, 51, 102, .16)); }
.notice-bar.code-bar span { flex: 1; }
/* unlock sheet alternatives (no code? free trial / sign in / plans) */
.unlock-alts { display: grid; gap: 10px; margin-top: 14px; }
.unlock-alts .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.unlock-alts .or::before, .unlock-alts .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
/* premium page: free trial and access code rows */
.prem-trial, .prem-code { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.prem-trial { background: linear-gradient(135deg, var(--tint-mint), var(--tint-gold)); border-color: rgba(53, 214, 168, .35); }
.prem-code { background: linear-gradient(135deg, var(--tint-gold), var(--tint-ruby)); border-color: rgba(255, 178, 56, .32); }
.prem-code.on { cursor: default; }
.prem-trial > span:nth-child(2), .prem-code > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.prem-trial b, .prem-code b { font-size: 15.5px; }
.prem-trial small, .prem-code small { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.pt-ico, .pc-ico { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.pt-ico { background: linear-gradient(135deg, #35d6a8, #13b8d9); }
.pc-ico { background: linear-gradient(135deg, #ffb238, #ff3366); }
.pt-ico svg, .pc-ico svg { width: 22px; height: 22px; }
.prem-trial > svg:last-child, .prem-code > svg:last-child { width: 18px; height: 18px; color: var(--muted); flex: none; }
/* "Get the Android app" (home banner for Android phones, account card) */
.app-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; padding: 10px 10px 10px 12px; border-radius: var(--r); background: linear-gradient(135deg, rgba(25, 195, 125, .16), rgba(19, 184, 217, .12)); border: 1px solid rgba(25, 195, 125, .32); color: var(--text); text-decoration: none; }
.app-bar img { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.app-bar > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.app-bar b { font-size: 14.5px; line-height: 1.25; }
.app-bar small { color: var(--text-2); font-size: 12.5px; }
.app-bar .ab-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, #19c37d, #13b8d9); color: #fff; font-weight: 700; font-size: 13.5px; flex: none; }
.app-bar .ab-btn svg { width: 16px; height: 16px; }
.app-bar .ab-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); flex: none; }
.app-bar .ab-x svg { width: 16px; height: 16px; }
a.install { color: var(--text); text-decoration: none; }
a.install .btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- YouTube-style loading
   A box with .sh shows a moving grey shimmer until its picture has loaded; then the picture fades in.
   If a picture fails, the coloured title placeholder (.ph) shows instead. */
:root { --sh-base: #241530; --sh-hi: rgba(255, 255, 255, .09); }
:root[data-theme="light"] { --sh-base: #ece4ea; --sh-hi: rgba(255, 255, 255, .75); }
.sh { background-color: var(--sh-base) !important; background-image: linear-gradient(100deg, transparent 25%, var(--sh-hi) 50%, transparent 75%) !important; background-size: 220% 100% !important; background-repeat: no-repeat !important; animation: shimmer 1.35s ease-in-out infinite; }
.sh > .ph { opacity: 0; }
.hero-slide.sh { --sh-base: #23142d; --sh-hi: rgba(255, 255, 255, .08); } /* the banner stays dark in both themes, so its white text stays readable */
.card .thumb img, .detail-hero .poster img, .hero-slide .hero-bg { transition: opacity .35s ease, transform .4s ease; }
.sh > img, .hero-slide.sh .hero-bg { opacity: 0; }
.card .thumb.sh .tag-free, .card .thumb.sh .tag-prem { opacity: .55; }
.hero-slide.sh .hero-info { opacity: .9; }
/* page skeletons: thumbnail block + two text lines, like YouTube */
.sk-card { display: grid; gap: 7px; min-width: 0; }
.sk-row .sk-card { flex: 0 0 clamp(112px, 31vw, 168px); }
.sk-row .sk-card:has(.sk-thumb[style*="16/9"]) { flex-basis: clamp(230px, 70vw, 330px); }
.sk-thumb { width: 100%; border-radius: var(--r-sm); }
.sk-line { height: 11px; width: 88%; border-radius: 6px; }
.sk-line.short { width: 55%; }
.sk-chips { display: flex; gap: 10px; overflow: hidden; margin: 0 0 22px; }
.sk-chip { flex: 0 0 120px; height: 42px; border-radius: 999px; }
.sk-detail { display: flex; gap: 16px; align-items: flex-end; margin-top: 70px; }
.sk-poster { flex: 0 0 clamp(110px, 30vw, 170px); aspect-ratio: 2 / 3; border-radius: 12px; }
.sk-lines { flex: 1; display: grid; gap: 10px; }
.sk-btn { height: 48px; width: 70%; border-radius: 14px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .sh, .sk { animation: none; } }
