:root {
  color-scheme: dark;
  --page: #10090b;
  --panel: #21171b;
  --panel-soft: #2b1d22;
  --text: #fff8fa;
  --muted: #cbb9c0;
  --accent: #e20d3f;
  --accent-bright: #ff456d;
  --line: rgba(255, 255, 255, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}

* { box-sizing: border-box; }

html { background: var(--page); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  background-color: var(--page);
  /* Keep the glow in the first screen, even on long catalog pages. */
  background-image:
    radial-gradient(ellipse 560px 420px at 83% 120px, rgba(255, 189, 101, 0.13), transparent 72%),
    radial-gradient(ellipse 880px 650px at 82% 240px, rgba(143, 49, 36, 0.28), transparent 75%),
    linear-gradient(180deg, #160d0e, var(--page));
  background-size: 100% 900px, 100% 1000px, 100% 1000px;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.45); }
a:hover { text-decoration-color: var(--accent-bright); }
a:focus-visible, .watch-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer, main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; font-size: 1.35rem; font-weight: 900; text-decoration: none; }
.brand-logo { display: block; width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; clip-path: circle(46.8%); }

main { min-height: 65vh; padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero { max-width: 780px; margin-bottom: 3rem; }
.hero.compact { margin-bottom: 2rem; }
.hero h1, .prose h1, .show-detail h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero.compact h1, .prose h1 { font-size: clamp(2rem, 6vw, 4rem); }
.eyebrow { color: #ff96ad; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.hero p, .synopsis, .prose > p { color: var(--muted); font-size: 1.08rem; }

/* Compact only the discovery landing page; other page spacing is unchanged. */
.discovery-main { padding-top: clamp(1.25rem, 3.5vw, 3rem); }
.discover-hero { max-width: 1040px; margin-bottom: 1.5rem; }
.discover-hero > p { max-width: 780px; }
.discovery-main > .genre-links { margin-block: 1rem 2rem; }

@media (min-width: 721px) {
  .discover-hero h1 { font-size: clamp(2.25rem, 6.2vw, 5rem); }
  .discover-title-line { display: block; white-space: nowrap; }
}

.genre-links, .tags { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-block: 1.5rem 3rem; }
.genre-links a, .tag {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  text-decoration: none;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
}
.drama-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--panel); }
.drama-card > a { display: block; height: 100%; text-decoration: none; }
.drama-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--panel-soft); }
.card-copy { padding: 1rem; }
.card-copy h2, .card-copy h3 { margin: 0; font-size: 1.2rem; }
.card-copy p { color: var(--muted); display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-copy span { color: #ff96ad; font-size: 0.9rem; font-weight: 700; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; padding-right: 0.5rem; color: #806d74; }
.show-detail { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; align-items: start; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2rem; }
.show-cover { width: 100%; height: auto; border-radius: 1.25rem; background: var(--panel); }
.show-detail .tags { margin-block: 1rem; }
.updated { color: var(--muted); font-size: 0.92rem; }
.viewing-note { color: var(--muted); font-size: 0.92rem; max-width: 65ch; }
.related-titles { margin-top: 4rem; }
.related-titles > p { color: var(--muted); }
.support-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1rem; }
.watch-button { display: inline-block; margin-top: 1rem; padding: 0.9rem 1.2rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 900; text-decoration: none; }

.prose { max-width: 760px; }
.prose.wide { max-width: 900px; }
.faq-item { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.faq-item h2 { margin-top: 0; }
.faq-item p { margin-bottom: 0; color: var(--muted); }

.site-footer { padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 720px) {
  body {
    background-image:
      radial-gradient(ellipse 380px 450px at 100% 120px, rgba(255, 189, 101, 0.10), transparent 72%),
      radial-gradient(ellipse 560px 650px at 100% 240px, rgba(143, 49, 36, 0.25), transparent 75%);
    background-size: 100% 850px;
  }
  .site-header { align-items: flex-start; }
  .site-header nav { justify-content: flex-end; }
  .show-detail { grid-template-columns: 1fr; }
  .show-cover { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.featured-titles { margin-block: 1.5rem 2.5rem; }
.priority-themes { margin-block: 1rem; }
.editorial-note { margin-block: 1.25rem; max-width: 65ch; }
.editorial-note h2 { font-size: 1.15rem; }
.editorial-note p { color: var(--muted); }
