:root {
  --ink: #0a0b09;
  --panel: rgba(12, 13, 10, 0.72);
  --rule: rgba(232, 223, 208, 0.14);
  --amber: #d7a44a;
  --paper: #efe6d6;
  --mist: #9a9386;
  --live: #c45c3e;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  cursor: default;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #070806;
}

#player,
.stage-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #070806;
}

.stage-video {
  opacity: 0;
  pointer-events: none;
}

.stage-video.is-active {
  opacity: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 18%, transparent 70%, rgba(0, 0, 0, 0.52) 100%);
}

.grain,
.scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.grain {
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scan {
  opacity: 0.08;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.55) 2px 3px
  );
}

.chrome {
  position: absolute;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 28px 36px;
  transition: opacity 0.45s ease;
}

.chrome.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  align-items: center;
}

.bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.mark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--live);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(196, 92, 62, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

.live.is-hold {
  color: var(--mist);
}

.live.is-hold i {
  background: var(--mist);
  animation: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.actions,
.nav {
  display: flex;
  gap: 10px;
}

.actions {
  gap: 18px;
}

.ghost,
.solid {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--paper);
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  cursor: pointer;
}

.ghost:hover,
.solid:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  border: 0;
}

.icon-btn svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn .icon-muted,
.icon-btn .icon-compress,
.icon-btn.is-muted .icon-sound,
.icon-btn.is-full .icon-expand {
  display: none;
}

.icon-btn.is-muted .icon-muted,
.icon-btn.is-full .icon-compress {
  display: block;
}

.icon-btn.is-na {
  opacity: 0.38;
  cursor: default;
}

.icon-btn.is-na:hover {
  color: inherit;
}

.icon-btn .mark-dot {
  fill: currentColor;
  stroke: none;
}

.solid {
  background: var(--amber);
  color: #1a1408;
  border-color: var(--amber);
}

.status {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 28rem;
  text-align: center;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

.status.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.place h1 {
  margin: 0.48em 0 0.15em;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.kicker,
.where,
.credit,
.eta {
  margin: 0;
}

.kicker,
.credit,
.eta {
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.where {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--paper);
}

.credit {
  margin-top: 10px;
}

.clock {
  text-align: right;
  min-width: 9rem;
}

.eta {
  margin: 8px 0 14px;
}

.nav {
  justify-content: flex-end;
}

body.is-watching .chrome {
  opacity: 0;
  pointer-events: none;
}

body.is-watching:hover .chrome,
body.is-atlas .chrome.top {
  opacity: 1;
  pointer-events: auto;
}

body.is-atlas .chrome.bottom {
  opacity: 0;
  pointer-events: none;
}

.atlas {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: #0c100f;
}

.atlas[hidden] {
  display: none;
}

#atlasMap {
  position: absolute;
  inset: 0;
  background: #0c100f;
}

.leaflet-container {
  background: #0c100f;
  font-family: var(--sans);
  cursor: default;
}

.leaflet-container .leaflet-interactive,
.leaflet-marker-icon,
.pin,
.pin-hit,
.pin-mark {
  cursor: default !important;
}

.leaflet-control-zoom {
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
}

.leaflet-control-zoom a {
  background: #141510 !important;
  color: var(--paper) !important;
  border-bottom-color: var(--rule) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
}

.pin,
.leaflet-div-icon.pin {
  background: none !important;
  border: 0 !important;
  overflow: visible !important;
}

.pin-hit {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 28px;
  height: 34px;
}

.pin-mark {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 50% 0;
  background: var(--amber);
  border: 1.5px solid var(--paper);
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pin.is-live .pin-mark {
  background: var(--live);
  border-color: #f0d0c8;
}

.pin.is-hover .pin-mark,
.pin:hover .pin-mark {
  transform: rotate(-45deg) scale(1.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.pin-preview {
  position: absolute;
  z-index: 900;
  width: 228px;
  overflow: hidden;
  background: rgba(12, 13, 10, 0.94);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.pin-preview.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pin-preview.is-below {
  transform: translate(-50%, 18px);
}

.pin-preview[hidden] {
  display: none;
}

.pin-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #070806;
}

.pin-preview-title,
.pin-preview-where {
  margin: 0;
  padding: 0 10px;
}

.pin-preview-title {
  padding-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

.pin-preview-where {
  padding-bottom: 9px;
  color: var(--mist);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .chrome {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .clock,
  .nav {
    text-align: left;
    justify-content: flex-start;
  }

  .place h1 {
    font-size: 2.4rem;
  }

  .actions {
    flex-wrap: wrap;
  }
}
