:root {
  color-scheme: dark;
  --bg: #0b1825;
  --surface: #18232f;
  --ink: #f2f6f8;
  --muted: #98aaba;
  --accent: #66d6a5;
  --line: #ffffff15;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px system-ui,
    -apple-system,
    sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.listener {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-area {
  position: relative;
  flex: 1;
  min-height: 0;
}
.map-area iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.listen-top {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 4px #000;
}
.listen-top a {
  font-weight: 600;
  font-size: 15px;
}
.listen-top button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  border-radius: 24px;
  background: #132431c9;
  padding: 10px;
}
.map-actions {
  position: absolute;
  right: 12px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-actions button {
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  filter: drop-shadow(0 1px 3px #000);
}
.map-actions svg {
  width: 30px;
  height: 30px;
}
.map-actions small {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.previous {
  position: absolute;
  bottom: 18px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1b2e40c9;
  display: grid;
  place-items: center;
}
.playback-notice {
  position: absolute;
  bottom: 70px;
  left: 12px;
  right: 85px;
  width: fit-content;
  max-width: 450px;
  background: #000a;
  border-radius: 6px;
  font-size: 12px;
  padding: 8px 10px;
  pointer-events: none;
}
.listen-bottom {
  position: relative;
  background: var(--surface);
  padding-bottom: env(safe-area-inset-bottom);
}
.place-panel {
  position: relative;
}
.place-heading {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  min-height: 78px;
  text-align: left;
}
.place-heading span,
.listen-player > div,
.station-list button span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.place-heading strong,
.listen-player strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
}
.place-heading small,
.listen-player small,
.station-list small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.station-list {
  overflow-y: auto;
  max-height: 280px;
  padding: 8px;
}
.place-panel > .station-list {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #18232ff5;
  backdrop-filter: blur(15px);
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--line);
}
.station-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-height: 64px;
  padding: 12px;
  border-radius: 12px;
}
.station-list strong {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.station-list .selected {
  background: #66d6a518;
  color: var(--accent);
}
.station-list p {
  padding: 12px;
  color: var(--muted);
}
.listen-player {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 8px 16px;
  min-height: 72px;
}
.listen-player > div {
  flex: 1;
}
.listen-player small {
  min-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listen-player button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.listen-player button[aria-pressed='true'] {
  color: var(--accent);
}
.listen-dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(480px, calc(100vw - 32px));
  padding: 20px;
}
.listen-dialog::backdrop {
  background: #0008;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dialog-heading h2 {
  font-size: 20px;
}
.dialog-heading button {
  width: 44px;
  height: 44px;
}
.listen-dialog p {
  font-size: 13px;
  color: var(--muted);
}
.timer-options {
  display: flex;
  flex-direction: column;
}
.timer-options button {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spinner {
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
@media (min-width: 800px) {
  .listen-bottom {
    width: 100%;
    padding-left: max(0px, calc((100% - 740px) / 2));
    padding-right: max(0px, calc((100% - 740px) / 2));
  }
  .map-actions {
    right: 24px;
  }
  .listen-top {
    left: 24px;
    right: 24px;
  }
}

.place-dismiss {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  cursor: default;
}
