:root {
  --bg: #07070c;
  --accent: #f5c451;
  --seat: #3a0d14;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1a1526 0%, var(--bg) 60%);
  color: #eee;
  font-family: system-ui, sans-serif;
}
header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 2rem; }
.marquee {
  font: 700 1.5rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(245, 196, 81, 0.6);
}
.marquee small { display: block; margin-top: 0.5rem; font-size: 0.65rem; letter-spacing: 0.3em; color: #aaa; text-shadow: none; }
.you { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #bbb; }
.you input { width: 11rem; padding: 0.45rem 0.6rem; background: #14141c; border: 1px solid #333; border-radius: 4px; color: #fff; }
.theater { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 3.5rem 2.5rem; overflow: hidden; }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 3rem;
  background: repeating-linear-gradient(90deg, #8e1426 0 8px, #5b0b18 8px 16px);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
}
.curtain.left { left: 0; }
.curtain.right { right: 0; }
.screen {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 6px solid #111;
  border-radius: 4px;
  box-shadow: 0 0 70px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.8);
}
.screen video { display: block; width: 100%; height: 100%; }
.status { min-height: 1.2em; margin: 1rem 0 0.5rem; text-align: center; font-size: 0.9rem; color: #bbb; }
.filmstrip {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  padding: 6px;
  background: #111;
  border-top: 4px dashed #333;
  border-bottom: 4px dashed #333;
  border-radius: 4px;
}
.frame {
  position: relative; overflow: hidden;
  height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #222; border-radius: 2px;
  font-size: 0.6rem; color: #777;
}
.frame .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); opacity: 0.85; }
.frame span { position: relative; }
.frame.have { background: var(--accent); color: #000; }
.frame.loading { color: #000; }
.seats { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2.5rem; }
.row { display: flex; justify-content: center; gap: 0.5rem; }
.row:nth-child(1) { transform: scale(0.82); }
.row:nth-child(2) { transform: scale(0.88); }
.row:nth-child(3) { transform: scale(0.94); }
.seat {
  width: 46px; height: 34px;
  background: linear-gradient(#5a1622, var(--seat));
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 0 -6px 0 #240508, 0 4px 8px rgba(0, 0, 0, 0.6);
}
.viewers { margin-top: 1.25rem; text-align: center; font-size: 0.85rem; color: #888; }
.cursors { position: absolute; inset: 0; pointer-events: none; }
.cursor { position: absolute; transition: left 60ms linear, top 60ms linear; }
.cursor svg { display: block; width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.cursor .tag {
  position: absolute; left: 14px; top: 16px;
  padding: 2px 7px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; color: #000; white-space: nowrap;
}
details { max-width: 1100px; margin: 0 auto 2rem; padding: 0 3.5rem; color: #888; font-size: 0.85rem; }
pre { max-height: 200px; overflow: auto; padding: 1rem; background: #0f0f15; border-radius: 4px; font-size: 0.75rem; color: #aaa; }
details button { padding: 0.4rem 0.8rem; background: #222; color: #ccc; border: 1px solid #444; border-radius: 4px; }
