@charset "UTF-8";
/* 1LUXTV — site stylesheet (v1). No frameworks.
   Colour system: ONE hue (--hue) drives every neutral, dark chrome and the page pattern,
   so everything stays homogeneous. A palette = --hue + --sat + --brand-h (+ optional --brand-s / --pat-s). */

:root {
  --hue: 205; --sat: 24%; --brand-h: 14; --brand-s: 88%; --pat-s: 42%;

  /* accent */
  --brand: hsl(var(--brand-h) var(--brand-s) 57%);
  --brand-hover: hsl(var(--brand-h) calc(var(--brand-s) - 8%) 50%);
  --brand-soft: hsl(var(--brand-h) var(--brand-s) 57% / .16);
  --gold: hsl(38 96% 58%);
  --gold-hover: hsl(38 100% 70%);
  --ok: hsl(152 55% 38%);
  --ok-soft: hsl(152 55% 38% / .12);
  --bad: hsl(0 62% 52%);

  /* dark chrome ramp: header, player, footer, genre buttons */
  --ink-950: hsl(var(--hue) var(--sat) 6%);
  --ink-900: hsl(var(--hue) var(--sat) 10%);
  --ink-850: hsl(var(--hue) var(--sat) 13%);
  --ink-800: hsl(var(--hue) var(--sat) 16%);
  --ink-700: hsl(var(--hue) var(--sat) 22%);
  --ink-600: hsl(var(--hue) calc(var(--sat) * .8) 32%);
  --ink-400: hsl(var(--hue) 12% 56%);
  --ink-300: hsl(var(--hue) 14% 72%);
  --ink-100: hsl(var(--hue) 20% 92%);
  --header: var(--ink-900);
  --header-2: var(--ink-800);

  /* page pattern */
  --pattern-bg: hsl(var(--hue) var(--pat-s) 30%);

  /* content surfaces (light) */
  --bg: #fff;
  --bg-soft: hsl(var(--hue) 30% 97%);
  --bg-muted: hsl(var(--hue) 24% 93%);
  --text: hsl(var(--hue) 30% 12%);
  --text-2: hsl(var(--hue) 12% 32%);
  --text-3: hsl(var(--hue) 9% 48%);
  --line: hsl(var(--hue) 20% 89%);
  --link: hsl(var(--hue) 60% 33%);
  --shadow: 0 1px 2px hsl(var(--hue) 30% 10% / .06), 0 6px 20px hsl(var(--hue) 30% 10% / .08);

  /* page pattern: royal crowns in a diagonal lattice with fleurs-de-lis */
  --crowns: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cdefs%3E%3Cpath id='cp' d='M-1.1 3 L-.6 .6 L-3 1.1 L-3 -1.1 L-.6 -.6 L-1.1 -3 L1.1 -3 L.6 -.6 L3 -1.1 L3 1.1 L.6 .6 L1.1 3 Z'/%3E%3Cpath id='fl' d='M0 -5 C1.8 -2.8 1.8 -.6 0 1.4 C-1.8 -.6 -1.8 -2.8 0 -5 Z M-.7 .9 C-2.6 -1.6 -5 -.9 -4.2 1.4 C-3.5 .4 -2.2 .7 -.7 2.2 Z M.7 .9 C2.6 -1.6 5 -.9 4.2 1.4 C3.5 .4 2.2 .7 .7 2.2 Z M-2.8 2 H2.8 V3.4 H-2.8 Z'/%3E%3Cg id='k'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.2' stroke-linecap='round'%3E%3Cpath d='M13.5 41 C5.5 34 5 21 15.5 18.6 C23 17 28.5 21.5 32 27.5'/%3E%3Cpath d='M50.5 41 C58.5 34 59 21 48.5 18.6 C41 17 35.5 21.5 32 27.5'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Ccircle cx='32' cy='19.5' r='3.4'/%3E%3Cuse href='%23cp' transform='translate(32 11) scale(1.35)'/%3E%3Cuse href='%23fl' transform='translate(19.5 31) scale(1.35)'/%3E%3Cuse href='%23fl' transform='translate(44.5 31) scale(1.35)'/%3E%3Cuse href='%23cp' transform='translate(32 35) scale(1.25)'/%3E%3C/g%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M13 41.5 H51 a2 2 0 0 1 2 2 V48 a2 2 0 0 1 -2 2 H13 a2 2 0 0 1 -2 -2 V43.5 a2 2 0 0 1 2 -2 Z M17 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z M22 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z M27 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z M32 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z M37 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z M42 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z M47 45.75 m-1.1 0 a1.1 1.1 0 1 0 2.2 0 a1.1 1.1 0 1 0 -2.2 0 Z'/%3E%3Crect x='12' y='51.6' width='40' height='2.6' rx='1.3' fill='%23000'/%3E%3C/g%3E%3C/defs%3E%3Cg opacity='.24' fill='%23000'%3E%3Cg stroke='%23000' stroke-width='1.1' fill='none'%3E%3Cpath d='M85.6 10.6 L139.4 64.4'/%3E%3Cpath d='M139.4 85.6 L85.6 139.4'/%3E%3Cpath d='M64.4 139.4 L10.6 85.6'/%3E%3Cpath d='M10.6 64.4 L64.4 10.6'/%3E%3Cpath d='M85.6 -10.6 L139.4 -64.4'/%3E%3Cpath d='M64.4 -10.6 L10.6 -64.4'/%3E%3Cpath d='M85.6 160.6 L139.4 214.4'/%3E%3Cpath d='M64.4 160.6 L10.6 214.4'/%3E%3Cpath d='M-10.6 64.4 L-64.4 10.6'/%3E%3Cpath d='M-10.6 85.6 L-64.4 139.4'/%3E%3Cpath d='M160.6 64.4 L214.4 10.6'/%3E%3Cpath d='M160.6 85.6 L214.4 139.4'/%3E%3C/g%3E%3Cuse href='%23fl' transform='translate(75 1) scale(1.55)'/%3E%3Cuse href='%23fl' transform='translate(0 76) scale(1.55)'/%3E%3Cuse href='%23fl' transform='translate(150 76) scale(1.55)'/%3E%3Cuse href='%23fl' transform='translate(75 151) scale(1.55)'/%3E%3Cuse href='%23k' transform='translate(48.8 48.4) scale(0.82)'/%3E%3Cuse href='%23k' transform='translate(-26.2 -26.6) scale(0.82)'/%3E%3Cuse href='%23k' transform='translate(123.8 -26.6) scale(0.82)'/%3E%3Cuse href='%23k' transform='translate(-26.2 123.4) scale(0.82)'/%3E%3Cuse href='%23k' transform='translate(123.8 123.4) scale(0.82)'/%3E%3C/g%3E%3C/svg%3E");

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1240px;
  --gutter: 16px;
  --f-head: "Cuprum", "Arial Narrow", sans-serif;
  --f-body: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* palettes: the visitor picks one (config.php 'palettes' feeds the swatches) */
:root[data-palette="midnight"] { --hue: 222; --sat: 30%; --brand-h: 12; }
:root[data-palette="teal"]     { --hue: 188; --sat: 26%; --brand-h: 22; }
:root[data-palette="graphite"] { --hue: 220; --sat: 8%;  --brand-h: 14; --pat-s: 14%; }
:root[data-palette="noir"]     { --hue: 0;   --sat: 0%;  --brand-h: 357; --brand-s: 82%; --pat-s: 0%; }
:root[data-palette="forest"]   { --hue: 158; --sat: 20%; --brand-h: 36; --brand-s: 90%; --pat-s: 24%; }
:root[data-palette="wine"]     { --hue: 348; --sat: 16%; --brand-h: 30; --brand-s: 86%; --pat-s: 24%; }
:root[data-palette="plum"]     { --hue: 255; --sat: 14%; --brand-h: 340; --brand-s: 72%; --pat-s: 20%; }
:root[data-palette="sepia"]    { --hue: 32;  --sat: 14%; --brand-h: 18; --brand-s: 62%; --pat-s: 20%; }
:root[data-palette="mint"]     { --hue: 172; --sat: 12%; --brand-h: 8;  --brand-s: 64%; --pat-s: 16%; }
/* "soft for the eyes": warmer, low-contrast content surfaces instead of pure white */
:root[data-palette="sepia"]:not([data-theme="dark"]) { --bg: hsl(38 40% 97%); --bg-soft: hsl(36 32% 93%); --line: hsl(34 22% 86%); --text: hsl(28 22% 18%); }
:root[data-palette="mint"]:not([data-theme="dark"])  { --bg: hsl(165 20% 97.5%); --bg-soft: hsl(168 18% 94%); --line: hsl(170 14% 87%); }

/* dark theme = same hue, content surfaces taken from the ink ramp */
:root[data-theme="dark"] {
  --bg: hsl(var(--hue) var(--sat) 11%);
  --bg-soft: hsl(var(--hue) var(--sat) 14%);
  --bg-muted: hsl(var(--hue) var(--sat) 18%);
  --text: hsl(var(--hue) 20% 92%);
  --text-2: hsl(var(--hue) 12% 72%);
  --text-3: hsl(var(--hue) 9% 56%);
  --line: hsl(var(--hue) var(--sat) 20%);
  --link: hsl(var(--hue) 70% 72%);
  --pattern-bg: hsl(var(--hue) max(0%, calc(var(--pat-s) - 4%)) 15%);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: hsl(var(--hue) var(--sat) 11%);
    --bg-soft: hsl(var(--hue) var(--sat) 14%);
    --bg-muted: hsl(var(--hue) var(--sat) 18%);
    --text: hsl(var(--hue) 20% 92%);
    --text-2: hsl(var(--hue) 12% 72%);
    --text-3: hsl(var(--hue) 9% 56%);
    --line: hsl(var(--hue) var(--sat) 20%);
    --link: hsl(var(--hue) 70% 72%);
    --pattern-bg: hsl(var(--hue) max(0%, calc(var(--pat-s) - 4%)) 15%);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 400 15px/1.55 var(--f-body);
  color: var(--text);
  background-color: var(--pattern-bg);
  /* crown pattern — the recognisable old background, made subtler */
  background-image: var(--crowns);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
button svg, a svg { width: 18px; height: 18px; flex: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--header); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.topbar__in { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font: 700 26px/1 var(--f-head); color: var(--gold); letter-spacing: .5px; white-space: nowrap; }
.logo:hover { text-decoration: none; color: var(--gold-hover); }
.logo small { font-size: 12px; color: var(--ink-400); font-family: var(--f-body); font-weight: 500; margin-left: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { font: 700 18px/1 var(--f-head); color: #fff; padding: 10px 12px; border-radius: var(--radius-sm); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--header-2); text-decoration: none; color: var(--gold); }

.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input {
  width: 100%; height: 40px; padding: 0 44px 0 14px; border: 1px solid var(--ink-700); border-radius: 20px;
  background: #fff; color: var(--text); font: inherit;
}
.search button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.suggest {
  position: absolute; left: 0; right: 0; top: 46px; background: var(--bg); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.3);
  overflow: hidden; display: none;
}
.search:focus-within .suggest.is-open { display: block; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--text); }
.suggest a:hover, .suggest a.is-active { background: var(--bg-soft); text-decoration: none; }
.suggest .poster { width: 34px; flex: none; border-radius: 4px; }
.suggest b { display: block; font-weight: 600; }
.suggest span { font-size: 13px; color: var(--text-3); }
.suggest .all { justify-content: center; font-weight: 600; color: var(--brand); border-top: 1px solid var(--line); }

.actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-sm);
  font: 600 14px/1 var(--f-body); cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-hover); }
.btn--ghost { background: var(--ink-700); color: var(--ink-100); }
.btn--ghost:hover { background: var(--ink-600); }
.btn--line { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--line:hover { background: var(--bg-soft); }
.fav { --fav: #e5484d; transition: background .2s, border-color .2s, color .2s; }
.fav svg { transition: transform .2s, fill .2s; }
.fav:hover { border-color: var(--fav); color: var(--fav); background: hsl(358 75% 59% / .08); }
.fav[aria-pressed="true"] { background: var(--fav); border-color: var(--fav); color: #fff; }
.fav[aria-pressed="true"] svg { --heart-fill: currentColor; }
.fav[aria-pressed="true"]:hover { background: hsl(358 70% 52%); color: #fff; }
.fav--busy { opacity: .7; cursor: progress; }
.fav--pop svg { animation: fav-pop .4s ease-out; }
@keyframes fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fav--pop svg { animation: none; } }
.btn--lg { height: 44px; padding: 0 20px; font-size: 16px; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink-700); color: var(--ink-100); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.burger, .search-toggle { display: none; }
.subbar { height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold) 30%, var(--ink-700) 90%); }

/* ---------- page shell ---------- */
.page { background: var(--bg); min-height: 60vh; box-shadow: 0 0 40px rgba(0,0,0,.25); max-width: var(--container); margin: 24px auto 0; border-radius: var(--radius) var(--radius) 0 0; }
.page > .container { padding-left: 28px; padding-right: 28px; }
main.container { padding-top: 24px; padding-bottom: 40px; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section__head h2 { font-size: 28px; }
.section__head a { font-weight: 600; font-size: 14px; white-space: nowrap; }

.breadcrumbs { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 4px; color: var(--text-3); }
.breadcrumbs a { color: var(--text-2); }

/* ---------- genres (kept from the old site) ---------- */
.genres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.genres a {
  display: block; padding: 10px 12px; text-align: center; background: var(--ink-800); color: var(--ink-100);
  font-weight: 600; font-size: 14px; border-left: 4px solid var(--brand); border-radius: 3px;
  transition: transform .15s, background .15s;
}
.genres a:hover { background: var(--ink-700); text-decoration: none; transform: translateY(-1px); }
.genres a span { color: var(--ink-400); font-weight: 400; font-size: 12px; margin-left: 4px; }

/* ---------- images ---------- */
.poster { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-muted); color: transparent; }
.ph { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, hsl(var(--h, 200) 30% 45%), hsl(calc(var(--h, 200) + 30) 35% 20%)); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); color: inherit; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.18); text-decoration: none; }
.card .poster, .card .ph { border-radius: 0; }
.card__img { position: relative; }
.card__title {
  background: var(--brand); color: #fff; font: 700 17px/1.2 var(--f-head); text-align: center;
  padding: 9px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); padding: 6px 8px; }
.badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; z-index: 1; }
.badge { font: 700 11px/1 var(--f-body); padding: 4px 6px; border-radius: 4px; background: hsl(var(--hue) var(--sat) 8% / .82); color: #fff; backdrop-filter: blur(4px); }
.badge--imdb { background: #f5c518; color: #000; }
.badge--kp { background: #ff6600; color: #fff; }
.badge--new { background: var(--ok); }
.badge--seasons { position: absolute; left: 8px; bottom: 8px; z-index: 1; }
.card .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); z-index: 1; }
.card .progress i { display: block; height: 100%; background: var(--brand); }

/* horizontal rail on small screens / continue-watching */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* ---------- new episodes feed ---------- */
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.feed__day { grid-column: 1 / -1; font: 700 16px/1 var(--f-head); color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin: 14px 0 6px; }
.feed__day:first-child { margin-top: 0; }
.feed a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px dashed var(--line); color: var(--text); }
.feed a:hover { background: var(--bg-soft); text-decoration: none; }
.feed .poster { width: 36px; flex: none; border-radius: 4px; }
.feed .poster, .feed .ph { width: 36px; aspect-ratio: 2 / 3; }
.feed__t { display: flex; flex-direction: column; min-width: 0; }
.feed__t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__t small { color: var(--text-3); font-size: 12px; }
.feed b { font-weight: 600; }
.feed .ep { margin-left: auto; font-size: 13px; color: var(--text-2); text-align: right; white-space: nowrap; }
.feed .ep em { display: block; font-style: normal; color: var(--text-3); font-size: 12px; }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; justify-content: center; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- SEO text ---------- */
.seo-text { color: var(--text-2); font-size: 14px; background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; }
.seo-text h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.seo-text p { margin: 0 0 8px; }

/* ---------- serial page ---------- */
.hero { display: grid; grid-template-columns: 270px 1fr; gap: 28px; }
.hero__poster .poster { box-shadow: 0 8px 24px rgba(0,0,0,.25); border-radius: var(--radius); }
.hero__poster .btn { width: 100%; justify-content: center; margin-top: 10px; }
.hero h1 { font-size: 34px; }
.hero .orig { font: 700 20px/1.2 var(--f-head); color: var(--text-3); margin: 6px 0 14px; }
.ratings { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rating { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); font-size: 13px; }
.rating b { font-size: 16px; }
.rating i { font-style: normal; padding: 2px 5px; border-radius: 3px; font-weight: 800; font-size: 11px; }
.rating .imdb { background: #f5c518; color: #000; }
.rating .kp { background: #ff6600; color: #fff; }
.rating--status { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 600; }
.rating--age { font-weight: 700; }

.info { display: grid; grid-template-columns: 150px 1fr; margin: 0 0 16px; font-size: 14px; }
.info dt, .info dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--text-3); }
.info dd { font-weight: 600; }
.info dd a { color: var(--text); border-bottom: 1px dotted var(--text-3); }
.info dd a:hover { color: var(--brand); text-decoration: none; }

.desc { position: relative; color: var(--text-2); }
.desc p { margin: 0 0 10px; }
.desc.is-clamped { max-height: 7.8em; overflow: hidden; }
.desc.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--bg)); }
.more { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; cursor: pointer; margin-top: 4px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* player block */
.watch { margin-top: 32px; }
.watch__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.watch__head h2 { font-size: 24px; }
.watch__head .hint { font-size: 13px; color: var(--text-3); }
.player-box { background: var(--ink-950); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.seasons { display: flex; overflow-x: auto; background: var(--ink-950); scrollbar-width: none; }
.seasons a, .seasons span { flex: none; padding: 11px 16px; font: 700 14px/1 var(--f-body); color: var(--ink-300); border-right: 1px solid var(--ink-800); }
.seasons a:hover { background: var(--ink-850); color: #fff; text-decoration: none; }
.seasons [aria-current] { background: var(--ink-900); color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.seasons .missing { color: var(--ink-600); }
.translations { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: var(--ink-850); scrollbar-width: none; align-items: center; }
.translations > span { color: var(--ink-400); font-size: 13px; margin-right: 4px; white-space: nowrap; }
.chip { flex: none; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--ink-700); background: transparent; color: var(--ink-100); font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--ink-600); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip small { opacity: .7; margin-left: 4px; }

.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink-950); overflow: hidden; }
.player__facade { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; width: 100%; background: none; }
.player__bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(18px) brightness(.5) saturate(1.1); }
.player__facade .ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; filter: brightness(.5); }
.player iframe, .player > div:not(.player__loaded) { width: 100%; height: 100%; }
.player__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--brand-soft); transition: transform .15s; }
.player__facade:hover .player__play { transform: translate(-50%, -50%) scale(1.06); }
.player__play svg { width: 36px; height: 36px; fill: #fff; margin-left: 5px; }
.player__label { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font: 700 20px/1.2 var(--f-head); text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.player__label small { display: block; font: 400 13px/1.4 var(--f-body); opacity: .8; }
.player__loaded { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-400); font-size: 14px; }

.episodes { display: flex; align-items: stretch; background: var(--ink-850); }
.episodes__list { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.episodes__list::-webkit-scrollbar, .seasons::-webkit-scrollbar, .translations::-webkit-scrollbar { display: none; }
.ep-btn { flex: none; position: relative; padding: 12px 18px; border: 0; border-right: 1px solid var(--ink-900); background: transparent; color: var(--ink-100); cursor: pointer; font-size: 14px; }
.ep-btn:hover { background: var(--ink-800); }
.ep-btn[aria-current="true"] { color: var(--brand); background: var(--ink-900); box-shadow: inset 0 -3px 0 var(--brand); }
.ep-btn.is-watched::before { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.ep-btn small { display: block; font-size: 11px; color: var(--ink-400); margin-top: 2px; }
.ep-nav { flex: none; width: 40px; border: 0; background: var(--ink-800); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ep-nav:hover { background: var(--brand); }
.ep-nav svg { width: 18px; height: 18px; }
.watch__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.watch__foot .next-ep { color: var(--ok); font-weight: 600; }

/* people */
.people { display: grid; grid-auto-flow: column; grid-auto-columns: 110px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.person { text-align: center; color: var(--text); font-size: 13px; }
.person:hover { text-decoration: none; color: var(--brand); }
.person img.avatar { object-fit: cover; object-position: center; background: var(--bg-muted); }
.person .avatar { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 30%; background: linear-gradient(140deg, hsl(var(--h, 210) 30% 60%), hsl(var(--h, 210) 35% 35%)); display: grid; place-items: center; color: #fff; font: 700 28px/1 var(--f-head); }
.person b { display: block; font-weight: 600; line-height: 1.25; }
.person span { color: var(--text-3); font-size: 12px; }

/* comments */
.comment-form { display: grid; grid-template-columns: 44px 1fr; gap: 12px; background: var(--bg-soft); padding: 16px; border-radius: var(--radius); }
.comment-form textarea { width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.comment-form .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.ava { width: 44px; height: 44px; border-radius: 50%; background: var(--header); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.comments { list-style: none; margin: 16px 0 0; padding: 0; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment .ava { background: hsl(var(--h, 210) 35% 45%); }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-3); }
.comment__head b { color: var(--text); font-size: 14px; }
.comment p { margin: 4px 0 6px; }
.comment__foot { display: flex; gap: 14px; font-size: 13px; color: var(--text-3); }
.comment__foot button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.comment__foot button:hover { color: var(--brand); }
.comment .comments { margin: 6px 0 0; padding-left: 0; }
.comment .comment { border-bottom: 0; border-left: 2px solid var(--line); padding-left: 12px; }

/* reviews */
.reviews { display: grid; gap: 12px; }
.review { border: 1px solid var(--line); border-left: 4px solid var(--text-3); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg-soft); }
.review--good { border-left-color: var(--ok); }
.review--bad { border-left-color: var(--bad); }
.review__head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.review__head b { color: var(--text); }
.review p { margin: 0; font-size: 14px; color: var(--text-2); }

/* tabs (comments/reviews) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 700 20px/1 var(--f-head); color: var(--text-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--brand); }
.tabs button span { font: 600 12px/1 var(--f-body); background: var(--bg-muted); color: var(--text-2); padding: 3px 6px; border-radius: 10px; margin-left: 4px; vertical-align: 3px; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--header); color: var(--ink-300); font-size: 14px; max-width: var(--container); margin: 0 auto; }
.footer .subbar { height: 3px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 24px; }
.footer h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink-100); }
.footer__bottom { border-top: 1px solid var(--ink-700); padding-top: 14px; padding-bottom: 18px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- mobile drawer ---------- */
.drawer { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .actions .btn--ghost span { display: none; }
}
@media (max-width: 1280px) { .page { margin-top: 0; border-radius: 0; } }
@media (max-width: 860px) {
  .genres { grid-template-columns: repeat(3, 1fr); }
  .page > .container { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav { display: none; }
  .burger { display: grid; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rail { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; }
  .feed { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 200px 1fr; gap: 20px; }
  .hero h1 { font-size: 28px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .drawer.is-open { display: block; position: fixed; inset: 60px 0 0; z-index: 49; background: var(--header); padding: 16px; overflow-y: auto; }
  .drawer a { display: block; color: #fff; font: 700 20px/1 var(--f-head); padding: 14px 4px; border-bottom: 1px solid var(--ink-700); }
}
@media (max-width: 640px) {
  :root { --gutter: 12px; }
  body { background-image: none; }
  .topbar__in { gap: 10px; height: 56px; }
  .logo { font-size: 23px; }
  .search { display: none; position: absolute; left: 0; right: 0; top: 56px; max-width: none; padding: 8px 12px; background: var(--header); }
  .search.is-open { display: block; }
  .search .suggest { left: 12px; right: 12px; }
  .search-toggle { display: grid; margin-left: auto; }
  .actions .btn--ghost { display: none; }
  .actions .btn--brand span { display: none; }
  .actions .btn--brand { padding: 0 10px; }
  main.container { padding-top: 16px; }
  .section { margin-top: 28px; }
  .section__head h2 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { grid-auto-columns: 42%; gap: 10px; }
  .card__title { font-size: 15px; padding: 7px 6px; }
  .genres { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .genres a { padding: 9px 8px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; }
  .hero__poster { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: end; }
  .hero__poster .btn { margin-top: 0; }
  .hero__poster .mobile-title { display: block; }
  .hero__text > h1, .hero__text > .orig { display: none; }
  .hero h1 { font-size: 24px; }
  .info { grid-template-columns: 110px 1fr; font-size: 13px; }
  .player-box { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .player__play { width: 64px; height: 64px; }
  .player__play svg { width: 28px; height: 28px; }
  .watch__head { flex-direction: column; gap: 2px; }
  .footer__in { grid-template-columns: 1fr; gap: 18px; }
  .feed .ep em { display: none; }
}
.mobile-title { display: none; }
.mobile-title .h1 { font: 700 22px/1.15 var(--f-head); margin: 0; }
.mobile-title .orig { font-size: 16px; margin: 4px 0 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.badge { white-space: nowrap; }
@media (max-width: 640px) {
  .badge.badge--new { font-size: 0; padding: 4px 5px; }
  .badge--new::before { content: "NEW"; font-size: 10px; }
  .badge { font-size: 10px; }
}


/* ---------- site additions ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--text-3); font-size: 14px; }
.center { text-align: center; margin-top: 20px; }
.empty { color: var(--text-3); padding: 16px 0; }
.plain { border: 0 !important; color: var(--link) !important; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; }
.hero__text > .orig { font: 700 20px/1.2 var(--f-head); color: var(--text-3); margin: 6px 0 14px; }
.section__head--page { align-items: center; }
.section__head--page h1 { font-size: 32px; }

/* genres: 10 visible on mobile, the rest behind "Все жанры" (links stay in HTML for crawlers) */
.genres-more { display: none; width: 100%; justify-content: center; margin-top: 10px; }
@media (max-width: 640px) {
  .genres:not(.is-open) .is-extra { display: none; }
  .genres-more { display: flex; }
  .section__head--page h1 { font-size: 26px; }
}

/* sort chips / genre chips */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips--wrap { flex-wrap: wrap; }
.chip-link { flex: none; padding: 7px 14px; border-radius: 18px; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 500; }
.chip-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip-link[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* in-page jump links to comments / reviews */
.jump { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 36px; }
.jump a { padding: 10px 14px; font: 700 20px/1 var(--f-head); color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.jump a:hover { color: var(--text); border-color: var(--brand); text-decoration: none; }
.jump span { font: 600 12px/1 var(--f-body); background: var(--bg-muted); color: var(--text-2); padding: 3px 6px; border-radius: 10px; margin-left: 4px; vertical-align: 3px; }
.jump + .section { margin-top: 20px; }
.comment.is-collapsed > div > p { opacity: .6; }
.comment__head time { color: var(--text-3); }
.comment-form textarea:disabled { cursor: not-allowed; }

/* palette picker */
.pal { position: relative; }
.pal__menu { position: absolute; right: 0; top: 46px; z-index: 60; width: 230px; background: var(--ink-900); color: var(--ink-100); border: 1px solid var(--ink-700); border-radius: var(--radius); padding: 12px; box-shadow: 0 14px 34px rgb(0 0 0 / .4); }
.pal__menu b { display: block; font-weight: 600; font-size: 13px; margin-bottom: 10px; color: var(--ink-300); }
.pal__row { display: grid; grid-template-columns: repeat(5, 32px); gap: 12px; justify-content: space-between; padding: 2px 4px; }
.pal__row button { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; outline-offset: 2px;
  background: linear-gradient(135deg, hsl(var(--sh) var(--ss) 32%) 55%, hsl(var(--sb) var(--sbs, 88%) 57%) 55%) border-box; }
.pal__row button { border: 0 !important; transition: transform .15s; }
.pal__row button:hover { transform: scale(1.08); }
.pal__row button[aria-pressed="true"] { transform: scale(1.12); box-shadow: 0 0 0 2px var(--ink-900), 0 0 0 4px var(--ink-100); }
.pal__theme { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 8px 10px; border: 1px solid var(--ink-700); border-radius: var(--radius-sm); background: var(--ink-850); color: var(--ink-100); cursor: pointer; font-size: 13px; }
.pal__theme:hover { border-color: var(--ink-600); }
.pal__theme svg { width: 16px; height: 16px; }
.icon-btn svg, .btn svg { pointer-events: none; }

/* search results / error */
.search-big { display: flex; gap: 8px; max-width: 560px; margin: 8px 0 12px; }
.search-big input { flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.error-page { text-align: center; padding: 40px 0 60px; }
.error-page__code { font: 700 96px/1 var(--f-head); color: var(--brand); margin: 0 0 8px; }
.error-page h1 { font-size: 32px; margin-bottom: 10px; }
.error-page .search-big { margin: 20px auto; }
.footer__logo { font: 700 26px/1 var(--f-head); color: var(--gold); margin: 0 0 10px; }
.footer__h { font: 700 18px/1 var(--f-head); color: #fff; margin: 0 0 10px; }
.suggest .ph { width: 34px; flex: none; }
.suggest .empty { padding: 10px 12px; font-size: 14px; }
.player__loaded { text-align: center; padding: 20px; }

/* user text (comments, reviews, descriptions): long unbroken strings wrap instead of breaking the layout */
.comment p, .review p, .desc, .comment__head b, .review__head b { overflow-wrap: anywhere; word-break: normal; }
.comment > div, .review { min-width: 0; }

/* visitor star rating: fill width = --v, hover previews */
.stars-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -4px 0 16px; }
.stars-box__label { font-size: 13px; color: var(--text-3); }
.stars { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E");
  position: relative; display: flex; width: 140px; height: 28px;
  background: linear-gradient(90deg, var(--gold) var(--v, 0%), var(--line) var(--v, 0%));
  -webkit-mask: var(--star) 0 0 / 28px 28px repeat-x; mask: var(--star) 0 0 / 28px 28px repeat-x; }
.stars button { flex: 1; border: 0; padding: 0; background: transparent; cursor: pointer; }
.stars:hover { --v: var(--hv, 0%) !important; }
.stars-box__num { font-size: 14px; color: var(--text-2); }
.stars-box__num b { font-size: 18px; color: var(--text); }
.stars-box__num small { color: var(--text-3); margin-left: 2px; }
.stars-box__msg { flex-basis: 100%; font-size: 13px; color: var(--ok); }
.stars-box__msg.is-error { color: var(--bad); }
.stars-box__low { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--text-2); }
.stars-box__hint:empty { display: none; }
/* „Критик” chip next to the stars (and in „Как вам сезон?”): progress ring · name · tier · 13/100 */
.crit { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 4px; border: 1px solid var(--line);
  border-radius: 99px; background: var(--bg); font-size: 12.5px; color: var(--text-2); text-decoration: none; white-space: nowrap;
  transition: border-color .2s, background .2s; }
.crit:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--bg)); text-decoration: none; }
.crit b { color: var(--text); font-weight: 700; }
.crit__ring { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--bg-soft) 0); }
.crit__ring span { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--bg); }
.crit--guest .crit__ring span { filter: grayscale(1); }
.crit__tier { padding: 2px 6px; border-radius: 99px; font: 700 10.5px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .03em; color: #fff; background: var(--tier, var(--text-3)); }
.crit--t1 { --tier: #c27c46; } .crit--t2 { --tier: #9fb0c0; } .crit--t3 { --tier: #e3b341; }
.crit__n { font-variant-numeric: tabular-nums; color: var(--text-3); }
.crit--guest .crit__n { color: var(--brand); }
/* „Как вам сезон?” — under the player, once per serial */
.rate-ask { position: relative; margin: 12px 0 0; padding: 14px 44px 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.rate-ask.is-on { opacity: 1; transform: none; }
.rate-ask.is-gone { opacity: 0; }
.rate-ask__q { margin: 0; font-size: 17px; font-weight: 700; }
.rate-ask__sub { margin: 2px 0 10px; font-size: 13px; color: var(--text-2); }
.rate-ask__sub.is-error { color: var(--bad); }
.rate-ask__hint { margin: 10px 0 0; }
.rate-ask__hint:empty { display: none; }
.stars--ask { width: 190px; height: 38px; -webkit-mask-size: 38px 38px; mask-size: 38px 38px; }
.rate-ask__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); font-size: 22px; line-height: 1; cursor: pointer; }
.rate-ask__close:hover { background: var(--line); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .rate-ask { transition: none; } }
@media (max-width: 640px) { .rate-ask { margin: 12px 12px 0; } }

/* "Продолжить просмотр": episode + time + red progress bar over the poster */
.card--cont .card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(transparent, rgb(0 0 0 / .85)); pointer-events: none; }
.cont { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 10px 10px; color: #fff; display: grid; gap: 2px; }
.cont__ep { font: 700 15px/1.2 var(--f-head); text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.cont__time { font-size: 12px; opacity: .85; }
.cont__bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: rgb(0 0 0 / .75); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); overflow: hidden; }
.cont__bar i { display: block; height: 100%; background: #e50914; border-radius: 2px; }
.cont__play { position: absolute; left: 50%; top: 42%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgb(0 0 0 / .55); border: 2px solid rgb(255 255 255 / .85); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .15s; }
.cont__play svg { width: 22px; height: 22px; margin-left: 3px; }
.card--cont:hover .cont__play, .card--cont:focus-visible .cont__play { opacity: 1; }
.cont__x { position: absolute; top: 6px; right: 6px; z-index: 3; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.card--cont:hover .cont__x, .cont__x:focus-visible { opacity: 1; }
@media (hover: none) { .cont__x { opacity: .9; } }

/* "Новые серии" (seasonvar-like list) */
.upd { display: grid; grid-template-columns: minmax(0, 1fr); }
.upd--compact .upd__list { columns: 2; column-gap: 32px; }
.upd__list .upd__row { break-inside: avoid; }
.upd__day { grid-column: 1 / -1; font: 700 16px/1 var(--f-head); color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin: 16px 0 6px; }
.upd__day:first-child { margin-top: 0; }
.upd__row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px dashed var(--line); color: var(--text); min-width: 0; }
.upd__row:hover { background: var(--bg-soft); text-decoration: none; }
.upd__row .poster, .upd__row .ph { width: 36px; height: 54px; flex: none; border-radius: 4px; object-fit: cover; overflow: hidden; }
.upd__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.upd__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upd__name b { font-weight: 600; }
.upd__s { color: var(--text-2); }
.upd__tr { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upd__ep { flex: none; text-align: right; font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.upd__ep time { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.last-ep { margin: -6px 0 14px; font-size: 14px; color: var(--text-2); }
.last-ep time { color: var(--text-3); }
@media (max-width: 860px) { .upd--compact .upd__list { columns: 1; } }

/* person page + people list */
.pers { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.pers__photo .poster { border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / .2); aspect-ratio: 11 / 15; }
.pers h1 { font-size: 34px; }
.pers .orig { font: 700 18px/1.2 var(--f-head); color: var(--text-3); margin: 6px 0 14px; }
.avatar--big { width: 220px; height: 300px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font: 700 64px/1 var(--f-head); background: linear-gradient(140deg, hsl(var(--h, 210) 30% 60%), hsl(var(--h, 210) 35% 35%)); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 12px; }
a.person:hover { text-decoration: none; }
a.person:hover b { color: var(--brand); }
@media (max-width: 640px) {
  .pers { grid-template-columns: 1fr; gap: 14px; }
  .pers__photo { max-width: 150px; }
  .pers h1 { font-size: 26px; }
  .avatar--big { width: 150px; height: 204px; font-size: 40px; }
}

/* ---------- accounts ---------- */
.auth { max-width: 440px; margin: 24px auto 40px; }
.auth h1 { font-size: 32px; margin-bottom: 16px; }
.auth__links { margin-top: 16px; font-size: 14px; }
.form { display: grid; gap: 14px; align-content: start; }
.form h2 { font-size: 22px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form label small { font-weight: 400; color: var(--text-3); }
.form input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
.form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.form .btn { justify-self: start; }
.form p { margin: 0; }
.pw { position: relative; display: grid; }
.pw input { padding-right: 46px; }
.pw__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); cursor: pointer; justify-self: auto; }
.pw__eye:hover { color: var(--text); background: var(--bg-soft); }
.pw__eye:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pw__eye svg { width: 20px; height: 20px; }
.pw__eye .pw__slash { display: none; }
.pw__eye[aria-pressed="true"] { color: var(--brand); }
.pw__eye[aria-pressed="true"] .pw__slash { display: inline; }
.pw input::-ms-reveal { display: none; }
.hp { position: absolute !important; left: -9999px; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin: 0 0 14px; }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--error { background: hsl(0 70% 50% / .1); color: var(--bad); }
.alert--warn { background: hsl(38 95% 55% / .14); color: var(--text); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover { filter: brightness(.92); }
.acc { position: relative; }
.role { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font: 700 11px/1.4 var(--f-body); letter-spacing: .03em; text-transform: uppercase; background: var(--ink-700); color: #fff; }
.role--admin { background: #c0392b; } .role--moderator { background: #2e7d32; } .role--pro { background: linear-gradient(90deg, #b8860b, #e0b040); }
.lvl { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600;
  color: var(--lvl); background: color-mix(in srgb, var(--lvl) 14%, transparent); }
.level { margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--lvl) 35%, var(--line)); }
.level__head { display: flex; align-items: center; gap: 12px; }
.level__head b { display: block; font-size: 17px; color: var(--lvl); }
.level__icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; border-radius: 50%;
  background: color-mix(in srgb, var(--lvl) 16%, transparent); }
.level__bar { height: 8px; margin: 12px 0 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.level__bar i { display: block; height: 100%; border-radius: inherit; background: var(--lvl); }
.level__next { margin: 0; font-size: 13px; }
/* „Награды”: badge cards with a progress ring, a bar to the next tier and the three tiers */
.awards { margin-top: 22px; scroll-margin-top: 80px; }
.awards__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.awards__head h2 { font-size: 18px; margin: 0; }
.awards__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.award { --t: var(--line); display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  position: relative; overflow: hidden; }
.award::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; pointer-events: none;
  background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--bdg) 14%, transparent), transparent 60%); }
.award--t1 { --t: #c27c46; } .award--t2 { --t: #9fb0c0; } .award--t3 { --t: #e3b341; }
.award__ring { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--bdg) calc(var(--p) * 1%), var(--bg-soft) 0); }
.award__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--t); }
.award--locked .award__icon { filter: grayscale(1); opacity: .55; }
.award__body { position: relative; flex: 1; min-width: 0; }
.award__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.award__top b { font-size: 15px; }
.award__tier { flex: none; font: 700 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .04em; padding: 4px 7px; border-radius: 99px;
  color: #fff; background: var(--t); }
.award--locked .award__tier { color: var(--text-3); background: var(--bg-soft); }
.award__desc { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.award__bar { height: 6px; margin: 10px 0 5px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.award__bar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: var(--bdg); transition: width .6s; }
.award__meta { display: block; font-size: 12.5px; color: var(--text-2); }
.award__meta b { color: var(--text); }
.award__meta--max { margin-top: 8px; color: var(--t); font-weight: 700; }
.award__steps { list-style: none; display: flex; gap: 6px; margin: 9px 0 0; padding: 0; }
.step { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); padding: 2px 7px 2px 3px; border-radius: 99px; background: var(--bg-soft); }
.step::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.step--1.is-on::before { background: #c27c46; } .step--2.is-on::before { background: #9fb0c0; } .step--3.is-on::before { background: #e3b341; }
.step.is-on { color: var(--text-2); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; transition: .3s;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink-800, #1b2330); color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .3); font-weight: 600; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast span:first-child { font-size: 22px; }
.acc__badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.btn--ghost.acc { padding: 0 10px; }
.profile__card { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; }
.profile__who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile__who b { display: block; font-size: 18px; }
.profile__who .muted { display: block; }
.ava--lg { width: 56px; height: 56px; font-size: 20px; background: hsl(var(--h, 210) 35% 45%); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stats li, .stats a { display: grid; text-align: center; font-size: 13px; color: var(--text-3); }
.stats b { font: 700 26px/1.1 var(--f-head); color: var(--text); }
.profile__forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sessions .muted { display: block; font-size: 13px; }
.profile__danger details { margin-top: 12px; }
.profile__danger summary { cursor: pointer; color: var(--bad); font-weight: 600; }
.profile__danger .form { max-width: 420px; margin-top: 12px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile__forms { grid-template-columns: minmax(0, 1fr); }
  .acc span:not(.acc__badge) { display: none; }
}

/* ---------------- comments written on the site ---------------- */
.comment__author { font-weight: 700; font-size: 14px; color: var(--text); }
.comment__author:hover { color: var(--brand); }
.comment__head .role { margin-left: 0; vertical-align: 1px; }
.comment__head .lvl { font-size: 11px; padding: 0 7px; }
.comment__to { color: var(--text-3); }
.comment__time { color: var(--text-3); }
.comment__time:hover { color: var(--brand); text-decoration: none; }
.comment__foot { align-items: center; flex-wrap: wrap; }
.comment__foot .linkish { font-size: 13px; }
.vote { display: inline-flex; gap: 4px; align-items: center; min-height: 28px; padding: 0 8px !important; border-radius: 99px; }
.vote:hover:not(:disabled) { background: var(--bg-soft) !important; }
.vote:disabled { cursor: default; opacity: .7; }
.vote--up[aria-pressed="true"] { color: #1f9d55 !important; background: hsl(145 60% 40% / .12) !important; }
.vote--down[aria-pressed="true"] { color: #d64545 !important; background: hsl(0 65% 55% / .12) !important; }
.comment.is-muted > .comment__body > p { opacity: .65; }
.comment.is-new { animation: c-new 2.4s ease-out; }
@keyframes c-new { from { background: var(--brand-soft); } to { background: transparent; } }
.comment__mod { display: inline-flex; gap: 6px; margin-left: auto; }
.mod { height: 26px; padding: 0 10px !important; border: 1px solid var(--line) !important; border-radius: 99px; font-size: 12px; font-weight: 600; }
.mod--approve { color: #1f9d55 !important; } .mod--reject, .mod--hide { color: #d64545 !important; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.tag--warn { background: hsl(40 90% 55% / .2); color: hsl(35 80% 32%); }
.tag--bad { background: hsl(0 70% 55% / .15); color: #c0392b; }
.tag--muted { background: var(--bg-soft); color: var(--text-3); }
.comment .comment-form { margin: 10px 0 4px; grid-template-columns: 36px 1fr; padding: 12px; }
.comment .comment-form .ava { width: 36px; height: 36px; font-size: 13px; }
.comment-form .ava { background: hsl(var(--h, 210) 35% 45%); color: #fff; }
.comment-form__to { margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
.comment-form__msg { margin: 8px 0 0; font-size: 14px; color: #1f9d55; }
.comment-form__msg.is-bad { color: #d64545; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--warn { color: hsl(40 90% 70%); } }
:root[data-theme="dark"] .tag--warn { color: hsl(40 90% 70%); }

/* moderation queue, public profile */
.modq__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.modq__tabs .chip { border-color: var(--line); color: var(--text); text-decoration: none; }
.modq__item { padding: 14px 16px 4px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); transition: opacity .5s; }
.modq__item .comments { margin: 0; }
.modq__item .comment { border-bottom: 0; }
.modq__where { margin: 0; font-size: 14px; font-weight: 600; }
.modq__parent { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid var(--line); color: var(--text-3); font-size: 13px; }
.modq .comment.is-done { opacity: .3; }
.profile__links { margin: 14px 0 0; font-size: 14px; }
.profile__name { font-size: 22px; margin: 0; }
.stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 6px; }
@media (max-width: 760px) { .stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .comment__mod { margin-left: 0; } }
.form select { height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.form--inline { grid-template-columns: repeat(3, auto); align-items: end; justify-content: start; gap: 12px 16px; }
.form--inline h2 { grid-column: 1 / -1; font-size: 18px; }
@media (max-width: 600px) { .form--inline { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- 🔔 „Мои сериалы” (followed serials with new episodes) ---------------- */
.folm { position: relative; }
.folm__btn .acc__badge { display: block !important; }
@media (max-width: 1480px) { .folm__label { display: none; } .folm__btn { padding: 0 10px; } }
@media (max-width: 640px) { .actions .folm__btn { display: inline-flex; } }
.folm__panel { position: absolute; right: 0; top: 46px; z-index: 60; width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgb(0 0 0 / .3); padding: 12px; }
.folm__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.folm__head b { font-size: 15px; }
.folm__empty { margin: 8px 2px; font-size: 14px; }
@media (max-width: 640px) { .folm { position: static; } .folm__panel { left: 12px; right: 12px; width: auto; top: 58px; } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2); }
.tabs a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.tabs a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.fol__intro { margin: -6px 0 14px; }
.fol__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.fol__cta { margin-top: 18px; }
.fol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fol { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); transition: opacity .3s; }
.fol--new { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 5%, var(--bg)); }
.fol__poster img { width: 64px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 6px; display: block; }
.fol__title { font-weight: 700; color: var(--text); }
.fol__title:hover { color: var(--brand); }
.fol__body p { margin: 3px 0 0; font-size: 14px; }
.fol__tr { font-size: 13px !important; }
.fol__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.fol__off { font-size: 13px; color: var(--text-3); }
.fol.is-gone { opacity: .35; pointer-events: none; }
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn--sm svg { width: 14px; height: 14px; }
.tag--new { background: var(--brand); color: #fff; }
.fol-list--mini .fol { grid-template-columns: 44px minmax(0, 1fr); padding: 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.fol-list--mini .fol--new { background: transparent; }
.fol-list--mini .fol__poster img { width: 44px; }
.fol-list--mini .fol__tr { display: none; }
.fol-follow[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); }
.fol-follow[aria-pressed="true"] svg { fill: currentColor; }
.actions .folm__panel .btn span, .actions .folm__panel .btn { display: inline-flex; }
.actions .folm__panel .btn--brand { padding: 0 10px; }

/* ---------------- header v2: nav · search · icons · account menu ---------------- */
.actions { gap: 6px; }
.actions .icon-btn { width: 38px; height: 38px; position: relative; text-decoration: none; }
.actions .icon-btn:hover { background: var(--ink-600); color: #fff; }
.actions .icon-btn .acc__badge { top: -4px; right: -4px; }
.folm__btn[aria-expanded="true"], .dd [data-dd-btn][aria-expanded="true"] { background: var(--ink-600); }
.dd { position: relative; }
.dd__menu { position: absolute; right: 0; top: 48px; z-index: 60; width: 250px; background: var(--ink-900); color: var(--ink-100);
  border: 1px solid var(--ink-700); border-radius: var(--radius); padding: 12px; box-shadow: 0 14px 34px rgb(0 0 0 / .4); }
.dd__label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 10px; color: var(--ink-300); }
.accm__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border: 0; border-radius: 99px;
  background: var(--ink-700); color: #fff; font: 600 14px/1 var(--f-body); cursor: pointer; }
.accm__btn:hover { background: var(--ink-600); }
.ava--sm { width: 30px; height: 30px; font-size: 12px; background: hsl(var(--h, 210) 35% 45%); color: #fff; }
.accm__caret { width: 14px; height: 14px; opacity: .7; }
.accm .dd__menu { width: 270px; padding: 0; overflow: hidden; }
.accm__who { padding: 14px 14px 10px; border-bottom: 1px solid var(--ink-700); }
.accm__who b { display: block; color: #fff; font-size: 15px; }
.accm__who span { font-size: 13px; color: var(--ink-300); }
.accm__links { display: grid; padding: 6px; }
.accm__links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink-100); font-size: 14px; }
.accm__links a:hover { background: var(--ink-700); color: #fff; text-decoration: none; }
.accm__links svg { width: 17px; height: 17px; opacity: .8; }
.accm__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 11px/20px var(--f-body); text-align: center; }
.accm__look { padding: 12px 14px; border-top: 1px solid var(--ink-700); }
.accm__out { border-top: 1px solid var(--ink-700); }
.accm__out button { width: 100%; padding: 12px 16px; border: 0; background: transparent; color: var(--ink-300); font: 600 14px var(--f-body); text-align: left; cursor: pointer; }
.accm__out button:hover { background: var(--ink-700); color: #fff; }
.search { max-width: 520px; }
@media (max-width: 1100px) { .accm__name, .accm__caret { display: none; } .accm__btn { padding: 0 4px; } }
@media (max-width: 640px) {
  .actions .hdr-cont { display: none; }
  .actions { gap: 4px; }
  .dd__menu { position: fixed; left: 12px; right: 12px; top: 58px; width: auto !important; }
}
.acc__badge[hidden] { display: none !important; }
/* the icons always sit on the right edge (the search field is hidden on phones, nav on tablets) */
.actions { margin-left: auto; }
.search + .actions { margin-left: 0; }
@media (max-width: 640px) { .search + .actions { margin-left: auto; } .actions .search-toggle { margin-left: 0; } }
@media (max-width: 640px) { .section__head--page:has(.tabs) { flex-wrap: wrap; row-gap: 10px; } .section__head--page .tabs { width: 100%; } }

/* ---------------- „Подборки” (collections) ---------------- */
/* cover: generated image, or the cover serial's poster on a blurred copy of itself */
.ccov { position: relative; display: block; overflow: hidden; background: var(--cc, var(--ink-800)); }
.ccov--wide { aspect-ratio: 1200 / 630; }
.ccov--square { aspect-ratio: 1; }
.ccov__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ccov__blur { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.ccov__poster { position: absolute; left: 50%; top: 50%; height: 82%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; transform: translate(-50%, -50%) rotate(-3deg);
  border-radius: 8px; box-shadow: 0 12px 30px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .12); transition: transform .45s ease; }
.ccov__empty { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--h, 210) 40% 28%), hsl(var(--h, 210) 45% 14%)); }

/* /podborki/ grid */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ccard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ccard:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 14px 34px hsl(var(--hue) 30% 10% / .18); }
.ccard:hover .ccov__img { transform: scale(1.04); }
.ccard:hover .ccov__poster { transform: translate(-50%, -50%) rotate(0deg) scale(1.04); }
.ccard__media { position: relative; display: block; }
.ccard__count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgb(0 0 0 / .62); color: #fff;
  font: 700 12px/1.4 var(--f-body); backdrop-filter: blur(4px); }
.ccard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.ccard__kicker { font: 700 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ccard__title { font: 700 22px/1.2 var(--f-head); }
.ccard:hover .ccard__title { color: var(--brand); }
.ccard__text { font-size: 14px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard__more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--link); }
.ccard--feature { grid-column: 1 / -1; flex-direction: row; }
.ccard--feature .ccard__media { flex: 0 0 58%; }
@media (min-width: 861px) { .ccard--feature .ccov { height: 100%; } }
.ccard--feature .ccard__body { justify-content: center; padding: 28px 32px; gap: 12px; }
.ccard--feature .ccard__title { font-size: 34px; }
.ccard--feature .ccard__text { font-size: 16px; -webkit-line-clamp: 5; }

/* square tiles (home, serial page, "Другие подборки") */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.ctile { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.ctile:hover { text-decoration: none; }
.ctile .ccov { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 6px; }
.ctile:hover .ccov__img, .ctile:hover .ccov__poster { transform: scale(1.05); }
.ctile:hover .ccov__poster { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); }
.ctile__title { font: 700 17px/1.25 var(--f-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctile:hover .ctile__title { color: var(--brand); }
.ctile__meta { font-size: 13px; color: var(--text-3); }

/* collection page */
.chero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 28px; padding: 28px; margin-bottom: 22px;
  border-radius: var(--radius); color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--cc, var(--ink-700)) 70%, transparent), transparent 60%), var(--ink-900); }
.chero__kicker { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--brand); font: 700 12px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.chero h1 { margin: 12px 0 10px; font-size: 40px; line-height: 1.1; color: #fff; }
.chero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; color: var(--ink-300); font-size: 15px; }
.chero__meta span + span::before { content: "·"; margin-right: 16px; opacity: .6; }
.chero__from { margin: -8px 0 18px; color: var(--ink-300); }
.chero__from a { color: #fff; font-weight: 700; }
.chero__media .ccov { border-radius: var(--radius-sm); box-shadow: 0 18px 44px rgb(0 0 0 / .45); }
.collection__intro { font-size: 17px; line-height: 1.65; max-width: 860px; margin-bottom: 10px; }
.collection__intro p { margin: 0 0 12px; }
.collection__body { margin-top: 28px; }
.coll-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.citem { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.citem:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.citem__poster { position: relative; display: block; align-self: start; }
.citem__poster .poster { border-radius: var(--radius-sm); }
.citem__n { position: absolute; left: -8px; top: -8px; min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px;
  background: var(--brand); color: #fff; font: 700 17px/1 var(--f-head); box-shadow: 0 4px 10px rgb(0 0 0 / .25); }
.citem__title { font-size: 23px; margin: 2px 0 6px; }
.citem__title a { color: var(--text); }
.citem__title a:hover { color: var(--brand); text-decoration: none; }
.citem__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: 14px; color: var(--text-3); }
.citem__meta span + span::before { content: "·"; margin-right: 14px; }
.citem__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.citem__tags .badge { position: static; }
.citem__genre { padding: 3px 9px; border-radius: 99px; background: var(--bg-soft); color: var(--text-2); font-size: 12px; font-weight: 600; }
.citem__note { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.6; color: var(--text); }
.faq__item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 10px 0 0; color: var(--text-2); line-height: 1.6; }

@media (max-width: 1100px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .chero { grid-template-columns: minmax(0, 1fr); padding: 0 0 22px; gap: 0; }
  .chero__media { order: -1; }
  .chero__media .ccov { border-radius: 0; box-shadow: none; }
  .chero__text { padding: 18px 20px 0; }
  .chero h1 { font-size: 30px; }
  .ccard--feature { flex-direction: column; }
  .ccard--feature .ccard__media { flex: none; }
  .ccard--feature .ccard__text { font-size: 15px; -webkit-line-clamp: 3; }
  .ccard--feature .ccard__body { padding: 18px; }
  .ccard--feature .ccard__title { font-size: 26px; }
}
@media (max-width: 640px) {
  .cgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ctiles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ctile { scroll-snap-align: start; }
  .citem { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .citem__title { font-size: 19px; }
  .citem__n { min-width: 28px; height: 28px; font-size: 14px; left: -6px; top: -6px; }
}
@media (max-width: 640px) { .section__head--page { flex-wrap: wrap; row-gap: 4px; } }

/* ---------------- season removed at a rights holder's request ---------------- */
.player-removed { background: var(--ink-900); border-radius: var(--radius); overflow: hidden; }
.player-removed .seasons { padding: 10px 12px 0; }
.removed { display: grid; place-content: center; gap: 6px; min-height: 260px; padding: 32px 20px; text-align: center; color: var(--ink-300);
  background: radial-gradient(ellipse at center, var(--ink-800), var(--ink-900) 70%); }
.removed p { margin: 0; }
.removed__title { color: #fff; font: 700 22px/1.3 var(--f-head); }
.takedown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding: 10px 14px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-3); }
.btn--danger-line { color: var(--bad) !important; border-color: color-mix(in srgb, var(--bad) 45%, var(--line)) !important; }

/* store images: the average colour shows while loading; a broken image never stretches its box */
img.poster, img.avatar { object-fit: cover; overflow: hidden; }

/* ---------------- /istoriya/ — watch history ---------------- */
.hcont { margin-top: 8px; }
.hbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 6px 0 14px; }
.hsearch { position: relative; flex: 1; max-width: 420px; }
.hsearch svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-3); }
.hsearch input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; }
.hsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chip-filter { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }
.chip-filter:hover { text-decoration: none; background: var(--brand-hover); }
.htimeline { position: relative; }
.hday { position: relative; padding-left: 26px; margin-bottom: 8px; }
.hday::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 0; width: 2px; background: var(--line); }
.hday__label { position: relative; margin: 0 0 8px; font: 700 16px/1.4 var(--f-head); color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.hday__label::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.hrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.hrow:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.hrow__poster img, .hrow__poster .ph { width: 56px; height: 84px; object-fit: cover; border-radius: 6px; display: block; }
.hrow__main { min-width: 0; }
.hrow__title { display: block; font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__title:hover { color: var(--brand); text-decoration: none; }
.hrow__what { margin: 2px 0 8px; font-size: 14px; color: var(--text-2); }
.hrow__bar { display: block; height: 4px; max-width: 260px; border-radius: 2px; background: var(--bg-muted); overflow: hidden; }
.hrow__bar i { display: block; height: 100%; background: #e50914; border-radius: inherit; }
.hrow__bar--sm { width: 80px; flex: none; }
.hrow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hrow__side time { font-size: 13px; color: var(--text-3); }
.hrow__acts { display: flex; align-items: center; gap: 6px; }
.icon-x { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
  color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.icon-x:hover { color: var(--bad); border-color: var(--bad); }
.hrow__toggle:hover { color: var(--brand); border-color: var(--brand); }
.hrow__eps { grid-column: 2 / -1; list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.hrow__eps li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hrow__eps li a { min-width: 90px; font-weight: 600; }
.hrow__eps li time { margin-left: auto; }
.hrow__eps .icon-x { width: 24px; height: 24px; font-size: 13px; }
.hrow.is-filtered, .hday.is-filtered { display: none; }
.hclear { margin: 24px 0 0; text-align: center; }
.hclear .linkish { color: var(--text-3); }
.hclear .linkish:hover { color: var(--bad); }
.hser { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.hcard { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.hcard:hover { box-shadow: var(--shadow); }
.hcard__poster img, .hcard__poster .ph { width: 110px; border-radius: var(--radius-sm); }
.hcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hcard__title { font: 700 19px/1.25 var(--f-head); color: var(--text); }
.hcard__title:hover { color: var(--brand); text-decoration: none; }
.hcard__body p { margin: 0; font-size: 14px; }
.hcard__stat b { font-size: 16px; }
.hcard__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 8px; }
.hcard__del { font-size: 13px; color: var(--text-3); }
.hcard__del:hover { color: var(--bad); }
.hempty { max-width: 560px; margin: 24px auto; padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.hempty__icon { font-size: 40px; margin: 0; }
.toast--undo button { margin-left: 8px; padding: 4px 10px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
  .hday { padding-left: 18px; }
  .hday::before { left: 3px; }
  .hday__label::before { left: -19px; width: 10px; height: 10px; }
  .hrow { grid-template-columns: 46px minmax(0, 1fr); padding: 10px; }
  .hrow__poster img, .hrow__poster .ph { width: 46px; height: 69px; }
  .hrow__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .hrow__acts .btn span { display: inline; }
  .hrow__eps { grid-column: 1 / -1; }
  .hrow__eps li { flex-wrap: wrap; gap: 4px 10px; }
  .hser { grid-template-columns: minmax(0, 1fr); }
  .hcard { grid-template-columns: 84px minmax(0, 1fr); }
  .hcard__poster img, .hcard__poster .ph { width: 84px; }
}

.hcont .rail { grid-auto-columns: 170px; }
.hcont .card__title { font-size: 14px; }
@media (max-width: 640px) { .hcont .rail { grid-auto-columns: 40%; } .hrow__eps li time { display: none; } .hrow__eps li .icon-x { margin-left: auto; } }
.hrow__eps[hidden] { display: none; }
@media (max-width: 640px) { .hrow__eps li { flex-wrap: nowrap; gap: 8px; } .hrow__eps li a { min-width: 64px; } .hrow__eps li .hrow__bar--sm { width: 48px; } .hrow__eps li .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
