:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffdf8;
  --ink: #1c2430;
  --muted: #667085;
  --line: #d9d3c6;
  --accent: #0b7a75;
  --accent-dark: #075c58;
  --warm: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(28, 36, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(11, 122, 117, 0.08), transparent 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

:where(.app-header, .results-head, .station-card, .player, .station-modal, .tv-view) p {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.95;
}

.status-pill {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 14px;
  height: 14px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(102, 112, 133, 0.14), 0 8px 20px rgba(28, 36, 48, 0.22);
  color: transparent;
  font-size: 0;
  white-space: nowrap;
}

.status-pill.ok {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16), 0 8px 20px rgba(28, 36, 48, 0.22);
}

.status-pill.error {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16), 0 8px 20px rgba(28, 36, 48, 0.22);
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 250px;
}

.filter-disclosure summary {
  display: none;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
  padding: 14px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.16);
}

.quality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0 0;
}

.toggle-field,
.bitrate-field {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  text-transform: none;
}

.toggle-field {
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
}

.toggle-field input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.bitrate-field {
  display: inline-grid;
  grid-template-columns: auto 90px;
  gap: 10px;
  align-items: center;
  padding: 0 10px 0 12px;
}

.bitrate-field input {
  min-height: 30px;
  padding: 0 8px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 10px;
}

.chip,
.ghost-button,
.primary-button,
.station-action {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

.chip.active,
.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.ghost-button:hover,
.chip:hover,
.station-action:hover {
  border-color: var(--accent);
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.results-head h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.results-head p {
  margin-top: 4px;
  color: var(--muted);
}

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

.station-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.station-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8f3f1;
  color: var(--accent-dark);
  font-weight: 900;
  overflow: hidden;
}

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

.station-name {
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.22;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.station-location {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}

.tag {
  border: 0;
  border-radius: 999px;
  background: #eee7db;
  color: #594b3a;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-button:hover,
.tag-button:focus-visible {
  background: #d9f3ee;
  color: var(--accent-dark);
  outline: none;
}

.station-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  border: 1px solid #e7e0d3;
  border-radius: 6px;
  padding: 8px;
  min-width: 0;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-actions {
  display: grid;
  grid-template-columns: 1fr 58px 44px;
  gap: 8px;
  margin-top: auto;
}

.station-action.play {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.station-action.info {
  padding: 0 10px;
}

.station-action.favorite {
  padding: 0;
  font-size: 1.15rem;
}

.station-action.favorite.saved {
  color: var(--warm);
  border-color: rgba(180, 83, 9, 0.45);
  background: #fff7ed;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.load-row {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
}

.load-row[hidden],
.primary-button[hidden] {
  display: none;
}

.player {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(280px, 440px);
  gap: 14px;
  align-items: center;
  max-width: 1144px;
  margin: 0 auto;
  border: 1px solid rgba(217, 211, 198, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: blur(12px);
}

.player-art {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.player-info {
  min-width: 0;
}

.player-info p {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing {
  margin-top: 2px;
  color: var(--accent-dark);
  font-size: 0.84rem;
}

.player-info span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .player {
    backdrop-filter: none;
  }
}

.player-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 42px 36px;
  gap: 8px;
  align-items: center;
}

.player-status span {
  min-width: 0;
}

.visualizer-toggle,
.equalizer-toggle,
.tv-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0;
}

.equalizer-toggle {
  width: 42px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.visualizer-toggle.active,
.equalizer-toggle.active,
.visualizer-toggle:hover,
.equalizer-toggle:hover,
.tv-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.eye-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px / 760px;
}

.eye-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.tv-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.tv-icon::before,
.tv-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.tv-icon::before {
  left: 50%;
  top: -7px;
  width: 12px;
  height: 2px;
  transform: translateX(-50%) rotate(-18deg);
  transform-origin: center;
}

.tv-icon::after {
  left: 5px;
  right: 5px;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
}

.song-finder-button {
  position: fixed;
  right: 20px;
  bottom: 162px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(11, 122, 117, 0.34);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 122, 117, 0.32);
  padding: 0;
}

.song-finder-button:hover {
  background: var(--accent-dark);
}

.song-finder-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

audio {
  width: 100%;
}

.equalizer-panel,
.visualizer-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.equalizer-panel[hidden],
.visualizer-panel[hidden] {
  display: none;
}

.equalizer-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 220px) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
}

.equalizer-select-field,
.equalizer-preamp-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.equalizer-select-field select,
.equalizer-preamp-field input {
  min-height: 34px;
}

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

.equalizer-preamp-field span,
.equalizer-preamp-field strong {
  margin: 0;
}

.equalizer-preamp-field strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.equalizer-support-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.equalizer-axis {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.equalizer-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  gap: 8px;
  align-items: end;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 0 10px;
  scrollbar-width: thin;
}

.equalizer-band {
  display: grid;
  grid-template-rows: auto minmax(132px, 1fr) auto;
  justify-items: center;
  gap: 8px;
  min-width: 42px;
}

.equalizer-gain,
.equalizer-frequency {
  font-size: 0.7rem;
  text-align: center;
}

.equalizer-gain {
  color: var(--accent-dark);
  font-weight: 700;
}

.equalizer-frequency {
  color: var(--muted);
}

.equalizer-slider {
  width: 132px;
  height: 28px;
  margin: 52px 0;
  accent-color: var(--accent);
  transform: rotate(-90deg);
  transform-origin: center;
}

.visualizer-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.mode-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.fullscreen-button {
  margin-left: auto;
}

#visualizerCanvas {
  width: 100%;
  height: 230px;
  border-radius: 8px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.08), 0 12px 32px rgba(17, 24, 39, 0.24);
}

.visualizer-panel:fullscreen {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 16px;
  background: #050b12;
  padding: 18px;
}

.visualizer-panel:fullscreen #visualizerCanvas {
  height: calc(100vh - 86px);
  border-radius: 10px;
}

.visualizer-panel:fullscreen .visualizer-modes {
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(28, 36, 48, 0.46);
  padding: 18px;
}

.station-modal {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.modal-header {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.modal-logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8f3f1;
  color: var(--accent-dark);
  font-weight: 900;
  overflow: hidden;
}

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

.modal-source {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-header h2 {
  overflow-wrap: anywhere;
}

.modal-header p:not(.modal-source) {
  margin-top: 5px;
  color: var(--muted);
}

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

.detail-item {
  border: 1px solid #e7e0d3;
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}

.detail-item span,
.stream-field span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-links a,
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  padding: 0 12px;
  font-weight: 800;
  text-decoration: none;
}

.song-modal {
  width: min(760px, 100%);
}

.song-modal-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.song-finder-status {
  border: 1px solid #d6ebe7;
  border-radius: 6px;
  background: #effaf8;
  color: var(--accent-dark);
  padding: 10px 12px;
  font-weight: 800;
}

.song-results {
  display: grid;
  gap: 14px;
}

.song-primary {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.song-artwork {
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e8f3f1;
  color: var(--accent-dark);
  overflow: hidden;
}

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

.song-primary h3 {
  font-size: 1.25rem;
}

.song-primary p,
.song-primary span,
.song-secondary-row span {
  color: var(--muted);
}

.song-links {
  margin-top: 12px;
}

.song-secondary {
  display: grid;
  gap: 8px;
}

.song-secondary h3 {
  font-size: 1rem;
}

.song-secondary-row {
  display: grid;
  gap: 3px;
  border: 1px solid #e7e0d3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-decoration: none;
}

.stream-field {
  display: grid;
  gap: 7px;
  text-transform: none;
}

.tv-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  overflow: hidden;
  background: #050b12;
  color: #f8fafc;
  padding: 28px;
}

.tv-view[hidden] {
  display: none;
}

.tv-backdrop {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.22), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(251, 191, 36, 0.16), transparent 30%),
    linear-gradient(135deg, #071a22, #111827 48%, #062f2c);
  filter: blur(2px);
}

.tv-header,
.tv-main,
.tv-footer {
  position: relative;
  z-index: 1;
}

.tv-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.tv-header p {
  color: #5eead4;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-header h2 {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.tv-header span {
  display: block;
  margin-top: 8px;
  color: rgba(248, 250, 252, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
}

.tv-clock {
  color: rgba(248, 250, 252, 0.86);
  font-size: clamp(2rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
}

.tv-main {
  display: grid;
  grid-template-columns: minmax(160px, 22vw) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 0;
}

.tv-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  align-self: center;
  border: 1px solid rgba(248, 250, 252, 0.2);
  border-radius: 18px;
  background: rgba(45, 212, 191, 0.16);
  background-position: center;
  background-size: cover;
  color: #5eead4;
  font-size: clamp(2.6rem, 6vw, 7rem);
  font-weight: 950;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.tv-logo.has-logo {
  color: transparent;
}

#tvCanvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 18px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.08), 0 24px 90px rgba(0, 0, 0, 0.35);
}

.tv-footer {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.tv-active .app-header,
.tv-active .app-shell,
.tv-active .player {
  display: none;
}

@media (max-width: 900px) {
  .toolbar,
  .station-grid,
  .detail-grid,
  .player {
    grid-template-columns: 1fr 1fr;
  }

  .search-field,
  .player-info,
  audio {
    grid-column: 1 / -1;
  }

  .bitrate-field {
    grid-template-columns: 1fr 90px;
  }
}

@media (max-width: 640px) {
  .app-header,
  .results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-disclosure {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.86);
    box-shadow: var(--shadow);
  }

  .filter-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }

  .filter-disclosure summary::-webkit-details-marker {
    display: none;
  }

  .filter-disclosure summary::after {
    content: "+";
    color: var(--accent-dark);
    font-size: 1.25rem;
    font-weight: 900;
  }

  .filter-disclosure[open] summary::after {
    content: "-";
  }

  .filter-disclosure:not([open]) .toolbar,
  .filter-disclosure:not([open]) .quality-row {
    display: none;
  }

  .toolbar,
  .station-grid,
  .detail-grid,
  .player {
    grid-template-columns: 1fr;
  }

  .toolbar {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .player {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    padding: 8px;
  }

  .player-art {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    font-size: 0.85rem;
  }

  .player-info {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .player audio {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 34px;
  }

  .visualizer-panel {
    grid-column: 1 / -1;
  }

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

  .equalizer-grid {
    grid-auto-columns: 52px;
    gap: 10px;
    padding-bottom: 12px;
  }

  .equalizer-preamp-field {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .equalizer-band {
    grid-template-rows: auto minmax(120px, 1fr) auto;
    justify-items: center;
    gap: 6px;
  }

  .equalizer-slider {
    width: 120px;
    height: 28px;
    margin: 46px 0;
    transform: rotate(-90deg);
  }

  .player-info p {
    font-size: 0.92rem;
    line-height: 1.1;
  }

  .player-info .now-playing {
    font-size: 0.72rem;
  }

  .player-info span {
    margin-top: 2px;
    font-size: 0.74rem;
  }

  .player-status {
    grid-template-columns: minmax(0, 1fr) 32px 40px 32px;
    gap: 6px;
  }

  .visualizer-toggle,
  .equalizer-toggle,
  .tv-toggle {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .equalizer-toggle {
    width: 40px;
    font-size: 0.68rem;
  }

  .song-finder-button {
    right: 18px;
    bottom: 150px;
    width: 42px;
    height: 42px;
  }

  .eye-icon {
    width: 19px;
    height: 12px;
  }

  .tv-icon {
    width: 20px;
    height: 14px;
  }

  .station-card {
    min-height: auto;
  }

  .song-primary {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .song-artwork {
    width: 78px;
  }

  .station-stats {
    display: none;
  }

  .quality-row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .toggle-field,
  .bitrate-field {
    width: 100%;
  }

  .quick-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    margin-left: -22px;
    margin-right: -22px;
    padding: 14px 22px 10px;
    scrollbar-width: none;
  }

  .quick-row::-webkit-scrollbar {
    display: none;
  }

  .quick-row .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
