/* "How long to watch" pages (/hours and /hours/<show>) and the TV Time
   switching page. Built on main.css tokens only: no new palette. Generated
   pages come from scripts/seo/build-hours.mjs; this file is hand-written. */

.hr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hr-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.hr-page { padding-bottom: 72px; }

/* ── Hero ────────────────────────────────────────── */

.hr-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 40px;
}

.hr-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}

.hr-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 90% at 20% 55%, rgba(5, 5, 8, 0.82) 0%, rgba(5, 5, 8, 0.25) 70%, transparent 100%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.6) 0, transparent 150px),
    linear-gradient(180deg, transparent 55%, var(--ground) 100%);
}

.hr-crumbs {
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hr-crumbs a { color: var(--text-muted); text-decoration: none; }
.hr-crumbs a:hover { color: var(--text); }
.hr-crumbs span:last-child { color: var(--text); }

.hr-hero-grid {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.hr-poster {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  border-radius: 8px;
  background: #17171b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hr-hero-text { min-width: 0; padding-bottom: 4px; }

.hr-eyebrow { color: rgba(255, 248, 231, 0.55); margin-bottom: 16px; }

.hr-title {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 18px;
}

.hr-answer {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
}

.hr-answer strong {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Stat strip ──────────────────────────────────── */

.hr-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 8px 0 36px;
}

.hr-strip > div {
  padding: 22px 0 20px 20px;
  border-left: 1px solid var(--hairline-soft);
  min-width: 0;
}

.hr-strip > div:first-child { border-left: none; padding-left: 0; }

.hr-strip dt { color: var(--text-muted); margin-bottom: 8px; }

.hr-strip dd {
  font-family: var(--brand-font);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hr-strip dd small {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hr-strip .hr-strip-text { font-size: 1.15rem; padding-top: 6px; }

.hr-strip p {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hr-overview {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 62ch;
  margin-bottom: 8px;
}

/* ── Sections ────────────────────────────────────── */

.hr-section { padding-top: 48px; }

.hr-h2 {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 20px;
}

.hr-note {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Season bars: a real table (screen readers get Season / Hours / Episodes),
   with the bar column decorative. */

.hr-bars {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hr-bars th,
.hr-bars td {
  padding: 8px 0;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.hr-bars th { width: 5.5rem; color: var(--text-muted); font-size: 0.88rem; white-space: nowrap; }

.hr-bar-cell { padding-right: 16px !important; }

.hr-bar {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: var(--hairline-soft);
  overflow: hidden;
}

.hr-bar > span {
  display: block;
  height: 100%;
  background: rgba(255, 248, 231, 0.42);
  border-radius: 2px;
}

.is-longest .hr-bar > span { background: var(--accent); }
.is-longest th { color: var(--text); }

.hr-num { width: 3.6rem; text-align: right !important; font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.hr-eps { width: 4.8rem; color: var(--text-muted); font-size: 0.82rem; padding-left: 12px !important; }

.hr-bars--dense th,
.hr-bars--dense td { padding: 3px 0; font-size: 0.8rem; }
.hr-bars--dense .hr-bar { height: 6px; }

/* Label / value rows */

.hr-rows { border-top: 1px solid var(--hairline-soft); }

.hr-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.hr-rows dt { color: var(--text-muted); font-size: 0.92rem; }

.hr-rows dd {
  color: var(--text);
  font-size: 0.95rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hr-score { font-weight: 600; }
.hr-score--g { color: var(--score-green); }
.hr-score--y { color: var(--score-yellow); }
.hr-score--r { color: var(--score-red); }

.hr-updated { margin-top: 16px; color: rgba(255, 248, 231, 0.4); }
.hr-method { max-width: 62ch; margin-top: 4px; }
.hr-count { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 0.8rem; color: var(--text-muted); margin-left: 6px; }
.hr-group { padding-top: 40px; }
.hr-group .hr-list { margin-top: 12px; }
.hr-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hr-jump a {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.hr-jump a span { color: var(--text-muted); margin-left: 4px; }
.hr-jump a:hover { border-color: rgba(255, 255, 255, 0.2); }
.hr-cta-body a { color: var(--text); }
.hr-group, .hr-cta { scroll-margin-top: calc(var(--header-h) + 16px); }

/* CTA */

.hr-cta {
  margin-top: 64px;
  padding: 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 140% at 0% 0%, rgba(255, 244, 214, 0.07) 0%, transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.hr-cta-title {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 8px;
  text-wrap: balance;
}

.hr-cta-body { color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; max-width: 46ch; }

.hr-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.hr-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #0A0A0A;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hr-btn:hover { opacity: 0.92; }

/* Related */

.hr-related {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 0;
  padding: 0;
}

.hr-related li { min-width: 0; }

.hr-related a { display: block; text-decoration: none; color: var(--text); }

.hr-related img,
.hr-noposter {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #17171b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}

.hr-related a:hover img { opacity: 0.85; }

.hr-rel-name { display: block; font-size: 0.85rem; line-height: 1.3; font-weight: 600; }
.hr-rel-meta { display: block; margin-top: 3px; font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hr-related a:hover .hr-rel-name { color: var(--accent); }

/* ── Index page ──────────────────────────────────── */

.hr-index-head { padding-top: calc(var(--header-h) + 56px); }
.hr-index-head .hr-answer { margin-bottom: 36px; }
.hr-strip--facts { margin-bottom: 8px; }
.hr-strip--facts dd { font-size: 1.6rem; }

.hr-list { list-style: none; margin-top: 32px; }

.hr-list li + li { border-top: 1px solid var(--hairline-soft); }

.hr-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
}

.hr-list img,
.hr-list .hr-noposter {
  flex: 0 0 auto;
  width: 48px;
  height: auto;
  margin: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #17171b;
}

.hr-list-main { flex: 1; min-width: 0; display: block; }
.hr-list-name { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.hr-list-meta { display: block; margin-top: 5px; color: var(--text-muted); font-size: 10.5px; }
.hr-list-bar { display: block; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--hairline-soft); overflow: hidden; }
.hr-list-bar > span { display: block; height: 100%; background: rgba(255, 248, 231, 0.42); border-radius: 2px; }
.hr-list a:hover .hr-list-name { color: var(--accent); }
.hr-list a:hover .hr-list-bar > span { background: var(--accent); }

.hr-list-hours {
  flex: 0 0 auto;
  min-width: 4.2rem;
  text-align: right;
  font-family: var(--brand-font);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}

.hr-list-hours small {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer-attribution a { color: inherit; }

/* ── Small screens ───────────────────────────────── */

@media (max-width: 720px) {
  .hr-wrap { padding: 0 16px; }

  .hr-hero { padding-bottom: 28px; }

  .hr-hero-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hr-poster { width: 132px; }

  .hr-answer { font-size: 1.02rem; }

  .hr-strip { grid-template-columns: repeat(2, 1fr); }
  .hr-strip > div { padding: 18px 0 16px 16px; border-left: 1px solid var(--hairline-soft); }
  .hr-strip > div:nth-child(odd) { border-left: none; padding-left: 0; }
  .hr-strip > div:nth-child(n+3) { border-top: 1px solid var(--hairline-soft); }

  .hr-section { padding-top: 40px; }

  .hr-bars th { width: 4.4rem; font-size: 0.8rem; }
  .hr-bar-cell { padding-right: 10px !important; }
  .hr-eps { width: 4rem; padding-left: 8px !important; }

  .hr-rows > div { flex-direction: column; gap: 4px; }
  .hr-rows dd { text-align: left; }

  .hr-cta { padding: 28px 20px; }
  .hr-cta-actions { flex-direction: column; align-items: stretch; }
  .hr-btn { justify-content: center; }
  .hr-cta .store-badges { justify-content: center; }

  .hr-related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }

  .hr-index-head { padding-top: calc(var(--header-h) + 36px); }
  .hr-list a { gap: 14px; }
  .hr-list-hours { font-size: 1.35rem; min-width: 3.4rem; }
}

/* ── TV Time page (/tv-time-alternative) ─────────── */

.tt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 56px;
}

.tt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 90% at 78% 40%, rgba(255, 244, 214, 0.09) 0%, rgba(255, 244, 214, 0.02) 55%, transparent 80%);
}

.tt-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.tt-hero-text { flex: 1; min-width: 0; }

.tt-hero .hr-title { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: 20px; }
.tt-hero .hr-answer { margin-bottom: 32px; }

.tt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.tt-assure { margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.tt-hero .scene-shot { flex: 0 0 auto; width: 250px; height: 470px; }

.tt-section { padding-top: 64px; }

.tt-lede { color: var(--text-muted); line-height: 1.7; max-width: 60ch; margin-bottom: 28px; }

.tt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.tt-split .hr-rows > div { flex-direction: column; align-items: stretch; gap: 4px; }
.tt-split .hr-rows dt { color: var(--text); font-weight: 600; }
.tt-split .hr-rows dd { text-align: left; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }

.tt-label { color: var(--text-muted); margin-bottom: 14px; }
.tt-label--yes { color: rgba(255, 248, 231, 0.75); }

.tt-file {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  overflow-wrap: anywhere;
}

.tt-about { display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.tt-about-copy { flex: 1; min-width: 0; }
.tt-shots { display: flex; gap: 20px; flex: 0 0 auto; }
.tt-shots .scene-shot { width: 190px; height: 380px; margin: 0; }
.tt-shots .scene-shot:nth-child(2) { margin-top: 36px; }

.tt-faq { border-top: 1px solid var(--hairline-soft); }
.tt-faq > div { padding: 24px 0; border-bottom: 1px solid var(--hairline-soft); }
.tt-faq h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.tt-faq p { color: var(--text-muted); line-height: 1.65; max-width: 64ch; font-size: 0.95rem; }
.tt-faq a, .tt-lede a, .tt-assure a { color: var(--text); }

@media (max-width: 860px) {
  .tt-hero-grid { flex-direction: column; align-items: flex-start; gap: 40px; }
  .tt-hero .scene-shot { align-self: center; width: 220px; height: 400px; }
  .tt-split { grid-template-columns: 1fr; gap: 40px; }
  .tt-about { flex-direction: column; align-items: flex-start; gap: 36px; }
  .tt-shots { align-self: center; }
}

@media (max-width: 720px) {
  .tt-hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 40px; }
  .tt-section { padding-top: 48px; }
  .tt-actions { flex-direction: column; align-items: stretch; }
  .tt-actions .hr-btn { justify-content: center; }
  .tt-actions .store-badges { justify-content: center; }
  .tt-shots { gap: 12px; }
  .tt-shots .scene-shot { width: 150px; height: 310px; }
  .tt-shots .scene-shot:nth-child(2) { margin-top: 24px; }
}

/* Single-column definition lists where the value is prose: keep it left-aligned. */
.hr-rows--left > div { flex-direction: column; align-items: stretch; gap: 4px; }
.hr-rows--left dd { text-align: left; }

.hr-single { margin: -12px 0 8px; }
.tt-faq .tt-file { font-size: 0.82em; overflow-wrap: anywhere; word-break: break-all; }
