:root {
  color-scheme: dark;
  --bg: #07100f;
  --panel: rgba(7, 19, 18, 0.82);
  --panel-strong: rgba(5, 14, 14, 0.95);
  --line: rgba(204, 242, 229, 0.16);
  --text: #f4fbf8;
  --muted: #9aafa7;
  --green: #91f7a8;
  --green-strong: #38df76;
  --cyan: #b8ebff;
  --yellow: #f2cc67;
  --danger: #ff7b7b;
  --side-panel-width: min(340px, calc(100vw - 44px));
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
.shell,
#map {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shell[data-route="home"] {
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(145, 247, 168, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(184, 235, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #07100f 0%, #081513 56%, #060b0b 100%);
}

#map {
  position: absolute;
  inset: 0;
  background: #07110e;
}

.shell::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at center, transparent 0 46%, rgba(3, 10, 8, 0.18) 72%, rgba(3, 10, 8, 0.58) 100%),
    linear-gradient(180deg, rgba(2, 10, 8, 0.22), transparent 24%, transparent 72%, rgba(2, 10, 8, 0.48));
}

.shell[data-route="home"]::after {
  display: none;
}

.tab-page[hidden],
.home-page[hidden],
.explore-page[hidden] {
  display: none;
}

.home-page {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 24px 128px;
}

.home-header {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 64px;
}

.home-brand {
  text-decoration: none;
}

.home-header-search {
  width: 100%;
  justify-self: end;
}

.explore-link,
.primary-action,
.secondary-action,
.quick-card {
  text-decoration: none;
}

.explore-link,
.primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 247, 168, 0.46);
  border-radius: 8px;
  padding: 0 16px;
  color: #06120e;
  background: var(--green);
  font-weight: 700;
}

.home-hero {
  max-width: 780px;
  margin-bottom: 46px;
}

.home-hero h1 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-size: 56px;
  line-height: 0.98;
}

.home-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(244, 251, 248, 0.74);
  font-size: 18px;
  line-height: 1.55;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  max-width: 720px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(204, 242, 229, 0.2);
  border-radius: 8px;
  background: rgba(7, 19, 18, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero-search input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
  outline: 0;
}

.hero-search button {
  border: 0;
  color: #06120e;
  background: var(--green);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(204, 242, 229, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.quick-explore,
.home-content {
  display: grid;
  gap: 18px;
}

.quick-explore {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}

.quick-group,
.home-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 19, 18, 0.66);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.quick-group {
  padding: 16px;
}

.quick-group h2,
.home-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.quick-grid {
  display: grid;
  gap: 8px;
}

.quick-card,
.empty-card {
  border: 1px solid rgba(204, 242, 229, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(244, 251, 248, 0.86);
  background: rgba(255, 255, 255, 0.035);
}

.empty-card h3,
.empty-card p {
  margin: 0;
}

.empty-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.quick-card:hover {
  border-color: rgba(145, 247, 168, 0.44);
  background: rgba(145, 247, 168, 0.08);
}

.settings-list {
  display: grid;
  gap: 8px;
}

.settings-list a,
.settings-list button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(204, 242, 229, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  text-align: left;
}

.settings-list span {
  color: var(--muted);
  font-size: 13px;
}

.home-section {
  padding: 16px;
}

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

.explore-page {
  position: absolute;
  inset: 0;
}

.app-page {
  position: absolute;
  z-index: 4;
  top: 88px;
  right: auto;
  bottom: 194px;
  left: 16px;
  width: var(--side-panel-width);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.app-page-inner {
  width: 100%;
}

.app-page-head {
  margin-bottom: 18px;
}

.app-page-head h1 {
  margin-top: 6px;
  font-size: 24px;
}

.app-section {
  margin-top: 22px;
}

.app-section h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.app-list {
  display: grid;
  gap: 3px;
  overflow: visible;
  padding: 0;
}

.search-page-box {
  width: 100%;
}

.recent-searches,
.popular-searches {
  display: flex;
  flex-wrap: wrap;
}

.shell:not([data-route="explore"]) .explore-page .panel,
.shell:not([data-route="explore"]) .map-style-switcher,
.shell:not([data-route="explore"]) .map-zoom-tuner,
.shell:not([data-route="explore"]) .start-prompt,
.shell:not([data-route="explore"]) .reticle {
  display: none;
}

.topbar {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: auto minmax(220px, 420px) auto;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  pointer-events: auto;
}

.top-nav a {
  min-height: 36px;
  border: 1px solid rgba(204, 242, 229, 0.14);
  border-radius: 8px;
  padding: 9px 11px;
  color: rgba(244, 251, 248, 0.78);
  background: rgba(5, 14, 14, 0.58);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.brand,
.search,
.top-search,
.top-search-button,
.panel,
.player,
.notice {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--text);
  pointer-events: auto;
}

.brand em {
  border-left: 1px solid rgba(204, 242, 229, 0.18);
  padding-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(124, 255, 153, 0.12), 0 0 28px rgba(124, 255, 153, 0.75);
}

.search {
  display: flex;
  width: min(420px, 48vw);
  min-height: 44px;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: auto;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search button {
  width: 48px;
  border: 0;
  color: var(--text);
  background: rgba(124, 255, 153, 0.1);
  font-size: 22px;
}

.top-search {
  display: grid;
  grid-template-columns: minmax(160px, 360px) auto;
  width: min(420px, 38vw);
  justify-self: center;
  min-height: 42px;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: auto;
}

.top-search input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  outline: 0;
}

.top-search button {
  min-width: 76px;
  border: 0;
  padding: 0 14px;
  color: #06120e;
  background: var(--green);
  font-weight: 800;
}

.top-search-button {
  display: none;
  justify-self: end;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--text);
  font-weight: 800;
  pointer-events: auto;
}

.top-nav a:hover {
  border-color: rgba(145, 247, 168, 0.46);
  background: rgba(145, 247, 168, 0.1);
}

.home-entry,
.home-ad-slot {
  display: none !important;
}

.panel {
  position: absolute;
  z-index: 3;
  top: 88px;
  right: 22px;
  bottom: 126px;
  display: flex;
  width: var(--side-panel-width);
  min-height: 260px;
  overflow: hidden;
  flex-direction: column;
  border-radius: 8px;
}

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

.drawer-tabs button {
  border: 1px solid rgba(204, 242, 229, 0.13);
  border-radius: 7px;
  padding: 7px 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.drawer-tabs button.is-active {
  color: #06120e;
  background: var(--green);
}

.sheet-handle {
  display: none;
}

.panel-head {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.station-card p,
.now p,
.now span,
.volume span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.now span {
  display: block;
}

.now-time {
  margin-top: 2px !important;
  color: rgba(184, 235, 255, 0.76) !important;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
.station-card h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin-top: 4px;
  font-size: 24px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.genre-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.genre-filter::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(184, 235, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(244, 251, 248, 0.82);
  background: rgba(184, 235, 255, 0.06);
  font-size: 12px;
}

.genre-chip.is-active {
  border-color: rgba(145, 247, 168, 0.52);
  color: #06120e;
  background: var(--green);
}

.panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
}

.station-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 10px;
}

.catalog-summary {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 14px;
}

.catalog-summary strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.catalog-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section-label {
  padding: 13px 12px 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.station-card {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.station-card:hover,
.station-card.is-active {
  background: rgba(124, 255, 153, 0.11);
}

.station-card-main {
  display: grid;
  width: 100%;
  border: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 42px 12px 12px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.station-logo {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184, 235, 255, 0.2);
  border-radius: 8px;
  color: rgba(184, 235, 255, 0.82);
  background: rgba(184, 235, 255, 0.07);
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}

.station-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.station-card-content {
  min-width: 0;
}

.station-card-content h3,
.station-card-content p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-status {
  margin-top: 4px !important;
  color: rgba(145, 247, 168, 0.84) !important;
}

.favorite-button {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(204, 242, 229, 0.14);
  border-radius: 999px;
  color: rgba(244, 251, 248, 0.82);
  background: rgba(5, 14, 14, 0.74);
}

.favorite-button.is-favorite {
  color: #06120e;
  background: var(--yellow);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.empty-actions button,
.player-menu button,
.player-menu a {
  min-height: 36px;
  border: 1px solid rgba(204, 242, 229, 0.14);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tags span {
  border: 1px solid rgba(124, 255, 153, 0.18);
  border-radius: 999px;
  padding: 3px 7px;
  color: #caffe0;
  font-size: 11px;
}

.reticle {
  position: absolute;
  z-index: 2;
  top: var(--focus-y, 50%);
  left: var(--focus-x, 50%);
  display: none;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  place-items: center;
  pointer-events: none;
}

.map-style-switcher {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 226px;
  display: none;
  max-width: min(620px, calc(100vw - 32px));
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  background: var(--panel);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.map-style-switcher button {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.map-style-switcher button.is-active {
  color: #06120e;
  background: var(--green);
}

.map-zoom-tuner {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 176px;
  display: none;
  grid-template-columns: auto minmax(130px, 180px) 36px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--panel);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.map-zoom-tuner input {
  accent-color: var(--green);
}

.map-zoom-tuner output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.reticle::before {
  position: absolute;
  content: "";
  border-radius: 999px;
  inset: 0;
  border: 2px solid rgba(202, 233, 255, 0.84);
  box-shadow: 0 0 0 1px rgba(8, 17, 14, 0.22), 0 0 26px rgba(164, 215, 255, 0.18);
}

.reticle span {
  display: none;
}

.shell.is-startup-prompt .reticle {
  display: none;
}

.shell.is-startup-prompt .panel {
  min-height: 180px;
}

.shell.is-startup-prompt .panel .drawer-tabs,
.shell.is-startup-prompt .panel .genre-filter,
.shell.is-startup-prompt .panel .filters,
.shell.is-startup-prompt .panel .station-list {
  display: none;
}

.shell.is-startup-prompt .panel-head {
  gap: 10px;
}

.shell.is-startup-prompt .panel-head h1 {
  font-size: 20px;
}

.shell.is-startup-prompt .top-nav {
  display: none;
}

.start-prompt {
  position: absolute;
  z-index: 4;
  top: var(--focus-y, 50%);
  left: var(--focus-x, 50%);
  display: grid;
  width: min(330px, calc(100vw - 48px));
  border: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  color: #f6fbff;
  text-align: center;
  background: transparent;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
}

.start-prompt[hidden] {
  display: none;
}

.start-prompt-icon {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
  border: 3px solid rgba(202, 233, 255, 0.92);
  border-radius: 999px;
  background: rgba(5, 15, 22, 0.2);
  box-shadow: 0 0 0 1px rgba(8, 17, 14, 0.22), 0 0 42px rgba(164, 215, 255, 0.24);
  place-items: center;
}

.start-prompt-icon::before {
  width: 0;
  height: 0;
  margin-left: 10px;
  border-top: 27px solid transparent;
  border-bottom: 27px solid transparent;
  border-left: 43px solid #f6fbff;
  content: "";
  filter: drop-shadow(0 0 16px rgba(246, 251, 255, 0.28));
}

.start-prompt-title,
.start-prompt-subtitle {
  display: block;
}

.start-prompt-main,
.start-prompt-location {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.start-prompt-main {
  border: 1px solid rgba(145, 247, 168, 0.62);
  color: #06120e;
  background: var(--green);
}

.start-prompt-location {
  margin-top: 8px;
  border: 1px solid rgba(204, 242, 229, 0.36);
  color: var(--text);
  background: rgba(5, 14, 14, 0.58);
}

.start-prompt-title {
  font-size: 34px;
  line-height: 1.08;
}

.start-prompt-subtitle {
  margin-top: 10px;
  color: rgba(246, 251, 255, 0.72);
  font-size: 15px;
  line-height: 1.4;
}

.player {
  position: fixed;
  z-index: 5;
  right: auto;
  bottom: 78px;
  left: 16px;
  display: grid;
  width: var(--side-panel-width);
  grid-template-columns: 48px minmax(0, 1fr) 32px 34px;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  border-radius: 8px;
  padding: 10px 12px;
  transform: none;
}

.shell[data-route="explore"] .panel {
  bottom: 194px;
}

.shell[data-route="explore"] .player {
  right: 22px;
  bottom: 78px;
  left: auto;
  width: var(--side-panel-width);
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr) 28px 32px;
  gap: 10px;
  padding: 10px 12px;
  transform: none;
}

.shell[data-route="explore"] .play-button {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.shell[data-route="explore"] .now h2 {
  font-size: 18px;
}

.shell[data-route="explore"] .now p,
.shell[data-route="explore"] .now span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell[data-route="explore"] .volume {
  display: none;
}

.shell[data-route="explore"] .visualizer {
  justify-content: center;
}

.visualizer {
  display: flex;
  height: 22px;
  gap: 3px;
  align-items: center;
  justify-content: flex-end;
}

.more-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(204, 242, 229, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  line-height: 1;
}

.player-menu {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 10px);
  display: grid;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 220px));
  overflow: auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-strong);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

.player-menu[hidden] {
  display: none;
}

.player-menu strong,
.player-menu h3,
.player-menu p {
  margin: 0;
}

.player-menu p,
.player-menu dt {
  color: var(--muted);
  font-size: 12px;
}

.player-menu h3 {
  color: rgba(244, 251, 248, 0.72);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.player-menu-group {
  display: grid;
  gap: 8px;
}

.player-menu dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.player-menu dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
}

.player-menu dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-menu-actions {
  display: grid;
  gap: 7px;
}

.save-prompt,
.player-recovery {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border-top: 1px solid rgba(204, 242, 229, 0.12);
  padding-top: 10px;
}

.save-prompt[hidden],
.player-recovery[hidden] {
  display: none;
}

.save-prompt {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.save-prompt span {
  color: rgba(244, 251, 248, 0.82);
  font-size: 12px;
}

.save-prompt button,
.player-recovery button {
  min-height: 34px;
  border: 1px solid rgba(204, 242, 229, 0.14);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

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

.ad-slot {
  display: none;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  place-items: center;
}

.shell.ads-enabled .ad-slot,
.seo-page.ads-enabled .ad-slot {
  display: grid;
}

.ad-slot--rectangle {
  min-height: 250px;
}

.ad-slot > span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.menu-notice {
  overflow-wrap: anywhere;
}

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

.bottom-nav {
  position: fixed;
  z-index: 6;
  right: auto;
  bottom: 18px;
  left: 16px;
  display: grid;
  width: var(--side-panel-width);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel-strong);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transform: none;
}

.shell[data-route="explore"] .bottom-nav,
.shell[data-route="explore"] .player {
  width: var(--side-panel-width);
}

.bottom-nav button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.bottom-nav button.is-active {
  color: #06120e;
  background: var(--green);
}

.visualizer span {
  display: block;
  width: 3px;
  min-height: 4px;
  border-radius: 999px;
  background: rgba(145, 247, 168, 0.72);
  transform-origin: bottom;
  animation: visualizer-idle 1.1s ease-in-out infinite;
  animation-play-state: paused;
}

.visualizer span:nth-child(2) {
  animation-delay: -0.28s;
}

.visualizer span:nth-child(3) {
  animation-delay: -0.54s;
}

.visualizer span:nth-child(4) {
  animation-delay: -0.18s;
}

.shell.is-playing .visualizer span {
  animation-play-state: running;
}

.play-button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #05110d;
  background: var(--green);
  box-shadow: 0 0 36px rgba(124, 255, 153, 0.45);
  font-size: 20px;
}

.now {
  min-width: 0;
}

.now h2 {
  overflow: hidden;
  margin: 4px 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
}

.volume {
  display: flex;
  gap: 10px;
  align-items: center;
}

.volume input {
  width: 100%;
  accent-color: var(--green);
}

.player .volume {
  display: none;
}

.notice {
  position: absolute;
  z-index: 4;
  top: 88px;
  left: 22px;
  display: grid;
  max-width: min(460px, calc(100vw - 44px));
  gap: 6px;
  border-color: rgba(247, 214, 107, 0.45);
  border-radius: 8px;
  padding: 16px;
  color: var(--yellow);
}

.notice[hidden] {
  display: none;
}

.seo-page {
  min-height: 100%;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(145, 247, 168, 0.07), transparent 32%),
    linear-gradient(180deg, #07100f 0%, #0a1715 54%, #060b0b 100%);
}

.seo-header,
.seo-footer,
.seo-shell {
  width: min(1120px, calc(100vw - 32px));
  margin-right: auto;
  margin-left: auto;
}

.seo-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.seo-header nav,
.seo-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-header nav a,
.seo-footer a,
.seo-breadcrumbs a,
.seo-link-grid a,
.seo-station-card a {
  color: var(--green);
}

.seo-header nav a,
.seo-footer a {
  min-height: 34px;
  border: 1px solid rgba(204, 242, 229, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.seo-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 48px;
}

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.seo-breadcrumbs a::after {
  margin-left: 8px;
  color: var(--muted);
  content: "/";
}

.seo-breadcrumbs a:last-child::after {
  content: "";
}

.seo-hero,
.seo-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(7, 19, 18, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.seo-hero {
  display: grid;
  gap: 14px;
}

.seo-hero h1 {
  max-width: 760px;
  font-size: 42px;
}

.seo-hero p,
.seo-section > p {
  max-width: 760px;
  margin: 0;
  color: rgba(244, 251, 248, 0.76);
  line-height: 1.55;
}

.seo-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.seo-station-card,
.seo-link-grid a {
  border: 1px solid rgba(204, 242, 229, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.seo-station-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.seo-station-card h3 {
  margin: 0;
  font-size: 16px;
}

.seo-station-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.seo-play-link {
  font-size: 13px;
  font-weight: 700;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seo-link-grid a {
  min-height: 46px;
  padding: 12px;
  text-decoration: none;
}

.seo-link-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.seo-station-detail dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.seo-station-detail dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

.seo-station-detail dt {
  color: var(--muted);
}

.seo-station-detail dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.seo-footer {
  padding: 0 0 34px;
}

.static-page {
  min-height: 100%;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(145, 247, 168, 0.08), transparent 34%),
    linear-gradient(180deg, #07100f 0%, #081513 58%, #060b0b 100%);
}

.static-shell {
  width: min(820px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.static-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.static-nav a,
.static-card a {
  color: var(--green);
}

.static-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.static-card h1 {
  font-size: 34px;
}

.static-card h2 {
  margin-top: 10px;
  font-size: 18px;
}

.static-card p,
.static-card li {
  color: rgba(244, 251, 248, 0.78);
  line-height: 1.6;
}

.static-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.mapboxgl-popup-content {
  border: 1px solid rgba(124, 255, 153, 0.22);
  border-radius: 8px;
  background: rgba(7, 18, 16, 0.96);
  color: var(--text);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.mapboxgl-popup-tip {
  border-top-color: rgba(7, 18, 16, 0.96) !important;
}

.marker {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(229, 255, 238, 0.9);
  border-radius: 999px;
  background: var(--green-strong);
  box-shadow: 0 0 0 5px rgba(46, 230, 111, 0.14), 0 0 18px rgba(46, 230, 111, 0.7);
}

.marker.is-active {
  width: 20px;
  height: 20px;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(247, 214, 107, 0.16), 0 0 30px rgba(247, 214, 107, 0.82);
}

.shell[data-route="explore"] .panel {
  right: auto;
  left: 16px;
  width: var(--side-panel-width);
  border: 0;
  color: #16211a;
  background: rgba(247, 249, 244, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.shell[data-route="explore"] .panel-head {
  gap: 10px;
  border-bottom: 0;
  padding: 16px 16px 14px;
  color: #f8fff9;
  background: linear-gradient(180deg, rgba(25, 42, 34, 0.72), rgba(25, 42, 34, 0.34));
}

.shell[data-route="explore"] .panel-head h1 {
  max-width: 220px;
  color: #fff;
  font-size: 30px;
  font-weight: 500;
}

.shell[data-route="explore"] .panel-head #drawerSubtitle,
.shell[data-route="explore"] .panel-head .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.shell[data-route="explore"] .drawer-tabs,
.shell[data-route="explore"] .genre-filter,
.shell[data-route="explore"] .filters {
  display: none;
}

.shell[data-route="explore"] .station-list {
  padding: 10px 0 96px;
  background: rgba(249, 250, 246, 0.96);
}

.shell[data-route="explore"] .section-label {
  border-bottom: 1px solid rgba(27, 38, 31, 0.12);
  padding: 14px 16px 12px;
  color: #16211a;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.shell[data-route="explore"] .catalog-summary {
  border-bottom-color: rgba(27, 38, 31, 0.12);
}

.shell[data-route="explore"] .catalog-summary span,
.shell[data-route="explore"] .station-card p {
  color: rgba(22, 33, 26, 0.64);
}

.shell[data-route="explore"] .station-card {
  border: 0;
  border-radius: 0;
}

.shell[data-route="explore"] .station-card::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: rgba(27, 38, 31, 0.1);
  content: "";
}

.shell[data-route="explore"] .station-card:hover {
  background: rgba(73, 195, 104, 0.1);
}

.shell[data-route="explore"] .station-card.is-active {
  color: #fff;
  background: #58c96e;
}

.shell[data-route="explore"] .station-card.is-active::after {
  display: none;
}

.shell[data-route="explore"] .station-card-main {
  grid-template-columns: minmax(0, 1fr);
  min-height: 46px;
  padding: 10px 48px 10px 16px;
}

.shell[data-route="explore"] .station-logo,
.shell[data-route="explore"] .tags {
  display: none;
}

.shell[data-route="explore"] .station-card h3 {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
}

.shell[data-route="explore"] .station-card.is-active p,
.shell[data-route="explore"] .station-card.is-active .live-status {
  color: rgba(255, 255, 255, 0.88) !important;
}

.shell[data-route="explore"] .favorite-button {
  top: 8px;
  right: 12px;
  border-color: transparent;
  color: rgba(22, 33, 26, 0.55);
  background: transparent;
  font-size: 24px;
}

.shell[data-route="explore"] .station-card.is-active .favorite-button {
  color: #fff;
}

.shell[data-route="explore"] .player {
  right: auto;
  left: 16px;
  width: var(--side-panel-width);
  color: #16211a;
  background: rgba(247, 249, 244, 0.96);
  border: 0;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.shell[data-route="explore"] .bottom-nav {
  right: auto;
  bottom: 18px;
  left: 16px;
  width: var(--side-panel-width);
  border: 0;
  color: #16211a;
  background: rgba(247, 249, 244, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.shell[data-route="explore"] .bottom-nav button {
  color: rgba(22, 33, 26, 0.66);
}

.shell[data-route="explore"] .bottom-nav button.is-active {
  color: #fff;
  background: #58c96e;
}

.shell[data-route="explore"] .now h2 {
  color: #16211a;
  font-weight: 600;
}

.shell[data-route="explore"] .now p,
.shell[data-route="explore"] .now span {
  color: rgba(22, 33, 26, 0.62);
}

.shell[data-route="explore"] .play-button {
  color: #fff;
  background: #58c96e;
  box-shadow: 0 0 0 8px rgba(88, 201, 110, 0.16);
}

.shell[data-route="explore"] .more-button {
  color: rgba(22, 33, 26, 0.72);
  background: rgba(22, 33, 26, 0.08);
}

.shell[data-route="explore"] .visualizer span {
  background: #58c96e;
}

.shell[data-route="explore"] .save-prompt,
.shell[data-route="explore"] .player-recovery {
  border-top-color: rgba(22, 33, 26, 0.12);
}

.shell[data-route="explore"] .save-prompt span {
  color: rgba(22, 33, 26, 0.68);
}

.shell[data-route="explore"] .save-prompt button,
.shell[data-route="explore"] .player-recovery button {
  border-color: rgba(22, 33, 26, 0.12);
  color: #16211a;
  background: rgba(22, 33, 26, 0.06);
}

.shell[data-route="explore"]:not(.is-startup-prompt) .reticle {
  display: grid;
}

.reticle {
  width: 82px;
  height: 82px;
}

.reticle::before {
  inset: 8px;
  border: 3px dashed rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(10, 18, 14, 0.32), 0 0 26px rgba(255, 255, 255, 0.24);
}

.reticle::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(8, 17, 14, 0.2);
  content: "";
}

@keyframes visualizer-idle {
  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 760px) {
  .home-page {
    padding: 16px 14px 116px;
  }

  .home-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 38px;
    width: 100%;
    min-width: 0;
  }

  .home-header > * {
    min-width: 0;
  }

  .home-header .explore-link {
    width: calc(100% - 14px);
    min-width: 0;
    padding: 0 10px;
  }

  .home-header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% - 14px);
  }

  .home-hero,
  .home-hero h1 {
    max-width: 100%;
  }

  .home-hero h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1.04;
  }

  .home-hero p:not(.eyebrow) {
    max-width: 340px;
    font-size: 15px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    max-width: calc(100vw - 42px);
  }

  .hero-search button {
    min-height: 46px;
  }

  .quick-explore,
  .home-station-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    top: 12px;
    left: 12px;
    right: 12px;
    grid-template-columns: auto auto;
    gap: 10px;
  }

  .top-nav {
    display: none;
  }

  .top-search {
    display: none;
  }

  .top-search-button {
    display: inline-flex;
  }

  .brand {
    min-width: 44px;
    padding: 0 12px;
  }

  .brand em {
    display: none;
  }

  .search {
    width: 100%;
  }

  .panel {
    top: auto;
    right: 12px;
    bottom: 170px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: 30vh;
    min-height: 0;
    border-radius: 14px 14px 8px 8px;
  }

  .shell.sheet-collapsed .panel {
    max-height: 96px;
  }

  .shell.sheet-collapsed .panel .drawer-tabs,
  .shell.sheet-collapsed .panel .genre-filter,
  .shell.sheet-collapsed .panel .filters,
  .shell.sheet-collapsed .panel .station-list {
    display: none;
  }

  .shell.sheet-expanded .panel {
    max-height: 72vh;
  }

  .app-page {
    top: auto;
    right: 12px;
    bottom: 170px;
    left: 12px;
    width: auto;
    max-height: 45vh;
    padding: 12px;
    border-radius: 14px 14px 8px 8px;
  }

  .shell[data-route="explore"] .panel {
    right: 12px;
    bottom: 170px;
    left: 12px;
    width: auto;
  }

  .shell[data-player-status="error"] .panel,
  .shell[data-player-status="blocked"] .panel,
  .shell[data-player-status="error"] .app-page,
  .shell[data-player-status="blocked"] .app-page {
    bottom: 220px;
  }

  .panel-head {
    padding: 12px;
  }

  .sheet-handle {
    display: block;
    justify-self: center;
    width: 64px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(204, 242, 229, 0.46);
  }

  .filters {
    display: none;
    grid-template-columns: 1fr;
  }

  .shell.sheet-expanded .filters {
    display: grid;
  }

  .genre-filter {
    margin-right: -2px;
  }

  h1 {
    font-size: 20px;
  }

  .station-list {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }

  .player {
    right: 12px;
    bottom: 72px;
    left: 12px;
    width: auto;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    min-height: 82px;
    padding: 10px;
    transform: none;
  }

  .shell[data-route="explore"] .player {
    right: 12px;
    bottom: 72px;
    left: 12px;
    width: auto;
    min-height: 76px;
    grid-template-columns: 46px minmax(0, 1fr) 32px;
  }

  .play-button {
    width: 46px;
    height: 46px;
  }

  .now h2 {
    font-size: 18px;
  }

  .volume {
    display: none;
  }

  .visualizer {
    display: none;
  }

  .now-time {
    display: none !important;
  }

  .now p,
  .now span,
  .now h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-menu {
    right: 0;
    left: 0;
    width: auto;
    max-height: 42vh;
    overflow: auto;
  }

  .player-recovery {
    grid-template-columns: 1fr;
  }

  .player-recovery button:nth-child(n + 2) {
    display: none;
  }

  .map-style-switcher {
    display: none;
  }

  .map-zoom-tuner {
    display: none;
  }

  .bottom-nav {
    right: 12px;
    bottom: 10px;
    left: 12px;
    width: auto;
    padding: 6px;
    transform: none;
  }

  .shell[data-route="explore"] .bottom-nav {
    right: 12px;
    bottom: 10px;
    left: 12px;
    width: auto;
  }

  .bottom-nav button {
    padding: 8px 4px;
    font-size: 12px;
  }

  .app-page-head h1 {
    font-size: 20px;
  }

  .start-prompt-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 22px;
  }

  .start-prompt-icon::before {
    border-top-width: 22px;
    border-bottom-width: 22px;
    border-left-width: 35px;
  }

  .start-prompt-title {
    font-size: 28px;
  }

  .seo-header,
  .seo-footer,
  .seo-shell {
    width: min(1120px, calc(100vw - 24px));
  }

  .seo-header {
    display: grid;
    gap: 12px;
  }

  .seo-header nav {
    gap: 8px;
  }

  .seo-hero,
  .seo-section {
    padding: 16px;
  }

  .seo-hero h1 {
    font-size: 30px;
  }

  .seo-station-grid,
  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .seo-station-detail dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
