:root {
  color-scheme: light;
  --paper: #f4dfba;
  --paper-deep: #e3bc7d;
  --ink: #281b13;
  --muted: #71553d;
  --coffee: #5b311f;
  --amber: #c46f2a;
  --amber-hot: #f5a13b;
  --sage: #68755b;
  --cream: #fff4db;
  --shadow: 0 28px 70px rgba(91, 49, 31, 0.2);
  --radius-xl: 34px;
  --radius-md: 18px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(245, 161, 59, 0.32), transparent 34rem),
    linear-gradient(135deg, var(--paper), #efd29c 46%, #d99e68);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(40, 27, 19, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 27, 19, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(42px, 8vw, 92px);
}

.brand,
.nav-links,
.button,
.room-card,
.panel {
  border: 1px solid rgba(91, 49, 31, 0.18);
  background: rgba(255, 244, 219, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 5px solid var(--coffee);
  border-radius: 50%;
  outline: 2px solid var(--amber-hot);
}

.nav-links {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--cream);
}

.hero,
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

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

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.95;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: rgba(40, 27, 19, 0.28);
  background: var(--coffee);
  color: var(--cream);
}

.button.secondary {
  background: rgba(255, 244, 219, 0.72);
}

.button:hover,
.track-item:hover,
.room-card:hover {
  transform: translateY(-2px);
}

.receiver {
  min-height: 460px;
  border-radius: 46px;
  padding: clamp(18px, 4vw, 38px);
  background:
    linear-gradient(145deg, #704029, #321d14),
    var(--coffee);
  box-shadow: 0 32px 90px rgba(40, 27, 19, 0.34);
  transform: rotate(2deg);
}

.receiver-face {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  border: 2px solid rgba(255, 244, 219, 0.16);
  border-radius: 30px;
  padding: 26px;
}

.dial-row {
  display: flex;
  justify-content: space-between;
  color: var(--paper);
  font-weight: 900;
}

.tuner {
  position: relative;
  align-self: center;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--amber-hot));
}

.needle {
  position: absolute;
  top: -46px;
  left: 58%;
  width: 8px;
  height: 110px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 20px rgba(255, 244, 219, 0.6);
  animation: tune 5s ease-in-out infinite alternate;
}

.cassette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 26px;
  border-radius: 24px;
  background: var(--cream);
}

.cassette span {
  aspect-ratio: 1;
  border: 14px solid var(--coffee);
  border-radius: 50%;
  background: var(--paper-deep);
}

.cassette p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--coffee);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 7vw, 80px);
}

.room-card,
.panel {
  border-radius: var(--radius-xl);
}

.room-card {
  min-height: 230px;
  padding: clamp(22px, 4vw, 34px);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.room-number {
  color: var(--amber);
  font-weight: 900;
}

.room-card p,
.now-playing p,
.hint,
.track-item small,
.track-item em {
  color: var(--muted);
}

.panel {
  padding: clamp(22px, 4vw, 38px);
}

.copy-panel {
  align-self: stretch;
}

.player-console {
  display: grid;
  gap: 22px;
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(104, 117, 91, 0.16);
  color: var(--sage);
  font-weight: 900;
}

.lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8f7b62;
}

.lamp.is-live {
  background: #d4452f;
  box-shadow: 0 0 18px rgba(212, 69, 47, 0.85);
}

.now-playing {
  padding: 28px;
  border-radius: 28px;
  background:
    repeating-linear-gradient(90deg, rgba(40, 27, 19, 0.05) 0 1px, transparent 1px 16px),
    var(--cream);
}

.now-playing.compact {
  padding: 22px;
}

audio {
  width: 100%;
  accent-color: var(--amber);
}

.hint {
  margin: 0;
  line-height: 1.6;
}

.search-box {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: var(--coffee);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 2px solid rgba(91, 49, 31, 0.22);
  border-radius: 999px;
  padding: 16px 18px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(196, 111, 42, 0.18);
}

.track-list {
  display: grid;
  gap: 12px;
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.track-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(91, 49, 31, 0.16);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 244, 219, 0.76);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease;
}

.track-item strong,
.track-item small {
  display: block;
}

.track-item em {
  max-width: 160px;
  font-style: normal;
  text-align: right;
}

.empty-state {
  margin: 0;
  border: 1px dashed rgba(91, 49, 31, 0.35);
  border-radius: 20px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 244, 219, 0.5);
}

.reveal {
  animation: rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tune {
  from {
    transform: translateX(-18px) rotate(-1deg);
  }

  to {
    transform: translateX(26px) rotate(1deg);
  }
}

.cinema-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #fff7fb;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 104, 148, 0.42), transparent 28rem),
    radial-gradient(circle at 42% 76%, rgba(245, 112, 78, 0.42), transparent 24rem),
    radial-gradient(circle at 76% 34%, rgba(91, 58, 132, 0.44), transparent 31rem),
    linear-gradient(135deg, #8b3e2c 0%, #71301f 42%, #301014 100%);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

.cinema-page::before {
  opacity: 1;
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 210, 139, 0.34), transparent 18rem),
    radial-gradient(circle at 78% 20%, rgba(84, 99, 170, 0.32), transparent 20rem),
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%);
  filter: blur(18px);
  mask-image: none;
}

.cinema-page::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(4, 9, 28, 0.18), transparent 28%, transparent 68%, rgba(4, 9, 28, 0.34));
}

.site-switch {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 247, 244, 0.42);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.site-switch a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #7b2e1b;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.site-switch a[aria-current="page"],
.site-switch a:hover {
  color: #fff7fb;
  background: #7b2e1b;
}

.music-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(280px, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  width: min(1010px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid rgba(255, 247, 251, 0.22);
  border-radius: 18px;
  background: rgba(255, 238, 235, 0.68);
  box-shadow: 0 34px 100px rgba(32, 7, 10, 0.38), 0 1px 0 rgba(255, 255, 255, 0.34) inset;
  backdrop-filter: blur(22px);
}

.radio-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0 36px;
}

.radio-console {
  display: grid;
  grid-template-columns: 230px minmax(320px, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  border: 1px solid rgba(255, 247, 251, 0.22);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255, 238, 235, 0.68);
  box-shadow: 0 34px 100px rgba(32, 7, 10, 0.38), 0 1px 0 rgba(255, 255, 255, 0.34) inset;
  backdrop-filter: blur(22px);
}

.radio-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.radio-copy h1 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
  color: #2f2932;
}

.radio-vibe,
.radio-note {
  margin: 8px 0 0;
  color: rgba(47, 41, 50, 0.68);
  line-height: 1.5;
}

.radio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.radio-planner {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.radio-plan-list {
  max-height: 180px;
}

.menu-button {
  position: absolute;
  top: 24px;
  right: 24px;
  left: auto;
  z-index: 3;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.38);
  color: #742b19;
  box-shadow: 0 10px 24px rgba(78, 27, 19, 0.18);
}

.album-art {
  position: relative;
  aspect-ratio: 1;
  align-self: center;
  width: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #2a1450;
  box-shadow: 0 18px 42px rgba(80, 28, 20, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  isolation: isolate;
}

.cover-sky,
.cover-sun,
.cover-mountains,
.cover-water,
.cover-shore {
  position: absolute;
  inset: 0;
}

.cover-sky {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 229, 130, 0.95) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 44%, rgba(255, 147, 88, 0.85) 0 24%, transparent 25%),
    linear-gradient(180deg, #21155d 0%, #c9367e 43%, #ff794d 58%, #3d1458 100%);
}

.cover-sky::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 190, 210, 0.58) 0 1px, transparent 1.5px);
  background-position: 24px 28px, 70px 72px;
  background-size: 74px 64px, 96px 88px;
  opacity: 0.46;
}

.cover-sun {
  inset: 32% auto auto 50%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, #ffe996, #ff9c62 62%, rgba(255, 93, 104, 0.3));
  filter: blur(0.2px);
  transform: translateX(-50%);
  box-shadow: 0 0 70px rgba(255, 130, 91, 0.72);
}

.cover-mountains {
  clip-path: polygon(0 78%, 13% 58%, 22% 72%, 36% 46%, 50% 75%, 64% 50%, 78% 71%, 90% 54%, 100% 75%, 100% 100%, 0 100%);
}

.cover-mountains-back {
  top: 18%;
  background: linear-gradient(180deg, rgba(100, 40, 120, 0.2), #56256c 74%, #20103f);
}

.cover-mountains-front {
  top: 35%;
  clip-path: polygon(0 70%, 12% 52%, 24% 80%, 38% 48%, 54% 76%, 70% 44%, 88% 82%, 100% 60%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(45, 22, 72, 0.1), #251047 72%, #070b24);
}

.cover-water {
  top: 61%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 205, 115, 0.45) 0 2px, transparent 2px 16px),
    radial-gradient(ellipse at 50% 18%, rgba(255, 218, 110, 0.9), rgba(255, 99, 95, 0.32) 26%, transparent 47%),
    linear-gradient(180deg, rgba(166, 39, 100, 0.2), rgba(9, 10, 43, 0.94));
  opacity: 0.95;
}

.cover-shore {
  top: 68%;
  background:
    radial-gradient(ellipse at 8% 80%, #06091f 0 18%, transparent 19%),
    radial-gradient(ellipse at 89% 78%, #06091f 0 22%, transparent 23%),
    linear-gradient(160deg, transparent 0 38%, rgba(5, 8, 28, 0.9) 39% 48%, transparent 49%),
    linear-gradient(205deg, transparent 0 42%, rgba(5, 8, 28, 0.86) 43% 52%, transparent 53%);
}

.cover-rain-window .cover-sky,
.cover-after-hours .cover-sky,
.cover-signal-bloom .cover-sky,
.cover-moon-route .cover-sky {
  filter: hue-rotate(18deg) saturate(0.85);
}

.album-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-center {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  padding: 20px 8px;
}

.api-search {
  display: grid;
  gap: 8px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
  align-items: center;
}

.search-input,
.search-button {
  min-height: 36px;
  border: 1px solid rgba(123, 46, 27, 0.12);
  border-radius: 9px;
  color: #34262a;
  background: rgba(255, 255, 255, 0.48);
}

.search-input {
  width: 100%;
  padding: 0 12px;
  outline: none;
}

.search-button {
  color: #fff7fb;
  cursor: pointer;
  font-weight: 800;
  background: #7b2e1b;
}

.search-button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.search-input:focus,
.search-button:focus-visible {
  border-color: rgba(123, 46, 27, 0.38);
  box-shadow: 0 0 0 3px rgba(123, 46, 27, 0.12);
  outline: none;
}

.api-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 160px;
  overflow: auto;
}

.api-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(47, 41, 50, 0.74);
  background: rgba(255, 247, 244, 0.42);
  text-align: left;
}

.result-main,
.queue-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  text-align: left;
}

.api-result strong,
.api-result span,
.queue-item strong,
.queue-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-result strong,
.queue-item strong {
  color: #34262a;
  font-size: 0.78rem;
}

.api-result span,
.queue-item span {
  font-size: 0.7rem;
}

.api-result:hover,
.api-result.is-active {
  background: rgba(123, 46, 27, 0.12);
}

.pager-row,
.batch-row,
.library-tabs,
.result-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pager-row {
  justify-content: space-between;
}

.page-label {
  color: rgba(47, 41, 50, 0.64);
  font-size: 0.72rem;
  font-weight: 800;
}

.mini-button,
.chip-button,
.tab-button {
  border: 0;
  border-radius: 999px;
  color: #7b2e1b;
  cursor: pointer;
  font-weight: 800;
  background: rgba(255, 247, 244, 0.58);
}

.mini-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.chip-button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 0.9rem;
}

.tab-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
}

.mini-button:hover,
.chip-button:hover,
.tab-button:hover,
.tab-button.is-active {
  color: #fff7fb;
  background: #7b2e1b;
}

.mini-button:disabled,
.search-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.library-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 247, 244, 0.34);
}

.library-tabs {
  justify-content: space-between;
}

.batch-row {
  flex-wrap: wrap;
}

.queue-list {
  display: grid;
  gap: 6px;
  max-height: 126px;
  overflow: auto;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px 26px;
  gap: 6px;
  align-items: center;
  border-radius: 8px;
  padding: 7px 8px;
  background: rgba(255, 247, 244, 0.42);
}

.queue-item.is-active {
  background: rgba(123, 46, 27, 0.14);
}

.empty-list {
  margin: 0;
  color: rgba(47, 41, 50, 0.64);
  font-size: 0.78rem;
}

.track-info {
  display: grid;
  gap: 6px;
  color: #2f2932;
}

.track-kicker {
  margin: 0;
  color: rgba(123, 46, 27, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.track-info h1 {
  max-width: 360px;
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.track-info .artist,
.track-info .album {
  margin: 0;
  line-height: 1.2;
}

.track-info .artist {
  color: #8a341f;
  font-size: 1rem;
  font-weight: 800;
}

.track-info .album {
  color: rgba(47, 41, 50, 0.68);
  font-size: 0.84rem;
}

.waveform {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 44px;
  margin-top: 12px;
  overflow: hidden;
}

.waveform span {
  width: 3px;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(181, 55, 79, 0.86), rgba(181, 55, 79, 0.22));
  box-shadow: none;
  transform-origin: bottom;
  animation: equalize 1700ms ease-in-out infinite alternate;
  animation-delay: calc(var(--bar-height) * -21ms);
}

.progress-shell {
  display: grid;
  gap: 8px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 16px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.progress-track::before,
.progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}

.progress-track::before {
  width: 100%;
  background: rgba(82, 45, 42, 0.17);
}

.progress-fill {
  width: var(--progress);
  background: linear-gradient(90deg, #7b2e1b, #d36a55);
  box-shadow: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: var(--progress);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7b2e1b;
  box-shadow: 0 4px 12px rgba(78, 27, 19, 0.28);
  transform: translate(-50%, -50%);
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: rgba(47, 41, 50, 0.55);
  font-size: 0.72rem;
}

.playback-controls {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  gap: 12px;
  align-items: center;
  justify-content: start;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #7b2e1b;
  cursor: pointer;
  background: transparent;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-button svg,
.volume-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  background: rgba(123, 46, 27, 0.1);
  transform: translateY(-2px);
}

.icon-button:focus-visible,
.progress-track:focus-visible,
.volume-slider:focus-visible {
  outline: 3px solid rgba(255, 176, 111, 0.82);
  outline-offset: 4px;
}

.play-button {
  width: 46px;
  height: 46px;
  color: #fff7fb;
  background: #7b2e1b;
  box-shadow: 0 12px 24px rgba(78, 27, 19, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.play-button:hover {
  background: #8f3721;
  transform: translateY(-3px) scale(1.02);
}

.play-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 3;
}

.volume-control {
  display: grid;
  grid-template-columns: 24px minmax(120px, 1fr) 24px;
  gap: 8px;
  align-items: center;
  max-width: 280px;
  width: 100%;
  margin: 0;
}

.volume-icon {
  display: grid;
  place-items: center;
  color: rgba(47, 41, 50, 0.7);
}

.volume-icon:first-child {
  opacity: 0.7;
}

.volume-slider {
  width: 100%;
  accent-color: #7b2e1b;
}

.lyrics-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 300px;
  max-height: 300px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(123, 46, 27, 0.08);
  border-radius: 12px;
  background: rgba(255, 247, 244, 0.5);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.lyrics-panel::before {
  position: absolute;
  top: 28%;
  right: 12px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, #7b2e1b 0 22%, rgba(82, 45, 42, 0.13) 22% 100%);
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.lyrics-header h2 {
  margin: 0;
  font-family: inherit;
  color: #34262a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lyrics-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 0 24px 0 0;
  overflow: auto;
  list-style: none;
  color: rgba(47, 41, 50, 0.74);
  font-size: 0.82rem;
  line-height: 1.45;
  scrollbar-width: none;
}

.lyrics-list::-webkit-scrollbar {
  width: 0;
}

.lyrics-list .is-current {
  margin: 8px 0;
  color: #9d3a22;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  text-shadow: none;
}

@keyframes equalize {
  from {
    transform: scaleY(0.68);
    opacity: 0.62;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .music-stage {
    grid-template-columns: 220px minmax(260px, 1fr);
    align-items: stretch;
    width: min(820px, calc(100% - 28px));
    padding: 22px;
  }

  .lyrics-panel {
    grid-column: 1 / -1;
    min-height: auto;
    max-height: 230px;
  }

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

  .album-art {
    width: 190px;
  }

  .radio-console {
    grid-template-columns: 220px minmax(260px, 1fr);
    width: min(840px, 100%);
  }

  .radio-console .lyrics-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .topbar,
  .hero-actions,
  .control-row {
    align-items: stretch;
  }

  .topbar,
  .hero,
  .studio-layout,
  .room-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .nav-links {
    justify-content: space-between;
  }

  .receiver {
    min-height: 340px;
    transform: none;
  }

  .track-item {
    grid-template-columns: 1fr;
  }

  .track-item em {
    max-width: none;
    text-align: left;
  }

  .music-stage {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 430px);
    padding: 18px;
    padding-top: 56px;
    gap: 18px;
  }

  .menu-button {
    top: 14px;
    right: 14px;
    left: auto;
  }

  .album-art {
    width: min(100%, 220px);
    margin: 0 auto;
  }

  .track-info {
    text-align: center;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .api-results {
    grid-template-columns: 1fr;
  }

  .track-info h1 {
    margin-inline: auto;
    font-size: 1.55rem;
  }

  .waveform {
    height: 42px;
  }

  .waveform span {
    width: 3px;
  }

  .playback-controls {
    grid-template-columns: repeat(5, 40px);
    justify-content: center;
    gap: 8px;
  }

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

  .volume-control {
    grid-template-columns: 28px minmax(120px, 1fr) 28px;
    gap: 10px;
  }

  .lyrics-panel {
    max-height: 260px;
    border-radius: 14px;
    padding: 18px;
  }

  .lyrics-panel::before {
    display: none;
  }

  .lyrics-list {
    grid-template-columns: 1fr;
    max-height: 300px;
    padding-right: 0;
  }

  .site-switch {
    top: 10px;
  }

  .radio-stage {
    width: min(100% - 24px, 430px);
    padding-top: 64px;
  }

  .radio-console {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .radio-header {
    display: grid;
  }

  .radio-actions {
    justify-content: flex-start;
  }
}

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