/* ==========================================================================
   Drama guide pages — shared stylesheet
   ========================================================================== */

.drama-hero {
  background: linear-gradient(145deg, #1a1410 0%, #0a0806 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.drama-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14rem, 35vw, 22rem);
  color: rgba(255,255,255,0.03);
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.drama-hero .container { position: relative; }
.drama-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.drama-hero-char {
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.15;
  color: #fff;
  font-weight: 900;
  margin: 0.15rem 0 0.6rem;
  text-shadow: 0 6px 30px rgba(0,0,0,0.35);
  display: block;
  letter-spacing: -0.01em;
}
.drama-hero-romaji {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #e8c49a;
  letter-spacing: 0.04em;
}
.drama-hero-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

/* Body */
.drama-body {
  padding: 3.5rem 0 5rem;
  background: var(--color-bg);
}
.drama-body .inner { max-width: 760px; }

/* ── Featured photos (poster + still) ── */
.drama-photos { margin: 0 0 2rem; }
.drama-photos__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.6rem;
}
.drama-photos__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 2 / 3;
}
.drama-photos__grid img:last-child { aspect-ratio: 16 / 9; }
.drama-photos figcaption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  font-weight: 500;
}
.drama-photos figcaption a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) {
  .drama-photos__grid { grid-template-columns: 1fr; }
  .drama-photos__grid img { aspect-ratio: 16/9; }
}

/* ── Two-column layout with "More Dramas" sidebar ── */
.drama-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.drama-layout .inner { max-width: none; }

.drama-sidebar { position: sticky; top: 1.5rem; }

.sidebar-widget {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-widget__title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1;
}
.sidebar-drama-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sidebar-drama {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  color: inherit;
}
.sidebar-drama:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: inherit; }
.sidebar-drama__char {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.sidebar-drama__info { display: flex; flex-direction: column; }
.sidebar-drama__title { font-size: 0.88rem; font-weight: 800; color: var(--color-primary); line-height: 1.3; }
.sidebar-drama__tag {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}
.sidebar-drama.is-active {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  cursor: default;
}
.sidebar-drama.is-active .sidebar-drama__char { background: var(--color-accent); color: #fff; }
.sidebar-drama.is-active .sidebar-drama__tag { color: var(--color-accent); }

@media (max-width: 960px) {
  .drama-layout { grid-template-columns: 1fr; gap: 2rem; }
  .drama-sidebar { position: static; }
}

/* On wide viewports the sidebar column has room to spare — use it with two columns */
@media (min-width: 1300px) {
  .sidebar-drama-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Reference layout: stacked rows with dividers ── */
.drama-info-grid {
  display: block;
  margin-bottom: 0;
}

.d-card {
  padding: 1.5rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

.d-card-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
  line-height: 1;
}

.facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.facts-list li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.f-type {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.f-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.meaning-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  font-weight: 500;
}

/* ── Cast: flat rows ── */
.drama-cast {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.cast-grid {
  display: flex;
  flex-direction: column;
}
.cast-card {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(80px, auto) 1fr;
  align-items: baseline;
  column-gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  background: none;
  border-radius: 0;
  transition: none;
}
.cast-card:last-child { border-bottom: none; }
.cast-card:hover { background: none; }
.cast-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0;
}
.cast-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.03em;
}
.cast-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0;
}
@media (max-width: 480px) {
  .cast-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.15rem;
  }
  .cast-note { grid-column: 1 / -1; }
}

/* Note */
.drama-note {
  background: #f5ead8;
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.drama-note p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-weight: 500;
}

/* CTA */
.drama-cta {
  background: linear-gradient(135deg, #8c2020 0%, #6a1818 100%);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  color: #fff;
}
.drama-cta h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.drama-cta p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.dcta-btns {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}
.dcta-btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 800;
  transition: opacity 0.15s, transform 0.15s;
}
.dcta-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.dcta-btn--solid { background: #fff; color: #6a1818; }
.dcta-btn--outline { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.dcta-btn--outline:hover { color: #fff; }
