/* ============================================================
   UI v2 — "Editorial Noir"
   Fraunces display + Manrope interface, amber/sage accents,
   two-tier masthead and a bone-paper footer.
   Loaded after styles.css; overrides the v1 theme.
   ============================================================ */

:root {
  --bg: #0a0b09;
  --bg-2: #0e100c;
  --surface: #141610;
  --surface-2: #1a1c15;
  --line: rgba(236, 228, 212, 0.12);
  --line-strong: rgba(236, 228, 212, 0.24);
  --text: #f1ebdd;
  --muted: #a9a18f;
  --dim: #7a7263;
  --accent: #d8a44a;
  --accent-2: #e4572e;
  --accent-soft: rgba(216, 164, 74, 0.14);
  --gold: #d8a44a;
  --font-ui: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 4px;
  --radius-sm: 3px;
  --header-h: 104px;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

body { font-family: var(--font-ui); background: var(--bg); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
::selection { background: rgba(216, 164, 74, 0.35); color: #0a0b09; }
:focus-visible { outline-color: var(--accent); }
body::before { opacity: 0.022; }

/* ---------- masthead ---------- */
.site-header { height: var(--header-h); background: rgba(10, 11, 9, 0.72); }
.site-header.is-solid {
  background: rgba(10, 11, 9, 0.94);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-top { height: 30px; border-bottom: 1px solid rgba(236, 228, 212, 0.08); }
.header-top-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.header-inner { height: 74px; gap: 30px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 2px; background: var(--accent); color: #111208;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.04em;
}
.brand-name {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  letter-spacing: 0.03em; line-height: 1;
}
.brand-sub { font-family: var(--font-ui); font-size: 7.5px; letter-spacing: 0.2em; color: var(--dim); font-weight: 600; }
.main-nav { gap: 24px; }
.main-nav a {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.main-nav a::after { background: var(--accent); }
.header-actions .btn { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }

/* ---------- buttons & pills ---------- */
.btn {
  border-radius: 2px; height: 44px; padding: 0 20px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: #111208; }
.btn-primary:hover { background: #e4b562; }
.btn-light { background: var(--text); color: #111208; }
.btn-ghost { border-color: rgba(236, 228, 212, 0.28); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(216, 164, 74, 0.06); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 9.5px; }
.pill { border-radius: 2px; font-size: 9px; letter-spacing: 0.12em; }
.pill-accent { border-color: rgba(216, 164, 74, 0.5); color: var(--accent); background: var(--accent-soft); }
.eyebrow { color: var(--accent); font-size: 9px; letter-spacing: 0.24em; }
.eyebrow::before { background: var(--accent); width: 20px; }

/* ---------- hero ---------- */
.hero { min-height: min(790px, 93vh); padding: calc(var(--header-h) + 34px) 0 62px; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(54px, 7.2vw, 108px); line-height: 0.92; letter-spacing: -0.045em;
  margin: 18px 0 14px;
}
.hero-sub { color: var(--accent); font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.5vw, 33px); }
.hero-tagline { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.hero-meta { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.hero-meta .rating { border-color: rgba(236, 228, 212, 0.26); color: var(--accent); }
.hero-poster img {
  border-radius: 2px; border: 1px solid rgba(216, 164, 74, 0.42);
  box-shadow: 16px 16px 0 -2px rgba(216, 164, 74, 0.16), var(--shadow);
}
.hero-poster .poster-label {
  border-radius: 2px; background: rgba(10, 11, 9, 0.82);
  border-color: rgba(216, 164, 74, 0.4); color: var(--accent);
  font-family: var(--font-ui); font-size: 8.5px; letter-spacing: 0.18em;
}
.hero-bg img { opacity: 0.42; filter: blur(52px) saturate(0.92); }
.hero-bg::after {
  background:
    linear-gradient(90deg, var(--bg) 12%, rgba(10, 11, 9, 0.9) 44%, rgba(10, 11, 9, 0.42) 76%, rgba(10, 11, 9, 0.78) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(10, 11, 9, 0.12) 48%, rgba(10, 11, 9, 0.5) 100%);
}
.hero-scroll { display: none; }

/* ---------- sections ---------- */
body { counter-reset: sec; }
.section { counter-increment: sec; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-weight: 500; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.025em; }
.section .section-head h2::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--accent); margin-right: 14px; vertical-align: 3px;
}
.section-head .see-all { font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.section-head .see-all:hover { color: var(--accent); }

/* ---------- cards & rails ---------- */
.card { width: clamp(158px, 15vw, 196px); }
.card-media { border-radius: 3px; background: var(--surface); }
.card-media::after {
  box-shadow: inset 0 0 0 1px rgba(236, 228, 212, 0.12);
  background: linear-gradient(0deg, rgba(6, 7, 5, 0.55), transparent 42%);
}
.card:hover .card-media { box-shadow: 0 0 0 1px rgba(216, 164, 74, 0.55); }
.card:hover .card-media img { transform: scale(1.03); }
.card-badge {
  border-radius: 2px; background: rgba(8, 9, 6, 0.8);
  border-color: rgba(236, 228, 212, 0.18);
  font-size: 7.5px; letter-spacing: 0.12em;
}
.card-badge .dot { background: var(--accent); }
.card-title { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0.005em; margin-top: 12px; }
.card-meta { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.card-ep { border-radius: 2px; font-size: 8.5px; letter-spacing: 0.06em; }
.card-progress { height: 2px; background: rgba(236, 228, 212, 0.2); }
.card-progress i { background: var(--accent); }
.rail { gap: 15px; }
.rail-nav button { border-radius: 2px; border-color: var(--line-strong); }
.rail-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- spotlight ---------- */
.spotlight { border-radius: 3px; min-height: 330px; background: linear-gradient(135deg, #141610, #0b0c09); }
.spotlight:hover { border-color: rgba(216, 164, 74, 0.5); transform: translateY(-2px); }
.spotlight-copy h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 33px); }
.spotlight-copy p { font-size: 12.5px; }
.spotlight-cta { color: var(--accent); font-size: 9px; }
.spotlight:hover .spotlight-cta { color: #f0c987; }
.spotlight-meta { font-size: 9px; color: var(--dim); }

/* ---------- filters ---------- */
.chip { border-radius: 2px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; height: 34px; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #111208; font-weight: 700; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.select-wrap select { border-radius: 2px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- home note ---------- */
.home-note { padding-top: 84px; }
.note-lead h2 { font-weight: 500; }
.note-copy p { font-size: 13.5px; }
.note-link { color: var(--accent); border-color: rgba(216, 164, 74, 0.4); }

/* ---------- series detail ---------- */
.series-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; }
.series-tagline { font-family: var(--font-display); color: var(--accent); }
.series-poster img { border-radius: 2px; border-color: rgba(216, 164, 74, 0.35); }
.series-meta { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.series-meta .rating { color: var(--accent); border-color: rgba(236, 228, 212, 0.26); }
.ep-row a:hover { background: rgba(236, 228, 212, 0.04); }
.ep-num { font-family: var(--font-display); font-size: 21px; }
.ep-row:hover .ep-num { color: var(--accent); }
.ep-name { font-weight: 600; }
.ep-play { border-radius: 2px; border-color: var(--line-strong); }
.ep-row a:hover .ep-play { background: var(--accent); border-color: var(--accent); color: #111208; }

/* ---------- prose / company ---------- */
.prose p, .prose li { color: #c6beb0; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 25px; }
.prose h3 { font-family: var(--font-ui); }
.prose a { color: var(--accent); }
.prose ul li::before { background: var(--accent); }
.callout { border-radius: 3px; background: rgba(236, 228, 212, 0.025); }
.callout h3 { font-family: var(--font-display); font-size: 19px; }
.about-tile, .company-card, .contact-card { border-radius: 3px; }
.about-tile .num { color: var(--accent); }
.about-hero h1 em { color: var(--accent); }
.company-card-head { background: rgba(236, 228, 212, 0.025); }
.company-table span { color: var(--dim); }
.contact-card .mail { color: var(--accent); border-color: rgba(216, 164, 74, 0.4); }
.field input, .field textarea, .field select { border-radius: 2px; background: #0c0d0a; }
.field input:focus, .field textarea:focus { border-color: rgba(216, 164, 74, 0.55); }
.tabs { border-bottom-color: var(--line); }
.tab.is-active::after { background: var(--accent); }
.empty-state { border-radius: 3px; border-color: var(--line-strong); }

/* ---------- search & drawer ---------- */
.search-field { border-bottom-color: rgba(236, 228, 212, 0.3); }
.search-field input { font-family: var(--font-display); font-weight: 500; }
.search-result { border-radius: 3px; }
.search-result:hover { background: rgba(236, 228, 212, 0.05); }
.drawer-panel { background: #efe7d7; color: #14150f; border-left-color: rgba(20, 21, 15, 0.14); }
.drawer-head .brand-sub { color: #6f675a; }
.drawer-nav a { color: #14150f; border-bottom-color: rgba(20, 21, 15, 0.12); font-family: var(--font-display); font-weight: 500; }
.drawer-nav a span { color: #8a7f6d; }
.drawer-foot { color: #6f675a; }
.drawer-foot a { color: #4f483d; }
.drawer-foot strong { color: #14150f !important; }
.drawer .icon-btn { color: #14150f; }

/* ---------- player ---------- */
.watch-page { background: #080906; }
.watch-top { background: rgba(8, 9, 6, 0.82); border-bottom-color: rgba(236, 228, 212, 0.08); }
.watch-top .brand-mark { width: 34px; height: 34px; }
.watch-title b { font-weight: 600; }
.watch-top .legal { color: var(--dim); }
.stage { border-radius: 2px; border-color: rgba(236, 228, 212, 0.14); }
.big-play { border-radius: 2px; border-color: rgba(216, 164, 74, 0.65); background: rgba(10, 11, 9, 0.55); }
.big-play:hover { background: rgba(216, 164, 74, 0.18); }
.seek-fill { background: var(--accent); }
.seek-thumb { background: var(--accent); }
.stage-right .icon-btn { border-radius: 2px; background: rgba(8, 9, 6, 0.6); border-color: rgba(236, 228, 212, 0.16); }
.stage-right .icon-btn.is-on { color: var(--accent); border-color: rgba(216, 164, 74, 0.6); }
.next-btn { border-radius: 2px; background: rgba(216, 164, 74, 0.18); color: var(--accent); }
.watch-side { border-radius: 3px; background: #0d0e0b; border-color: rgba(236, 228, 212, 0.08); }
.side-head h2 { font-family: var(--font-display); font-weight: 500; }
.side-ep { border-radius: 2px; }
.side-ep.is-current { background: rgba(216, 164, 74, 0.1); }
.side-ep.is-current b { color: var(--accent); }
.side-ep-thumb { border-radius: 2px; }
.watch-back { letter-spacing: 0.04em; }
.upnext h3 { font-family: var(--font-display); font-weight: 500; }

/* ---------- bone-paper footer ---------- */
.site-footer {
  background: #ede5d4; color: #14150f; border-top: 0; margin-top: 100px;
}
.site-footer .brand-mark { background: #14150f; color: #ede5d4; }
.site-footer .brand-name { color: #14150f; }
.site-footer .brand-sub { color: #7a7160; }
.footer-tag { color: #3f3a31; font-family: var(--font-display); font-style: italic; font-size: 23px; }
.footer-brand p[style] { color: #6f675a !important; }
.footer-cols h4 { color: #8a7f6d; }
.footer-cols a { color: #4f483d; }
.footer-cols a:hover { color: #b23a1b; }
.footer-company { border-top-color: rgba(20, 21, 15, 0.14); border-bottom-color: rgba(20, 21, 15, 0.14); }
.footer-company div { color: #4f483d; }
.footer-company span { color: #8a7f6d; }
.footer-company strong { color: #14150f; }
.footer-company a { color: #4f483d; }
.footer-bottom { color: #8a7f6d; }
.footer-bottom a:hover { color: #14150f; }
.site-footer .brand { color: #14150f; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { min-height: min(740px, 90vh); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-top { display: none; }
  .site-header { height: 64px; }
  .header-inner { height: 64px; gap: 14px; padding: 0 16px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 6.5px; letter-spacing: 0.14em; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 58px); padding-bottom: 36px; }
  .hero-title { font-size: clamp(44px, 10.5vw, 64px); }
  .section .section-head h2::before { display: none; }
  .footer-tag { font-size: 21px; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .site-header, .header-inner { height: 60px; }
  .brand-name { font-size: 12.5px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .footer-brand p[style] { max-width: 100%; }
}
