:root {
  color-scheme: dark;
  --ink: #0a0a08;
  --paper: #f7f4ed;
  --bone: #ded9cf;
  --red: #ef321b;
  --acid: #f7f4ed;
  --blue: #bdb9b2;
  --grey: #6f6b64;
  --line: rgba(10, 10, 8, 0.2);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Mono", ui-monospace, monospace;
  background-image: linear-gradient(rgba(18,17,15,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18,17,15,.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

button, input { font: inherit; }
button { cursor: pointer; }
.auth-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--paper); background: rgba(10,10,8,.45); backdrop-filter: blur(5px); }.auth-gate[hidden] { display: none; }.auth-gate-inner { width: min(510px, 100%); padding: 28px; border: 2px solid var(--paper); background: var(--ink); box-shadow: 10px 10px 0 var(--red); text-align: center; }.auth-mark { display: grid; width: 48px; height: 48px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--red); font-family: Fraunces, Georgia, serif; font-size: 1.7rem; font-weight: 900; }.auth-gate h1 { margin: 0 0 14px; color: var(--paper); font-size: clamp(2.8rem, 7vw, 4.7rem); }.auth-gate p:not(.kicker) { max-width: 400px; margin: 0 auto 22px; color: var(--bone); line-height: 1.65; }.auth-gate button { min-height: 50px; border: 1px solid var(--paper); padding: 0 22px; color: var(--paper); background: var(--red); text-transform: uppercase; }.auth-gate button:hover { color: var(--ink); background: var(--paper); }.auth-gate small { display: block; max-width: 360px; margin: 16px auto 0; color: var(--bone); font-size: .68rem; line-height: 1.55; }.auth-gate a { color: var(--paper); }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.view { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.matchmaking, .room { display: none; }
.app[data-view="queue"] .home, .app[data-view="queue"] .latest, .app[data-view="queue"] .room, .app[data-view="room"] .home, .app[data-view="room"] .latest, .app[data-view="room"] .matchmaking { display: none; }
.app[data-view="queue"] .matchmaking { display: grid; }
.app[data-view="room"] .room { display: block; }

.topbar {
  width: min(1220px, calc(100% - 36px)); min-height: 74px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--ink);
}
.brand { display: inline-flex; gap: 9px; align-items: center; color: inherit; text-decoration: none; font-family: Fraunces, Georgia, serif; font-size: 1.25rem; font-weight: 900; letter-spacing: 0; }
.brand-dot { color: var(--red); }.brand-mark { display: block; width: 30px; height: 30px; border: 1px solid var(--ink); object-fit: cover; }
.topbar-right { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: blink 1.5s steps(1) infinite; }
.signin-button { min-height: 32px; border: 1px solid var(--ink); padding: 0 9px; color: var(--ink); background: var(--paper); font-size: .66rem; text-transform: uppercase; }.signin-button:hover { color: var(--paper); background: var(--ink); }

.home { order: 1; min-height: auto; display: block; padding: 74px 0 62px; text-align: center; }
.latest { order: 2; }
.home-copy { max-width: 770px; margin: 0 auto; }
.kicker { margin: 0 0 13px; color: var(--red); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Fraunces, Georgia, serif; }
h1 { margin-bottom: 22px; font-size: clamp(4.4rem, 8.3vw, 8rem); font-weight: 900; line-height: .81; letter-spacing: -.05em; }
h2 { margin-bottom: 12px; font-size: clamp(2.4rem, 4.5vw, 4.8rem); line-height: .88; letter-spacing: -.04em; }
.lede { max-width: 630px; margin: 0 auto 33px; color: #3f3a32; font-size: 1rem; line-height: 1.75; }

.quick-match { max-width: 680px; margin: 0 auto; padding: 16px; border: 2px solid var(--ink); color: var(--paper); background: var(--ink); text-align: left; box-shadow: 10px 10px 0 var(--red); }
.quick-match label { display: block; margin-bottom: 10px; color: var(--paper); font-size: .75rem; font-weight: 500; text-transform: uppercase; }
.match-row { display: grid; grid-template-columns: 1fr 152px; gap: 0; }
.movie-search { position: relative; min-width: 0; }
.movie-search input { border-right: 0; color: var(--ink); background: var(--paper); }
.search-results { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0; max-height: 340px; overflow-y: auto; border: 2px solid var(--paper); background: #fffaf0; box-shadow: 7px 7px 0 var(--red); }
.search-result { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 8px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.search-result:hover { background: var(--acid); }.search-result img { width: 32px; height: 43px; object-fit: cover; background: var(--bone); }.search-result strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 1rem; }.search-result small { color: var(--grey); font-size: .65rem; }
.search-more { width: 100%; min-height: 42px; border: 0; color: var(--paper); background: var(--ink); font-size: .7rem; text-transform: uppercase; }.search-more:hover { color: var(--ink); background: var(--acid); }
.selected-movie { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: var(--grey); font-size: .68rem; text-transform: uppercase; }.selected-movie a { color: var(--red); }.selected-movie b { color: var(--ink); }
input { width: 100%; min-height: 52px; border: 1px solid var(--ink); border-radius: 0; padding: 0 14px; color: var(--ink); background: transparent; outline: none; }
input::placeholder { color: #777064; }
input:focus { background: #fff9eb; box-shadow: inset 0 -3px var(--acid); }
.match-row button, .composer button { min-height: 52px; border: 1px solid var(--paper); border-left: 0; border-radius: 0; color: var(--paper); background: var(--red); font-weight: 500; text-transform: uppercase; }
.match-row button:hover, .composer button:hover { background: var(--red); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; }
.chips button, .secondary, .icon-button, .leave { min-height: 34px; border: 0; border-radius: 0; padding: 0 10px; color: var(--ink); background: transparent; font-size: .72rem; text-transform: uppercase; }
.chips button { border-right: 1px solid var(--line); text-decoration: underline; text-underline-offset: 3px; }
.chips button:first-child { padding-left: 0; }
.chips button:hover, .secondary:hover, .icon-button:hover { color: var(--red); }
.quick-match .chips button { color: var(--paper); border-color: rgba(247,244,237,.3); }.quick-match .chips button:hover { color: var(--red); }

.match-note { display: none; }
.latest { padding: 0 0 74px; }.latest-heading { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 32px; padding: 24px; border: 2px solid var(--ink); color: var(--paper); background: var(--ink); box-shadow: 10px 10px 0 var(--red); }.latest-heading h2 { margin: 0; color: var(--paper); font-size: clamp(2.5rem, 4.6vw, 4.7rem); }.latest-heading .kicker { color: var(--red); }.latest-heading > p { max-width: 370px; margin: 0 0 5px; color: var(--bone); font-size: .77rem; line-height: 1.65; }.catalog-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px; align-items: start; }.genre-sidebar { position: sticky; top: 18px; border: 2px solid var(--ink); background: var(--paper); }.genre-sidebar > p { margin: 0; padding: 12px 11px; color: var(--paper); background: var(--ink); font-size: .67rem; text-transform: uppercase; }.genre-sidebar button { display: block; width: 100%; padding: 10px 11px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; font-family: Fraunces, Georgia, serif; font-size: 1.1rem; text-align: left; }.genre-sidebar button:hover, .genre-sidebar button.is-active { padding-left: 17px; color: var(--paper); background: var(--red); }.movie-grid-area h3 { margin: 0 0 12px; font-family: Fraunces, Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem); }.poster-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.movie-poster { min-width: 0; padding: 0; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); text-align: left; }.movie-poster:hover { transform: translateY(-8px) rotate(-1.25deg); box-shadow: 8px 8px 0 var(--red); }.movie-poster img, .poster-fallback { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--blue); }.poster-fallback { display: grid; place-items: center; padding: 12px; color: var(--paper); font-family: Fraunces, Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.65rem); line-height: .9; background: linear-gradient(145deg, var(--ink) 0 49%, var(--red) 50%); }.movie-poster:nth-child(3n) .poster-fallback { background: linear-gradient(145deg, var(--red) 0 49%, var(--ink) 50%); }.movie-poster:nth-child(4n) .poster-fallback { background: var(--ink); }.movie-poster span:not(.poster-fallback) { display: block; padding: 9px; font-family: Fraunces, Georgia, serif; font-size: 1rem; line-height: 1; }.movie-poster small { display: block; padding: 0 9px 10px; color: var(--grey); font-size: .62rem; text-transform: uppercase; }

.matchmaking { min-height: calc(100vh - 74px); place-items: center; padding-bottom: 74px; }
.queue-card { width: min(620px, 100%); padding: 25px 0; text-align: center; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.scanner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; height: 104px; margin-bottom: 24px; }
.scanner span { background: var(--ink); animation: scan .8s steps(2) infinite alternate; }.scanner span:nth-child(2) { background: var(--red); animation-delay: .12s; }.scanner span:nth-child(3) { background: var(--acid); animation-delay: .24s; }.scanner span:nth-child(4) { background: var(--blue); animation-delay: .36s; }
.queue-card p:not(.kicker) { color: var(--grey); }
.secondary { margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }

.room { padding: 18px 0 26px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.room-top h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.room-top .kicker { margin-bottom: 4px; }
.room-controls, .media-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.icon-button { min-width: 55px; border: 1px solid var(--ink); padding: 0 8px; }
.leave { min-width: 55px; border: 1px solid var(--red); color: var(--paper); background: var(--red); }
.room-grid { min-height: 620px; height: calc(100vh - 160px); display: grid; grid-template-columns: minmax(320px, 1.04fr) minmax(350px, .96fr); gap: 18px; padding-top: 18px; }
.video-stack { min-height: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.video-frame { position: relative; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); }
.stranger-video { background: #28241f; }
.stranger-video video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.stranger-video.has-video .signal-bars, .stranger-video.has-video::before { display: none; }
.stranger-video::before { content: ""; position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px); }
.signal-bars { position: absolute; inset: 24px; display: grid; place-items: center; border: 1px solid rgba(242,237,223,.45); color: var(--acid); text-align: center; font-size: clamp(1.6rem, 3vw, 3rem); line-height: .9; letter-spacing: -.08em; }
.frame-title { position: absolute; z-index: 2; left: 13px; right: 13px; bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: var(--paper); text-shadow: 0 1px 2px #000; }
.frame-title span, .icebreaker span, .message small { font-size: .65rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }.frame-title strong { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; }
.self-video { background: var(--blue); }.self-video video { width: 100%; height: 100%; display: block; object-fit: cover; }.camera-off { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; color: var(--ink); text-align: center; background: var(--acid); }.camera-off strong { font-family: Fraunces, Georgia, serif; font-size: 1.8rem; }.camera-off.is-hidden { display: none; }.media-controls { position: absolute; right: 10px; bottom: 10px; }.media-controls .icon-button { color: var(--paper); border-color: var(--paper); background: var(--ink); }.speaker-button { position: absolute; z-index: 3; right: 10px; top: 10px; min-height: 30px; border: 1px solid var(--paper); padding: 0 8px; color: var(--paper); background: rgba(10, 10, 8, .8); font-size: .64rem; text-transform: uppercase; }.speaker-button:hover { color: var(--ink); background: var(--paper); }

.text-chat { min-height: 0; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--ink); background: #fffaf0; }
.icebreaker { padding: 15px; border-bottom: 1px solid var(--ink); background: var(--acid); }.icebreaker p { margin: 6px 0 0; font-family: Fraunces, Georgia, serif; font-size: 1.25rem; line-height: 1.08; }.talk-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }.talk-prompts button { border: 1px solid var(--ink); padding: 5px 7px; color: var(--ink); background: transparent; font-size: .63rem; text-align: left; }.talk-prompts button:hover { color: var(--paper); background: var(--red); }
.messages { min-height: 0; overflow-y: auto; padding: 15px; }.message { width: fit-content; max-width: min(82%, 560px); margin-bottom: 11px; padding: 9px 11px; border: 1px solid var(--ink); background: var(--paper); }.message p { margin: 4px 0 0; font-size: .78rem; line-height: 1.5; }.message.me { margin-left: auto; background: var(--blue); color: var(--paper); }.message.me small { color: var(--paper); }.system { margin: 7px 0 14px; color: var(--grey); text-align: center; font-size: .7rem; }
.composer { display: grid; grid-template-columns: 1fr 82px; gap: 0; border-top: 1px solid var(--ink); }.composer input { border: 0; }

@keyframes blink { 50% { opacity: .15; } } @keyframes scan { to { transform: translateY(-7px); } }
@media (max-width: 840px) { .room-grid { grid-template-columns: 1fr; }.home { padding-top: 54px; }.latest-heading { align-items: start; flex-direction: column; }.catalog-layout { grid-template-columns: 1fr; }.genre-sidebar { position: static; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; border-top: 0; }.genre-sidebar > p { display: none; }.genre-sidebar button { width: auto; flex: 0 0 auto; border: 1px solid var(--ink); padding: 8px 10px; }.poster-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }.room-grid { height: auto; min-height: 0; }.video-stack { grid-template-rows: repeat(2, minmax(220px, 42svh)); }.text-chat { min-height: 420px; } }
@media (max-width: 560px) { .view, .topbar { width: min(100% - 24px, 1220px); }.topbar { min-height: 62px; }.topbar-right { font-size: .62rem; }.home { padding-top: 40px; } h1 { font-size: clamp(3.6rem, 19vw, 5.5rem); }.match-row, .composer { grid-template-columns: 1fr; }.movie-search input { border-right: 1px solid var(--ink); }.match-row button { border-left: 1px solid var(--ink); border-top: 0; }.poster-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }.room-top { align-items: flex-start; flex-direction: column; }.room-controls { width: 100%; }.leave { margin-left: auto; }.message { max-width: 92%; } }
