/* FreeDUB — оформление сайта по макету «Новый FreeDUB»: светлая и тёмная тема на одних переменных.
   Тема по умолчанию — как в системе; кнопка в шапке ставит data-theme на <html> и запоминает выбор. */
:root {
  --ground: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #eaf0f5;
  --ink: #1d2331;
  --muted: #5d6678;
  --line: #dde4ea;
  --accent: #e00944;
  --accent-ink: #e00944;
  --accent-hover: #c10739;
  --accent-soft: rgba(224, 9, 68, .1);
  --band: #262d3b;
  --band-rgb: 38, 45, 59;
  --block: #323a4b;
  --block-border: transparent;
  --glow: .16;
  --header: rgba(255, 255, 255, .9);
  --btn: #323a4b;
  --btn-ink: #ffffff;
  --on-white: #1d2331;
  --shadow: 0 1px 2px rgba(29, 35, 49, .06), 0 6px 18px rgba(29, 35, 49, .06);
  --shadow-lift: 0 2px 4px rgba(29, 35, 49, .08), 0 16px 34px rgba(29, 35, 49, .14);
  --focus: rgba(224, 9, 68, .55);
  --moon: block;
  --sun: none;
  --gutter: clamp(16px, 4.4vw, 64px);
  --display: 'Unbounded', 'Arial Black', 'Segoe UI', sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #10131a;
    --surface: #181c25;
    --surface-2: #232937;
    --ink: #e8ecf2;
    --muted: #8c95a6;
    --line: #262c38;
    --accent-ink: #ff366a;
    --accent-hover: #ff5c86;
    --accent-soft: rgba(255, 54, 106, .14);
    --band: #0b0e13;
    --band-rgb: 11, 14, 19;
    --block: #1b2030;
    --block-border: rgba(255, 255, 255, .06);
    --glow: .3;
    --header: rgba(12, 15, 20, .88);
    --btn: #232937;
    --btn-ink: #e8ecf2;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 38px rgba(0, 0, 0, .5);
    --focus: rgba(255, 54, 106, .7);
    --moon: none;
    --sun: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #10131a;
  --surface: #181c25;
  --surface-2: #232937;
  --ink: #e8ecf2;
  --muted: #8c95a6;
  --line: #262c38;
  --accent-ink: #ff366a;
  --accent-hover: #ff5c86;
  --accent-soft: rgba(255, 54, 106, .14);
  --band: #0b0e13;
  --band-rgb: 11, 14, 19;
  --block: #1b2030;
  --block-border: rgba(255, 255, 255, .06);
  --glow: .3;
  --header: rgba(12, 15, 20, .88);
  --btn: #232937;
  --btn-ink: #e8ecf2;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 38px rgba(0, 0, 0, .5);
  --focus: rgba(255, 54, 106, .7);
  --moon: none;
  --sun: block;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.i-moon { display: var(--moon); }
.i-sun { display: var(--sun); }

/* ---------- шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 36px; height: 72px; }
.logo { flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 600; }
.main-nav a:hover { color: var(--accent-ink); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.search { position: relative; width: 320px; }
.search > svg { position: absolute; left: 14px; top: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 14px 0 42px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.search input::-webkit-search-cancel-button { display: none; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5;
  display: grid; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift);
}
.suggest.static { position: static; margin-top: 8px; box-shadow: none; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--surface-2); }
.suggest img { width: 36px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.s-text { display: flex; flex-direction: column; min-width: 0; }
.s-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.s-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest a.s-all { justify-content: center; padding: 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.s-empty { padding: 12px; font-size: 14px; color: var(--muted); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; background: var(--surface-2); color: var(--ink);
  transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--line); }
.icon-btn.strong { background: var(--btn); color: var(--btn-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--btn); color: var(--btn-ink); }
.btn-accent { background: var(--accent); color: #ffffff; box-shadow: 0 10px 26px rgba(224, 9, 68, .3); }
.btn-accent:hover { background: #c10739; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .3); color: #ffffff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--muted); }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; }

.only-mobile { display: none; }
.mobile-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
  padding-block: 12px 18px;
}
.mobile-panel .search { width: 100%; }
.mobile-nav { display: grid; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--accent-ink); }
.mobile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

@media (max-width: 1100px) {
  .main-nav, .search.desktop, .login-desktop { display: none; }
  .only-mobile { display: grid; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: #ffffff; }
.hero-bg {
  position: absolute; inset: -60px; z-index: -2;
  background-size: cover; background-position: center 20%;
  filter: blur(30px) saturate(1.25); opacity: .55;
  transition: background-image .4s ease;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--band-rgb), .97) 0%, rgba(var(--band-rgb), .88) 50%, rgba(var(--band-rgb), .45) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
  min-height: 560px; padding-block: 40px 92px;
}
.hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 760px; min-width: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill-accent {
  padding: 6px 10px; border-radius: 8px; background: var(--accent); color: #ffffff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero-note { font-size: 15px; color: rgba(255, 255, 255, .72); }
.hero-heading { display: flex; flex-direction: column; gap: 8px; }
.hero-title { font-family: var(--display); font-size: clamp(30px, 4.3vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; overflow-wrap: break-word; }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, .64); }
.hero-desc {
  max-width: 56ch; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .84);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.hero-meter { width: 210px; margin-left: 6px; }
.hero-poster {
  width: clamp(290px, 27vw, 380px); aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 16px; box-shadow: 0 28px 60px rgba(0, 0, 0, .45);
}
.hero-controls { position: absolute; left: 0; right: 0; bottom: 24px; }
.hero-controls .wrap { display: flex; align-items: center; gap: 12px; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .26); color: #ffffff;
  transition: background-color .15s ease;
}
.round-btn:hover { background: rgba(255, 255, 255, .1); }
.dots { display: flex; align-items: center; margin-left: 6px; }
.dot-btn { display: grid; place-items: center; padding: 19px 3px; }
.dot { display: block; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .3s ease, background-color .3s ease; }
.dot-btn[aria-current="true"] .dot { width: 28px; background: var(--accent); }
.hero-slide.enter .hero-text, .hero-slide.enter .hero-poster { animation: rise .45s ease both; }
.hero-slide.enter .hero-poster { animation-delay: .06s; }
@keyframes rise { from { opacity: .2; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.on-band .chip { border-color: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .88); }
a.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.on-band a.chip:hover { border-color: #ffffff; color: #ffffff; }

.meter { display: flex; align-items: center; gap: 10px; }
.meter-track { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 4px; background: var(--accent); }
.meter-label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.on-band .meter-track { background: rgba(255, 255, 255, .16); }
.on-band .meter-label { color: rgba(255, 255, 255, .72); }

@media (max-width: 760px) {
  .hero::before { background: rgba(var(--band-rgb), .74); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-block: 0 84px; }
  .hero-poster {
    order: -1; width: calc(100% + var(--gutter) * 2); max-width: none; height: 340px; aspect-ratio: auto;
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0; box-shadow: none; object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  }
  .hero-text { position: relative; margin-top: -64px; gap: 14px; }
  .hero-desc { font-size: 15px; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meter { order: -1; width: 100%; margin-left: 0; }
  .hero-controls .wrap { justify-content: center; }
}

/* ---------- sections ---------- */
.section { padding-top: clamp(40px, 5vw, 60px); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.more-link:hover { color: var(--accent-hover); }

.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1180px) {
  .rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(158px, 190px);
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card:hover .card-title { color: var(--accent-ink); }
.card-media { position: relative; aspect-ratio: 2 / 3; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.tag-status { padding: 4px 8px; border-radius: 6px; background: rgba(18, 22, 31, .84); color: #ffffff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag-status.announce { background: var(--accent); }
.tag-age { padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--on-white); font-size: 11px; font-weight: 700; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.card-title {
  min-height: 2.6em; font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s ease;
}
.card-orig { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .meter { margin-top: auto; padding-top: 8px; }
.card-note { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }

.panel { padding: 22px 26px 8px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.panel-title { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.panel .section-head { margin-bottom: 4px; }
.rows > * + * { border-top: 1px solid var(--line); }


.subscribe {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center;
  padding: clamp(24px, 3.4vw, 44px) clamp(18px, 3.4vw, 48px);
  border-radius: 22px; background: var(--block); border: 1px solid var(--block-border); color: #ffffff;
}
.subscribe::before {
  content: ""; position: absolute; top: -120px; right: -80px; z-index: -1;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(224, 9, 68, var(--glow)); filter: blur(40px);
}
.subscribe-text { display: flex; flex-direction: column; gap: 14px; }
.bar { width: 40px; height: 4px; border-radius: 2px; background: var(--accent); }
.subscribe h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; }
.subscribe p { max-width: 40ch; color: rgba(255, 255, 255, .72); }
.social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.social { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.social-head { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.social-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; color: #ffffff; font-family: var(--display); font-size: 15px; font-weight: 700; }
.social-name { display: block; font-size: 17px; font-weight: 600; }
.social-handle { display: block; font-size: 13px; color: rgba(255, 255, 255, .62); }
.social .btn { background: #ffffff; color: var(--on-white); }
.social .btn:hover { background: #eef2f6; }
@media (max-width: 860px) {
  .subscribe { grid-template-columns: 1fr; gap: 20px; }
  .social-list { grid-template-columns: 1fr; gap: 12px; }
  .social { flex-direction: row; align-items: center; }
  .social .btn { width: 44px; padding: 0; border-radius: 50%; }
  .social .btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.ann-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1180px) { .ann-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 640px) { .ann-grid { grid-template-columns: 1fr; } }
.ann { display: flex; gap: 16px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.ann:hover { box-shadow: var(--shadow-lift); }
.ann:hover .ann-title { color: var(--accent-ink); }
.ann img { width: 104px; height: 156px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.ann-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.ann-title { font-size: 15px; font-weight: 600; line-height: 1.3; transition: color .15s ease; }
.ann-meta { display: flex; flex-direction: column; gap: 2px; margin-top: auto; font-size: 13px; color: var(--muted); }
.ann-meta b { font-weight: 600; color: var(--ink); }
.status-pill { align-self: flex-start; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status-pill.announce, .status-pill.ongoing { background: var(--accent-soft); color: var(--accent-ink); }

.trailer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) {
  .trailer-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px);
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 14px; scrollbar-width: none;
  }
  .trailer-grid > * { scroll-snap-align: start; }
}
.trailer { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.trailer-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; background-color: var(--band);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
}
.trailer-play { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #ffffff; box-shadow: 0 8px 24px rgba(224, 9, 68, .4); transition: transform .2s ease; }
.trailer:hover .trailer-play { transform: scale(1.07); }
.trailer-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--on-white); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.trailer-title { font-size: 16px; font-weight: 600; line-height: 1.35; }

/* ---------- catalog ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding-top: clamp(28px, 4vw, 48px); }
.page-title { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 28px; }
.filters .search { flex: 1 1 260px; width: auto; max-width: 380px; }
.filters .search input { background: var(--surface); border-color: var(--line); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; transition: border-color .15s ease;
}
.seg button:hover { border-color: var(--muted); }
.seg button span { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.seg button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.select {
  height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c95a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 24px 20px; }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 52ch; padding: 40px 0; }
.empty h2 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.empty p { color: var(--muted); }

/* ---------- title page ---------- */
.t-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: #ffffff; }
.t-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--band-rgb), .72) 0%, rgba(var(--band-rgb), .96) 100%); }
.t-hero-inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: end; gap: 40px; padding-block: 28px 40px; }
.t-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; font-size: 13px; color: rgba(255, 255, 255, .62); }
.t-hero .crumbs a:hover { color: #ffffff; }
.t-poster { width: 240px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.t-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.t-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.t-title { font-family: var(--display); font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; overflow-wrap: break-word; }
.t-sub { font-size: 16px; color: rgba(255, 255, 255, .64); }
.t-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
.t-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.t-actions .meter { width: 220px; margin-left: 6px; }
@media (max-width: 760px) {
  .t-hero-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 20px 28px; }
  .t-poster { width: 150px; }
  .t-actions .btn { flex: 1 1 100%; }
  .t-actions .meter { width: 100%; margin-left: 0; order: -1; }
}

.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 32px; }
@media (max-width: 1023px) { .t-layout { grid-template-columns: 1fr; } }
.t-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.player { overflow: hidden; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.player-tabs { display: flex; gap: 6px; }
.player-tabs button { height: 36px; padding: 0 14px; border-radius: 9px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.player-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.player-now { font-size: 14px; color: var(--muted); }
.screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #0b0e13; color: #ffffff; }
.screen > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: blur(20px) brightness(.42); transform: scale(1.15); }
.play-big { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: #ffffff; box-shadow: 0 10px 30px rgba(224, 9, 68, .45); transition: transform .2s ease; }
.play-big:hover { transform: scale(1.06); }
.screen-note { position: absolute; left: 18px; right: 18px; bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .76); }
.screen-soon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; }
.screen-soon b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.screen-soon span { color: rgba(255, 255, 255, .72); }
.episodes { padding: 16px 16px 18px; }
.episodes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.episodes-head h2 { font-size: 16px; font-weight: 700; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.ep-btn { height: 44px; border-radius: 10px; background: var(--surface-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .15s ease; }
.ep-btn:hover:not(:disabled) { background: var(--line); }
.ep-btn[aria-current="true"] { background: var(--accent); color: #ffffff; }
.ep-btn:disabled { border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: not-allowed; }
.block-title { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.prose { max-width: 68ch; font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.source { margin-top: 10px; font-size: 13px; color: var(--muted); }
.t-aside { display: flex; flex-direction: column; gap: 20px; }
.sheet { padding: 20px 22px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.sheet h2 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.voices-label { display: flex; justify-content: space-between; margin: 16px 0 8px; font-size: 14px; color: var(--muted); }
.voices { display: flex; flex-wrap: wrap; gap: 6px; }
.voice { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
a.voice:hover { background: var(--accent-soft); color: var(--accent-ink); }

.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 72px; }

/* ---------- footer, toast ---------- */
.site-footer { margin-top: clamp(48px, 6vw, 80px); padding-block: 44px 26px; background: var(--band); color: rgba(255, 255, 255, .7); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; line-height: 1.55; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffffff; }
.footer-col a, .footer-col button { font-size: 15px; color: rgba(255, 255, 255, .72); text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: #ffffff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .55); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%);
  max-width: min(480px, calc(100% - 32px)); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--ground); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lift);
  animation: rise .25s ease both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Дальше — то, чего не было в демо-макете: сайт на сервере, вход, фильтры, слайдер из нескольких слайдов.
   Тот же язык: те же переменные, радиусы 10–18px, тени --shadow, акцент --accent.
   ===================================================================== */

.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--ground); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- шапка: меню на <details>, избранное, аккаунт ---------- */
details.mpanel > summary, details.user > summary, details.creport > summary { list-style: none; cursor: pointer; }
details.mpanel > summary::-webkit-details-marker, details.user > summary::-webkit-details-marker, details.creport > summary::-webkit-details-marker { display: none; }
details.mpanel[open] > summary.icon-btn:not(.strong) { background: var(--line); }
.mpanel .mobile-panel { z-index: 55; }
.fav-btn { position: relative; }
.icon-btn .count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #ffffff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.user { position: relative; }
.user__chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 600; transition: background-color .15s ease; }
.user__chip:hover, details.user[open] > .user__chip { background: var(--line); }
.user__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); }
.user__menu form { margin: 0; }
.user__menu a, .user__menu button { display: block; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; text-align: left; }
.user__menu a:hover, .user__menu button:hover { background: var(--surface-2); }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: var(--accent); color: #ffffff; font-size: 15px; font-weight: 700; }
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.avatar--xl { width: 96px; height: 96px; font-size: 36px; }
.avatar--outline { background: var(--surface-2); color: var(--ink); }
.avatar--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mobile-user { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.mobile-nav--account { grid-column: 1 / -1; }
.mobile-nav--account form { margin: 0; }
.mobile-nav--account button { display: flex; align-items: center; width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; text-align: left; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a:hover { color: #ffffff; }

/* Узкая шапка: меньше отступы, «Избранное» уходит в мобильное меню (там оно есть у вошедших) */
@media (max-width: 1100px) { .header-row { gap: 16px; } .header-actions { gap: 8px; } }
@media (max-width: 1240px) { .search.desktop { width: 240px; } }
@media (max-width: 480px) { .fav-btn { display: none; } .logo img { height: 38px; } }

/* ---------- кнопки, которыми пользуются страницы входа, профиля и комментариев ---------- */
.btn--red { background: var(--accent); color: #ffffff; }
.btn--red:hover { background: #c10739; }
.btn--red.is-fav { background: var(--accent-soft); color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--danger { border: 1px solid var(--accent); background: transparent; color: var(--accent-ink); }
.btn--danger:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn--sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link, .link--gold { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.link:hover, .link--gold:hover { color: var(--accent-hover); }

/* ---------- сообщения ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toasts .toast { position: static; transform: none; }
.toast--auto { animation: toast-life 6s ease forwards; }
@keyframes toast-life { 0% { opacity: 0; transform: translateY(8px); } 6% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ---------- слайдер: несколько слайдов, виден активный ---------- */
.hero-slide { display: none; }
.hero-slide.is-on { display: block; }
.hero-poster.art--ph { height: auto; }
.hero-poster--wide { width: min(520px, 42vw); aspect-ratio: 16 / 9; }
.hero-controls { display: none; }
.hero.is-ready .hero-controls { display: block; }
/* Активная точка заполняется за 8 секунд — дошла до конца, слайд сменился (site.js). Наведение, фокус, палец — пауза */
.dot { position: relative; overflow: hidden; }
.dot-btn[aria-current="true"] .dot { background: var(--accent); }
.dot-btn.is-run .dot { background: rgba(255, 255, 255, .35); }
.dot-btn.is-run .dot::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left center; animation: fd-fill 8s linear forwards; }
@keyframes fd-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero.is-held .dot::after, .hero.is-paused .dot::after, .hero:focus-within .dot::after { animation-play-state: paused; }
@media (hover: hover) { .hero:hover .dot::after { animation-play-state: paused; } }

/* ---------- карточки: статус, заглушка постера ---------- */
.card-media .art--ph, .card-media svg { display: block; width: 100%; height: 100%; }
.tag-status--announced { background: var(--accent); }
.tag-status--paused { background: rgba(138, 90, 0, .9); }
.status-pill--announced { background: var(--accent-soft); color: var(--accent-ink); }
.ann svg.ann-poster { flex-shrink: 0; width: 104px; height: 156px; border-radius: 10px; }

.panel { padding-bottom: 12px; }

/* ---------- каталог: фильтры слева, на телефоне — свёрнутым блоком сверху ---------- */
.cat-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
.cat-filters { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); scrollbar-width: thin; }
.cat-filters > summary { display: none; }
.cat-form .fgroup { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.flabel { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cat-form .select { width: 100%; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-radio label { position: relative; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; transition: border-color .15s ease; }
.seg-radio label:hover span { border-color: var(--muted); }
.seg-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.seg-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.checks { display: flex; flex-direction: column; gap: 8px; max-height: 248px; overflow: auto; scrollbar-width: thin; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.fgroup--years { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-form__foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 18px; background: var(--surface); border-top: 1px solid var(--line); }
.cat-form__foot .btn-accent { flex: 1; box-shadow: none; }
.cat-results { min-width: 0; }
.active-chips { align-items: center; margin-bottom: 18px; }
.chip--x { background: var(--surface); font-weight: 600; }
.chip--x:hover { border-color: var(--accent); color: var(--accent-ink); }
.active-chips .more-link { min-height: 0; margin-left: 4px; font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pg { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
a.pg:hover { color: var(--accent-ink); }
.pg.is-on { background: var(--accent); color: #ffffff; }
.pg[aria-disabled="true"] { opacity: .4; }
.pg--gap { background: none; box-shadow: none; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .cat-filters { position: static; max-height: none; overflow: visible; }
  .cat-filters > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-weight: 700; }
  .cat-filters > summary::after { content: "▾"; transition: transform .2s ease; }
  .cat-filters[open] > summary { border-bottom: 1px solid var(--line); }
  .cat-filters[open] > summary::after { transform: rotate(180deg); }
}

/* ---------- общие заголовки и текст страниц (вход, профиль, избранное, документы) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a:hover, .back:hover { color: var(--accent-ink); }
.h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; }
.h4 { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.sub { font-size: 14px; color: var(--muted); }
.sub a { color: var(--accent-ink); }
.muted { color: var(--muted); font-weight: 500; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 16px; }
.pad { padding: 22px 26px; }
.panel--grad { background: var(--surface); }
.empty .btn { align-self: flex-start; }
.empty__title { font-family: var(--display); font-size: 22px; font-weight: 600; }
.empty__text { color: var(--muted); }
.empty__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.fav-page, .profile-page, .legal-page { padding-bottom: 24px; }
.pill-s { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill-s--live { background: rgba(22, 163, 74, .14); color: #15803d; }
.pill-s--warn { background: var(--accent-soft); color: var(--accent-ink); }
:root[data-theme="dark"] .pill-s--live { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-s--live { color: #4ade80; } }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: block; min-width: 0; }
.form .flabel, .field .flabel { margin-bottom: 8px; }
.input, .textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { min-height: 96px; line-height: 1.55; resize: vertical; }
.field__hint, .nick-status { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.nick-status.is-ok { color: #15803d; }
.nick-status.is-bad, .form__err { color: var(--accent-ink); }
.form__err { margin: 0; font-size: 14px; line-height: 1.5; }
.form__err:empty { display: none; }
.form__note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.form__note a, .check-consent a, .auth-text a, .composer__hint a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.check-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check-consent input { flex-shrink: 0; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.inline-form { display: inline; margin: 0; }
.code-input { padding: 14px 0 14px .5em; font-size: 26px; font-weight: 600; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: 13px; color: var(--muted); }

/* ---------- вход и регистрация ---------- */
.signin { display: flex; justify-content: center; padding-block: 40px 24px; }
.modal--page { width: min(440px, 100%); padding: 28px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lift); }
.auth-modal { display: flex; flex-direction: column; gap: 16px; }
.modal__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.modal__brand img { height: 40px; width: auto; }
.auth-title { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.tabs__b { display: grid; place-items: center; height: 40px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--muted); }
.tabs__b:hover { color: var(--ink); }
.tabs__b.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.auth-text b { color: var(--ink); }
.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 600; }
.sa:hover { border-color: var(--muted); }
.sa__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #ffffff; font-size: 10px; font-weight: 700; }
.sa__ic--vk { background: #0077ff; }
.sa__ic--yandex { background: #fc3f1d; }
.or { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.provider-card b { display: block; }
.provider-card small { font-size: 13px; color: var(--muted); }

/* ---------- профиль ---------- */
.profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; }
.profile__card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.profile__nick { font-family: var(--display); font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.profile__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.profile__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.profile__stats b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; }
.profile__stats span { font-size: 12px; color: var(--muted); }
.profile__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.profile__main .panel { padding: 22px 26px; }
.nick-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 14px; }
.nick-form .field { flex: 1 1 240px; }
.nick-form .form__err { flex-basis: 100%; }
.sec-rows { display: flex; flex-direction: column; margin: 12px 0 18px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sec-row dt { color: var(--muted); }
.sec-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.avatar-form { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.avatar-form .afile { position: relative; cursor: pointer; }
.avatar-form input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.export { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.export__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.export__head span { font-size: 12px; color: var(--muted); }
.export__pre { max-height: 260px; margin: 0; padding: 12px; overflow: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.export .field__hint { padding: 0 12px 10px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.danger-zone b { color: var(--accent-ink); }
.danger-zone p { max-width: 56ch; margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) { .profile { grid-template-columns: minmax(0, 1fr); } }

/* ---------- документы и cookies ---------- */
.ph { padding: 0 4px; border-radius: 4px; background: rgba(245, 158, 11, .2); color: inherit; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 24px; }
.legal__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.legal__nav { display: flex; flex-direction: column; gap: 2px; }
.legal__nav a { padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.legal__nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal__nav a.is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.legal__draft { margin: 0; padding: 12px 14px; border: 1px dashed rgba(245, 158, 11, .6); border-radius: 12px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.legal__doc { min-width: 0; max-width: 800px; padding: 28px 32px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.legal__doc .h2 { margin: 0; }
.legal__doc > .sub { margin: 6px 0 22px; }
.legal__doc h2 { margin: 28px 0 10px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.legal__doc p, .legal__doc li { font-size: 16px; line-height: 1.7; }
.legal__doc p { max-width: 70ch; margin: 0 0 12px; }
.legal__doc ul { display: flex; flex-direction: column; gap: 6px; max-width: 70ch; margin: 0 0 12px; padding-left: 20px; }
.legal__doc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-table-wrap { margin: 0 0 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.legal-table th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.legal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 1024px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .legal__side { position: static; }
  .legal__nav { flex-direction: row; flex-wrap: wrap; }
  .legal__doc { padding: 22px 18px; }
}
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; gap: 12px; width: min(520px, calc(100vw - 32px)); padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift); }
.cookie p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cookie b { color: var(--ink); }
.cookie a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie__acts form { margin: 0; }
@media (max-width: 768px) { .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* ---------- страница тайтла ---------- */
svg.t-poster { height: auto; }
.t-actions .inline-form { display: contents; }
.btn-ghost.is-fav { background: rgba(255, 255, 255, .14); }
.btn-ghost svg { flex-shrink: 0; }
.player-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--surface-2); font-size: 14px; font-weight: 600; transition: background-color .15s ease; }
.player-tabs a:hover { background: var(--line); }
.player-tabs a[aria-current="true"] { background: var(--ink); color: var(--ground); }
.player-bar { gap: 10px; }
.player-bar:empty { display: none; }
.player-now { margin-left: auto; }
.screen .player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__src { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 8px; border-radius: 6px; background: rgba(11, 14, 19, .72); color: #ffffff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.eps-tabs { flex-wrap: wrap; margin-bottom: 12px; }
.eps-tab-n { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; line-height: 18px; text-align: center; }
.ep-btn { display: grid; place-items: center; }
a.ep-btn:hover { background: var(--line); }
.ep-btn--soon { border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: default; }
.t-desc .prose p { color: var(--ink); }
.info__alt { margin-top: 12px; font-size: 14px; color: var(--muted); }
.info__alt > summary { display: inline-flex; color: var(--accent-ink); font-weight: 600; cursor: pointer; list-style: none; }
.info__alt > summary::-webkit-details-marker { display: none; }
.info__alt ul { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.score { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.score__l, .rate__l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.score__n, .rate__n { font-family: var(--display); font-size: 22px; font-weight: 600; }
.rate { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rate__form { margin: 0; }
/* Звёзды идут в разметке от 5 к 1 и разворачиваются: при наведении подсвечивается эта звезда и все левее */
.rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate__star { padding: 0 2px; font-size: 28px; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.rate__star.is-on { color: #f5a524; }
.rate__stars:hover .rate__star { color: var(--line); }
.rate__star:hover, .rate__star:hover ~ .rate__star, .rate__star:focus-visible, .rate__star:focus-visible ~ .rate__star { color: #f5a524; }
.rate__star:hover { transform: scale(1.12); }
.rate__meta { font-size: 13px; color: var(--muted); }

/* ---------- комментарии ---------- */
.comments { padding: 22px 26px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.comments-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 16px; }
.comments-head .block-title { margin: 0; }
.composer { display: flex; gap: 14px; margin-bottom: 22px; }
.composer__body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; }
.composer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.composer__hint { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.composer__hint--warn { color: #b45309; }
.composer--guest { align-items: center; }
.composer--banned { align-items: center; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.composer--banned p { margin: 0; font-size: 14px; line-height: 1.6; }
.spoiler-toggle { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.spoiler-toggle input { flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #7c4dff; }
.spoiler-toggle b { color: #7c4dff; }
.clist { display: flex; flex-direction: column; }
.cmt { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.cmt__body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.cmt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cmt__name { font-weight: 600; }
.cmt__time { font-size: 13px; color: var(--muted); }
.cmt__text { margin: 0; max-width: 74ch; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.cmt--pending .cmt__text { color: var(--muted); }
.cmt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cmt__form { display: inline; margin: 0; }
.cmt__btn { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmt__btn:hover, .cmt__btn.is-on { color: var(--accent-ink); }
span.cmt__btn { cursor: default; }
span.cmt__btn:hover { color: var(--muted); }
.cmt__reply { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface-2); }
.b { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.b--team { background: var(--accent-soft); color: var(--accent-ink); }
.b--spoiler { background: rgba(124, 77, 255, .14); color: #7c4dff; }
.b--pending { background: rgba(245, 158, 11, .18); color: #b45309; }
details.spoiler > summary { position: relative; display: block; list-style: none; cursor: pointer; }
details.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler__text { display: block; max-width: 74ch; font-size: 15px; line-height: 1.65; filter: blur(6px); user-select: none; }
.spoiler__hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 13px; font-weight: 600; text-align: center; color: #7c4dff; }
details.spoiler[open] > summary { display: none; }
.creport { position: relative; }
.creport__menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); }
.creport__menu .cmt__form { display: flex; flex-direction: column; }
.creport__menu span { padding: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.creport__menu button { padding: 10px; border-radius: 10px; font-size: 14px; text-align: left; }
.creport__menu button:hover { background: var(--surface-2); }
.comments .pager { margin-top: 18px; }

/* ---------- окно «Вам есть 18?» ---------- */
.agegate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(var(--band-rgb), .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.agegate__card { display: flex; flex-direction: column; gap: 14px; width: min(100%, 420px); padding: 28px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lift); }
.agegate__card form { margin: 0; }
.agegate__mark { display: grid; place-items: center; align-self: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #ffffff; font-family: var(--display); font-size: 22px; font-weight: 700; }
.agegate__h { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.25; text-align: center; }
.agegate__text { margin: 0 0 4px; font-size: 15px; line-height: 1.6; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .comments, .pad, .profile__main .panel { padding: 18px; }
  .composer > .avatar { display: none; }
  .cmt { gap: 12px; }
  .player-now { margin-left: 0; }
}

/* Текст только для поисковиков и программ чтения с экрана — на экране его не видно */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Список подсказок скрыт, пока зритель не начал печатать (display: grid выше перебивал атрибут hidden) */
.suggest[hidden] { display: none; }
/* Переход по ссылке к плееру, сериям или комментариям: блок не прячется под липкой шапкой */
#player, #eps, #comments, #catalog { scroll-margin-top: 88px; }

/* «Сейчас выходят» в несколько рядов: на компьютере до трёх рядов по 6, на планшете 3 ряда по 4, на телефоне 3 ряда по 2 */
.rail--rows { row-gap: 28px; }
@media (max-width: 1180px) {
  .rail.rail--rows {
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto;
    overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; gap: 24px 16px;
  }
  .rail--rows > :nth-child(n+13) { display: none; }
}
@media (max-width: 640px) {
  .rail.rail--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .rail--rows > :nth-child(n+7) { display: none; }
}

/* ---------- расписание: дни недели с карточками ---------- */
.day-jump { margin: 18px 0 8px; }
.day-jump .chip { padding: 8px 14px; font-size: 14px; font-weight: 600; background: var(--surface); }
.chip--today { border-color: var(--accent); color: var(--accent-ink); }
.day { padding-top: 36px; scroll-margin-top: 80px; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.day-title { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; color: var(--accent-ink); }
.day-count { margin-left: auto; font-size: 14px; color: var(--muted); }
.day + .day { border-top: 1px solid var(--line); margin-top: 32px; }
.day:last-child { padding-bottom: 24px; }
/* Карточки в расписании того же размера, что на главной: 6 в ряд, дальше 4, 3 и 2 */
.day .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1180px) { .day .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; } }
@media (max-width: 860px) { .day .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .day .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }

/* Логотип: в светлой теме — с тёмной надписью, в тёмной — с белой (переключается вместе со значками луны и солнца) */
.brand-logo--light { display: var(--moon); }
.brand-logo--dark { display: var(--sun); }
/* Шапка с новым, более широким логотипом и пунктом «Расписание»: на средних экранах ужимаем отступы и поиск */
@media (max-width: 1400px) { .header-row { gap: 28px; } .main-nav { gap: 20px; } .search.desktop { width: 240px; } }
@media (max-width: 1240px) { .search.desktop { width: 190px; } .main-nav { gap: 16px; } .main-nav a { font-size: 14px; } }

/* ---------- «Роли»: персонажи и кто их озвучил ---------- */
.t-cast { margin-top: 36px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.cast-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.cast-card__img { display: grid; place-items: center; width: 56px; height: 72px; flex-shrink: 0; overflow: hidden; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: 700 20px var(--display); }
.cast-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cast-card__img i { font-style: normal; }
.cast-card__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cast-card__txt b { font-size: 15px; line-height: 1.25; }
.cast-card__txt span { font-size: 13px; color: var(--muted); }
.cast-card__txt a { color: var(--accent-ink); font-weight: 600; }
.cast-credit { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- «Актёры»: круглые аватарки с никами ---------- */
.actor-search { margin: 18px 0 8px; max-width: 360px; width: 100%; }
.actors-section { margin-top: 34px; }
.actor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 14px; margin-top: 18px; }
.actor { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px; border-radius: 18px; text-align: center; transition: transform .15s ease, background-color .15s ease; }
.actor:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow); }
.actor .avatar--xl { width: 104px; height: 104px; font-size: 40px; box-shadow: var(--shadow); }
.actor b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; transition: color .15s ease; }
.actor:hover b { color: var(--accent-ink); }
.actor > span:last-child { font-size: 13px; color: var(--muted); }
.avatar--hue:not(.avatar--img) { background: hsl(var(--h, 340) 58% 46%); }
.crumbs--page { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs--page a:hover { color: var(--accent-ink); }
.actor-hero { display: flex; align-items: center; gap: 24px; padding: 20px 0 8px; }
.actor-hero .avatar--hero { width: 128px; height: 128px; font-size: 52px; box-shadow: var(--shadow); }
.actor-hero .count { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.role-chip { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.actor-hero + .grid, .actor-hero + .empty { margin-top: 28px; }
@media (max-width: 640px) { .actor-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 8px; } .actor .avatar--xl { width: 84px; height: 84px; font-size: 32px; } .actor-hero { gap: 16px; } .actor-hero .avatar--hero { width: 88px; height: 88px; font-size: 36px; } }

/* Логотип в подвале всегда с белой надписью, как бы ни была выбрана тема */
.brand-logo--fixed { display: block; }

/* Скрытые плитки актёров при поиске по нику (атрибут hidden перебивался display) */
.actor[hidden], .actors-section[hidden] { display: none; }
