/* КиноСан — OTT "theater mode": the interface recedes, posters are the light source.
   Rules: real backdrop-filter only on floating chrome (navbar, tab bar, sheets/modals, player HUD, hero buttons);
   lists use pre-baked "fake glass" so scrolling stays at 60fps. Animations touch transform/opacity only. */
/* Self-hosted variable fonts (no third-party requests). Inter: UI/body text; Montserrat: display (titles, brand, buttons).
   Mongolian Ө/Ү live in the cyrillic-ext subset, which is only downloaded when such a character is on screen. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-cyrillic-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/montserrat-cyrillic-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/montserrat-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #0b0d12;
  --surface: #181a20;
  --surface-2: #1f222a;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --brand: #f5a300;
  --brand-2: #ffc94d;
  --brand-ink: #1b1300;
  --danger: #ff6b6b;
  --ok: #45d483;
  --ambient: 245, 163, 0;           /* dominant colour of the active poster (set by JS) */
  --radius: 12px;
  --wrap: 1320px;
  --gutter: 16px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 16px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: var(--text); background: var(--bg); min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); overflow-x: hidden; }
/* Ambient backlight: the active poster's colour, diffused far behind everything. */
body::before { content: ""; position: fixed; inset: -10vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 70% 0%, rgba(var(--ambient), .22), transparent 70%),
              radial-gradient(40% 50% at 0% 10%, rgba(var(--ambient), .10), transparent 70%);
  transition: background 1.2s ease; }
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-family: var(--font-display); letter-spacing: 0; }
.logo__text, .hero__title, .btn, .chip, .badge, .top10__n, .plan__price, .plan__name, .member__title, .stat b, .bottom-nav a, .top__nav a { font-family: var(--font-display); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Optical glass (4 layers: tint+vibrancy, directional rim, inner thickness, micro-grain) ---------- */
.glass, .optical-glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.09) 0%, rgba(20,22,30,.66) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.22); border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.04);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.16), 0 16px 36px rgba(0,0,0,.55);
  border-radius: 16px;
}
.optical-glass::after, .glass.grain::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Fake glass for list surfaces: no backdrop-filter, same look, zero GPU cost while scrolling. */
.fake-glass { background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(24,26,32,.92)); border: 1px solid rgba(255,255,255,.08); border-top-color: rgba(255,255,255,.16); border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .optical-glass, .top.is-solid, .bottom-nav { background: rgba(24,26,32,.96) !important; }
}

/* Specular 1px gradient border (mask-composite) */
.lit-border { position: relative; }
.lit-border::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(245,163,0,.22) 45%, rgba(255,255,255,.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- Navbar: transparent over the hero, progressive-blur glass once scrolled ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s ease; }
.top::before { content: ""; position: absolute; inset: 0 0 -24px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(to bottom, rgba(11,13,18,.86), rgba(11,13,18,.5) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.top::after { content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none; z-index: -1; background: linear-gradient(to bottom, rgba(11,13,18,.7), transparent); }
.top.is-solid::before { opacity: 1; }
.top__bar { position: relative; display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo__text { font-weight: 800; font-size: 19px; letter-spacing: 0; }
.top__nav { display: none; }
.search-pill { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; min-width: 0; color: var(--muted);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.search-pill input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; min-width: 0; font-size: 16px; }
.search-pill input::placeholder { color: var(--muted); }
.search-pill:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: var(--muted); display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 800; }
.avatar.is-on { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
main { padding-top: 60px; }
main.has-hero { padding-top: 0; }

/* ---------- Bottom tab bar (thumb zone, real glass) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(20,22,30,.72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bottom-nav svg { width: 25px; height: 25px; }
.bottom-nav a[aria-current="page"] { color: var(--text); }
.bottom-nav a[aria-current="page"] svg { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; font-weight: 700; font-size: 16px;
  background: rgba(109,109,120,.42); color: var(--text); transition: transform .2s var(--ease-out), background .2s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--play { background: #f5f5f7; color: #0b0d12; }
.btn--brand { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink); }
.btn--glass { background: rgba(109,109,120,.4); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-top: 1px solid rgba(255,255,255,.2); }
.btn--big { min-height: 54px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--danger { color: var(--danger); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
/* Specular sweep on hover (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.3) 50%, transparent 60%); }
  .btn:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-out); }
  .btn--play:hover { background: #fff; }
  .btn--glass:hover, .btn:not(.btn--play):not(.btn--brand):hover { background: rgba(130,130,140,.5); }
}
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.badge--new { background: var(--brand); color: var(--brand-ink); }
.badge--line { border: 1px solid rgba(255,255,255,.35); color: var(--muted); }

/* ---------- Hero billboard ---------- */
.hero { position: relative; isolation: isolate; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: blur(28px) saturate(150%); transform: scale(1.25); opacity: .6; }
.hero__art::after { content: ""; position: absolute; inset: 0; /* eased scrim: 7 stops, no Mach banding */
  background:
    linear-gradient(to top, #0b0d12 0%, rgba(11,13,18,.96) 12%, rgba(11,13,18,.82) 26%, rgba(11,13,18,.54) 44%, rgba(11,13,18,.22) 65%, rgba(11,13,18,.05) 84%, transparent 100%),
    linear-gradient(to right, rgba(11,13,18,.85) 0%, rgba(11,13,18,.35) 40%, transparent 70%); }
.hero__inner { width: 100%; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__poster { width: min(62vw, 300px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.7); margin: 84px auto 18px; }
.hero__title { font-size: clamp(26px, 6vw, 56px); font-weight: 800; letter-spacing: -.005em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero__meta { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; margin-top: 8px; flex-wrap: wrap; }
.hero__desc { display: none; }
.hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; margin-top: 16px; }
.hero__dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.hero__dots button { width: 8px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.3); transition: width .3s var(--ease-out), background .3s; }
.hero__dots button[aria-current="true"] { width: 22px; background: var(--text); }

/* ---------- Promo strip ---------- */
.promo { display: flex; align-items: center; gap: 12px; margin: 6px auto 0; padding: 12px 14px; }
.promo__icon { width: 38px; height: 38px; flex: none; }
.promo__text { flex: 1; font-weight: 700; font-size: 15px; }
.promo .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Swimlanes ---------- */
.lane { position: relative; padding-top: 22px; }
.lane__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.lane__head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.lane__more { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 2px; padding: 6px 0 6px 12px; }
.lane__more:hover { color: var(--text); }
.chev { width: 16px; height: 16px; }
.lane__track { --peek: 18%; --per: 3; --g: 10px;
  display: grid; grid-auto-flow: column; gap: var(--g);
  grid-auto-columns: calc((100% - var(--peek) - (var(--per) - 1) * var(--g)) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 14px; scrollbar-width: none; }
.lane__track::-webkit-scrollbar { display: none; }
.lane__track > * { scroll-snap-align: start; }
.lane__arrow { display: none; }
.lane--landscape .lane__track { --per: 1.6; --peek: 8%; }
.lane--top10 .lane__track { --per: 2.2; --peek: 8%; }

/* ---------- Cards ---------- */
.card { display: block; min-width: 0; position: relative; }
.card__img { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--surface); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); }
.card__badges { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.card__dur { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(11,13,18,.72); padding: 2px 6px; border-radius: 4px; }
.card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.card__bar > i { display: block; height: 100%; background: var(--brand); }
.card__title { margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #d4d4d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--landscape .card__img { aspect-ratio: 16 / 9; }
.card--landscape .card__img .card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(140%); transform: scale(1.2); opacity: .7; }
.card--landscape .card__img .card__fg { position: absolute; top: 8%; bottom: 8%; left: 50%; width: auto; height: 84%; aspect-ratio: 2/3; transform: translateX(-50%); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card--landscape .card__play { position: absolute; left: 10px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(245,245,247,.92); color: #0b0d12; display: grid; place-items: center; }
.card--landscape .card__play svg { width: 16px; height: 16px; margin-left: 2px; }
/* Top 10: giant outlined numeral bleeding behind the poster */
.top10 { display: grid; grid-template-columns: 42% 58%; align-items: end; }
.top10__n { font-size: clamp(90px, 26vw, 150px); line-height: .8; font-weight: 900; color: var(--bg); -webkit-text-stroke: 3px rgba(245,245,247,.55); letter-spacing: -.08em; text-align: right; margin-right: -10px; user-select: none; }
.top10 .card__img { box-shadow: -10px 0 24px rgba(0,0,0,.6); }
/* Pointer devices only: delayed (hover-intent) lift with GPU transform; no sticky hover on touch. */
@media (hover: hover) and (pointer: fine) {
  .card .card__img { transition: transform .35s var(--ease-out), box-shadow .35s ease; will-change: transform; }
  .card:hover .card__img { transform: scale(1.08) translateY(-4px); transition-delay: .25s; box-shadow: 0 18px 36px rgba(0,0,0,.75); z-index: 2; }
  .card:hover .card__img::after { transform: translateX(130%); transition: transform .9s var(--ease-out) .3s; }
  .card:hover .card__title { color: var(--text); }
}

/* ---------- Grid (all films / search / saved) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.chips { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 24px 0 8px; }
.pager .btn { width: 100%; }

/* ---------- Skeleton / states ---------- */
.skel { background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 10px; color: rgba(255,255,255,.22); }
.empty h2 { font-size: 18px; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 10px; }
.alert { padding: 12px 14px; border-radius: 12px; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.3); color: #ffc9c9; font-size: 15px; }
.alert--info { background: rgba(245,163,0,.12); border-color: rgba(245,163,0,.35); color: #ffe2a6; }
.alert--ok { background: rgba(69,212,131,.12); border-color: rgba(69,212,131,.35); color: #bff3d4; }

/* ---------- Quick view: bottom sheet (mobile) / centered modal (desktop) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(5,6,9,.62); opacity: 0; transition: opacity .3s ease; }
.sheet__panel { position: relative; width: 100%; max-height: 88dvh; overflow: auto; border-radius: 20px 20px 0 0; padding: 0 0 calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .38s var(--ease-out); overscroll-behavior: contain; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 10px auto 4px; }
.sheet__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(11,13,18,.7); color: var(--text); display: grid; place-items: center; }
.sheet__close svg { width: 18px; height: 18px; }
.qv { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 18px 0; }
.qv__poster { width: 112px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.55); }
.qv h2 { font-size: 21px; font-weight: 800; }
.qv__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 6px; }
.qv__desc { padding: 14px 18px 0; color: #d4d4d8; margin: 0; }
.qv__ctas { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 18px 0; }

/* ---------- Film page / player ---------- */
.player { position: relative; background: #000; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 5; max-height: 76vh; overflow: hidden; user-select: none; -webkit-user-select: none; }
.player video, .player .player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .player__poster { object-fit: cover; }
.player__big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; color: #fff; display: grid; place-items: center; z-index: 3;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 0; border-top: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 10px 30px rgba(0,0,0,.45); transition: transform .2s var(--ease-out); }
.player__big:active { transform: translate(-50%, -50%) scale(.94); }
.player__big svg { width: 36px; height: 36px; margin-left: 5px; }
.player__msg { position: absolute; inset: auto 16px 50% 16px; transform: translateY(50%); z-index: 4; text-align: center; padding: 18px; }
.player__msg p { margin: 0 0 14px; font-size: 16px; }
/* Player HUD: glass that fades into the picture (progressive blur via mask) */
.player__ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 34px 14px 10px; color: #fff; transition: opacity .3s ease; }
.player__ctrl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,13,18,.82), rgba(11,13,18,.2) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
.player.is-idle .player__ctrl { opacity: 0; }
.player__row { display: flex; align-items: center; gap: 10px; }
.player__time { font-size: 14px; font-variant-numeric: tabular-nums; flex: 1; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 50%; }
.icon-btn svg { width: 24px; height: 24px; }
.seek { width: 100%; height: 24px; margin: 4px 0 0; accent-color: var(--brand); background: transparent; }
.player__spin { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.watermark { position: absolute; z-index: 2; pointer-events: none; color: rgba(255,255,255,.38); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-shadow: 0 0 2px rgba(0,0,0,.6); transition: top 1.2s, left 1.2s; white-space: nowrap; }
.player:fullscreen { max-height: none; aspect-ratio: auto; margin: 0; }
.player.is-pseudo-fs { position: fixed; inset: 0; z-index: 100; margin: 0; max-height: none; aspect-ratio: auto; }
.film-info { margin-top: 16px; padding: 18px; }
.film-info h1 { font-size: 24px; font-weight: 800; letter-spacing: 0; }
.film-meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin: 8px 0 16px; flex-wrap: wrap; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.actions .btn[aria-pressed="true"] { color: var(--brand); }
.intro { margin-top: 14px; }
.intro p { margin: 0; color: #d4d4d8; }
.intro.is-clamped p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { border: 0; background: none; color: var(--brand); padding: 6px 0; font-weight: 700; }

/* ---------- Account / forms / pay ---------- */
.me-user { display: flex; gap: 14px; align-items: center; padding-top: 20px; }
.me-user .avatar { width: 60px; height: 60px; font-size: 24px; }
.me-user h1 { font-size: 22px; }
.member { margin-top: 16px; border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, rgba(245,163,0,.30), rgba(245,163,0,.08)); }
.member__body { flex: 1; }
.member__title { font-weight: 800; font-size: 18px; }
.section { padding-top: 22px; padding-bottom: 4px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section__head h2 { font-size: 19px; font-weight: 800; }
.list { overflow: hidden; }
.list > * { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.list > *:last-child { border-bottom: 0; }
.list__main { flex: 1; min-width: 0; }
.list__sub { font-size: 13px; color: var(--muted); }
.auth { max-width: 440px; margin: 0 auto; padding: 24px 16px 40px; }
.panel { padding: 22px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.input { width: 100%; height: 54px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font-size: 18px; color: var(--text); }
textarea.input { height: auto; min-height: 96px; padding: 10px 14px; font-size: 16px; }
.input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(245,163,0,.22); }
.pw { position: relative; }
.pw .input { padding-right: 56px; }
.pw .icon-btn { position: absolute; right: 5px; top: 5px; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.switch { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 8px; }
.plans { display: grid; gap: 12px; }
.plan { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; border: 2px solid rgba(255,255,255,.1); background: var(--surface); text-align: left; width: 100%; }
.plan[aria-checked="true"] { border-color: var(--brand); background: rgba(245,163,0,.1); }
.plan__name { font-weight: 800; font-size: 18px; }
.plan__price { margin-left: auto; font-weight: 800; font-size: 24px; }
.perks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; font-size: 16px; }
.perks li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-right: 10px; }
.banks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.banks a { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; font-weight: 700; font-size: 15px; }
.banks img { width: 30px; height: 30px; border-radius: 8px; }
.qr { width: 220px; height: 220px; margin: 12px auto; image-rendering: pixelated; background: #fff; border-radius: 12px; padding: 8px; }
.pay-status { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 16px; }
.dot-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.done-icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(69,212,131,.16); color: var(--ok); font-size: 38px; border: 1px solid rgba(69,212,131,.4); }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; font-size: 15px; z-index: 200; max-width: calc(100% - 32px);
  background: rgba(30,32,42,.85); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.18); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.foot { margin-top: 48px; padding: 22px 0 18px; font-size: 14px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot__links a { text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.foot__copy { text-align: center; margin: 12px 0 0; }

/* ---------- Admin ---------- */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.admin th { color: var(--muted); font-weight: 600; }
.admin .scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 13px; color: var(--muted); }
.thumb { width: 36px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--surface); }
.progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--surface-2); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.dialog::backdrop { background: rgba(5,6,9,.65); }
.dialog form { padding: 20px; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
  .lane__track { --per: 4; --peek: 10%; --g: 12px; }
  .lane--landscape .lane__track { --per: 2.5; }
  .lane--top10 .lane__track { --per: 3.2; }
  .player { margin: 0; border-radius: 16px; aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .banks { grid-template-columns: repeat(3, 1fr); }
}
/* ---------- Desktop / laptop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .toast { bottom: 28px; }
  .top__bar { height: 68px; }
  main { padding-top: 68px; }
  .top__nav { display: flex; gap: 6px; margin-left: 28px; }
  .top__nav a { padding: 8px 14px; border-radius: 999px; color: #d4d4d8; font-weight: 600; font-size: 15px; transition: color .2s; }
  .top__nav a:hover { color: var(--text); }
  .top__nav a[aria-current="page"] { color: var(--text); font-weight: 800; }
  .search-pill { max-width: 300px; margin-left: auto; }
  /* Billboard: full-bleed art, copy bottom-left (F-pattern) */
  .hero { min-height: 82vh; }
  .hero__art img { object-position: center 20%; filter: saturate(110%); transform: none; opacity: 1; }
  .hero__inner { align-items: flex-start; text-align: left; padding-bottom: 9vh; max-width: calc(640px + var(--gutter)); margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
  .hero__poster { display: none; }
  .hero__title { font-size: clamp(40px, 4.6vw, 72px); }
  .hero__meta { justify-content: flex-start; }
  .hero__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; color: #e4e4e7; margin: 14px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
  .hero__ctas { display: flex; width: auto; margin-top: 22px; }
  .hero__ctas .btn { min-height: 52px; padding: 0 30px; font-size: 18px; }
  .hero__dots { justify-content: flex-start; }
  .lane__track { --per: 6; --peek: 6%; --g: 12px; scroll-snap-type: x proximity; }
  .lane--landscape .lane__track { --per: 4; }
  .lane--top10 .lane__track { --per: 5; }
  .lane__head h2 { font-size: 22px; }
  /* Arrows appear only on hover over the lane */
  .lane__arrow { display: grid; place-items: center; position: absolute; top: 52px; bottom: 34px; width: calc(var(--gutter) - 8px); z-index: 3; border: 0; color: #fff; opacity: 0; transition: opacity .2s ease;
    background: linear-gradient(to right, rgba(11,13,18,.85), rgba(11,13,18,.2)); }
  .lane__arrow svg { width: 30px; height: 30px; }
  .lane__arrow--prev { left: calc(var(--gutter) * -1); }
  .lane__arrow--next { right: calc(var(--gutter) * -1); background: linear-gradient(to left, rgba(11,13,18,.85), rgba(11,13,18,.2)); }
  .lane:hover .lane__arrow { opacity: 1; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* Quick view becomes a centred modal */
  .sheet { align-items: center; }
  .sheet__panel { width: min(850px, calc(100% - 48px)); border-radius: 20px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s ease; padding-bottom: 24px; }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__grab { display: none; }
  .qv { grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 28px 0; }
  .qv__poster { width: 220px; }
  .qv h2 { font-size: 32px; }
  .qv__desc, .qv__ctas { padding-left: 28px; padding-right: 28px; }
  .qv__ctas { justify-content: start; grid-template-columns: auto auto; }
  .film-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
