:root {
  color-scheme: dark;
  --bg: #0f1014;
  --panel: #181920;
  --panel-2: #20222b;
  --text: #f7f4ee;
  --muted: #aaa6a0;
  --line: #31323a;
  --gold: #f2c15b;
  --red: #d64d47;
  --green: #4f8d71;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(15, 16, 20, .88);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold);
  color: #14110b;
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 67px);
  display: grid;
  align-items: end;
  padding: clamp(36px, 7vw, 76px);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 20, .96), rgba(15, 16, 20, .58) 46%, rgba(15, 16, 20, .82)),
    linear-gradient(0deg, rgba(15, 16, 20, .94), transparent 46%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96);
}

.hero-copy {
  position: relative;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(56px, 12vw, 142px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
}

.lede {
  max-width: 640px;
  margin-top: 22px;
  color: #dad4c9;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary {
  background: var(--gold);
  color: #15110a;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  padding: 26px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: clamp(24px, 4vw, 42px);
}

.metrics span {
  color: var(--muted);
}

.section,
.feature-band,
.script-square {
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 56px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.search {
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
  color: var(--muted);
  font-size: 13px;
}

.search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.search input:focus {
  border-color: var(--gold);
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.drama-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.drama-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2a2c36, #16171e);
}

.drama-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drama-body {
  min-height: 132px;
  padding: 14px;
}

.drama-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.drama-body p {
  display: -webkit-box;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.feature-band {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 32px;
  align-items: start;
  background: #14161b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-copy p,
.script-square p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 20px;
}

.feature-list p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.script-square {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.policy-page {
  overflow: visible;
}

.policy-hero {
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 56px) clamp(32px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(242, 193, 91, .12), transparent 42%),
    var(--bg);
}

.policy-hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 9vw, 106px);
}

.policy-date {
  margin-top: 18px;
  color: var(--muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 820px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(34px, 7vw, 78px) clamp(18px, 5vw, 56px);
}

.policy-summary {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.policy-summary h2,
.policy-content h2 {
  font-size: 22px;
  line-height: 1.15;
}

.policy-summary p,
.policy-content p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.72;
}

.policy-content {
  display: grid;
  gap: 28px;
}

.policy-content section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.policy-content section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .drama-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 720px;
  }

  .metrics,
  .feature-band,
  .policy-layout,
  .section-heading,
  .script-square {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .drama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-summary {
    position: static;
  }
}

@media (max-width: 460px) {
  .drama-grid {
    grid-template-columns: 1fr;
  }
}
