:root {
  color-scheme: dark;
  --bg: #121510;
  --ink: #f4f0e6;
  --muted: #9c9588;
  --faint: #6d675c;
  --line: rgba(244, 240, 230, 0.12);
  --amber: #e6a23c;
  --amber-soft: rgba(230, 162, 60, 0.14);
  --face: #191e16;
  --serif: Newsreader, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(230, 162, 60, 0.09), transparent 55%),
    radial-gradient(700px 380px at -15% 110%, rgba(150, 168, 110, 0.07), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  position: relative;
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 112px;
}

.note {
  position: absolute;
  left: calc(100% + 28px);
  top: 118px;
  width: 180px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.note p { margin: 0; }

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 34%, #f8e7c4 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #f0c36a, #e6a23c 46%, #8d5d16 78%, #191e16 79%);
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.45);
  flex: none;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.domain {
  margin: 0;
  color: var(--faint);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.search { margin-top: 28px; }

.search input {
  width: 100%;
  margin: 0;
  padding: 12px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.search input::placeholder { color: var(--faint); }

.search input:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

.status {
  min-height: 1.3rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.list { margin-top: 6px; }

.station {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.station > * { pointer-events: none; }

.station:hover,
.station:focus-visible {
  background: rgba(244, 240, 230, 0.04);
  outline: none;
}

.station.is-current { background: var(--amber-soft); }

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #242920;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station__name {
  display: block;
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.station__meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq i {
  display: block;
  width: 3px;
  height: 40%;
  background: var(--amber);
  transform-origin: bottom;
  animation: pulse 0.9s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { height: 35%; }
  50% { height: 100%; }
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 30, 22, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.dock__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(640px, 100%);
  margin: 0 auto;
}

.play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: #1c1408;
  cursor: pointer;
  flex: none;
}

.play:disabled {
  opacity: 0.38;
  cursor: default;
}

.play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-play { margin-left: 2px; }

.now { min-width: 0; flex: 1; }

.now__name,
.now__meta { margin: 0; }

.now__name {
  overflow: hidden;
  font-weight: 560;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.now__meta {
  min-height: 1.15em;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vol { flex: none; }

.vol input {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 2px;
  margin: 0;
  border-radius: 99px;
  background: rgba(244, 240, 230, 0.28);
  cursor: pointer;
}

.vol input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
}

.vol input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
}

@media (max-width: 1055px) {
  .note {
    position: static;
    width: auto;
    max-width: 36rem;
    margin: 22px 0 0;
  }
}

@media (max-width: 520px) {
  .brand__name { font-size: 1.45rem; }
  .search input { font-size: 1.15rem; }
  .vol input { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; height: 70%; }
}
