/* Auto-generated CSS bundle (source order from index.html) */
/* === app.css === */
/* Stream Derzkobt — интерфейс зрителя и панели. Тёмная тема основная. */
:root {
  --bg: #15121D;
  --surface: #1F1B2B;
  --raised: #2A2539;
  --line: #383149;
  --text: #EEEAF6;
  --muted: #9C95AF;
  --accent: #F4C24F;
  --accent-ink: #231A05;
  --live: #FF4D5E;
  --ok: #5BD69B;
  --warn: #F4A04F;
  --twitch: #A970FF;
  --boosty: #F2713A;
  --focus: #8FB8FF;
  --display: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --gutter: clamp(16px, 3vw, 32px);
  --maxw: 1440px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--body); min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(24px, 3.2vw, 36px); }
h2 { font-size: clamp(18px, 2vw, 22px); }
h3 { font-size: 16px; }
p { margin: 0 0 .75em; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ------------------------------------------------------------------ шапка */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter); background: rgba(21, 18, 29, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; flex-shrink: 0; }
.logo span { font: 800 20px/1 var(--display); letter-spacing: -0.03em; color: var(--accent); }
.logo small { font: 500 12px/1 var(--display); color: var(--muted); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted);
  white-space: nowrap; font-weight: 500; position: relative;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-left: 6px; vertical-align: 2px; }
.topbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--body); text-align: center; }
.admin-link { text-decoration: none; font-weight: 600; color: var(--accent); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.avatar-link { display: block; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--raised); }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 6px; }
  .nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .admin-link { display: none; }
}

/* ------------------------------------------------------------------ раскладка */
main:focus-visible { outline: none; }
.site-contact-footer { max-width: var(--maxw); margin: 24px auto 0; padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-contact-title { font-weight: 600; color: var(--text); }
.site-contact-footer a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.site-contact-footer a:hover { color: var(--accent); }
.site-contact-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
@media (max-width: 760px) { .site-contact-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); gap: 4px 20px; } }
main { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 64px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section { margin-top: 36px; }
.section > .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { color: var(--muted); text-decoration: none; font-weight: 500; }
.section-head a:hover { color: var(--text); }

.grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ кнопки, поля */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--raised); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: #FF8C97; border-color: #5b2c37; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

input[type=text], input[type=search], input[type=number], input[type=url], input[type=datetime-local], textarea, select {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; min-height: 40px; width: 100%;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); outline: none; }
label.field { display: grid; gap: 6px; font-weight: 500; }
label.field > span { font-size: 13px; color: var(--muted); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ------------------------------------------------------------------ карточки */
.card { text-decoration: none; display: grid; gap: 10px; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 800 28px var(--display); color: var(--raised); background: linear-gradient(135deg, var(--surface), var(--raised)); }
.thumb .dur { position: absolute; right: 8px; bottom: 10px; background: rgba(10, 8, 15, .82); padding: 2px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.thumb .watched { position: absolute; left: 8px; top: 8px; background: rgba(10, 8, 15, .82); padding: 2px 8px; border-radius: 4px; font-size: 12px; color: var(--ok); }
.thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.thumb .bar i { display: block; height: 100%; background: var(--accent); }
.card h3 { font: 600 15px/1.35 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.plat { display: inline-flex; align-items: center; gap: 6px; }
.plat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.plat.twitch::before { background: var(--twitch); }
.plat.boosty::before { background: var(--boosty); }

/* ------------------------------------------------------------------ эфир на главной */
.onair {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 0; border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); text-decoration: none; border: 1px solid var(--line);
}
.onair .screen { position: relative; aspect-ratio: 16/9; background: radial-gradient(120% 120% at 20% 10%, #3b2147 0%, #1c1528 55%, #120f19 100%); display: grid; place-items: center; }
.onair .screen .live-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.onair .screen strong { font: 800 clamp(30px, 6vw, 72px)/1 var(--display); letter-spacing: -0.04em; color: var(--text); }
.onair .screen .pulse { position: absolute; left: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; background: var(--live); padding: 4px 10px; border-radius: 4px; }
.onair .screen .pulse::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
.onair .info { padding: 24px; display: grid; align-content: center; gap: 12px; }
.onair .info h2 { font-size: clamp(20px, 2.4vw, 28px); }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 760px) { .onair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .onair .screen .pulse::before { animation: none; } .thumb img { transition: none; } }

/* ------------------------------------------------------------------ вход и доступ */
.gate { min-height: calc(100vh - 120px); display: grid; place-items: center; }
.gate-box { width: min(560px, 100%); display: grid; gap: 22px; }
.gate-title { font: 800 clamp(40px, 9vw, 84px)/.92 var(--display); letter-spacing: -0.05em; color: var(--accent); margin: 0; }
.gate-title span { display: block; color: var(--text); font-size: .42em; letter-spacing: -0.02em; margin-top: 10px; font-weight: 700; }
.gate .steps { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.gate .steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; color: var(--muted); }
.gate .steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--text); font-weight: 700; font-size: 13px; }
.notice { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.notice.err { border-color: #6b2b37; background: #2a1720; }
.notice.warn { border-color: #6b4a22; background: #2a2116; }
.notice.ok { border-color: #1f5a40; background: #15261f; }

/* ------------------------------------------------------------------ плеер */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1100px) { .watch { grid-template-columns: 1fr; } }
.player {
  position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; width: 100%;
  user-select: none; -webkit-user-select: none;
}
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 6, 12, .55); text-align: center; padding: 16px; }
.player .overlay .box { display: grid; gap: 12px; justify-items: center; max-width: 440px; }
.player .spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px;
  background: linear-gradient(to top, rgba(8,6,12,.9), rgba(8,6,12,0)); transition: opacity .2s; display: grid; gap: 6px;
}
.player.idle .controls { opacity: 0; }
.player.idle { cursor: none; }
.ctrl-row { display: flex; align-items: center; gap: 4px; }
.ctrl-row .spacer { flex: 1; }
.cbtn { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.cbtn:hover { background: rgba(255,255,255,.12); }
.cbtn svg { width: 22px; height: 22px; fill: currentColor; }
.cbtn.text { width: auto; padding: 0 10px; font-weight: 600; font-size: 13px; }
.time { font-size: 13px; color: #ddd; padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seek { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.seek .track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.seek:hover .track { height: 6px; top: 6px; }
.seek .buf { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.3); border-radius: 2px; }
.seek .played { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.seek .knob { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); }
.seek .tick { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.65); }
.seek .tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(10,8,15,.92); padding: 3px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.volume { width: 80px; accent-color: var(--accent); }
@media (max-width: 520px) { .volume { display: none; } }
.menu { position: absolute; right: 12px; bottom: 64px; background: rgba(20,17,28,.97); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; min-width: 180px; display: grid; z-index: 5; max-height: 70%; overflow: auto; }
.menu button { text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 6px; cursor: pointer; color: var(--text); }
.menu button:hover, .menu button:focus-visible { background: var(--raised); }
.menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.menu .menu-title { padding: 6px 12px; color: var(--muted); font-size: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; }
.live-badge.at-edge { background: var(--live); }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.watch-title { margin-top: 18px; display: grid; gap: 10px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.desc { white-space: pre-wrap; color: #d9d4e4; }
.side-list { display: grid; gap: 2px; }
.side-list button, .side-list a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--text); }
.side-list button:hover, .side-list a:hover { background: var(--surface); }
.side-list .tc { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.side-list .current { background: var(--raised); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; }

/* ------------------------------------------------------------------ комментарии */
.comments { margin-top: 32px; display: grid; gap: 16px; max-width: 820px; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.comment .av { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); overflow: hidden; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.comment .head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.comment .head b { color: var(--text); font-size: 14px; }
.comment .body { white-space: pre-wrap; word-break: break-word; margin: 4px 0 6px; }
.comment .body.gone { color: var(--muted); font-style: italic; }
.comment .tools { display: flex; gap: 2px; flex-wrap: wrap; }
.comment .replies { display: grid; gap: 14px; margin-top: 12px; }
.timecode { color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.composer { display: grid; gap: 8px; }
.composer .row { justify-content: flex-end; }

/* ------------------------------------------------------------------ списки, вкладки, таблицы */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; text-decoration: none; color: var(--muted); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); display: grid; gap: 12px; justify-items: center; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--raised) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton, .player .spinner { animation: none; } }
.list { display: grid; gap: 8px; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.list-item.unread { border-color: #6b5a22; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; background: var(--surface); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: var(--raised); white-space: nowrap; }
.status.ready, .status.done, .status.online, .status.member, .status.confirmed { color: var(--ok); }
.status.needs_review, .status.queued, .status.reconnecting, .status.none { color: var(--warn); }
.status.error, .status.dead, .status.failed, .status.not_member, .status.wrong { color: #FF8C97; }
.status.live, .status.capturing { color: #fff; background: var(--live); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 4px; }
.stat b { font: 700 18px/1.3 var(--display); }
.admin { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.admin-nav { display: grid; gap: 2px; align-content: start; position: sticky; top: 76px; }
.admin-nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); }
.admin-nav a[aria-current="page"] { background: var(--raised); color: var(--text); }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .admin-nav { position: static; display: flex; overflow-x: auto; } }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chapters-edit .ch { display: grid; grid-template-columns: 110px 110px 1fr 150px 40px; gap: 8px; align-items: center; margin-bottom: 6px; }
@media (max-width: 760px) { .chapters-edit .ch { grid-template-columns: 1fr 1fr; } }
pre.code { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; overflow: auto; font-size: 12px; max-height: 260px; }

/* ------------------------------------------------------------------ профиль */
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head .big-av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--raised); display: grid; place-items: center; font: 800 26px var(--display); color: var(--muted); flex-shrink: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }

/* ------------------------------------------------------------------ уведомления */
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--raised); border: 1px solid var(--line); padding: 12px 16px; border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { border-color: #6b2b37; }
.noscript { padding: 40px; text-align: center; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(5, 4, 8, .7); }

.login-actions { display: grid; gap: 10px; justify-items: start; }
.btn.tg-login { background: #2AABEE; border-color: #2AABEE; color: #fff; min-height: 48px; padding: 10px 22px; font-size: 16px; }
.btn.tg-login:hover { filter: brightness(1.08); }
.btn.tg-login svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ навигация: значки только на телефоне */
.nav svg { display: none; }
.nav .short { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* размытие у шапки сделало бы её «контейнером» для fixed-меню — на телефоне убираем */
  .topbar { flex-wrap: nowrap; padding-bottom: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; order: initial; width: auto; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(21, 18, 29, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); overflow: visible;
  }
  .nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; border-radius: 8px; position: relative; min-height: 52px; align-content: center; }
  .nav a[aria-current="page"] { background: transparent; color: var(--accent); }
  .nav svg { display: block; width: 22px; height: 22px; fill: currentColor; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .nav .live-dot { position: absolute; top: 6px; right: calc(50% - 18px); margin: 0; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  main { padding-top: 16px; }
  .page-head h1 { font-size: 24px; }
}

/* ------------------------------------------------------------------ плеер на телефоне */
@media (max-width: 560px) {
  .player { border-radius: 0; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
  .controls { padding: 18px 6px 4px; gap: 2px; }
  .ctrl-row { gap: 0; min-width: 0; }
  .cbtn { width: 38px; height: 38px; flex-shrink: 0; }
  .cbtn svg { width: 20px; height: 20px; }
  .cbtn.text { padding: 0 6px; }
  .time { font-size: 12px; padding: 0 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .volume { display: none; }
  .ctrl-row [aria-label="Картинка в картинке"] { display: none; }
  .player.is-live .ctrl-row [aria-label^="Назад"], .player.is-live .ctrl-row [aria-label^="Вперёд"] { display: none; }
  .menu { right: 6px; bottom: 52px; max-height: 60%; }
  .seek { height: 24px; }
  .seek .track { top: 10px; }
  .seek .knob { top: 6px; width: 14px; height: 14px; margin-left: -7px; }
  .watch-actions .btn { flex: 1 1 auto; }
  .chapters-edit .ch { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .ctrl-row [aria-label^="Назад"], .ctrl-row [aria-label^="Вперёд"] { display: none; }
}
.timecode { padding: 2px 1px; }
@media (hover: none) { .player.idle { cursor: default; } }
.cbtn.text { min-width: 40px; }
.live-badge { min-height: 32px; }

/* Компактные настройки и результаты ИИ, без растягивания полей. */
.ai-panel { align-content: start; }
.ai-run { margin-top: 12px; }
.ai-run > a { font-weight: 600; text-decoration: none; }
.ai-progress { display: grid; gap: 8px; margin: 8px 0; }
.ai-progress progress { width: 100%; height: 8px; accent-color: var(--accent); }
.ai-results { display: grid; gap: 10px; }
.ai-results summary { cursor: pointer; font-weight: 500; }
.ai-results details > p { margin-top: 10px; white-space: pre-line; }
.ai-evidence { display: grid; gap: 12px; padding-left: 24px; }
.ai-evidence li > span { display: block; margin-top: 3px; }

/* ------------------------------------------------------------------ сортировка-«чипсы» */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 20px; }
.chips-label { color: var(--muted); font-size: 13px; margin-right: 4px; }
.chips button { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; min-height: 36px; }
.chips button:hover { border-color: var(--muted); }
.chips button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 560px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { white-space: nowrap; flex-shrink: 0; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }
.ep-label { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
a.ep-label:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ страница произведения */
.series-hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: end; margin-bottom: 28px; }
.series-cover { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-cover .placeholder { height: 100%; display: grid; place-items: center; font: 800 48px var(--display); color: var(--raised); }
.series-info { display: grid; gap: 10px; min-width: 0; }
.series-progress { height: 6px; border-radius: 3px; background: var(--raised); max-width: 420px; overflow: hidden; }
.series-progress i { display: block; height: 100%; background: var(--ok); }
@media (max-width: 760px) { .series-hero { grid-template-columns: 1fr; gap: 16px; } .series-info .btn { flex: 1 1 auto; } }

/* ------------------------------------------------------------------ страница просмотра: колонки */
.watch { grid-template-rows: auto 1fr; grid-template-areas: "main side" "comments side"; }
.watch > .w-main { grid-area: main; min-width: 0; }
.watch > .w-side { grid-area: side; align-self: start; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; scrollbar-width: thin; }
.watch > .comments { grid-area: comments; margin-top: 0; }
@media (max-width: 1100px) {
  .watch { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "main" "side" "comments"; }
  .watch > .w-side { position: static; max-height: none; overflow: visible; }
}

/* ------------------------------------------------------------------ плейлист */
.playlist { padding: 14px 10px 10px; gap: 10px; }
.pl-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 0 6px; }
.pl-head h3 a { text-decoration: none; }
.pl-head h3 a:hover { text-decoration: underline; }
.pl-nav { display: flex; gap: 4px; flex-shrink: 0; }
.pl-nav .btn { padding: 6px 8px; min-height: 34px; }
.pl-nav svg { width: 18px; height: 18px; fill: currentColor; }
.playlist > .check, .playlist > .small { padding: 0 6px; }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 460px; overflow: auto; scrollbar-width: thin; position: relative; }
.pl-item { display: grid; grid-template-columns: 22px 112px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); }
.pl-item:hover { background: var(--raised); }
.pl-item.current { background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.pl-n { color: var(--muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.pl-item.current .pl-n { color: var(--accent); }
.pl-n svg { width: 14px; height: 14px; fill: currentColor; }
.pl-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb .dur { position: absolute; right: 4px; bottom: 5px; background: rgba(10, 8, 15, .85); padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.pl-thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.pl-thumb .bar i { display: block; height: 100%; background: var(--accent); }
.pl-text { display: grid; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.3; }
.pl-text > * { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-done { color: var(--ok); display: inline-flex !important; align-items: center; gap: 3px; }
.pl-done svg { width: 12px; height: 12px; fill: currentColor; }
@media (max-width: 1100px) { .pl-list { max-height: 360px; } }

/* ------------------------------------------------------------------ плеер: качество, «далее» */
.cbtn.qbtn { width: auto; min-width: 40px; display: inline-flex; gap: 4px; padding: 0 8px; align-items: center; }
.qlabel { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.qlabel:empty { display: none; }
.upnext { display: grid; gap: 8px; justify-items: center; }
.upnext img { width: 220px; max-width: 60vw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.upnext-count { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  /* на телефоне ±10 с — двойным касанием, звук — кнопками телефона */
  .ctrl-row [aria-label^="Назад на"], .ctrl-row [aria-label^="Вперёд на"], .ctrl-row [aria-label^="Выключить звук"] { display: none; }
  .upnext img { display: none; }
}
@media (max-width: 360px) { .qlabel { display: none; } }

/* ------------------------------------------------------------------ профиль */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 2px; text-decoration: none; }
a.stat:hover { border-color: var(--muted); }
.stat b { font: 700 22px/1.2 var(--display); }
.stat span { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 19px; } }
.top-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.top-s { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-md); background: var(--surface); text-decoration: none; }
.top-s:hover { background: var(--raised); }
.top-s img, .top-s .ph { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--raised); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.top-s > span { display: grid; min-width: 0; }
.top-s b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(10, 8, 15, .82); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.card:hover .card-x, .card-x:focus-visible { opacity: 1; }
@media (hover: none) { .card-x { opacity: 1; } }
.my-comment { text-decoration: none; display: block; }
.my-comment .body { white-space: pre-wrap; word-break: break-word; margin: 4px 0; }

/* ==================================================================
   «Кинозал»: видео — источник света страницы. Движение отвечает на действия пользователя;
   единственная «постановочная» анимация — первый экран главной при загрузке.
   ================================================================== */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --glass: rgba(18, 15, 26, .9);
}
/* «Меньше движения»: системная настройка или выбор в профиле */
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; scroll-behavior: auto !important;
}

/* ------------------------------------------------------------------ переходы между страницами */
@media (min-width: 761px) { .topbar { view-transition-name: chrome; } }
::view-transition-group(chrome), ::view-transition-old(chrome), ::view-transition-new(chrome) { animation: none; }
::view-transition-old(root) { animation: 150ms ease-out both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.vt-screen { view-transition-name: screen; }
::view-transition-group(screen) { animation-duration: 420ms; animation-timing-function: var(--ease-out); z-index: 2; }
::view-transition-old(screen), ::view-transition-new(screen) { animation-duration: 420ms; height: 100%; object-fit: cover; border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 760px) {
  .nav { view-transition-name: tabbar; }
  ::view-transition-group(tabbar), ::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; }
}

/* ------------------------------------------------------------------ меню: подложка активного раздела */
@media (min-width: 761px) { .nav { position: relative; } }
.nav a { z-index: 1; transition: color .2s; }
.nav a[aria-current="page"] { background: transparent; }
.nav-ink { position: absolute; left: 0; top: 0; border-radius: var(--r-sm); background: var(--raised); pointer-events: none; z-index: 0;
  transition: transform .38s var(--ease-out), width .38s var(--ease-out), opacity .2s; }
@media (max-width: 760px) { .nav-ink { display: none; } }

/* ------------------------------------------------------------------ кнопки */
.btn { transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease-out), filter .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.big { min-height: 48px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn.big svg { width: 20px; height: 20px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ------------------------------------------------------------------ карточки: свет обложки при наведении */
.thumb { transition: box-shadow .35s var(--ease-out), transform .2s var(--ease-out); }
.thumb img { transition: transform .6s var(--ease-out); }
.card:hover .thumb { box-shadow: 0 0 0 1px rgba(244, 194, 79, .45), 0 18px 44px -18px rgba(244, 194, 79, .45); }
.card:hover .thumb img { transform: scale(1.045); }
.card:active .thumb { transform: scale(.985); }
.card .thumb::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at 50% 50%, rgba(10, 8, 15, .55) 0 34px, transparent 35px),
    center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5.14v13.72a1 1 0 0 0 1.5.86l11-6.86a1 1 0 0 0 0-1.72l-11-6.86A1 1 0 0 0 8 5.14Z'/%3E%3C/svg%3E");
}
.card:hover .thumb::after, .card:focus-visible .thumb::after { opacity: 1; }
@media (hover: none) { .card .thumb::after { display: none; } }

/* ------------------------------------------------------------------ первый экран главной */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: clamp(18px, 4vw, 48px) 0 clamp(28px, 5vw, 56px); margin-bottom: 8px; isolation: isolate;
}
.hero-light { position: absolute; inset: -60px calc(var(--gutter) * -1) -120px; z-index: -1; overflow: hidden; pointer-events: none;
  mask-image: radial-gradient(65% 70% at 70% 42%, #000 15%, transparent 72%); -webkit-mask-image: radial-gradient(65% 70% at 70% 42%, #000 15%, transparent 72%); }
.hero-light img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.6); opacity: .5; transform: scale(1.15); animation: light-on 1.6s var(--ease-out) both; }
@keyframes light-on { from { opacity: 0; transform: scale(1.3); } }
.hero-text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.hero-text > * { animation: rise .7s var(--ease-out) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-kicker { margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
.hero-title { font: 800 clamp(28px, 4.4vw, 60px)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-progress { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); }
.hero-progress .track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.hero-progress .track i { display: block; height: 100%; background: var(--accent); }
.hero-screen { display: block; text-decoration: none; animation: screen-in .9s var(--ease-out) .1s both; }
.hero-screen .thumb { border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.hero-screen:hover .thumb img { transform: scale(1.03); }
@keyframes screen-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 4px; }
  .hero-screen { order: -1; }
  .hero-light { mask-image: radial-gradient(90% 70% at 50% 25%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(90% 70% at 50% 25%, #000 20%, transparent 75%); }
}

/* эфир на главной: экран «светит» красным эфира */
.onair-list { margin-bottom: 8px; }
.onair { position: relative; isolation: isolate; overflow: visible; background: rgba(31, 27, 43, .7); transition: border-color .25s, box-shadow .35s var(--ease-out); }
.onair:hover { border-color: rgba(255, 77, 94, .55); box-shadow: 0 24px 70px -30px rgba(255, 77, 94, .55); }
.onair .screen { border-radius: var(--r-lg) 0 0 var(--r-lg); overflow: hidden; }
.onair-light { position: absolute; inset: -70px -40px; z-index: -1; pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 55%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.onair-light img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.5); opacity: .45; animation: light-on 1.6s var(--ease-out) both; }
.onair .screen .pulse { box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: ring 2s ease-out infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 12px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
@media (max-width: 760px) { .onair .screen { border-radius: var(--r-lg) var(--r-lg) 0 0; } }

/* ------------------------------------------------------------------ плеер: подсветка */
.player { overflow: visible; isolation: isolate; }
.player-crop-window { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.player-crop-source { position: absolute; inset: 0; border-radius: 0; }
.player[data-cropped="true"]:not(:fullscreen):not(.docked) { aspect-ratio: var(--crop-aspect, 16 / 9); }
.player .pmenu[data-page="crop"] .pm-range input { min-height: 32px; }
.player .pmenu[data-page="crop"] { --text: #f5f3f8; --muted: #bdb6c9; color: var(--text); background: #211c27; }
.player .pmenu[data-page="crop"] .pm-row .pm-label { white-space: normal; }
.player .pmenu[data-page="crop"] .pm-value { white-space: normal; text-align: right; }
.player video, .player iframe, .player .overlay { border-radius: inherit; }
.player .controls { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.player .ambient {
  position: absolute; left: -12%; top: -16%; width: 124%; height: 132%; z-index: -1; pointer-events: none;
  filter: blur(72px) saturate(1.7) brightness(1.25); opacity: 0; transition: opacity 1.4s ease;
}
.player.lit .ambient { opacity: .72; }
.player.lit.paused .ambient { opacity: .48; }
.player:fullscreen .ambient { display: none; }
@media (max-width: 560px) { .player .controls { border-radius: 0; } .player.lit .ambient { opacity: .52; } }

/* ------------------------------------------------------------------ плеер: элементы управления */
.controls { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.player.idle .controls { transform: translateY(6px); }
.cbtn { transition: background .15s, transform .12s var(--ease-out), color .15s; }
.cbtn:active { transform: scale(.9); }
.cbtn.boosted { color: var(--accent); }
.cbtn[aria-pressed="true"] { color: var(--accent); }
.volgroup { display: flex; align-items: center; }
.volgroup .volume { width: 0; opacity: 0; transition: width .25s var(--ease-out), opacity .2s; margin: 0; }
.volgroup:hover .volume, .volgroup:focus-within .volume { width: 84px; opacity: 1; margin: 0 6px 0 2px; }
.seek .track { transition: height .15s, top .15s; }
.seek .played { box-shadow: 0 0 12px rgba(244, 194, 79, .55); }
.seek .knob { transform: scale(0); transition: transform .18s var(--ease-spring); box-shadow: 0 0 0 4px rgba(244, 194, 79, .25); }
.seek:hover .knob, .seek:focus-visible .knob, .player.paused .seek .knob { transform: scale(1); }
.seek .tick { width: 3px; background: rgba(8, 6, 12, .9); }
.seek .tip { background: var(--glass); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.chapter-now { background: none; border: 0; color: #e8e3f2; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter-now::before { content: "› "; color: var(--accent); }
.chapter-now:hover { background: rgba(255, 255, 255, .1); }
.sleep-badge { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 5px 10px; margin-right: 4px;
  background: rgba(244, 194, 79, .16); color: var(--accent); font-weight: 600; font-size: 12px; cursor: pointer; white-space: nowrap; }
.sleep-badge svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 1100px) { .theater-btn { display: none !important; } }
@media (max-width: 760px) { .chapter-now { display: none !important; } }

/* подсказка в центре кадра: громкость, скорость, переход */
.osd { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 3;
  background: var(--glass); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; pointer-events: none; opacity: 0; white-space: nowrap; }
.osd svg { width: 20px; height: 20px; fill: currentColor; }
.osd.show { animation: osd .9s var(--ease-out) both; }
@keyframes osd { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.94); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }

/* перемотка касанием/клавишами: волна у края кадра */
.skipfx { position: absolute; top: 0; bottom: 0; width: 36%; display: grid; place-items: center; pointer-events: none; opacity: 0; z-index: 2; color: #fff; font-weight: 700; font-size: 15px; }
.skipfx.left { left: 0; border-radius: var(--r-lg) 50% 50% var(--r-lg) / var(--r-lg) 50% 50% var(--r-lg); background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 70%); }
.skipfx.right { right: 0; border-radius: 50% var(--r-lg) var(--r-lg) 50% / 50% var(--r-lg) var(--r-lg) 50%; background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 70%); }
.skipfx span { background: rgba(10, 8, 15, .5); padding: 6px 12px; border-radius: 999px; }
.skipfx.show { animation: skipfx .7s ease-out both; }
@keyframes skipfx { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------------ плеер: панель настроек */
.pmenu { width: min(320px, calc(100% - 24px)); right: 12px; bottom: 64px; padding: 6px; max-height: calc(100% - 84px); overflow: auto;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); transform-origin: 100% 100%; animation: menu-in .2s var(--ease-out); }
.pmenu.closing { animation: menu-out .16s ease-in both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(6px) scale(.97); } }
.pm-page { display: grid; gap: 1px; }
.pm-page.from-right { animation: page-r .24s var(--ease-out); }
.pm-page.from-left { animation: page-l .24s var(--ease-out); }
@keyframes page-r { from { opacity: 0; transform: translateX(24px); } }
@keyframes page-l { from { opacity: 0; transform: translateX(-24px); } }
.pmenu .pm-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; width: 100%;
  padding: 10px 10px; border-radius: 9px; font-weight: 500; color: var(--text); }
.pmenu .pm-row > svg { width: 20px; height: 20px; fill: currentColor; opacity: .85; }
.pmenu .pm-row > svg:last-child { width: 16px; height: 16px; opacity: .5; }
.pmenu .pm-row:hover, .pmenu .pm-row:focus-visible { background: rgba(255, 255, 255, .08); }
.pm-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-value { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pmenu .pm-row[role="menuitemcheckbox"], .pmenu .pm-row[role="menuitemcheckbox"][aria-checked="true"] { grid-template-columns: 20px minmax(0, 1fr) 36px; color: var(--text); font-weight: 500; }
.pmenu .pm-row[role="menuitem"]:has(kbd), .pmenu .pm-row[role="menuitem"]:not(:has(.pm-value)) { grid-template-columns: 20px minmax(0, 1fr) auto; }
.switch { width: 36px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .22); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .28s var(--ease-spring); }
[aria-checked="true"] > .switch { background: var(--accent); }
[aria-checked="true"] > .switch::after { transform: translateX(16px); background: var(--accent-ink); }
.pmenu .pm-radio { grid-template-columns: 18px minmax(0, 1fr) auto; }
.pm-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); display: grid; place-items: center; transition: border-color .15s; }
.pm-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .22s var(--ease-spring); }
.pmenu .pm-radio[aria-checked="true"] { color: var(--text); font-weight: 600; }
.pm-radio[aria-checked="true"] .pm-dot { border-color: var(--accent); }
.pm-radio[aria-checked="true"] .pm-dot::after { transform: scale(1); }
.pmenu .pm-back, .pm-title { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 8px 12px; margin-bottom: 4px; font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 9px 9px 0 0; color: var(--text); }
.pm-back svg { width: 20px; height: 20px; fill: currentColor; }
.pm-range { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 10px; align-items: center; }
.pm-range output { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pm-range input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
kbd { display: inline-block; font: 600 12px/1.4 var(--body); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14); border-bottom-width: 2px; color: var(--text); white-space: nowrap; }
.player .overlay.sheet { background: rgba(8, 6, 12, .9); backdrop-filter: blur(6px); overflow: auto; place-items: start center; padding: 24px 16px; }
.player .overlay.sheet .box { max-width: 640px; width: 100%; justify-items: stretch; text-align: left; }
.hotkeys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 4px 0 8px; align-items: center; }
.hotkeys dt { text-align: right; }
.hotkeys dd { margin: 0; color: #ddd8e8; }
.keys-ref summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.keys-ref .hotkeys { margin-top: 10px; }
@media (max-width: 560px) { .hotkeys { grid-template-columns: 1fr; gap: 2px; } .hotkeys dt { text-align: left; margin-top: 8px; } .pmenu { right: 6px; bottom: 52px; max-height: calc(100% - 64px); } }

/* ------------------------------------------------------------------ широкий режим */
.watch.theater { grid-template-areas: "main main" "comments side"; }
.watch.theater .player { max-height: calc(100vh - 120px); width: min(100%, calc((100vh - 120px) * 16 / 9)); margin-inline: auto; }
.watch.theater .watch-title { max-width: min(100%, calc((100vh - 120px) * 16 / 9)); margin-inline: auto; }
.watch { transition: grid-template-columns .3s var(--ease-out); }

/* ------------------------------------------------------------------ мини-плеер */
.player-dock { position: relative; }
.dock-close, .dock-back { display: none; }
.player.docked {
  position: fixed; right: 20px; bottom: 20px; width: min(400px, 40vw); z-index: 45; border-radius: 14px;
  box-shadow: 0 28px 70px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); animation: dock-in .35s var(--ease-out);
  view-transition-name: none;
}
@keyframes dock-in { from { opacity: 0; transform: translateY(20px) scale(.92); } }
.player.docked .ambient, .player.docked .chapter-now, .player.docked .sleep-badge, .player.docked .cbtn.text, .player.docked .qbtn,
.player.docked .theater-btn, .player.docked [aria-label^="Назад"], .player.docked [aria-label^="Вперёд"], .player.docked .volgroup,
.player.docked [aria-label^="Предыдущее"], .player.docked [aria-label^="Следующее"], .player.docked .time { display: none !important; }
.player.docked .controls { border-radius: 0 0 14px 14px; padding: 18px 8px 4px; }
.player.docked .dock-close, .player.docked .dock-back { display: grid; place-items: center; position: absolute; top: 8px; z-index: 4; width: 32px; height: 32px;
  border-radius: 50%; border: 0; background: rgba(10, 8, 15, .7); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s; }
.player.docked .dock-close { right: 8px; }
.player.docked .dock-back { left: 8px; }
.player.docked:hover .dock-close, .player.docked:hover .dock-back, .player.docked:focus-within .dock-close, .player.docked:focus-within .dock-back { opacity: 1; }
.dock-close svg, .dock-back svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------------------------------------------ лайк, уведомления */
.like-btn { position: relative; }
.like-btn.pop svg { animation: heart .5s var(--ease-spring); }
@keyframes heart { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }
.burst { position: absolute; left: 26px; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--accent);
  transform: rotate(var(--a)) translateY(0); animation: burst .6s var(--ease-out) both; }
.burst i:nth-child(even) { background: var(--live); width: 4px; height: 4px; }
@keyframes burst { to { transform: rotate(var(--a)) translateY(-22px) scale(.4); opacity: 0; } }
.toast { animation: toast-in .32s var(--ease-spring); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* подсветка плеера — под текстом страницы, а не поверх: всё, что идёт после плеера, рисуется выше */
.watch-title, .watch > aside, .watch > .comments, .live-watch .watch-title { position: relative; }
.player:focus-visible { outline: 2px solid rgba(143, 184, 255, .55); outline-offset: 3px; }
.player:has(.overlay.sheet:not([hidden])) .controls { opacity: 0; pointer-events: none; }
.player .overlay.sheet { place-items: center; padding: 16px 20px; }
.player .overlay.sheet .box { max-width: 880px; gap: 14px; }
.player .overlay.sheet .box > h3 { font-size: 18px; }
.player .overlay.sheet .box > .btn { justify-self: center; }
.player .overlay.sheet .hotkeys { grid-template-columns: repeat(2, max-content minmax(0, 1fr)); gap: 7px 14px; font-size: 14px; }
@media (max-width: 760px) { .player .overlay.sheet .hotkeys { grid-template-columns: max-content minmax(0, 1fr); font-size: 13px; } }
/* телефон: свет обложек и плеера не должен расширять страницу за край экрана */
@media (max-width: 760px) { main { overflow-x: clip; } }
/* телефон и узкое окно: настройки плеера — лист снизу поверх страницы (в маленьком плеере им тесно) */
@media (max-width: 760px) {
  .player:not(:fullscreen) .pmenu {
    position: fixed; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; max-height: 68vh; z-index: 60;
    border-radius: 18px; transform-origin: 50% 100%; box-shadow: 0 -10px 60px rgba(0, 0, 0, .7), 0 0 0 100vmax rgba(5, 4, 8, .45);
  }
  .player:not(:fullscreen) .pmenu .pm-row { padding: 13px 12px; }
}
.player:has(.pmenu) { z-index: 61; }
@media (max-width: 760px) { .player:not(:fullscreen) .pmenu { background: #18141f; } }
@media (hover: none) and (pointer: coarse) { .pmenu .pm-row:has(kbd) { display: none; } }
.cols { align-items: start; }
.cols > .panel, .panel { align-content: start; }

/* ------------------------------------------------------------------ шрифт Onest: один шрифт на весь сайт */
body { font-size: 15.5px; font-feature-settings: "ss01" 0; }
h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-weight: 800; }
.logo span { letter-spacing: -0.02em; }
.hero-title { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.gate-title { letter-spacing: -0.04em; }
.onair .info h2 { font-weight: 800; letter-spacing: -0.02em; }
.card h3 { font-weight: 600; }

/* ------------------------------------------------------------------ площадки: значки и кнопки в цветах Twitch и Boosty */
:root { --twitch-ink: #D2BCFF; --boosty-ink: #FFB898; }
.plat { padding: 2px 9px 2px 7px; border-radius: 999px; background: rgba(156, 149, 175, .14); color: var(--text); font-weight: 600; font-size: 12px; line-height: 18px; }
.plat::before { width: 7px; height: 7px; border-radius: 50%; }
.plat.twitch { background: rgba(169, 112, 255, .16); color: var(--twitch-ink); }
.plat.boosty { background: rgba(242, 113, 58, .16); color: var(--boosty-ink); }
.plat-btn { gap: 8px; }
.plat-btn .plat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.plat-btn > svg { width: 16px; height: 16px; opacity: .7; }
.plat-btn.twitch { border-color: rgba(169, 112, 255, .45); color: var(--twitch-ink); background: rgba(169, 112, 255, .08); }
.plat-btn.twitch:hover { background: rgba(169, 112, 255, .18); }
.plat-btn.twitch .plat-dot { background: var(--twitch); box-shadow: 0 0 0 3px rgba(169, 112, 255, .25); }
.plat-btn.boosty { border-color: rgba(242, 113, 58, .45); color: var(--boosty-ink); background: rgba(242, 113, 58, .08); }
.plat-btn.boosty:hover { background: rgba(242, 113, 58, .18); }
.plat-btn.boosty .plat-dot { background: var(--boosty); box-shadow: 0 0 0 3px rgba(242, 113, 58, .25); }
.onair .info h2 a { color: inherit; text-decoration: none; }
.onair .info h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.onair .screen { display: grid; place-items: center; text-decoration: none; }
/* цвет рамки эфира — по площадке */
.onair.twitch:hover { border-color: rgba(169, 112, 255, .55); box-shadow: 0 24px 70px -30px rgba(169, 112, 255, .5); }
.onair.boosty:hover { border-color: rgba(242, 113, 58, .55); box-shadow: 0 24px 70px -30px rgba(242, 113, 58, .5); }

/* ---- 2026-10-16: ссылка на Telegram-канал, вход через бота и Google */
.tg-channel { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #2AABEE; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tg-channel:hover { filter: brightness(1.08); }
.tg-channel svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 640px) { .topbar .tg-channel span { display: none; } .topbar .tg-channel { padding: 7px; } }
.btn.google-login { background: #fff; color: #1f1f1f; border-color: #dadce0; min-height: 48px; padding: 10px 22px; font-size: 16px; }
.btn.google-login:hover { background: #f3f4f6; }
.btn.google-login svg { width: 20px; height: 20px; }
.login-divider { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.gate-channel { margin-top: 18px; }

/* ---- вход по QR-коду */
.qr-box { background: #fff; padding: 10px; border-radius: var(--r-md); width: min(260px, 100%); line-height: 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-code { font-size: 30px; font-weight: 800; letter-spacing: .18em; margin: 0; font-variant-numeric: tabular-nums; }
.qr-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.qr-input { font: inherit; font-size: 24px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; width: 8.5em;
  padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: inherit; }
.qr-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- приложение для ТВ */
.tv-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 600;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); text-decoration: none; }
.tv-link:hover { border-color: var(--accent); color: var(--accent); }
.tv-link svg { width: 18px; height: 18px; fill: currentColor; }
.tv-link[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .topbar .tv-link span { display: none; } .topbar .tv-link { padding: 7px; } }
.gate-channel { display: flex; gap: 10px; flex-wrap: wrap; }
.tvapp-download { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tvapp-url { font: 700 22px/1.3 var(--display, inherit); color: var(--accent); word-break: break-all; }
.tvapp-box { width: min(680px, 100%); }

/* 24.10: кнопка второго плеера (Boosty напрямую) */
.cbtn.srcbtn { border: 1px solid rgba(255,255,255,.35); height: 28px; align-self: center; border-radius: 6px; font-size: 12px; margin-right: 4px; white-space: nowrap; }
.cbtn.srcbtn[aria-pressed="true"] { background: #f5c542; color: #111; border-color: #f5c542; }

/* 24.10: заголовок сезона в плейлисте */
.pl-list .pl-season { list-style: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #f5c542; padding: 10px 8px 4px; }

/* 24.10: переключатель плеера вверху слева: Основной / 2 плеер */
.player .src-tabs { position: absolute; top: 12px; left: 12px; z-index: 6; display: flex; gap: 8px; transition: opacity .25s; }
.player .src-tabs[hidden] { display: none; }
.player.idle .src-tabs { opacity: 0; pointer-events: none; }
.player .src-tab { background: rgba(16,14,26,.72); color: #fff; border: 2px solid rgba(255,255,255,.22); border-radius: 8px;
  padding: 7px 16px; font: 600 13px/1 inherit; cursor: pointer; backdrop-filter: blur(4px); }
.player .src-tab:hover { border-color: rgba(255,255,255,.5); }
.player .src-tab[aria-selected="true"] { background: #f5c542; border-color: #f5c542; color: #111; }
@media (max-width: 560px) { .player .src-tabs { top: 8px; left: 8px; gap: 6px; } .player .src-tab { padding: 6px 10px; font-size: 12px; } }

/* 24.10: телефоны и планшеты — широкий режим не ломает одноколоночную раскладку */
@media (max-width: 1100px) {
  .watch.theater { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "main" "side" "comments"; }
  .watch.theater .player, .watch.theater .watch-title { width: auto; max-width: none; max-height: none; }
}
@media (max-width: 760px) {
  .comments { max-width: none; }
  .watch-actions .btn { flex: 1 1 auto; justify-content: center; }
  .page-head h1 { font-size: 26px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chips > * { flex: 0 0 auto; }
  .filters { flex-wrap: wrap; }
  .filters > input, .filters > select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .filters > input[type=search] { flex-basis: 100%; }
}

@media (max-width: 760px) { .filters > input[type=search] { grid-column: 1 / -1; } /* поиск на всю ширину */ }

.view-switch { display: inline-flex; gap: 4px; margin-left: auto; }
.view-switch button { background: var(--surface-2, #221d2e); border: 1px solid transparent; color: inherit; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.view-switch button[aria-pressed="true"] { border-color: #f5c542; color: #f5c542; }
.grid.view-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.grid.view-compact .card .meta, .grid.view-compact .card p { display: none; }
.grid.view-compact .card h3, .grid.view-compact .card .title { font-size: 13px; }
.grid.view-list { grid-template-columns: 1fr; gap: 8px; }
.grid.view-list > * { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; }
.grid.view-list .thumb { aspect-ratio: 16/9; }
@media (max-width: 520px) { .grid.view-compact { grid-template-columns: repeat(2, 1fr); } .grid.view-list > * { grid-template-columns: 112px minmax(0, 1fr); } }
@media (max-width: 520px) { .grid.view-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } .grid.view-compact { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* admin stats */
.stats-cap { margin: 22px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stats-cap + .stats { margin-top: 8px; }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding: 18px 4px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.bar-col { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar-col i { display: block; width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.bar-col:hover i { opacity: 1; }
.bar-v { font-size: 10px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; }
.bar-d { position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.stats-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 900px) { .stats-cols { grid-template-columns: 1fr; } .bar-v { display: none; } }
.role-hint { margin: -4px 0 12px; max-width: 760px; }
/* admin mobile */
.admin > * { min-width: 0; }
.row-gap select { width: auto; min-width: 120px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .admin-nav { gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .admin-nav a { white-space: nowrap; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
  .admin .page-head { align-items: flex-start; }
  .admin .filters > * { flex: 1 1 140px; }
  .admin td, .admin th { padding: 8px 10px; }
}

/* 24.10: комментарии в стиле YouTube */
.comments.yt { gap: 20px; }
.c-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.c-top h2 { margin: 0; font-size: 20px; }
.c-sort { width: auto; min-width: 0; padding: 6px 10px; font-size: 14px; background: transparent; border-color: var(--line); }
.c-compose { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.c-compose.small { grid-template-columns: 24px 1fr; gap: 10px; margin-top: 8px; }
.c-compose .av, .c-item > .av { width: 40px; height: 40px; border-radius: 50%; background: var(--raised); overflow: hidden; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.c-compose.small .av, .c-item.reply > .av { width: 24px; height: 24px; font-size: 11px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.c-field textarea { width: 100%; min-height: 0; resize: none; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0; font: inherit; color: var(--text); line-height: 1.45; }
.c-field textarea:focus { outline: none; border-bottom: 2px solid var(--text); padding-bottom: 5px; }
.c-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.c-actions[hidden] { display: none; }
.c-actions .c-hint { margin-right: auto; }
.c-actions .btn { border-radius: 999px; }
.c-list { display: grid; gap: 22px; }
.c-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 14px; position: relative; }
.c-item.reply { grid-template-columns: 24px minmax(0, 1fr) 32px; gap: 10px; }
.c-main { min-width: 0; }
.c-pinned { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.c-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.c-name { font-weight: 600; color: var(--text); font-size: 13px; }
.c-name.badge { background: var(--raised); border-radius: 999px; padding: 1px 8px; }
.c-name.badge.owner { background: rgba(245, 197, 66, .18); color: #f5c542; }
.c-body { white-space: pre-wrap; word-break: break-word; margin: 3px 0 2px; font-size: 14.5px; line-height: 1.5; }
.c-body.clamp:not(.open) { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.c-body.gone { color: var(--muted); font-style: italic; }
.c-more { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.c-tools { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.c-like, .c-reply { background: none; border: 0; color: var(--text); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.c-like { margin-left: -10px; }
.c-like span { color: var(--muted); font-weight: 500; }
.c-like:hover:not(:disabled), .c-reply:hover { background: var(--raised); }
.c-like[aria-pressed="true"] { color: #f5c542; }
.c-like:disabled { cursor: default; opacity: .7; }
.c-toggle { background: none; border: 0; color: #3ea6ff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; margin-left: -14px; border-radius: 999px; cursor: pointer; }
.c-toggle:hover { background: rgba(62, 166, 255, .12); }
.c-toggle .chev { display: inline-block; transition: transform .15s; }
.c-toggle .chev.up { transform: rotate(180deg); }
.c-replies { display: grid; gap: 14px; margin-top: 6px; }
.c-replies[hidden] { display: none; }
.c-menu-wrap { position: relative; }
.c-dots { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer; opacity: 0; }
.c-item:hover > .c-menu-wrap .c-dots, .c-dots:focus-visible, .c-dots[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .c-dots { opacity: .7; } }
.c-dots:hover { background: var(--raised); }
.cmenu { position: absolute; right: 0; top: 34px; z-index: 30; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); display: grid; }
.cmenu button { background: none; border: 0; text-align: left; padding: 9px 16px; color: var(--text); cursor: pointer; font-size: 14px; }
.cmenu button:hover, .cmenu button:focus { background: var(--raised); outline: none; }
.cmenu button.danger { color: #ff6b6b; }
.c-flash { animation: cflash 2.4s ease-out; border-radius: 10px; }
@keyframes cflash { 0% { background: rgba(245, 197, 66, .2); } 100% { background: transparent; } }
@media (max-width: 560px) {
  .c-compose { grid-template-columns: 32px 1fr; gap: 10px; }
  .c-compose .av, .c-item > .av { width: 32px; height: 32px; }
  .c-item { grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 10px; }
  .c-actions .c-hint { display: none; }
  .c-actions { justify-content: flex-end; }
}

.follow-btn { display: inline-flex; align-items: center; gap: 8px; }
.follow-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .watch-actions .follow-btn span { display: none; } }

/* 24.10: телефон — ленты на главной и в профиле, виды сетки записей */
.sort-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-row .chips { flex: 1 1 auto; min-width: 0; }
.grid-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.view-switch .vs-icon { margin-right: 6px; }
.grid.recs.view-compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 12px; }
.grid.recs.view-list { grid-template-columns: 1fr; gap: 12px; }
.grid.recs.view-list > * { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) {
  .view-switch .vs-text { display: none; }
  .view-switch .vs-icon { margin: 0; font-size: 16px; }
  .view-switch button { padding: 6px 12px; }
  .sort-row { flex-wrap: wrap; row-gap: 8px; }
  .sort-row .chips { flex-basis: 100%; }
  .sort-row .view-switch { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  .grid.rail::-webkit-scrollbar { display: none; }
  .grid.rail > * { flex: 0 0 78%; scroll-snap-align: start; min-width: 0; }
  .grid.rail > .card.series, .grid.rail > a.series-card { flex-basis: 44%; }
  .grid.recs.view-tiles { grid-template-columns: 1fr; gap: 18px; }
  .grid.recs.view-compact { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .grid.recs.view-compact .card .meta, .grid.recs.view-compact .card p { display: none; }
  .grid.recs.view-compact .card h3 { font-size: 13px; }
  .grid.recs.view-list > * { grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
  .grid.recs.view-list .card h3 { font-size: 13.5px; -webkit-line-clamp: 3; }
}

/* 24.10: личный кабинет */
.account { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.acc-side { position: sticky; top: 76px; display: grid; gap: 14px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; }
.acc-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.acc-id .big-av { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--raised); display: grid; place-items: center; font: 800 22px var(--display); color: var(--muted); flex-shrink: 0; }
.acc-id .big-av img { width: 100%; height: 100%; object-fit: cover; }
.acc-name { min-width: 0; }
.acc-name h1 { font-size: 20px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-member { display: flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; color: var(--text); padding: 7px 10px; border-radius: 10px; background: var(--raised); }
.acc-member i { width: 8px; height: 8px; border-radius: 50%; background: #e5534b; flex-shrink: 0; }
.acc-member.ok i { background: #3fb950; }
.acc-member.warn i { background: #f5c542; }
.acc-card .btn { justify-self: start; }
.acc-nav { display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; }
.acc-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.acc-nav a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 1px 8px; }
.acc-nav a:hover { background: var(--surface); color: var(--text); }
.acc-nav a[aria-current="page"] { background: var(--raised); color: var(--text); }
.acc-nav a[aria-current="page"] svg { color: var(--accent); }
.acc-title { margin: 0 0 18px; font-size: 26px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.acc-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: var(--text); display: grid; gap: 2px; }
.acc-stat:hover { border-color: var(--muted); }
.acc-stat b { font: 700 22px/1.2 var(--display); }
.acc-stat span { color: var(--muted); font-size: 13px; }
.acc-body .section:first-of-type { margin-top: 24px; }
/* настройки: панели плотной «кладкой» без пустых дыр */
.acc-body .cols { display: block; columns: 2 340px; column-gap: 16px; }
.acc-body .cols > .panel { break-inside: avoid; margin: 0 0 16px; display: grid; gap: 10px; }
.follow-list { display: grid; gap: 10px; }
.follow-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding-right: 12px; }
.follow-row .top-s { background: none; }
.follow-row.off { opacity: .55; }
@media (max-width: 900px) {
  .account { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .acc-side { position: static; gap: 10px; }
  .acc-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 14px; }
  .acc-card .acc-id { grid-column: 1 / -1; }
  .acc-card > .muted.small { display: none; }
  .acc-card .btn { justify-self: end; }
  .acc-nav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav a { flex-shrink: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; gap: 8px; font-size: 14px; }
  .acc-nav a svg { width: 16px; height: 16px; }
  .acc-nav a em { margin-left: 2px; }
  .acc-title { font-size: 22px; margin-bottom: 12px; }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-body .cols { columns: 1; }
}

/* кнопка отражения по горизонтали: подсветка, когда включено */
.cbtn.mirror-btn.on { color: var(--accent, #f5c542); background: rgba(255,255,255,.12); }
@media (max-width: 600px) { .cbtn.mirror-btn { display: none; } } /* на телефоне — через меню настроек */

/* перемотка: полоса толще при наведении и перетаскивании, превью кадра */
.seek .track, .seek .knob { transition: height .12s ease, top .12s ease, width .12s ease, margin .12s ease; }
.seek:hover .knob { top: 2px; width: 14px; height: 14px; margin-left: -7px; }
.seek.dragging .track { height: 10px; top: 4px; border-radius: 5px; }
.seek.dragging .buf, .seek.dragging .played { border-radius: 5px; }
.seek.dragging .knob { top: 0; width: 18px; height: 18px; margin-left: -9px; box-shadow: 0 0 0 4px rgba(244,194,79,.25); }
.seek .tip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; text-align: center; }
.seek .tip .tip-text { padding: 0 4px 1px; }
.seek .tip-frame { width: 192px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.seek .tip-frame[hidden] { display: none; }
.seek .tip-frame video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (max-width: 600px) {
  .seek.dragging .track { height: 12px; top: 6px; }
  .seek.dragging .knob { top: 3px; width: 18px; height: 18px; margin-left: -9px; }
  .seek .tip-frame { width: 144px; }
}
/* ускорение при зажатии края видео */
.hold-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: rgba(10,8,15,.78); color: #fff; font-weight: 700; font-size: 14px; pointer-events: none; }
.hold-badge[hidden] { display: none; }
.hold-badge svg { width: 18px; height: 18px; fill: currentColor; animation: hold-pulse 1s ease-in-out infinite; }
@keyframes hold-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .hold-badge svg { animation: none; } .seek .track, .seek .knob { transition: none; } }

/* кнопка улучшения (Framevio): подсветка, когда включено */
.cbtn.enhance-btn.on { color: var(--accent, #f5c542); background: rgba(255,255,255,.12); }
@media (max-width: 600px) { .cbtn.enhance-btn { display: none; } } /* на телефоне — через меню настроек */

/* выпадающие списки: тёмный фон и светлый текст у пунктов (иначе Windows рисует белый фон со светлым текстом) */
select { color-scheme: dark; background-color: var(--surface); color: var(--text); }
select option, select optgroup { background-color: var(--surface); color: var(--text); }
select option:checked { background-color: var(--raised); color: var(--accent, #F4C24F); }
select option:disabled { color: var(--muted, #8c849e); }

/* выбор плеера — под видео, не перекрывает кадр */
.src-tabs.below { display: flex; gap: 8px; margin: 10px 0 2px; }
.src-tabs.below[hidden] { display: none; }
.src-tabs.below .src-tab { background: rgba(16,14,26,.72); color: #fff; border: 2px solid rgba(255,255,255,.22); border-radius: 8px;
  padding: 7px 16px; font: 600 13px/1 inherit; cursor: pointer; backdrop-filter: blur(4px); }
.src-tabs.below .src-tab:hover { border-color: rgba(255,255,255,.5); }
.src-tabs.below .src-tab[aria-selected="true"] { background: #f5c542; border-color: #f5c542; color: #111; }
@media (max-width: 560px) { .src-tabs.below { gap: 6px; margin-top: 8px; } .src-tabs.below .src-tab { padding: 6px 10px; font-size: 12px; } }

/* подсказка над полосой скрывается атрибутом hidden (display:flex выше его перебивал) */
.seek .tip[hidden] { display: none; }

/* скрытый источник кадров для превью: не display:none, чтобы браузер декодировал кадры */
.player video.pv-src { position: absolute; inset: 0 auto auto 0; width: 192px; height: 108px; opacity: 0; pointer-events: none; z-index: -1; }
.seek .tip-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* кадр из серверной раскадровки */
.seek .tip-frame .sb-frame { width: 100%; height: 100%; background-repeat: no-repeat; background-color: #000; }
.seek .tip-frame .sb-frame[hidden], .seek .tip-frame img[hidden] { display: none; }

/* страница приложений: блок для телефона */
.tvapp-phone { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 6px; }
.tvapp-box > .tvapp-phone:first-child { border-top: 0; margin-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }

/* 24.10: история поиска */
.sh-wrap { position: relative; flex: 1 1 260px; min-width: 0; display: flex; }
.sh-wrap > input { flex: 1; min-width: 0; width: 100%; }
.sh-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,.45); padding: 6px; max-height: 360px; overflow-y: auto; }
.sh-pop[hidden] { display: none; }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 6px; font-size: 12px; color: var(--muted); }
.sh-clear { background: none; border: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.sh-item { display: flex; align-items: center; border-radius: var(--r-sm); }
.sh-item:hover, .sh-item:focus-within { background: var(--surface); }
.sh-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit;
  text-align: left; padding: 9px 8px; cursor: pointer; }
.sh-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-q svg, .sh-del svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
.sh-del { background: none; border: 0; padding: 8px; cursor: pointer; border-radius: var(--r-sm); }
.sh-del:hover svg { fill: var(--text); }
@media (max-width: 760px) { .filters > .sh-wrap { grid-column: 1 / -1; flex-basis: 100%; } }

/* Keep source controls aligned with video and respect hidden state. */
.src-tabs.below { position:static; width:100%; box-sizing:border-box; justify-content:flex-start; margin:12px 0; padding:0; }
.src-tabs.below[hidden],.next-soon[hidden] { display:none !important; }
.next-soon { position:absolute; right:16px; bottom:90px; z-index:35; max-width:calc(100% - 32px); box-shadow:0 3px 16px #0008; }
@media(max-width:600px){ .next-soon { right:10px; bottom:105px; font-size:13px; } }

/* Readable enhancement controls, scoped to enhancement panels. */
.pmenu[data-page^="enh"] { width:360px; max-width:calc(100% - 16px); max-height:min(70vh,560px); overflow-y:auto; overscroll-behavior:contain; }
.pmenu[data-page^="enh"] .pm-row { min-height:48px; }
.pmenu[data-page^="enh"] .pm-label { white-space:normal; overflow:visible; text-overflow:clip; line-height:1.35; }
.pmenu[data-page^="enh"] .pm-value { max-width:44%; white-space:normal; text-align:right; line-height:1.35; font-size:12px; }
.pmenu[data-page^="enh"] .pm-radio { display:grid; grid-template-columns:20px minmax(0,1fr); column-gap:10px; }
.pmenu[data-page^="enh"] .pm-radio .pm-dot { grid-row:1 / 3; align-self:center; }
.pmenu[data-page^="enh"] .pm-radio .pm-value { grid-column:2; max-width:none; text-align:left; }
.pm-section { padding:14px 12px 5px; color:#beb8cc; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-top:1px solid #ffffff12; margin-top:6px; }
.pm-note { padding:8px 12px 12px; color:#b4aec1; font-size:12px; line-height:1.5; }
.pmenu[data-page^="enh"] button:focus-visible { outline:2px solid #f4bd42; outline-offset:-3px; }

/* The floating player stays inside its reserved stage to preserve playback and scrolling. */
.player.docked { width:min(400px,calc(100vw - 32px)) !important; min-width:0 !important; height:auto !important; max-height:60vh; aspect-ratio:16/9; margin:0 !important; z-index:100; }
.player-stage.is-docked { width:100%; overflow-anchor:none; }
.src-tabs.below { align-self:stretch; margin-left:0; min-width:0; flex-wrap:wrap; }
.src-tabs.below .src-tab { min-height:40px; flex:0 0 auto; font:600 13px/1.2 var(--body); }
@media (min-width:1101px) {
  .watch.theater .src-tabs.below {
    width:min(100%,calc((100vh - 120px) * 16 / 9));
    max-width:100%; margin-inline:auto; align-self:auto;
  }
}
.player .dock-close,.player .dock-back { z-index:40; }
.system-pip, .system-pip body{margin:0!important;width:100%;height:100%;overflow:hidden;background:#000}.system-pip .player{position:relative!important;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;left:0!important;right:auto!important;bottom:auto!important;margin:0!important;border-radius:0!important}.system-pip .ambient,.system-pip .dock-close,.system-pip .dock-back{display:none!important}
.system-pip .player{min-height:0!important;max-width:none!important;block-size:100vh!important;height:100vh!important}.system-pip .player .controls{overflow-x:auto;max-width:100%}.system-pip .player .ambient{display:none!important}

/* Single quiet page-loading state, visually centered below site navigation. */
.page-loading { width:100%; min-height:260px; min-height:clamp(260px,calc(100dvh - 190px),800px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; padding:32px 16px; box-sizing:border-box; grid-column:1/-1; }
.page-loading-mark { width:72px; height:72px; position:relative; display:grid; place-items:center; }
.page-loading-track,.page-loading-orbit { position:absolute; inset:0; border:2px solid; border-radius:50%; box-sizing:border-box; }
.page-loading-track { border-color:rgba(246,195,72,.12); }
.page-loading-orbit { border-color:transparent; border-top-color:#f6c348; border-right-color:rgba(246,195,72,.55); animation:page-loading-turn 1.15s linear infinite; }
.page-loading-play { width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:14px solid #f6c348; margin-left:4px; opacity:.9; }
.page-loading-label { color:#bcb6c9; font-size:14px; line-height:1.5; }
@keyframes page-loading-turn { to { transform:rotate(360deg); } }
@media(max-width:600px) { .page-loading { min-height:calc(100dvh - 210px); gap:18px; }.page-loading-mark { width:60px;height:60px; } }
@media(prefers-reduced-motion:reduce) { .page-loading-orbit { animation:none; border-color:rgba(246,195,72,.2);border-top-color:#f6c348; } }

/* Keep account actions inside the viewport as theme controls take space. */
@media (max-width:760px) {
  .topbar { flex-wrap:wrap; }
  .topbar-right { max-width:100%; flex-wrap:wrap; gap:6px; }
}
@media (min-width:761px) and (max-width:1200px) {
  .topbar { flex-wrap:wrap; gap:10px 16px; }
  .topbar .nav { order:3; flex:1 0 100%; margin:0; padding:0; }
}

/* Other pages keep their overflow guard. On watch pages, the body clips at
   the viewport so the glow can fade beyond the centered main container. */
main { overflow-x:clip; }
main:has(.watch) { overflow:visible; }

/* автоматические субтитры */
.player .subs-overlay{position:absolute;left:50%;bottom:max(12%,72px);transform:translateX(-50%);max-width:86%;padding:.2em .6em;border-radius:6px;background:rgba(0,0,0,.72);color:#fff;text-align:center;font-weight:500;line-height:1.35;font-size:clamp(14px,2.1vw,26px);pointer-events:none;z-index:4;text-shadow:0 1px 2px #000;white-space:pre-line;overflow-wrap:anywhere}
.player .subs-overlay[hidden]{display:none}
.player .subs-overlay[data-size="s"]{font-size:clamp(12px,1.6vw,20px)}
.player .subs-overlay[data-size="l"]{font-size:clamp(17px,2.9vw,34px)}
.player .intro-skip{position:absolute;right:16px;bottom:max(16%,88px);z-index:6;padding:10px 16px;border-radius:10px;border:1px solid #ffffff3d;
  background:rgba(20,16,28,.82);color:#fff;font:600 14px/1.2 inherit;cursor:pointer;backdrop-filter:blur(6px)}
.player .intro-skip:hover{background:rgba(40,32,54,.92)}.player .intro-skip[hidden]{display:none}
.speech-hits{margin:8px 0 26px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.speech-hits[hidden]{display:none}.speech-hits .section-head{display:flex;gap:12px;align-items:baseline;margin-bottom:10px}
.speech-hits h2{font-size:18px;margin:0}.speech-item{display:flex;gap:14px;padding:10px 0;border-top:1px solid var(--line)}
.speech-item:first-of-type{border-top:0}.speech-cover{flex:0 0 132px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--raised)}
.speech-cover img{width:100%;height:100%;object-fit:cover;display:block}.speech-body{min-width:0;flex:1}
.speech-title{font-weight:600;text-decoration:none;color:var(--text)}.speech-body ul{list-style:none;margin:6px 0 4px;padding:0}
.speech-body li{display:flex;gap:10px;font-size:14px;line-height:1.5;color:var(--muted);padding:2px 0}
.speech-time{flex:0 0 auto;font-variant-numeric:tabular-nums;color:var(--accent);text-decoration:none}
.speech-body mark{background:#f4c24f33;color:var(--text);border-radius:3px;padding:0 2px}
@media(max-width:600px){.speech-cover{flex-basis:96px}.speech-body li{font-size:13px}}

/* «Смотреть вместе» */
.room-panel{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.room-panel[hidden]{display:none}.room-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:8px}
.room-code{font:600 13px/1 ui-monospace,monospace;letter-spacing:.12em;padding:5px 8px;border-radius:6px;background:var(--raised)}
.room-members{color:var(--muted);font-size:13px;flex:1;min-width:140px}
.room-chat{max-height:180px;overflow:auto;font-size:14px;line-height:1.5;margin-bottom:8px}.room-msg b{color:var(--accent)}
.room-form{display:flex;gap:8px}.room-form input{flex:1;min-width:0}
/* краткое содержание по речи */
.rec-summary{margin:10px 0 6px;padding:10px 14px;border-left:3px solid var(--accent);background:var(--surface);border-radius:8px}
.rec-summary p{margin:4px 0 0;line-height:1.55}.rec-summary-tag{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
/* статистика */
.stats-tiles{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.stats-sec p{margin:6px 0}
.stats-bars{display:flex;align-items:flex-end;gap:3px;height:120px;margin:12px 0 22px}
.stats-bars .bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}
.stats-bars .bar i{display:block;width:100%;min-height:2px;border-radius:4px 4px 0 0;background:var(--accent);opacity:.85}
.stats-bars .bar span{position:absolute;bottom:-18px;font-size:11px;color:var(--muted)}
.stats-bars.week{max-width:420px;gap:10px}
.stats-kinds .kind{display:grid;grid-template-columns:140px 1fr 150px;gap:10px;align-items:center;margin:6px 0;font-size:14px}
.kind-bar{height:10px;border-radius:6px;background:var(--raised);overflow:hidden}.kind-bar i{display:block;height:100%;background:var(--accent)}
.kind-val{color:var(--muted);font-size:13px}
@media(max-width:600px){.stats-kinds .kind{grid-template-columns:100px 1fr}.kind-val{grid-column:1/-1}}
.guest-login-label{font-weight:650;white-space:nowrap;padding:0 .35rem}
.guest-continue{margin-top:1rem;width:100%}
.guest-comments{padding:1rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
.guest-gate .gate-box{max-width:32rem}
@media(max-width:600px){
 .topbar-right{min-width:0;gap:.35rem}
 .guest-login-label{font-size:.9rem}
 .gate-box{max-width:100%;min-width:0;overflow-wrap:anywhere}
 .gate .btn{white-space:normal;min-height:44px}
 .modal{max-height:calc(100dvh - 24px);overflow-y:auto}
}

/* === reactions.css === */
/* Compact emoji buttons keep the existing counts and selection. */
.video-reactions-host[hidden] { display: none; }
.video-reactions { margin-top: 14px; margin-bottom: 4px; }
.video-reactions-list { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.video-reaction {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; height: 44px; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line, #ffffff20); border-radius: 22px;
  background: transparent; color: var(--muted, #9c95af);
  cursor: pointer; touch-action: manipulation; flex: 0 0 auto;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.video-reaction:hover { background: var(--raised, #ffffff10); color: var(--text, #eeeaf6); }
.video-reaction[aria-pressed="true"] { border-color: var(--accent, #f4c24f); background: var(--raised, #ffffff10); color: var(--accent, #f4c24f); box-shadow: none; }
.video-reaction:focus-visible { outline: 2px solid var(--focus, #8fb8ff); outline-offset: 3px; }
.video-reaction:disabled, .video-reaction[aria-disabled="true"] { cursor: wait; opacity: .75; }
.video-reaction-emoji { display: inline-flex; align-items: center; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 25px; line-height: 1; pointer-events: none; }
.video-reaction-count { font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.video-reactions-error { color: var(--warn, #f4a04f); font-size: 13px; margin: 8px 0 0; }
.video-reactions-preference { margin: 12px 0; }
.video-reactions-preference p { margin: 5px 0 0; }
@media (prefers-reduced-motion: reduce) { .video-reaction { transition: none; } }
html[data-motion="reduced"] .video-reaction { transition: none; }

/* === home-news.css === */
.home-news{margin:26px 0 32px}.home-news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:13px}.home-news-toggle{min-height:36px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer}.home-news-toggle:hover{background:#ffffff08;color:var(--accent)}.home-news-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:32px;margin-top:20px}.home-news-columns[hidden]{display:none}.home-news-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-bottom:14px}.home-news-heading h2{font-size:21px;letter-spacing:-.3px;margin:0}.home-news-channel{font-size:12px;color:var(--muted)}.home-news-channel:hover,.home-news-source:hover{color:var(--accent)}.home-news-list{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.home-news-post{padding:20px 23px}.home-news-post+.home-news-post{border-top:1px solid var(--line)}.home-news-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;flex-wrap:wrap}.home-news-tag{font-size:10px;color:#e4c472;background:#f4c24f0c;padding:3px 7px;border-radius:5px}.home-news-post h3{font-size:17px;line-height:1.4;margin:10px 0 7px;overflow-wrap:anywhere}.home-news-text{font-size:14px;color:var(--muted);margin:0 0 12px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.home-news-source{font-size:12px;color:#e3bd68}.home-release-list{border-top:1px solid var(--line)}.home-release{padding:18px 0;border-bottom:1px solid var(--line)}.home-release-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.home-release-version{display:inline-flex;gap:9px;align-items:center;font-size:13px;font-weight:650}.home-release-version:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent)}.home-release-meta time{font-size:12px;color:var(--muted)}.home-release h3{font-size:15px;margin:9px 0 8px}.home-release ul{padding-left:17px;color:var(--muted);font-size:13px;line-height:1.7;margin:0}.home-release li::marker{color:#82718e}.home-news-empty{padding:18px;color:var(--muted);font-size:13px}.home-news-empty p{margin:0 0 10px}@media(max-width:760px){.home-news-columns{grid-template-columns:1fr;gap:24px}.home-news-heading{flex-wrap:wrap;gap:4px}.home-news-post{padding:18px}.home-news-heading h2{font-size:20px}}@media(max-width:360px){.home-news-channel{font-size:11px}}
.home-news-img{display:block;width:100%;max-height:320px;object-fit:cover;border-radius:10px;margin:4px 0 12px;background:var(--line)}

/* === themes.css === */
/* Load after app, news, reactions and support styles. Media is never recoloured. */
:root[data-theme="dark"] { color-scheme:dark; --bg:#15121d; --surface:#1f1b2b; --raised:#2a2539; --line:#383149; --text:#eeeaf6; --muted:#a69eb9; --accent:#f4c24f; --accent-ink:#231a05; --focus:#8fb8ff; --glass:rgba(18,15,26,.94); --topbar:rgba(21,18,29,.95); --nav-bg:rgba(21,18,29,.98); --hover-wash:rgba(255,255,255,.05); --notice-error:#2a1720; --notice-warning:#2a2116; --notice-success:#15261f; }
:root[data-theme="light"] { color-scheme:light; --bg:#f7f5f0; --surface:#fffefa; --raised:#ebe6dc; --line:#cfc6b7; --text:#27231e; --muted:#675e51; --accent:#805300; --accent-ink:#fffdf7; --focus:#245ea6; --live:#b91836; --ok:#176441; --warn:#8a4c10; --twitch:#6941ae; --boosty:#aa431b; --glass:rgba(255,254,250,.97); --topbar:rgba(247,245,240,.96); --nav-bg:rgba(247,245,240,.99); --hover-wash:rgba(68,48,18,.06); --notice-error:#fbe5e7; --notice-warning:#fff0d6; --notice-success:#e2f2e8; }
:root[data-theme="coffee"] { color-scheme:dark; --bg:#201a17; --surface:#2b231e; --raised:#392e26; --line:#59483a; --text:#f3e8d8; --muted:#c1ad98; --accent:#e7b76c; --accent-ink:#281c0e; --focus:#c6c0ff; --live:#ff7b83; --ok:#83d4a3; --warn:#efb27b; --twitch:#c09bff; --boosty:#ffa271; --glass:rgba(43,35,30,.96); --topbar:rgba(32,26,23,.95); --nav-bg:rgba(32,26,23,.99); --hover-wash:rgba(255,233,204,.05); --notice-error:#382226; --notice-warning:#382c1c; --notice-success:#203026; }
html[data-theme] .topbar { background:var(--topbar); }
html[data-theme] .desc, html[data-theme] .page-loading-label { color:var(--muted); }
html[data-theme] .onair { background:var(--surface); }
html[data-theme] .notice.err { background:var(--notice-error); border-color:var(--live); }
html[data-theme] .notice.warn { background:var(--notice-warning); border-color:var(--warn); }
html[data-theme] .notice.ok { background:var(--notice-success); border-color:var(--ok); }
html[data-theme] .home-news-tag { color:var(--accent); background:var(--hover-wash); }
html[data-theme] .home-news-source, html[data-theme] .pl-list .pl-season { color:var(--accent); }
html[data-theme] .home-release li::marker { color:var(--muted); }
html[data-theme] .home-news-toggle:hover { background:var(--hover-wash); }
html[data-theme] .video-reaction[aria-pressed="true"] .video-reaction-count { color:var(--accent-ink); }
html[data-theme] .view-switch button[aria-pressed="true"] { color:var(--accent); border-color:var(--accent); }
/* Artwork overlays always use their own dark media palette. */
html[data-theme] .thumb .dur, html[data-theme] .pl-thumb .dur { color:#fff; background:rgba(10,8,15,.9); }
html[data-theme] .thumb .watched { color:#a3efc7; background:rgba(10,8,15,.9); }
html[data-theme] .view-switch button { background:var(--raised); color:var(--text); }
html[data-theme="light"] { --twitch-ink:#57318f; --boosty-ink:#8b3512; }
html[data-theme="light"] .plat.twitch { background:#eee4fa; }
html[data-theme="light"] .plat.boosty { background:#f9e1d5; }
html[data-theme] .support-dialog, html[data-theme] #site-support .support-launch { background:var(--surface); color:var(--text); border-color:var(--line); }
html[data-theme] .support-intro, html[data-theme] .support-meta, html[data-theme] .support-status { color:var(--muted); }
html[data-theme] .support-telegram { background:var(--raised); color:var(--text); border-color:var(--line); }
html[data-theme] .support-form textarea { background:var(--bg); color:var(--text); border-color:var(--line); }
html[data-theme] .support-submit { background:var(--accent); color:var(--accent-ink); }
html[data-theme] .support-login { color:var(--accent); }
html[data-theme="light"] .status.error, html[data-theme="light"] .status.dead, html[data-theme="light"] .status.failed, html[data-theme="light"] .status.not_member, html[data-theme="light"] .status.wrong { color:#a82a42; }
html[data-theme="light"] .c-toggle { color:#165e9d; }
html[data-theme="light"] .c-name.badge.owner, html[data-theme="light"] .c-like[aria-pressed="true"] { color:var(--accent); }
html[data-theme="light"] .hero-light img { opacity:.14; }
/* The playback surface and its dark overlay controls retain their media palette. */
html[data-theme] .player { color:#fff; }
html[data-theme] .player .menu { --text:#eeeaf6; --muted:#a69eb9; --surface:#1f1b2b; --raised:#2a2539; --line:#383149; --accent:#f4c24f; --accent-ink:#231a05; color:#eeeaf6; color-scheme:dark; }
.theme-select { width:auto; max-width:132px; min-height:36px; padding:6px 8px; border-radius:8px; background:var(--surface); color:var(--text); border:1px solid var(--line); font-size:12px; cursor:pointer; }
.theme-picker { display:flex; flex-wrap:wrap; gap:9px; }
.theme-choice { display:flex; align-items:center; gap:8px; padding:9px 12px; min-height:44px; border-radius:10px; border:1px solid var(--line); color:var(--muted); background:var(--surface); cursor:pointer; font:inherit; font-size:13px; }
.theme-choice:hover { background:var(--raised); color:var(--text); }
.theme-choice[aria-pressed="true"] { border-color:var(--accent); color:var(--text); box-shadow:inset 0 0 0 1px var(--accent); }
.theme-swatch { width:19px; height:19px; border:1px solid currentColor; border-radius:50%; display:inline-block; flex:none; }
.theme-swatch-light { background:linear-gradient(90deg,#fffefa 50%,#d5b873 50%); color:#85765c; }
.theme-swatch-dark { background:linear-gradient(90deg,#15121d 50%,#f4c24f 50%); color:#8a7b9e; }
.theme-swatch-coffee { background:linear-gradient(90deg,#201a17 50%,#e7b76c 50%); color:#a28a6c; }
@media(max-width:760px) { html[data-theme] .nav { background:var(--nav-bg); } .theme-select { max-width:106px; font-size:11px; } }

/* === room.css === */
/* Watch room panel: local to .room-panel, uses the site's dark surface tokens. */
.room-panel { padding: 18px; border: 1px solid var(--line, #30333f); border-radius: 16px; background: var(--surface, #161922); color: var(--text, #f1f3f8); display: grid; gap: 12px; min-width: 0; }
.room-panel[hidden], .room-panel [hidden] { display: none !important; }
.room-panel .room-head, .room-title, .room-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.room-panel .room-head { justify-content: space-between; }
.room-title b { font-size: 18px; }
.room-code { font-family: monospace; letter-spacing: .12em; color: #c2b8ff; }
.room-member-count, .room-connection, .room-presence, .room-last-action { font-size: 13px; color: var(--muted, #b1b6c7); }
.room-panel .room-button, .room-settings summary { min-width: 44px; min-height: 44px; padding: 10px 14px; cursor: pointer; }
.room-panel :is(button, input, summary, [tabindex]):focus-visible { outline: 2px solid #b7a5ff; outline-offset: 3px; }
.room-panel .room-button:disabled { opacity: .6; cursor: wait; }
.room-sync-status, .room-error, .room-last-action { margin: 0; overflow-wrap: anywhere; }
.room-error { padding: 10px 12px; border-left: 3px solid #e6b76c; background: #e6b76c12; color: #f1cd96; }
.room-panel[data-connection="reconnecting"] .room-connection { color: #f1cd96; }
.room-member-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.room-member { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line, #30333f); border-radius: 12px; flex: 1 1 240px; min-width: 0; }
.room-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; background: #38304f; display: grid; place-items: center; }
.room-member-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; flex: 1; }
.room-member-name { flex-basis: 100%; overflow-wrap: anywhere; font-weight: 600; }
.room-role { font-size: 12px; color: #d4c9ff; }
.room-grant { flex-shrink: 0; font-size: 12px; }
.room-settings { border-top: 1px solid var(--line, #30333f); }
.room-settings summary { width: fit-content; }
.room-chat { max-height: 300px; min-height: 96px; overflow: auto; overscroll-behavior: contain; overflow-anchor: none; border-top: 1px solid var(--line, #30333f); padding: 12px 2px; }
.room-msg { padding: 6px 0 10px; overflow-wrap: anywhere; }
.room-msg-meta { display: flex; align-items: baseline; gap: 12px; font-size: 13px; }
.room-msg-meta time { font-size: 11px; color: var(--muted, #b1b6c7); flex-shrink: 0; }
.room-msg p { white-space: pre-wrap; margin: 5px 0 0; }
.room-panel .room-form { display: flex; align-items: stretch; gap: 8px; }
.room-panel input { min-width: 0; min-height: 44px; flex: 1; padding: 10px 12px; border: 1px solid var(--line, #454958); border-radius: 9px; background: var(--bg, #10121a); color: inherit; }
@media (max-width: 520px) {
  .room-panel { padding: 12px; gap: 10px; }
  .room-title { width: 100%; }
  .room-actions { width: 100%; }
  .room-actions button { flex: 1; }
  .room-member { flex-basis: 100%; }
  .room-panel .room-form { flex-wrap: wrap; }
  .room-form input { flex-basis: 100%; }
  .room-form button { width: 100%; }
}
/* Device room: one fullscreen surface contains both video and conversation. */
.watch.with-room {grid-template-columns:minmax(0,1fr)}
.watch.with-room > .w-side {display:none}
.room-stage {display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,28vw,380px);grid-template-rows:auto minmax(0,1fr);gap:12px;background:var(--bg,#10121a);border-radius:16px;overflow:hidden;min-width:0}
.room-stage-tools {grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding:8px}
.room-stage .player-dock {min-width:0;align-self:center;margin:0}
.room-stage .room-panel {height:min(720px,calc(var(--room-height,100dvh) - 160px));min-height:300px;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;overflow:hidden}
.room-stage .room-chat {flex:1;min-height:70px;max-height:none}
.room-stage .room-head {display:block}
.room-stage .room-actions {margin-top:8px}
.room-stage .room-title b {font-size:16px}
.room-stage .room-form {flex-wrap:nowrap;flex-shrink:0}
.room-stage .room-form input {flex:1;min-width:0;width:0;font-size:16px}
.room-stage .room-form button {width:auto}
.room-people {max-height:35%;overflow:auto;flex-shrink:0}
.room-people summary {cursor:pointer;min-height:44px;padding:10px 0}
.room-stage.chat-hidden {grid-template-columns:minmax(0,1fr)}
.room-stage[data-layout="stack"] {grid-template-columns:minmax(0,1fr)}
.room-stage[data-layout="stack"] .player-dock {position:sticky;top:0;z-index:2}
.room-stage[data-layout="stack"] .room-panel {height:clamp(280px,52dvh,600px)}
.room-stage:fullscreen {width:100vw;height:100dvh;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box;gap:6px}
.room-stage:fullscreen .room-panel {height:100%;min-height:0}
.room-stage:fullscreen .player-dock {height:100%;display:grid;align-items:center}
.room-stage:fullscreen .vt-screen {max-height:100%;width:100%}
.room-stage button:focus-visible,.room-stage summary:focus-visible,.room-stage input:focus-visible {outline:3px solid #f4bf3a;outline-offset:2px}
@media (orientation:landscape) and (max-height:540px){
 .room-stage {gap:6px;grid-template-columns:minmax(0,1fr) 280px}
 .room-stage .room-panel {height:calc(var(--room-height,100dvh) - 70px);min-height:180px}
 .room-stage .room-title,.room-stage .room-connection,.room-stage .room-last-action {display:none}
 .room-stage .room-sync-status {font-size:11px}
 .room-stage .room-people {max-height:60px}
}

.room-control-menu {flex-shrink:0;max-height:45%;overflow:auto}
.room-control-menu summary {min-height:44px;padding:10px 0;cursor:pointer;box-sizing:border-box}
.room-play-actions {display:flex;flex-wrap:wrap;gap:6px}
.room-play-actions button {flex:1}
.room-pairing input {width:100%;box-sizing:border-box}
.room-pair-actions:empty {display:none}
.room-stage .room-connection,.room-stage .room-last-action {font-size:11px}
.room-stage .room-people {max-height:30%}
.room-stage .room-form {position:sticky;bottom:0;background:var(--surface,#161922)}

/* === support-widget.css === */
#site-support .support-launch{position:fixed;right:18px;bottom:20px;z-index:70;border:1px solid #ffffff24;border-radius:999px;padding:11px 16px;background:#26202f;color:#f7f3fc;font:600 13px/1.2 inherit;box-shadow:0 4px 20px #0006;cursor:pointer}
body:has(.player.docked) #site-support .support-launch{bottom:260px}
body:has(:fullscreen) #site-support .support-launch{display:none}
.support-dialog{width:min(480px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #ffffff24;border-radius:18px;background:#211b29;color:#f7f3fc;padding:22px;box-shadow:0 20px 100px #0009;font-family:inherit}
.support-dialog::backdrop{background:#08050dc2;backdrop-filter:blur(4px)}
.support-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.support-head h2{margin:0;font-size:20px;line-height:1.3}.support-close{background:transparent;border:0;color:inherit;font-size:28px;line-height:1;min-width:40px;min-height:40px;cursor:pointer}
.support-intro{font-size:14px;line-height:1.6;color:#c8bfd2;margin:10px 0 18px}.support-telegram,.support-submit{display:block;text-align:center;border-radius:10px;padding:12px 16px;min-height:44px;box-sizing:border-box;font:600 14px/1.4 inherit;text-decoration:none;cursor:pointer}.support-telegram{background:#30283d;border:1px solid #ffffff22;color:#fff;margin-bottom:20px}.support-form label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}.support-form textarea{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:125px;border-radius:10px;border:1px solid #655773;background:#17121f;color:#fff;padding:12px;font:14px/1.5 inherit}.support-meta{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:11px;line-height:1.4;color:#bcb1c8}.support-count{white-space:nowrap}.support-status{font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#ddd1eb;margin:12px 0}.support-status:empty{display:none}.support-submit{width:100%;border:0;background:#efbb44;color:#201707;margin-top:12px}.support-submit:disabled{opacity:.6;cursor:default}.support-login{color:#efc970;font-size:13px}.support-login[hidden]{display:none}.support-dialog button:focus-visible,.support-dialog a:focus-visible,#site-support .support-launch:focus-visible{outline:2px solid #efbb44;outline-offset:3px}.support-form textarea:focus-visible{outline:2px solid #efbb44;outline-offset:2px}
@media(max-width:600px){#site-support .support-launch{right:12px;bottom:90px;padding:10px 14px}.support-dialog{padding:16px;max-height:calc(100dvh - 24px)}.support-meta{flex-direction:column;gap:3px}.support-head h2{font-size:18px}}
/* компактная кнопка: круглая иконка, подпись раскрывается при наведении или фокусе */
#site-support .support-launch{display:flex;align-items:center;width:max-content;max-width:44px;height:44px;padding:0;overflow:hidden;white-space:nowrap;opacity:.82;transition:max-width .25s ease,opacity .2s ease,background .2s}
#site-support .support-launch .sl-icon{flex:0 0 42px;text-align:center;font-size:18px;font-weight:700;color:#efbb44}
#site-support .support-launch .sl-text{padding-right:16px;opacity:0;transition:opacity .2s ease}
#site-support .support-launch:focus-visible{max-width:240px;opacity:1}
#site-support .support-launch:focus-visible .sl-text{opacity:1}
@media(hover:hover){#site-support .support-launch:hover{max-width:240px;opacity:1;background:#2f2739}#site-support .support-launch:hover .sl-text{opacity:1}}
@media(max-width:600px){#site-support .support-launch{right:12px;bottom:calc(16px + env(safe-area-inset-bottom));padding:0}}
.dl-parts{display:inline-flex;gap:6px;flex-wrap:wrap}.dl-parts[hidden]{display:none}

/* === creator-support.css === */
.cs-ticker,.cs-page,.cs-admin-page{color:var(--text)}
.cs-ticker{margin:1.25rem 0 1.75rem;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.cs-ticker-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px 0}
.cs-ticker-heading{display:flex;align-items:center;gap:10px;min-width:0}.cs-ticker-heading h2{margin:0;font-size:15px;font-weight:700;line-height:1.3}
.cs-ticker-mark{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent)}.cs-ticker-mark svg{width:17px;height:17px;fill:currentColor}
.cs-ticker-actions{display:flex;align-items:center;gap:8px;flex:none}
.cs-support-link,.cs-donate-link{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:9px 16px;border:1px solid transparent;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-size:14px;font-weight:700;text-decoration:none}.cs-support-link:hover,.cs-donate-link:hover{filter:brightness(1.06)}
.cs-support-link:focus-visible,.cs-donate-link:focus-visible,.cs-pause:focus-visible,.cs-admin-button:focus-visible,.cs-admin-token:focus-visible{outline:3px solid var(--focus,var(--accent));outline-offset:3px}
.cs-pause,.cs-admin-button{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);font:inherit;cursor:pointer}.cs-pause{width:44px;padding:0;background:transparent}.cs-pause:hover:not(:disabled){background:var(--raised)}.cs-pause svg{width:15px;height:15px;fill:currentColor}.cs-pause:disabled,.cs-admin-button:disabled{cursor:default;opacity:.45}
.cs-ticker-viewport{overflow:hidden;margin:12px 0 0;padding:0 0 16px;mask-image:linear-gradient(to right,transparent,#000 18px,#000 calc(100% - 18px),transparent)}
.cs-ticker-rail{display:flex;width:max-content;animation:cs-ticker-scroll var(--ticker-duration,40s) linear infinite;will-change:transform}
.cs-ticker-track{display:flex;flex:none;align-items:center;gap:12px;width:max-content;padding-right:12px}
.cs-donor{display:flex;flex:none;align-items:center;gap:11px;min-width:174px;max-width:270px;padding:11px 16px 11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.cs-donor-avatar{--donor-color:var(--accent);display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:color-mix(in srgb,var(--donor-color) 12%,var(--surface));color:color-mix(in srgb,var(--donor-color) 70%,var(--text));font-size:12px;font-weight:700}.cs-donor-tone-1 .cs-donor-avatar{--donor-color:#a798d5}.cs-donor-tone-2 .cs-donor-avatar{--donor-color:#7bbcb2}.cs-donor-tone-3 .cs-donor-avatar{--donor-color:#b8a9cb}
.cs-donor-info{display:grid;gap:3px;min-width:0}.cs-donor-name{display:block;max-width:205px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.3;font-weight:600}.cs-donor-amount{color:var(--accent);font-size:16px;line-height:1.25;letter-spacing:-.02em;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-ticker-empty{margin:0;padding:9px 20px;color:var(--muted);font-size:14px;line-height:1.5}
.cs-ticker.is-paused .cs-ticker-rail{animation-play-state:paused}.cs-ticker.is-static .cs-ticker-rail{width:100%;animation:none;will-change:auto}.cs-ticker.is-static .cs-ticker-track{width:100%;flex-wrap:wrap;padding:0 18px;box-sizing:border-box}.cs-ticker.is-static .cs-ticker-clone,.cs-ticker.is-static [data-repeat]{display:none}.cs-ticker.is-static .cs-ticker-viewport{mask-image:none}.cs-ticker.is-static .cs-ticker-empty{padding:4px 0}
@keyframes cs-ticker-scroll{to{transform:translateX(-50%)}}

.cs-page,
.cs-admin-page {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0 3rem;
}

.cs-page-head {
  margin-bottom: 1.5rem;
}

.cs-page-head h1,
.cs-admin-page > h1 {
  margin: .25rem 0 .6rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.12;
}

.cs-page-head > p:last-child,
.cs-admin-intro,
.cs-provider-caption,
.cs-admin-help {
  color: var(--muted);
  line-height: 1.6;
}

.cs-eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.cs-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cs-provider-card,
.cs-admin-form {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.cs-provider-card h2,
.cs-admin-form h2 {
  margin: 0 0 .3rem;
}

.cs-provider-caption {
  margin: 0 0 .8rem;
}

.cs-provider-address {
  margin: .7rem 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .9rem;
}

.cs-qr {
  display: block;
  width: min(100%, 240px);
  height: auto;
  aspect-ratio: 1;
  margin: 1rem auto 0;
  border-radius: .5rem;
  background: #fff;
}

.cs-recent {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.cs-recent h2 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.cs-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cs-recent-list .cs-donor { flex: 1 1 180px; }

.cs-admin-page > h1 {
  margin-bottom: .5rem;
}

.cs-admin-intro {
  margin: 0 0 1rem;
}

.cs-admin-form {
  display: grid;
  gap: .8rem;
}

.cs-admin-field {
  display: grid;
  gap: .45rem;
  font-weight: 650;
}

.cs-admin-token {
  width: 100%;
  min-height: 46px;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--raised);
  color: var(--text);
  font: inherit;
}

.cs-admin-help {
  margin: -.35rem 0 0;
  font-size: .9rem;
}

.cs-admin-check {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  cursor: pointer;
}

.cs-admin-check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent);
}

.cs-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.cs-admin-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.cs-admin-danger {
  border-color: var(--line);
}

.cs-admin-status,
.cs-admin-feedback {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cs-admin-status {
  color: var(--muted);
}

.cs-admin-feedback {
  min-height: 1.5em;
}

@media(prefers-reduced-motion:reduce){.cs-ticker-rail{animation:none;will-change:auto}.cs-ticker-clone,[data-repeat]{display:none}}
@media(max-width:600px){
  .cs-page,.cs-admin-page{width:auto;padding:1rem .75rem 2rem}
  .cs-ticker-top{flex-wrap:wrap;gap:8px;padding:12px 12px 0}.cs-ticker-heading{gap:8px}.cs-ticker-heading h2{font-size:14px}.cs-ticker-actions{margin-left:auto;gap:6px}.cs-support-link{padding:8px 12px;font-size:13px}.cs-ticker-viewport{padding-bottom:12px}.cs-ticker-track{gap:8px;padding-right:8px}.cs-donor{min-width:164px;padding:10px 12px;gap:9px}.cs-donor-name{max-width:170px}.cs-donor-amount{font-size:15px}
  .cs-provider-grid{grid-template-columns:minmax(0,1fr)}.cs-admin-actions>*{flex:1 1 100%}
}

/* Server goal, selected design C. Each name appears once in a manually scrolled list. */
.cs-goal-host{margin:20px 0 28px}
.cs-goal{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:center;gap:26px;padding:20px 22px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}
.cs-goal-target{display:flex;align-items:center;gap:16px;padding-right:22px;border-right:1px solid var(--line)}
.cs-goal-ring{position:relative;flex-shrink:0;width:66px;height:66px}
.cs-goal-ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:4}
.cs-goal-ring-back{stroke:var(--line)}
.cs-goal-ring-fill{stroke:var(--accent);stroke-dasharray:0 254.47;stroke-linecap:round}
.cs-goal-percent{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;font-weight:650;color:var(--text);font-variant-numeric:tabular-nums}
.cs-goal .cs-goal-title{margin:0 0 7px;font-size:15px;font-weight:600;letter-spacing:-.015em;line-height:1.3}
.cs-goal-amount{display:flex;align-items:baseline;gap:5px;font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.cs-goal-current{font-size:16px;color:var(--text);font-weight:650}
.cs-goal-period{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.cs-goal-donate{display:flex;align-items:center;gap:7px;width:max-content;min-height:34px;margin-top:13px;padding:5px 12px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:8px;background:transparent;color:var(--accent);text-decoration:none;font-size:12px;font-weight:600}
.cs-goal-donate:hover{background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.cs-goal-donate svg{width:14px;height:14px;fill:currentColor}
.cs-goal-donate:focus-visible,.cs-goal-all:focus-visible,.cs-goal-arrow:focus-visible,.cs-goal-close:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:3px}
.cs-goal-supporters{min-width:0}
.cs-goal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;color:var(--muted);font-size:12px}
.cs-goal-actions,.cs-goal-arrows{display:flex;align-items:center;gap:14px}
.cs-goal-arrows{gap:6px}
.cs-goal-all{min-height:30px;border:0;padding:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer;white-space:nowrap}
.cs-goal-all:hover{color:var(--text)}
.cs-goal-all:disabled{cursor:default;opacity:.5}
.cs-goal-arrow{display:grid;place-items:center;flex-shrink:0;min-width:30px;min-height:30px;padding:5px;border:1px solid var(--line);border-radius:50%;background:var(--raised);color:var(--text);cursor:pointer}
.cs-goal-arrow svg{width:14px;height:14px;fill:currentColor}
.cs-goal-arrow:disabled{opacity:.35;cursor:default}
.cs-goal-donors{display:flex;align-items:stretch;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px;margin:-3px;scroll-padding:3px}
.cs-goal-donors::-webkit-scrollbar{display:none}
.cs-goal .cs-donor{flex:0 0 auto;gap:10px;min-width:178px;max-width:240px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--raised);scroll-snap-align:start}
.cs-goal .cs-donor-avatar{width:33px;height:33px;border-radius:50%;font-size:11px}
.cs-goal .cs-donor-name{font-size:12px;font-weight:500;max-width:154px}
.cs-goal .cs-donor-amount{font-size:13px;letter-spacing:0;font-weight:600}
.cs-goal-empty{padding:8px 0;margin:0;color:var(--muted);font-size:13px}
.cs-goal-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text)}
.cs-goal-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}
.cs-goal-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.cs-goal-dialog .cs-goal-dialog-head h2{margin:0;font-size:20px;font-weight:600}
.cs-goal-close{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--text);cursor:pointer}
.cs-goal-close svg{width:18px;height:18px;fill:currentColor}
.cs-goal-all-list{display:flex;flex-direction:column;gap:8px}
.cs-goal .cs-goal-dialog .cs-donor{min-width:0;max-width:100%;width:100%;padding:12px}
.cs-goal .cs-goal-dialog .cs-donor-info{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}
.cs-goal .cs-goal-dialog .cs-donor-name{max-width:none;white-space:normal;overflow-wrap:anywhere;font-size:14px}
.cs-goal .cs-goal-dialog .cs-donor-amount{white-space:nowrap;font-size:14px}
@media(max-width:1020px) and (min-width:761px){.cs-goal{grid-template-columns:290px minmax(0,1fr);gap:20px}.cs-goal-target{padding-right:18px;gap:12px}}
@media(max-width:760px){
 .cs-goal-host{margin:16px 0 24px}
 .cs-goal{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:16px;border-radius:10px}
 .cs-goal-target{gap:14px;padding:0 0 16px;border-right:0;border-bottom:1px solid var(--line)}
 .cs-goal-ring{width:62px;height:62px}
 .cs-goal-copy{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;flex:1}
 .cs-goal .cs-goal-title{flex-basis:100%;font-size:14px;margin:0}
 .cs-goal-amount{flex:1;font-size:11px}
 .cs-goal-current{font-size:14px}
 .cs-goal-donate{margin:0;min-height:32px;padding:5px 9px;font-size:11px}
 .cs-goal-donate svg{display:none}
 .cs-goal-period{order:3;flex-basis:100%;margin:0}
 .cs-goal-heading{font-size:11px;margin-bottom:9px;gap:8px}
 .cs-goal-arrows{display:none}
 .cs-goal .cs-donor{min-width:161px;max-width:220px;padding:9px 10px;gap:8px}
 .cs-goal .cs-donor-avatar{width:28px;height:28px;font-size:10px}
 .cs-goal .cs-donor-name{font-size:11px;max-width:125px}
 .cs-goal .cs-donor-amount{font-size:12px}
 .cs-goal-dialog{padding:18px}
}

/* === tierlist.css === */
.tierlist-page,.tierlist-admin{width:min(100%,1200px);margin:0 auto;padding:clamp(16px,3vw,32px);color:var(--text);box-sizing:border-box}
.tierlist-heading{margin:0 0 24px}.tierlist-heading h1{margin:4px 0 8px;font-size:clamp(28px,5vw,42px);line-height:1.15}.tierlist-kicker{margin:0;color:var(--muted);font-size:16px}.tierlist-updated{margin:0;font-size:14px}
.tierlist-rows{display:grid;gap:14px}.tierlist-row{--tier-color:#ef6d78;display:grid;grid-template-columns:110px minmax(0,1fr);align-items:stretch;overflow:hidden;border:1px solid color-mix(in srgb,var(--tier-color) 48%,var(--line));border-radius:16px;background:var(--surface);min-width:0}.tierlist-row-s{--tier-color:#ed6871}.tierlist-row-a{--tier-color:#ef984d}.tierlist-row-b{--tier-color:#e5bd55}.tierlist-row-c{--tier-color:#e7d34f}.tierlist-row-evangelion{--tier-color:#70b678}
.tierlist-rank{display:grid;place-items:center;margin:0;padding:12px;background:color-mix(in srgb,var(--tier-color) 24%,var(--surface));border-inline-end:1px solid color-mix(in srgb,var(--tier-color) 42%,var(--line));font-size:clamp(20px,3vw,30px);line-height:1.2;text-align:center;overflow-wrap:anywhere}.tierlist-items{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px;padding:16px;min-width:0}.tierlist-card{width:clamp(104px,14vw,152px);min-width:0;margin:0}.tierlist-poster{position:relative;aspect-ratio:2/3;overflow:hidden;border-radius:10px;background:var(--raised);border:1px solid var(--line)}.tierlist-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tierlist-cover-placeholder{display:grid;place-items:center;width:100%;height:100%;padding:8px;box-sizing:border-box;text-align:center;color:var(--muted);font-size:13px}.tierlist-cover-missing img{display:none}.tierlist-title{margin:8px 0 0;font-size:14px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}.tierlist-empty{align-self:center;margin:16px}
.tierlist-admin{padding:16px 0}.tierlist-admin-heading h2{margin:0 0 4px}.tierlist-admin-heading p{margin:0}.tierlist-admin-status{margin:16px 0;padding:10px 12px;border-radius:10px;background:var(--surface);color:var(--muted)}.tierlist-admin-status .btn{margin:8px 4px 0 0}.tierlist-admin-rows{display:grid;gap:16px}.tierlist-admin .tierlist-row{display:block;padding:14px}.tierlist-admin .tierlist-rank{display:block;width:max-content;max-width:100%;padding:7px 12px;margin:0 0 12px;border:0;border-radius:8px}.tierlist-admin-items{display:grid;gap:10px}.tierlist-admin-item{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,1.2fr) minmax(130px,.6fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.tierlist-admin-field{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:13px}.tierlist-admin-field input,.tierlist-admin-field select{width:100%;min-width:0;min-height:44px;padding:9px 10px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--text);font:inherit;font-size:14px}.tierlist-admin-controls{display:flex;flex-wrap:wrap;gap:6px}.tierlist-admin button{min-height:44px}.tierlist-small-action{padding:8px 10px}.tierlist-add{margin-top:10px}.tierlist-admin .danger{color:#d54b56}.tierlist-admin-actions{position:sticky;bottom:8px;display:flex;justify-content:flex-end;padding:10px 0;margin-top:12px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px)}.tierlist-save{min-width:160px}
@media(max-width:700px){.tierlist-row{grid-template-columns:76px minmax(0,1fr);border-radius:12px}.tierlist-items{gap:12px;padding:12px}.tierlist-card{width:clamp(92px,27vw,132px)}.tierlist-admin-item{grid-template-columns:1fr 1fr}.tierlist-admin-field:nth-child(2){grid-column:1/-1}.tierlist-admin-controls{grid-column:1/-1}.tierlist-admin-controls .btn{flex:1}.tierlist-page{padding:18px 12px}}
@media(max-width:360px){.tierlist-row{grid-template-columns:64px minmax(0,1fr)}.tierlist-items{gap:10px;padding:10px}.tierlist-card{width:calc((100% - 10px)/2)}.tierlist-rank{font-size:18px}.tierlist-admin-item{grid-template-columns:minmax(0,1fr)}}
.tierlist-admin-item{grid-template-columns:72px minmax(130px,1fr) minmax(180px,1.2fr) minmax(100px,.6fr) auto}.tierlist-admin-preview{grid-row:1/3;align-self:start;width:72px}.tierlist-admin-preview .tierlist-poster{width:100%}.tierlist-admin-preview .tierlist-cover-placeholder{font-size:11px}.tierlist-upload-field{grid-column:2/-1}.tierlist-upload-field input[type=file]{padding:7px;font-size:13px}.tierlist-upload-field input[type=file]::file-selector-button{margin-inline-end:10px;padding:6px 10px;border:0;border-radius:6px;background:var(--surface);color:var(--text);cursor:pointer}
@media(max-width:700px){.tierlist-admin-item{grid-template-columns:64px repeat(2,minmax(0,1fr))}.tierlist-admin-preview{grid-row:1/5;width:64px}.tierlist-admin-field:nth-child(2){grid-column:auto}.tierlist-admin-controls,.tierlist-upload-field{grid-column:2/-1}}
@media(max-width:360px){.tierlist-admin-item{grid-template-columns:minmax(0,1fr)}.tierlist-admin-preview{grid-row:auto;width:72px}.tierlist-admin-controls,.tierlist-upload-field{grid-column:auto}}

/* Owner's visual sorting board: the editing forms stay below it. */
.tierlist-board-heading h3,.tierlist-details-heading{margin:24px 0 6px;font-size:18px}.tierlist-board-heading p{margin:0 0 14px;line-height:1.5;font-size:14px}.tierlist-details-heading{margin-top:32px}
.tierlist-board{display:grid;gap:10px}.tierlist-board-row{--tier-color:#ef6d78;display:grid;grid-template-columns:88px minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid color-mix(in srgb,var(--tier-color) 48%,var(--line));border-radius:14px;background:var(--surface);transition:border-color .15s,background-color .15s}.tierlist-board-row.tierlist-row-s{--tier-color:#ed6871}.tierlist-board-row.tierlist-row-a{--tier-color:#ef984d}.tierlist-board-row.tierlist-row-b{--tier-color:#e5bd55}.tierlist-board-row.tierlist-row-c{--tier-color:#e7d34f}.tierlist-board-row.tierlist-row-evangelion{--tier-color:#70b678}.tierlist-board-row.is-drop-target{border-color:var(--tier-color);background:color-mix(in srgb,var(--tier-color) 12%,var(--surface))}
.tierlist-board-rank{display:grid;place-items:center;margin:0;padding:8px;background:color-mix(in srgb,var(--tier-color) 24%,var(--surface));border-inline-end:1px solid color-mix(in srgb,var(--tier-color) 42%,var(--line));font-size:20px;text-align:center;overflow-wrap:anywhere}.tierlist-board-zone{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;min-width:0;min-height:110px;padding:10px;box-sizing:border-box}.tierlist-board-empty{align-self:center;color:var(--muted);font-size:13px;pointer-events:none}
.tierlist-admin .tierlist-board-tile{position:relative;display:grid;gap:5px;align-content:start;width:94px;min-height:0;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);text-align:left;font:inherit;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.tierlist-board-tile:focus-visible{outline:3px solid var(--tier-color);outline-offset:2px}.tierlist-board-tile .tierlist-poster{width:100%;aspect-ratio:3/4}.tierlist-board-tile .tierlist-cover-placeholder{font-size:11px}.tierlist-board-tile img{pointer-events:none}.tierlist-board-title{font-size:12px;line-height:1.25;font-weight:600;overflow-wrap:anywhere}.tierlist-board-tile.is-drag-source{opacity:.35;cursor:grabbing}.tierlist-board-tile.drop-before::before,.tierlist-board-tile.drop-after::after{content:'';position:absolute;top:0;bottom:0;width:4px;border-radius:4px;background:var(--tier-color)}.tierlist-board-tile.drop-before::before{left:-8px}.tierlist-board-tile.drop-after::after{right:-8px}
.tierlist-drag-ghost{position:fixed!important;z-index:99999;width:94px;min-height:0;padding:5px;display:grid;gap:5px;align-content:start;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);text-align:left;font:inherit;pointer-events:none;opacity:.94;box-shadow:0 8px 24px #0007;transform:rotate(2deg)}.tierlist-drag-ghost .tierlist-poster{width:100%;aspect-ratio:3/4}.tierlist-drag-ghost .tierlist-cover-placeholder{font-size:11px}
@media(max-width:700px){.tierlist-board-row{grid-template-columns:64px minmax(0,1fr)}.tierlist-board-rank{font-size:16px}.tierlist-admin .tierlist-board-tile,.tierlist-drag-ghost{width:78px}.tierlist-board-zone{gap:8px;min-height:100px;padding:8px}}
@media(prefers-reduced-motion:reduce){.tierlist-board-row{transition:none}.tierlist-drag-ghost{transform:none}}

.tierlist-edit-link{display:inline-flex;margin-top:14px}

.tierlist-sort-only{padding:clamp(16px,3vw,32px)}.tierlist-sort-only .tierlist-admin-heading h1{font-size:clamp(28px,5vw,42px);margin:0 0 10px}.tierlist-sort-only .tierlist-admin-heading p{line-height:1.5}.tierlist-sort-only .tierlist-board-row{grid-template-columns:110px minmax(0,1fr)}.tierlist-sort-only .tierlist-board-tile{width:clamp(104px,14vw,152px);padding:6px}.tierlist-sort-only .tierlist-board-tile .tierlist-poster{aspect-ratio:2/3}.tierlist-sort-only .tierlist-board-title{font-size:14px;line-height:1.35}.tierlist-sort-only .tierlist-board-rank{font-size:clamp(20px,3vw,30px)}.tierlist-sort-only .tierlist-admin-status{font-size:14px;padding:8px 12px}.tierlist-sort-only .tierlist-board-zone{min-height:130px}
@media(max-width:700px){.tierlist-sort-only{padding:18px 12px}.tierlist-sort-only .tierlist-board-row{grid-template-columns:64px minmax(0,1fr)}.tierlist-sort-only .tierlist-board-tile{width:104px}.tierlist-sort-only .tierlist-board-rank{font-size:17px}}

/* === viewer-refresh.css === */
/* Viewer-first layout; preserve user-selected light theme. */
:root:not([data-theme]), :root[data-theme=dark] {
  --bg:#0f0f0f; --surface:#212121; --raised:#303030; --line:#383838;
  --text:#f1f1f1; --muted:#aaa; --maxw:1680px;
}
.topbar { background:var(--bg); gap:20px; }
.topbar .logo {align-items:center;width:180px;max-width:40vw;}
.topbar .logo img {display:block;width:100%;height:auto;}
@media(max-width:760px) {.topbar .logo {width:150px;}}
:root[data-theme=dark] .topbar {background:#0f0f0f;}
.hero {grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:28px;padding:20px 0 28px;}
.hero-title {font-size:clamp(24px,2.6vw,38px);line-height:1.16;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.hero-light {display:block;}
.hero-screen .thumb {box-shadow:none;border-radius:12px;}
#nav-profile:has(.guest-login-label) {width:auto;min-width:76px;padding:8px 14px;border-radius:20px;white-space:nowrap;text-decoration:none;font-size:15px;}
.nav a { border-radius:20px; }
.grid { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:28px 20px; }
.account { align-items:start; }
.acc-card { box-shadow:none; }
.acc-nav a { min-height:44px; }
.acc-body { min-width:0; }
.acc-body .panel { box-shadow:none; }
.acc-name h1 { overflow-wrap:anywhere; }
.export-selection { position:sticky;top:64px;z-index:12;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px; }
.export-selection[hidden] {display:none;}
.selecting .card {outline:2px solid var(--line);outline-offset:4px;}
.selecting .card.selected {outline:3px solid var(--accent);background:var(--surface);}
.export-list {display:grid;gap:16px;margin-top:20px;}
.export-item {padding:14px 0;border-top:1px solid var(--line);}
.export-item .btn {margin:4px 8px 4px 0;}
@media(max-width:760px) {
  .hero {grid-template-columns:1fr;gap:14px;padding-top:4px;}
  .hero-title {font-size:24px;-webkit-line-clamp:2;}
  .topbar .nav {display:flex;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:4px 6px calc(4px + env(safe-area-inset-bottom));background:var(--bg);max-width:100vw;}
  .nav a {flex:0 0 auto;min-width:60px;}
  #theme-control {display:none;}
  .topbar { gap:8px; }
  .topbar-right { gap:4px; }
  .account { display:block; }
  .acc-side { position:static; width:100%; }
  .acc-card { padding:16px; margin-bottom:12px; }
  .acc-nav { display:flex; overflow-x:auto; gap:6px; padding:4px 0 12px; max-width:100%; }
  .acc-nav a { flex:0 0 auto; border-radius:20px; white-space:nowrap; }
  .acc-nav svg { display:none; }
  .acc-body { margin-top:16px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px; }
}
@media(max-width:520px) {
  .grid { grid-template-columns:minmax(0,1fr); }
  .page-head { align-items:start; }
  .acc-id { min-width:0; }
  .acc-card .big-av { width:48px; height:48px; flex-shrink:0; }
  .acc-name h1 { font-size:22px; }
  .acc-body .panel { padding:16px; }
}

/* Cover colours carry the atmosphere; text keeps its original contrast. */
.card {--cover-rgb:100 105 120;position:relative;isolation:isolate;padding:10px;
  border-radius:22px;background:linear-gradient(155deg,rgb(var(--cover-rgb)/.24),rgb(var(--cover-rgb)/.08));
  box-shadow:0 6px 24px rgb(var(--cover-rgb)/.12);transition:background .18s,box-shadow .18s;}
.card:hover,.card:focus-visible {background:linear-gradient(155deg,rgb(var(--cover-rgb)/.38),rgb(var(--cover-rgb)/.16));
  box-shadow:0 8px 32px rgb(var(--cover-rgb)/.25);}
.card:focus-visible {outline:2px solid var(--accent);outline-offset:3px;}
.card .thumb,.hero-screen .thumb {border-radius:16px;}
.card > div:not(.thumb) {padding:0 3px 4px;}
.hero {--cover-rgb:100 105 120;}
.hero-light {inset:-36px calc(var(--gutter) * -1) -80px;}
.hero-light img {opacity:.65;filter:blur(60px) saturate(1.45);animation:none;}
.hero-screen .thumb {box-shadow:0 18px 65px rgb(var(--cover-rgb)/.32);}
.panel,.acc-card,.onair,.export-selection {border-radius:22px;}
.btn {border-radius:16px;}
:root[data-theme=light] .card {background:linear-gradient(155deg,rgb(var(--cover-rgb)/.16),rgb(var(--cover-rgb)/.05));}
:root[data-theme=light] .hero-light img {opacity:.3;}
@media(max-width:760px) {
  .card {padding:8px;border-radius:20px;}
  .hero-light {inset:-12px -16px -45px;}
  .hero-light img {filter:blur(36px) saturate(1.35);opacity:.5;}
}
@media(prefers-reduced-motion:reduce) {.card {transition:none;}}

.profile-shortcuts {display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:16px 0 24px;}
.profile-theme {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.android-page {max-width:1200px;margin:auto;}
.android-intro {padding:48px 0 36px;max-width:800px;}
.android-intro h1 {font-size:clamp(30px,5vw,60px);line-height:1.08;letter-spacing:-.035em;margin:12px 0 20px;}
.android-intro p {max-width:650px;font-size:18px;line-height:1.6;}
.android-intro .row {margin-top:24px;}
.app-device {display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding:36px;margin:24px 0 48px;border-radius:30px;background:var(--surface);scroll-margin-top:90px;animation:app-enter .45s ease-out both;}
.app-preview {display:flex;align-items:center;justify-content:center;min-width:0;border-radius:24px;padding:24px;background:radial-gradient(ellipse at center,#7b482d66,transparent 72%);}
.app-preview.phone img {width:100%;max-width:100%;max-height:520px;object-fit:contain;border-radius:24px;box-shadow:0 18px 48px #0005;}
.app-preview.tv img {width:100%;border-radius:16px;box-shadow:0 18px 48px #0005;}
.app-device-copy {min-width:0;}.app-device-copy h2 {font-size:30px;margin-bottom:12px;}
.app-device-copy p {line-height:1.65;}.app-download {display:flex;align-items:flex-start;flex-direction:column;gap:10px;margin:24px 0;}
.app-steps {padding-left:22px;line-height:1.65;}.app-steps li {padding:6px 0 6px 6px;}
.app-browser {padding:32px;border-radius:24px;background:var(--surface);margin-bottom:40px;}
.app-browser .btn {margin-top:16px;}
@keyframes app-enter {from {opacity:0;transform:translateY(12px);}to {opacity:1;transform:none;}}
html[data-motion=full] {scroll-behavior:smooth;}
html[data-motion=reduced] .app-device,html[data-motion=reduced] .card {animation:none;transition:none;}
@media(max-width:760px) {.android-intro {padding:24px 0 12px;}.app-device {grid-template-columns:1fr;padding:20px;gap:24px;margin-bottom:24px;}.app-preview {padding:12px;}.app-device-copy h2 {font-size:26px;}.app-preview.phone img {max-height:420px;}}
@media(prefers-reduced-motion:reduce) {.app-device {animation:none;}html[data-motion=full] {scroll-behavior:auto;}}
@media(max-width:640px) {
  .topbar .logo {width:116px;}
  .topbar .tv-link span {display:inline;}
  .topbar .tv-link svg {display:none;}
  .topbar .tv-link {padding:8px 10px;font-size:13px;}
}

/* === viewing-ux.css === */
.mobile-navigation {display:none}
.home-continue {margin-top:0}
.resume-card .hero-title {font-size:clamp(22px,3vw,38px)}
.series-season-links {display:flex;gap:8px;overflow:auto;padding:8px 0;scrollbar-width:thin}
.series-season-links a {white-space:nowrap;min-height:44px}
.viewing-source {font-size:13px;color:var(--muted);margin:6px 0}
.search-result-groups {margin:16px 0}
@media(max-width:760px){
 body {padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 .mobile-navigation {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:80;background:var(--bg,#15121d);border-top:1px solid var(--line,#35323b);padding:4px 8px calc(4px + env(safe-area-inset-bottom));gap:4px}
 .mobile-navigation a {min-height:56px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:var(--muted,#aaa);font-size:11px;text-decoration:none;border-radius:12px}
 .mobile-navigation svg {width:22px;height:22px;fill:currentColor}
 .mobile-navigation a[aria-current=page] {color:var(--accent,#f4bf3a);background:color-mix(in srgb,var(--accent,#f4bf3a) 10%,transparent)}
 .mobile-navigation a:focus-visible {outline:3px solid var(--accent,#f4bf3a);outline-offset:-3px}
 body.keyboard-open .mobile-navigation,body:has(:fullscreen) .mobile-navigation {display:none}
 .toasts {bottom:calc(80px + env(safe-area-inset-bottom))}
 .hero.resume-card {min-height:0;padding:18px;gap:14px}
 .hero.resume-card .hero-screen {max-height:180px}
 .filters {gap:8px}
 .filters input[type=search] {font-size:16px;min-height:48px}
 .series-hero .row .primary {width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.mobile-navigation *{transition:none}}

.viewing-group {min-width:0;display:flex;flex-direction:column;gap:6px}
.viewing-group {align-self:start}
.viewing-group>.card {flex:none}
.viewing-related {border:1px solid var(--line,#35323b);border-radius:12px;padding:0 12px;background:var(--surface,#1e1b25)}
.viewing-related summary {min-height:48px;display:list-item;padding:12px 0;cursor:pointer;box-sizing:border-box}
.viewing-related-source {padding:12px 0;border-top:1px solid var(--line,#35323b);font-size:14px}
.viewing-related-source .btn {margin:4px 4px 4px 0;min-height:44px}
.viewing-chapter {display:block;padding:10px 0;min-height:44px;box-sizing:border-box;color:var(--accent,#f4bf3a)}
[id^=season-] {scroll-margin-top:85px}
.browse-tabs {display:flex;gap:6px;overflow-x:auto;margin:0 0 24px;padding:4px 0;border-bottom:1px solid var(--line);scrollbar-width:thin}
.browse-tabs a,.browse-tabs button {flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border:0;border-radius:12px;background:transparent;color:var(--muted);text-decoration:none;font:inherit;cursor:pointer}
.browse-tabs [aria-current=page],.browse-tabs [aria-pressed=true] {background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--text,#fff);box-shadow:inset 0 -2px var(--accent)}
.browse-tabs :focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
.watch-back {margin:0 0 16px;min-height:44px}
.search-entry {max-width:760px;margin:20px 0 12px}
.search-entry input {width:100%;min-height:52px;font-size:17px}
.search-filters {margin:12px 0 20px;max-width:980px}
.search-filters summary {cursor:pointer;min-height:44px;padding:12px 0;color:var(--muted)}
.watch.watch-tabbed {display:block}
.watch-tabbed .w-main {min-width:0}
.watch-tabbed .w-side:not([hidden]) {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start;gap:16px}
.watch-tabbed [hidden] {display:none!important}
.watch-tabs {margin-top:20px}
.watch-details {max-width:960px}
.viewing-group>.viewing-chapter {margin:0 12px;border-top:1px solid var(--line);font-size:14px;text-decoration:none}
@media(max-width:760px){.browse-tabs a,.browse-tabs button{padding:10px 14px}.watch-tabs{gap:0}.watch-tabs button{padding:10px;font-size:14px}.watch-back{margin-bottom:12px}.watch-tabbed .watch-title h1{font-size:20px}}
.player-return {position:absolute;top:12px;right:12px;z-index:6;min-height:44px;padding:8px 14px;border:1px solid #ffffff40;border-radius:12px;background:#111c;color:white;cursor:pointer;font:inherit}
.player.idle .player-return {opacity:0;pointer-events:none}
.player-return:focus-visible {opacity:1!important;pointer-events:auto!important;outline:2px solid var(--accent)}
@media(max-width:760px){.series-hero{grid-template-columns:80px minmax(0,1fr);gap:14px;align-items:start}.series-cover{aspect-ratio:1}.series-info h1{font-size:24px}.series-info .row{margin-left:-94px;margin-top:12px}.series-info .eyebrow{font-size:12px}}
.player .ambient{left:0;width:100%}
/* One primary menu on desktop; the phone keeps only catalog links above its feed. */
@media(min-width:761px){.catalog-tabs{display:none}.topbar .nav{overflow:visible}}
@media(max-width:760px){.topbar .nav{display:none!important}}
.nav-more{position:relative;flex:none;z-index:20}
.nav-more summary{padding:10px 14px;min-height:44px;cursor:pointer;color:var(--muted);list-style:none;border-radius:12px}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more summary::after{content:' ▾'}
.nav-more:has(a[aria-current=page]) summary{color:var(--accent)}
.nav-more-list{position:absolute;right:0;top:100%;width:180px;background:var(--surface);border:1px solid var(--line);padding:8px;border-radius:14px;box-shadow:0 10px 30px #0005}
.nav-more-list a{display:block;min-height:44px}
.player-return{display:none}
.player:fullscreen .player-return{display:block}

.src-tabs.below .src-tab[aria-pressed="true"] {background:#f5c542;border-color:#f5c542;color:#111}

/* === appearance.css === */
/* Personal appearance loads last; player controls retain their media layout. */
body {font-size:calc(15px * var(--ui-scale,1));}
html[data-text]:not([data-text=normal]) :is(.card h3,.desc,.c-text,.list-item,.field,.check,.nav a,.acc-nav a) {font-size:calc(15px * var(--ui-scale));}
html[data-text]:not([data-text=normal]) :is(.small,.muted.small,.card .meta,.theme-choice-description) {font-size:calc(13px * var(--ui-scale));}
html[data-text]:not([data-text=normal]) .acc-title {font-size:calc(24px * var(--ui-scale));}
html[data-text]:not([data-text=normal]) .watch-title h1 {font-size:calc(26px * var(--ui-scale));}
html[data-corners=square] {--r-sm:3px;--r-md:4px;--r-lg:6px;--personal-radius:5px;--personal-button-radius:4px;}
html[data-corners=round] {--r-sm:12px;--r-md:18px;--r-lg:24px;--personal-radius:26px;--personal-button-radius:22px;}
html[data-corners]:not([data-corners=normal]) :is(.card,.panel,.acc-card,.onair,.export-selection,.thumb,.series-cover,.appearance-preview,.appearance-preview-image) {border-radius:var(--personal-radius);}
html[data-corners]:not([data-corners=normal]) :is(.btn,.nav a,.theme-choice,.accent-choice,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea) {border-radius:var(--personal-button-radius);}
html[data-density=compact] .grid:not(.view-list):not(.view-compact):not(.cinema-rail) {grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px 14px;}
html[data-density=compact] .grid:not(.view-list):not(.view-compact):not(.cinema-rail) .card {padding:7px;}
html[data-density=roomy] .grid:not(.view-list):not(.view-compact):not(.cinema-rail) {grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:32px 26px;}
html[data-density=roomy] .grid:not(.view-list):not(.view-compact):not(.cinema-rail) .card {padding:14px;}
html .player.lit .ambient {opacity:min(1,calc(.72 * var(--ambient-strength,1)));}
html .player.lit.paused .ambient {opacity:min(1,calc(.48 * var(--ambient-strength,1)));}
html[data-scheme=light] {--twitch-ink:#57318f;--boosty-ink:#8b3512;}
html[data-scheme=light] .plat.twitch {background:#eee4fa;}
html[data-scheme=light] .plat.boosty {background:#f9e1d5;}
html[data-scheme=light] .card {background:linear-gradient(155deg,rgb(var(--cover-rgb)/.16),rgb(var(--cover-rgb)/.05));}
html[data-scheme=light] .hero-light img {opacity:.3;}
html[data-scheme=light] :is(.status.error,.status.dead,.status.failed,.status.not_member,.status.wrong) {color:#a82a42;}
html[data-scheme=light] .c-toggle {color:#165e9d;}
.appearance-panel {display:block;container-type:inline-size;margin-bottom:24px;padding:24px;min-width:0;}
.appearance-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;}
.appearance-heading h2 {margin-bottom:8px;}
.appearance-heading p {margin:0;max-width:62ch;}
.appearance-heading .btn {flex-shrink:0;}
.appearance-section {margin-top:24px;}
.appearance-section h3 {font:600 16px/1.4 var(--body);margin:0 0 12px;}
.appearance-panel .theme-picker {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.appearance-panel .theme-choice {display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:10px;text-align:left;color:var(--text);min-width:0;position:relative;border:2px solid var(--line);}
.appearance-panel .theme-choice[aria-pressed=true] {border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
.appearance-panel .theme-choice[aria-pressed=true] .theme-choice-label::after {content:' ✓';color:var(--accent);}
.theme-choice-label {font-weight:600;}
.theme-choice-description {font-size:12px;line-height:1.4;color:var(--muted);}
.theme-sample {height:58px;display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px;border-radius:6px;background:var(--sample-bg);}
.theme-sample i {display:block;background:var(--sample-surface);border-radius:3px;}
.theme-sample i:first-child {grid-column:1/-1;width:50%;height:6px;background:var(--sample-accent);}
.theme-choice[data-theme-value=system] .theme-sample {background:linear-gradient(110deg,#f7f5f0 49%,#0f0f0f 50%);}
.accent-picker {display:flex;flex-wrap:wrap;gap:8px;}
.accent-choice,.custom-accent {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;font-size:13px;cursor:pointer;}
.accent-choice::before {content:'';width:16px;height:16px;border-radius:50%;background:var(--swatch);border:1px solid var(--muted);}
.accent-choice[aria-pressed=true] {border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);}
.custom-accent input {padding:0;border:0;background:transparent;width:30px;height:28px;cursor:pointer;}
.appearance-controls {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px;}
.appearance-controls .field {margin:0;min-width:0;}
.appearance-controls select {width:100%;min-width:0;min-height:44px;}
.appearance-preview {display:flex;align-items:center;gap:20px;margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--bg);}
.appearance-preview-image {flex:0 0 140px;aspect-ratio:16/9;border-radius:12px;background:radial-gradient(ellipse at 70% 20%,var(--accent),transparent 65%),linear-gradient(140deg,var(--raised),var(--surface));}
.appearance-preview p {margin:6px 0 10px;}
.appearance-preview > div {min-width:0;}
.appearance-preview .btn {min-height:44px;white-space:normal;text-align:center;}
.appearance-preview b,.appearance-preview p {overflow-wrap:anywhere;}
.appearance-panel :is(.theme-choice,.accent-choice,.btn,select,input) {scroll-margin-block:100px;}
.appearance-panel :is(.theme-choice,.accent-choice,.btn,select,input):focus-visible {outline:3px solid var(--focus);outline-offset:3px;}
.appearance-panel .field > span {font-size:calc(13px * var(--ui-scale,1));}
.appearance-panel :is(.theme-choice-label,.accent-choice,.custom-accent) {font-size:calc(13px * var(--ui-scale,1));}
.appearance-status {margin:14px 0 0;}
@container (max-width:850px) {
  .appearance-panel .theme-picker {grid-template-columns:repeat(3,minmax(0,1fr));}
  .appearance-controls {grid-template-columns:repeat(2,minmax(0,1fr));}
  .appearance-heading {flex-wrap:wrap;}
}
@container (max-width:540px) {
  .appearance-panel .theme-picker {grid-template-columns:repeat(2,minmax(0,1fr));}
  .appearance-controls {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:760px) {
  .appearance-panel {padding:16px;}
  .appearance-heading {flex-wrap:wrap;gap:12px;}
  .appearance-controls {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-density=compact] .grid:not(.view-list):not(.view-compact):not(.cinema-rail) {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px;}
  html[data-density=roomy] .grid:not(.view-list):not(.view-compact):not(.cinema-rail) {grid-template-columns:minmax(0,1fr);gap:24px;}
  html[data-density=roomy] .grid.rail:not(.view-list):not(.view-compact):not(.cinema-rail) {display:grid;overflow:visible;margin:0;padding:0;}
  .account,.acc-body,.appearance-heading > div {min-width:0;}
  .acc-body .cols {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:560px) {
  html .player.lit .ambient {opacity:min(1,calc(.52 * var(--ambient-strength,1)));}
  html .player.lit.paused .ambient {opacity:min(1,calc(.36 * var(--ambient-strength,1)));}
  .appearance-panel .theme-picker {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .appearance-controls {grid-template-columns:minmax(0,1fr);}
  .appearance-preview {gap:12px;padding:12px;}
  .appearance-preview-image {flex-basis:80px;}
}
@media(max-width:380px) {
  .appearance-preview {align-items:flex-start;flex-direction:column;}
  .appearance-preview-image {flex:none;width:100%;max-width:160px;}
  .appearance-heading .btn {width:100%;}
}
@media (prefers-reduced-motion:reduce) {
  .appearance-panel * {scroll-behavior:auto;transition:none;}
}

/* === cinema.css === */
/* Selected concept A: content first, a cinematic hero, quiet catalog cards.
   Uses the existing appearance tokens so personal themes remain available. */
:root{--gutter:clamp(20px,4.6vw,76px);--r-sm:6px;--r-md:10px;--r-lg:14px}
.cinema-site{font-size:calc(16px * var(--ui-scale,1));line-height:1.5}
.cinema-site .topbar{height:64px;min-height:64px;flex-wrap:nowrap;gap:24px;padding:0 max(var(--gutter),calc((100vw - var(--maxw))/2 + var(--gutter)));border:0;background:#050505;color:#c3c6cf;backdrop-filter:none;isolation:isolate}
.cinema-site .topbar-flourish{position:absolute;right:240px;bottom:0;width:360px;height:100%;pointer-events:none;z-index:-1;overflow:visible;filter:drop-shadow(0 0 16px #ff9c1828)}
.cinema-site .topbar-flourish path{fill:none;stroke:url(#topbar-gold);stroke-width:1}
.cinema-site .topbar .logo{position:relative;width:140px;max-width:none;padding-right:22px;box-sizing:content-box;border-right:1px solid #ffffff20}
.cinema-site .topbar .logo img{width:140px;height:44px;object-fit:contain}
.cinema-site .nav{height:44px;gap:6px;overflow:visible;margin:0;padding:0;width:auto;align-items:stretch;background:transparent;flex:0 1 auto;order:0}
.cinema-site .nav>a{display:flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;min-height:44px;border-radius:24px;background:transparent;font-size:15px;font-weight:600;color:#c3c6cf}
.cinema-site .nav>a[aria-current=page]{color:var(--text);background:transparent}
.cinema-site .nav>a:hover{color:white;background:#ffffff08}
.cinema-site .nav>a[aria-current=page]{color:white}
.cinema-site .nav>a>svg{display:block;width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cinema-site .nav>a[aria-current=page]>svg{color:#ffad22}
.cinema-site .nav .live-dot{position:absolute;top:9px;right:10px;margin:0}
.cinema-site .nav-ink{display:none}
.cinema-site .topbar-right{gap:12px}
.cinema-site .topbar .icon-btn{width:42px;height:42px;flex-shrink:0;border:1px solid #ffffff0d;border-radius:13px;background:linear-gradient(145deg,#1c1c1c,#111);color:#f6f6f6;box-shadow:inset 0 1px #ffffff06}
.cinema-site .topbar .icon-btn:hover{background:#262626;border-color:#ffffff24}
.cinema-site .topbar .icon-btn svg{width:22px;height:22px}
.cinema-site .topbar .nav-action-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cinema-site .topbar .avatar-link{width:40px;height:40px;display:grid;place-items:center;color:#111;background:#ffad22;font-weight:700;text-decoration:none;flex-shrink:0}
.cinema-site .topbar #nav-profile:has(.guest-login-label){width:auto;min-width:76px;border:1px solid #ffffff20;background:#161616;color:white;border-radius:26px;padding:7px 16px}
.cinema-site #notif-badge{top:7px;right:6px;min-width:10px;width:10px;height:10px;padding:0;border:2px solid #171717;background:#ffad22;color:transparent;font-size:0}
.cinema-site main{padding-top:30px;padding-bottom:64px}
.cinema-site main:has(>.cinema-hero){padding-top:0}
.cinema-site main:focus{outline:none}
.cinema-site .page-head{margin-bottom:30px;gap:24px}
.cinema-site h1{font-size:clamp(30px,3.1vw,44px);letter-spacing:-.035em;line-height:1.15}
.cinema-site h2{font-size:clamp(21px,2vw,28px);letter-spacing:-.025em;line-height:1.2}
.cinema-site .btn{border-radius:10px;min-height:48px;padding:10px 22px;font-size:15px;font-weight:600;box-shadow:none}
.cinema-site .btn.small{min-height:40px;padding:7px 14px;font-size:13px}
.cinema-site .btn svg{width:20px;height:20px}
.cinema-site .btn.primary{border-color:var(--accent)}
.cinema-site .btn:focus-visible,.cinema-site a:focus-visible,.cinema-site summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.cinema-site .panel,.cinema-site .acc-card,.cinema-site .onair,.cinema-site .export-selection{border-radius:12px;box-shadow:none}
/* Catalog grids must not create explicit columns inside horizontal rails. */
.cinema-site .grid:not(.cinema-rail){grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 22px;align-items:start}
.cinema-site .card,.cinema-site .card:hover,.cinema-site .card:focus-visible,html[data-scheme=light] .cinema-site .card{padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;gap:10px;transition:none}
.cinema-site .card>.thumb,.cinema-site .card .thumb{border-radius:10px;aspect-ratio:16/9}
.cinema-site .card>div:not(.thumb){padding:0}
.cinema-site .card h3{font-size:calc(16px * var(--ui-scale,1));font-weight:500;line-height:1.4;letter-spacing:0;-webkit-line-clamp:2}
.cinema-site .card .meta{font-size:13px;gap:4px 10px;margin-top:4px;line-height:1.45}
.cinema-site .card .thumb img{transform:none;transition:opacity .15s ease}
.cinema-site .card:hover .thumb img{opacity:.85;transform:none}
.cinema-site .thumb .bar{height:3px}
.cinema-site .thumb .dur{font-size:11px;padding:3px 6px;bottom:9px;right:9px;border-radius:4px}
.cinema-site .thumb .watched{font-size:11px;border-radius:4px}
.cinema-site .section{margin-top:40px}
.cinema-site .section>.section-head{align-items:center;margin-bottom:20px;gap:16px}
.cinema-site .section-head>a{font-size:14px;min-height:44px;display:flex;align-items:center}
.cinema-site .cinema-rail{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 66px)/4);gap:22px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding:2px;padding:6px 2px 15px;margin:-6px -2px 0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.cinema-site .cinema-rail>.card,.cinema-site .cinema-rail>.viewing-group{scroll-snap-align:start;min-width:0;width:auto;flex:none}
.cinema-site .cinema-rail-controls{display:flex;align-items:center;gap:8px}
.cinema-site .cinema-rail-controls button{width:40px;height:44px;display:grid;place-items:center;padding:8px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.cinema-site .cinema-rail-controls button:hover{background:var(--surface);color:var(--text)}
.cinema-site .cinema-rail-controls button:disabled{opacity:.3;cursor:default}
.cinema-site .cinema-rail-controls svg{width:20px;height:20px;fill:currentColor}
.cinema-site .cinema-hero{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:550px;height:clamp(550px,41vw,700px);padding:60px var(--gutter) 66px;margin:0 calc(-1 * var(--gutter)) 0;overflow:hidden;background:var(--bg);border:0;border-radius:0;gap:0;grid-template-columns:none}
.cinema-site .cinema-hero-art{position:absolute;right:0;top:0;width:78%;height:100%;object-fit:cover;object-position:center 30%;z-index:-3;opacity:1;border-radius:0;filter:none;box-shadow:none}
.cinema-site .cinema-hero::before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,var(--bg) 2%,color-mix(in srgb,var(--bg) 92%,transparent) 18%,color-mix(in srgb,var(--bg) 30%,transparent) 48%,transparent 74%)}
.cinema-site .cinema-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,var(--bg),color-mix(in srgb,var(--bg) 38%,transparent) 25%,transparent 72%)}
.cinema-site .cinema-hero-copy{position:relative;width:min(550px,47%);padding-bottom:5px;min-width:0;display:block}
.cinema-site .cinema-hero-caption{display:block;color:var(--accent);font-size:15px;font-weight:500;margin:0 0 16px;text-transform:none;letter-spacing:0}
.cinema-site .cinema-hero-title{font:800 clamp(42px,5.5vw,80px)/1.05 var(--display);letter-spacing:-.04em;text-wrap:balance;overflow-wrap:anywhere;margin:0 0 20px;max-width:100%;display:block;-webkit-line-clamp:unset}
.cinema-site .cinema-hero-title a{text-decoration:none}
.cinema-site .cinema-hero-meta{font-size:14px;line-height:1.5;color:var(--muted);display:flex;flex-wrap:wrap;gap:5px 16px;margin:0 0 20px}
.cinema-site .cinema-hero-description{font-size:17px;line-height:1.65;color:var(--text);opacity:.86;max-width:420px;margin:0 0 26px;white-space:normal}
.cinema-site .cinema-hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
.cinema-site .cinema-hero-actions .btn{min-height:52px;max-width:100%;font-size:16px;white-space:normal;text-align:center}
.cinema-site .cinema-hero-controls{position:absolute;right:var(--gutter);bottom:68px;display:flex;gap:12px;align-items:center}
.cinema-site .cinema-hero-controls button{min-width:40px;min-height:44px;border:0;background:transparent;color:var(--text);cursor:pointer}
.cinema-site .cinema-hero-controls svg{width:20px;height:20px;fill:currentColor}
.cinema-site .cinema-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:40px}
.cinema-site .cinema-categories a{min-height:86px;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:var(--surface);border:0;border-radius:10px;text-decoration:none;font-size:20px;font-weight:600;color:var(--text)}
.cinema-site .cinema-categories a:hover{background:var(--raised)}
.cinema-site .cinema-categories svg{width:22px;height:22px;fill:var(--accent)}
.cinema-site .cinema-catalog-head{align-items:center;flex-wrap:wrap}
.cinema-site .cinema-catalog-head p{margin-top:10px;font-size:14px}
.cinema-site .cinema-catalog-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px;flex-wrap:wrap}
.cinema-site .cinema-catalog-tools input[type=search],.cinema-site .cinema-catalog-head input[type=search]{width:min(420px,100%);min-height:52px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:16px;padding:12px 18px}
.cinema-site .cinema-catalog-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:30px}
.cinema-site .chips{gap:8px 10px;margin-bottom:24px}
.cinema-site .chips .label{display:none}
.cinema-site .chip{border:0;border-radius:24px;min-height:44px;background:var(--surface);color:var(--muted);font-size:14px;padding:10px 18px}
.cinema-site .chip.active,.cinema-site .chip[aria-pressed=true],.cinema-site .chip[aria-current=page]{background:var(--text);color:var(--bg)}
.cinema-site .cinema-catalog-tools select{min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.cinema-site .cinema-catalog-options{position:relative}
.cinema-site .cinema-catalog-options summary{cursor:pointer;min-height:44px;color:var(--muted);display:flex;align-items:center;gap:8px}
.cinema-site .cinema-catalog-options[open]{padding-bottom:10px}
.cinema-site .cinema-hero-detail{min-height:510px;height:550px;padding-top:50px}
.cinema-site .cinema-hero-detail .cinema-hero-title{font-size:clamp(38px,4.6vw,66px)}
.cinema-site .cinema-hero-detail .series-progress{margin:12px 0 24px;max-width:260px}
.cinema-site .cinema-hero-detail .cinema-hero-actions .btn:not(.primary){font-size:14px}
.cinema-site .series-season-links{gap:10px;margin:20px 0}
.cinema-site .viewing-group{gap:8px}
.cinema-site .ep-label{display:block;font-size:13px;color:var(--muted);margin:0 0 5px}
.cinema-site .viewing-related{padding:0 14px;background:var(--surface);border:0;border-radius:8px;font-size:13px}
.cinema-site .viewing-related summary{min-height:44px;padding:11px 0;color:var(--muted)}
.cinema-site .viewing-group>.viewing-chapter{font-size:13px;padding:9px 0;margin:0;border-color:var(--line);color:var(--muted)}
.cinema-site .watch-back{font-size:14px;min-height:44px;margin-bottom:18px}
.cinema-site .watch-toolbar{display:flex;align-items:center;width:max-content;min-height:44px;margin-bottom:8px;padding:0;border:0;background:transparent}
.cinema-site .watch-toolbar .watch-back{margin:0;border:0;background:transparent;min-height:44px;padding:6px 10px;font-weight:500;white-space:nowrap}
.cinema-site .watch-toolbar .watch-back:hover{background:var(--raised)}
.cinema-site .watch-tabbed .player,.cinema-site .live-watch .player{border-radius:12px;box-shadow:none}
.cinema-site .player-stage{min-width:0;scroll-margin-top:76px}
.cinema-site .watch.theater .player-dock{max-width:min(100%,calc((100vh - 120px) * 16 / 9));margin-inline:auto}
.cinema-site .watch-title{margin-top:24px;gap:10px}
.cinema-site .watch-title h1{font-size:clamp(23px,2.7vw,34px);line-height:1.25;letter-spacing:-.025em}
.cinema-site .watch-title>.meta{font-size:13px;gap:5px 14px}
.cinema-site .watch-actions{gap:10px}
.cinema-site .watch-tabs{margin-top:28px;gap:28px;border-color:var(--line);padding:0}
.cinema-site .watch-tabs button{background:transparent;border-radius:0;color:var(--muted);padding:12px 0;min-height:56px;box-shadow:none}
.cinema-site .watch-tabs button[aria-selected=true],.cinema-site .watch-tabs button[aria-pressed=true]{color:var(--text);background:transparent;box-shadow:inset 0 -2px var(--accent)}
.cinema-site .browse-tabs a,.cinema-site .browse-tabs button{border-radius:0}
.cinema-site .browse-tabs [aria-current=page]{background:transparent;box-shadow:inset 0 -2px var(--accent)}
.cinema-site .player .recording-source-menu{border-radius:10px}
.cinema-site .cinema-site-menu{position:relative;flex-shrink:0;--site-menu-bottom:12px}
.cinema-site .site-menu-toggle{cursor:pointer;list-style:none;border:0;background:transparent}
.cinema-site .site-menu-toggle::-webkit-details-marker{display:none}
.cinema-site .cinema-site-menu[open]>.site-menu-toggle{background:var(--surface);color:var(--text)}
.cinema-site .site-menu-panel{position:fixed;top:var(--site-menu-top,80px);right:var(--site-menu-right,20px);z-index:60;width:min(320px,calc(100vw - 24px));max-height:calc(var(--site-menu-viewport,100dvh) - var(--site-menu-top,80px) - var(--site-menu-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:8px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--text);box-shadow:0 14px 48px #0005;animation:site-menu-in .14s ease-out}
.cinema-site .site-menu-panel nav{display:flex;flex-direction:column}
.cinema-site .site-menu-panel a,.cinema-site .site-menu-panel button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text);font:500 calc(14px * var(--ui-scale,1))/1.45 var(--body);text-decoration:none;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.cinema-site .site-menu-panel a:hover,.cinema-site .site-menu-panel button:hover{background:var(--raised)}
.cinema-site .site-menu-panel a:focus-visible,.cinema-site .site-menu-panel button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;background:var(--raised)}
.cinema-site .site-menu-contacts{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}
.cinema-site .site-menu-contacts>a{font-weight:400;color:var(--muted)}
.cinema-site.site-menu-ready #site-support{margin:0;padding:0}
.cinema-site.site-menu-ready #site-support .support-launch{display:none}
.cinema-site .support-dialog{background:var(--surface);color:var(--text);border-color:var(--line);border-radius:var(--r-lg)}
.cinema-site .support-intro,.cinema-site .support-meta,.cinema-site .support-status{color:var(--muted)}
.cinema-site .support-telegram,.cinema-site .support-form textarea{background:var(--bg);color:var(--text);border-color:var(--line)}
.cinema-site .support-submit{background:var(--accent);color:var(--accent-ink)}
.cinema-site .support-login{color:var(--accent)}
@keyframes site-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
html[data-motion=reduced] .cinema-site .site-menu-panel{animation:none}
@media(prefers-reduced-motion:reduce){.cinema-site .site-menu-panel{animation:none}}
@media(min-width:1650px){.cinema-site .grid:not(.view-list):not(.view-compact):not(.cinema-rail){grid-template-columns:repeat(5,minmax(0,1fr))}.cinema-site .grid.cinema-rail{grid-template-columns:none;grid-auto-columns:calc((100% - 88px)/5)}}
@media(max-width:1100px){.cinema-site .topbar{gap:32px}.cinema-site .nav{gap:24px}.cinema-site .topbar-right{gap:12px}.cinema-site .grid:not(.cinema-rail){grid-template-columns:repeat(3,minmax(0,1fr))}.cinema-site .cinema-rail{grid-template-columns:none;grid-auto-columns:calc((100% - 44px)/3)}.cinema-site .cinema-hero{min-height:510px;height:560px}.cinema-site .cinema-hero-copy{width:52%}.cinema-site .cinema-hero-title{font-size:54px}.cinema-site .cinema-hero-description{font-size:16px}.cinema-site .cinema-categories a{padding:18px;font-size:18px}}
@media(max-width:760px){
 :root{--gutter:20px}
 .cinema-site{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .cinema-site .topbar{height:60px;min-height:60px;padding:0 20px;gap:14px}
 .cinema-site .topbar-flourish{right:110px;width:180px;opacity:.6}
 .cinema-site .topbar .logo{padding:0;border:0}
 .cinema-site .topbar .logo,.cinema-site .topbar .logo img{width:128px;height:42px}
 .cinema-site .topbar .nav{display:none!important}
 .cinema-site .topbar-right{gap:10px}
 .cinema-site .topbar .icon-btn{width:40px;height:40px;border-radius:13px}
 .cinema-site .topbar .icon-btn svg{width:22px;height:22px}
 .cinema-site .topbar .cinema-search-link{display:none}
 .cinema-site .topbar .avatar-link{height:36px;width:36px}
 .cinema-site .topbar #nav-profile:has(.guest-login-label){min-width:64px;padding:6px 12px;font-size:13px}
 .cinema-site main{padding-top:24px;padding-bottom:30px}
 .cinema-site main:has(>.cinema-hero){padding-top:0}
 .cinema-site .mobile-navigation{padding:8px 12px calc(10px + env(safe-area-inset-bottom));gap:0;border-color:var(--line);background:var(--bg)}
 .cinema-site .mobile-navigation a{min-height:50px;font-size:10px;gap:5px;border-radius:0;background:transparent}
 .cinema-site .mobile-navigation a[aria-current=page]{background:transparent;color:var(--accent)}
 .cinema-site .mobile-navigation svg{width:22px;height:22px}
 .cinema-site .page-head{gap:18px;margin-bottom:24px}
 .cinema-site h1{font-size:32px}
 .cinema-site h2{font-size:22px}
 .cinema-site .btn{min-height:46px;padding:10px 18px;font-size:14px}
 .cinema-site .grid:not(.cinema-rail),.cinema-site .grid:not(.view-list):not(.view-compact):not(.cinema-rail){grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
 .cinema-site .card,.cinema-site .card:hover{padding:0;gap:8px}
 .cinema-site .card .thumb{border-radius:8px}
 .cinema-site .card h3{font-size:calc(14px * var(--ui-scale,1));line-height:1.4}
 .cinema-site .card .meta{font-size:11px;margin-top:3px;gap:3px 8px}
 .cinema-site .thumb .dur{font-size:10px;bottom:7px;right:7px;padding:2px 5px}
 .cinema-site .section{margin-top:32px}
 .cinema-site .section>.section-head{margin-bottom:16px;gap:10px}
 .cinema-site .section-head>a{font-size:12px;white-space:nowrap}
 .cinema-site .grid.cinema-rail,.cinema-site .grid.cinema-rail:not(.view-list):not(.view-compact){grid-template-columns:none;grid-auto-columns:245px;gap:14px;margin:0 -20px;padding:4px 20px 12px;scroll-padding:20px;scrollbar-width:none}
 .cinema-site .cinema-rail .card h3{font-size:15px}
 .cinema-site .cinema-rail .card .meta{font-size:12px}
 .cinema-site .cinema-rail-controls{display:none}
 .cinema-site .cinema-hero{min-height:610px;height:auto;align-items:flex-end;padding:340px 20px 34px;margin:0 -20px;display:flex}
 .cinema-site .cinema-hero-art{width:100%;height:440px;object-position:33% top;opacity:1}
 .cinema-site .cinema-hero::before{background:linear-gradient(0deg,var(--bg) 3%,var(--bg) 20%,color-mix(in srgb,var(--bg) 70%,transparent) 42%,transparent 72%)}
 .cinema-site .cinema-hero::after{background:linear-gradient(180deg,transparent 36%,var(--bg) 75%)}
 .cinema-site .cinema-hero-copy{width:100%;max-width:none;padding:0}
 .cinema-site .cinema-hero-caption{font-size:13px;margin-bottom:12px}
 .cinema-site .cinema-hero-title{font-size:44px;line-height:1.08;margin-bottom:14px;letter-spacing:-.04em}
 .cinema-site .cinema-hero-meta{font-size:12px;gap:5px 12px;margin-bottom:14px}
 .cinema-site .cinema-hero-description{font-size:15px;line-height:1.6;margin-bottom:22px;max-width:100%}
 .cinema-site .cinema-hero-actions{gap:10px;align-items:stretch}
 .cinema-site .cinema-hero-actions .btn{width:auto;min-height:50px;max-width:100%;font-size:14px;padding:12px 20px}
 .cinema-site .cinema-hero-controls{bottom:38px;right:20px;gap:4px}
 .cinema-site .cinema-hero-detail{padding-top:320px;min-height:590px}
 .cinema-site .cinema-hero-detail .cinema-hero-title{font-size:40px}
 .cinema-site .cinema-hero-detail .cinema-hero-actions .btn:not(.primary){font-size:13px}
 .cinema-site .cinema-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:32px}
 .cinema-site .cinema-categories a{min-height:72px;padding:16px 18px;font-size:16px}
 .cinema-site .cinema-categories svg{width:18px;height:18px}
 .cinema-site .cinema-catalog-head{display:block}
 .cinema-site .cinema-catalog-head h1{margin-bottom:20px}
 .cinema-site .cinema-catalog-head p{font-size:13px}
 .cinema-site .cinema-catalog-tools{align-items:stretch;gap:12px;margin-bottom:22px}
 .cinema-site .cinema-catalog-tools input[type=search],.cinema-site .cinema-catalog-head input[type=search]{width:100%;min-width:0;font-size:16px}
 .cinema-site .cinema-catalog-filters,.cinema-site .chips{gap:8px;flex-wrap:wrap}
 .cinema-site .chip{padding:10px 15px;min-height:42px;font-size:13px}
 .cinema-site .viewing-group{gap:6px}
 .cinema-site .ep-label{font-size:11px}
 .cinema-site .viewing-related{font-size:12px;padding:0 10px}
 .cinema-site .viewing-related summary{line-height:1.4}
 .cinema-site main:has(.watch){padding-top:12px}
 .cinema-site .watch-back{margin-bottom:12px}
 .cinema-site .watch-tabbed .player-dock,.cinema-site .live-watch .player-dock{margin-left:-20px;margin-right:-20px;width:calc(100% + 40px);max-width:none}
 .cinema-site .watch-tabbed .player,.cinema-site .live-watch .player{margin:0;width:100%;border-radius:0}
 .cinema-site .watch-toolbar{border-radius:0;border-inline:0;padding-inline:12px}
 .cinema-site .player-stage{scroll-margin-top:72px}
 .cinema-site .watch-title{margin-top:22px}
 .cinema-site .watch-title h1{font-size:24px}
 .cinema-site .watch-title>.meta{font-size:12px;gap:5px 10px}
 .cinema-site .watch-actions{gap:8px}
 .cinema-site .watch-actions .btn{min-height:44px;padding:9px 14px;font-size:13px}
 .cinema-site .watch-tabs{gap:22px;font-size:14px;margin-top:22px}
 .cinema-site .watch-tabs button{font-size:13px;padding:12px 0;min-height:54px}
 .cinema-site .cinema-site-menu{--site-menu-bottom:calc(88px + env(safe-area-inset-bottom))}
 .cinema-site .toasts{bottom:calc(90px + env(safe-area-inset-bottom))}
}
.cinema-site .topbar-right{flex-wrap:nowrap}
.cinema-site .topbar .site-menu-toggle{width:44px;height:44px}
@media(max-width:380px){.cinema-site .cinema-hero-title{font-size:38px}.cinema-site .cinema-hero-actions{gap:8px}.cinema-site .cinema-hero-actions .btn{padding:11px 16px}.cinema-site .watch-tabs{gap:14px}.cinema-site .watch-tabs button{font-size:12px}}
/* Existing alternate density/list controls remain intentional user choices. */
.cinema-site .grid.view-list{display:flex;flex-direction:column;gap:14px}
.cinema-site .grid.view-compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:22px 16px}
@media(max-width:760px){.cinema-site .grid.view-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cinema-site .cinema-section-actions{display:flex;align-items:center;gap:18px}
.cinema-site .cinema-section-actions>a{display:flex;align-items:center;min-height:44px;color:var(--muted);font-size:14px;text-decoration:none}
.cinema-site .cinema-search-field{display:flex;align-items:center;gap:12px;width:min(420px,100%);padding:0 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.cinema-site .cinema-search-field>svg{width:22px;height:22px;fill:var(--muted);flex-shrink:0}
.cinema-site .cinema-catalog-head .cinema-search-field input[type=search]{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;outline:none}
.cinema-site .cinema-search-field:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.cinema-site .chips-label{display:none}
.cinema-site .chips button{border:0;border-radius:24px;min-height:44px;padding:10px 18px;background:var(--surface);font-size:14px;color:var(--muted)}
.cinema-site .chips button[aria-checked=true],.cinema-site .chips button[aria-pressed=true]{background:var(--text);color:var(--bg)}
.cinema-site .cinema-catalog-toolbar{display:flex;gap:28px;align-items:flex-start;margin:0 0 28px;color:var(--muted);font-size:14px}
.cinema-site .cinema-catalog-toolbar>a{min-height:44px;display:flex;align-items:center;text-decoration:none}
.cinema-site .cinema-catalog-toolbar>a:hover{color:var(--text)}
.cinema-site details.cinema-catalog-tools{display:block;position:relative;margin:0 auto 0 0;flex:0 1 auto}
.cinema-site details.cinema-catalog-tools>summary{min-height:44px;display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
.cinema-site details.cinema-catalog-tools>summary::after{content:'⌄';font-size:16px}
.cinema-site details.cinema-catalog-tools>summary::-webkit-details-marker{display:none}
.cinema-site .cinema-catalog-tools .cinema-catalog-options{position:absolute;top:100%;left:0;z-index:20;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;width:min(530px,calc(100vw - 40px));box-shadow:0 10px 32px #0004}
.cinema-site .cinema-catalog-tools .chips{display:flex;flex-wrap:wrap;margin:0 0 14px;padding:0;overflow:visible;gap:8px}
.cinema-site .cinema-catalog-tools .chips button{background:var(--raised);font-size:13px;white-space:normal;flex-shrink:1}
.cinema-site .cinema-catalog-tools .chips button[aria-pressed=true]{background:var(--text);color:var(--bg)}
.cinema-site details.cinema-record-order{margin:16px 0 4px;color:var(--muted);font-size:14px}
.cinema-site .cinema-record-order>.chips{margin-top:10px}
.cinema-site .cinema-resume-label{font-size:14px;color:var(--muted);margin:0 0 18px}
.cinema-site .watch-quick-actions{position:relative;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.cinema-site .cinema-watch-more{position:relative}
.cinema-site .cinema-watch-more>summary{min-height:48px;display:flex;align-items:center;justify-content:center;padding:10px 20px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.cinema-site .cinema-watch-more>summary::-webkit-details-marker{display:none}
.cinema-site .cinema-watch-more>.watch-actions{position:absolute;top:calc(100% + 8px);left:0;z-index:25;display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:260px;max-width:calc(100vw - 40px);margin:0;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #0005}
.cinema-site .cinema-watch-more>.watch-actions .btn{background:transparent;border:0;justify-content:flex-start;text-align:left;font-weight:500;white-space:normal}
.cinema-site .cinema-watch-more>.watch-actions .btn:hover{background:var(--raised)}
@media(max-width:760px){
 .cinema-site .cinema-section-actions{gap:0}.cinema-site .cinema-section-actions>a{font-size:12px}
 .cinema-site .cinema-search-field{width:100%}
 .cinema-site .cinema-catalog-filters.chips{flex-wrap:nowrap;margin:0 -20px 20px;padding:0 20px;gap:8px}
 .cinema-site .chips button{min-height:42px;padding:10px 15px;font-size:13px}
 .cinema-site .cinema-catalog-toolbar{gap:16px;font-size:12px;flex-wrap:wrap;margin-bottom:22px}
 .cinema-site .cinema-catalog-toolbar>a{min-height:40px}
 .cinema-site details.cinema-catalog-tools>summary{min-height:40px}
 .cinema-site .cinema-catalog-tools .cinema-catalog-options{padding:12px}
 .cinema-site .cinema-watch-more>summary{min-height:46px;font-size:14px;padding:10px 18px}
 .cinema-site .cinema-watch-more{position:static}
 .cinema-site .cinema-watch-more>.watch-actions{left:0;right:auto;width:min(360px,100%);min-width:min(270px,100%);max-width:100%}
 .cinema-site .cinema-hero-detail .series-info .btn{flex:none}
}
@media(prefers-reduced-motion:reduce){.cinema-site .card .thumb img{transition:none}.cinema-site .cinema-rail{scroll-behavior:auto}}
.cinema-site .cinema-hero-carousel .cinema-hero-copy{width:min(740px,65%)}
.cinema-site .cinema-hero-carousel .cinema-hero-title{font-size:clamp(32px,3.5vw,52px);line-height:1.12;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-wrap:pretty}
.cinema-site .cinema-hero-carousel .cinema-hero-controls{bottom:34px;gap:6px}
.cinema-site .cinema-hero-controls>button{display:grid;place-items:center;width:44px;height:44px;padding:10px;border-radius:50%;background:color-mix(in srgb,var(--bg) 65%,transparent)}
.cinema-site .cinema-hero-controls button:hover{background:var(--raised)}
.cinema-site .cinema-carousel-dots{display:flex;align-items:center;justify-content:center}
.cinema-site .cinema-carousel-dots button{position:relative;width:28px;min-width:0;height:44px;padding:0;border-radius:0}
.cinema-site .cinema-carousel-dots button::after{content:'';position:absolute;left:calc(50% - 3px);top:19px;width:6px;height:6px;border-radius:4px;background:var(--muted)}
.cinema-site .cinema-carousel-dots button.selected::after{left:calc(50% - 9px);width:18px;background:var(--accent)}
.cinema-site .cinema-carousel-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cinema-site .cinema-carousel-outgoing{pointer-events:none}
.cinema-site .cinema-carousel-dots button::after{transition:width .24s ease,left .24s ease,background .24s ease}
.cinema-site .btn,.cinema-site .cinema-hero-controls>button,.cinema-site .tabs a,.cinema-site .chips button{transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.cinema-site .btn:active,.cinema-site .cinema-hero-controls>button:active{transform:scale(.97)}
.cinema-site .mobile-navigation{view-transition-name:mobile-navigation}
::view-transition{pointer-events:none}
::view-transition-group(mobile-navigation),::view-transition-old(mobile-navigation),::view-transition-new(mobile-navigation){animation:none}
@media(min-width:761px){
 .cinema-site .nav{position:relative}
 .cinema-site .nav-ink{display:block;height:44px!important;top:0!important;bottom:auto;border:1px solid #ffad224a;border-radius:30px;background:radial-gradient(ellipse at 50% 0,#ffad221c,transparent 90%),#ffad2209;box-shadow:inset 0 0 0 1px #ffad2209;transition:transform .26s cubic-bezier(.2,.75,.25,1),width .26s cubic-bezier(.2,.75,.25,1),opacity .18s ease;pointer-events:none}
 .cinema-site .nav>a[aria-current=page]::after{display:none}
}
@media(hover:hover) and (pointer:fine){
 .cinema-site .card{transition:transform .2s cubic-bezier(.2,.75,.25,1)}
 .cinema-site .card .thumb img{transition:opacity .2s ease,transform .32s cubic-bezier(.2,.75,.25,1)}
 .cinema-site .card:hover{transform:translateY(-3px)}
 .cinema-site .card:hover .thumb img{transform:scale(1.025);opacity:.94}
}
@media(prefers-reduced-motion:reduce){.cinema-site .card:hover,.cinema-site .card:hover .thumb img{transform:none}}
html[data-motion=reduced] .cinema-site .card:hover,html[data-motion=reduced] .cinema-site .card:hover .thumb img{transform:none}
@media(max-width:760px){
 .cinema-site .cinema-hero-carousel{padding-bottom:90px;min-height:670px;touch-action:pan-y}
 .cinema-site .cinema-hero-carousel .cinema-hero-copy{width:100%}
 .cinema-site .cinema-hero-carousel .cinema-hero-title{font-size:clamp(27px,7.6vw,36px);-webkit-line-clamp:3}
 .cinema-site .cinema-hero-carousel .cinema-hero-controls{left:20px;right:20px;bottom:20px;justify-content:center;gap:4px}
 .cinema-site .cinema-carousel-dots{flex:1;max-width:168px;min-width:0}
 .cinema-site .cinema-carousel-dots button{flex:1;min-width:0;max-width:28px}
 .cinema-site .cinema-hero-controls>button{width:40px;min-width:40px;flex-shrink:0}
}

@media(min-width:761px) and (max-width:1280px){
 .cinema-site .topbar{gap:20px;padding-inline:32px}
 .cinema-site .topbar .logo{width:140px;padding-right:20px}
 .cinema-site .topbar .logo img{width:140px}
 .cinema-site .nav{gap:2px}
 .cinema-site .nav>a{padding-inline:14px;font-size:15px;gap:9px}
 .cinema-site .nav>a>svg{width:23px;height:23px}
 .cinema-site .topbar-right{gap:12px}
 .cinema-site .topbar .icon-btn{width:42px;height:42px;border-radius:13px}
 .cinema-site .topbar .avatar-link{width:40px;height:40px}
}
@media(min-width:761px) and (max-width:1020px){
 .cinema-site .topbar{padding-inline:24px;gap:18px}
 .cinema-site .nav>a{width:50px;padding-inline:0;gap:0}
 .cinema-site .nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:360px){
 .cinema-site .topbar{padding-inline:16px;gap:10px}
 .cinema-site .topbar .logo,.cinema-site .topbar .logo img{width:110px}
 .cinema-site .topbar-right{gap:8px}
}

/* Keep the return action in the left gutter without a strip above the video. */
@media(min-width:1101px){
 .cinema-site main:has(.watch-toolbar){padding-inline:max(104px,var(--gutter))}
 .cinema-site .player-dock>.watch-toolbar{position:absolute;top:0;right:calc(100% + 12px);margin:0}
 .cinema-site .room-stage .player-dock>.watch-toolbar{position:static;margin-bottom:8px}
}

/* Home carousel: reserve a clear area for the cover and keep the ambient layer behind it. */
.cinema-site .cinema-hero-carousel {
  --home-hero-height: clamp(440px, 38vw, 600px);
  height: auto;
  min-height: var(--home-hero-height);
  align-items: center;
  padding-block: 54px 94px;
}
.cinema-site .cinema-hero-carousel::before {
  z-index: -3;
  background: linear-gradient(90deg, var(--bg), color-mix(in srgb, var(--bg) 60%, transparent) 42%, color-mix(in srgb, var(--bg) 32%, transparent));
}
.cinema-site .cinema-hero-carousel::after {
  z-index: -3;
  background: linear-gradient(0deg, var(--bg), transparent 55%);
}
.cinema-site .cinema-hero-carousel .cinema-hero-copy {
  width: 35%;
}
.cinema-site .cinema-hero-carousel .cinema-hero-title {
  font-size: clamp(28px, 3.15vw, 52px);
  margin-bottom: 16px;
}
.cinema-site .cinema-hero-carousel .cinema-hero-art {
  z-index: -2;
  top: calc(50% - 18px);
  right: var(--gutter);
  width: min(calc(61% - var(--gutter)), calc((var(--home-hero-height) - 128px) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  translate: 0 -50%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}
.cinema-site .cinema-hero-carousel .cinema-hero-ambient {
  z-index: -4;
  inset: -32px 0 auto;
  width: 100%;
  height: calc(100% + 64px);
  max-height: none;
  translate: none;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(36px);
  opacity: .72;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cinema-site .cinema-hero-carousel .cinema-hero-controls {
  bottom: 22px;
}
.cinema-site .cinema-hero-carousel .cinema-carousel-dot {
  background: transparent;
  border-radius: 14px;
}
.cinema-site .cinema-hero-carousel .cinema-carousel-dot:hover::after {
  background: var(--text);
}
.cinema-site .cinema-hero-carousel .cinema-carousel-dot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}
@media (max-width: 900px) {
  .cinema-site .cinema-hero-carousel {
    --home-cover-height: min(calc((100vw - 2 * var(--gutter)) * .5625), 400px);
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: calc(var(--home-cover-height) + 38px);
    padding-bottom: 18px;
    gap: 16px;
  }
  .cinema-site .cinema-hero-carousel .cinema-hero-copy {
    width: 100%;
  }
  .cinema-site .cinema-hero-carousel .cinema-hero-title {
    font-size: clamp(26px, 5vw, 38px);
  }
  .cinema-site .cinema-hero-carousel .cinema-hero-art {
    top: 16px;
    width: calc(100% - 2 * var(--gutter));
    height: var(--home-cover-height);
    max-height: none;
    translate: none;
  }
  .cinema-site .cinema-hero-carousel .cinema-hero-ambient {
    top: -16px;
    width: 100%;
    height: calc(100% + 32px);
    filter: blur(24px);
  }
  .cinema-site .cinema-hero-carousel::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), var(--bg) 92%);
  }
  .cinema-site .cinema-hero-carousel .cinema-hero-controls {
    position: static;
    justify-content: center;
  }
}

/* Personal watch history and streamer status filters. */
.cinema-site .home-continue {
  margin-top: clamp(16px, 2.6vw, 34px);
}
.cinema-site .continue-remaining {
  white-space: nowrap;
}
.cinema-site .cinema-streamer-filters.chips {
  flex-wrap: wrap;
  overflow: visible;
  margin: 0 0 16px;
  padding: 0;
}
.cinema-site .cinema-streamer-filter-label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 5px;
}
.cinema-site .cinema-streamer-filters button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .cinema-site .cinema-streamer-filter-label {
    flex-basis: 100%;
  }
  .cinema-site .cinema-streamer-filters button {
    padding-inline: 12px;
  }
}

/* === account-cinema.css === */
/* Personal cinema space: viewing first, settings one category at a time.
   All surfaces inherit the user's appearance palette. */
.cinema-site .cinema-account{display:block;max-width:1280px;margin:0 auto;min-width:0}
.cinema-account .account-head{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:8px 0 30px}
.cinema-account .account-person{display:flex;align-items:center;gap:22px;min-width:0}
.cinema-account .account-person>div{min-width:0}
.cinema-account .account-avatar{width:76px;height:76px;flex:0 0 76px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--surface);color:var(--accent);font:700 28px var(--display)}
.cinema-account .account-avatar img{width:100%;height:100%;object-fit:cover}
.cinema-account .account-label{font-size:13px;color:var(--muted);margin:0 0 5px}
.cinema-site .cinema-account .account-head h1{font-size:clamp(27px,3.2vw,42px);margin:0;overflow-wrap:anywhere;line-height:1.16}
.cinema-account .account-telegram{font-size:14px;color:var(--muted);margin:8px 0 0}
.cinema-account .account-more{position:relative;align-self:flex-start;margin-top:22px;flex-shrink:0}
.cinema-account .account-more summary{list-style:none;min-height:44px;display:flex;align-items:center;gap:9px;padding:8px 16px;cursor:pointer;border-radius:10px;color:var(--muted);background:var(--surface);font-size:14px}
.cinema-account .account-more summary::-webkit-details-marker{display:none}
.cinema-account .account-more summary::after{content:'⌄';font-size:16px}
.cinema-account .account-more-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(280px,calc(100vw - 40px));padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:10px;z-index:5}
.cinema-account .account-more-menu a{display:flex;align-items:center;min-height:44px;padding:9px 12px;text-decoration:none;color:var(--text);border-radius:6px}
.cinema-account .account-more-menu a:hover{background:var(--raised)}
.cinema-account .account-more-menu p{margin:8px 12px}
.cinema-account .account-nav{display:flex;gap:32px;border-bottom:1px solid var(--line);margin:0 0 34px;overflow-x:auto;scrollbar-width:thin;max-width:100%;padding:0 2px}
.cinema-account .account-nav>a{flex:0 0 auto;position:relative;display:flex;align-items:center;min-height:54px;padding:0 0 18px;color:var(--muted);text-decoration:none;font-weight:500;font-size:16px;white-space:nowrap}
.cinema-account .account-nav>a[aria-current=page]{color:var(--text)}
.cinema-account .account-nav>a[aria-current=page]::after{content:'';position:absolute;height:2px;left:0;right:0;bottom:0;background:var(--accent)}
.cinema-account .account-content{min-width:0}
.cinema-account .account-content>.section:first-of-type{margin-top:0}
.cinema-account .acc-title{font-size:28px;margin:0 0 24px}
.cinema-account .account-subnav{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 26px;min-width:0}
.cinema-account .account-subnav>a{min-height:44px;display:flex;align-items:center;white-space:nowrap;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;font-size:15px}
.cinema-account .account-subnav>a[aria-current=page]{color:var(--accent);border-bottom-color:var(--accent)}
.cinema-account .account-intro{max-width:64ch;margin:0 0 26px;line-height:1.7}
.cinema-account .account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:42px}
.cinema-account .account-shortcuts a{display:grid;gap:6px;padding:20px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--text);min-width:0}
.cinema-account .account-shortcuts strong{font-weight:600;font-size:18px}
.cinema-account .account-shortcuts span{color:var(--muted);font-size:14px}
.cinema-account .account-settings{display:grid;grid-template-columns:190px minmax(0,820px);gap:clamp(26px,5vw,80px);align-items:start}
.cinema-account .account-settings-nav{position:sticky;top:110px;display:grid;gap:5px;min-width:0}
.cinema-account .account-settings-nav button{font:500 15px var(--body);text-align:left;min-height:48px;padding:12px 16px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.cinema-account .account-settings-nav button:hover{background:var(--surface);color:var(--text)}
.cinema-account .account-settings-nav button[aria-selected=true]{background:var(--surface);color:var(--accent)}
.cinema-account .account-settings-nav button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.cinema-account .account-settings-content,.cinema-account .account-settings-pane{min-width:0}
.cinema-account .account-settings-pane[hidden]{display:none!important}
.cinema-account .account-settings-pane:not([hidden]){animation:account-pane-enter .18s ease-out both}
@keyframes account-pane-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
html[data-motion=reduced] .cinema-account .account-settings-pane{animation:none}
@media(prefers-reduced-motion:reduce){.cinema-account .account-settings-pane:not([hidden]){animation:none}}
.cinema-account .account-settings-pane>.panel{display:grid;gap:18px;padding:0;border:0;background:transparent;border-radius:0;margin:0;box-shadow:none}
.cinema-account .account-settings-pane>.panel+.panel{border-top:1px solid var(--line);padding-top:32px;margin-top:32px}
.cinema-account .account-settings-pane h2{font-size:23px;line-height:1.3;margin:0}
.cinema-account .account-settings-pane p{line-height:1.65;margin:0;max-width:64ch}
.cinema-account .account-settings-pane .field{margin:0;max-width:480px;gap:9px}
.cinema-account .account-settings-pane .field>span{color:var(--muted);font-size:14px}
.cinema-account .account-settings-pane :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select){width:100%;min-width:0;max-width:100%;min-height:48px;border-radius:var(--personal-button-radius,8px);background:var(--surface)}
.cinema-account .account-settings-pane .check{align-items:flex-start;gap:12px;line-height:1.6;margin:0}
.cinema-account .account-settings-pane .check input{flex-shrink:0;margin-top:5px}
.cinema-account .account-settings-pane .row{flex-wrap:wrap;gap:10px;min-width:0}
.cinema-account .account-settings-pane .row>.btn{white-space:normal;max-width:100%;text-align:center}
.cinema-account .account-settings-pane .notice{padding:14px 16px;border-radius:8px;font-size:14px}
.cinema-account .account-settings-pane .appearance-panel{container-type:inline-size;display:block}
.cinema-account .appearance-section{margin-top:30px}
.cinema-account .appearance-heading{gap:16px;align-items:center}
.cinema-account .appearance-heading p{margin-top:10px}
.cinema-account .appearance-panel .appearance-preview{margin-top:26px;border:0;background:var(--surface);border-radius:10px}
.cinema-account .appearance-panel .appearance-preview p{margin:7px 0 12px}
.cinema-account .appearance-panel .appearance-controls{margin-top:28px}
.cinema-account .appearance-panel .theme-choice{background:var(--bg);border-radius:var(--personal-button-radius,8px)}
.cinema-account .appearance-panel .theme-choice-description{font-size:12px}
.cinema-account .video-reactions-preference{display:grid;gap:10px}
.cinema-account .keys-ref summary,.cinema-account .account-data-actions>summary{cursor:pointer;min-height:48px;padding:12px 0;color:var(--muted);line-height:1.5}
.cinema-account .account-data-actions{margin-top:30px;padding-top:16px;border-top:1px solid var(--line)}
.cinema-account .account-data-actions>.panel{padding:20px 0 0;background:transparent;border:0;border-radius:0;display:grid;gap:18px}
.cinema-account .list-item{background:transparent;border-width:0 0 1px;border-radius:0;padding:20px 0;gap:18px;min-width:0}
.cinema-account .list-item>div{min-width:0;overflow-wrap:anywhere}
.cinema-account .list-item .small{margin-top:5px}
.cinema-account .follow-row{display:flex;align-items:center;justify-content:space-between;background:transparent;border-width:0 0 1px;border-radius:0;padding:16px 0;gap:18px}
.cinema-account .top-s{background:transparent;border:0;padding:0;min-width:0}
.cinema-account .top-s>span{min-width:0;overflow-wrap:anywhere}
.cinema-account .top-s img,.cinema-account .top-s .ph{width:100px;height:64px;object-fit:cover;border-radius:8px;flex-shrink:0}
.cinema-account .my-comment .body{margin-top:10px;line-height:1.65}
.cinema-account .acc-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:10px 0 38px}
.cinema-account .acc-stat{padding:20px 0;background:transparent;border-width:1px 0 0;border-radius:0;gap:10px}
.cinema-account .acc-stat b{font-size:30px;font-weight:650}
.cinema-account .stats-sec{background:transparent;border:0;padding:0}
.cinema-account .stats-kinds .kind{min-width:0}
.cinema-account .export-selection{background:var(--surface);border:0;padding:24px;box-shadow:none}
@media(max-width:760px){
 .cinema-account .account-head{gap:16px;padding:0 0 24px;align-items:flex-start}
 .cinema-account .account-person{gap:14px;align-items:flex-start}
 .cinema-account .account-avatar{width:52px;height:52px;flex-basis:52px;font-size:22px}
 .cinema-site .cinema-account .account-head h1{font-size:25px;letter-spacing:-.03em}
 .cinema-account .account-label{font-size:12px;margin-bottom:6px}
 .cinema-account .account-telegram{font-size:13px;margin-top:6px}
 .cinema-account .account-more{margin-top:4px}
 .cinema-account .account-more summary{padding:6px 10px;font-size:13px}
 .cinema-account .account-nav{gap:24px;margin-bottom:28px}
 .cinema-account .account-nav>a{font-size:14px;min-height:48px;padding-bottom:14px}
 .cinema-account .acc-title{font-size:25px;margin-bottom:20px}
 .cinema-account .account-subnav{gap:4px 20px;margin-bottom:24px}
 .cinema-account .account-subnav>a{font-size:14px}
 .cinema-account .account-settings{display:block}
 .cinema-account .account-settings-nav{position:static;display:flex;overflow-x:auto;gap:6px;margin-bottom:28px;padding:4px 2px 8px;scrollbar-width:thin}
 .cinema-account .account-settings-nav button{flex:0 0 auto;min-height:44px;padding:10px 14px;font-size:14px}
 .cinema-account .account-settings-pane h2{font-size:21px}
 .cinema-account .account-settings-pane>.panel+.panel{padding-top:26px;margin-top:26px}
 .cinema-account .account-shortcuts{grid-template-columns:1fr;gap:0;margin-top:32px}
 .cinema-account .account-shortcuts a{padding:18px 0}
 .cinema-account .account-shortcuts strong{font-size:17px}
 .cinema-account .acc-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .cinema-account .acc-stat b{font-size:25px}
 .cinema-account .list-item{flex-wrap:wrap;gap:12px}
 .cinema-account .list-item>.btn{margin-left:0!important}
 .cinema-account .follow-row{flex-wrap:wrap;gap:14px}
 .cinema-account .follow-row .top-s{flex:1 1 100%}
 .cinema-account .top-s img,.cinema-account .top-s .ph{width:84px;height:56px}
 .cinema-account .appearance-heading .btn{width:auto}
 .cinema-account .export-selection{padding:18px}
}
@media(max-width:380px){
 .cinema-account .account-avatar{display:none}
 .cinema-account .account-settings-pane .row>.btn{width:100%}
 .cinema-account .appearance-heading .btn{width:100%}
 .cinema-account .account-settings-pane .appearance-controls{grid-template-columns:minmax(0,1fr)}
}

/* === catalog-metadata.css === */
/* Metadata stays visible in every saved catalogue layout, including compact. */
.cinema-site .grid.view-compact .card .meta,
.cinema-site .grid.recs.view-compact .card .meta { display: flex; }
.recording-views { white-space: nowrap; font-variant-numeric: tabular-nums; }
.streamer-status {
  --streamer-status-color: var(--accent);
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  color: var(--streamer-status-color);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.streamer-status.completed { --streamer-status-color: var(--ok); }
.streamer-status.dropped { --streamer-status-color: var(--warn); }
.streamer-status-context { color: var(--muted); font-weight: 400; }
.cinema-site .cinema-hero-detail .streamer-status { margin: 0 0 14px; }
.playlist .streamer-status { margin: 4px 0; }
.streamer-status-select { max-width: 100%; min-width: 150px; }
.admin-cinema .table-wrap select.streamer-status-select {
  width: 190px;
  min-width: 190px;
  max-width: none;
}
@media (max-width: 760px) {
  .cinema-site .card .streamer-status { font-size: 11px; padding: 2px 6px; gap: 1px 5px; }
}

/* === site-motion.css === */
:root { --site-motion-ease: cubic-bezier(.2,.75,.25,1); }
.cinema-site :is(.browse-tabs a,.chips button,.view-switch button,.watch-tabs button) {
  transition: color 140ms var(--site-motion-ease), background-color 140ms var(--site-motion-ease),
    border-color 140ms var(--site-motion-ease), transform 120ms var(--site-motion-ease);
}
.cinema-site :is(.browse-tabs a,.chips button,.view-switch button,.watch-tabs button):active:not(:disabled) {
  transform: scale(.98);
}
.cinema-site .site-menu-panel { animation: none; transform-origin: top right; }
.cinema-site .btn,.cinema-site .cinema-hero-controls>button {
  transition-timing-function: var(--site-motion-ease);
}
.cinema-site dialog {
  opacity: 0;
  transform: translateY(4px) scale(.995);
  transition: opacity 110ms var(--site-motion-ease), transform 110ms var(--site-motion-ease),
    display 110ms allow-discrete, overlay 110ms allow-discrete;
  transform-origin: center;
}
.cinema-site dialog[open] {
  opacity: 1;
  transform: none;
  transition-duration: 180ms;
}
.cinema-site dialog::backdrop {
  opacity: 0;
  transition: opacity 110ms var(--site-motion-ease), display 110ms allow-discrete, overlay 110ms allow-discrete;
}
.cinema-site dialog[open]::backdrop { opacity: 1; transition-duration: 180ms; }
@starting-style {
  .cinema-site dialog[open] { opacity: 0; transform: translateY(6px) scale(.995); }
  .cinema-site dialog[open]::backdrop { opacity: 0; }
}
::view-transition-old(root) { animation: site-route-out 100ms var(--site-motion-ease) both; }
::view-transition-new(root) { animation: site-route-in 180ms var(--site-motion-ease) both; }
@keyframes site-route-out { to { opacity: 0; } }
@keyframes site-route-in { from { opacity: .4; } }
html[data-motion-input=keyboard] .cinema-site :is(.btn,.card,.thumb,.thumb img,.nav-ink,.browse-tabs a,.chips button,.view-switch button,.watch-tabs button,.site-menu-panel,dialog),
html[data-motion-input=keyboard] .cinema-site dialog::backdrop {
  animation: none !important;
  transition: none !important;
}
html[data-motion-input=keyboard] .cinema-site :is(.btn,.card,.thumb,.thumb img,.browse-tabs a,.chips button,.view-switch button,.watch-tabs button):active {
  transform: none;
}
html[data-motion-input=keyboard]::view-transition-old(root),
html[data-motion-input=keyboard]::view-transition-new(root) { animation: none; }
html[data-motion=reduced] .cinema-site :is(.btn,.card,.thumb,.thumb img,.nav-ink,.browse-tabs a,.chips button,.view-switch button,.watch-tabs button,dialog,.site-menu-panel),
html[data-motion=reduced] .cinema-site dialog::backdrop {
  transition: none;
  animation: none;
}
html[data-motion=reduced] .cinema-site :is(.btn,.card,.thumb,.thumb img,.browse-tabs a,.chips button,.view-switch button,.watch-tabs button):active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cinema-site :is(.btn,.card,.thumb,.thumb img,.nav-ink,.browse-tabs a,.chips button,.view-switch button,.watch-tabs button,.site-menu-panel,dialog),
  .cinema-site dialog::backdrop { animation: none !important; transition: none !important; }
  .cinema-site :is(.btn,.card,.thumb,.thumb img,.browse-tabs a,.chips button,.view-switch button,.watch-tabs button):active { transform: none; }
  ::view-transition-old(root),::view-transition-new(root) { animation: none; }
}

