:root {
  color-scheme: dark;
  --bg: #120d0a;
  --panel: rgba(29, 20, 16, 0.9);
  --panel-2: #26372a;
  --line: rgba(229, 185, 122, 0.22);
  --line-strong: rgba(229, 185, 122, 0.44);
  --text: #f1e7d8;
  --muted: #bba892;
  --dim: #8c7a68;
  --gold: #f1c27a;
  --amber: #d99a4e;
  --burgundy: #6f2525;
  --green: #243b2b;
  --green-deep: #112219;
  --paper: #d9c4a3;
  --radius: 8px;
  --shadow: rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(217, 154, 78, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(36, 59, 43, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(111, 37, 37, 0.11), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18,13,10,.58), rgba(18,13,10,.94)),
    url("../img/english-projector-lounge.png") center top / cover no-repeat;
  opacity: .38;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(242, 205, 149, .2), transparent 34%),
    linear-gradient(90deg, rgba(8, 16, 11, .48), transparent 20%, transparent 80%, rgba(8, 16, 11, .52));
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .07;
  background-image: linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 7px 9px;
  mix-blend-mode: overlay;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(12px, calc((100vw - 1020px) / 2));
  background: rgba(12, 16, 12, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 820; }
.brand span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(145deg, #d99a4e, #7a3b22); color: #160d08; font-size: 12px;
}
.topbar__nav { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.topbar__nav form { margin: 0; }
.topbar__nav button { border: 0; background: transparent; color: var(--muted); padding: 0; }
.messages { width: min(760px, calc(100% - 24px)); margin: 12px auto 0; }
.message { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--panel); color: var(--gold); }
.hero { position: relative; min-height: min(760px, 100vh); display: grid; align-items: end; overflow: hidden; }
.hero__bg, .hero__shade { position: absolute; inset: 0; }
.hero__bg { z-index: -2; background-size: cover; background-position: center; filter: saturate(.86); }
.hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(18,13,10,.94), rgba(18,13,10,.56), rgba(18,13,10,.18)),
              linear-gradient(0deg, rgba(18,13,10,.86), transparent 48%);
}
.hero__content { width: min(680px, calc(100% - 28px)); margin: 0 auto 72px; transform: translateX(min(-150px, 0px)); }
.overline, .meta { color: var(--gold); font-size: 12px; font-weight: 780; }
.hero h1, .screen h1, .auth-card h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 520; line-height: 1; }
.hero h1 { margin-top: 12px; font-size: 76px; }
.hero p { margin-top: 18px; color: #d8c8b6; font-size: 20px; line-height: 1.55; }
.hero__actions, .actions, .reaction-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero__actions { margin-top: 24px; }
.button, .form-stack button, .reaction-row button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 14px;
  background: rgba(32, 21, 15, .68); color: var(--text); font-weight: 760;
}
.button--primary, .form-stack button {
  background: linear-gradient(180deg, #dca056, #9c5c2f); color: #1b1009;
  box-shadow: 0 14px 28px rgba(122,59,34,.28);
}
.button--ghost { background: rgba(255,255,255,.04); color: var(--text); }
.button--small { min-height: 34px; font-size: 13px; padding: 0 10px; }
.screen, .page-grid { width: min(920px, calc(100% - 24px)); margin: 26px auto 110px; }
.page-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 22px; align-items: start; }
.screen__head, .section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.screen h1 { margin-top: 4px; font-size: 54px; }
.panel, .card, .auth-card, .mini-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), transparent),
    linear-gradient(135deg, rgba(36,59,43,.24), transparent 44%),
    var(--panel);
  box-shadow: 0 18px 46px var(--shadow);
}
.panel { padding: 14px; margin-top: 12px; backdrop-filter: blur(10px); }
.card { padding: 14px; }
.card--large { padding: 18px; }
.auth-card { width: min(520px, calc(100% - 24px)); margin: 50px auto 110px; padding: 18px; }
.club-room {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: url("../img/english-projector-lounge.png") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.club-room__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 15%, rgba(10, 9, 7, .8), rgba(10,9,7,.46) 24%, transparent 46%),
    linear-gradient(90deg, rgba(12, 12, 8, .46), rgba(12,12,8,.12) 42%, transparent 70%),
    linear-gradient(0deg, rgba(18,13,10,.32), transparent 34%);
}
.club-room__content {
  position: relative;
  width: min(430px, calc(100% - 28px));
  margin: 34px 0 0 22px;
  padding: 12px 12px 14px;
  border-left: 2px solid rgba(241,194,122,.58);
  background: linear-gradient(90deg, rgba(10,9,7,.54), rgba(10,9,7,.18), transparent);
}
.club-room__content h1 {
  font-size: 46px;
  margin-top: 5px;
}
.club-room__content p:not(.overline) {
  margin-top: 7px;
  color: #e6d6c2;
  line-height: 1.32;
  font-size: 16px;
}
.club-room__content .hero__actions { margin-top: 14px; }
.club-room__content .button { min-height: 36px; padding: 0 12px; }
.feed { display: grid; gap: 10px; margin-top: 12px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 33%); gap: 10px; overflow-x: auto; padding: 10px 0 4px; }
.mini-card { min-height: 248px; padding: 10px; overflow: hidden; }
.mini-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 8px; border: 1px solid rgba(241,194,122,.24); }
.mini-card strong, .card h3 { display: block; margin-bottom: 6px; }
.impression-card p, .card p, .muted { color: var(--muted); line-height: 1.48; }
.impression-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  padding: 10px;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(36,59,43,.32), rgba(29,20,16,.82)),
    var(--panel);
}
.impression-card__poster img,
.impression-card__poster .poster-stub {
  width: 100%;
  height: 100%;
  min-height: 106px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(241,194,122,.28);
}
.impression-card__note {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}
.impression-card__note p {
  color: #e6d8c6;
  font-size: 18px;
  line-height: 1.42;
}
.impression-text { margin-top: 16px; color: #eadcca; font-size: 18px; line-height: 1.58; }
.poster-thumb img, .poster-stub {
  width: 100%;
  height: 100%;
  min-height: 106px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(241,194,122,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.poster-stub {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(241,194,122,.24), transparent 26%),
    linear-gradient(145deg, var(--green), #16110d 48%, var(--burgundy));
}
.poster-stub span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(241,194,122,.45);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}
.poster-stub--mini {
  aspect-ratio: 2 / 3;
  min-height: 190px;
  margin-bottom: 8px;
}
.poster-stub--large {
  width: 128px;
  min-height: 190px;
}
.poster-thumb--detail { min-width: 128px; }
.impression-note {
  position: relative;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15,24,17,.96), rgba(24,17,13,.9) 44%, rgba(16,10,7,.84)),
    var(--media-backdrop, linear-gradient(115deg, rgba(36,59,43,.55), rgba(29,20,16,.86) 44%)),
    var(--panel);
  background-size: cover;
  background-position: center;
}
.impression-note__media {
  display: grid;
  align-content: start;
  gap: 10px;
}
.impression-note__media .poster-thumb {
  display: block;
}
.film-context {
  display: grid;
  gap: 5px;
}
.film-context strong {
  color: #f2eadc;
  line-height: 1.2;
}
.quiet-link {
  display: inline-flex;
  width: max-content;
  color: var(--gold);
  font-size: 13px;
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: rgba(241,194,122,.34);
  text-underline-offset: 4px;
}
.quiet-link--tool {
  color: var(--dim);
  text-decoration-color: rgba(140,122,104,.44);
}
.impression-note__main {
  display: grid;
  align-content: start;
  min-width: 0;
  border-left: 1px solid rgba(241,194,122,.2);
  padding-left: 18px;
}
.impression-note__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.impression-note__top h1 {
  margin-top: 4px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 820;
  line-height: 1.15;
}
.note-about {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.impression-quote {
  position: relative;
  margin: 20px 0 0;
  padding: 15px 16px;
  border-left: 3px solid rgba(241,194,122,.58);
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    linear-gradient(90deg, rgba(217,154,78,.12), transparent),
    rgba(12,18,13,.45);
  color: #efe4d6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.25vw, 29px);
  line-height: 1.34;
}
.impression-quote p {
  color: inherit;
}
.impression-quote::before {
  content: "“";
  position: absolute;
  top: -18px;
  left: 8px;
  color: rgba(241,194,122,.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 82px;
  line-height: 1;
}
.compact-list { display: grid; gap: 8px; margin-top: 10px; }
.compact-list a {
  display: flex; justify-content: space-between; gap: 10px; border: 1px solid rgba(229,185,122,.16);
  border-radius: var(--radius); padding: 10px; background: rgba(11,22,15,.42);
}
.form-stack { display: grid; gap: 12px; margin-top: 14px; }
.form-stack p { display: grid; gap: 7px; color: var(--muted); }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(16,10,7,.78); color: var(--text); padding: 11px 12px; outline: none;
}
textarea { resize: vertical; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.radar-tools { display: grid; gap: 12px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(229,185,122,.2);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(11,22,15,.36);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.filter-chip span {
  color: var(--gold);
  font-size: 12px;
}
.filter-chip.is-active {
  background: rgba(217,154,78,.18);
  color: var(--text);
  border-color: rgba(241,194,122,.58);
}
.filter-chip--ghost { color: var(--dim); }
.reaction-block { margin-top: 16px; }
.reaction-row { margin-top: 12px; }
.reaction-row form { margin: 0; }
.reaction-row--visible:empty { display: none; }
.reaction-row button {
  display: inline-grid;
  place-items: center;
  row-gap: 3px;
  min-height: 40px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #e0d1bf;
  background: rgba(20,13,9,.44);
}
.reaction-row button.has-many { border-color: rgba(241,194,122,.7); }
.reaction-row button.is-active { background: rgba(217,154,78,.22); color: var(--gold); border-color: var(--gold); }
.reaction-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 30px;
  min-height: 6px;
}
.reaction-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(241,194,122,.72);
  box-shadow: 0 0 8px rgba(217,154,78,.28);
}
.reaction-row button.is-active .reaction-dots i {
  background: #f5d095;
}
.reaction-picker {
  margin-top: 10px;
}
.reaction-picker summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px dashed rgba(229,185,122,.34);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  list-style: none;
  cursor: pointer;
  background: rgba(255,255,255,.025);
}
.reaction-picker summary::-webkit-details-marker { display: none; }
.reaction-row--picker {
  padding: 10px;
  border: 1px solid rgba(229,185,122,.13);
  border-radius: var(--radius);
  background: rgba(8,14,10,.42);
}
.comment { border-left: 2px solid var(--line-strong); padding-left: 10px; color: var(--muted); }
.media-hero {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: start;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(17,34,25,.92), rgba(29,20,16,.84) 48%, rgba(18,13,10,.68)),
    var(--media-backdrop, linear-gradient(105deg, rgba(17,34,25,.72), rgba(29,20,16,.9))),
    var(--panel);
  background-size: cover;
  background-position: center;
}
.media-hero img { width: 128px; border-radius: 7px; border: 1px solid rgba(241,194,122,.28); }
.dossier {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent),
    linear-gradient(130deg, rgba(111,37,37,.22), transparent 38%),
    var(--panel);
}
.fact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.fact-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(241,194,122,.24);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(12,22,15,.46);
  color: #eadcca;
  font-size: 13px;
  font-weight: 720;
}
.dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: 14px;
  margin-top: 16px;
}
.dossier-grid h3 {
  margin-bottom: 9px;
  color: var(--paper);
}
.people-list {
  display: grid;
  gap: 8px;
}
.person-row {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(229,185,122,.16);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(11,22,15,.36);
}
.person-row strong {
  color: #f3eadb;
}
.person-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.person-row--cast {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
}
.person-row--cast img,
.face-stub {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(241,194,122,.26);
  object-fit: cover;
  background: rgba(217,154,78,.12);
}
.face-stub {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}
.media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.media-list-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(229,185,122,.16);
  border-radius: var(--radius);
  padding: 8px;
  background:
    linear-gradient(120deg, rgba(36,59,43,.38), rgba(29,20,16,.72)),
    rgba(11,22,15,.42);
}
.media-list-card img,
.poster-stub--list {
  width: 58px;
  height: 76px;
  min-height: 76px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(241,194,122,.24);
}
.media-list-card strong {
  display: block;
  margin-bottom: 5px;
  color: #f2eadc;
  line-height: 1.22;
}
.media-list-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.25;
}
.poster-stub--list span {
  width: 34px;
  height: 34px;
  font-size: 18px;
}
.tmdb-note, .invite-code { margin-top: 12px; color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.spoiler-label { display: inline-flex; margin-top: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(111,37,37,.42); color: #ffd9cf; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.bottom-nav {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 12;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  width: min(520px, calc(100% - 20px)); border: 1px solid var(--line); border-radius: 22px;
  padding: 6px; background: rgba(10,18,13,.92); backdrop-filter: blur(16px);
}
.bottom-nav a { display: grid; min-height: 42px; place-items: center; border-radius: 16px; color: var(--muted); font-size: 12px; font-weight: 720; }
.bottom-nav__primary { background: rgba(217,154,78,.18); color: var(--gold) !important; }
@media (max-width: 720px) {
  .hero { min-height: 760px; }
  .hero h1 { font-size: 46px; }
  .screen h1 { font-size: 42px; }
  .hero__content { transform: none; margin-bottom: 48px; }
  .hero p { font-size: 17px; }
  .club-room { min-height: 430px; background-position: 58% top; }
  .club-room__shade {
    background:
      radial-gradient(ellipse at 22% 16%, rgba(10,9,7,.82), rgba(10,9,7,.48) 30%, transparent 58%),
      linear-gradient(90deg, rgba(12,12,8,.42), rgba(12,12,8,.08) 64%, transparent),
      linear-gradient(0deg, rgba(18,13,10,.28), transparent 42%);
  }
  .club-room__content { width: min(330px, calc(100% - 24px)); margin: 24px 0 0 12px; padding-bottom: 14px; }
  .club-room__content h1 { font-size: 40px; }
  .page-grid { grid-template-columns: 1fr; }
  .topbar__nav a:nth-child(2) { display: none; }
  .rail { grid-auto-columns: minmax(156px, 58%); }
  .media-hero { grid-template-columns: 92px 1fr; }
  .impression-note { grid-template-columns: 1fr; }
  .impression-note__media {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: end;
  }
  .impression-note__main {
    border-left: 0;
    border-top: 1px solid rgba(241,194,122,.2);
    padding-left: 0;
    padding-top: 14px;
  }
  .impression-note__top h1 { font-size: 20px; }
  .impression-quote { font-size: 20px; padding: 13px 14px; }
  .media-hero img, .poster-stub--large { width: 92px; min-height: 136px; }
  .dossier-grid { grid-template-columns: 1fr; }
  .media-list { grid-template-columns: 1fr; }
  .poster-thumb--detail { min-width: 92px; }
  .impression-card { grid-template-columns: 72px minmax(0, 1fr); }
  .impression-card__note p { font-size: 16px; }
  .poster-thumb img, .poster-stub { min-height: 98px; }
}
