@font-face { font-family: "Playfair"; src: url("/static/fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0b0a0e; --bg2: #15131a; --bg3: #1e1b24; --line: #2c2833;
  --ink: #f4efe8; --mute: #a59fae; --dim: #6f6977;
  --gold: #d8b46a; --gold2: #f1d79c; --rose: #e0577a;
  --radius: 14px;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(11,10,14,.96), rgba(11,10,14,.78)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.04); }
.brand { text-decoration: none; display: flex; align-items: baseline; font-family: "Montserrat", var(--sans); font-weight: 800; font-size: 23px; letter-spacing: -.5px; }
.brand-plus { color: var(--gold); margin-left: 1px; font-size: 26px; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a, .top-nav button { text-decoration: none; font-size: 14px; color: var(--mute); background: none; border: 0; padding: 8px 10px; border-radius: 999px; }
.top-nav a:hover, .top-nav button:hover { color: var(--ink); }
.top-nav .pill { color: #16121a; background: var(--gold); font-weight: 600; padding: 8px 16px; }
.top-nav .pill:hover { color: #16121a; background: var(--gold2); }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 0 40px; }
.loading { padding: 60px 20px; color: var(--dim); text-align: center; }
.wrap { padding: 0 18px; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.2); }
.hero-in { position: relative; display: flex; gap: 28px; align-items: flex-end; padding: 28px 18px 30px; }
.hero-poster { width: 230px; flex: none; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { max-width: 560px; padding-bottom: 8px; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; }
.hero h1, .show-head h1 { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.05; margin: 8px 0 10px; letter-spacing: -.3px; }
.hero p, .show-head p { color: #d9d3cc; margin: 0 0 18px; font-size: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #16121a; }
.btn-gold:hover { background: var(--gold2); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--ink); border-color: rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-plain { background: none; color: var(--mute); border: 0; padding: 0 6px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-wide { width: 100%; }

/* rows */
.row { margin-top: 30px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 18px; margin-bottom: 12px; }
.row-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0; }
.row-head a { color: var(--mute); font-size: 14px; text-decoration: none; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.poster-card { flex: none; width: 150px; scroll-snap-align: start; text-decoration: none; }
.poster-card .pc-img { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: var(--bg3); box-shadow: 0 0 0 1px rgba(255,255,255,.06); position: relative; }
.poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.poster-card:hover img { transform: scale(1.04); }
.poster-card .pc-meta { font-size: 13px; color: var(--mute); margin-top: 6px; }
.badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(11,10,14,.75); color: var(--gold2); backdrop-filter: blur(4px); }
.badge.open { color: #9be3b9; }

/* show page */
.show-head { position: relative; overflow: hidden; }
.show-head .hero-in { align-items: center; }
.meta-line { color: var(--mute); font-size: 14px; margin-bottom: 6px; }
.eps { list-style: none; margin: 10px 0 0; padding: 0 18px; display: grid; gap: 10px; }
.ep { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s; }
.ep:hover { border-color: #463f50; background: #19171f; }
.ep-thumb { width: 64px; flex: none; aspect-ratio: 9/16; border-radius: 8px; overflow: hidden; background: var(--bg3); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-body { flex: 1; min-width: 0; }
.ep-num { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.ep-title { font-weight: 600; font-size: 16px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-sub { color: var(--mute); font-size: 13px; }
.ep-state { flex: none; font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 6px; padding-right: 6px; }
.ep-state.open { color: #9be3b9; }
.lock { width: 16px; height: 16px; }

/* watch */
.watch { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; padding: 20px 18px; align-items: start; }
.player { position: relative; width: 100%; aspect-ratio: 9/16; max-height: calc(100svh - 120px); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); margin: 0 auto; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .veil { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px) brightness(.4); transform: scale(1.1); }
.player video.teaser { position: absolute; inset: 0; object-fit: cover; filter: brightness(.55) saturate(1.1); }
.paywall { position: absolute; inset: auto 0 0 0; padding: 22px 18px 20px; background: linear-gradient(180deg, rgba(11,10,14,0) 0%, rgba(11,10,14,.92) 22%, rgba(11,10,14,.98)); }
.paywall h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; line-height: 1.15; }
.paywall p { margin: 0 0 14px; color: #d9d3cc; font-size: 14px; }
.paywall .btn { width: 100%; margin-top: 8px; }
.fine { color: var(--dim); font-size: 12px; margin-top: 10px; line-height: 1.45; }
.fine a { color: var(--mute); }
.watch-info h1 { font-family: var(--serif); font-size: 30px; margin: 4px 0 6px; line-height: 1.15; }
.watch-info .ep-list-title { font-family: var(--serif); font-size: 20px; margin: 26px 0 8px; }
.watch-info .eps { padding: 0; }
.ep.current { border-color: var(--gold); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); color: var(--mute); font-size: 14px; margin-top: 12px; }
.notice.good { border-color: #2f5a42; color: #b9ecd0; }
.notice.bad { border-color: #6a2f3e; color: #f3b9c7; }

/* forms */
.panel { max-width: 440px; margin: 40px auto; padding: 26px 22px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; }
.panel h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 6px; }
.panel p { color: var(--mute); margin: 0 0 18px; }
label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 6px; }
input[type=email], input[type=number] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #3a3542; background: #0f0e13; color: var(--ink); font-size: 16px; }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.panel .btn { width: 100%; margin-top: 12px; }
.msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.msg.bad { color: #f3a5b8; }
.msg.good { color: #9be3b9; }

/* checkout sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 460px; background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
.sheet-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.sheet h2 { font-family: var(--serif); font-size: 24px; margin: 0; line-height: 1.2; }
.sheet .x { background: rgba(255,255,255,.08); border: 0; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
.sheet .price { font-size: 15px; color: var(--mute); margin: 4px 0 16px; }
.sheet .price b { color: var(--ink); font-size: 18px; }
.saved-card { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.test-banner { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #2a2210; color: var(--gold2); border: 1px solid #4b3c18; margin-bottom: 12px; }
#card-container { min-height: 90px; margin: 4px 0; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; border-bottom: 1px solid var(--line); } }

/* account and owner */
.acct { max-width: 640px; margin: 24px auto; padding: 0 18px; }
.acct h1 { font-family: var(--serif); font-size: 32px; margin: 0 0 4px; }
.card-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 16px; }
.card-box h2 { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.card-box p { margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.list td:last-child { text-align: right; white-space: nowrap; }
.terms { max-width: 680px; margin: 28px auto; padding: 0 18px; color: #d9d3cc; }
.terms h1 { font-family: var(--serif); color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 13px; border-top: 1px solid rgba(255,255,255,.05); }
.foot a { color: var(--mute); }

@media (max-width: 760px) {
  .hero-in { flex-direction: column; align-items: center; text-align: center; padding: 18px 18px 24px; gap: 18px; }
  .hero-poster { width: min(62vw, 250px); }
  .hero h1, .show-head h1 { font-size: 32px; }
  .hero .btns, .show-head .btns { justify-content: center; }
  .watch { grid-template-columns: minmax(0, 1fr); padding: 0 0 20px; gap: 18px; }
  .player { border-radius: 0; max-height: none; box-shadow: none; }
  .watch-info { padding: 0 18px; }
  .top { padding-left: 14px; padding-right: 10px; }
  .top-nav a, .top-nav button { padding: 8px 8px; }
  .poster-card { width: 132px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
