:root {
  --moss: #18221a;
  --moss-2: #222f23;
  --stone: #3b403a;
  --line: #4d5a49;
  --maroon: #4a0c10;
  --red: #c4161c;
  --cream: #f1e6d3;
  --dim: #b5ab98;
}

* { box-sizing: border-box; }

html { background: var(--moss); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--moss);
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px max(16px, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(90deg, rgba(14, 20, 15, 0.92) 0%, rgba(14, 20, 15, 0.55) 55%, rgba(14, 20, 15, 0.25) 100%),
    url("assets/banner.webp") center / cover;
  border-bottom: 3px solid var(--maroon);
}

.logo {
  width: 72px;
  height: 72px;
  flex: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.names { flex: 1; min-width: 0; }

h1 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

#spot {
  margin: 2px 0 0;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.off { background: rgba(0, 0, 0, 0.45); color: var(--dim); }
.badge.live { background: var(--red); color: #fff; }
.badge.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #fff;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(14, 20, 15, 0.7), rgba(14, 20, 15, 0.85)),
    url("assets/banner.webp") center / cover;
}
.offline p { margin: 0; padding: 16px; font-size: 1.2rem; }
.offline span { color: var(--dim); font-size: 0.95rem; }
.offline[hidden] { display: none; }

.unmute {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--maroon);
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.unmute:hover { background: var(--red); }

.below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--dim);
  font-weight: 600;
}

.info, .map {
  padding: 16px;
  background: var(--moss-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.info a, .map a { color: #ff6b6f; }

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.map-head a { font-size: 0.9rem; }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--stone);
  border-radius: 4px;
  overflow: hidden;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  pointer-events: none;
}
.marker path { fill: rgba(196, 22, 28, 0.35); stroke: var(--red); stroke-width: 1.5; }
.marker circle { fill: var(--red); stroke: var(--cream); stroke-width: 2; }
.marker[hidden] { display: none; }

.nomap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--dim);
}
.nomap[hidden] { display: none; }

@media (max-width: 800px) {
  .below { grid-template-columns: 1fr; }
  .logo { width: 52px; height: 52px; }
  h1 { font-size: 1.3rem; }
}
