:root {
  --navy: #0b1f3a;
  --red: #b22234;
  --blue: #3c3b6e;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --ink: #14213d;
  --border: #d9d9d4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Garamond, Baskerville, "Baskerville Old Face", "Times New Roman", Times, serif;
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.5;
}

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  border-bottom: 6px solid var(--red);
}

.hero-compact {
  padding: 1.75rem 1.25rem;
}

.hero-logo {
  display: block;
  width: 55%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #cfd6e6;
  margin: 0 0 0.5rem;
}

.hero h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  font-size: 1.25rem;
  color: var(--blue);
  margin: 0 0 1.25rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--red);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
}

.timeline-time {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.timeline-label {
  display: block;
  color: var(--ink);
}

.timeline-loading {
  color: #888;
  font-style: italic;
}

/* Map */
.map-container {
  border-radius: 8px;
  overflow: hidden;
}

.mapbox-map {
  width: 100%;
  height: 320px;
  border: 2px solid var(--navy);
  border-radius: 8px;
}

.map-placeholder {
  border: 2px dashed var(--blue);
  border-radius: 8px;
  padding: 3rem 1rem;
  text-align: center;
  color: #555;
  background: #fff;
}

.mapboxgl-popup-content {
  font-family: inherit;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
}

.map-popup-label {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Tonight's Lineup preview */
.lineup-grid {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.lineup-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-style: italic;
}

.lineup-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.lineup-item.is-live {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(178, 34, 36, 0.25);
}

.lineup-image-wrap {
  aspect-ratio: 1 / 1;
  background: var(--off-white);
}

.lineup-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lineup-name {
  display: block;
  padding: 0.5rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.lineup-badge {
  display: block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0.2rem 0;
}

.lineup-full-link {
  display: block;
  text-align: center;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

/* Thank you message */
.thank-you-message {
  text-align: center;
  font-style: italic;
  color: var(--blue);
  font-size: 1.05rem;
  max-width: 30em;
  margin: 0 auto;
}

/* Live card (used on the full-screen /live page) */
.live-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px;
  overflow: hidden;
}

.live-placeholder {
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 600;
}

.live-content {
  display: flex;
  flex-direction: column;
}

.live-content img {
  width: 100%;
  height: auto;
  display: block;
}

.live-details {
  padding: 1.25rem;
}

.live-label {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 700;
}

.live-details h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1.3rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #777;
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .live-content {
    flex-direction: row;
  }

  .live-content img {
    width: 45%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-logo {
    max-width: 280px;
  }

  .lineup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Full-screen live page */
.back-link {
  display: inline-block;
  margin: 1rem 1.25rem 0;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.live-full {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
}

.live-card-full {
  width: 100%;
}

.live-card-full .live-placeholder {
  padding: 4rem 1.25rem;
  font-size: 1.4rem;
}

.live-card-full .live-content {
  flex-direction: column;
}

.live-card-full .live-content img {
  height: 55vh;
  object-fit: cover;
}

.live-card-full .live-details {
  padding: 1.75rem;
  text-align: center;
}

.live-card-full .live-details h3 {
  font-size: 2rem;
}

/* Admin page */
.admin-main {
  max-width: 480px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.login-form label {
  font-weight: 600;
}

.login-form input {
  padding: 0.65rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.login-form button,
.item-list button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.login-form button:hover,
.item-list button:hover {
  background: var(--blue);
}

.error-text {
  color: var(--red);
  font-weight: 600;
  margin: 0;
}

.admin-hint {
  color: #555;
}

.pause-button {
  display: block;
  width: 100%;
  background: var(--white);
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 1rem;
}

.pause-button:hover {
  background: var(--red);
  color: var(--white);
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item-list button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.item-list button.is-live {
  background: var(--red);
}

.item-list .item-name {
  font-weight: 700;
  display: block;
}

.item-list .live-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.set-status {
  min-height: 1.25rem;
  color: var(--blue);
  font-weight: 600;
}
