/* ==========================================================================
   Two Screams Deep · twoscreamsdeep.com
   Look v3: built from the TSD logo and banner.

   Palette, sampled from the art:
     --ink     #070505  the black behind everything (banner background)
     --ember   #F5872A  the orange of the TSD letters and the sound waves
     --ember-2 #E46C24  the logo's slightly deeper orange
     --flare   #F3520F  the red-orange of "NIGHTMARE" (hover, alerts, top scores)
     --seat    #940B07  the theater-seat red (comments, danger)
     --cream   #FDF3D5  the banner's "TWO MINDS" lettering (text)
   Type: DM Serif Display (close to the TSD letters) for titles,
         Barlow Condensed in wide caps (like "TWO SCREAMS DEEP") for labels,
         Barlow for reading.
   Motif: the scream drawn as a sound wave. It shows up as the section marks,
          the divider rules, and the score meters (10 bars, one per point).
   ========================================================================== */

:root {
  --ink: #070505;
  --night: #0d0806;
  --panel: #140c08;
  --panel-2: #1c110b;
  --panel-3: #26170e;
  --line: rgba(245, 135, 42, 0.16);
  --line-2: rgba(245, 135, 42, 0.32);

  --ember: #F5872A;
  --ember-2: #E46C24;
  --ember-soft: rgba(245, 135, 42, 0.12);
  --flare: #F3520F;
  --seat: #940B07;
  --rust: #9E4215;

  --cream: #FDF3D5;
  --text: #E9DFC8;
  --muted: #A28D76;
  --dim: #6E5D4C;

  --ok: #9FCB6B;

  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-caps: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --r: 10px;
  --r-sm: 6px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px var(--line-2), 0 10px 40px rgba(245, 135, 42, 0.18);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* Dust and grain, like the banner's speckled black. Fixed, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(245, 135, 42, 0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.53 0 0 0 0 0.16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--ember); text-decoration: none; transition: color .15s; }
a:hover { color: var(--flare); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--cream); line-height: 1.1; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
em { color: var(--ember); font-style: italic; }
p { margin: 0 0 1em; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lede { font-size: 1.2rem; color: var(--text); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }
.kicker, .label {
  font-family: var(--f-caps); font-weight: 600; text-transform: uppercase;
  letter-spacing: .24em; font-size: .78rem; color: var(--ember);
}
h2.label { margin: 0 0 .9em; }
.page { padding-bottom: 72px; }
.band { padding: 44px 0 8px; }
.band-dark { background: linear-gradient(180deg, transparent, rgba(20, 12, 8, .7) 30%, rgba(20, 12, 8, .7) 70%, transparent); padding: 54px 0 40px; margin-top: 30px; }
section { margin-bottom: 8px; }

/* ── The sound wave, as a reusable mark ──────────────────────────────── */
.wave-rule {
  height: 38px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--ember) 18%, var(--ember-2) 50%, var(--ember) 82%, transparent);
  -webkit-mask: url("wave-divider.svg") center / 100% 100% no-repeat;
          mask: url("wave-divider.svg") center / 100% 100% no-repeat;
  opacity: .85;
}
.wave-mark {
  display: inline-block; width: 1.45em; height: .95em; margin-right: .45em; vertical-align: -.05em;
  background: var(--ember);
  -webkit-mask: url("wave-mark.svg") center / contain no-repeat;
          mask: url("wave-mark.svg") center / contain no-repeat;
}
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 20px; }
.section-title h2 { margin: 0; font-size: 1.85rem; }
.section-sub { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--muted); }
.more-link { display: inline-block; margin-top: 14px; font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; }
.empty-note { color: var(--muted); font-style: italic; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 5, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { /* a thin glowing line under the bar, brightest in the middle */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 50%, transparent);
  opacity: .6;
}
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 22px; }
.brand img { height: 50px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 22px; flex: 1; }
.mainnav > a, .nav-user > a {
  font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .9rem;
  color: var(--text); position: relative; padding: 6px 0;
}
.mainnav > a:hover, .nav-user > a:hover { color: var(--ember); }
.mainnav > a.active, .nav-user > a.active { color: var(--ember); }
.mainnav > a.active::after { content: ""; position: absolute; left: 0; right: .18em; bottom: -2px; height: 2px; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.navsearch { margin-left: auto; }
.navsearch input {
  width: 210px; background: var(--panel); border: 1px solid var(--line); color: var(--cream);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; transition: border-color .15s, width .2s;
}
.navsearch input:focus { outline: none; border-color: var(--ember); width: 250px; }
.nav-user { display: flex; align-items: center; gap: 18px; }
.nav-pill { border: 1px solid var(--ember) !important; color: var(--ember) !important; padding: 5px 14px !important; border-radius: 999px; }
.nav-pill:hover, .nav-pill.active { background: var(--ember); color: var(--ink) !important; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); font-weight: 500; }
.usermenu summary::-webkit-details-marker { display: none; }
.mini-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panel-3); border: 1px solid var(--line-2); }
.mini-avatar.initials { display: inline-grid; place-items: center; font-family: var(--f-caps); font-weight: 700; color: var(--ember); font-size: .85rem; }
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.usermenu-panel a, .usermenu-panel .linklike { padding: 8px 10px; border-radius: var(--r-sm); color: var(--text); text-align: left; }
.usermenu-panel a:hover, .usermenu-panel .linklike:hover { background: var(--ember-soft); color: var(--ember); }
.usermenu-role { padding: 4px 10px 8px; font-family: var(--f-caps); letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ember); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons, pills, tags ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-caps); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .9rem;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; line-height: 1.1;
  transition: background .15s, color .15s, box-shadow .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-blood { background: var(--ember); color: var(--ink); box-shadow: 0 6px 24px rgba(245, 135, 42, .25); }
.btn-blood:hover { background: var(--flare); color: var(--ink); box-shadow: 0 6px 30px rgba(243, 82, 15, .4); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn-danger { background: transparent; color: #ff8d72; border-color: rgba(243, 82, 15, .5); }
.btn-danger:hover { background: var(--seat); color: var(--cream); border-color: var(--seat); }
.btn-small { padding: 7px 14px; font-size: .78rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ember); cursor: pointer; }
.linklike:hover { color: var(--flare); }
.linklike.danger, a.danger { color: #ff8d72; }
.pill { display: inline-block; font-family: var(--f-caps); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; padding: 2px 9px; border-radius: 999px; background: var(--panel-3); color: var(--muted); }
.pill-warn { background: rgba(243, 82, 15, .16); color: #ffa27e; }
.role-tag { display: inline-block; font-family: var(--f-caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.role-admin, .role-top_critic { color: var(--ember); border-color: var(--ember); }
.role-contributor { color: var(--cream); }
.inline { display: inline; }

/* ── Scores ───────────────────────────────────────────────────────────── */
/* The number. Colour follows how loud the scream was. */
.score { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--f-display); color: var(--ember); line-height: 1; white-space: nowrap; }
.score-of { font-family: var(--f-caps); font-size: .38em; letter-spacing: .1em; color: var(--muted); margin-left: 2px; }
.score-label { font-family: var(--f-caps); font-size: .4em; margin-left: 6px; color: var(--muted); }
.score-xs { font-size: .95rem; }
.score-sm {
  font-size: 1.05rem; min-width: 2.3em; justify-content: center; padding: 5px 8px 4px;
  background: rgba(7, 5, 5, .85); border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.score-md { font-size: 2rem; }
.score-xl { font-size: 4.6rem; text-shadow: 0 0 34px rgba(245, 135, 42, .35); }
.score-killer { color: var(--flare); }
.score-killer.score-xl { text-shadow: 0 0 40px rgba(243, 82, 15, .55); }
.score-solid { color: var(--ember); }
.score-meh { color: #c98a55; }
.score-dead { color: var(--dim); }
.score-none { color: var(--dim); }
.score-sm.score-killer { border-color: rgba(243, 82, 15, .7); }

/* The meter: 10 bars, like a level meter on a mixing desk. */
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.meter i { display: block; width: 5px; border-radius: 1px; background: var(--panel-3); }
.meter i:nth-child(1) { height: 30%; } .meter i:nth-child(2) { height: 38%; }
.meter i:nth-child(3) { height: 46%; } .meter i:nth-child(4) { height: 54%; }
.meter i:nth-child(5) { height: 62%; } .meter i:nth-child(6) { height: 70%; }
.meter i:nth-child(7) { height: 78%; } .meter i:nth-child(8) { height: 86%; }
.meter i:nth-child(9) { height: 93%; } .meter i:nth-child(10) { height: 100%; }
.meter i.on { background: var(--ember); box-shadow: 0 0 8px rgba(245, 135, 42, .45); }
.meter i.half { background: linear-gradient(0deg, var(--ember) 50%, var(--panel-3) 50%); }
.meter i.on:nth-child(n+9) { background: var(--flare); box-shadow: 0 0 10px rgba(243, 82, 15, .6); }
.meter-dead i.on { background: var(--dim); box-shadow: none; }
.meter-lg { height: 30px; gap: 4px; }
.meter-lg i { width: 8px; }

/* Brain Sync: how closely the critics agreed */
.sync { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 14px 18px; background: rgba(7, 5, 5, .6); border: 1px solid var(--line-2); border-radius: var(--r); }
.sync-label { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--muted); }
.sync-pct { grid-row: span 2; order: -1; font-family: var(--f-display); font-size: 2.4rem; color: var(--ember); line-height: 1; }
.sync-bar { height: 4px; background: var(--panel-3); border-radius: 2px; overflow: hidden; }
.sync-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ember-2), var(--ember), var(--flare)); box-shadow: 0 0 10px var(--ember); }
.sync-verdict { grid-column: 2; font-style: italic; color: var(--cream); font-size: .95rem; }
.sync-compact { padding: 10px 14px; gap: 2px 12px; }
.sync-compact .sync-pct { font-size: 1.9rem; }

/* ── Posters, cards, grids ────────────────────────────────────────────── */
.poster-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--panel-2); }
.poster-missing { display: grid; place-items: center; text-align: center; padding: 12px; font-family: var(--f-display); color: var(--muted); border: 1px dashed var(--line-2); }
.poster-missing.mini { width: 46px; height: 69px; padding: 0; }
.thumb { width: 110px; flex: none; }
.thumb-sm { width: 60px; flex: none; }
.thumb-xs { width: 38px; }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 26px 20px; }
.poster-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.movie-card { display: block; color: var(--text); }
.movie-card-poster { position: relative; border-radius: var(--r-sm); transition: transform .2s, box-shadow .2s; }
.movie-card-poster .score { position: absolute; right: 8px; bottom: 8px; }
.movie-card:hover .movie-card-poster { transform: translateY(-4px); box-shadow: var(--glow); }
.movie-card-title { margin-top: 10px; font-weight: 600; color: var(--cream); line-height: 1.3; }
.movie-card:hover .movie-card-title { color: var(--ember); }
.movie-card-sub { font-size: .85rem; color: var(--muted); }

.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 16px; }
.cast-grid-lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.person-card { display: block; color: var(--text); text-align: center; }
.face-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--panel-2); filter: grayscale(.35) contrast(1.05); transition: filter .2s, box-shadow .2s; }
.person-card:hover .face-img { filter: none; box-shadow: var(--glow); }
.face-missing { display: grid; place-items: center; font-family: var(--f-display); font-size: 2rem; color: var(--dim); border: 1px dashed var(--line); }
.person-card-name { margin-top: 8px; font-weight: 600; color: var(--cream); line-height: 1.25; }
.person-card:hover .person-card-name { color: var(--ember); }
.person-card-sub { font-size: .82rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* ── Avatars ──────────────────────────────────────────────────────────── */
.avatar { object-fit: contain; object-position: bottom; flex: none; }
.avatar.flip { transform: scaleX(-1); }
.avatar-xs { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panel-3); }
.avatar-sm { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panel-3); }
.avatar-md { width: 86px; height: 96px; }
.avatar-lg { width: 150px; height: 170px; }
.avatar-xl { width: 220px; height: 250px; }
.avatar-initials {
  display: inline-grid; place-items: center; border-radius: 50%; background: var(--panel-3); border: 1px solid var(--line-2);
  font-family: var(--f-display); color: var(--ember); aspect-ratio: 1; height: auto;
}
.avatar-xs.avatar-initials { font-size: .8rem; }
.avatar-sm.avatar-initials { font-size: 1rem; }
.avatar-md.avatar-initials { width: 76px; font-size: 1.7rem; }
.avatar-lg.avatar-initials { width: 120px; font-size: 2.6rem; }
.avatar-xl.avatar-initials { width: 170px; font-size: 3.6rem; }

/* ── Flash messages ───────────────────────────────────────────────────── */
.flashes { list-style: none; padding-top: 18px; margin: 0 auto; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); }
.flash-success { border-color: rgba(159, 203, 107, .45); }
.flash-success::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.flash-error { border-color: rgba(243, 82, 15, .6); background: rgba(148, 11, 7, .22); color: var(--cream); }
.flash-info::before { content: "• "; color: var(--ember); }

/* ── Homepage: masthead ───────────────────────────────────────────────── */
.masthead { background: #000; border-bottom: 1px solid var(--line); }
/* Edge to edge on every screen and never cropped: it keeps its own
   proportions, so on a very wide screen it just gets a little taller. */
.masthead-banner { width: 100%; height: auto; }
.page-head .critics-line { color: var(--muted); }
.page-head .critics-line strong { color: var(--cream); font-weight: 600; }

/* ── Homepage: now playing ────────────────────────────────────────────── */
.feature { position: relative; overflow: hidden; padding: 56px 0 60px; isolation: isolate; }
.feature::before { /* the backdrop, burned down to orange and black */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--backdrop, none) center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(.6);
}
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 5, 5, .96) 0%, rgba(7, 5, 5, .82) 45%, rgba(7, 5, 5, .55) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 40%),
    linear-gradient(180deg, rgba(7, 5, 5, .7), transparent 30%),
    rgba(245, 120, 40, .28);
  mix-blend-mode: normal;
}
.feature-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.feature-poster { display: block; border-radius: var(--r-sm); box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2); transform: rotate(-1.2deg); transition: transform .25s; }
.feature-poster:hover { transform: rotate(0) scale(1.01); }
.feature-text { min-width: 0; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--flare); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 10px var(--flare); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.feature-title { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 8px 0 10px; }
.feature-title a { color: var(--cream); }
.feature-title a:hover { color: var(--ember); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--muted); }
.meta-row span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); margin-right: 18px; vertical-align: 3px; }
.cert { border: 1px solid var(--line-2); padding: 0 6px; border-radius: 3px; color: var(--cream); }
.meta-row span.cert + span::before, .meta-row span + span.cert::before { }

.feature-score { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin: 26px 0 22px; }
.feature-score-side { display: flex; flex-direction: column; gap: 8px; }
.feature-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 0 0 26px; }
.feature-quote { display: flex; align-items: flex-end; gap: 4px; color: var(--text); }
.feature-quote.quote-right { flex-direction: row-reverse; }
.feature-quote .avatar-md { margin-bottom: -2px; }
.quote-bubble {
  position: relative; flex: 1; min-width: 0; background: rgba(20, 12, 8, .88); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 12px 16px 14px; margin-bottom: 26px; transition: border-color .15s, box-shadow .15s;
}
.quote-bubble::before { /* tail pointing at the speaker */
  content: ""; position: absolute; bottom: 14px; left: -9px; width: 16px; height: 16px;
  background: inherit; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg);
}
.quote-right .quote-bubble::before { left: auto; right: -9px; transform: rotate(-135deg); }
.feature-quote:hover .quote-bubble { border-color: var(--ember); box-shadow: 0 0 24px rgba(245, 135, 42, .18); }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.quote-by { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--ember); }
.quote-headline { margin: 0; font-family: var(--f-display); font-size: 1.22rem; line-height: 1.25; color: var(--cream); }
.feature-actions { display: flex; align-items: center; gap: 18px; }
.empty-hero { padding: 70px 24px; text-align: center; }

/* ── Homepage: gallery ────────────────────────────────────────────────── */
.section-title .gallery-arrows { margin-left: auto; display: flex; gap: 8px; }
.arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--ember); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.arrow:hover { border-color: var(--ember); background: var(--ember); color: var(--ink); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 178px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--rust) transparent; }
.gallery-item { scroll-snap-align: start; color: var(--text); display: flex; flex-direction: column; }
.gallery-poster { position: relative; transition: transform .2s, box-shadow .2s; border-radius: var(--r-sm); }
.gallery-poster .score { position: absolute; right: 8px; bottom: 8px; }
.gallery-item:hover .gallery-poster { transform: translateY(-4px); box-shadow: var(--glow); }
.gallery-title { margin-top: 10px; font-weight: 600; color: var(--cream); line-height: 1.3; }
.gallery-item:hover .gallery-title { color: var(--ember); }
.gallery-year { font-size: .85rem; color: var(--muted); }

/* ── Homepage: ranked list + side column ──────────────────────────────── */
.home-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li + li { border-top: 1px solid var(--line); }
.ranked a { display: grid; grid-template-columns: 46px 48px 1fr auto; align-items: center; gap: 16px; padding: 12px 8px; color: var(--text); border-radius: var(--r-sm); transition: background .15s; }
.ranked a:hover { background: var(--ember-soft); }
.rank { font-family: var(--f-display); font-size: 1.7rem; color: var(--dim); text-align: right; }
.ranked li:nth-child(-n+3) .rank { color: var(--ember); }
.ranked-thumb { width: 48px; border-radius: 4px; }
.ranked-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ranked-title { font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked a:hover .ranked-title { color: var(--ember); }
.ranked-sub { font-size: .83rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked .meter { height: 12px; gap: 2px; margin-top: 2px; }
.ranked .meter i { width: 4px; }
.ranked .score-md { font-size: 1.7rem; }

.critic-strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin-bottom: 34px; }
.critic-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--cream); font-family: var(--f-caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.critic-chip .avatar-md { transition: transform .2s, filter .2s; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.critic-chip:hover .avatar-md { transform: translateY(-3px); filter: drop-shadow(0 0 14px rgba(245, 135, 42, .45)); }
.critic-chip .avatar-md.flip:hover { transform: scaleX(-1) translateY(-3px); }
.critic-chip:hover { color: var(--ember); }

/* "From the seats": the empty red theater seats from the banner behind it */
.seats-panel { position: relative; }
.col-side .seats-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 10px; overflow: hidden; isolation: isolate; }
.col-side .seats-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: -1;
  background: url("seats.webp") center 40% / cover no-repeat; opacity: .35;
  -webkit-mask: linear-gradient(180deg, #000 10%, transparent); mask: linear-gradient(180deg, #000 10%, transparent);
}
.comment-feed { list-style: none; margin: 0; padding: 0; }
.comment-feed li + li { border-top: 1px solid var(--line); }
.comment-feed a { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; color: var(--text); }
.feed-who { font-size: .85rem; color: var(--muted); }
.feed-who strong { color: var(--cream); font-weight: 600; }
.feed-body { font-style: italic; }
.comment-feed a:hover .feed-body { color: var(--ember); }

/* ── Page heads + filters ─────────────────────────────────────────────── */
.page-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; padding: 40px 0 18px; }
.page-head h1 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.filters input, .filters select { flex: 1 1 160px; max-width: 300px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=file], select, textarea {
  width: 100%; background: var(--night); border: 1px solid var(--line-2); color: var(--cream);
  border-radius: var(--r-sm); padding: 10px 12px; font: inherit; font-size: .98rem;
}
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ember) 50%), linear-gradient(135deg, var(--ember) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
input[disabled] { color: var(--muted); }
textarea { resize: vertical; line-height: 1.55; }
input[type=range] { width: 100%; accent-color: var(--ember); }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 36px 0 0; font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .9rem; color: var(--muted); }

/* ── Movie page ───────────────────────────────────────────────────────── */
.movie-hero { position: relative; isolation: isolate; padding: 54px 0 48px; margin-bottom: 30px; overflow: hidden; }
.movie-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--backdrop, none) center 25% / cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(.55);
}
.movie-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 5, 5, .95) 0%, rgba(7, 5, 5, .8) 50%, rgba(7, 5, 5, .55) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 35%),
    rgba(245, 120, 40, .26);
}
.movie-hero-inner { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start; }
.movie-poster { border-radius: var(--r-sm); box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2); }
.movie-head { min-width: 0; }
.movie-title { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 12px; }
.movie-year { color: var(--ember); font-size: .55em; vertical-align: .25em; margin-left: 6px; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.genre-tags a { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--cream); }
.genre-tags a:hover { border-color: var(--ember); color: var(--ember); }
.tagline { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--ember); margin: 18px 0 6px; }
.credits-line { color: var(--muted); margin: 8px 0 0; }
.credits-line a { color: var(--cream); }
.credits-line a:hover { color: var(--ember); }
.movie-score { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin: 26px 0; }
.movie-score-side { display: flex; flex-direction: column; gap: 7px; }
.movie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.overview { max-width: 820px; margin-bottom: 44px; }
.overview p { font-size: 1.12rem; color: var(--text); }

/* The reviews, as a conversation: critics alternate sides, each review
   coming out of its critic like a speech bubble. */
.critics-table { margin-bottom: 56px; }
.chat { display: flex; flex-direction: column; gap: 34px; }
.chat-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; }
.chat-right { grid-template-columns: minmax(0, 1fr) 170px; }
.chat-right .chat-who { order: 2; }
.chat-nowho { grid-template-columns: 1fr; }
.chat-who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--cream); position: sticky; top: 90px; }
.chat-who .avatar-lg { filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .7)); transition: filter .2s; }
.chat-who:hover .avatar-lg { filter: drop-shadow(0 0 18px rgba(245, 135, 42, .4)); }
.chat-name { font-family: var(--f-display); font-size: 1.3rem; }
.chat-who:hover .chat-name { color: var(--ember); }
.bubble {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 24px 28px 18px; box-shadow: var(--shadow); min-width: 0;
}
.chat-left .bubble { border-left: 3px solid var(--ember); }
.chat-right .bubble { border-right: 3px solid var(--ember); }
.chat-left .bubble::before, .chat-right .bubble::before { /* tail toward the critic */
  content: ""; position: absolute; top: 46px; width: 18px; height: 18px; background: var(--panel-2);
  border: 1px solid var(--line-2); transform: rotate(45deg);
}
.chat-left .bubble::before { left: -11px; border-top: 0; border-right: 0; border-left: 3px solid var(--ember); border-bottom-color: var(--line-2); }
.chat-right .bubble::before { right: -11px; border-bottom: 0; border-left: 0; border-right: 3px solid var(--ember); }
.chat-nowho .bubble::before { display: none; }
.chat-nowho .bubble { border-left: 3px solid var(--ember); }
.bubble-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 14px; }
.bubble-score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 22px; border-right: 1px solid var(--line); }
.bubble-titles { min-width: 0; padding-top: 2px; }
.bubble-movie { display: block; font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; margin-bottom: 4px; }
.bubble-headline { font-size: 1.6rem; margin: 0; }
.bubble-body { color: var(--text); }
.bubble-body p:last-child { margin-bottom: 0; }
.bubble-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .82rem; color: var(--muted); }
[data-clamp].is-clamped { max-height: var(--clamp-h); overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }
.clamp-toggle { margin-top: 8px; background: none; border: 0; padding: 0; color: var(--ember); font-family: var(--f-caps); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; cursor: pointer; }
.clamp-toggle:hover { color: var(--flare); }

.contrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-bottom: 44px; }
.contrib-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.contrib-who { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; margin-bottom: 12px; }
.contrib-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.contrib-head h3 { margin: 0; font-size: 1.2rem; }
.contrib-body { color: var(--text); font-size: .98rem; }

.crew-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 30px; margin: 0 0 44px; }
.crew-list dt { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--muted); }
.crew-list dd { margin: 2px 0 0; }
.crew-list a { color: var(--cream); }
.crew-list a:hover { color: var(--ember); }
section > .cast-grid, section > .poster-grid { margin-bottom: 44px; }

/* Comments */
.comments { margin-top: 20px; }
.comments.seats-panel::before {
  content: ""; display: block; height: 90px; margin: 0 0 26px; border-radius: var(--r);
  background: url("seats.webp") center 45% / cover no-repeat; opacity: .55;
  -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.comment-form { display: grid; gap: 10px; justify-items: start; margin-bottom: 26px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment.is-hidden { opacity: .5; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .85rem; color: var(--muted); }
.comment-meta strong { color: var(--cream); font-size: .98rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-tools { display: flex; gap: 16px; margin-top: 6px; font-size: .85rem; }

/* Trailer */
.trailer-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 20px; }
.trailer-modal[hidden] { display: none; }
.trailer-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-2), 0 0 80px rgba(245, 135, 42, .25); }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; }
.trailer-close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: var(--ember); font-size: 2.6rem; cursor: pointer; }

/* ── Critics ──────────────────────────────────────────────────────────── */
.critic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-bottom: 44px; }
.critic-grid-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.critic-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.critic-card:hover { border-color: var(--ember); box-shadow: var(--glow); }
.critic-card-name { font-family: var(--f-display); font-size: 1.4rem; color: var(--cream); }
.critic-head { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: end; padding: 40px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.critic-head h1 { margin: 4px 0 8px; }
.critic-head .muted { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bio { margin-top: 14px; max-width: 700px; }
.chat-list { gap: 26px; }
.critic-review-row { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; }
.critic-review-poster { display: block; border-radius: var(--r-sm); transition: box-shadow .2s; }
.critic-review-poster:hover { box-shadow: var(--glow); }

/* ── People ───────────────────────────────────────────────────────────── */
.person-head { display: grid; grid-template-columns: 280px 1fr; gap: 42px; padding: 40px 0 40px; }
.person-photo .face-img { filter: grayscale(.2) contrast(1.05); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.person-info h1 { margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 26px; margin: 18px 0 20px; }
.facts dt { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--cream); }
.ext-links { display: flex; gap: 16px; margin-top: 14px; font-family: var(--f-caps); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; }
.admin-only { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 22px; margin-top: 20px; }
.import-list { display: grid; gap: 10px; }
.import-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r-sm); background: var(--panel); }
.import-item img { width: 46px; border-radius: 3px; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span:first-child { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--cream); }
.field output { color: var(--ember); font-family: var(--f-display); font-size: 1.4rem; letter-spacing: 0; }
.hint { font-size: .84rem; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { accent-color: var(--ember); width: 18px; height: 18px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.radio-row > span:first-child { width: 100%; }
.radio-row input { accent-color: var(--ember); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.danger-zone { margin-top: 24px; border-color: rgba(243, 82, 15, .35) !important; }
.back { display: inline-block; margin: 26px 0 6px; font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; }
.review-form-head { display: flex; gap: 22px; align-items: center; margin: 10px 0 26px; }
.review-form-head h1 { margin: 0 0 4px; }
.auth-wrap { display: grid; place-items: center; padding: 60px 24px; }
.auth-card { width: min(440px, 100%); padding: 34px; position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ember), transparent); }
.auth-card h1 { font-size: 2.2rem; margin-bottom: 0; }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.account-avatar { display: flex; align-items: center; gap: 14px; }

/* ── About + error ────────────────────────────────────────────────────── */
.about { padding-top: 46px; }
.about-logo { width: min(420px, 100%); margin: 0 0 26px; }
.about h2.label { margin-top: 34px; }
.score-legend { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.score-legend li { display: flex; align-items: center; gap: 14px; }
.error-page { text-align: center; padding: 80px 24px; }
.error-code { font-family: var(--f-display); font-size: clamp(6rem, 20vw, 11rem); line-height: 1; color: var(--ember); text-shadow: 0 0 50px rgba(245, 135, 42, .4); animation: flicker 4s infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .35; } 94% { opacity: 1; } 96% { opacity: .55; } }

/* ── Admin ────────────────────────────────────────────────────────────── */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.admin-nav a, .tabs-inline a { font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; padding: 7px 16px; border-radius: 999px; color: var(--text); }
.admin-nav a:hover, .tabs-inline a:hover { color: var(--ember); }
.admin-nav a.active, .tabs-inline a.active { background: var(--ember); color: var(--ink); }
.tabs-inline { display: flex; gap: 6px; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); font-size: .88rem; }
a.stat:hover { border-color: var(--ember); }
.stat-num { font-family: var(--f-display); font-size: 2.1rem; color: var(--ember); line-height: 1.1; }
.quick-import { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 22px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 30px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--muted); padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td, .table tr:hover td { background: rgba(245, 135, 42, .04); }
.card .table td { padding: 9px 4px; }
.row-off td { opacity: .5; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions, .row-actions form { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.import-results { list-style: none; padding: 0; display: grid; gap: 10px; }
.import-results li { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--panel); border-radius: var(--r-sm); border-left: 3px solid var(--ember); }
.import-results li.fail { border-left-color: var(--flare); }
.err { color: #ff8d72; }
.warn { color: #f5b77a; }
.avatar-preview-stage { display: flex; gap: 22px; padding: 18px; background: var(--night); border-radius: var(--r); justify-content: center; }
.preview-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { margin-top: 30px; padding-bottom: 34px; }
.footer .wave-rule { height: 46px; opacity: .55; margin-bottom: 26px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: grid; justify-items: center; text-align: center; gap: 12px; }
.footer-brand img { height: 54px; width: auto; }
.footer-tag { font-family: var(--f-display); font-size: 1.3rem; color: var(--cream); margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-family: var(--f-caps); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--ember); }
.tmdb-credit { font-size: .78rem; color: var(--dim); max-width: 560px; margin: 6px 0 0; }
.tmdb-credit a { color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .navsearch input { width: 160px; }
  .navsearch input:focus { width: 190px; }
  .mainnav { gap: 16px; }
}
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 8, 6, .98); border-bottom: 1px solid var(--line-2); padding: 8px 24px 20px; box-shadow: var(--shadow);
  }
  .mainnav.open { display: flex; }
  .mainnav > a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .mainnav > a.active::after { display: none; }
  .navsearch { margin: 14px 0 6px; }
  .navsearch input, .navsearch input:focus { width: 100%; }
  .nav-user { flex-wrap: wrap; padding-top: 8px; }
  .usermenu-panel { right: auto; left: 0; }
  .home-columns { grid-template-columns: 1fr; gap: 30px; }
  .feature-inner { grid-template-columns: 200px 1fr; gap: 30px; }
  .movie-hero-inner { grid-template-columns: 220px 1fr; gap: 30px; }
  .admin-cols, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-inner { padding: 8px 16px; }
  .brand img { height: 42px; }
  .mainnav { padding: 8px 16px 18px; }
  .feature { padding: 30px 0 40px; }
  .feature-inner, .movie-hero-inner { grid-template-columns: 1fr; }
  .feature-poster, .movie-poster { width: 58%; max-width: 240px; margin: 0 auto; }
  .feature-poster { transform: none; }
  .feature-text, .movie-head { text-align: left; }
  .score-xl { font-size: 3.6rem; }
  .feature-quotes { grid-template-columns: 1fr; }
  .chat-row, .chat-right { grid-template-columns: 1fr; gap: 0; }
  .chat-right .chat-who { order: 0; }
  .chat-who { position: static; flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; margin-bottom: -4px; z-index: 1; }
  .chat-right .chat-who { flex-direction: row-reverse; text-align: right; }
  .chat-who .avatar-lg { width: 96px; height: 108px; }
  .chat-who .role-tag { display: none; }
  .chat-left .bubble::before, .chat-right .bubble::before { top: -10px; left: 44px; right: auto; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; transform: rotate(45deg); }
  .chat-right .bubble::before { left: auto; right: 44px; }
  .bubble { padding: 20px 18px 16px; }
  .bubble-head { gap: 14px; }
  .bubble-score { padding-right: 14px; }
  .bubble-headline { font-size: 1.35rem; }
  .ranked a { grid-template-columns: 30px 40px 1fr auto; gap: 10px; padding: 10px 2px; }
  .rank { font-size: 1.3rem; }
  .ranked-thumb { width: 40px; }
  .person-head { grid-template-columns: 1fr; gap: 22px; }
  .person-photo { max-width: 220px; }
  .critic-head { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .critic-head .avatar-xl { width: 160px; height: 180px; }
  .critic-review-row { grid-template-columns: 70px 1fr; gap: 12px; }
  .quick-import { grid-template-columns: 1fr; }
  .contrib-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 140px; gap: 14px; }
  .cast-grid, .cast-grid-lg { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 18px 12px; }
  .person-card-name { font-size: .92rem; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; }
  .section-title h2 { font-size: 1.55rem; }
  .table { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
