:root {
  --red: #eb0000;
  --red-dark: #b90000;
  --red-soft: #ffe8e6;
  --ink: #181510;
  --ink-soft: #4c463e;
  --muted: #7d766c;
  --line: #e5ded3;
  --paper: #f7f3ec;
  --paper-2: #efe8dd;
  --card: #fffdf9;
  --white: #fff;
  --green: #26734d;
  --orange: #e99512;
  --blue: #1d6fe0;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 22px 60px rgba(45, 32, 18, .12);
  --shadow-soft: 0 10px 30px rgba(45, 32, 18, .07);
  --header-h: 72px;
  --nav-h: 68px;
  --player-h: 100px;
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -10%, #fff0e1 0, transparent 62%),
    radial-gradient(900px 520px at -10% 8%, #fff9f0 0, transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  cursor: progress;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--red);
  color: var(--white);
}

img {
  max-width: 100%;
}

button,
input,
a {
  font-family: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(235, 0, 0, .35);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.04em;
  line-height: 1.08;
  font-weight: 750;
}

h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  line-height: .95;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

a {
  color: inherit;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
  vertical-align: -.16em;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- shared ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(235, 0, 0, .12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(235, 0, 0, .22);
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 14px 30px rgba(235, 0, 0, .28);
}

.button-ghost {
  background: rgba(255, 253, 249, .7);
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--white);
  border-color: #cfc5b8;
}

.button-large {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 1rem;
}

.button-small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: .82rem;
}

.icon-only {
  width: 46px;
  min-width: 46px;
  padding: 0;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-badge {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fine-print {
  margin-top: 12px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.round-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.round-button:hover {
  background: var(--paper-2);
  border-color: #cfc5b8;
  transform: translateY(-1px);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: var(--header-h);
  padding: 10px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(90, 74, 55, .12);
  background: rgba(247, 243, 236, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 27px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: -.03em;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 560;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 4px;
}

/* ---------- views ---------- */

main {
  min-height: 50vh;
}

.view {
  animation: view-in .36s ease both;
}

.view-home,
.view-stations,
.view-info {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 90px;
}

.view-map {
  padding: 0;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- home hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(18px, 4vw, 38px) 0 clamp(34px, 5vw, 58px);
}

.hero-copy h1 {
  margin: 16px 0 20px;
}

.hero-copy h1 em {
  color: var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.055em;
}

.lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 42px);
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats dt {
  font-size: 1.55rem;
  font-weight: 780;
  letter-spacing: -.04em;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
}

.hero-map-card {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transition: transform .4s ease, box-shadow .4s ease;
}

.hero-map-card:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 28px 70px rgba(45, 32, 18, .15);
}

.hero-map-card > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  filter: saturate(.92) contrast(1.02);
}

.hero-map-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(235, 0, 0, 0) 55%, rgba(235, 0, 0, .1) 100%);
  pointer-events: none;
}

.hero-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .64rem;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

.hero-pin-start {
  top: 38%;
  left: 10.6%;
  background: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  box-shadow: 0 0 0 5px rgba(235, 0, 0, .18), 0 3px 12px rgba(0, 0, 0, .2);
}

.hero-map-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
  backdrop-filter: blur(8px);
}

.hero-map-label span {
  color: var(--red);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-map-label strong {
  margin-top: 1px;
  font-size: .84rem;
}

.hero-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: .74rem;
  text-align: center;
}

/* ---------- home panels ---------- */

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 clamp(34px, 5vw, 54px);
}

.home-grid.is-single {
  grid-template-columns: 1fr;
}

.continue-panel {
  border-color: var(--ink);
  background:
    radial-gradient(500px 240px at 100% 0, rgba(235, 0, 0, .2), transparent 60%),
    var(--ink);
  color: var(--white);
}

.continue-panel .eyebrow {
  color: rgba(255, 255, 255, .58);
}

.continue-panel .panel-badge {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
}

.continue-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.continue-panel p {
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
}

.continue-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.continue-panel .text-button {
  color: rgba(255, 255, 255, .8);
}

.start-panel p {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: .93rem;
}

.start-end-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.mini-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mini-stop:hover {
  border-color: #cfc5b8;
  background: var(--white);
  transform: translateY(-1px);
}

.mini-stop > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-stop strong {
  font-size: .84rem;
}

.mini-stop small {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-stop-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
}

.mini-end .mini-stop-num {
  background: var(--orange);
}

.start-end-line {
  flex: 1;
  height: 1px;
  min-width: 14px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px);
}

/* ---------- sections ---------- */

.section-block {
  margin: clamp(34px, 5vw, 58px) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 4px;
}

.route-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #cfc5b8 transparent;
}

.route-strip::-webkit-scrollbar {
  height: 6px;
}

.route-strip::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #cfc5b8;
}

.route-chip {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-width: 152px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.route-chip:hover {
  border-color: #cfc5b8;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.route-chip.is-start .route-chip-num {
  background: var(--ink);
}

.route-chip.is-end .route-chip-num {
  background: var(--orange);
}

.route-chip.is-heard {
  background: #f2f8f3;
  border-color: #cfe4d5;
}

.route-chip-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .76rem;
  font-weight: 800;
}

.route-chip-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.route-chip-copy strong {
  overflow: hidden;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-chip-copy small {
  color: var(--muted);
  font-size: .65rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(247, 243, 236, .7)),
    var(--card);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.featured-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 0, 0, .1), transparent 68%);
  pointer-events: none;
}

.featured-card:hover {
  border-color: #d2c7b9;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.featured-card:nth-child(2n)::after {
  background: radial-gradient(circle, rgba(233, 149, 18, .14), transparent 68%);
}

.featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.featured-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(235, 0, 0, .2);
}

.featured-card.is-end .featured-num {
  background: var(--orange);
  box-shadow: 0 6px 16px rgba(233, 149, 18, .22);
}

.featured-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
}

.featured-copy {
  margin-top: auto;
  padding-top: 24px;
}

.featured-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.featured-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
}

.map-teaser {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 30px;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(235, 0, 0, .22), transparent 60%),
    var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.map-teaser-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.map-teaser-copy .eyebrow {
  color: rgba(255, 255, 255, .56);
}

.map-teaser-copy h2 {
  max-width: 14ch;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.map-teaser-copy p {
  max-width: 44ch;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
}

.map-teaser-art {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 34px 34px,
    rgba(255, 255, 255, .03);
}

.map-teaser-art::before,
.map-teaser-art::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(235, 0, 0, .55);
  border-radius: 40% 60% 55% 45%;
  transform: rotate(-18deg);
}

.map-teaser-art::before {
  inset: 18% 12% 24% 16%;
}

.map-teaser-art::after {
  inset: 34% 28% 12% 36%;
  border-color: rgba(255, 255, 255, .18);
}

.teaser-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
}

.teaser-pin-1 { top: 18%; left: 24%; }
.teaser-pin-2 { top: 56%; left: 62%; }
.teaser-pin-3 { top: 30%; left: 74%; }
.teaser-pin-4 { top: 68%; left: 32%; background: var(--orange); }

/* ---------- map view ---------- */

.map-shell {
  position: relative;
  height: calc(100dvh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
  background: #e7e2d9;
}

.osm-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-topbar {
  position: absolute;
  z-index: 600;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.map-topbar > div:first-child {
  padding: 10px 16px;
  border: 1px solid rgba(90, 74, 55, .12);
  border-radius: 18px;
  background: rgba(255, 253, 249, .93);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.map-topbar .eyebrow {
  font-size: .6rem;
}

.map-topbar h2 {
  margin-top: 2px;
  font-size: 1.15rem;
}

.map-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(90, 74, 55, .14);
  border-radius: 999px;
  background: rgba(255, 253, 249, .94);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 650;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.chip-button:hover,
.chip-button[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
}

.chip-button .icon {
  width: 1rem;
  height: 1rem;
}

.map-hint {
  position: absolute;
  z-index: 550;
  top: 92px;
  left: 50%;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(24, 21, 16, .82);
  color: rgba(255, 255, 255, .86);
  font-size: .72rem;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.offline-banner {
  position: absolute;
  z-index: 560;
  top: 90px;
  right: 16px;
  left: 16px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
  box-shadow: var(--shadow-soft);
}

.map-legend {
  position: absolute;
  z-index: 550;
  bottom: calc(var(--nav-h) + 14px);
  left: 16px;
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(90, 74, 55, .12);
  border-radius: 999px;
  background: rgba(255, 253, 249, .92);
  color: var(--ink-soft);
  font-size: .68rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-pin {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .5rem;
  font-style: normal;
  font-weight: 800;
}

.legend-start { background: var(--ink); font-family: var(--serif); font-style: italic; }
.legend-end { background: var(--orange); }

.legend-credit {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .62rem;
  text-decoration: none;
}

.legend-credit:hover {
  color: var(--red);
}

/* Leaflet */

.leaflet-container {
  font-family: var(--font);
  background: #e7e2d9;
}

.leaflet-div-icon {
  border: 0;
  background: transparent;
}

.leaflet-marker-icon.pin-wrap {
  background: transparent;
  border: 0;
}

.pin {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
  transition: transform .16s ease, box-shadow .16s ease;
}

.pin:hover {
  transform: scale(1.1);
}

.pin.is-active {
  box-shadow: 0 0 0 5px rgba(235, 0, 0, .22), 0 5px 18px rgba(0, 0, 0, .26);
  transform: scale(1.08);
}

.pin-start {
  background: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.pin-end {
  background: var(--orange);
  font-size: .95rem;
}

.leaflet-tooltip.pin-tooltip {
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.leaflet-tooltip.pin-tooltip::before {
  border-top-color: var(--ink);
}

.leaflet-control-attribution {
  padding: 2px 6px !important;
  background: rgba(255, 253, 249, .82) !important;
  color: var(--ink-soft) !important;
  font-size: 9px !important;
  backdrop-filter: blur(5px);
}

.leaflet-control-attribution a {
  color: var(--ink-soft) !important;
}

.location-dot {
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(29, 111, 224, .18), 0 2px 8px rgba(0, 0, 0, .25);
}

/* scan map */

.scan-map {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(700px 400px at 80% 0, #fff4e8, transparent 65%),
    var(--paper);
}

.scan-toolbar {
  position: absolute;
  z-index: 8;
  top: 92px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scan-toolbar .round-button {
  box-shadow: var(--shadow-soft);
}

.scan-link {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .92);
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.scan-viewport {
  flex: 1;
  overflow: auto;
  padding: 96px 12px calc(var(--nav-h) + 30px);
  overscroll-behavior: contain;
}

.scan-stage {
  position: relative;
  width: 110%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: width .2s ease;
}

.scan-stage > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 19px;
}

.scan-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .76rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, box-shadow .15s ease;
}

.scan-pin:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.scan-pin.is-active {
  box-shadow: 0 0 0 5px rgba(235, 0, 0, .2), 0 4px 14px rgba(0, 0, 0, .24);
}

.scan-pin.scan-start {
  background: var(--ink);
  font-family: var(--serif);
  font-style: italic;
}

.scan-pin.scan-end {
  background: var(--orange);
}

/* ---------- stations view ---------- */

.page-heading {
  max-width: 720px;
  margin: 8px 0 clamp(24px, 4vw, 38px);
}

.page-heading h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.page-heading p {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.station-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  max-width: 380px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
}

.search-field .icon {
  width: 1rem;
  height: 1rem;
}

.search-field input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .88rem;
}

.search-field input::placeholder {
  color: #a49b8e;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .6);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.filter-chip .icon {
  width: .95rem;
  height: .95rem;
}

.filter-chip:hover {
  border-color: #cfc5b8;
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.station-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.station-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.station-card:hover {
  border-color: #cfc5b8;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.station-card.is-special {
  grid-column: 1 / -1;
  background:
    linear-gradient(120deg, rgba(235, 0, 0, .05), transparent 60%),
    var(--card);
}

.station-card.is-end {
  background:
    linear-gradient(120deg, rgba(233, 149, 18, .09), transparent 60%),
    var(--card);
}

.station-card.is-heard {
  border-color: #cfe4d5;
}

.station-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px 4px 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.station-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
}

.station-card.is-special .station-num {
  background: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
}

.station-card.is-end .station-num {
  background: var(--orange);
  font-family: var(--font);
  font-style: normal;
  font-size: .9rem;
}

.station-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.station-copy strong {
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.heard-dot {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.heard-dot .icon {
  width: .65rem;
  height: .65rem;
}

.favorite-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  margin: 4px 4px 4px 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #b2a99b;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.favorite-button .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.favorite-button:hover {
  background: var(--paper-2);
  color: var(--red);
}

.favorite-button.is-favorite {
  color: var(--red);
}

.empty-state {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- info view ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-panel h2 {
  margin-bottom: 12px;
  font-size: 1.42rem;
}

.info-panel p {
  color: var(--ink-soft);
  font-size: .9rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 12px;
}

.steps li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: .88rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.offline-panel .progress-track {
  margin: 16px 0;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width .2s ease;
}

.offline-panel .button {
  margin-top: 4px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 40px) calc(var(--nav-h) + 32px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

body[data-view="map"] .site-footer {
  display: none;
}

/* ---------- bottom nav ---------- */

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 6px 10px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(90, 74, 55, .12);
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.bottom-nav a .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.bottom-nav a.is-active {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------- station sheet ---------- */

.station-sheet {
  position: fixed;
  z-index: 1100;
  right: 12px;
  bottom: calc(var(--nav-h) + 14px);
  left: 12px;
  width: auto;
  max-height: calc(100dvh - var(--header-h) - var(--nav-h) - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(35, 24, 12, .28);
  animation: sheet-in .28s ease both;
  overscroll-behavior: contain;
}

body.has-player .station-sheet {
  bottom: calc(var(--nav-h) + var(--player-h) + 16px);
  max-height: calc(100dvh - var(--header-h) - var(--nav-h) - var(--player-h) - 34px);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-grab {
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--line);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(8px);
}

.sheet-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 138px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 19px;
  background:
    radial-gradient(320px 180px at 80% 20%, rgba(255, 255, 255, .2), transparent 65%),
    linear-gradient(135deg, var(--red), #9b0000);
  color: var(--white);
}

.sheet-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 28px 28px;
  opacity: .55;
}

.sheet-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .3));
  pointer-events: none;
}

.sheet-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-media.is-start {
  background: linear-gradient(135deg, #2a251d, #181510);
}

.sheet-media.is-end {
  background: linear-gradient(135deg, var(--orange), #b46c00);
}

.sheet-media-num {
  position: relative;
  z-index: 3;
  padding: 0 0 14px 18px;
  font-size: 4.4rem;
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .8;
  opacity: .96;
}

.sheet-media-word {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, .72);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sheet-content {
  padding: 16px 20px 22px;
}

.sheet-content h2 {
  margin: 5px 0 4px;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.sheet-subtitle {
  color: var(--muted);
  font-size: .84rem;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.sheet-actions .button-primary {
  flex: 1;
}

.sheet-actions .icon-only {
  width: 46px;
}

.sheet-actions .icon-only.is-favorite {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

.parts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.part-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.part-button:hover {
  border-color: #cfc5b8;
  background: var(--white);
}

.part-button.is-active {
  border-color: var(--red);
  background: var(--red-soft);
}

.part-button .part-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.part-button .part-play .icon {
  width: .8rem;
  height: .8rem;
}

.part-button > span:nth-child(2) {
  flex: 1;
  font-size: .78rem;
  font-weight: 600;
}

.part-button small {
  color: var(--muted);
  font-size: .7rem;
}

.sheet-text {
  color: var(--ink-soft);
  font-size: .86rem;
}

.sheet-text.is-placeholder {
  color: var(--muted);
  font-style: italic;
}

.sheet-next {
  margin-top: 16px;
}

/* ---------- player ---------- */

.player {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  left: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(500px 220px at 90% 0, rgba(235, 0, 0, .2), transparent 65%),
    rgba(24, 21, 16, .98);
  color: var(--white);
  box-shadow: 0 -14px 40px rgba(25, 18, 10, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: player-in .26s ease both;
}

@keyframes player-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .58);
}

.player-progress-row input[type="range"] {
  flex: 1;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 var(--progress, 0%), rgba(255, 255, 255, .2) var(--progress, 0%) 100%);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.player-progress-row input[type="range"]::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
  appearance: none;
  -webkit-appearance: none;
}

.player-progress-row input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
}

.player-main {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
}

.player-cover {
  display: grid;
  flex: none;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.player-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.player-kicker {
  overflow: hidden;
  color: rgba(255, 255, 255, .52);
  font-size: .6rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-title {
  overflow: hidden;
  font-size: .86rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.skip-button {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: .62rem;
  font-weight: 700;
  cursor: pointer;
}

.skip-button:hover {
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}

.player-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(235, 0, 0, .3);
}

.player-toggle .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.player-toggle:hover {
  background: var(--red-dark);
}

.player-extras {
  display: flex;
  align-items: center;
  gap: 4px;
}

.speed-button {
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: .62rem;
  font-weight: 700;
  cursor: pointer;
}

.speed-button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, .3);
}

.player-close {
  width: 32px;
  height: 32px;
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, .5);
}

.player-close:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.player-close .icon {
  width: 1rem;
  height: 1rem;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 1300;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  max-width: min(430px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(24, 21, 16, .94);
  color: var(--white);
  font-size: .78rem;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

body.has-player .toast {
  bottom: calc(var(--nav-h) + var(--player-h) + 18px);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    max-width: 720px;
  }

  .home-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .station-list {
    grid-template-columns: 1fr;
  }

  .map-teaser {
    grid-template-columns: 1fr;
  }

  .map-teaser-art {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --nav-h: 64px;
  }

  .brand-logo {
    height: 23px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats dt {
    font-size: 1.3rem;
  }

  .hero-map-card {
    transform: none;
  }

  .hero-map-label {
    bottom: 18px;
    left: 18px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 150px;
  }

  .map-teaser {
    padding: 24px;
  }

  .map-teaser-copy h2 {
    font-size: 2.1rem;
  }

  .map-topbar {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .map-topbar > div:first-child {
    padding: 8px 12px;
  }

  .map-topbar h2 {
    font-size: 1rem;
  }

  .chip-button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: .72rem;
  }

  .pin {
    font-size: .72rem;
  }

  .pin-start {
    font-size: .9rem;
  }

  .pin-end {
    font-size: .82rem;
  }

  .map-hint {
    top: 82px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .offline-banner {
    top: 78px;
  }

  .map-legend {
    bottom: calc(var(--nav-h) + 10px);
    left: 10px;
    gap: 9px;
    padding: 7px 10px;
  }

  .scan-viewport {
    padding-top: 82px;
  }

  .scan-toolbar {
    top: 80px;
    right: 10px;
  }

  .scan-stage {
    width: 150%;
  }

  .station-tools {
    align-items: stretch;
  }

  .search-field {
    max-width: none;
  }

  .filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .filter-chip {
    flex: none;
  }

  .station-sheet {
    right: 8px;
    left: 8px;
    border-radius: 24px;
  }

  .sheet-media {
    height: 112px;
  }

  .sheet-media-num {
    font-size: 3.5rem;
  }

  .sheet-content {
    padding: 14px 16px 20px;
  }

  .player {
    padding: 7px 10px 9px;
  }

  .player-main {
    gap: 8px;
  }

  .skip-button {
    display: none;
  }

  .player-cover {
    width: 38px;
    height: 38px;
  }

  .player-controls {
    gap: 0;
  }

  .player-toggle {
    width: 44px;
    height: 44px;
  }

  .site-footer {
    padding-bottom: calc(var(--nav-h) + 26px);
  }
}

@media (max-width: 899px) {
  .view-home,
  .view-stations,
  .view-info {
    padding-bottom: calc(var(--nav-h) + 40px);
  }

  body.has-player .view-home,
  body.has-player .view-stations,
  body.has-player .view-info {
    padding-bottom: calc(var(--nav-h) + var(--player-h) + 44px);
  }

  .site-footer {
    padding-bottom: calc(var(--nav-h) + 30px);
  }

  body.has-player .site-footer {
    padding-bottom: calc(var(--nav-h) + var(--player-h) + 30px);
  }
}

@media (min-width: 900px) {
  .bottom-nav {
    display: none;
  }

  .player {
    right: max(16px, calc((100vw - 1060px) / 2));
    bottom: 16px;
    left: max(16px, calc((100vw - 1060px) / 2));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(25, 18, 10, .3);
  }

  .station-sheet {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 408px;
    max-height: calc(100dvh - var(--header-h) - 48px);
  }

  body.has-player .station-sheet {
    bottom: calc(var(--player-h) + 34px);
    max-height: calc(100dvh - var(--header-h) - var(--player-h) - 52px);
  }

  .map-legend {
    bottom: 20px;
  }

  .toast {
    bottom: 120px;
  }

  body.has-player .toast {
    bottom: 128px;
  }

  .site-footer {
    padding-bottom: 130px;
  }

  .view-home,
  .view-stations,
  .view-info {
    padding-bottom: 140px;
  }

  body.has-player .view-home,
  body.has-player .view-stations,
  body.has-player .view-info {
    padding-bottom: 220px;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
