:root {
  color-scheme: light;
  --ground: #fbf7f8;
  --surface: #fff;
  --line: #e9dce1;
  --ink: #251b21;
  --muted: #665863;
  --accent: #a32a5a;
  --tint: #f6e3eb;
  --rail: 225px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--accent); }
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100dvh - 83px); padding-bottom: 95px; }
.sidebar { position: sticky; top: 0; align-self: start; padding: 0 22px 24px; }
.brand { display: flex; gap: 10px; align-items: center; height: 68px; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 13px; }
.filters { display: grid; gap: 4px; margin-top: 26px; }
.filter-btn { padding: 9px 12px; min-height: 42px; text-align: left; border: 1px solid transparent; border-radius: 6px; background: transparent; white-space: nowrap; }
.filter-btn:hover, .filter-btn.active { background: var(--tint); color: #741d40; }
.filter-btn.active { font-weight: 700; }
.workspace { min-width: 0; border-left: 1px solid var(--line); }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 30px; border-bottom: 1px solid var(--line); }
.topbar strong { font-size: 14px; }
.search { width: min(100%, 305px); min-height: 40px; padding: 8px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
main { max-width: 1480px; margin: auto; padding: 28px 30px; }
.feature { isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 206px; padding: 28px clamp(20px, 4vw, 48px); background: var(--tint); border: 1px solid #ead0dc; border-radius: 8px; }
.feature-copy { z-index: 1; }
.feature-label { margin: 0; color: #741d40; font-size: 13px; font-weight: 600; }
h1 { margin: 4px 0 7px; font-size: 32px; line-height: 1.12; letter-spacing: -.045em; }
.feature p { margin: 13px 0 19px; color: #58374a; }
.primary { min-height: 44px; padding: 8px 15px; border: 0; border-radius: 6px; background: var(--ink); color: white; font-weight: 600; }
.dial { position: absolute; right: 8%; top: 50%; width: min(33vw, 340px); aspect-ratio: 1; transform: translateY(-50%); display: grid; place-items: center; color: #a32a5a; opacity: .62; pointer-events: none; }
.dial span { position: absolute; border: 1px solid currentColor; border-radius: 50%; }
.dial span:nth-child(1) { width: 94%; height: 94%; border-style: dashed; }
.dial span:nth-child(2) { width: 83%; height: 83%; }
.dial span:nth-child(3) { width: 67%; height: 67%; }
.dial span:nth-child(4) { width: 45%; height: 45%; }
.dial span:nth-child(5) { width: 24%; height: 24%; border-width: 7px; }
.dial::after { content: ""; position: absolute; width: 51%; height: 2px; background: currentColor; transform: rotate(-39deg); }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 27px 0 12px; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
#stationCount, .column-labels, .station-genre, .station-place { color: var(--muted); font-size: 13px; }
.catalog { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.column-labels, .station-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) 48px; align-items: center; gap: 15px; text-align: left; padding: 8px 17px; }
.column-labels { min-height: 40px; font-weight: 600; }
.station-card { width: 100%; min-height: 55px; border: 0; border-top: 1px solid var(--line); background: transparent; }
.station-card:last-child { border-radius: 0 0 8px 8px; }
.station-card:hover, .station-card.current { background: #fcf1f6; }
.station-card strong { font-size: 15px; line-height: 1.2; }
.station-place small { display: block; font-size: 11px; }
.station-action { display: grid; place-items: center; justify-self: end; width: 34px; height: 34px; color: var(--accent); }
.current .station-action, .station-card:hover .station-action { color: #741d40; }
.station-action svg, .player-controls svg { width: 18px; height: 18px; fill: currentColor; }
.empty { margin: 0; padding: 24px 17px; color: var(--muted); border-top: 1px solid var(--line); }
.player-bar { position: fixed; z-index: 2; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; min-height: 83px; padding: 12px 30px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.player-details { min-width: 0; }
.player-details strong, .player-details span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-details span, .player-right { color: var(--muted); font-size: 12px; }
.player-controls, .player-right { display: flex; gap: 9px; align-items: center; }
.player-right { justify-content: end; }
.player-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; }
.player-controls button:hover { background: var(--tint); }
.player-controls .main-play, .player-controls .main-play:hover { background: var(--accent); color: white; }
#playerStatus[data-state="playing"] { color: var(--accent); font-weight: 700; }
#volumeSlider { width: 76px; accent-color: var(--accent); }
[hidden] { display: none !important; }
@media (max-width: 830px) {
  .shell { display: block; }
  .sidebar { position: static; padding: 0 16px 6px; }
  .brand { height: 51px; }
  .filters { display: flex; overflow: auto; margin: 0; padding: 3px; }
  .workspace { border-left: 0; }
  .topbar { min-height: 52px; padding: 7px 16px; }
  main { padding: 18px 16px; }
  .player-bar { padding-inline: 16px; }
}
@media (max-width: 550px) {
  .feature { min-height: 186px; }
  .feature h1 { font-size: 24px; }
  .dial { width: 170px; right: -67px; opacity: .35; }
  .column-labels { display: none; }
  .station-card { grid-template-columns: minmax(0, 1fr) 35px; gap: 1px 12px; padding: 10px 12px; }
  .station-card:first-child { border-top: 0; }
  .station-genre, .station-place { grid-column: 1; }
  .station-place small { display: inline; margin-left: 5px; }
  .station-action { grid-column: 2; grid-row: 1 / span 3; }
  .player-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
  .player-right { grid-column: 1 / -1; justify-content: space-between; }
  .shell { padding-bottom: 115px; }
}

.station-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.station-name img { flex: none; object-fit: contain; border-radius: 6px; background: white; padding: 2px; }
@media (max-width: 550px) {
  .station-name img { width: 34px; height: 34px; }
  .station-genre, .station-place { padding-left: 44px; }
}
