:root {
  --ink: #e9e5dc;
  --muted: #8c8982;
  --black: #0b0b0b;
  --panel: #121212;
  --line: #292824;
  --acid: #a92d36;
  --red: #741820;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }

.site-header {
  height: 76px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 11, .92);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.header-brand-group { display: contents; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  font-size: 10px;
}
nav { display: flex; gap: 30px; }
.mobile-menu-button { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.install-button {
  padding: 8px 14px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}
.install-button:hover { background: var(--acid); border-color: var(--acid); }
.install-button:disabled { opacity: .55; cursor: wait; }
.account-button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
}
.account-button.signed-in { border-color: var(--red); color: #dca1a5; }
.nav-link {
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.nav-link span { color: var(--ink); margin-left: 4px; }
.nav-link:hover, .nav-link.active { color: var(--ink); }

.hero {
  min-height: 650px;
  padding: 110px clamp(24px, 9vw, 140px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 78% 45%, rgba(183, 57, 47, .18), transparent 27%),
    linear-gradient(90deg, rgba(11,11,11,.95) 35%, rgba(11,11,11,.45)),
    url("assets/hollow-hour.jpg") right 28% center / 38% auto no-repeat;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .section-kicker {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--acid);
}
.eyebrow::before { content: "●"; margin-right: 10px; font-size: 7px; }
h1, h2, h3 { font-family: "Playfair Display", serif; }
h1 {
  max-width: 760px;
  margin: 24px 0;
  font-size: clamp(64px, 8vw, 118px);
  line-height: .87;
  letter-spacing: -.06em;
}
h1 em { color: var(--muted); font-weight: 400; }
.hero > p {
  max-width: 550px;
  color: #aaa69d;
  font-size: 17px;
  line-height: 1.7;
}
.hero-stats { display: flex; gap: 56px; margin-top: 52px; }
.hero-stats div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats strong { font: 500 20px "DM Mono", monospace; }
.hero-stats span { color: var(--muted); font-size: 11px; }

.recommendation-shell {
  margin: 0;
  padding: 50px clamp(24px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr);
  align-items: center;
  gap: 45px;
  background: #68151d;
  color: var(--ink);
}
.recommendation-shell .section-kicker { color: #dca1a5; }
.recommendation-shell h2 { font-size: clamp(30px, 3vw, 46px); margin: 7px 0 8px; line-height: 1; }
.recommendation-shell p { margin: 0; color: #d2b9b6; }
.recommendation-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.recommendation-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; }
.recommendation-item img { width: 48px; height: 72px; object-fit: cover; background: #451017; }
.recommendation-item button { padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: left; font: 16px/1.15 "Playfair Display", serif; }
.recommendation-item button:hover { color: #efc3c6; text-decoration: underline; text-underline-offset: 3px; }
.recommendation-item span { display: block; margin-top: 5px; color: #d2a6a8; font: 8px "DM Mono", monospace; text-transform: uppercase; }
.text-button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.text-button span { margin-left: 20px; }

.news-section { padding: 90px clamp(24px, 7vw, 100px) 110px; border-bottom: 1px solid var(--line); }
.news-heading { max-width: 680px; margin-bottom: 45px; }
.news-heading h2 { margin: 8px 0 12px; font-size: clamp(46px, 6vw, 78px); letter-spacing: -.05em; }
.news-heading p { color: var(--muted); }
.news-feature {
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: end;
  padding: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}
.news-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); }
.news-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.15)); }
.news-feature-copy { position: relative; z-index: 1; max-width: 650px; }
.news-feature-copy h3 { margin: 10px 0; font-size: clamp(38px, 5vw, 68px); }
.news-feature-copy p { color: #c6c1b8; line-height: 1.65; }
.release-date { color: #dca1a5; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.news-group { margin-top: 55px; }
.news-group-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.news-group-header h3 { margin: 0; font-size: 28px; }
.news-group-header span { color: var(--muted); font-size: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.news-card { cursor: pointer; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #171717; }
.news-card h4 { margin: 12px 0 5px; font: 21px "Playfair Display", serif; }
.news-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.coverage-link {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 15px;
  color: #dca1a5;
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-underline-offset: 4px;
}
.coverage-link:hover { color: #fff; }
.news-loading { min-height: 300px; display: grid; place-items: center; color: var(--muted); font: 11px "DM Mono", monospace; }

.archive { padding: 90px clamp(24px, 7vw, 100px) 120px; }
.archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.archive h2 { margin: 8px 0 0; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.04em; }
.source-status { margin: 12px 0 0; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.source-status.live { color: var(--acid); }
.search-tools { display: flex; align-items: end; gap: 20px; }
.decade-filter { display: grid; gap: 7px; color: var(--muted); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.decade-filter select { min-width: 115px; padding: 11px 28px 11px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); outline: none; }
.decade-filter option { background: #111; color: var(--ink); }
.search {
  width: min(340px, 100%);
  padding: 12px 0;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.media-switch { display: flex; gap: 4px; margin-top: 32px; }
.media-switch button {
  min-width: 110px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.media-switch button.active { background: var(--red); border-color: var(--red); color: #fff; }
.tag-filter-shell { margin: 42px 0 35px; padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.012); }
.diary-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.diary-summary div { display: grid; gap: 7px; padding: 22px; border-right: 1px solid var(--line); }
.diary-summary div:last-child { border-right: 0; }
.diary-summary strong { color: #f0d2c1; font: 26px "DM Mono", monospace; }
.diary-summary span { color: var(--muted); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.tag-filter-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.tag-filter-heading strong { display: block; margin-top: 6px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.clear-tag-filters {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #a45a4a;
  background: transparent;
  color: #d49b74;
  cursor: pointer;
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 50px;
  background: transparent;
  padding: 9px 17px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
}
.filter-check { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 7px; border: 1px solid #4b4543; border-radius: 50%; color: #8d8580; font: 9px "DM Mono", monospace; }
.filter:hover { border-color: #75504b; color: var(--ink); }
.filter.active { background: #68151d; color: #fff; border-color: #a92d36; box-shadow: 0 0 14px rgba(169,45,54,.18); }
.filter.active .filter-check { border-color: #d49b74; color: #f1c9ad; }
.filter:focus-visible, .clear-tag-filters:focus-visible { outline: 2px solid #d49b74; outline-offset: 3px; }
.archive-browser { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 24px; align-items: start; }
.archive-browser.shows-mode { grid-template-columns: minmax(0, 1fr); }
.results-area { min-width: 0; }
.alphabet-rail {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.alphabet-rail[hidden] { display: none; }
.letter {
  width: 34px;
  height: 25px;
  border: 0;
  background: transparent;
  color: #696761;
  cursor: pointer;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}
.letter:hover, .letter.active { color: var(--acid); }
.letter.active { border-left: 1px solid var(--acid); }
.film-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 42px 18px; }
.film-card { min-width: 0; }
.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}
.film-card:hover img { transform: scale(1.025); filter: brightness(.72); }
.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.85));
}
.film-card:hover .poster-overlay { opacity: 1; }
.quick-action {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  cursor: pointer;
}
.quick-action.active { background: var(--acid); color: #fff; border-color: var(--acid); }
.match { font: 500 10px "DM Mono", monospace; color: var(--acid); }
.film-meta { padding-top: 15px; display: flex; justify-content: space-between; gap: 16px; }
.film-meta h3 { margin: 0 0 6px; font-size: 22px; }
.shows-mode .film-meta h3 { min-height: 2.5em; line-height: 1.2; }
.film-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.rating { font: 12px "DM Mono", monospace; white-space: nowrap; color: var(--acid); }
.dread-card-dashboard { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.dread-rating-badge { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
.dread-rating-badge > span { color: #b88b82; font: 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .11em; }
.dread-rating-badge > strong { grid-row: 1 / 3; grid-column: 2; color: #f0d2c1; font: 25px "DM Mono", monospace; text-shadow: 0 0 16px rgba(169,45,54,.5); }
.dread-rating-badge > strong small { color: var(--muted); font-size: 9px; }
.dread-rating-badge > em { width: max-content; max-width: 100%; padding: 3px 6px; border: 1px solid rgba(196,91,65,.45); color: #d49b74; font: normal 7px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.dread-rating-badge.compact { max-width: 250px; margin: 7px 0 10px; }
.dread-rating-badge.compact > strong { font-size: 18px; }
.dread-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; margin-top: 11px; }
.dread-bar { min-width: 0; }
.dread-bar-label { display: flex; justify-content: space-between; gap: 8px; color: #8e817d; font: 7px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.dread-bar-label strong { color: #c9a89a; font-weight: 500; }
.dread-bar-track { height: 4px; margin-top: 4px; overflow: hidden; background: #292323; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.dread-bar-track > span { display: block; width: var(--dread-value); height: 100%; background: linear-gradient(90deg, #702029, #bd553d 72%, #d49055); box-shadow: 0 0 8px rgba(189,85,61,.35); transform-origin: left; animation: dread-fill .7s ease-out both; transition: filter .25s ease, box-shadow .25s ease; }
.film-card:hover .dread-bar-track > span, .dread-panel:hover .dread-bar-track > span { filter: brightness(1.18); box-shadow: 0 0 12px rgba(212,144,85,.48); }
@keyframes dread-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.compact-title .dread-preview { max-width: 300px; }
.compact-title .dread-bar-label { font-size: 6px; }
.dread-panel { margin-top: 42px; padding: 26px; border: 1px solid #43292a; background: radial-gradient(circle at 85% 10%, rgba(169,45,54,.12), transparent 34%), #100e0e; box-shadow: 0 15px 50px rgba(0,0,0,.2); }
.dread-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 28px; }
.dread-panel-heading h3 { margin: 6px 0 0; }
.dread-panel-heading .dread-rating-badge { min-width: 175px; }
.dread-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin-top: 28px; }
.dread-panel .dread-bar-label { font-size: 9px; }
.dread-panel .dread-bar-track { height: 7px; margin-top: 7px; }
.dread-note { margin: 28px 0 0 !important; padding: 17px 0 0; border-top: 1px solid var(--line); color: #b9aaa3 !important; font-style: italic; }
.dread-note strong { display: block; margin-bottom: 6px; color: #d49b74; font: 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.card-progress { margin-top: 10px; }
.card-progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card-progress-track { height: 3px; margin-top: 6px; background: #292526; }
.card-progress-track span { display: block; height: 100%; background: var(--acid); }
.film-grid.compact { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.film-grid.diary-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.diary-entry {
  min-height: 180px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.diary-poster { padding: 0; border: 0; background: transparent; cursor: pointer; }
.diary-poster img { width: 92px; aspect-ratio: 2 / 3; display: block; object-fit: cover; }
.diary-entry-copy h3 { margin: 7px 0 5px; font-size: 29px; }
.diary-meta { margin: 0; color: #c19a91; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.diary-entry-review { max-width: 760px; margin: 18px 0 0; color: #aaa69d; line-height: 1.7; white-space: pre-wrap; }
.diary-delete { padding: 7px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.diary-delete:hover { color: #d36c74; }
.compact-card {
  min-height: 160px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.compact-card:hover { background: #11110f; }
.compact-poster { width: 64px; height: 92px; object-fit: cover; display: block; }
.compact-title h3 { margin: 0 0 7px; font-size: 23px; }
.compact-title p { margin: 0; color: var(--muted); font-size: 11px; }
.compact-genres { color: var(--muted); font-size: 11px; text-align: right; }
.compact-actions { display: flex; gap: 6px; }
.compact-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.compact-actions button.active { background: var(--acid); color: #fff; border-color: var(--acid); }
.empty-state { padding: 100px 0; text-align: center; color: var(--muted); }
.empty-state span { font: 36px "Playfair Display", serif; color: var(--ink); }
.load-more {
  display: block;
  margin: 60px auto 0;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.load-more:hover { background: var(--ink); color: var(--black); }

dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #3a3833;
  background: var(--panel);
  color: var(--ink);
}
dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(7px); }
.auth-dialog { width: min(480px, calc(100% - 32px)); overflow: visible; }
.auth-dialog.signed-in #auth-form,
.auth-dialog.signed-in #auth-switch { display: none !important; }
.auth-dialog:not(.signed-in) #account-panel { display: none !important; }
.auth-shell { padding: 52px; }
.auth-shell h2 { margin: 10px 0; font-size: 42px; }
.auth-shell > p { color: var(--muted); line-height: 1.6; }
.auth-shell form { display: grid; gap: 16px; margin-top: 28px; }
.auth-shell label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.auth-shell input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--ink);
  outline: none;
}
.auth-shell input:focus { border-color: var(--red); }
.auth-submit, .account-panel button {
  padding: 12px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
}
.auth-switch { width: 100%; margin-top: 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.auth-error { min-height: 18px; margin: 0; color: #d36c74 !important; font-size: 11px; }
.close-auth { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: var(--ink); font-size: 28px; cursor: pointer; }
.account-panel { display: grid; gap: 8px; margin-top: 30px; }
.profile-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--red); color: #dca1a5; font: 12px "DM Mono", monospace; }
.profile-identity div { display: grid; gap: 3px; }
.account-panel strong { font: 25px "Playfair Display", serif; }
.account-panel span { color: var(--muted); font-size: 11px; }
#profile-form { display: grid; gap: 16px; }
#profile-form label, #profile-form fieldset { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
#profile-form input, #profile-form textarea, #profile-form select {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--ink);
  resize: vertical;
}
#profile-form fieldset { margin: 0; padding: 0; border: 0; }
#profile-form legend { margin-bottom: 8px; }
.genre-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-pick input { position: absolute; opacity: 0; pointer-events: none; }
.genre-pick span { display: block; padding: 7px 10px; border: 1px solid var(--line); cursor: pointer; color: var(--muted); }
.genre-pick input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.profile-save { padding: 11px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; }
.profile-status { min-height: 16px; margin: 0; color: #dca1a5 !important; font-size: 10px !important; }
.signout-zone { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.signout-zone button { width: 100%; padding: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.signout-zone button:hover { color: #fff; border-color: var(--red); }
.close-dialog {
  position: fixed;
  top: 28px;
  right: 36px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  cursor: pointer;
  font-size: 24px;
}
.detail-hero { min-height: 560px; position: relative; display: flex; align-items: end; padding: 60px; overflow: hidden; }
.detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) blur(2px); transform: scale(1.05); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9), transparent 70%), linear-gradient(transparent 45%, #121212); }
.detail-copy { position: relative; z-index: 1; max-width: 690px; }
.detail-copy h2 { font-size: clamp(52px, 8vw, 90px); line-height: .92; margin: 18px 0; letter-spacing: -.05em; }
.detail-copy > p { color: #c0bdb5; line-height: 1.7; font-size: 16px; }
.detail-actions { display: flex; gap: 10px; margin-top: 26px; }
.detail-actions button { padding: 12px 18px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.detail-actions button.active, .detail-actions button:hover { background: var(--acid); color: #fff; border-color: var(--acid); }
.trailer-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid #c3463f;
  background: #a92d36;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}
.trailer-link:hover { background: #c23b45; border-color: #c23b45; }
.tmdb-link { padding: 12px 8px; color: var(--ink); font-size: 12px; }
.detail-loading { min-height: 400px; display: grid; place-items: center; color: var(--muted); font: 12px "DM Mono", monospace; }
.detail-body { padding: 18px 60px 70px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; }
.detail-body h3 { font-size: 27px; margin: 26px 0 12px; }
.detail-body p { color: #aaa69d; line-height: 1.75; }
.similar-section { margin-top: 42px; }
.similar-section h3 { margin-top: 7px; }
.similar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.similar-card { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.similar-card img { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: cover; background: #1a1a1a; transition: filter .2s, transform .2s; }
.similar-card:hover img { filter: brightness(.7); transform: translateY(-2px); }
.similar-card strong { display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px "Playfair Display", serif; }
.similar-card small { color: var(--muted); font: 8px "DM Mono", monospace; }
.progress-panel { margin-top: 28px; padding: 22px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.diary-panel { margin-top: 42px; padding: 26px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.diary-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.diary-panel-heading h3 { margin: 7px 0 0; }
.diary-panel-heading > strong { color: #d49b74; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.diary-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.diary-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.diary-form input, .diary-form select, .diary-form textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--ink);
  outline: none;
}
.diary-form input:focus, .diary-form select:focus, .diary-form textarea:focus { border-color: var(--red); }
.diary-review { grid-column: 1 / -1; }
.diary-form textarea { resize: vertical; }
.diary-form button { width: max-content; padding: 11px 18px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; }
.diary-history { margin-top: 30px; border-top: 1px solid var(--line); }
.diary-history article { position: relative; padding: 20px 70px 20px 0; border-bottom: 1px solid var(--line); }
.diary-history article > div { display: flex; gap: 12px; align-items: baseline; }
.diary-history article strong { font-size: 13px; }
.diary-history article span { color: var(--muted); font: 8px "DM Mono", monospace; text-transform: uppercase; }
.diary-history article p { margin: 10px 0 0; white-space: pre-wrap; }
.diary-history article button { position: absolute; top: 18px; right: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }
.diary-history article button:hover { color: #d36c74; }
.progress-panel h3 { margin: 0 0 6px; }
.progress-summary { color: var(--muted); font-size: 12px; }
.progress-controls { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin-top: 18px; align-items: end; }
.progress-controls label { color: var(--muted); font-size: 11px; }
.progress-controls select {
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  color: var(--ink);
}
.season-complete {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.season-complete.active { background: var(--red); border-color: var(--red); }
.progress-bar { height: 4px; margin-top: 18px; background: #302d2d; }
.progress-bar span { display: block; height: 100%; background: var(--acid); }
.episode-list { margin-top: 18px; border-top: 1px solid var(--line); max-height: 330px; overflow-y: auto; }
.episode-row {
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
}
.episode-row:hover { background: rgba(255,255,255,.025); }
.episode-row input { accent-color: var(--acid); }
.episode-number { color: var(--muted); font: 10px "DM Mono", monospace; }
.episode-date { color: var(--muted); font-size: 10px; }
.episode-loading { padding: 30px 0; color: var(--muted); font: 11px "DM Mono", monospace; text-align: center; }
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 90px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.fact span:first-child { color: var(--muted); }
.cast-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cast-block > span { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.cast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
.cast-person { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.cast-person img, .cast-fallback {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #201d1d;
}
.cast-fallback { display: grid; place-items: center; color: #dca1a5; font: 10px "DM Mono", monospace; }
.cast-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.cast-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }

footer {
  padding: 45px clamp(24px, 7vw, 100px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
footer .tmdb-credit { max-width: 430px; line-height: 1.6; text-align: right; }
footer a { color: var(--ink); }

@media (max-width: 760px) {
  .site-header {
    min-height: calc(66px + env(safe-area-inset-top));
    height: auto;
    padding: env(safe-area-inset-top) 16px 0;
    gap: 10px;
  }
  .mobile-menu-button {
    display: block;
    padding: 8px 11px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
  }
  .header-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-menu-button[aria-expanded="true"] { border-color: var(--red); color: #dca1a5; }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 11, .98);
    box-shadow: 0 18px 35px rgba(0,0,0,.45);
  }
  .site-header nav.open { display: grid; }
  .nav-link {
    min-height: 46px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 11px;
  }
  .nav-link:nth-last-child(-n+2) { border-bottom: 0; }
  .header-actions { flex: 0 0 auto; }
  .install-button { padding: 7px 9px; }
  .account-button { padding: 7px 9px; }
  .site-header .brand > span:last-child { display: none; }
  .hero { min-height: 590px; padding-top: 70px; background-size: 75% auto; background-position: 130% center; }
  .hero-stats { gap: 22px; }
  .recommendation-shell { grid-template-columns: 1fr; gap: 25px; }
  .recommendation-list { display: flex; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .recommendation-item { flex: 0 0 165px; }
  .archive-heading, footer { align-items: flex-start; flex-direction: column; }
  .search-tools { width: 100%; align-items: end; }
  .search { flex: 1; }
  .tag-filter-shell { padding: 16px; }
  .diary-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diary-summary div:nth-child(2) { border-right: 0; }
  .diary-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tag-filter-heading { align-items: flex-start; }
  .filter { padding: 8px 12px; font-size: 11px; }
  footer .tmdb-credit { text-align: left; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 12px; }
  .news-feature { min-height: 420px; padding: 28px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .archive-browser { display: block; }
  .alphabet-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    margin-bottom: 22px;
    scrollbar-width: none;
  }
  .letter { flex: 0 0 30px; border-left: 0; }
  .letter.active { border-bottom: 1px solid var(--acid); }
  .compact-card { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; min-height: 94px; }
  .diary-entry { grid-template-columns: 64px minmax(0, 1fr); gap: 15px; }
  .diary-poster img { width: 64px; }
  .diary-delete { grid-column: 2; justify-self: start; }
  .compact-poster { width: 50px; height: 72px; }
  .compact-title h3 { font-size: 18px; }
  .compact-genres { display: none; }
  .film-meta h3 { font-size: 17px; }
  .rating { display: none; }
  .detail-hero { min-height: 500px; padding: 34px 24px; }
  .detail-body { grid-template-columns: 1fr; gap: 25px; padding: 0 24px 50px; }
  .dread-panel { padding: 20px; }
  .dread-panel-heading { flex-direction: column; }
  .dread-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
  .diary-form { grid-template-columns: 1fr; }
  .diary-review { grid-column: auto; }
  .similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1051px) and (max-width: 1350px) {
  .film-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .mobile-menu-button { padding: 7px 9px; }
  .hero-stats span { font-size: 9px; }
}
