* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0c0c0e;
  --surface: #17171a;
  --gold: #d4a24c;
  --text: #f0ede4;
  --muted: #8c8980;
  --error: #c1554d;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 80px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 40px;
}
form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 48px;
}
input[type="text"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid #2a2a2e;
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
input[type="text"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
/* Hide arrows in search bar on Chrome, Safari, Edge, Opera */
input[type="text"]::-webkit-outer-spin-button,
input[type="text"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Hide arrows in search bar on Firefox */
input[type="text"] {
  -moz-appearance: textfield;
}
button {
  background: var(--gold);
  color: #1a1408;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
button:hover {
  filter: brightness(1.08);
}
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: -24px 0 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a2a2e;
}
.movie-list {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  margin-bottom: 32px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
.movie-list.visible {
  display: flex;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #222226;
  transition: background 0.12s ease;
}
.result-item:last-child {
  border-bottom: none;
}
.result-item:hover,
.result-item:focus-visible {
  background: #1f1f23;
}
.result-thumb {
  width: 32px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: #222;
  min-width: 32px;
}
.result-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.result-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-year {
  font-size: 12px;
  color: var(--muted);
}

form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 48px;
}
input[type="number"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid #2a2a2e;
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
input[type="number"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
/* Hide arrows in search bar on Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Hide arrows in search bar on Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
button {
  background: var(--gold);
  color: #1a1408;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
button:hover {
  filter: brightness(1.08);
}
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Ticket stub */
.ticket {
  display: none;
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.ticket.visible {
  display: block;
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.ticket::before { left: -14px; }
.ticket::after { right: -14px; }

.ticket-main {
  display: flex;
  gap: 24px;
  padding: 28px;
}
.poster {
  width: 140px;
  min-width: 140px;
  height: 210px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
}
.info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.movie-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.tagline {
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
  margin-top: 6px;
}
.score-ring {
  --pct: 0%;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--pct), #2a2a2e var(--pct));
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring-inner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill {
  background: #222226;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
}
.overview {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #cfccc3;
}

.perforation {
  border-top: 1px dashed #2a2a2e;
  margin: 0 28px;
}
.ticket-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-msg {
  color: var(--muted);
  font-size: 14px;
  margin-top: -16px;
  margin-bottom: 32px;
}
.status-msg.error {
  color: var(--error);
}

.back-link {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.back-link:hover {
  color: var(--text);
}