/* Drama Hub - editorial dark theme */

:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-rgb: 7, 8, 11;
  --surface: #0d0f14;
  --elev: #12151c;
  --line: #1c2030;
  --line-2: #2b3143;
  --fg: #f2f3f7;
  --muted: #9096a6;
  --muted-2: #666c7e;
  --accent: #ff5166;
  --accent-rgb: 255, 81, 102;
  --accent-2: #ff7183;
  --on-accent: #ffffff;
  --fg-strong: #ffffff;
  --fg-rgb: 233, 235, 242;
  --overlay-rgb: 255, 255, 255;
  --soft-1: #e9ebf2;
  --soft-2: #dfe2ea;
  --soft-3: #b8bdc9;
  --soft-4: #cfd3de;
  --soft-5: #e5e7ee;
  --soft-6: #c7ccd8;
  --soft-7: #eef0f5;
  --soft-8: #d7dbe5;
  --soft-9: #e7e9f0;
  --soft-10: #8f8f96;
  --soft-11: #d6dae3;
  --soft-12: #c3c8d4;
  --soft-13: #c9ced9;
  --soft-14: #aab0bf;
  --soft-15: #e5e5e5;
  --soft-16: #f2f4f8;
  --img-bg: #18181d;
  --ph-a: #171b26;
  --ph-b: #0f1219;
  --noart-a: #1a1d29;
  --noart-b: #0b0c11;
  --bb-hover: #e2e2e2;
  --gold-rgb: 233, 180, 92;
  --success: #8ff0c9;
  --danger: #ffb3bd;
  --danger-2: #ffb4c6;
  --gold: #e9b45c;
  --max: 1440px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(var(--accent-rgb), .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(var(--bg-rgb), .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; align-items: center; gap: 30px; height: 64px; }
.brand {
  font-weight: 800; font-size: 13px; letter-spacing: .22em;
  color: var(--fg-strong); white-space: nowrap;
}
.brand span { color: var(--accent); }
.mainnav { display: flex; align-items: stretch; gap: 24px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  position: relative; display: flex; align-items: center;
  font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0;
  border-bottom: 2px solid transparent; transition: color .15s;
}
.mainnav a:hover { color: var(--fg-strong); }
.mainnav a.on { color: var(--fg-strong); border-bottom-color: var(--accent); }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 0 12px; height: 38px;
  min-width: 210px; max-width: 300px; flex: 0 1 300px;
}
.search svg { opacity: .5; flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px; }
.search input::placeholder { color: var(--muted-2); }
@media (max-width: 1000px) {
  /* iOS zooms the page when a focused input is under 16px. */
  .search input { font-size: 16px; }
}
.search:focus-within { border-color: var(--line-2); }

@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 12px 0 10px; gap: 10px 18px; }
  .brand { order: 1; }
  .search { order: 2; flex: 1 1 160px; max-width: none; min-width: 0; height: 36px; }
  .mainnav { order: 3; flex: 1 0 100%; gap: 20px; height: 34px; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 16px; font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.eyebrow .eic { display: inline-flex; color: var(--accent); }
.eyebrow .eic svg { width: 14px; height: 14px; display: block; }
.hero h1 {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.015em;
}
.hero h1 em { font-style: italic; color: var(--soft-4); }
.lede { margin: 0 0 22px; color: var(--muted); max-width: 60ch; font-size: 15px; }
.counts {
  margin: 0; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2);
}
.counts b { color: var(--soft-13); font-weight: 600; }

/* ---------------------------------------------------------------- genres */
.genrebar {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.genrebar .label {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); flex: 0 0 auto;
}
.genres { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.genres button {
  position: relative; background: none; border: 0; padding: 2px 0;
  font-size: 13px; color: var(--muted); transition: color .15s;
}
.genres button:hover { color: var(--fg-strong); }
.genres button.on { color: var(--fg-strong); }
.genres button.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

/* --------------------------------------------------------------- sections */
.section { margin: 52px 0 0; }
.sec-emoji {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
  font-size: .92em;
  line-height: 1;
  margin-left: 8px;
  vertical-align: -0.02em;
}
#browse { scroll-margin-top: 84px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.section-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: 26px; letter-spacing: -.01em;
}
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--fg-strong); }

/* ---------------------------------------------------------- listing pages */
.lhead {
  padding: 6px 0 22px; border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.lhead .eyebrow { margin: 0 0 10px; }
.lhead-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap;
}
.lhead h1 {
  margin: 0; font-family: var(--sans); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.02; letter-spacing: -.035em;
}
.lcount {
  margin: 0 0 6px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
}
.lcount b { color: var(--soft-2); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.lhead-sub { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; max-width: 70ch; }
.ltabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ltabs a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted); background: rgba(var(--overlay-rgb), .02);
  transition: color .15s, border-color .15s, background .15s;
}
.ltabs .tic { display: inline-flex; color: var(--muted-2); transition: color .15s; }
.ltabs .tic svg { width: 15px; height: 15px; display: block; }
.ltabs a:hover .tic, .ltabs a.on .tic { color: currentColor; }
.ltabs a:hover { color: var(--fg-strong); border-color: var(--line-2); }
.ltabs a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
@media (max-width: 600px) {
  .ltabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .ltabs::-webkit-scrollbar { display: none; }
  .ltabs a { flex: 0 0 auto; }
}

/* ------------------------------------------------------------ genre tiles */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gtile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 42px 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s, background .15s, transform .15s;
}
.gtile:hover { border-color: var(--line-2); background: var(--elev); transform: translateY(-2px); }
.gname { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--soft-1); line-height: 1.2; letter-spacing: -.01em; }
.gcount { font-size: 12px; color: var(--muted-2); letter-spacing: .02em; }
.garrow {
  position: absolute; right: 16px; top: 18px; color: var(--muted-2);
  font-size: 13px; transition: color .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.garrow svg { width: 15px; height: 15px; display: block; }
.gtile:hover .garrow { color: var(--accent); transform: translateX(2px); }
@media (max-width: 520px) {
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gtile { padding: 15px 32px 14px 15px; }
  .gname { font-size: 16.5px; }
}

/* --------------------------------------------------------------- pager */
.pager {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 6px; margin: 34px 0 0;
}
.pager a {
  min-width: 40px; height: 42px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; color: var(--muted); background: var(--surface);
  transition: border-color .15s, color .15s, background .15s;
}
.pager a:hover { border-color: var(--line-2); color: var(--fg-strong); }
.pager a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pager .pstep { padding: 0 15px; }

/* ----------------------------------------------------------------- cards */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
  display: block; background: none; border: 0; padding: 0;
  text-align: left; min-width: 0; color: inherit;
}
.poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: 6px;
  overflow: hidden; background: var(--img-bg);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card { position: relative; }
.card:hover { z-index: 5; }
.card:hover .poster { transform: scale(1.045); box-shadow: 0 18px 42px rgba(0, 0, 0, .62); }
.poster img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .poster img { transform: scale(1.02); }
.ph {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--ph-a), var(--ph-b));
  color: rgba(var(--overlay-rgb), .32); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
}
.ph span { font-size: 24px; }
.rate {
  position: absolute; left: 8px; top: 8px; z-index: 3; display: inline-flex;
  align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px;
  background: rgba(6, 8, 13, .72); border: 1px solid rgba(var(--overlay-rgb), .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--gold);
  letter-spacing: .01em; text-shadow: none;
}
.rate b { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.rate i {
  font-style: normal; font-weight: 500; font-size: 10px;
  color: rgba(var(--overlay-rgb), .7); padding-left: 6px;
  border-left: 1px solid rgba(var(--overlay-rgb), .14);
}
.ep {
  position: absolute; right: 8px; bottom: 8px; z-index: 3; font-size: 10.5px;
  color: rgba(var(--overlay-rgb), .9); background: rgba(6, 8, 13, .72);
  border: 1px solid rgba(var(--overlay-rgb), .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 4px 8px; border-radius: 6px; letter-spacing: .02em;
}
.card .t {
  margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.4;
  color: var(--soft-15);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .t { color: var(--fg-strong); }
.card .tmeta {
  margin-top: 4px; font-size: 11.5px; color: var(--soft-10);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cplay {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6, 8, 13, .68); border: 1px solid rgba(var(--overlay-rgb), .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--fg-strong); opacity: 0; transform: translate(-50%, -50%) scale(.9);
  transition: opacity .18s, transform .18s; pointer-events: none;
}
.cplay svg { width: 18px; height: 18px; display: block; }
.card:hover .cplay { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cplay { display: none; } }

.skel .poster { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ------------------------------------------------------------ continue */
.hhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.hhead h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
#hclear { background: none; border: 0; color: var(--muted-2); font-size: 12px; padding: 0; }
#hclear:hover { color: var(--fg-strong); }
.hrow { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hitem { position: relative; flex: 0 0 116px; width: 116px; }
.hcard { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.hcard img, .hcard .ph {
  position: relative; width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 9px; border: 1px solid var(--line); background: var(--elev);
}
.hcard .ht {
  margin-top: 7px; font-size: 11.5px; line-height: 1.3; color: var(--soft-4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hcard .he { margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.hx {
  position: absolute; right: 4px; top: 4px; z-index: 2; width: 22px; height: 22px;
  display: grid; place-items: center; font-size: 10px; line-height: 1;
  border-radius: 50%; border: 1px solid rgba(var(--overlay-rgb), .18);
  background: rgba(0, 0, 0, .7); color: var(--soft-2); padding: 0;
}
.hx:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* -------------------------------------------------------- browse links */
.seolist { columns: 2; column-gap: 32px; margin-top: 6px; }
@media (min-width: 860px) { .seolist { columns: 3; } }
.seolist a {
  display: block; padding: 7px 0; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--line); break-inside: avoid;
}
.seolist a:hover { color: var(--fg-strong); }

/* --------------------------------------------------------------- footer */
footer {
  margin-top: 72px; border-top: 1px solid var(--line);
  padding: 38px 0 calc(46px + var(--safe-b));
  color: var(--muted-2); font-size: 12px;
}
.site-footer { grid-column: 2; }
.fnav { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 14px; }
.fnav a { color: var(--muted); }
.fnav a:hover { color: var(--fg-strong); }
footer .wrap { padding: 0 20px; }

/* --------------------------------------------------------------- detail */
.dpage { max-width: var(--max); margin: 0 auto; padding: 34px 20px 70px; }
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted-2); margin: 0 0 26px;
}
.crumb a { color: var(--muted-2); }
.crumb a:hover { color: var(--fg-strong); }
.crumb .sep { color: #3a4052; }

.dhead { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 620px) { .dhead { grid-template-columns: 1fr; gap: 22px; max-width: 260px; } }
.dhead .cover {
  width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--elev);
}
.dhead .cover img { width: 100%; height: 100%; object-fit: cover; }
.dhead .cover .ph { position: absolute; }
.dhead h1 {
  margin: 0 0 14px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(27px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.015em;
}
.dmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12.5px; }
.dmeta .pill { border: 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.dmeta a.pill:hover { color: var(--fg-strong); }
.dmeta .wgenres {
  flex: 1 0 100%;
  display: flex; flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 2px;
}
.dscore { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 0; }
.dscore b { color: var(--gold); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.dscore span { color: var(--muted); font-size: 12px; }
.dplay {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--on-accent); border-radius: 9px;
  padding: 12px 22px; font-weight: 650; font-size: 14px; margin-top: 22px;
  transition: background .15s;
}
.dplay:hover { background: var(--accent-2); }
.dsyn { margin: 30px 0 0; max-width: 74ch; color: var(--soft-3); font-size: 15.5px; line-height: 1.75; }
.dgenres { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; }
.dgenres a, .dgenres span { font-size: 12.5px; color: var(--muted); }
.dgenres a:hover { color: var(--fg-strong); }

/* series hero */
.dhero {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
  margin: 0 0 4px;
}
.dhero-bg {
  position: absolute; inset: -60px; z-index: 0;
  background-size: cover; background-position: center 28%;
  filter: blur(30px) saturate(.85); opacity: .5; transform: scale(1.12);
}
.dhero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .8) 46%, rgba(var(--bg-rgb), .55) 100%),
    linear-gradient(0deg, rgba(var(--bg-rgb), .9), rgba(var(--bg-rgb), .15) 55%, rgba(var(--bg-rgb), .35));
}
.dhero-in {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 240px minmax(0, 1fr); gap: 34px;
  padding: 32px; align-items: start;
}
.dposter {
  position: relative; margin: 0; width: 100%; aspect-ratio: 2 / 3;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(var(--overlay-rgb), .16); background: var(--elev);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.dposter img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.dposter .ph { position: absolute; }

.deyebrow {
  margin: 4px 0 14px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(var(--overlay-rgb), .5);
}
.dhero h1 {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08;
  letter-spacing: -.02em; text-wrap: balance;
}
.dstat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.dstat-item { display: inline-flex; align-items: baseline; gap: 7px; }
.dstat-item b { color: var(--soft-1); font-size: 14px; font-weight: 700; }
.dstat-item b.gold { color: var(--gold); font-size: 20px; letter-spacing: -.01em; }
.dstat-item em { font-style: normal; color: var(--muted); font-size: 12px; }

.dacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dbtn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; line-height: 1; color: var(--on-accent);
  transition: background .15s, border-color .15s, color .15s;
}
.dbtn svg { width: 15px; height: 15px; display: block; }
.dbtn-play { background: var(--accent); }
.dbtn-play:hover { background: var(--accent-2); }
.dbtn.ghost {
  background: rgba(var(--overlay-rgb), .03); border-color: var(--line-2);
  color: var(--soft-9); font-weight: 500;
}
.dbtn.ghost:hover { background: rgba(var(--overlay-rgb), .07); color: var(--fg-strong); }
.dbtn-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 20px; padding: 0 6px; border-radius: 6px;
  background: rgba(var(--overlay-rgb), .1); font-size: 11px; font-weight: 600;
}
.dgenre-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gchip {
  font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 11px; background: rgba(var(--overlay-rgb), .02);
  transition: color .15s, border-color .15s;
}
.gchip:hover { color: var(--fg-strong); border-color: var(--muted-2); }

.dabout { margin: 34px 0 0; max-width: 78ch; }
.dabout h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.dabout p { margin: 0; color: var(--soft-3); font-size: 15.5px; line-height: 1.78; }
.depisodes { scroll-margin-top: 78px; }
.depisodes .dephead { margin-top: 36px; }

@media (max-width: 760px) {
  .dhero-in { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .dhero-bg { filter: blur(22px) saturate(.85); }
  .deyebrow { margin-bottom: 10px; }
  .dhero h1 { font-size: clamp(24px, 6.4vw, 32px); margin-bottom: 14px; }
  .dstat { gap: 6px 14px; }
  .dstat-item b { font-size: 13px; }
  .dstat-item b.gold { font-size: 17px; }
  .dacts { margin-top: 18px; gap: 8px; }
  .dbtn { padding: 10px 14px; font-size: 12.5px; }
  .dgenre-chips { margin-top: 16px; gap: 6px; }
  .gchip { font-size: 11px; padding: 5px 9px; }
  .dabout { margin-top: 26px; }
}
@media (max-width: 420px) {
  .dhero-in { grid-template-columns: 116px minmax(0, 1fr); gap: 15px; padding: 16px; }
  .dbtn.ghost { padding: 10px 12px; }
}

.dephead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 46px 0 14px; padding-top: 22px; border-top: 1px solid var(--line);
}
.dephead h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.dephead a, .dephead span { font-size: 12px; color: var(--muted-2); }
.deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.deps a {
  position: relative;
  display: grid; place-items: center; height: 46px; font-size: 13.5px;
  color: var(--soft-6); border: 1px solid var(--line); border-radius: 9px;
  transition: border-color .15s, color .15s;
}
.deps a:hover { border-color: var(--line-2); color: var(--fg-strong); }
.deps a[style] { border-color: var(--accent) !important; color: var(--fg-strong) !important; }
.deps a.seen::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.wnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.wnav a {
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px;
}
.wnav a:hover { color: var(--fg-strong); border-color: var(--line-2); }

/* --------------------------------------------------------------- player */
.vplayer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 100vh;
  display: none; background: #000; padding: 0 12px;
  align-items: center; justify-content: center; overflow: hidden;
  touch-action: manipulation; overscroll-behavior: contain;
  -webkit-user-select: none; user-select: none;
}
@supports (height: 100dvh) { .vplayer { height: 100dvh; } }
.vplayer.on { display: flex; }
.vplayer.idle { cursor: none; }
html.vfs-lock, html.vfs-lock body { overflow: hidden; overscroll-behavior: none; height: 100%; }

.vstage {
  position: relative; width: min(100%, calc(100vh * var(--ar, .5625)));
  aspect-ratio: var(--ar, 9 / 16); max-height: 100%; background: #000;
  border-radius: 14px; border: 1px solid rgba(var(--overlay-rgb), .08);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
@supports (height: 100dvh) { .vstage { width: min(100%, calc(100dvh * var(--ar, .5625))); } }
.vstage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

/* ------------------------------------------- watch page: vertical (TikTok) */
.watch-layout { padding: 26px 0 0; }
body.watch-page footer { display: none; }
body.watch-page .content { padding-bottom: 0; }
.vplayer.inline {
  position: relative; top: auto; left: auto; right: auto; height: auto;
  display: block; padding: 0; background: transparent; overflow: visible; z-index: 1;
  width: min(100%, 400px); margin: 0 auto;
}
.vplayer.inline .vstage {
  position: relative; width: 100%; height: auto; max-height: none;
  aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px;
  border: 1px solid rgba(var(--overlay-rgb), .08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .58);
}
.vplayer.inline .vstage video { width: 100%; height: 100%; object-fit: cover; }
.vplayer.inline .vtop { padding: calc(12px + var(--safe-t)) 12px 30px; }
.vplayer.inline .vbot { padding: 96px 14px calc(12px + var(--safe-b)); }
.vtop .icon svg { width: 19px; height: 19px; display: block; }

.vnow { margin: 0 0 8px; padding-right: 64px; }
.vnow-title {
  display: block; color: var(--fg-strong); font-size: 15.5px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.25; text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}
.vnow-meta {
  margin: 5px 0 0; font-size: 11px; color: rgba(var(--overlay-rgb), .76);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px;
}
.vnow-score { display: inline-flex; align-items: baseline; gap: 5px; }
.vnow-score .gold {
  color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: -.01em;
}
.vnow-score em {
  font-style: normal; font-size: 10.5px; color: rgba(var(--overlay-rgb), .72);
}
.vctrls { transition: opacity .25s; }
.vctrls.hide { opacity: 0; pointer-events: none; }
.vrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 8px; margin-top: 7px;
}
.vplayer.inline .vtime {
  flex: 0 0 auto; font-size: 10.5px; min-width: 0; white-space: nowrap;
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
  justify-self: start;
}
.vplayer.inline .vcontrols {
  flex: 1 1 auto; display: flex; align-items: center;
  justify-content: center; gap: 10px;
}
.vplayer.inline .vgrp { gap: 10px; }
.vplayer.inline .vauto {
  font-size: 10px; gap: 4px; justify-self: end; white-space: nowrap;
}
.vplayer.inline .vauto input { width: 13px; height: 13px; }

.vrail {
  position: absolute; right: 10px; bottom: calc(198px + var(--safe-b));
  z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: opacity .25s;
}
.vrail.hide { opacity: 0; pointer-events: none; }
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 52px; padding: 0; background: none; border: 0; color: var(--fg-strong);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.rail-btn .rb-ic {
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  background: rgba(9, 11, 17, .55); border: 1px solid rgba(var(--overlay-rgb), .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .15s, transform .12s;
}
.rail-btn .rb-ic svg { width: 20px; height: 20px; display: block; }
.rail-btn .rb-ic .rb-cc { font-size: 12px; font-weight: 800; letter-spacing: .03em; line-height: 1; }
.rail-btn:active .rb-ic { transform: scale(.94); background: rgba(var(--overlay-rgb), .24); }
.rail-btn .rb-t {
  font-size: 9px; font-weight: 600; letter-spacing: .02em;
  color: rgba(var(--overlay-rgb), .9); white-space: nowrap;
  text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .9);
}
.rail-btn .rb-t b { color: var(--fg-strong); font-weight: 700; }
.rail-btn.off .rb-ic { color: rgba(var(--overlay-rgb), .55); }
.rail-btn.on .rb-ic {
  color: var(--fg-strong); background: rgba(var(--overlay-rgb), .26);
  border-color: rgba(var(--overlay-rgb), .58);
}

.vsubs {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  z-index: 8; width: min(176px, 58vw); max-height: min(58%, 310px);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(10, 13, 20, .95);
  border: 1px solid rgba(var(--overlay-rgb), .16); border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.vsubs[hidden] { display: none; }
.vsubs-head {
  padding: 10px 12px 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(var(--overlay-rgb), .58);
  border-bottom: 1px solid rgba(var(--overlay-rgb), .08);
}
.vsubs-list { overflow-y: auto; overscroll-behavior: contain; padding: 5px; }
.vsubs-item {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 8px 9px; border: 0; border-radius: 8px;
  background: none; color: rgba(var(--overlay-rgb), .88);
  font: inherit; font-size: 12.5px; line-height: 1.25;
  text-align: left; cursor: pointer;
}
.vsubs-item:hover, .vsubs-item:focus-visible {
  background: rgba(var(--overlay-rgb), .1); outline: 0;
}
.vsubs-item.on { color: var(--fg-strong); background: rgba(var(--accent-rgb), .17); }
.vsubs-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsubs-item .lang {
  flex: 0 0 auto; color: rgba(var(--overlay-rgb), .42);
  font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase;
}
.vsubs-item .tick { flex: 0 0 auto; width: 12px; opacity: 0; color: var(--accent); font-size: 12px; }
.vsubs-item.on .tick { opacity: 1; }
.vsubs-empty { padding: 12px; color: rgba(var(--overlay-rgb), .55); font-size: 12px; }
.favrail.on .rb-ic {
  color: var(--accent); background: rgba(var(--accent-rgb), .18);
  border-color: rgba(var(--accent-rgb), .5);
}
.favrail.on .rb-ic svg { fill: currentColor; }
.favrail.on .rb-t, .favrail.on .rb-t b { color: var(--accent); }
.favrail:disabled { opacity: .55; cursor: wait; }

.watch-info {
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 24px; row-gap: 18px; align-items: start;
}
.watch-info .crumb { grid-column: 1 / -1; grid-row: 1; margin: 0; }
.wcover {
  grid-column: 1; grid-row: 2; margin: 0; position: relative; width: 100%;
  aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--elev);
}
.wcover img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.watch-head { grid-column: 2; grid-row: 2; min-width: 0; }
.watch-body { grid-column: 1 / -1; grid-row: 3; min-width: 0; }

.watch-title {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.015em;
}
.watch-title span {
  display: block; margin-top: 7px; font-family: var(--sans);
  font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--muted);
}
.watch-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.wbtn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px;
  border-radius: 10px; background: var(--accent); border: 1px solid transparent;
  color: var(--on-accent); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.wbtn:hover { filter: brightness(1.07); }
.wbtn svg { width: 15px; height: 15px; display: block; }
.wbtn span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px;
  background: rgba(0, 0, 0, .22); font-size: 11px; font-weight: 600;
}
.wbtn.ghost { background: transparent; border-color: var(--line); color: var(--soft-11); font-weight: 500; }
.wbtn.ghost:hover { border-color: var(--line-2); color: var(--fg-strong); }
.watch-info .dephead { margin-top: 32px; }

/* episodes sheet */
/* --------------------------------------------------------------- ad gate */
html.ads-lock, html.ads-lock body { overflow: hidden; overscroll-behavior: none; }
.adsgate {
  position: fixed; inset: 0; z-index: 160;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 5, 8, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.adsgate[hidden] { display: none; }
.adsgate-card {
  width: min(92vw, 420px); max-height: 88vh; overflow-y: auto;
  padding: 22px 20px 18px; text-align: center;
  background: #111319; border: 1px solid rgba(var(--overlay-rgb), .14);
  border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, .62);
}
.adsgate-kicker {
  margin: 0 0 7px; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.adsgate-card h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.adsgate-req { margin: 0 0 5px; color: var(--fg-strong); font-size: 13px; line-height: 1.4; }
.adsgate-note { margin: 0 0 16px; color: var(--muted-2); font-size: 11.5px; line-height: 1.4; }
.adsgate-open {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 156px; height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 700;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
  appearance: none; -webkit-appearance: none;
}
.adsgate-open:hover { background: var(--accent-2); }
#adsOpenTop { margin: 2px 0 12px; }
.adsgate-open.ghost {
  background: rgba(var(--overlay-rgb), .06);
  border-color: rgba(var(--overlay-rgb), .16); color: var(--soft-1);
}
.adsgate-open.ghost:hover { background: rgba(var(--overlay-rgb), .12); }
.adsgate-open.wait {
  background: rgba(var(--overlay-rgb), .1);
  border-color: rgba(var(--overlay-rgb), .18);
  color: var(--muted); cursor: wait;
}
.adsgate-progress { margin: 10px 0 16px; color: var(--muted-2); font-size: 11px; }
.adsgate-progress b { color: var(--fg-strong); }
.adsgate-error { margin: 10px 0 0; color: var(--danger-2); font-size: 11.5px; line-height: 1.4; }
.adsgate-error:empty { display: none; }
.adsgate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.adsgate-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 130px; height: 42px; padding: 0 16px; color: var(--muted);
  font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
}
.adsgate-no:hover { color: var(--fg-strong); }
@media (max-width: 430px) {
  .adsgate-card { padding: 20px 16px 16px; }
  .adsgate-open, .adsgate-no { width: 100%; }
}

.eps-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.eps-modal[hidden] { display: none; }
.eps-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s;
}
.eps-modal.on .eps-backdrop { opacity: 1; }
.eps-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 84dvh;
  display: flex; flex-direction: column;
  background: #0c0e14; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 10px 18px calc(16px + var(--safe-b));
  transform: translateY(18px); opacity: 0;
  transition: transform .24s ease, opacity .2s ease;
}
.eps-modal.on .eps-sheet { transform: none; opacity: 1; }
.eps-sheet::before {
  content: ""; width: 38px; height: 4px; border-radius: 99px;
  background: rgba(var(--overlay-rgb), .18); margin: 2px auto 12px; flex: 0 0 auto;
}
.eps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.eps-head-l { min-width: 0; }
.eps-eyebrow {
  margin: 0 0 4px; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted-2);
}
.eps-head h2 {
  margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600;
  line-height: 1.2; color: var(--soft-16);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eps-head-r { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.eps-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eps-x {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--soft-9); font-size: 12px; cursor: pointer;
}
.eps-x:hover { border-color: var(--line-2); color: var(--fg-strong); }
.eps-x:focus { outline: none; }
.eps-x:focus-visible { outline: 2px solid rgba(var(--overlay-rgb), .45); outline-offset: 3px; }
.eps-scroll { overflow-y: auto; margin: 16px -6px 0; padding: 0 6px 6px; overscroll-behavior: contain; scrollbar-width: thin; }
.eps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.eps-grid a {
  display: flex; align-items: center; justify-content: center;
  height: 42px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--soft-4); font-size: 12.5px;
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.eps-grid a:hover { border-color: var(--line-2); color: var(--fg-strong); }
.eps-grid a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.eps-note { margin: 12px 0 0; font-size: 11px; color: var(--muted-2); text-align: center; }
html.eps-lock, html.eps-lock body { overflow: hidden; overscroll-behavior: none; }

@media (min-width: 1001px) {
  .watch-layout {
    display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 46px; align-items: stretch; padding-top: 30px;
    /* Keep the left player column tall enough to reach the viewport bottom
       even when the details column is short. */
    min-height: calc(100vh - 63px);
  }
  .vplayer.inline {
    position: sticky; top: 93px; width: 100%; margin: 0;
    /* Do not inherit the details column height: fill down to the bottom. */
    height: calc(100vh - 96px); max-height: none;
    display: flex; align-items: stretch; justify-content: center;
  }
  .vplayer.inline .vstage {
    width: 100%; height: 100%; max-height: none;
    aspect-ratio: auto; margin: 0;
  }
  .watch-info { min-width: 0; padding-bottom: 26px; }
  .eps-modal { align-items: center; }
  .eps-sheet {
    border-radius: 18px; border-bottom: 1px solid var(--line);
    max-height: min(80vh, 720px); padding-top: 18px;
    transform: translateY(10px) scale(.985);
  }
  .eps-modal.on .eps-sheet { transform: none; }
  .eps-sheet::before { display: none; }
}

@supports (height: 100dvh) {
  @media (min-width: 1001px) {
    .watch-layout { min-height: calc(100dvh - 63px); }
    .vplayer.inline { height: calc(100dvh - 96px); }
  }
}

@media (min-width: 1001px) and (max-width: 1180px) {
  .watch-layout { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 32px; }
  .vplayer.inline .vstage { width: 100%; }
  .watch-info { grid-template-columns: 100px minmax(0, 1fr); column-gap: 18px; }
  .vplayer.inline .vbtn { width: 32px; height: 32px; }
  .vplayer.inline .vbtn svg { width: 16px; height: 16px; }
  .vplayer.inline .vbtn-play { width: 46px; height: 46px; }
  .vplayer.inline .vbtn-play svg { width: 20px; height: 20px; }
  .vplayer.inline .vcontrols { gap: 5px; }
  .vplayer.inline .vgrp { gap: 5px; }
  .vplayer.inline .vbot { padding-left: 10px; padding-right: 10px; }
  .vplayer.inline .vtime { font-size: 9.5px; letter-spacing: 0; }
  .vplayer.inline .vauto { font-size: 9.5px; }
}

@media (max-width: 1000px) {
  body.watch-page { overflow: hidden; }
  body.watch-page .site-header,
  body.watch-page .sidebar,
  body.watch-page .side-overlay,
  body.watch-page footer { display: none !important; }
  body.watch-page .shell { display: block; max-width: none; padding: 0; }
  body.watch-page .content { padding: 0; }
  body.watch-page .watch-layout { padding: 0; }
  body.watch-page .watch-info { display: none; }
  body.watch-page .vplayer.inline { width: 100%; }
  body.watch-page .vplayer.inline .vstage {
    height: 100svh; height: 100dvh; aspect-ratio: auto;
    border: 0; border-radius: 0; box-shadow: none;
  }
  body.watch-page .vrail { bottom: calc(176px + var(--safe-b)); }
}
@media (max-width: 400px) {
  .vplayer.inline .vcontrols { gap: 6px; }
  .vplayer.inline .vgrp { gap: 7px; }
  .vplayer.inline .vbtn { width: 34px; height: 34px; }
  .vplayer.inline .vbtn svg { width: 17px; height: 17px; }
  .vplayer.inline .vbtn-play { width: 50px; height: 50px; }
  .vplayer.inline .vbtn-play svg { width: 22px; height: 22px; }
  .vplayer.inline .vauto { display: none; }
}
.vplayer.inline:fullscreen .vstage,
.vplayer.inline:-webkit-full-screen .vstage,
.vplayer.inline.immersive .vstage {
  max-width: none; max-height: none; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0; border: 0; box-shadow: none;
}

.vplayer:fullscreen, .vplayer:-webkit-full-screen, .vplayer.immersive {
  z-index: 120; background: #000; padding: 0;
}
.vplayer:fullscreen .vstage, .vplayer:-webkit-full-screen .vstage, .vplayer.immersive .vstage {
  width: 100%; height: 100%; max-width: none; max-height: none;
  aspect-ratio: auto; border-radius: 0; border: 0;
}
.vplayer:fullscreen .vstage video, .vplayer:-webkit-full-screen .vstage video,
.vplayer.immersive .vstage video { object-fit: contain; }
@media (max-aspect-ratio: 9/16) {
  .vplayer:fullscreen .vstage video, .vplayer:-webkit-full-screen .vstage video,
  .vplayer.immersive .vstage video { object-fit: cover; }
}
@media (max-width: 820px), (max-height: 600px), (pointer: coarse) {
  .vplayer { padding: 0; }
  .vplayer:not(.inline) .vstage {
    width: 100%; height: 100%; max-width: none; max-height: none;
    aspect-ratio: auto; border-radius: 0; border: 0;
  }
}

.vtop {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; color: var(--fg-strong);
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 12px 26px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  transition: opacity .25s;
}
.vtop.hide { opacity: 0; pointer-events: none; }
.vtop .vt {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.vtop .vep {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(var(--overlay-rgb), .22);
  white-space: nowrap;
}
.vtop .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(var(--overlay-rgb), .18);
  color: var(--fg-strong); font-size: 14px; flex: 0 0 auto;
}

.vbot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: var(--fg-strong);
  padding: 52px 12px calc(6px + var(--safe-b));
  background: linear-gradient(0deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .5) 64%, rgba(0, 0, 0, 0));
  transition: opacity .25s;
}
.vbot.hide { opacity: 0; pointer-events: none; }
.vcontrols { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vgrp { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vgrp.left { justify-content: flex-start; }
.vgrp.right { justify-content: flex-end; }
.vbtn {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 0; display: inline-flex;
  align-items: center; justify-content: center; color: var(--fg-strong); line-height: 1;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(var(--overlay-rgb), .16);
  border-radius: 50%;
}
.vbtn svg { width: 19px; height: 19px; display: block; }
.vbtn:active { background: rgba(var(--overlay-rgb), .26); }
.vbtn[disabled] { opacity: .28; pointer-events: none; }
.vbtn-play { width: 54px; height: 54px; background: rgba(var(--accent-rgb), .92); border-color: transparent; color: var(--on-accent); }
.vbtn-play svg { width: 24px; height: 24px; }
.vmeta { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.vmeta .vtime {
  flex: 1; min-width: 0; font-size: 11px; color: #d5d8e2;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.vauto { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #dfe2ec; white-space: nowrap; }
.vauto input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; }

.vseek {
  width: 100%; height: 22px; margin: 2px 0 0; background: transparent;
  display: block; -webkit-appearance: none; appearance: none; touch-action: none; cursor: pointer;
}
.vseek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0, var(--accent) var(--p, 0%),
    rgba(var(--overlay-rgb), .38) var(--p, 0%), rgba(var(--overlay-rgb), .38) 100%);
}
.vseek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 0; margin-top: -5px; box-shadow: 0 0 0 3px rgba(0, 0, 0, .45);
}
.vseek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(var(--overlay-rgb), .38); }
.vseek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.vseek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

@media (pointer: coarse) {
  .vbtn { width: 44px; height: 44px; }
  .vbtn svg { width: 21px; height: 21px; }
  .vbtn-play { width: 60px; height: 60px; }
  .vbtn-play svg { width: 26px; height: 26px; }
  .vtop .icon { width: 40px; height: 40px; }
  .vgrp { gap: 14px; }
  .vseek { height: 30px; }
  .vseek::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; }
}

.vtap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.84);
  width: 74px; height: 74px; border-radius: 50%; background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center; color: var(--fg-strong);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 4;
}
.vtap svg { width: 32px; height: 32px; display: block; }
.vtap.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vload {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 2; background: rgba(0, 0, 0, .4); pointer-events: none;
}
.vload[hidden] { display: none; }
.vload i {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(var(--overlay-rgb), .2); border-top-color: var(--fg-strong);
  display: block; animation: spin .8s linear infinite;
}
.verr {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  z-index: 5; max-width: 86vw; text-align: center; font-size: 12px;
  color: var(--danger-2); background: rgba(0, 0, 0, .75);
  border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 8px; padding: 8px 12px;
}
.verr:empty { display: none; }

/* ------------------------------------------------------------ detail sheet (fallback) */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.on { display: block; }
.sheet .bd { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow: auto;
  background: var(--surface); border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0; padding: 20px 20px calc(24px + var(--safe-b));
}
@media (min-width: 760px) {
  .panel {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(720px, 92vw);
    transform: translate(-50%, -50%); border-radius: 14px; border: 1px solid var(--line);
  }
}
.close {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(var(--overlay-rgb), .06);
  border: 1px solid var(--line); font-size: 14px;
}
.dh { display: flex; gap: 16px; margin-right: 40px; }
.dh img, .dh .ph {
  width: 100px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: var(--elev); flex: 0 0 auto;
}
.dh h2 { margin: 2px 0 8px; font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.meta .pill, .pill { border: 0; padding: 0; font-size: 12px; color: var(--muted); }
.blurb { color: var(--soft-3); font-size: 13.5px; line-height: 1.7; margin: 14px 0 6px; max-height: 9em; overflow: auto; }
.play1 {
  width: 100%; margin: 16px 0 6px; background: var(--accent); border: 0;
  border-radius: 9px; padding: 13px; font-weight: 650; font-size: 14.5px; color: var(--on-accent);
}
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 7px; margin-top: 12px; }
.eps button {
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 0; font-size: 12.5px; color: var(--soft-6);
}
.eps button.on { border-color: var(--accent); color: var(--fg-strong); }
.ephead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; }
.ephead h3 { margin: 0; font-family: var(--serif); font-size: 18px; }

/* ------------------------------------------------------------- utilities */
.morewrap { display: flex; justify-content: center; padding: 34px 0 0; }
.more {
  background: transparent; border: 1px solid var(--line-2); color: var(--soft-2);
  border-radius: 999px; padding: 11px 28px; font-weight: 600; font-size: 13px;
}
.more:hover { border-color: var(--accent); color: var(--fg-strong); }
.more[disabled] { opacity: .4; }
.empty { color: var(--muted); text-align: center; padding: 56px 16px; line-height: 1.7; }
.spin { display: grid; place-items: center; padding: 44px; }
.spin i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #262b3a; border-top-color: var(--accent);
  display: block; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  z-index: 100; background: #161a23; border: 1px solid var(--line-2);
  color: var(--fg-strong); padding: 10px 16px; border-radius: 9px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .2s; max-width: 88vw;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* SEO tab links used by listing pages */
.seo-tab {
  flex: 0 0 auto; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; padding: 0;
}
.seo-tab:hover { color: var(--fg-strong); }
.seo-tab.on { color: var(--fg-strong); border-bottom-color: var(--accent); }

/* page head (listings) */
.pagehead{padding:34px 0 22px}
.pagehead h1{margin:0 0 6px;font-family:var(--serif);font-weight:600;
  font-size:clamp(26px,3.4vw,38px);line-height:1.1;letter-spacing:-.015em}
.pagehead p{margin:0;color:var(--muted-2);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase}
/* ------------------------------------------------------------ app shell */
.site-header{position:sticky;top:0;z-index:40;background:rgba(var(--bg-rgb),.9);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header-inner{max-width:var(--max);margin:0 auto;padding:0 20px;height:62px;
  display:flex;align-items:center;gap:16px}
.menu-btn{display:none;width:36px;height:36px;padding:0;border:1px solid var(--line);
  border-radius:8px;background:var(--surface);flex-direction:column;align-items:center;
  justify-content:center;gap:4px}
.menu-btn span{display:block;width:15px;height:1.5px;background:var(--soft-2);border-radius:2px}
.header-inner .search{margin-left:auto;flex:0 1 300px;min-width:0}

.shell{max-width:var(--max);margin:0 auto;padding:0 20px;display:grid;
  grid-template-columns:232px minmax(0,1fr);gap:0 46px;align-items:start}
.sidebar{grid-row:1 / span 2;position:sticky;top:63px;align-self:start;max-height:calc(100vh - 63px);
  overflow-y:auto;padding:24px 0 28px;scrollbar-width:thin}
.side-label{margin:26px 0 8px;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted-2)}
.side-label:first-child{margin-top:0}
.side-label.side-sep{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.side-nav a{position:relative;display:flex;align-items:center;gap:9px;
  padding:7px 10px;border-radius:8px;font-size:15px;
  color:var(--muted);transition:color .15s,background .15s}
.side-nav .sic{width:17px;height:17px;display:inline-flex;align-items:center;
  justify-content:center;flex:0 0 auto;color:var(--muted-2);transition:color .15s}
.side-nav .sic svg{width:17px;height:17px;display:block}
.side-nav .sic.dot::before{content:"";width:4px;height:4px;border-radius:50%;
  background:currentColor;opacity:.55;display:block}
.side-nav a:hover .sic,.side-nav a.on .sic{color:currentColor}
.side-nav a.on .sic.dot::before{opacity:1;background:var(--accent)}
.side-nav a:hover{color:var(--fg-strong);background:rgba(var(--overlay-rgb),.045)}
.side-nav a.on{color:var(--fg-strong);background:rgba(var(--overlay-rgb),.065)}
.side-nav a.on::before{content:"";position:absolute;left:0;top:9px;bottom:9px;
  width:2px;background:var(--accent)}
.content{min-width:0;padding:0 0 64px}
.content > .crumb{margin-top:30px}
.content .pagehead{padding:20px 0 18px}
.side-overlay{position:fixed;inset:0;height:100vh;height:100svh;height:100dvh;
  background:var(--bg);z-index:90}
.side-overlay[hidden]{display:none}

@media (max-width:1000px){
  .menu-btn{display:inline-flex}
  .shell{grid-template-columns:1fr;gap:0}
  .site-footer{grid-column:1 / -1}
  .sidebar{position:fixed;top:0;left:0;height:100vh;height:100svh;height:100dvh;
    width:282px;max-height:none;z-index:100;
    background:var(--surface);border-right:1px solid var(--line);
    padding:22px 20px calc(30px + var(--safe-b));transform:translateX(-100%);
    transition:transform .22s ease;overflow-y:auto}
  .sidebar.on{transform:none;box-shadow:0 0 60px rgba(0,0,0,.55)}
  .side-label{font-size:10px;letter-spacing:.2em}
  .side-label.side-sep{margin-top:26px;padding-top:0;border-top:0}
  .side-nav a{font-size:13.5px;gap:8px;padding:7px 0 7px 13px;
    border-radius:0;background:none}
  .side-nav .sic{width:16px;height:16px}
  .side-nav .sic svg{width:16px;height:16px}
  .side-nav a:hover,.side-nav a.on{background:none}
  .side-nav a.on::before{top:8px;bottom:8px}
  html.nav-open,html.nav-open body{overflow:hidden}
}
@media (max-width:600px){
  .header-inner{height:auto;padding:10px 16px;flex-wrap:wrap;gap:10px}
  .header-inner .search{flex:1 1 100%;order:3;max-width:none}
  .header-inner .acct{margin-left:auto;width:36px;padding:0;justify-content:center}
  .header-inner .acct-lbl{display:none}
  .shell{padding:0 16px}
}

/* ------------------------------------------------ mobile bottom tab bar */
.mobile-tabbar{display:none}
@media (max-width:700px){
  .mobile-tabbar{
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    display:flex;align-items:stretch;justify-content:space-around;gap:2px;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
    background:rgba(var(--bg-rgb),.96);border-top:1px solid var(--line);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    box-shadow:0 -8px 30px rgba(0,0,0,.35);
  }
  body:not(.watch-page){padding-bottom:calc(62px + env(safe-area-inset-bottom))}
  body.watch-page .mobile-tabbar{display:none!important}
  .mtab{
    flex:1 1 0;min-width:0;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:3px;padding:4px 2px;
    border-radius:9px;color:rgba(var(--fg-rgb), .58);
    font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
    text-align:center;transition:color .15s,background .15s;
  }
  .mtab .mtic{display:grid;place-items:center;width:22px;height:22px}
  .mtab .mtic svg{width:20px;height:20px;display:block}
  .mtab .mtl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mtab.on{color:var(--fg-strong);background:rgba(var(--overlay-rgb),.06)}
  .mtab.on .mtic,.mtab.on .mtl{color:var(--accent)}
  .mtab .mtic.mplay{
    width:28px;height:19px;border-radius:6px;
    background:#ff0033;color:var(--fg-strong);
    box-shadow:0 0 0 1px rgba(var(--overlay-rgb),.08);
  }
  .mtab .mtic.mplay svg{width:14px;height:14px}
}

.footer-inner{display:flex;flex-wrap:wrap;align-items:baseline;
  justify-content:space-between;gap:14px 30px}
.footer-brand{font-weight:800;font-size:12px;letter-spacing:.22em;margin:0;color:var(--soft-1)}
.footer-brand span{color:var(--accent)}
.footer-note{margin:0;font-size:11.5px;color:var(--muted-2)}

/* ------------------------------------------------ netflix-style home rows */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.billboard {
  position: relative; overflow: hidden; border-radius: 14px;
  margin: 22px 0 0; height: 520px; display: flex; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line);
}
.billboard.noart { background: linear-gradient(135deg, var(--noart-a), var(--noart-b) 70%); }
.bb-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.bb-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.bb-controls {
  position: absolute; right: 34px; bottom: 18px; z-index: 4;
  display: flex; align-items: center;
}
.bb-dots { display: flex; align-items: center; gap: 2px; }
.bb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 74px; padding: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--bg-rgb), .72); border: 1px solid rgba(var(--overlay-rgb), .16);
  color: var(--fg-strong); cursor: pointer; opacity: 0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .15s, background .15s;
}
.bb-arrow.prev { left: 12px; }
.bb-arrow.next { right: 12px; }
.billboard:hover .bb-arrow, .bb-arrow:focus-visible { opacity: 1; }
.bb-arrow:hover { background: rgba(var(--overlay-rgb), .16); }
.bb-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bb-arrow svg { width: 22px; height: 22px; display: block; }
@media (hover: none) { .bb-arrow { display: none; } }
.bb-dot {
  position: relative; width: 18px; height: 18px; padding: 0; border: 0;
  border-radius: 50%; background: none; display: grid; place-items: center;
  cursor: pointer;
}
.bb-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(var(--overlay-rgb), .35);
  transition: width .2s, background .2s, border-radius .2s;
}
.bb-dot:hover::before { background: rgba(var(--overlay-rgb), .7); }
.bb-dot.on { width: 34px; }
.bb-dot.on::before { width: 26px; border-radius: 4px; background: var(--accent); }
.bb-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bb-bg { position:absolute; inset:0; background-size:cover; background-position:center 28%;
  transform: scale(1.01); }
.bb-shade { position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),.97) 0%, rgba(var(--bg-rgb),.82) 42%, rgba(var(--bg-rgb),.28) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb),.2) 52%, rgba(var(--bg-rgb),.38) 100%);
}
.bb-inner { position:relative; z-index:2; padding:36px 40px 36px 64px; max-width:700px; }
.bb-kicker { margin:0 0 11px; font-size:10.5px; font-weight:700; letter-spacing:.2em;
  text-transform:uppercase; color:var(--accent); }
.bb-inner h2 { margin:0 0 13px; font-family:var(--sans); font-weight:800;
  font-size:clamp(34px,4.6vw,58px); line-height:1.02; letter-spacing:-.04em; color:var(--fg-strong);
  text-wrap:balance; }
.bb-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 18px;
  margin:0 0 13px; font-size:13px; color:#d2d2d2; }
.bb-meta b { color:var(--gold); font-weight:700; font-size:14px; }
.bb-desc { margin:0 0 22px; max-width:54ch; color:#c7c7c7; font-size:14.5px; line-height:1.65;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.bb-acts { display:flex; flex-wrap:wrap; gap:11px; }
.bb-play,.bb-more { display:inline-flex; align-items:center; gap:9px;
  padding:13px 24px; border-radius:6px; font-family:var(--sans);
  font-size:15px; font-weight:700; line-height:1; text-decoration:none; }
.bb-play { background:#fff; color:#000; }
.bb-play:hover { background:var(--bb-hover); }
.bb-play svg { width:19px; height:19px; display:block; }
.bb-more svg { width:18px; height:18px; display:block; }
.bb-more { background:rgba(109,109,110,.72); color:var(--fg-strong); }
.bb-more:hover { background:rgba(109,109,110,.92); }

.shelf { margin: 36px 0 0; }
.shelf-head { display:flex; align-items:baseline; justify-content:space-between;
  gap:16px; margin-bottom:12px; }
.shelf-head h2 { margin:0; font-family:var(--sans); font-weight:700;
  font-size:clamp(20px,2.1vw,26px); letter-spacing:-.025em; color:#f2f2f2; }
.shelf-head a, .shelf-head button {
  display: inline-flex; align-items: center; gap: 6px;
  font-size:13px; color:var(--muted-2); background:none; border:0; padding:0;
  white-space:nowrap;
}
.shelf-head a:hover, .shelf-head button:hover { color:var(--fg-strong); }

.shelf-wrap { position:relative; }
.srow {
  display:flex; gap:16px; overflow-x:auto; scroll-behavior:smooth;
  scrollbar-width:none; padding:4px 2px 8px; margin:0 -2px;
}
.srow::-webkit-scrollbar { display:none; }
.srow > .card { flex:0 0 190px; width:190px; }
.srow > .rankitem { flex:0 0 auto; }
.srow .hitem { flex:0 0 166px; width:166px; }

.rankitem { display:flex; align-items:flex-start; }
.rnum {
  font-family:var(--sans); font-size:200px; font-weight:800; line-height:.72;
  letter-spacing:-.09em; color:transparent;
  -webkit-text-stroke:2px rgba(var(--overlay-rgb),.34);
  margin: 60px -16px 0 0; flex:0 0 auto; user-select:none;
}
.rnum.top {
  -webkit-text-stroke: 2px var(--accent);
  filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), .22));
}
.rankitem .card { flex:0 0 190px; width:190px; position:relative; z-index:1; }

.snav {
  position:absolute; top:50%; transform:translateY(-50%); z-index:6;
  width:40px; height:74px; display:flex; align-items:center; justify-content:center;
  padding:0; border:1px solid rgba(var(--overlay-rgb),.16); border-radius:8px;
  background:rgba(var(--bg-rgb),.78); color:var(--fg-strong); font-size:22px; line-height:1;
  cursor:pointer; opacity:0; transition:opacity .15s, background .15s;
}
.snav:hover { background:rgba(var(--overlay-rgb),.16); }
.snav.prev { left:0; }
.snav.next { right:0; }
.snav[hidden] { display:none; }
.shelf:hover .snav { opacity:1; }
@media (hover: none) { .snav { display:none; } }

.srow .hcard img, .srow .hcard .ph { border-radius:6px; border:0; background:var(--img-bg); }
.srow .hcard .ht { font-size:12px; color:var(--soft-15); margin-top:8px; }
.srow .hcard .he { color:var(--soft-10); }

.genreband { margin: 40px 0 0; padding-top: 26px; border-top:1px solid var(--line); }
.genreband .genres { gap:8px; margin-top:0; }
.genreband .genres button {
  padding:7px 12px; border:1px solid var(--line); border-radius:999px;
  background:rgba(var(--overlay-rgb),.02); font-size:12px; color:var(--muted);
}
.genreband .genres button:hover { color:var(--fg-strong); border-color:var(--line-2); }
.genreband .genres button.on { color:var(--fg-strong); border-color:var(--accent); background:rgba(var(--accent-rgb),.1); }
.genreband .genres button.on::after { display:none; }

#toast { left:auto; right:24px; transform:translateY(16px); }
#toast.on { transform:none; }

@media (max-width: 760px) {
  .billboard { height: 500px; border-radius:12px; margin-top:16px; }
  .bb-controls { right: 18px; bottom: 12px; }
  .bb-arrow { display: none; }
  .bb-inner { padding: 24px 20px 52px; max-width: none; }
  .bb-desc { -webkit-line-clamp:2; font-size:13.5px; margin-bottom:18px; }
  .bb-play,.bb-more { padding:12px 20px; font-size:14px; }
  .shelf { margin-top:32px; }
  .srow { gap:13px; }
  .srow > .card { flex-basis:152px; width:152px; }
  .rankitem .card { flex-basis:152px; width:152px; }
  .rnum { font-size:160px; margin-top:48px; margin-right:-12px; }
  .srow .hitem { flex-basis:146px; width:146px; }
}
@media (max-width: 430px) {
  .srow > .card { flex-basis:140px; width:140px; }
  .rankitem .card { flex-basis:140px; width:140px; }
  .rnum { font-size:140px; margin-top:44px; }
  .srow .hitem { flex-basis:138px; width:138px; }
  #toast { right:16px; bottom:16px; }
}

/* --------------------------------------------------------------- accounts */
.acct {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--soft-1);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.acct:hover { border-color: var(--line-2); background: var(--elev); color: var(--fg-strong); }
.acct-av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .16); border: 1px solid rgba(var(--accent-rgb), .35);
  color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  flex: 0 0 auto; text-transform: uppercase;
}
.acct.guest .acct-av {
  background: rgba(var(--overlay-rgb), .05); border-color: var(--line); color: var(--muted);
}
.acct-lbl { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

.authwrap { max-width: 460px; margin: 48px auto 80px; }
.authcard {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 30px 30px 28px;
}
.authcard h1 {
  margin: 0 0 8px; font-family: var(--sans); font-weight: 800;
  font-size: clamp(25px, 3vw, 30px); line-height: 1.1; letter-spacing: -.03em;
}
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { margin: 0 0 15px; }
.field label {
  display: block; margin: 0 0 7px; font-size: 11.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.field input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  font: 15px var(--sans); outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--line-2); }
.field input::placeholder { color: var(--muted-2); }
.hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted-2); }
.check {
  display: flex; align-items: center; gap: 9px; margin: 4px 0 18px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.check input { width: 15px; height: 15px; accent-color: var(--accent); }
.abtn {
  width: 100%; height: 46px; border: 0; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-family: var(--sans);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .15s;
}
.abtn:hover { background: var(--accent-2); }
.abtn:active { transform: translateY(1px); }
.abtn.google {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #ffffff; color: #202124; border: 1px solid #d6d9de;
  font-weight: 600;
}
.abtn.google:hover { background: #f2f3f5; color: #111111; }
.google-g {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #4285f4;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--muted-2); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.abtn.ghost {
  width: auto; padding: 0 20px; background: transparent; color: var(--soft-1);
  border: 1px solid var(--line);
}
.abtn.ghost:hover { background: rgba(var(--overlay-rgb), .05); border-color: var(--line-2); }
.auth-msg {
  margin: 0 0 16px; padding: 11px 13px; border-radius: 9px;
  font-size: 13px; line-height: 1.5;
}
.auth-msg.err { background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--danger); }
.auth-msg.ok { background: rgba(0, 187, 127, .1); border: 1px solid rgba(0, 187, 127, .28); color: var(--success); }
.auth-alt { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--fg-strong); font-weight: 600; }
.auth-alt a:hover { color: var(--accent-2); }

.accountwrap { max-width: 820px; margin: 40px auto 80px; }
.profile {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.profile-av {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .16); border: 1px solid rgba(var(--accent-rgb), .35);
  color: var(--accent); font-size: 21px; font-weight: 800; text-transform: uppercase;
  flex: 0 0 auto;
}
.profile-body { min-width: 0; }
.profile h1 {
  margin: 0 0 4px; font-family: var(--sans); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.profile-meta { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.accountblock {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 22px;
}
.accountblock h2 {
  margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--fg);
}
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: var(--soft-5); overflow-wrap: anywhere; }
.logoutform { margin-top: 20px; display: flex; justify-content: flex-end; }
.profile + .auth-msg { margin-top: 16px; }

@media (max-width: 760px) {
  .acct-grid { grid-template-columns: 1fr; }
  .authwrap { margin: 28px auto 64px; }
  .authcard { padding: 24px 20px 22px; border-radius: 14px; }
  .accountwrap { margin: 28px auto 64px; }
  .profile { padding: 20px; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .acct { order: 2; width: 36px; padding: 0 5px; justify-content: center; }
  .acct-lbl { display: none; }
  .logoutform .abtn { width: 100%; }
}

/* ----------------------------------------------------------------- admin */
.profile-actions { margin: 14px 0 0; }
.profile-actions .abtn { width: auto; padding: 0 18px; }
.adminwrap { max-width: 1100px; margin: 30px auto 80px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.admin-head h1 {
  margin: 0 0 6px; font-family: var(--sans); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -.035em;
}
.admin-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.admin-sub b { color: var(--soft-1); }
.admin-head-actions { display: flex; gap: 10px; }
.admin-head-actions .abtn { width: auto; padding: 0 18px; height: 40px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 22px; border-bottom: 1px solid var(--line); }
.admin-tabs a {
  padding: 10px 14px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tabs a:hover { color: var(--fg-strong); }
.admin-tabs a.on { color: var(--fg-strong); border-bottom-color: var(--accent); }
.admin-tabs a.ext { margin-left: auto; color: var(--muted-2); }
.admin-tabs a.ext:hover { color: var(--accent-2); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 16px 14px; }
.stat span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.stat b { display: block; margin: 7px 0 4px; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.stat small { display: block; color: var(--muted-2); font-size: 11.5px; line-height: 1.4; }
.stats.stats-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-head { margin: 0 0 14px; }
.stat-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.stat-range a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.stat-range a:hover { color: var(--fg-strong); border-color: var(--line-2); }
.stat-range a.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.stat-range .stat-export { margin-left: auto; color: var(--accent-2); border-color: rgba(var(--accent-rgb), .3); }
.stat-trends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat-trend { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; }
.stat-trend h3 { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.stat-trend p { margin: 4px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.stat-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 12px; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.stat-chart .bar { flex: 1 1 0; min-width: 2px; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .25)); }
.stat-chart .bar:hover { filter: brightness(1.25); }
.stat-chart-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 10px; color: var(--muted-2); }
.stat-bars { display: flex; flex-direction: column; gap: 10px; }
.stat-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.stat-bar .track { height: 7px; border-radius: 999px; background: rgba(var(--overlay-rgb), .06); overflow: hidden; }
.stat-bar .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.stat-bar b { text-align: right; color: var(--fg-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-health div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(var(--overlay-rgb), .02); }
.stat-health b { display: block; font-size: 16px; color: var(--fg-strong); line-height: 1.2; word-break: break-all; }
.stat-health span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.theme-layout { align-items: start; }
.theme-preview { border: 1px solid; border-radius: 14px; overflow: hidden; }
.theme-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid; font-size: 13px; font-weight: 700; }
.theme-preview-top i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.theme-preview-body { padding: 16px; }
.theme-preview-body b { display: block; font-size: 16px; letter-spacing: -.01em; }
.theme-preview-body small { display: block; margin-top: 5px; font-size: 12px; }
.theme-preview-actions { display: flex; gap: 8px; margin-top: 14px; }
.theme-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.theme-btn.ghost { background: transparent; border: 1px solid; font-weight: 600; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; }
.theme-swatch { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.theme-swatch i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(var(--overlay-rgb), .15); display: block; }
.theme-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.theme-actions .abtn { width: auto; padding: 0 20px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .theme-actions .abtn { width: 100%; }
}
@media (max-width: 900px) {
  .stat-trends { grid-template-columns: 1fr; }
  .stat-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-range .stat-export { margin-left: 0; }
  .stat-bar { grid-template-columns: 80px minmax(0, 1fr) 40px; }
}
.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; }
.admin-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 20px; margin-top: 16px; }
.admin-grid .admin-panel { margin-top: 0; }
.admin-panel h2 { margin: 0 0 14px; font-size: 15px; letter-spacing: -.01em; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.admin-panel-head h2 { margin: 0; }
.admin-panel-head a, .admin-panel-head span { font-size: 12px; color: var(--muted-2); }
.admin-panel-head a:hover { color: var(--fg-strong); }
.table-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: 13px; }
.atable th {
  text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 0 10px 9px; white-space: nowrap;
}
.atable td { padding: 10px; border-top: 1px solid var(--line); color: var(--soft-2); vertical-align: middle; }
.atable td small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.atable-user { font-weight: 600; color: var(--fg-strong); }
.atable-user:hover { color: var(--accent-2); }
.atable-open { font-size: 12px; color: var(--muted); }
.atable-open:hover { color: var(--fg-strong); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted-2); }
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); background: rgba(var(--overlay-rgb), .03);
}
.badge.on { color: var(--success); border-color: rgba(0, 187, 127, .3); background: rgba(0, 187, 127, .1); }
.badge.off { color: var(--danger); border-color: rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .1); }
.badge.admin { color: var(--accent-2); border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .1); }
.admin-empty { color: var(--muted-2); font-size: 13px; padding: 14px 10px; }
.admin-feed { list-style: none; margin: 0; padding: 0; }
.admin-feed li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.admin-feed li:first-child { border-top: 0; padding-top: 0; }
.admin-feed span { display: block; color: var(--soft-5); }
.admin-feed small { color: var(--muted-2); font-size: 11.5px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.admin-filters input, .admin-filters select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--fg); font: 13.5px var(--sans);
}
.admin-filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.admin-filters .abtn { width: auto; padding: 0 18px; height: 40px; }
.admin-filters input:focus, .admin-filters select:focus { outline: none; border-color: var(--line-2); }
.admin-back { margin: 0 0 12px; font-size: 12.5px; }
.admin-back a { color: var(--muted); }
.admin-back a:hover { color: var(--fg-strong); }
.admin-userhead {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.admin-userhead h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.admin-userhead p { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.admin-badges { display: flex; gap: 6px; margin-top: 8px !important; }
.admin-actions { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.admin-actions form { width: 100%; }
.admin-actions .abtn { width: 100%; }
.abtn.danger { background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .35); color: var(--danger); }
.abtn.danger:hover { background: rgba(var(--accent-rgb), .2); }
.abtn:disabled { opacity: .45; cursor: not-allowed; }
.pager span.on {
  min-width: 40px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); border-radius: 9px; background: var(--accent);
  color: var(--on-accent); font-size: 13px; font-weight: 700;
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adminwrap { margin: 20px auto 64px; }
  .admin-head h1 { font-size: 28px; }
  .admin-panel { padding: 16px; }
  .admin-userhead { align-items: flex-start; }
}

/* ------------------------------------------------------------------- seo */
.home-intro { margin: 40px 0 0; max-width: 860px; }
.home-intro h1 {
  margin: 0 0 12px; font-family: var(--sans); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.home-intro p { margin: 0; color: var(--soft-3); font-size: 15px; line-height: 1.75; max-width: 78ch; }
.home-intro-links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px !important; }
.home-intro-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-size: 13px; font-weight: 600; }
.home-intro-links a:hover { color: var(--fg-strong); }
.seo-intro { margin: 18px 0 0; max-width: 80ch; color: var(--soft-14); font-size: 14px; line-height: 1.7; }
.seo-block { margin: 46px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.seo-block h2 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.faq { display: grid; gap: 8px; margin-top: 16px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 0 16px;
}
.faq-item summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 14px 34px 14px 0; font-size: 14px; font-weight: 600; color: var(--soft-1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 18px; font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { color: var(--fg-strong); }
.faq-a p { margin: 0 0 15px; color: var(--soft-3); font-size: 14px; line-height: 1.7; max-width: 82ch; }
.seo-page { max-width: 860px; margin-top: 26px; }
.seo-page h2 { margin: 32px 0 10px; font-size: clamp(19px, 2vw, 23px); letter-spacing: -.02em; }
.seo-page p { margin: 0 0 14px; color: var(--soft-3); font-size: 15px; line-height: 1.8; max-width: 82ch; }
.seo-page code { font-size: 13px; color: var(--soft-1); }
.seo-page-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.seo-page-links .abtn {
  width: auto; height: 44px; padding: 0 18px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 13.5px;
}
.seo-form { max-width: 680px; }
.seo-form .field { margin-bottom: 16px; }
.seo-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--fg); font: 14.5px/1.6 var(--sans); resize: vertical;
  outline: none;
}
.seo-form select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--bg); color: var(--fg);
  font: 14.5px var(--sans); outline: none;
}
.seo-form textarea:focus, .seo-form select:focus { border-color: var(--line-2); }
.seo-form .abtn { width: auto; padding: 0 20px; margin-top: 6px; }
.seo-checks { list-style: none; margin: 0; padding: 0; }
.seo-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.seo-checks li:first-child { border-top: 0; }
.seo-checks b { display: block; font-size: 13.5px; color: var(--soft-5); }
.seo-checks small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.seo-checks .badge { flex: 0 0 auto; margin-top: 1px; }
.badge.warn { color: var(--gold); border-color: rgba(var(--gold-rgb), .32); background: rgba(var(--gold-rgb), .1); }
@media (max-width: 760px) {
  .home-intro { margin-top: 30px; }
  .home-intro h1 { font-size: 28px; }
  .seo-block { margin-top: 36px; padding-top: 24px; }
  .faq-item { padding: 0 13px; }
}

/* ------------------------------------------------------------- turnstile */
.turnstile-wrap { margin: 6px 0 16px; min-height: 65px; }
.turnstile-wrap .cf-turnstile { max-width: 100%; }
.turnstile-note { margin: 6px 0 0; color: var(--muted-2); font-size: 12px; }
@media (max-width: 1000px) {
  /* iOS zooms focused inputs under 16px (login/register/account). */
  .field input, .field select, .field textarea { font-size: 16px; }
  .seo-form input, .seo-form select, .seo-form textarea { font-size: 16px; }
  .admin-filters input, .admin-filters select { font-size: 16px; }
}
@media (max-width: 420px) {
  .turnstile-wrap { transform-origin: left top; }
  .turnstile-wrap .cf-turnstile { transform: scale(.9); transform-origin: left top; }
}

/* ------------------------------------------------------------------- cms */
.topnav {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  max-width: 340px; overflow-x: auto; scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  transition: color .15s;
}
.topnav a:hover { color: var(--fg-strong); }
@media (max-width: 1000px) {
  .topnav { max-width: 240px; }
}
@media (max-width: 600px) {
  .topnav { order: 4; flex: 1 0 100%; max-width: none; gap: 18px; height: 28px; }
  .topnav a { font-size: 13px; }
}
.cms-head { padding-bottom: 10px; }
.cms-draft { margin-top: 14px; }
.cms-page {
  max-width: 820px; margin: 26px 0 40px; color: var(--soft-12);
  font-size: 15.5px; line-height: 1.85;
}
.cms-page h2 { margin: 38px 0 12px; font-size: clamp(21px, 2.3vw, 27px); color: var(--fg); letter-spacing: -.02em; }
.cms-page h3 { margin: 30px 0 10px; font-size: 20px; color: var(--soft-7); }
.cms-page h4 { margin: 24px 0 8px; font-size: 17px; color: var(--soft-7); }
.cms-page p { margin: 0 0 16px; }
.cms-page a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.cms-page a:hover { color: var(--fg-strong); }
.cms-page ul, .cms-page ol { margin: 0 0 18px; padding-left: 24px; }
.cms-page li { margin: 4px 0; }
.cms-page blockquote {
  margin: 22px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent); color: var(--soft-8);
}
.cms-page img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.cms-page hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.cms-page table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.cms-page th, .cms-page td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; }
.cms-page th { background: var(--surface); color: var(--fg-strong); }
.cms-page code { font-size: 13px; background: var(--surface); padding: 2px 5px; border-radius: 4px; }
.cms-page pre { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.cms-page pre code { background: none; padding: 0; }

/* ----------------------------------------------------------------- contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px; margin-top: 26px; align-items: start;
}
.contact-form {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 24px;
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--bg); color: var(--fg);
  font: 15px/1.6 var(--sans); outline: none; resize: vertical;
}
.field select { height: 44px; padding: 0 12px; }
.field textarea:focus, .field select:focus { border-color: var(--line-2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form .abtn { width: auto; padding: 0 22px; }
.contact-side {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 20px; color: var(--muted); font-size: 13px; line-height: 1.65;
}
.contact-side h2 { margin: 0 0 10px; font-size: 16px; color: var(--fg); }
.contact-side ul { margin: 0 0 12px; padding-left: 18px; }
.contact-side li { margin: 0 0 7px; }
.contact-side p { margin: 0; color: var(--muted-2); }
.contact-success {
  max-width: 640px; margin: 30px 0 60px; padding: 24px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.contact-success h2 { margin: 0 0 8px; font-size: 21px; }
.contact-success p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-success .abtn {
  width: auto; height: 40px; padding: 0 18px; display: inline-flex;
  align-items: center; text-decoration: none; margin-top: 6px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 18px; }
}

/* ---------------------------------------------------------- admin pages */
.cms-new {
  width: auto; height: 38px; padding: 0 16px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 13px;
}
.cms-row-actions { white-space: nowrap; }
.cms-row-actions form { display: inline; }
.linkbtn {
  background: none; border: 0; padding: 0 4px; cursor: pointer;
  color: var(--muted-2); font: 12px var(--sans);
}
.linkbtn:hover { color: var(--fg-strong); }
.linkbtn.danger:hover { color: var(--accent); }
.cms-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; margin-top: 16px; }
.cms-label {
  display: block; margin: 0 0 7px; font-size: 11.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.cms-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px;
  padding: 7px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0; background: var(--elev);
}
.cms-toolbar button {
  height: 32px; min-width: 32px; padding: 0 8px; cursor: pointer;
  border: 1px solid transparent; border-radius: 6px; background: none;
  color: var(--soft-2); font: 12.5px var(--sans);
}
.cms-toolbar button:hover { background: rgba(var(--overlay-rgb), .07); border-color: var(--line); color: var(--fg-strong); }
.cms-sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.cms-editor {
  min-height: 440px; padding: 20px; outline: none; overflow-wrap: anywhere;
  border: 1px solid var(--line); border-radius: 0 0 10px 10px;
  background: var(--bg); color: var(--soft-2); font: 15px/1.75 var(--sans);
}
.cms-editor:focus { border-color: var(--line-2); }
.cms-editor h2 { margin: 24px 0 10px; font-size: 24px; color: var(--fg-strong); }
.cms-editor h3 { margin: 20px 0 8px; font-size: 20px; color: var(--fg-strong); }
.cms-editor p { margin: 0 0 12px; }
.cms-editor a { color: var(--accent-2); text-decoration: underline; }
.cms-editor img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-editor blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--soft-8); }
.cms-editor ul, .cms-editor ol { padding-left: 24px; }
.cms-editor:empty::before { content: "Write the page..."; color: var(--muted-2); }
.cms-editor-side {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 18px; align-self: start;
}
.cms-editor-side .field { margin-bottom: 14px; }
.cms-editor-side .check { margin: 0 0 8px; }
.cms-viewlink { margin: 12px 0 0; font-size: 12.5px; }
.cms-viewlink a { color: var(--accent-2); }
.message-meta { margin: 4px 0 18px; }
.message-body {
  margin: 0 0 20px; padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--soft-2); font-size: 14.5px;
  line-height: 1.75; overflow-wrap: anywhere;
}
.message-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.message-actions form { margin: 0; }
.message-actions .abtn {
  width: auto; height: 40px; padding: 0 16px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 13px;
}
@media (max-width: 900px) {
  .cms-editor-grid { grid-template-columns: 1fr; }
  .cms-editor { min-height: 340px; }
}

/* ------------------------------------------------------------- favorites */
.fav-section { margin: 42px 0 0; }
.fav-section .shelf-head { margin-bottom: 16px; }
.favgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 16px;
}
.favcard { display: block; min-width: 0; color: inherit; text-decoration: none; }
.favitem { position: relative; min-width: 0; }
.favcover {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
}
.favcover img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; transition: transform .3s;
}
.favcard:hover .favcover img { transform: scale(1.04); }
.favcard:hover .favtitle { color: var(--fg-strong); }
.favbadge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600;
  color: rgba(var(--overlay-rgb), .92); background: rgba(6, 8, 13, .74);
  border: 1px solid rgba(var(--overlay-rgb), .14); letter-spacing: .02em;
}
.favbadge-heart { color: var(--danger); border-color: rgba(var(--accent-rgb), .35); }
.favtitle {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 10px; font-size: 14px; font-weight: 500;
  line-height: 1.4; color: var(--soft-15);
}
.favmeta { margin-top: 4px; font-size: 11.5px; color: var(--soft-10); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favempty { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.favlogin-row { margin: 16px 0 0; }
.favlogin-row .abtn {
  width: auto; height: 42px; padding: 0 18px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 13.5px;
}
.favsignin {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.favsignin-ic {
  width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; color: var(--accent); background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .3);
}
.favsignin h2 { margin: 0 0 6px; font-size: 17px; }
.favsignin p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 62ch; }
.favsignin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.favsignin-actions .abtn {
  width: auto; height: 40px; padding: 0 16px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 13px;
}
@media (max-width: 600px) {
  .favgrid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px 11px; }
  .favsignin { padding: 18px; gap: 12px; }
  .favsignin-ic { width: 42px; height: 42px; }
  .fav-section { margin-top: 32px; }
}
