/* ===================================================================
   DubDrama – public stylesheet
   Palette: midnight navy surfaces, saffron → gold accent.
   =================================================================== */

/* ===== Tokens ===== */
:root {
  --bg: #0a0e17;
  --bg-2: #0d1320;
  --surface: #121a2b;
  --surface-2: #192338;
  --surface-3: #202c45;
  --line: #233150;
  --line-2: #2d3d60;
  --text: #f4f6fb;
  --text-2: #d5dbe8;
  --muted: #93a0ba;
  --accent: #ff7a1a;
  --accent-hi: #ff9340;
  --accent-2: #ffc84a;
  --accent-ink: #1a0d00;
  --grad: linear-gradient(135deg, #ff7a1a 0%, #ffc84a 100%);
  --glow: 0 10px 30px rgba(255, 122, 26, .28);
  --dub: #22c55e;
  --sub: #38bdf8;
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 12px;
  --header-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255,122,26,.10), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(56,189,248,.06), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.rd-noscroll { overflow: hidden; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
::selection { background: rgba(255,122,26,.35); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ===== Buttons / chips ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-weight: 700; letter-spacing: .005em;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .2s;
}
.btn:hover { background: var(--surface-3); border-color: #3a4c75; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: var(--grad); border-color: transparent; color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { background: linear-gradient(135deg, #ff8a35 0%, #ffd266 100%); box-shadow: 0 14px 36px rgba(255,122,26,.4); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn.is-on { border-color: var(--accent); color: var(--accent-2); background: rgba(255,122,26,.12); }
.link-btn { background: none; border: 0; color: var(--accent-2); padding: 4px 0; font-weight: 700; }
.pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
/* platform icon: uploaded logo or coloured monogram */
.pf-icon { flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.pf-mono { display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; }

/* "Browse by platform" grid (home / explore) */
.pf-section { margin: 30px 0 8px; }
.pf-head-ico { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.pf-viewall {
  font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: border-color .15s, color .15s;
}
.pf-viewall:hover { border-color: var(--accent); color: var(--accent-2); }
.pf-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; min-height: 46px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 650; transition: border-color .15s, background .15s, transform .1s, box-shadow .2s;
}
.pf-btn:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.pf-btn:active { transform: scale(.98); }
.pf-btn.is-active { border-color: var(--accent); background: rgba(255,122,26,.12); color: var(--accent-2); }
.pf-name { white-space: nowrap; }
@media (max-width: 559px) {
  .pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-btn { padding: 8px 10px; min-width: 0; }
  .pf-name { overflow: hidden; text-overflow: ellipsis; }
}

/* /platforms page */
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 30px; }
.pf-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background .15s, transform .15s, box-shadow .2s;
}
.pf-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.pf-card .pf-icon { border-radius: 12px; }
.pf-card .pf-mono { font-size: 20px; }
.pf-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pf-card-body b { font-size: 16px; }
.pf-card-body small { color: var(--muted); }
.pf-desc { color: var(--muted); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-arrow { color: var(--muted); font-size: 22px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.tag small { color: var(--muted); margin-left: 4px; font-weight: 500; }
.tag:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(255,122,26,.08); }
.tag-cloud.small .tag { font-size: 13px; padding: 5px 11px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10,14,23,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,26,.55), rgba(255,200,74,.45), transparent);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 13px;
  background: var(--grad); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255,122,26,.35);
}
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.brand-name { display: inline-flex; align-items: baseline; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: none; gap: 2px; align-items: center; }
.nav-link { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-weight: 650; background: none; border: 0; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-link.is-active { color: var(--accent-2); background: rgba(255,122,26,.12); }
.nav-drop .caret { display: inline-block; font-size: 11px; transition: transform .2s; }
.nav-drop.open .caret { transform: rotate(180deg); }
.nav-drop.open > .nav-link { color: var(--text); background: rgba(255,255,255,.06); }

/* Platforms mega menu: full-width panel under the header */
.mega {
  position: fixed; left: 50%; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  width: min(1100px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, -6px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  padding: 16px; border-radius: 18px; background: rgba(18,26,43,.96); border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px rgba(0,0,0,.65); z-index: 70; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-drop.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mega-head b { font-size: 16px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.mega-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.mega-item:hover, .mega-item:focus-visible { background: var(--surface-2); outline: none; }
.mega-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-item small { color: var(--muted); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .mega { transition: none; } }
.search {
  margin-left: auto; display: flex; align-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 4px 0 14px; min-width: 0; flex: 0 1 320px; transition: border-color .15s, box-shadow .2s, background .15s;
}
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); padding: 10px 0; font: inherit; }
.search input::placeholder { color: var(--muted); }
.search button { background: none; border: 0; padding: 6px 9px; color: var(--muted); display: grid; place-items: center; border-radius: 999px; }
.search button:hover { color: var(--accent-2); }
.search:focus-within { border-color: var(--accent); background: rgba(255,122,26,.06); box-shadow: 0 0 0 4px rgba(255,122,26,.15); }
.search-big { max-width: 640px; margin: 0 0 16px; padding: 4px 4px 4px 18px; }
.search-big input { font-size: 17px; }
@media (min-width: 900px) { .main-nav { display: flex; } }

/* mobile tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(10,14,23,.94); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; font-weight: 600; color: var(--muted); transition: color .15s; }
.tabbar svg { width: 22px; height: 22px; fill: currentColor; }
.tabbar a.is-active { color: var(--accent-2); }
.tabbar a.is-active::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--grad); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ===== Spotlight ===== */
.spotlight { position: relative; margin: 18px 0 6px; }
.spot-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px; scrollbar-width: none; border: 1px solid rgba(255,255,255,.06); }
.spot-track::-webkit-scrollbar { display: none; }
.spot-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr;
  gap: 20px; align-items: center; padding: 22px; min-height: 270px; overflow: hidden; isolation: isolate;
}
.spot-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(30px) brightness(.5) saturate(1.3); z-index: -2; transform: scale(1.1); }
.spot-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,23,.92) 0%, rgba(10,14,23,.55) 55%, rgba(10,14,23,.25) 100%); z-index: -1; }
.spot-poster img { width: 136px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1); transition: transform .3s; }
.spot-poster:hover img { transform: translateY(-3px) scale(1.02); }
.spot-poster.is-wide img { width: 220px; aspect-ratio: 16/9; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--text-2); font-size: 13px; margin-bottom: 10px; align-items: center; }
.spot-title { font-size: clamp(22px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.spot-excerpt { color: var(--text-2); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 680px; }
.spot-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.spot-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line-2); padding: 0; transition: width .2s, background .2s; }
.spot-dots button.on { width: 24px; background: var(--grad); }
@media (min-width: 700px) {
  .spot-slide { padding: 44px 52px; min-height: 400px; gap: 44px; }
  .spot-poster img { width: 230px; }
  .spot-poster.is-wide img { width: 380px; }
}
@media (max-width: 480px) {
  .spot-excerpt { -webkit-line-clamp: 2; font-size: 14px; }
  .spot-poster img { width: 110px; }
  .spot-poster.is-wide img { width: 150px; }
}

/* ===== Sections / rows ===== */
.row-section { margin: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--grad); flex-shrink: 0; }
.section-logo { border-radius: 6px; }
.see-all { color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; transition: color .15s; }
.see-all:hover { color: var(--accent-2); }
.row-wrap { position: relative; }
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 0 8px;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 560px) { .row-scroll { grid-auto-columns: 27%; } }
@media (min-width: 900px) { .row-scroll { grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); } }
@media (min-width: 1250px) { .row-scroll { grid-auto-columns: calc((100% - 6 * var(--gap)) / 7); } }
.row-nav {
  display: none; position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(18,26,43,.95); font-size: 24px; line-height: 1; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: background .15s, color .15s;
}
.row-nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.row-nav.prev { left: -16px; } .row-nav.next { right: -16px; }
@media (hover: hover) and (min-width: 900px) { .row-wrap:hover .row-nav { display: grid; place-items: center; } }

/* ===== Card ===== */
.card { min-width: 0; }
.card-link { display: block; }
.card-poster {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card-poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(10,14,23,.75) 100%);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-poster { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.5), 0 0 0 1px rgba(255,122,26,.35); border-color: rgba(255,122,26,.4); }
.card-link:hover .card-poster img { transform: scale(1.06); }
.poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 48px; font-weight: 800; color: var(--muted); background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.series-meta .badge { position: static; }
.badge-dub { background: linear-gradient(135deg, #16a34a, #22c55e); }
.badge-sub { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.eps { position: absolute; bottom: 8px; right: 8px; z-index: 1; font-size: 11px; font-weight: 700; background: rgba(10,14,23,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); }
.resume { position: absolute; bottom: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 800; background: var(--grad); color: var(--accent-ink); padding: 3px 8px; border-radius: 999px; }
.play-ico {
  position: absolute; inset: 0; margin: auto; z-index: 1; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--accent-ink); opacity: 0; transform: scale(.7); transition: .2s; font-size: 17px; box-shadow: var(--glow);
  padding-left: 3px;
}
.card-link:hover .play-ico { opacity: 1; transform: scale(1); }
.card-body { padding: 9px 2px 0; }
.card-title { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.card-link:hover .card-title { color: var(--accent-2); }
.card-meta { display: flex; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; }
.rank {
  position: absolute; left: 6px; bottom: -8px; z-index: 1; font-size: 68px; font-weight: 900; line-height: 1; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.8));
}
.card-ranked .eps { display: none; }

/* ===== Grid / explore ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gap); }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grid-ad { grid-column: 1 / -1; }
.page-head { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; }
.page-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; }
.head-logo { border-radius: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-item { padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.seg-item:hover { color: var(--text); }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item.is-active { background: var(--grad); color: var(--accent-ink); }
.filter-selects { display: flex; flex-wrap: wrap; gap: 8px; }
select {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 36px 9px 12px; font: inherit; font-size: 14px; max-width: 100%;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2393a0ba' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(255,122,26,.15); }
.result-count { margin: 4px 0 14px; font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 34px 0; }
.pagination a, .pagination span { min-width: 42px; padding: 9px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-weight: 650; transition: border-color .15s, color .15s; }
.pagination .current { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.pagination a:hover { border-color: var(--accent); color: var(--accent-2); }
.empty { text-align: center; padding: 64px 16px; }
.empty h1 { font-size: 72px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty h2 { font-size: 24px; }
.empty .btn { margin-top: 14px; }

/* ===== Watch page: stage (video left, episodes right) ===== */
html, body { overflow-x: clip; }
.main-full { width: 100%; }
/* overflow:clip (not hidden): a hidden box is still scrollable by scrollIntoView(), which shifted the
   whole stage up when "Watch" was clicked on short screens. clip crops the same but is never scrollable. */
.stage { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stage-bg {
  position: absolute; inset: -80px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(60px) brightness(.32) saturate(1.3); transform: scale(1.1);
}
.stage-crumbs { background: rgba(10,14,23,.75); border-bottom: 1px solid rgba(255,255,255,.06); }
.stage-crumbs .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-block: 9px; font-size: 12px; }
.stage-crumbs [aria-current] { color: var(--text); font-weight: 700; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 14px 22px; }
.stage-grid.container { max-width: 1680px; }      /* room for the side ads */
.stage-main { min-width: 0; }
.stage-center { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.stage-side { display: none; min-width: 0; }
@media (min-width: 1200px) {
  .stage-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: start; }
  .stage.is-wide .stage-main { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px); }
  .stage-side { display: flex; position: sticky; top: calc(var(--header-h) + 12px); }
  .stage-side-left { justify-content: flex-end; }
  .stage-side-right { justify-content: flex-start; }
  .stage-side .ad-slot { margin: 0; max-width: 100%; }
}
.stage-ad { width: 100%; display: flex; justify-content: center; }
.stage-ad .ad-slot { margin: 0; max-width: 728px; }
.stage-ad:empty { display: none; }
.player {
  position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 9/16;
  height: min(72vh, 780px); max-width: 100%; box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
}
.stage.is-wide .player { width: 100%; height: auto; aspect-ratio: 16/9; }
.stage-eps { min-width: 0; }
.eps-panel {
  display: flex; flex-direction: column; background: rgba(18,26,43,.82); border: 1px solid var(--line);
  border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eps-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.eps-head h2 { font-size: 16px; font-weight: 800; }
.eps-head .tool-ep { padding: 0; }
.eps-panel .ep-tabs { padding: 10px 14px 0; margin: 0; }
.eps-body { padding: 12px 14px 14px; overflow-y: auto; overscroll-behavior: contain; max-height: 360px; }
.stage-eps-inner { display: flex; flex-direction: column; gap: 12px; }
.eps-ad { display: flex; justify-content: center; }
.eps-ad:empty { display: none; }
.eps-ad .ad-slot { margin: 0; max-width: 100%; }
@media (min-width: 1000px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .stage-eps { position: relative; }               /* column height follows the video column */
  .stage-eps-inner { position: absolute; inset: 0; }
  .eps-panel { flex: 1; min-height: 180px; }       /* episodes scroll, the ad below keeps its size */
  .eps-body { flex: 1; min-height: 0; max-height: none; }
  .eps-ad { flex: none; }
}
@media (max-width: 599px) {
  .stage-grid { padding-inline: 0; }
  .stage-ad { padding-inline: 12px; }
  .player { width: 100%; height: auto; max-height: 80vh; border-radius: 0; }
  .stage-eps { padding-inline: 12px; }
}

/* ===== Watch page: info below the stage ===== */
.watch-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; margin-top: 22px; }
@media (min-width: 1000px) { .watch-info { grid-template-columns: minmax(0, 1fr) 340px; } }
.watch-aside .ad-slot:first-child { margin-top: 0; }
.player video, .player-embed { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.player-start {
  position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; border-radius: 50%; border: 0; z-index: 4;
  background: var(--grad); color: var(--accent-ink); font-size: 30px; box-shadow: 0 10px 40px rgba(0,0,0,.5), var(--glow);
  transition: transform .15s;
}
.player-start:hover { transform: scale(1.06); }
.player-start span { margin-left: 5px; }
.player.is-playing .player-start { display: none; }

/* ----- custom player overlay ----- */
.player video { cursor: pointer; }
.pc-top, .pc-bottom { position: absolute; left: 0; right: 0; z-index: 5; transition: opacity .25s ease; }
.pc-top {
  top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px 28px; pointer-events: none; background: linear-gradient(rgba(0,0,0,.7), transparent);
  font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.pc-ep { white-space: nowrap; line-height: 1.35; }
.pc-full { color: var(--accent-2); letter-spacing: .06em; }
.pc-title { min-width: 0; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.pc-bottom { bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }

.pc-progress { position: relative; height: 18px; margin: 0 6px 2px; cursor: pointer; touch-action: none; outline: none; }
.pc-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; transition: height .15s, margin .15s; }
.pc-buf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.35); }
.pc-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); }
.pc-knob {
  position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,200,74,.25); transform: scale(0); transition: transform .15s;
}
.pc-progress:hover .pc-track, .is-seeking .pc-track, .pc-progress:focus-visible .pc-track { height: 6px; margin-top: -3px; }
.pc-progress:hover .pc-knob, .is-seeking .pc-knob, .pc-progress:focus-visible .pc-knob { transform: scale(1); }
.pc-tip {
  position: absolute; bottom: 20px; transform: translateX(-50%); padding: 2px 7px; border-radius: 5px;
  background: rgba(0,0,0,.85); font-size: 12px; font-weight: 700; pointer-events: none; white-space: nowrap;
}

.pc-row { display: flex; align-items: center; gap: 2px; }
.pc-btn {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: #fff; flex-shrink: 0;
}
.pc-btn svg { width: 21px; height: 21px; }
.pc-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.pc-btn:disabled { opacity: .35; cursor: default; }
.pc-btn:focus-visible, .pc-menu button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.player .i-pause, .player.is-playing .i-play, .player .i-muted, .player.is-muted .i-vol, .player .i-fs-exit, .player.is-fs .i-fs { display: none; }
.player.is-playing .i-pause, .player.is-muted .i-muted, .player.is-fs .i-fs-exit { display: block; }
.pc-vol { display: flex; align-items: center; }
.pc-volume { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--accent-2); height: 4px; cursor: pointer; }
.pc-vol:hover .pc-volume, .pc-vol:focus-within .pc-volume { width: 64px; opacity: 1; margin-right: 6px; }
.pc-time { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; margin-left: 4px; font-variant-numeric: tabular-nums; }
.pc-time b { color: #fff; }
.pc-spacer { flex: 1; }
.pc-menu-wrap { position: relative; }
.pc-menu {
  position: absolute; right: 0; bottom: 42px; min-width: 150px; padding: 6px; border-radius: 10px;
  background: rgba(18,26,43,.97); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 30px rgba(0,0,0,.6);
}
.pc-menu-title { padding: 4px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pc-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: none; font-size: 13px; }
.pc-menu button:hover { background: rgba(255,255,255,.08); }
.pc-menu button.on { color: var(--accent-2); font-weight: 700; }
.pc-menu button.on::after { content: " ✓"; }

/* loading spinner */
.pc-spinner {
  position: absolute; inset: 0; margin: auto; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent-2); animation: pcSpin .8s linear infinite; display: none; pointer-events: none;
}
.player.is-loading.is-playing .pc-spinner { display: block; }
@keyframes pcSpin { to { transform: rotate(360deg); } }

/* auto-hide while playing */
.player.is-playing:not(.show-ui) .pc-top,
.player.is-playing:not(.show-ui) .pc-bottom { opacity: 0; pointer-events: none; }
.player.is-playing:not(.show-ui) { cursor: none; }
.player.is-playing:not(.show-ui) video { cursor: none; }

/* narrow players: hide the less important buttons */
@media (max-width: 380px) { .pc-time { display: none; } }
.player .pc-row [data-pip][hidden] { display: none; }

/* embeds use their own controls; ads cover the overlay */
.player.is-embed .pc-bottom, .player.is-embed .pc-spinner { display: none; }
.player.is-embed .pc-top { pointer-events: none; }
/* during an ad break (class name must not look like an ad: blockers hide .is-ad, .ad-* …) */
.player.is-intermission .player-start, .player.is-intermission .pc-top, .player.is-intermission .pc-bottom, .player.is-intermission .pc-spinner { display: none; }

/* vertical series fill the 9:16 frame (no black bars around 3:4 posters) */
.player[data-orientation="vertical"] video { object-fit: cover; }

/* fullscreen */
.player:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.player:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.player:fullscreen video, .player:-webkit-full-screen video { object-fit: contain; }
.player-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.tool {
  min-width: 42px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; transition: border-color .15s, color .15s;
}
.tool:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-2); }
.tool:disabled { opacity: .35; cursor: default; }
.tool-ep { padding: 6px 12px; font-weight: 800; font-size: 14px; color: var(--accent-2); }
.tool-speed { padding: 6px 8px; border-radius: 10px; font-size: 13px; }
.player-tools .switch { margin-left: 4px; }
.badge-full {
  display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 6px; background: var(--grad); color: var(--accent-ink);
}
.info-block { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.info-block h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.details > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.details dt { font-size: 12px; color: var(--muted); }
.details dd { margin: 2px 0 0; font-weight: 650; }
.details a { color: var(--accent-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { padding: 12px 14px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 14px 14px; color: var(--text-2); }
.switch { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--accent); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--text); }
.series-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.series-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 14px; margin: 10px 0 16px; }
.series-meta .rating { color: var(--accent-2); font-weight: 700; }
.series-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.desc { color: var(--text-2); max-height: 4.6em; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.watch-info .tag-cloud { margin: 14px 0; }
.info-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ep-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; white-space: nowrap; font-weight: 600; }
.ep-tab.is-active { border-color: var(--accent); color: var(--accent-2); background: rgba(255,122,26,.1); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.ep-btn {
  display: grid; place-items: center; aspect-ratio: 1.25; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s, transform .1s;
}
.ep-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.ep-btn:active { transform: scale(.96); }
.ep-btn.active { background: var(--grad); border-color: transparent; color: var(--accent-ink); box-shadow: 0 6px 16px rgba(255,122,26,.3); }

/* ===== Static pages / footer ===== */
.static-page { max-width: 820px; margin: 30px auto; }
.static-page h1 { font-size: 32px; margin-bottom: 18px; }
.prose { color: var(--text-2); font-size: 16px; }
.prose a { color: var(--accent-2); }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: #070a12; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,122,26,.5), rgba(255,200,74,.4), transparent); }
.footer-grid { display: grid; gap: 26px; padding-block: 36px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.footer-grid a:not(.brand) { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid .muted { max-width: 420px; }
.footer-bottom { padding-block: 16px 24px; font-size: 13px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }

/* ===== Ad slots (server-rendered) ===== */
.ad-slot { position: relative; display: flex; justify-content: center; margin: 18px auto; text-align: center; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 10px; }
.ad-label, .rd-ad-tag {
  position: absolute; top: 4px; left: 4px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  background: rgba(0,0,0,.6); color: #ffd36b; padding: 1px 6px; border-radius: 4px; pointer-events: none;
}
.ad-sticky_bottom {
  position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 55; margin: 0;
  background: rgba(10,14,23,.96); border-top: 1px solid var(--line); padding: 6px 36px;
}
.ad-sticky_bottom img { max-height: 90px; width: auto; }
@media (min-width: 900px) { .ad-sticky_bottom { bottom: 0; } }
.ad-close { position: absolute; top: 4px; right: 6px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); font-size: 18px; line-height: 1; }

/* ===== JS ads: interstitial / player ===== */
.rd-interstitial {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 16px;
  animation: rdFade .2s ease;
}
@keyframes rdFade { from { opacity: 0; } to { opacity: 1; } }
.rd-ad-box { position: relative; width: min(92vw, 720px); min-height: 200px; max-height: 90vh; background: #000; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.rd-ad-layer .rd-ad-media { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; overflow: auto; }
.rd-ad-box .rd-ad-media img { max-height: 75vh; width: auto; margin: auto; }
.rd-ad-box .rd-ad-media video { width: 100%; max-height: 75vh; background: #000; }
.rd-player-ad { position: absolute; inset: 0; z-index: 10; background: #000; display: flex; flex-direction: column; }
.rd-player-ad .rd-ad-media video, .rd-player-ad .rd-ad-media img { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.rd-ad-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(0,0,0,.85); font-size: 13px; position: relative;
}
.rd-ad-bar .rd-ad-tag { position: static; }
.rd-ad-time { color: var(--muted); }
.rd-ad-more { color: #fff; text-decoration: underline; }
.rd-ad-sound { background: rgba(255,255,255,.12); border: 0; border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.rd-ad-skip {
  margin-left: auto; background: rgba(255,255,255,.95); color: #000; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 700;
}
.rd-ad-skip:disabled { background: rgba(255,255,255,.25); color: #ddd; cursor: default; }
/* pause overlay: sits ABOVE the control bar (which stays clickable), with its own Resume button */
.rd-pause-ad {
  position: absolute; z-index: 6; left: 50%; bottom: 74px; transform: translateX(-50%);
  width: min(88%, 320px); max-height: calc(100% - 150px); display: flex; flex-direction: column;
  background: rgba(10,14,23,.96); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,.7);
}
.rd-pause-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; flex: none; }
.rd-pause-bar .rd-ad-tag { position: static; }
.rd-pause-resume {
  margin-left: auto; padding: 5px 12px; border-radius: 999px; border: 0; background: var(--grad); color: var(--accent-ink);
  font-size: 13px; font-weight: 700;
}
.rd-pause-close { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); font-size: 18px; line-height: 1; flex: none; }
.rd-pause-body { min-height: 0; overflow: hidden; display: flex; justify-content: center; }
.rd-pause-ad img { width: 100%; height: auto; display: block; }
.player .pc-bottom { z-index: 7; }                         /* controls always above the pause ad */
.player.pc-overlay-open .player-start { display: none; }    /* Resume lives in the overlay */
.player.is-narrow .rd-pause-ad { bottom: 64px; }

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

/* ===== Ad cards inside series rows / framed script ads ===== */
.card-ad { display: flex; }
.card-ad .ad-slot {
  margin: 0; width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line-2); overflow: hidden;
}
.card-ad .ad-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card-ad .ad-slot > a { display: block; width: 100%; height: 100%; }
.ad-slot[data-ad-frame] { min-height: 50px; }
.ad-slot .rd-ad-frame { max-width: 100%; }
.card-ad .rd-ad-frame { align-self: center; }
.rd-player-ad .rd-ad-media .rd-ad-frame { width: 100%; height: 100%; place-self: stretch; }
.rd-ad-box .rd-ad-media .rd-ad-frame, .rd-pause-body .rd-ad-frame { width: 100%; }

/* platform grid: collapse long lists on phones/tablets */
.pf-toggle { display: none; }
@media (max-width: 899px) {
  .pf-collapsible:not(.is-open) .pf-more:not(.is-active) { display: none; }
  .pf-toggle {
    display: block; width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px;
    background: none; border: 1px dashed var(--line-2); color: var(--muted); font-weight: 700; font-size: 14px;
  }
  .pf-toggle:hover { color: var(--accent-2); border-color: var(--accent); }
}

/* compact player controls when the player is narrow (set by player.js) */
.pc-row { min-width: 0; }
.player.is-narrow .pc-bottom { padding-inline: 6px; }
.player.is-narrow .pc-btn { width: 30px; height: 30px; }
.player.is-narrow .pc-btn svg { width: 18px; height: 18px; }
.player.is-narrow .pc-vol .pc-volume { display: none; }
.player.is-narrow .pc-time { font-size: 11px; margin-left: 2px; }
.player.is-tiny .pc-time, .player.is-tiny [data-pip] { display: none; }

/* horizontal swipe = change episode; let the browser keep vertical scrolling */
.player { touch-action: pan-y pinch-zoom; }
.pc-swipe-hint {
  position: absolute; top: 50%; z-index: 8; transform: translateY(-50%); padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 14px; font-weight: 700; pointer-events: none;
  animation: pcHint .9s ease forwards;
}
.pc-swipe-hint.next { right: 12px; }
.pc-swipe-hint.prev { left: 12px; }
@keyframes pcHint { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ===== /reel – full-screen single player (views/reel.php) ===== */
body.page-reel { padding-bottom: 0; background: #000; background-image: none; overflow: hidden; }
.reel { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100vh; height: 100dvh; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.reel-row { flex: 1 1 0; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: 20px; }
.reel-ad, .reel-side { flex: none; display: flex; justify-content: center; max-width: 100%; }
.reel-ad:empty, .reel-side:empty { display: none; }
.reel-ad .ad-slot, .reel-side .ad-slot { margin: 0; max-width: 100%; }
.reel-ad .ad-slot img { max-height: 90px; width: auto; }
.reel-side { display: none; }
@media (min-width: 1200px) { .reel-side:not([hidden]):not(:empty) { display: flex; width: 300px; } }
.player.reel-player { height: 100%; width: auto; max-width: 100%; aspect-ratio: 9/16; border-radius: 0; box-shadow: none; }
.player.reel-player.is-wide { width: 100%; height: auto; max-height: 100%; aspect-ratio: 16/9; }
@media (min-width: 600px) { .player.reel-player { border-radius: 16px; } }
.reel-unmute {
  position: absolute; z-index: 6; top: 14px; left: 14px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: rgba(0,0,0,.65); color: #fff; font-weight: 700; font-size: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.player.is-intermission .reel-unmute { display: none; }
.page-reel .ad-sticky_bottom { bottom: 0; }

/* episode could not be loaded (expired / blocked / missing source) */
.pc-unavailable {
  position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; background: rgba(8,8,12,.92); color: #ddd; font-size: 14px;
}
.pc-unavailable p { margin: 0; line-height: 1.5; }
.pc-unavailable b { color: #fff; font-size: 16px; }
.player.is-unavailable .pc-spinner, .player.is-unavailable .player-start { display: none; }
