/* srtim — public site */
/* The server-built copy of a page (site/seo.js) — seen by crawlers / without JavaScript, replaced as site.js starts. */
.seo-pre { padding: 28px 16px; line-height: 1.7; }
.seo-pre img { border-radius: 10px; }
.seo-pre a { color: var(--accent-light, #ff6b7d); }
:root {
  --accent: #e5253b;
  --accent-dark: #b9162a;
  --accent-soft: #fde8eb;
  --hdr: #121318;
  --hdr-2: #1b1d24;
  --bg: #f3f4f7;
  --card: #ffffff;
  --text: #1a1c22;
  --muted: #6a6f7d;
  --faint: #9aa0ad;
  --line: #e3e5eb;
  --ok: #17915a;
  --ok-soft: #e3f6ec;
  --warn: #c77700;
  --warn-soft: #fff3df;
  --info: #1f6fd1;
  --info-soft: #e5f0fd;
  --danger: #d0263a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 18, 27, .06), 0 4px 18px rgba(16, 18, 27, .06);
  --shadow-lg: 0 10px 40px rgba(16, 18, 27, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.link, .link { color: var(--accent); font-weight: 500; }
a.link:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.view { flex: 1; width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.hdr { background: var(--hdr); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hdr-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.3px; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(229, 37, 59, .45); }
.logo-mark svg { width: 37px; height: 37px; direction: ltr; }
.logo-word { direction: ltr; letter-spacing: .3px; }
.logo-word b { color: var(--accent); font-weight: 800; }
/* ".io" — the domain ending, quieter than the name */
.logo-word i, .hb-word i { font-style: normal; font-weight: 600; opacity: .55; letter-spacing: 0; }
.logo-tag { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: 2px 9px; border-radius: 99px; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; padding: 8px 13px; border-radius: 9px; color: #c9ccd6; font-weight: 500; font-size: 15px; transition: background .15s, color .15s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.hdr-search { flex: 1; max-width: 360px; margin-inline-start: auto; position: relative; }
.hdr-search input { width: 100%; height: 40px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); color: #fff; padding: 0 42px 0 16px; outline: none; transition: background .15s, border-color .15s; }
.hdr-search input::placeholder { color: #9599a6; }
.hdr-search input:focus { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.hdr-search svg { position: absolute; inset-inline-start: 14px; top: 11px; width: 18px; height: 18px; fill: #9599a6; pointer-events: none; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-search + .hdr-actions { margin-inline-start: 0; }
.hdr-actions.push { margin-inline-start: auto; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.burger svg { width: 26px; height: 26px; fill: currentColor; }

.user-btn { display: flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; padding: 4px 6px 4px 14px; cursor: pointer; color: #fff; position: relative; }
.user-btn:hover { background: rgba(255, 255, 255, .12); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #e5253b, #ff7a59); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; }
.dot { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--hdr); }
.hdr-actions { gap: 10px; }
.mail-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; flex: none; }
.mail-btn:hover { background: rgba(255, 255, 255, .12); }
.mail-btn svg { width: 20px; height: 20px; fill: currentColor; }
.menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: #fff; color: var(--text); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 210px; padding: 6px; z-index: 60; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; text-align: start; font-size: 14.5px; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu svg { width: 18px; height: 18px; fill: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .badge { margin-inline-start: auto; }

.banner { background: linear-gradient(90deg, #ffcd4d, #ffb020); color: #3d2a00; text-align: center; padding: 8px 16px; font-weight: 500; font-size: 14px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:hover { background: #f7f8fa; border-color: #d4d7df; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(229, 37, 59, .3); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark { background: var(--hdr); border-color: var(--hdr); color: #fff; }
.btn-dark:hover { background: #2a2c35; border-color: #2a2c35; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); border-color: transparent; }
.btn-ghost-light { background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #127a4b; border-color: #127a4b; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fff1f2; border-color: #f6c3c9; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); transition: all .15s; }
.icon-btn:hover { color: var(--accent); border-color: #f3b9c0; background: var(--accent-soft); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, select.input {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea, textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229, 37, 59, .12); }
.input-wrap { position: relative; }
.input-wrap .eye { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--faint); padding: 4px; }
.input-wrap .eye svg { width: 20px; height: 20px; fill: currentColor; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.form-error { background: #fff1f2; color: #b3192c; border: 1px solid #f9cdd3; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: #eef0f4; color: #3d414c; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.chip.imdb { background: #f5c518; color: #000; font-weight: 700; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #eef0f4; color: #4b4f5b; white-space: nowrap; }
.badge.red { background: var(--accent-soft); color: var(--accent-dark); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.dark { background: var(--hdr); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(229, 37, 59, .35), transparent 60%), linear-gradient(180deg, #16171d, #0f1014); overflow: hidden; }
.hero-mosaic { position: absolute; inset: -120px -40px; display: flex; flex-direction: column; justify-content: center; gap: 10px; transform: rotate(-8deg) scale(1.15); opacity: .16; pointer-events: none; direction: ltr; }
.hm-row { overflow: visible; }
/* each track holds its posters four times; -50% = exactly two copies (spacing is per-poster margin, not gap, so it divides evenly) */
.hm-track { display: flex; width: max-content; animation: hm-drift 240s linear infinite; will-change: transform; }
.hm-row:nth-child(even) .hm-track { animation-direction: reverse; animation-duration: 300s; }
.hm-track img { flex: none; width: 150px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: #2a2c35; margin-right: 10px; }
@keyframes hm-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 16, 20, .55), rgba(15, 16, 20, .92)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 72px 20px 64px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: #c9ccd6; margin: 0 0 30px; }
.hero-search { position: relative; max-width: 660px; margin: 0 auto; }
.hero-search input { width: 100%; height: 62px; border-radius: 99px; border: 0; padding: 0 64px 0 140px; font-size: 18px; color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); outline: none; }
.hero-search > svg { position: absolute; inset-inline-start: 24px; top: 20px; width: 22px; height: 22px; fill: var(--faint); }
.hero-search .btn { position: absolute; inset-inline-end: 7px; top: 7px; height: 48px; }
.hero-stats { display: flex; justify-content: center; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { color: #9ea2ae; font-size: 14px; }
/* brand + headline/search as one lockup: logo column, divider, content column on wide screens; stacked and centered otherwise */
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; }
.hb-mark { width: 84px; height: 84px; border-radius: 22px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 36px rgba(229, 37, 59, .55); }
.hb-mark svg { width: 82px; height: 82px; direction: ltr; }
.hb-word { direction: ltr; font-size: 44px; font-weight: 800; letter-spacing: .5px; line-height: 1; }
.hb-word b { color: var(--accent); font-weight: 800; }
.hb-tag { font-size: 14px; font-weight: 600; color: #c9ccd6; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: 4px 14px; border-radius: 99px; }
@media (min-width: 1100px) {
  .hero-in.hero-split { max-width: 1140px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 44px; text-align: start; }
  .hero-split .hero-brand { margin: 0; gap: 16px; padding-inline-end: 44px; border-inline-end: 2px solid rgba(255, 255, 255, .16); }
  .hero-split .hb-mark { width: 150px; height: 150px; border-radius: 36px; }
  .hero-split .hb-mark svg { width: 146px; height: 146px; }
  .hero-split .hb-word { font-size: 76px; letter-spacing: 1px; }
  .hero-split .hb-tag { font-size: 16px; }
  .hero-split .hero-search { margin: 0; max-width: none; }
  .hero-split .hero-stats, .hero-split .hero-cta { justify-content: flex-start; }
}
.hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff; color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; text-align: start; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.sel { background: var(--bg); }
.suggest img, .suggest .ph { width: 36px; height: 54px; border-radius: 5px; object-fit: cover; background: #e8eaef; flex: none; }
.suggest .t { font-weight: 600; }
.suggest .s { font-size: 13px; color: var(--muted); }
.suggest .n { margin-inline-start: auto; }
.suggest .all { justify-content: center; color: var(--accent); font-weight: 600; font-size: 14px; }
.hdr-search .suggest { top: calc(100% + 10px); min-width: 340px; }

/* ---------- sections ---------- */
.section { margin: 40px auto; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sec-head h2 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sec-head h2 .ic svg { width: 19px; height: 19px; fill: currentColor; }
.sec-head .more { margin-inline-start: auto; }
.page-title { font-size: 30px; font-weight: 800; margin: 30px 0 6px; letter-spacing: -.3px; }
.page-sub { color: var(--muted); margin: 0 0 24px; }

/* carousel */
.carousel { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; cursor: pointer; z-index: 5; color: var(--text); transition: transform .15s; }
.rail-btn:hover { transform: scale(1.08); }
.rail-btn svg { width: 22px; height: 22px; fill: currentColor; }
.rail-btn.prev { inset-inline-start: -18px; }
.rail-btn.next { inset-inline-end: -18px; }

/* film cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.card { display: block; position: relative; }
.card .pst { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2a2c35, #3b3e49); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover .pst { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 18, 27, .22); }
.card .pst img { width: 100%; height: 100%; object-fit: cover; }
.card .pst .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; color: #d3d5dc; font-weight: 600; font-size: 15px; }
.card .pst .cnt { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(15, 16, 20, .82); color: #fff; backdrop-filter: blur(6px); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.card .pst .cnt svg { width: 13px; height: 13px; fill: #fff; }
.card .pst .hot { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--accent); color: #fff; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; box-shadow: 0 3px 10px rgba(229, 37, 59, .45); }
.card .pst .hot svg { width: 13px; height: 13px; fill: #fff; }
.card .ttl { margin-top: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .when { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* hot slider: pages of 5 */
.hs { position: relative; }
.hs-track { position: relative; }
.hs-page { display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; animation: hsIn .45s ease; }
.hs-page.on { display: grid; }
@keyframes hsIn { from { opacity: 0; transform: translateX(-14px); } }
.hs .rail-btn { top: 36%; }
.hs-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.hs-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #cfd3dc; cursor: pointer; transition: background .2s, transform .2s; }
.hs-dots button.on { background: var(--accent); transform: scale(1.25); }
.card .pst .cnt.soon { background: rgba(245, 160, 32, .92); color: #2b1a00; }
/* recent subtitles table */
.rt { overflow: hidden; }
.rt-row { display: grid; grid-template-columns: 46px minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 16px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.rt-row:last-child { border-bottom: 0; }
.rt-row:hover { background: #fafbfc; }
.rt-pst { width: 46px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: #e8eaef; }
.rt-pst img { width: 100%; height: 100%; object-fit: cover; }
.rt-title { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.rt-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 3px; }
.rt-genre::before { content: '·'; margin-inline-end: 6px; color: var(--faint); }
.rt-subinfo { min-width: 0; font-size: 13.5px; }
.rt-subinfo .rel { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-subinfo .credit-line { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.rt-subinfo .credit-line span { overflow: hidden; text-overflow: ellipsis; }
.rt-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.rt-meta .badge svg { width: 13px; height: 13px; fill: currentColor; margin-inline-end: 3px; }
/* film without subtitles yet */
.soon-box { text-align: center; padding: 40px 20px; }
.soon-box > svg { width: 44px; height: 44px; fill: #f0a020; }
.soon-box h3 { font-size: 24px; margin: 6px 0; color: #b86e00; }
.soon-who { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.tm-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tm-row img { width: 46px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; background: #e8eaef; }
.tm-ov { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }

/* features strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.feature .ic svg { width: 22px; height: 22px; fill: currentColor; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- panels ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 22px 24px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 18px; }
.panel-head .end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filters .input { height: 42px; width: auto; min-width: 150px; }
.filters .grow { flex: 1; min-width: 220px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 14px; user-select: none; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 30px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; padding: 0 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .gap { background: none; border: 0; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; fill: #c9ccd5; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin: 0 0 6px; }

/* ---------- film page ---------- */
.film-hero { position: relative; color: #fff; overflow: hidden; background: #121318; }
.film-hero .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.1); }
.film-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 19, 24, .3), rgba(18, 19, 24, .85)); }
.film-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 40px 20px; max-width: 1240px; margin: 0 auto; align-items: start; }
.film-poster { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); aspect-ratio: 2/3; background: #2a2c35; position: relative; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; }
.film-info h1 { font-size: clamp(28px, 4vw, 42px); margin: 0; line-height: 1.15; font-weight: 800; }
.film-info .alt { font-size: 19px; color: #c5c8d2; margin: 6px 0 16px; direction: ltr; text-align: right; unicode-bidi: plaintext; }
.film-info .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.film-info .chips .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.film-info .chips .chip.imdb { background: #f5c518; color: #000; }
.film-info .overview { color: #dfe1e7; font-size: 16px; line-height: 1.7; max-width: 760px; margin: 0 0 18px; }
.film-info .credits { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin-bottom: 22px; }
.film-info .credits dt { color: #9ea2ae; font-weight: 500; }
.film-info .credits dd { margin: 0; color: #eef0f4; }
.film-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trailer { margin-top: 26px; max-width: 760px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; position: relative; cursor: pointer; }
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.trailer:hover img { opacity: 1; }
.trailer .play { position: absolute; inset: 0; display: grid; place-items: center; }
.trailer .play span { width: 72px; height: 50px; border-radius: 14px; background: #ff0033; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.trailer .play svg { width: 28px; height: 28px; fill: #fff; }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.ef { display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.ef-poster { display: flex; flex-direction: column; gap: 8px; }
.ef-pimg { aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: #e8eaef; }
.ef-pimg img { width: 100%; height: 100%; object-fit: cover; }
.ef-purl { display: flex; gap: 6px; }
.ef-purl .input { height: 32px; font-size: 12.5px; padding: 0 8px; min-width: 0; }
.ef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ef .field { margin-bottom: 12px; }
.kt-item { border-bottom: 1px solid var(--line); }
.kt-loading { display: flex; gap: 16px; align-items: center; padding: 26px 24px; }
.perm-main { padding: 6px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.perm-list { display: grid; gap: 12px; padding-inline-start: 26px; }
.perm-list.off { opacity: .4; pointer-events: none; }
.kt-item:last-child { border-bottom: 0; }
.kt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; }
.kt-body { padding: 0 0 14px; background: #fafbfc; }
.kt-status { padding: 12px 22px; font-size: 14px; }
.kt-actions { display: flex; gap: 12px; align-items: center; padding: 10px 22px 0; flex-wrap: wrap; }
@media (max-width: 720px) { .ef { grid-template-columns: 1fr; } .ef-poster { max-width: 200px; } .ef-row { grid-template-columns: 1fr; } }

.subs-panel { margin: 30px auto 50px; }
.subs-table { width: 100%; border-collapse: collapse; }
.subs-table th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.subs-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.subs-table tr:last-child td { border-bottom: 0; }
.subs-table tr:hover td { background: #fcfcfd; }
.rel { font-weight: 600; direction: ltr; text-align: right; unicode-bidi: plaintext; word-break: break-word; }
.rel-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.rel-meta b { color: #4b4f5b; font-weight: 600; }
.subs-table .act { white-space: nowrap; text-align: end; }
.table .rel { min-width: 220px; }
@media (max-width: 1150px) { .hdr-search { display: none; } }
.credit-line { font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.credit-line span + span::before { content: '|'; color: var(--faint); margin: 0 7px; }
.credit-line .cr { color: #c0263a; }
.credit-line .up { color: var(--info); }
.credit-line .inf { color: var(--muted, #6b7280); }
.link-btn { background: none; border: 0; padding: 4px 0 0; color: var(--info); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { opacity: .5; cursor: wait; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.locked { text-align: center; padding: 46px 20px 40px; }
.locked > svg { width: 46px; height: 46px; fill: #c9ccd5; }
.locked h3 { font-size: 22px; margin: 8px 0 6px; }
.locked p { margin: 0 auto 18px; max-width: 460px; }
.locked-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.plink { color: #fff; border-bottom: 1px dotted rgba(255, 255, 255, .45); }
.plink:hover { color: #ff8a98; border-bottom-color: #ff8a98; }
.person-head { display: flex; gap: 26px; padding: 26px; margin-top: 30px; align-items: flex-start; }
.person-photo { width: 170px; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; flex: none; position: relative; background: linear-gradient(135deg, #2a2c35, #3b3e49); display: grid; place-items: center; box-shadow: var(--shadow); }
.person-photo span { color: #d3d5dc; font-size: 54px; font-weight: 800; }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-info h1 { margin: 0; font-size: 32px; }
.person-info .alt { color: var(--muted); font-size: 17px; text-align: right; }
.person-info .bio { line-height: 1.75; color: #3d414c; margin: 14px 0 4px; max-width: 820px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.person-info .bio.open { -webkit-line-clamp: unset; display: block; }
.subs-table .act > * { vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; }
.m-only { display: none; }

/* ---------- auth pages ---------- */
.auth { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 64px); }
.auth-art { position: relative; overflow: hidden; background: #0f1014; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; }
/* same drifting poster rows as the home hero (heroMosaic), bigger and brighter */
.auth-art .mosaic { position: absolute; inset: -140px -60px; display: flex; flex-direction: column; justify-content: center; gap: 12px; transform: rotate(-10deg) scale(1.2); opacity: .5; pointer-events: none; direction: ltr; }
.auth-art .hm-track img { width: 180px; border-radius: 10px; background: #23252d; margin-right: 12px; }
.auth-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.auth-brand .hb-mark { width: 96px; height: 96px; border-radius: 24px; }
.auth-brand .hb-mark svg { width: 94px; height: 94px; }
.auth-brand .hb-word { font-size: 64px; letter-spacing: 1px; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 16, 20, .97) 25%, rgba(15, 16, 20, .55) 70%, rgba(15, 16, 20, .35)), radial-gradient(600px 300px at 20% 100%, rgba(229, 37, 59, .35), transparent 70%); }
.auth-art-in { position: relative; z-index: 2; max-width: 520px; }
.auth-art h2 { font-size: 40px; line-height: 1.12; margin: 0 0 14px; font-weight: 800; }
.auth-art h2 em { color: var(--accent); font-style: normal; }
.auth-art p { color: #c3c6d0; font-size: 17px; margin: 0 0 26px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.perks li .ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(229, 37, 59, .2); display: grid; place-items: center; flex: none; }
.perks li .ic svg { width: 17px; height: 17px; fill: #ff5a6c; }
.perks li b { display: block; }
.perks li span { color: #a9adb9; font-size: 14px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 34px 32px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.auth-tabs a.on { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.auth-card h1 { font-size: 26px; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---------- profile / messages ---------- */
.prof-head { display: flex; align-items: center; gap: 20px; padding: 26px; }
.prof-head h1 { margin: 0; font-size: 26px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 14px 14px 12px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.meter { background: var(--bg); border-radius: 12px; padding: 18px; }
.meter .lbl { color: var(--muted); font-size: 14px; }
.meter .val { font-size: 28px; font-weight: 800; margin: 4px 0 10px; }
.meter .val small { font-size: 15px; color: var(--muted); font-weight: 500; }
.bar { height: 8px; border-radius: 4px; background: #e2e4ea; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.keybox { display: flex; gap: 10px; align-items: center; background: #0f1014; color: #7dffb0; font-family: ui-monospace, Consolas, monospace; padding: 14px 16px; border-radius: 12px; direction: ltr; font-size: 15px; word-break: break-all; }
.keybox code { flex: 1; }
.keybox .btn { flex: none; }
.code { background: #0f1014; color: #e6e8ee; border-radius: 12px; padding: 16px 18px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; direction: ltr; text-align: left; overflow-x: auto; white-space: pre; line-height: 1.6; }
.code .c { color: #8b93a7; }
.code .k { color: #ff8095; }
.code .s { color: #8fe3a8; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.thread-list a { display: flex; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.thread-list a:hover { background: #fafbfc; }
.thread-list a.unread .t { font-weight: 700; }
.thread-list .t { font-size: 15.5px; }
.thread-list .s { font-size: 13px; color: var(--muted); }
.thread-list .end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.chat { padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #f7f8fa; max-height: 60vh; overflow-y: auto; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg.them { align-self: flex-end; background: #1f2229; color: #fff; border-start-end-radius: 4px; }
.msg .meta { font-size: 12px; opacity: .65; margin-bottom: 4px; font-weight: 600; }
.reply-box { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); align-items: flex-end; }
.reply-box textarea { flex: 1; min-height: 52px; height: 52px; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); flex: 1; }
.side { background: #1e2028; color: #c9ccd6; padding: 18px 12px; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 12px; color: #fff; font-weight: 600; }
.side a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; margin-bottom: 2px; }
.side a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.on { background: var(--accent); color: #fff; }
.side a svg { width: 19px; height: 19px; fill: currentColor; opacity: .85; }
.side a .badge { margin-inline-start: auto; background: rgba(255, 255, 255, .15); color: #fff; }
.side a.on .badge { background: rgba(255, 255, 255, .25); }
.admin-main { padding: 26px 28px 60px; min-width: 0; }
.admin-main h1 { margin: 0 0 20px; font-size: 26px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 26px; }
.tile { display: flex; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile .ic { width: 84px; display: grid; place-items: center; flex: none; }
.tile .ic svg { width: 36px; height: 36px; fill: #fff; }
.tile .bd { padding: 16px 18px; }
.tile .bd span { color: var(--muted); font-size: 14px; }
.tile .bd b { display: block; font-size: 30px; font-weight: 800; line-height: 1.2; }
.tile.c1 .ic { background: linear-gradient(135deg, #12b4e6, #0b8fd4); }
.tile.c2 .ic { background: linear-gradient(135deg, #20c374, #11994f); }
.tile.c3 .ic { background: linear-gradient(135deg, #ffad1f, #f08a00); }
.tile.c4 .ic { background: linear-gradient(135deg, #f0465a, #c81e33); }
.tile.c5 .ic { background: linear-gradient(135deg, #8b5cf6, #6d3fe0); }
.tile.c6 .ic { background: linear-gradient(135deg, #3b4252, #22262f); }
.shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
.shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 14px 6px; border-radius: 12px; background: #fafbfc; border: 1px solid var(--line); font-size: 13px; text-align: center; }
.shortcuts a:hover { border-color: var(--accent); color: var(--accent); }
.shortcuts svg { width: 24px; height: 24px; fill: currentColor; }
.pst-xs { width: 38px; height: 57px; border-radius: 5px; object-fit: cover; background: #e8eaef; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d5d8df; border-radius: 12px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; inset-inline-start: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(-18px); }
.report-card { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.report-card:last-child { border-bottom: 0; }
.report-card .why { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-card .note { background: var(--bg); border-radius: 10px; padding: 10px 14px; margin-top: 8px; white-space: pre-wrap; }
.report-card .acts { display: flex; flex-direction: column; gap: 6px; }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 0; min-height: 520px; }
.split > :first-child { border-inline-end: 1px solid var(--line); max-height: 75vh; overflow-y: auto; }
.thread-list a.sel { background: var(--accent-soft); }

/* ---------- copyright / takedown ---------- */
.td-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.td-roles { display: flex; gap: 22px; flex-wrap: wrap; }
.prose .en { background: var(--bg); border-radius: 10px; padding: 12px 16px; color: #3d414c; line-height: 1.7; font-size: 14.5px; }
.td-banner { display: flex; gap: 12px; align-items: flex-start; background: #fff1f2; border-bottom: 1px solid #f9cdd3; padding: 12px 22px; font-size: 14px; }
.td-banner > svg { width: 22px; height: 22px; fill: var(--accent); flex: none; margin-top: 2px; }
.td-films { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.td-films span { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 720px) { .td-grid { grid-template-columns: 1fr; } }

/* ---------- review editor ---------- */
.rv-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; padding: 18px 22px; flex-wrap: wrap; }
.rv-head h1 { margin: 4px 0 2px; font-size: 24px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-head .rel { font-size: 15px; }
.rv-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rv-meta .cr { color: #c0263a; }
.rv-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-reports { background: #fff1f2; border: 1px solid #f9cdd3; border-radius: 12px; padding: 10px 16px; margin-top: 14px; font-size: 14px; display: grid; gap: 4px; }
.rv-reports svg { width: 14px; height: 14px; fill: var(--accent); vertical-align: -2px; }
.rv-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 14px 0; }
.rv-stat { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); border-top: 3px solid #e3e5eb; }
.rv-stat b { display: block; font-size: 20px; font-weight: 800; }
.rv-stat span { font-size: 12.5px; color: var(--muted); }
.rv-stat.good { border-top-color: var(--ok); }
.rv-stat.warn { border-top-color: #f0a020; }
.rv-stat.bad { border-top-color: var(--accent); }
.rv-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rv-tools #rv-q { width: 240px; height: 40px; }
.rv-shift { display: flex; gap: 6px; align-items: center; }
.rv-shift .input { width: 130px; height: 36px; }
.rv-body { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1400px) { .rv-body { grid-template-columns: 1fr 380px; } .rv-side { position: sticky; top: 80px; } }
@media (max-width: 1399px) { .rv-side { order: -1; max-width: 560px; width: 100%; margin: 0 auto; } }
.rv-list { max-height: calc(100vh - 230px); overflow-y: auto; }
.rv-row { display: grid; grid-template-columns: 40px 124px minmax(0, 1fr) 30px; gap: 10px; align-items: start; padding: 8px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rv-row:hover { background: #fafbfc; }
.rv-row.sel { background: var(--accent-soft); }
.rv-n { color: var(--faint); font-size: 12.5px; padding-top: 8px; font-variant-numeric: tabular-nums; }
.rv-times { display: grid; gap: 3px; }
.rv-t { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 2px 6px; font: 12.5px ui-monospace, Consolas, monospace; color: #4b4f5b; }
.rv-t:hover, .rv-t:focus { border-color: var(--line); background: #fff; outline: none; }
.rv-t.bad { border-color: var(--accent); background: #fff1f2; }
.rv-dur { font-size: 11.5px; color: var(--faint); padding-inline-start: 6px; }
/* plaintext keeps each line's own reading order (an English line stays readable), but "start" would then put an
   English-first line on the left — subtitles here are right-aligned Hebrew, so pin every line to the right */
.rv-text { width: 100%; resize: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 15px; line-height: 1.5; background: transparent; unicode-bidi: plaintext; text-align: right; overflow: hidden; }
.rv-text:hover, .rv-text:focus { border-color: var(--line); background: #fff; outline: none; }
.rv-text:focus { border-color: var(--accent); }
.rv-main { min-width: 0; }
.rv-iss { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; }
.rv-iss:empty { display: none; }
.rv-del { width: 28px; height: 28px; margin-top: 4px; opacity: .4; }
.rv-row:hover .rv-del { opacity: 1; }
.rv-rawtext { width: 100%; min-height: calc(100vh - 260px); border: 0; padding: 16px; font: 13.5px/1.6 ui-monospace, Consolas, monospace; resize: vertical; outline: none; border-radius: var(--radius); }
/* The preview scales like a player: text size follows the "video" width (cqw), so a line that fits on a TV fits here. */
.rv-screen { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 30%, #2b2f3a, #0b0c10 75%); box-shadow: var(--shadow-lg); container-type: inline-size; }
.rv-cue { position: absolute; inset-inline: 5%; bottom: 7%; text-align: center; color: #fff; font-size: 3.1cqw; font-weight: 600; line-height: 1.3; text-shadow: 0 0 .25em #000, 0 .08em .12em #000, 0 0 .08em #000; direction: rtl; }
.rv-cue.pos-top { bottom: auto; top: 7%; }
.rv-cue.pos-mid { bottom: auto; top: 50%; transform: translateY(-50%); }
.rv-cue.al-left { text-align: left; }
.rv-cue.al-right { text-align: right; }
.rv-cue span { display: block; unicode-bidi: plaintext; }
.rv-tc { position: absolute; top: 10px; inset-inline-start: 12px; font: 12px ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .55); }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12, 13, 17, .6); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: pop .18s; }
.modal-head { display: flex; align-items: center; padding: 20px 24px 6px; }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-head .x { margin-inline-start: auto; }
.modal-body { padding: 14px 24px 8px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-start; padding: 12px 24px 22px; }
.reasons { display: grid; gap: 8px; margin-bottom: 14px; }
.reasons label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.reasons label:hover { border-color: #f3b9c0; }
.reasons label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.reasons input { accent-color: var(--accent); width: 17px; height: 17px; }
.reasons small { display: block; color: var(--muted); font-size: 12.5px; }
.drop { border: 2px dashed #cfd3dc; border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; transition: all .15s; color: var(--muted); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.drop svg { width: 38px; height: 38px; fill: currentColor; margin: 0 auto 6px; }
.drop b { color: var(--text); display: block; }
.toasts { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1f2229; color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .2s; pointer-events: auto; max-width: 90vw; }
.toast.ok { background: var(--ok); }
.toast.error { background: var(--danger); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .1); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.page-loading { display: grid; place-items: center; padding: 120px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #e9ebf0 25%, #f3f4f7 50%, #e9ebf0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- docs ---------- */
.docs h2 { font-size: 22px; margin: 34px 0 10px; }
.docs h3 { font-size: 17px; margin: 24px 0 8px; }
.docs p, .docs li { color: #3d414c; line-height: 1.75; }
.docs .ep { display: flex; gap: 10px; align-items: center; direction: ltr; justify-content: flex-end; font-family: ui-monospace, Consolas, monospace; font-size: 14.5px; background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.docs .ep .m { background: var(--ok); color: #fff; font-weight: 700; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.prose { max-width: 820px; }
.prose p, .prose li { line-height: 1.8; color: #3d414c; }

/* ---------- footer ---------- */
.ftr { background: var(--hdr); color: #9a9eab; margin-top: 50px; }
.ftr-in { max-width: 1240px; margin: 0 auto; padding: 34px 20px; display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.ftr-in nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
.ftr-in nav a:hover { color: #fff; }
.ftr .logo { color: #fff; font-size: 18px; }
.ftr .logo-mark { width: 32px; height: 32px; }
.ftr .logo-mark svg { width: 31px; height: 31px; }
body.no-footer .ftr { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; inset-inline: 0; background: var(--hdr-2); padding: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .admin { grid-template-columns: 1fr; }
  .side { display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
  .side .who { display: none; }
  .side a { white-space: nowrap; margin: 0; }
  .split { grid-template-columns: 1fr; }
  .rv-body { grid-template-columns: 1fr; }
  .rv-list { max-height: none; }
  .split > :first-child { border-inline-end: 0; border-bottom: 1px solid var(--line); max-height: 300px; }
}
@media (max-width: 720px) {
  .hdr-in { gap: 10px; padding: 0 14px; }
  .logo-tag { display: none; }
  .hdr-search { display: none; }
  .hdr-actions .btn-ghost-light { display: none; }
  .user-btn .nm { display: none; }
  .user-btn { padding: 4px; }
  .wrap { padding: 0 14px; }
  .hero-in { padding: 46px 16px 40px; }
  .hero-brand { margin-bottom: 20px; gap: 8px; }
  .hb-mark { width: 60px; height: 60px; border-radius: 16px; }
  .hb-mark svg { width: 58px; height: 58px; }
  .hb-word { font-size: 34px; }
  .hb-tag { display: none; }
  .hero-search input { height: 54px; padding: 0 50px 0 16px; font-size: 16px; }
  .hero-search .btn { display: none; }
  .hero-search > svg { top: 16px; }
  .rail { grid-auto-columns: 140px; gap: 12px; }
  .rail-btn { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 12px; }
  .hs-page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .rt-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .rt-subinfo { grid-column: 2 / 4; grid-row: 2; }
  .film-hero-in { grid-template-columns: 1fr; padding: 24px 16px; gap: 20px; }
  .film-poster { width: 170px; }
  .person-head { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .person-info .alt { text-align: center; }
  .person-info .chips { justify-content: center; }
  .subs-table thead { display: none; }
  .subs-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 6px; }
  .subs-table td { border: 0; padding: 0; }
  .subs-table td.c-meta { display: none; }
  .m-only { display: inline; }
  .subs-table td.act { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .auth-card { padding: 26px 20px; }
  .admin-main { padding: 18px 14px 40px; }
  .report-card { grid-template-columns: 1fr; }
  .rv-row { grid-template-columns: 1fr 34px; }
  .rv-n { display: none; }
  .rv-times { grid-column: 1; grid-template-columns: 1fr 1fr auto; }
  .rv-main { grid-column: 1; }
  .report-card .acts { flex-direction: row; flex-wrap: wrap; }
  .toasts { inset-inline-start: 16px; inset-inline-end: 16px; transform: none; }
}

/* mailbox (ktuvit-style inbox / outbox) */
.mailbox { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; margin-top: 14px; }
.mail-menu { display: flex; flex-direction: column; padding: 8px; }
.mail-menu > a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-weight: 500; }
.mail-menu > a:not(.btn) svg { width: 18px; height: 18px; fill: currentColor; }
.mail-menu > a:not(.btn):hover { background: #f4f5f7; }
.mail-menu > a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.mail-menu .badge { margin-inline-start: auto; }
.mail-row { border-bottom: 1px solid var(--line); }
.mail-head { display: grid; grid-template-columns: 28px 1fr 170px 130px; gap: 12px; align-items: center; width: 100%; padding: 14px 22px; background: none; border: 0; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.mail-head:hover { background: #fafbfc; }
.mail-head .st svg { width: 18px; height: 18px; fill: var(--muted); vertical-align: middle; }
.mail-row.unread .mail-head { background: #fff7f8; }
.mail-row.unread .sj { font-weight: 700; }
.mail-row.unread .st svg { fill: var(--accent); }
.mail-head .sj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-head .who { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-head .at { font-size: 13px; color: var(--muted); }
.mail-body { padding: 4px 62px 18px 22px; }
.mail-body .txt { white-space: pre-wrap; line-height: 1.7; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.mail-foot { margin-top: 10px; }
.mail-pager { display: flex; justify-content: space-between; padding: 14px 22px; }
.mail-pager svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; }
@media (max-width: 720px) {
  .mailbox { grid-template-columns: 1fr; }
  .mail-head { grid-template-columns: 24px 1fr; padding: 12px 14px; }
  .mail-head .who, .mail-head .at { grid-column: 2; }
  .mail-body { padding: 4px 14px 14px; }
}

/* Admin → הגדרות: ktuvit auto-sync */
.kt-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
/* live view of a running ktuvit sync: counters + one row per worker */
.kt-live { margin: -8px 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.kt-live-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); margin-bottom: 10px; }
.kt-live-stats b { color: var(--text); }
.kt-workers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.kt-w { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #f3f4f7; font-size: 13px; color: var(--faint); min-width: 0; }
.kt-w.on { background: #eef6ff; color: var(--text); }
.kt-w b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #dfe2e8; font-size: 11.5px; }
.kt-w.on b { background: var(--accent); color: #fff; }
.kt-w span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-w em { flex: none; font-style: normal; font-size: 11.5px; color: var(--faint); }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.kt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.kt-sec { border-top: 1px solid var(--line); padding-top: 12px; }
.kt-sec h4 { margin: 0 0 12px; font-size: 15px; }
.kt-row { display: flex; align-items: center; gap: 8px; }
.kt-row input { width: 80px; }
.kt-form select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; font: inherit; }
.kt-form .field textarea { min-height: 64px; }
.kt-save { grid-column: 1 / -1; padding-top: 6px; }
.kt-items { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 8px; }
@media (max-width: 860px) { .kt-form { grid-template-columns: 1fr; } }


/* היכל התהילה */
.hall-hero { color: #fff; background: radial-gradient(900px 380px at 80% -20%, rgba(229, 37, 59, .38), transparent 60%), linear-gradient(180deg, #16171d, #0f1014); }
.hall-hero-in { max-width: 860px; margin: 0 auto; padding: 46px 20px 40px; text-align: center; }
.hall-hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 10px 0 8px; font-weight: 800; }
.hall-hero p { color: #c9ccd6; margin: 0; font-size: 16.5px; }
.hall-hero .hero-stats { margin-top: 22px; }
.hall-ic { width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; background: linear-gradient(135deg, #f7c948, #e5a52b); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(247, 201, 72, .3); }
.hall-ic svg { width: 32px; height: 32px; fill: #1b1405; }
.hall-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 20px; }
.hall-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.hall-tabs a span { font-size: 12px; color: var(--muted); font-weight: 500; }
.hall-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.hall-tabs a.on span { color: rgba(255, 255, 255, .8); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.pod { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; box-shadow: var(--shadow); overflow: hidden; transition: transform .15s; }
.pod:hover { transform: translateY(-2px); }
.pod::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: #cfd3db; }
.pod.gold::before { background: linear-gradient(90deg, #f7c948, #e5a52b); }
.pod.silver::before { background: linear-gradient(90deg, #d7dbe3, #a9b0bd); }
.pod.bronze::before { background: linear-gradient(90deg, #e3a477, #b8703f); }
.pod .rank { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: #a9b0bd; margin-bottom: 12px; }
.pod.gold .rank, .hrank.gold { background: #e5a52b; color: #fff; }
.pod.silver .rank, .hrank.silver { background: #a9b0bd; color: #fff; }
.pod.bronze .rank, .hrank.bronze { background: #b8703f; color: #fff; }
.pod .nm { font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .ct { margin-top: 4px; font-size: 15px; }
.pod .ct b { font-size: 22px; color: var(--accent); }
.pod .sm { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.hrank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 14px; font-weight: 700; font-size: 13px; background: #eef0f4; padding: 0 6px; }
.hall-filter { max-width: 240px; height: 38px; }
.hall-more { padding: 14px 22px; text-align: center; }
.hall-more:empty { display: none; }
.hall-person { display: flex; gap: 18px; align-items: center; margin: 18px 0 22px; }
.hp-roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 6px; }
.credit-line a.who { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 3px; }
.credit-line a.who:hover { text-decoration-color: currentColor; }
@media (max-width: 720px) { .podium { grid-template-columns: 1fr; } .hall-filter { max-width: 150px; } }

/* API page: Radarr setup */
.docs h2 svg { width: 22px; height: 22px; fill: var(--accent); vertical-align: -4px; }
.docs ol.steps { padding-inline-start: 22px; }
.docs ol.steps li { margin-bottom: 6px; }
.os-tabs { display: inline-flex; gap: 4px; background: #eef0f4; border-radius: 99px; padding: 4px; margin: 10px 0 6px; }
.os-tabs button { border: 0; background: none; border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; color: #3d414c; }
.os-tabs button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 6px; }
.code-head span { display: flex; gap: 6px; }
pre.code { margin: 0; }
/* mid-width header: the avatar alone (a visitor signed in through another site may also have its button there) */
@media (max-width: 1180px) { .user-btn .nm { display: none; } .user-btn { padding: 4px; } }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; }
.back-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ktuvit auto-sync: catalogue crawl */
.kt-wide { grid-column: 1 / -1; }
.kt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 18px; align-items: start; }
.kt-crawl { margin: 0 22px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.kt-crawl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.kt-bar { height: 8px; border-radius: 99px; background: #e6e8ee; overflow: hidden; }
.kt-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff7a59); border-radius: 99px; transition: width .4s; }
.kt-crawl-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

