* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #14090d;
  color: #f3e9dc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theater {
  width: min(960px, 94vw);
  text-align: center;
  padding: 2rem 0;
}

header h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  color: #e8c66b;
}

.panel {
  background: #241017;
  border: 1px solid #4a2230;
  border-radius: 12px;
  padding: 3rem 2rem;
}

#lobby-status {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.countdown {
  margin-bottom: 1.5rem;
}

#countdown-value {
  display: block;
  font-size: 3.5rem;
  font-variant-numeric: tabular-nums;
  color: #e8c66b;
}

.countdown-label {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b89b8f;
}

.muted {
  color: #b89b8f;
  font-size: 0.9rem;
  margin-top: 1rem;
}

button {
  font: inherit;
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  border: 1px solid #e8c66b;
  background: transparent;
  color: #e8c66b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button:hover {
  background: #e8c66b;
  color: #14090d;
}

#screen {
  width: 100%;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 60px rgba(232, 198, 107, 0.15);
}

#sync-status {
  min-height: 1.2em;
}

.notice {
  color: #e89b6b;
  margin-bottom: 1rem;
}

footer {
  margin-top: 1.5rem;
}

footer a,
.muted a,
header a {
  color: #b89b8f;
}

/* --- Admin page --- */

#theater.admin {
  text-align: left;
}

.admin header {
  text-align: center;
}

.admin .panel {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.admin h2 {
  font-weight: normal;
  color: #e8c66b;
  margin-bottom: 1rem;
}

.admin label {
  display: block;
  margin-bottom: 1rem;
  color: #b89b8f;
  font-size: 0.95rem;
}

.admin input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: #f3e9dc;
  background: #14090d;
  border: 1px solid #4a2230;
  border-radius: 8px;
}

.admin input:focus {
  outline: none;
  border-color: #e8c66b;
}

.admin input::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

#form-status {
  margin-top: 0.75rem;
}

.show-list {
  list-style: none;
}

.show-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #3a1a26;
}

.show-list li:last-child {
  border-bottom: none;
}

.show-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.show-info .muted {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b89b8f;
  border: 1px solid #4a2230;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.6rem;
  vertical-align: middle;
}

.delete-btn {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-color: #8a4a5a;
  color: #d8a0ae;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: #8a4a5a;
  color: #f3e9dc;
}
