:root {
  --bg: #08080a;
  --panel: #101014;
  --panel-2: #16161c;
  --line: #1f1f26;
  --text: #eef0f4;
  --muted: #8b8b96;
  --gold: #c9a227;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------------------------------- bar ---------------------------------- */
.bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px; position: sticky; top: 0; z-index: 30;
  background: rgba(8,8,10,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .16em; font-size: 13px; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 2px; }
.nav a { font-size: 13px; color: var(--muted); padding: 6px 11px; border-radius: 8px; transition: .15s; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--panel-2); }
.search { flex: 0 1 300px; margin-left: auto; }
.search input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 8px 12px; font: inherit; font-size: 13px; transition: .15s;
}
.search input:focus { outline: 0; border-color: #33333d; background: var(--panel-2); }
.icon-btn {
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-size: 14px; padding: 7px 11px; cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--panel-2); transform: translateY(-1px); }

main { padding-bottom: 70px; }
.msg { text-align: center; color: var(--muted); padding: 70px 20px; }
.page-title { font-size: 24px; margin: 26px 22px 16px; letter-spacing: -.02em; }

/* ---------------------------------- hero --------------------------------- */
.hero {
  position: relative; min-height: 66vh; display: flex; align-items: flex-end;
  overflow: hidden; animation: fadein .5s ease both;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 28%;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s ease;
  will-change: transform;
}
.hero .dtext.in { animation: heroIn .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.hero-fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--bg) 3%, rgba(8,8,10,.78) 40%, rgba(8,8,10,.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 22px 60px; width: 100%; max-width: 1500px; margin: 0 auto; }
.hero .dtext { max-width: 640px; animation: rise .5s ease both; }
.hero h1 { font-size: clamp(26px, 4.4vw, 50px); margin: 6px 0 8px; letter-spacing: -.03em; line-height: 1.06; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 21px; line-height: 1; cursor: pointer;
  opacity: 0; transition: .2s; backdrop-filter: blur(6px); z-index: 3;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,.8); }
.hero-arrow.left { left: 16px; }
.hero-arrow.right { right: 16px; }
.dots { z-index: 3; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.28); border: 0; transition: .25s;
}
.dot:hover { background: rgba(255,255,255,.55); }
.dot.on { background: var(--gold); width: 26px; border-radius: 99px; }
.kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dsub { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.dover { color: #cfd2d8; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.dacts { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-skel { height: 62vh; background: var(--panel); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .6 } }

/* --------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 16px; font: inherit; font-size: 13px; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: #33333d; }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }

/* ---------------------------------- rows --------------------------------- */
.row { margin: 30px 0 8px; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 22px 12px; }
.row-head h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.row-head a { font-size: 12px; color: var(--muted); }
.row-head a:hover { color: var(--gold); }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 22px 14px; }
.strip .card { flex: 0 0 156px; }

/* ---------------------------------- grid --------------------------------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px; padding: 0 22px;
}

/* ---------------------------------- card --------------------------------- */
.card { display: block; transition: transform .18s ease; }
.card:hover { transform: translateY(-4px); }
.art {
  position: relative; aspect-ratio: 2/3; border-radius: var(--radius);
  overflow: hidden; background: var(--panel-2); border: 1px solid var(--line);
}
.art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card:hover .art img { opacity: .82; }
.noart { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.rate {
  position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,.72); color: var(--gold); padding: 2px 6px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.card h3 { font-size: 12.5px; font-weight: 600; margin: 8px 0 2px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { font-size: 11px; color: var(--muted); margin: 0; }

/* --------------------------------- detail -------------------------------- */
.detail-hero, .hero .dposter { border-radius: var(--radius); }
.dposter { width: 180px; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-inner:has(.dposter) { display: flex; gap: 24px; align-items: flex-end; }
.dgen { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.dgen span { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }

.seasons { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 22px 12px; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 99px; padding: 5px 13px; font: inherit; font-size: 12px; cursor: pointer; transition: .15s;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 600; }
.eps { padding: 0 22px; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.ep {
  display: grid; grid-template-columns: 118px 1fr auto; gap: 13px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px 8px 8px; font: inherit; font-size: 13px; color: var(--text); text-align: left;
  cursor: pointer; transition: .15s;
}
.ep:hover { background: var(--panel-2); transform: translateX(3px); }
.ep:hover .epthumb img { transform: scale(1.06); }

/* episode thumbnail */
.epthumb {
  display: block; position: relative; width: 118px; aspect-ratio: 16 / 9;
  border-radius: 7px; overflow: hidden; background: #101016;
  border: 1px solid #22222c; flex: none;
}
.epthumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.epthumb.empty { display: grid; place-items: center; }
.epthumb-ph { font-size: 18px; opacity: .22; }

/* text block next to it */
.epmain { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.epn { color: var(--gold); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
.ept {
  color: #d6d9df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.epr { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* keep upcoming episodes visually receded without killing the image */
.ep.upcoming .epthumb img { opacity: .45; filter: grayscale(.5); }
.ep.seen .epthumb { opacity: .8; }

@media (max-width: 820px) {
  .ep { grid-template-columns: 92px 1fr auto; gap: 10px; padding: 7px 10px 7px 7px; }
  .epthumb { width: 92px; }
  .ept { font-size: 12.5px; }
}

.pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 30px; color: var(--muted); font-size: 12px; }

/* --------------------------------- player -------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(4,4,6,.86);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 18px;
  animation: fadein .18s ease both;
}
.player { width: min(1180px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.p-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.p-top strong { font-size: 14px; }
.p-sub { color: var(--gold); font-size: 12px; }
.p-top .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.p-top .x:hover { color: var(--text); }
.frame { position: relative; aspect-ratio: 16/9; background: #000; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spin { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.p-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
.p-bar label { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.p-bar select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12px;
}
.hint { font-size: 11px; color: var(--muted); margin-left: auto; }
.p-status { margin-left: auto; font-size: 11px; color: var(--muted); }
.p-status.ok { color: #6ee7a8; }
.p-status.bad { color: #f08a8a; }
.p-top .x { margin-left: 10px; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
select option { background: var(--panel-2); }
.auto-lbl { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auto-lbl input { accent-color: var(--gold); }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 99px; transition: .2s; cursor: pointer;
}
.switch span::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: var(--muted); border-radius: 50%; transition: .2s;
}
.switch input:checked + span { background: #3a3312; border-color: var(--gold); }
.switch input:checked + span::before { transform: translateX(20px); background: var(--gold); }

.foot { padding: 26px 22px; text-align: center; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.foot a { color: var(--gold); }

/* -------------------------------- settings ------------------------------- */
.settings { padding: 0 22px; max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.srow {
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.srow strong { font-size: 13.5px; }
.srow p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.badge { font-size: 11px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.badge.auto { color: var(--gold); border-color: #4a3d14; }
.badge.manual { color: #9fd6ff; border-color: #24404f; }
.scorelist {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px;
}
.score { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed #1a1a20; }
.score span { color: var(--muted); }
.score b { color: var(--gold); font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .nav { display: none; }
  .search { flex: 1; }
  .hero { min-height: 52vh; }
  .dposter { display: none; }
  .strip .card { flex-basis: 128px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
  .hint { display: none; }
}

/* -------------------------------- filters -------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 0 22px 18px; }
.filters select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 8px 11px; font: inherit; font-size: 12.5px; cursor: pointer;
  transition: .15s;
}
.filters select:hover { border-color: #33333d; }
.filters select:focus { outline: 0; border-color: var(--gold); }
.filters .reset { padding: 8px 13px; font-size: 12.5px; }
.filters .reset:disabled { opacity: .4; cursor: default; }
.fcount { font-size: 11px; color: var(--gold); border: 1px solid #4a3d14; border-radius: 99px; padding: 2px 9px; vertical-align: middle; margin-left: 6px; }

@media (max-width: 820px) {
  .filters { padding: 0 14px 14px; gap: 7px; }
  .filters select { flex: 1 1 44%; font-size: 12px; }
  .hero-arrow { display: none; }
  .hero { min-height: 54vh; }
}
/* -------------------------------- settings ------------------------------- */
.settings { padding: 0 22px; max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.srow {
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.srow strong { font-size: 13.5px; }
.srow p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.badge { font-size: 11px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.badge.auto { color: var(--gold); border-color: #4a3d14; }
.badge.manual { color: #9fd6ff; border-color: #24404f; }
.scorelist {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px;
}
.score { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed #1a1a20; }
.score span { color: var(--muted); }
.score b { color: var(--gold); font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .nav { display: none; }
  .search { flex: 1; }
  .hero { min-height: 52vh; }
  .dposter { display: none; }
  .strip .card { flex-basis: 128px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
  .hint { display: none; }
}

/* -------------------------------- filters -------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 0 22px 18px; }
.filters select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 8px 11px; font: inherit; font-size: 12.5px; cursor: pointer;
  transition: .15s;
}
.filters select:hover { border-color: #33333d; }
.filters select:focus { outline: 0; border-color: var(--gold); }
.filters .reset { padding: 8px 13px; font-size: 12.5px; }
.filters .reset:disabled { opacity: .4; cursor: default; }
.fcount { font-size: 11px; color: var(--gold); border: 1px solid #4a3d14; border-radius: 99px; padding: 2px 9px; vertical-align: middle; margin-left: 6px; }

@media (max-width: 820px) {
  .filters { padding: 0 14px 14px; gap: 7px; }
  .filters select { flex: 1 1 44%; font-size: 12px; }
  .hero-arrow { display: none; }
  .hero { min-height: 54vh; }
}/* ================================ scroller ================================ */

.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 22px 10px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; height: 0; }
.strip:focus-visible { outline: 1px solid #2e2e38; outline-offset: 3px; border-radius: 10px; }
.strip img, .strip a, .strip .card { -webkit-user-drag: none; user-select: none; }

/* always-visible dark rail */
.rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px 30px;
}
.rail.hidden { display: none; }

.rail-track {
  position: relative;
  flex: 1;
  height: 8px;
  background: #1c1c23;
  border: 1px solid #26262f;
  border-radius: 99px;
  cursor: pointer;
}
.rail-thumb {
  position: absolute;
  top: 0; left: 0;
  height: 6px;
  margin: 0;
  min-width: 50px;
  background: #43434f;
  border-radius: 99px;
  cursor: grab;
  will-change: transform;
  transition: background .15s;
}
.rail-track:hover .rail-thumb { background: #55555f; }
.rail.active .rail-thumb { background: var(--gold); cursor: grabbing; }

/* arrows next to the rail */
.row-arrows { display: flex; gap: 6px; }
.row-arrows button {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #16161c;
  border: 1px solid #26262f;
  color: var(--text);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: .15s;
}
.row-arrows button:hover:not(:disabled) { background: #22222b; border-color: #3a3a45; }
.row-arrows button:disabled { opacity: .3; cursor: default; }

/* ============================== mobile scaling ============================= */
@media (max-width: 820px) {
  .strip { gap: 10px; padding: 3px 14px 8px; }
  .rail { margin: 0 14px 24px; gap: 8px; }
  .rail-track { height: 7px; }
  .rail-thumb { height: 5px; min-width: 44px; }
  .row-arrows button { width: 28px; height: 28px; font-size: 14px; }
  .strip .card { flex-basis: 124px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 11px; padding: 0 14px; }
  .card h3 { font-size: 11.5px; }
  .card p { font-size: 10px; }
  .rate { font-size: 9px; padding: 1px 5px; }
  .page-title { font-size: 19px; margin: 18px 14px 12px; }
  .hero-inner { padding: 26px 14px 52px; }
  .hero h1 { font-size: 25px; }
  .dover { font-size: 13px; }
  .dots { bottom: 12px; }
  .settings { padding: 0 14px; }
  .srow { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scorelist { grid-template-columns: 1fr; }
  .eps { padding: 0 14px; max-height: 340px; }
  .ep { grid-template-columns: 38px 1fr; font-size: 12px; }
  .epr { display: none; }
  .p-bar { gap: 9px; padding: 10px 12px; }
  .p-bar .hint { display: none; }
  .modal { padding: 0; }
  .player { border-radius: 0; height: 100%; display: flex; flex-direction: column; }
  .frame { flex: 1; }
  .filters { padding: 0 14px 14px; gap: 7px; }
  .filters select { flex: 1 1 45%; font-size: 12px; }
  .hero-arrow { display: none; }
}
@media (max-width: 480px) {
  .strip .card { flex-basis: 108px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 9px; }
  .brand { font-size: 12px; }
  .search { flex-basis: 140px; }
}
/* --------------------------- continue watching ---------------------------- */
.badge-ov {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  background: rgba(0,0,0,.82); color: var(--gold);
  padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(4px);
  border: 1px solid rgba(201,162,39,.35);
}
.linkbtn {
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 12px; cursor: pointer; padding: 2px 0;
}
.linkbtn:hover { color: var(--gold); }
.continue .row-head h2 { color: var(--gold); }

/* ---------------------------- next episode line --------------------------- */
.nextep {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 13px; color: #d6d9df; margin: 0 0 14px;
  background: rgba(201,162,39,.07); border: 1px solid rgba(201,162,39,.22);
  border-radius: 9px; padding: 8px 12px; width: fit-content;
}
.nextep b { color: var(--gold); }
.nextep.ended { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--muted); }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold); animation: livePulse 1.8s infinite;
}
@keyframes livePulse { 50% { opacity: .35 } }
.status { color: #6ee7a8; }
.status.ended { color: var(--muted); }

/* ------------------------------ episode states ---------------------------- */
.ep.seen { border-color: #2a4034; }
.ep.seen .epn { color: #6ee7a8; }
.ep.seen .ept { color: var(--muted); }
.ep.upcoming { opacity: .45; cursor: not-allowed; }
.ep.upcoming .epr { color: var(--gold); opacity: .9; }
.ep:disabled { cursor: not-allowed; }
.ep:disabled:hover { transform: none; background: var(--panel); }
/* --------------------------- episode list extras -------------------------- */
.epsum { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.epsum-line {
  font-size: 11.5px; color: var(--muted); padding: 0 2px 8px;
  border-bottom: 1px dashed #1a1a20; margin-bottom: 8px;
}
.eplist { display: flex; flex-direction: column; gap: 6px; }
.ep.latest { border-color: #4a3d14; background: linear-gradient(90deg, rgba(201,162,39,.07), transparent 40%); }
.ep.latest .epr { color: var(--gold); font-weight: 700; font-size: 10px; letter-spacing: .06em; }
.ep.nodate { opacity: .7; }
.ep.nodate .epr { color: var(--muted); }
.p-hint {
  margin: 0; padding: 9px 16px 12px;
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
  border-top: 1px solid var(--line);
}
.p-hint b { color: var(--gold); }
@media (max-width: 820px) { .p-hint { font-size: 10.5px; padding: 8px 12px 10px; } }
/* -------------------------- specials, kept separate ----------------------- */
.specials-row {
  margin-top: -4px;
  padding-top: 10px;
  border-top: 1px dashed #1e1e26;
}
.specials-row:empty { display: none; }
.sp-label {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: 6px; align-self: center;
}
.chip.special {
  border-color: #3a3222;
  color: #cbb27a;
  background: rgba(201,162,39,.06);
}
.chip.special:hover { color: var(--text); }
.chip.special.on { background: var(--gold); border-color: var(--gold); color: #17130a; }
/* ------------------------------ episode remap ----------------------------- */
.remap { margin-top: 8px; }
.remap summary {
  cursor: pointer; color: var(--gold); font-size: 11.5px;
  list-style: none; display: inline-flex; align-items: center; gap: 5px;
}
.remap summary::-webkit-details-marker { display: none; }
.remap summary::before { content: '?'; font-size: 12px; }
.remap[open] summary { margin-bottom: 8px; }
.remap-row {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
}
.remap-row input {
  width: 56px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; color: var(--text); padding: 4px 7px; font: inherit; font-size: 12px;
}
.remap-row button { padding: 4px 10px; font-size: 11.5px; }
.remap-row em { color: var(--gold); font-style: normal; font-size: 11px; }
.remap-note {
  display: block; margin-top: 7px; font-size: 11px; color: var(--muted);
  line-height: 1.45; max-width: 560px;
}
/* -------------------------------- skeleton -------------------------------- */
.skel-lines { display: flex; flex-direction: column; gap: 12px; padding: 0 0 8px; }
.skel-lines span {
  display: block; height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #16161c 25%, #1f1f27 50%, #16161c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.hero .skel-lines { max-width: 620px; }
/* ---------------------------------- ads ----------------------------------- */
/* The slot must be VISIBLE and have real dimensions BEFORE the ad script runs.
 * Ad networks measure offsetWidth/offsetHeight and silently refuse to render
 * into a display:none or zero-height container — which is exactly why the
 * native banner showed nothing while the popunder still worked. */
.ad-slot {
  display: block;
  max-width: 970px;
  margin: 34px auto 10px;
  padding: 0 22px;
  text-align: center;
}
.ad-slot.off { display: none; }          /* collapsed only AFTER a failed fill */
.ad-label {
  display: block;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #4a4a56;
  margin-bottom: 8px;
}
.ad-box {
  position: relative;
  display: block;
  width: 100%;
  min-width: 250px;
  min-height: 100px;                      /* give it layout, not zero height */
  overflow: hidden;
}
.ad-box > * { max-width: 100%; }
.ad-box iframe,
.ad-box img,
.ad-box ins {
  max-width: 100%;
  height: auto;
}
@media (max-width: 820px) {
  .ad-slot { margin: 24px auto 6px; padding: 0 14px; }
  .ad-box { min-height: 100px; }
}