/* REPLAY: the map fills the view like MAP, with the playback bar along the bottom and "what flew over?" on the right. */
#replay-v {
  position: relative;
  height: calc(100vh - 100px - var(--header-extra));
  /* The height actually visible on a phone: 100vh counts the address bar too. */
  height: calc(100dvh - 100px - var(--header-extra));
  width: 100%;
  padding-bottom: 0;
}

.replay-root {
  position: relative;
  height: 100%;
}

#replay-map {
  height: 100%;
  width: 100%;
  background: var(--c-black);
}

.replay-bar,
.replay-overhead {
  position: absolute;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--c-cyan);
  border-radius: 4px;
  color: var(--c-white);
  font-family: var(--font-mono);
}

.replay-bar {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.replay-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.replay-input {
  background: var(--c-black);
  color: var(--c-cyan-bright);
  border: 1px solid var(--c-grey-333);
  font-family: monospace;
  font-size: 0.75rem;
  padding: 5px 6px;
  border-radius: 3px;
  outline: none;
  color-scheme: dark;
}

.replay-btn {
  background: var(--c-black);
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 5px 9px;
  border-radius: 3px;
  cursor: pointer;
}

.replay-btn.active {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-black);
}

.replay-play {
  font-size: 0.9rem;
  min-width: 42px;
}

.replay-clock {
  color: var(--c-amber);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.replay-count,
.replay-status,
.replay-note {
  color: var(--c-grey-aaa);
  font-size: 0.7rem;
  margin: 0;
}

.replay-status:empty {
  display: none;
}

.replay-slider {
  width: 100%;
  accent-color: var(--c-amber);
}

.replay-overhead {
  top: 10px;
  right: 10px;
  width: min(330px, calc(100% - 70px));
  max-height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--c-amber);
}

.replay-panel-toggle {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--c-grey-222);
  color: var(--c-amber);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.replay-panel-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.replay-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.replay-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: var(--c-grey-0a0a0a);
  border: 1px solid var(--c-grey-222);
  border-left: 3px solid var(--c-amber);
  color: var(--c-white);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 6px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.replay-result span {
  color: var(--c-grey-aaa);
  font-size: 0.65rem;
}

@media (max-width: 768px) {
  .replay-overhead {
    left: 10px;
    width: auto;
    max-height: 45%;
  }
}
