@font-face {
  font-family: "Limelight";
  src: url("fonts/Limelight-1XzM.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("fonts/Courier%20Prime.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --display-font: "Limelight", Georgia, "Times New Roman", serif;
  --text-font: "Courier Prime", "Courier New", monospace;
  --bg: #050407;
  --ink: #f7f7f7;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.26);
  --panel-bg: rgba(0, 0, 0, 0.64);
  --panel-bg-deep: rgba(0, 0, 0, 0.72);
  --panel-line: rgba(255, 255, 255, 0.58);
  --cream: #fff0b4;
  --gold: #ffd166;
  --amber: #f5a43a;
  --red: #c51f36;
  --cyan: #37d6d1;
  --charcoal: rgba(0, 0, 0, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  --film-black: #020202;
  --film-hole: rgba(255, 255, 255, 0.94);
  --film-edge: 12px;
  --film-hole-height: 6px;
  --film-hole-offset-y: 3px;
  --film-hole-step: 24px;
  --film-field-bottom-band: 18px;
  --film-field: #f8f6ee;
  --film-text: #121212;
  --stage-film-height: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--text-font);
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 13% 87%, rgba(0, 0, 0, 0.42));
}

body.search-open {
  overflow: hidden;
}

.poster-wall {
  position: fixed;
  --poster-wall-columns: 28;
  --poster-wall-gap: clamp(7px, 0.55vw, 10px);
  inset: -48px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--poster-wall-columns), minmax(0, 1fr));
  gap: var(--poster-wall-gap);
  padding: 12px;
  overflow: hidden;
  opacity: 0.5;
  filter: saturate(0.88) contrast(0.96) brightness(0.72) blur(1.15px);
  transform: rotate(-1.2deg) scale(1.04);
  pointer-events: none;
}

.poster-wall::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 9px
    );
}

.poster-wall-column {
  min-width: 0;
  overflow: hidden;
  contain: paint;
}

.poster-wall-track {
  display: flex;
  flex-direction: column;
  gap: var(--poster-wall-gap);
  transform: translate3d(0, var(--wall-offset, 0), 0);
  will-change: transform;
}

.poster-wall-track[data-direction="down"] {
  transform: translate3d(0, var(--wall-offset, 0), 0);
}

.poster-wall-tile {
  min-width: 0;
  aspect-ratio: 2 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: #101010;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  backface-visibility: hidden;
  transform: rotate(var(--tilt, 0deg));
}

.poster-wall-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
textarea {
  font-family: var(--text-font);
  font-weight: 400;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.theater-shell {
  position: relative;
  z-index: 2;
  width: min(1030px, calc(100% - 32px));
  min-height: auto;
  margin: clamp(8px, 1.6vw, 18px) auto 40px;
  padding: 0;
}

.marquee {
  position: relative;
  --marquee-edge: clamp(20px, 2.8vw, 32px); 
  --marquee-hole-height: clamp(12px, 1.4vw, 17px);
  --marquee-hole-offset-y: clamp(10px, 1.6vw, 18px);
  --marquee-hole-step: clamp(38px, 4vw, 54px);
  display: grid;
  place-items: center;
  width: min(900px, 100%);
  aspect-ratio: auto;
  padding: 60px 0; 
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 4px;
  color: var(--film-text);
  background-color: var(--film-black);
  background-image:
    linear-gradient(
      90deg,
      transparent 0 12px,
      var(--film-hole) 12px 28px,
      transparent 28px 100%
    ),
    linear-gradient(
      90deg,
      transparent 0 12px,
      var(--film-hole) 12px 28px,
      transparent 28px 100%
    ),
    linear-gradient(180deg, #ffffff 0, var(--film-field) 48%, #ece7d8 100%);
  background-position:
    left var(--marquee-hole-offset-y),
    /* Align bottom holes exactly like the search bar logic */
    left calc(100% - var(--marquee-hole-height) - var(--marquee-hole-offset-y)),
    var(--marquee-edge) calc(var(--marquee-hole-offset-y) + var(--marquee-hole-height) + 8px);
  background-repeat: round no-repeat, round no-repeat, no-repeat;
  background-size:
    var(--marquee-hole-step) var(--marquee-hole-height),
    var(--marquee-hole-step) var(--marquee-hole-height),
    /* FIX: Reduce bottom height to clear overlap */
    calc(100% - var(--marquee-edge) * 2) calc(100% - 2 * var(--marquee-hole-offset-y) - 2 * var(--marquee-hole-height) - 26px);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.86),
    inset 0 22px 0 rgba(0, 0, 0, 0.04),
    inset 0 -22px 0 rgba(0, 0, 0, 0.04);
}

.marquee-title {
  max-width: calc(100% - var(--marquee-edge) * 2 - 24px);
  margin: 0;
  padding-bottom: 0.08em;
  color: var(--film-text);
  font-family: var(--display-font);
  /* RESTORED: Bringing back the larger font size */
  font-size: 5.65rem; 
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.54),
    0 3px 12px rgba(0, 0, 0, 0.16);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.stage-stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(900px, 100%);
  gap: clamp(18px, 3vw, 28px);
  margin: 0 auto;
  padding:
    calc(clamp(28px, 4vw, 42px) + var(--stage-film-height))
    clamp(16px, 4vw, 42px)
    calc(clamp(22px, 3.5vw, 34px) + var(--stage-film-height));
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(0, 0, 0, 0.68);
  box-shadow:
    0 24px 78px rgba(0, 0, 0, 0.5),
    inset 0 0 54px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(17px) brightness(0.7);
  -webkit-backdrop-filter: blur(17px) brightness(0.7);
  text-align: center;
}

.stage-stack::before,
.stage-stack::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 0;
  height: var(--stage-film-height);
  content: "";
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0 12px,
      rgba(255, 255, 255, 0.94) 12px 20px,
      transparent 20px 32px
    ),
    linear-gradient(var(--film-black), var(--film-black));
  background-position: 8px center, center;
  background-repeat: repeat-x, no-repeat;
  background-size: 32px 8px, 100% 100%;
  pointer-events: none;
}

.stage-stack::before {
  top: 0;
  border-radius: 4px 4px 0 0;
}

.stage-stack::after {
  bottom: 0;
  border-radius: 0 0 4px 4px;
}

.stage-stack > * {
  position: relative;
  z-index: 1;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.mood-section,
.genre-section,
.chat-panel {
  position: relative;
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mood-section {
  padding: 0;
}

.genre-section {
  width: min(690px, 100%);
  padding: clamp(14px, 2.4vw, 22px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.chat-panel {
  padding: clamp(14px, 2.4vw, 22px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.mood-section h2 {
  margin-bottom: clamp(16px, 2.4vw, 22px);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 124px));
  justify-content: center;
  gap: clamp(12px, 2.2vw, 22px);
  width: 100%;
  margin: 0 auto;
}

.poster-slot {
  min-width: 0;
}

.poster-add-button,
.poster-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.48);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.32),
    inset 0 0 22px rgba(0, 0, 0, 0.5);
}

.poster-add-button {
  color: var(--ink);
}

.poster-add-button:hover,
.poster-add-button:focus-visible {
  border-color: #fff;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.16),
    0 18px 36px rgba(0, 0, 0, 0.38);
}

.plus-mark {
  display: grid;
  width: clamp(34px, 6vw, 46px);
  height: clamp(34px, 6vw, 46px);
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
}

.poster-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-missing {
  padding: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  text-align: center;
}

.poster-slot h3 {
  min-height: 2.25em;
  margin: 8px 0 2px;
  overflow: hidden;
  color: var(--ink);
  display: -webkit-box;
  font-size: 0.84rem;
  line-height: 1.15;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.poster-slot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.remove-movie {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.52);
}

.remove-movie:hover,
.remove-movie:focus-visible {
  color: #080808;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.pick-search-button,
.genre-actor-form button,
.composer button {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  color: var(--film-text);
  overflow: hidden;
  background-color: var(--film-black);
  background-image:
    linear-gradient(
      90deg,
      transparent 0 7px,
      var(--film-hole) 7px 15px,
      transparent 15px 100%
    ),
    linear-gradient(
      90deg,
      transparent 0 7px,
      var(--film-hole) 7px 15px,
      transparent 15px 100%
    ),
    linear-gradient(var(--film-field), var(--film-field));
  background-position:
    left var(--film-hole-offset-y),
    left calc(100% - var(--film-hole-height) - var(--film-hole-offset-y)),
    var(--film-edge) var(--film-edge);
  background-repeat: round no-repeat, round no-repeat, no-repeat;
  background-size:
    var(--film-hole-step) var(--film-hole-height),
    var(--film-hole-step) var(--film-hole-height),
    calc(100% - var(--film-edge) - var(--film-edge)) calc(100% - var(--film-edge) - var(--film-field-bottom-band));
  display: grid;
  place-items: center;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    inset 0 13px 0 rgba(0, 0, 0, 0.04),
    inset 0 -13px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
}

.pick-search-button {
  width: min(330px, 100%);
  margin: 20px auto 0;
  padding: 0 22px 6px;
}

.genre-actor-form button,
.composer button {
  min-width: 108px;
  padding: 0 28px 6px;
}

.pick-search-button:hover,
.pick-search-button:focus-visible,
.genre-actor-form button:hover,
.genre-actor-form button:focus-visible,
.composer button:hover,
.composer button:focus-visible {
  color: #050505;
  --film-hole: #fff;
  --film-field: #ffffff;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(0, 0, 0, 0.84),
    inset 0 13px 0 rgba(0, 0, 0, 0.04),
    inset 0 -13px 0 rgba(0, 0, 0, 0.04),
    0 0 0 3px rgba(255, 255, 255, 0.16);
}

.tmdb-credit {
  width: min(620px, 100%);
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--text-font);
  font-size: 0.72rem;
  line-height: 1.4;
}

.genre-section h2,
.chat-header h2 {
  margin-bottom: 14px;
}

.genre-actor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(560px, 100%);
  margin: 0 auto;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  color: var(--film-text);
  overflow: hidden;
  background-color: var(--film-black);
  background-image:
    linear-gradient(
      90deg,
      transparent 0 7px,
      var(--film-hole) 7px 15px,
      transparent 15px 100%
    ),
    linear-gradient(
      90deg,
      transparent 0 7px,
      var(--film-hole) 7px 15px,
      transparent 15px 100%
    ),
    linear-gradient(var(--film-field), var(--film-field));
  background-position:
    left var(--film-hole-offset-y),
    left calc(100% - var(--film-hole-height) - var(--film-hole-offset-y)),
    var(--film-edge) var(--film-edge);
  background-repeat: round no-repeat, round no-repeat, no-repeat;
  background-size:
    var(--film-hole-step) var(--film-hole-height),
    var(--film-hole-step) var(--film-hole-height),
    calc(100% - var(--film-edge) - var(--film-edge)) calc(100% - var(--film-edge) - var(--film-field-bottom-band));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    inset 0 13px 0 rgba(0, 0, 0, 0.04),
    inset 0 -13px 0 rgba(0, 0, 0, 0.04);
  caret-color: #111;
  outline: none;
}

input {
  min-height: 54px;
  padding: 14px 18px;
}

textarea {
  min-height: 74px;
  max-height: 160px;
  resize: vertical;
  padding: 20px 18px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.58);
}

input:focus,
textarea:focus {
  --film-hole: #fff;
  --film-field: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(0, 0, 0, 0.84),
    inset 0 13px 0 rgba(0, 0, 0, 0.04),
    inset 0 -13px 0 rgba(0, 0, 0, 0.04),
    0 0 0 3px rgba(255, 255, 255, 0.16);
}

.chat-panel {
  min-width: 0;
  font-family: "Courier Prime", "Courier New", monospace;
  text-align: left;
}

.chat-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.chat-header h2 {
  grid-column: 2;
  margin: 0;
}

.status-pill {
  grid-column: 3;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 400;
}

.messages {
  display: flex;
  min-height: clamp(260px, 28vh, 340px);
  max-height: 420px;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 12px 2px;
  background: transparent;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.62) rgba(255, 255, 255, 0.08);
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 86%;
}

.message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: #060606;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 400;
}

.message-user .avatar {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.bubble {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  line-height: 1.45;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.message-user .bubble {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.bubble p {
  margin: 0;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.pick-search-button:disabled,
.genre-actor-form button:disabled,
.composer button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.movie-search-modal[hidden],
.related-results-modal[hidden] {
  display: none;
}

.movie-search-modal,
.related-results-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  padding: min(18vh, 120px) 16px 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.movie-search-popover,
.related-results-popover {
  width: min(570px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: var(--shadow);
}

.related-results-popover {
  width: min(820px, 100%);
}

.movie-search-topline,
.related-results-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.movie-search-topline h2,
.related-results-topline h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  text-align: left;
}

.movie-search-close,
.related-results-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 400;
}

.movie-search-close:hover,
.movie-search-close:focus-visible,
.related-results-close:hover,
.related-results-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.movie-search {
  position: relative;
  padding: 16px 18px 18px;
}

.movie-search label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 400;
  text-align: left;
}

.search-box {
  position: relative;
}

.search-status {
  min-height: 1.2rem;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: left;
}

.related-results-status {
  min-height: 1.2rem;
  margin: 8px 18px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: left;
}

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

.related-movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.related-movie-poster {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #111;
  font-size: 0.74rem;
  text-align: center;
}

.related-movie-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-movie-copy {
  padding: 10px 10px 12px;
}

.related-movie-copy h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.12;
  text-align: left;
}

.related-movie-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.movie-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 10;
  max-height: 330px;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.52);
}

.movie-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.movie-result:hover,
.movie-results [aria-selected="true"] .movie-result {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.result-poster {
  display: grid;
  width: 46px;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  color: var(--muted);
  background: #111;
  font-size: 0.66rem;
  text-align: center;
}

.result-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.result-copy strong,
.result-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.result-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

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

@media (max-width: 900px) {
  .poster-wall {
    --poster-wall-gap: 9px;
    inset: -36px;
    opacity: 0.36;
  }

  .marquee {
    width: min(820px, calc(100% + 24px));
  }

  .marquee-title {
    font-size: 4.6rem;
  }
}

@media (max-width: 700px) {
  .theater-shell {
    width: min(100% - 20px, 1080px);
  }

  .marquee {
    width: 100%;
  }

  .marquee-title {
    font-size: 3.05rem;
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .stage-stack {
    gap: 24px;
    margin-top: 0;
    padding:
      calc(24px + var(--stage-film-height))
      18px
      calc(26px + var(--stage-film-height));
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(104px, 148px));
  }

  .genre-actor-form,
  .composer {
    grid-template-columns: 1fr;
  }

  .genre-actor-form button,
  .composer button {
    width: 100%;
  }

  .chat-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chat-header h2,
  .status-pill {
    grid-column: 1;
    justify-self: center;
  }

  .message {
    max-width: 94%;
  }

  .related-results-grid {
    grid-template-columns: 1fr;
  }

  .related-movie-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .poster-wall {
    --poster-wall-gap: 8px;
    inset: -28px;
    opacity: 0.32;
  }

  .theater-shell {
    width: min(100% - 14px, 1080px);
  }

  .marquee {
    width: 100%;
    margin-left: auto;
  }

  .marquee-title {
    font-size: 2.08rem;
  }

  .stage-stack {
    padding:
      calc(22px + var(--stage-film-height))
      14px
      calc(24px + var(--stage-film-height));
  }

  h2 {
    font-size: 1.16rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 128px));
  }

  .pick-search-button {
    width: min(300px, 100%);
  }

  .messages {
    min-height: 320px;
  }

  .related-movie-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}
