/* plbck: dark "console" look, one lime accent. Fonts are self-hosted (OFL), see /fonts. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  --bg: #0c0d0f;
  --bg-2: #101215;
  --surface: #14161a;
  --surface-2: #1b1e23;
  --line: #262a31;
  --line-2: #3a3f48;
  --bar-off: #2b3038;
  --text: #eceae4;
  --text-2: #c9c7c0;
  --muted: #8e939c;
  --accent: #d2ff3a;
  --on-accent: #0c0d0f;
  --danger: #ff8a6b;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header / footer */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__in {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  padding: 12px 0;
}

.nav a[aria-current='page'] {
  color: var(--accent);
}

.nav--small {
  font-size: 12px;
  color: var(--muted);
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.site-footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  padding-block: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- shared pieces */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--plain {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

h2.label {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
}

.link-mono {
  display: inline-block;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.muted--small {
  font-size: 13px;
}

.lead {
  max-width: 52ch;
  font-size: 19px;
  color: var(--muted);
}

.lead--page {
  margin: -16px 0 40px;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}

.btn--ghost {
  border-color: var(--line-2);
  font-weight: 500;
}

.btn--ghost:hover {
  border-color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

.panel__foot {
  display: block;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__foot--static {
  border-top: 1px solid var(--line);
}

.notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--surface-2);
  color: var(--text-2);
}

.notice a {
  color: var(--accent);
}

.error {
  min-height: 20px;
  font-size: 14px;
  color: var(--danger);
}

/* forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field--grow {
  flex: 1 1 200px;
}

.field--name {
  flex: 0 1 180px;
  min-width: 120px;
}

.field--short {
  max-width: 260px;
}

input:not([type='range'], [type='file'], [type='checkbox']),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 0;
  font-size: 16px;
  color: var(--text);
}

textarea {
  padding-block: 10px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input[type='file'] {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px dashed var(--line-2);
  font-size: 14px;
  color: var(--muted);
}

input[type='file']::file-selector-button {
  margin-right: 12px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
}

input[type='range'] {
  accent-color: var(--accent);
  width: 180px;
  min-height: 44px;
}

progress {
  accent-color: var(--accent);
  height: 6px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.inline-form--grow {
  flex: 1 1 260px;
}

.inline-form .btn,
.chat__form .btn,
.stack .btn,
.host__row .btn,
.upload__row .btn {
  min-height: 44px;
  padding: 0 24px;
}

.stack .btn {
  align-self: flex-start;
}

/* ---------------------------------------------------------------- waveform + equalizer (built by common.js) */
.wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 96px;
}

.wave__bar {
  flex: 1;
  min-width: 1px;
  background: var(--bar-off);
}

.wave__bar.is-played {
  background: var(--accent);
}

.wave__pin {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--text);
  opacity: 0.45;
  pointer-events: none;
}

.wave__pin.has-label {
  opacity: 1;
  background: rgb(236 234 228 / 45%);
}

.wave__pin span {
  position: absolute;
  top: -2px;
  left: -9px;
  width: 18px;
  height: 18px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.wave__head {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: var(--accent);
  pointer-events: none;
}

.wave--demo {
  height: 112px;
  padding-inline: 4px;
}

.wave--tall {
  height: 200px;
  cursor: pointer;
  touch-action: pan-y;
}

.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 152px;
  overflow: hidden;
}

.viz__bar {
  flex: 1;
  min-width: 2px;
  height: 100%;
  background: var(--accent);
  transform-origin: bottom;
  transform: scaleY(var(--h, 0.5));
  animation: viz var(--d, 1.2s) ease-in-out var(--delay, 0s) infinite;
}

.viz__bar:nth-child(9n + 1) {
  background: var(--text);
}

.viz[data-state='paused'] .viz__bar {
  animation-play-state: paused;
  opacity: 0.45;
}

@keyframes viz {
  0%,
  100% {
    transform: scaleY(calc(var(--h, 0.5) * 0.35));
  }
  50% {
    transform: scaleY(var(--h, 0.5));
  }
}

.eq {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 16px;
  height: 20px;
}

.eq i {
  width: 4px;
  background: var(--accent);
}

.eq i:nth-child(1) {
  height: 55%;
}
.eq i:nth-child(2) {
  height: 100%;
}
.eq i:nth-child(3) {
  height: 35%;
}

/* ---------------------------------------------------------------- inner pages */
.page {
  padding-top: 48px;
}

.page-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 40px;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.back {
  display: inline-block;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.two-col {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.two-col > * {
  flex: 1 1 380px;
  min-width: 0;
}

.form-panel {
  padding: 24px;
}

.form-panel .panel__head {
  margin: -24px -24px 24px;
}

.studio-info .steps {
  margin: 0 0 24px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

.steps li::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.studio-info a {
  color: var(--accent);
}

.prose {
  max-width: 760px;
}

.prose h1 {
  margin-bottom: 32px;
  font-size: clamp(30px, 4vw, 40px);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.prose p,
.prose li {
  color: var(--text-2);
  font-size: 17px;
}

.prose p + p,
.prose ul,
.prose ol {
  margin-top: 16px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
}

.prose ol {
  list-style: decimal;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- home */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 72px;
}

.hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.08;
}

.on-air {
  flex: 1 1 380px;
  min-width: 0;
  align-self: flex-end;
}

.on-air__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.on-air__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.on-air__name {
  font-weight: 600;
}

.on-air__desc {
  font-size: 14px;
  color: var(--muted);
}

.on-air__live {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.wave-strip {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.wave-strip .wave {
  height: 96px;
}

.section {
  padding-top: 88px;
}

.section--last {
  padding-top: 120px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.section h2,
.split__text h2,
.studio-card h2 {
  font-size: clamp(24px, 3vw, 30px);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 176px;
  padding: 24px;
  background: var(--bg);
}

.tile__n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.tile__desc {
  font-size: 14px;
  color: var(--muted);
}

.tile__tags {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 120px;
}

.split__text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split__text .lead {
  max-width: 44ch;
  font-size: 18px;
}

.split > .panel {
  flex: 1 1 480px;
  min-width: 0;
  align-self: flex-start;
  background: transparent;
}

.room-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.room-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.room-row__name {
  font-weight: 600;
  font-size: 18px;
}

.room-row__now {
  font-size: 14px;
  color: var(--muted);
}

.room-row__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.room-list__empty {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.room-list__empty a {
  color: var(--accent);
}

.studio-card {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.studio-card__demo {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-comments li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--muted);
}

.demo-comments strong {
  color: var(--text);
  font-weight: 600;
}

.demo-comments .t {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* ---------------------------------------------------------------- radio */
.radio {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.radio__stations {
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 0;
}

.station-list {
  border-top: 1px solid var(--line);
}

.station-list li {
  border-bottom: 1px solid var(--line);
}

.station {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  text-align: left;
}

.station .eq i {
  background: #4a505a;
}

.station .eq i:nth-child(1) {
  height: 30%;
}
.station .eq i:nth-child(2) {
  height: 60%;
}
.station .eq i:nth-child(3) {
  height: 40%;
}

.station[aria-pressed='true'] {
  background: var(--surface);
}

.station[aria-pressed='true'] .eq i {
  background: var(--accent);
}

.station[aria-pressed='true'] .eq i:nth-child(1) {
  height: 55%;
}
.station[aria-pressed='true'] .eq i:nth-child(2) {
  height: 100%;
}
.station[aria-pressed='true'] .eq i:nth-child(3) {
  height: 35%;
}

.station__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.station__name {
  font-weight: 600;
}

.station__desc {
  font-size: 14px;
  color: var(--muted);
}

.radio__main {
  flex: 3 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.player {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
}

.player__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.player__top > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.player h2 {
  font-size: clamp(24px, 3vw, 33px);
}

.player__now {
  color: var(--muted);
}

.player__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.player__count span {
  color: var(--text);
}

.player__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.player__source {
  margin-left: auto;
  padding: 12px 0;
}

.credit {
  font-size: 14px;
  color: var(--muted);
}

.credit a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.play-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  fill: var(--on-accent);
}

.play-btn:hover {
  filter: brightness(1.08);
}

.play-btn--sm {
  width: 56px;
  height: 56px;
}

.play-btn .icon-pause,
.play-btn[data-state='playing'] .icon-play {
  display: none;
}

.play-btn[data-state='playing'] .icon-pause {
  display: block;
}

.vol {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 360px;
  padding: 16px 24px;
  overflow-y: auto;
}

.chat__log strong {
  font-weight: 600;
}

.chat__log strong.is-me {
  color: var(--accent);
}

.chat__log span {
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.chat__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- room */
.room {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.room__main {
  flex: 3 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.room__side {
  flex: 2 1 340px;
  min-width: 0;
}

.room__side .chat__log {
  min-height: 420px;
  max-height: 520px;
}

.room__side .chat__form {
  flex-direction: column;
  align-items: stretch;
}

.room__side .field--name {
  flex: none;
  max-width: none;
}

.now {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.now__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.now__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.now__by {
  margin-top: -14px;
  font-size: 18px;
  color: var(--muted);
}

.progress {
  height: 6px;
  background: var(--bar-off);
}

.progress__fill {
  width: 0;
  height: 100%;
  background: var(--accent);
}

.progress__time {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.tap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  color: var(--text-2);
}

.tap span {
  flex: 1 1 240px;
}

.host {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px;
  background: transparent;
}

.host__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.host__head h2 {
  font-size: 16px;
}

.host__head p {
  font-size: 14px;
  color: var(--muted);
}

.host__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.host__row .inline-form {
  margin-left: auto;
}

.host__row .field input {
  width: 96px;
}

.queue {
  background: transparent;
}

.queue__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
}

.queue__n {
  width: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.queue__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.queue__title {
  font-weight: 600;
}

.queue__by {
  font-size: 14px;
  color: var(--muted);
}

.queue__empty {
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.queue__add {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 24px 32px;
}

.queue .panel__head {
  padding-inline: 32px;
}

/* ---------------------------------------------------------------- studio project */
.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 40px;
}

.project-head h1 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.field--share {
  flex: 0 1 460px;
  min-width: 260px;
}

.field--share input {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
}

.project {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.review {
  flex: 3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.review__head {
  padding: 28px 32px 0;
}

.review__head h2 {
  margin-bottom: 6px;
}

.review__head h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  min-height: 1em;
}

.review__wave {
  padding: 24px 32px 0;
}

.review__transport {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 32px 28px;
  border-bottom: 1px solid var(--line);
}

.timecode {
  font-family: var(--font-mono);
  font-size: 22px;
}

.timecode__len {
  color: var(--muted);
}

.review__hint {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.comments {
  display: flex;
  flex-direction: column;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 32px;
  border-bottom: 1px solid var(--line);
}

.comment__time {
  flex: none;
  min-width: 64px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
  color: var(--accent);
}

.comment__text {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.comment__text strong {
  color: var(--text);
  font-weight: 600;
}

.review__form {
  padding: 24px 32px 32px;
}

.project__side {
  flex: 2 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
}

.files li[aria-current='true'] {
  background: var(--surface);
}

.file__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 56px;
  justify-content: center;
  padding: 6px 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.file__title {
  font-weight: 600;
}

.file__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.chip {
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.files li[aria-current='true'] .chip {
  border-color: var(--accent);
  color: var(--accent);
}

.file__del {
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--muted);
}

.file__del:hover {
  color: var(--danger);
}

.files__empty {
  padding: 20px 24px;
  color: var(--muted);
}

.upload__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload__row progress {
  flex: 1;
}

.panel .form-panel {
  padding: 24px;
  background: transparent;
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .site-header__in {
    min-height: 64px;
  }

  .nav {
    gap: 0 16px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 40px;
  }

  .section {
    padding-top: 56px;
  }

  .section--last,
  .split {
    padding-top: 72px;
  }

  .studio-card {
    padding: 24px 20px;
    gap: 32px;
  }

  .player,
  .now {
    padding: 20px;
    gap: 20px;
  }

  .viz {
    height: 96px;
    gap: 2px;
  }

  .viz__bar {
    min-width: 1px;
  }

  .wave {
    gap: 2px;
  }

  .page {
    padding-top: 28px;
  }

  .page-head {
    margin-bottom: 28px;
  }

  .panel__head,
  .panel__foot,
  .chat__log,
  .chat__form,
  .room-row,
  .on-air__row {
    padding-inline: 16px;
  }

  .host,
  .queue .panel__head,
  .queue__item,
  .queue__add,
  .review__head,
  .review__wave,
  .review__transport,
  .comment,
  .review__form {
    padding-inline: 16px;
  }

  .wave--tall {
    height: 140px;
  }

  .review__hint {
    margin-left: 0;
    flex-basis: 100%;
  }

  .player__source {
    margin-left: 0;
  }

  .vol {
    flex: 1 1 100%;
  }

  .vol input {
    flex: 1;
    width: auto;
  }

  .station-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
  }

  .station-list li {
    flex: none;
    border: 0;
  }

  .station {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    white-space: nowrap;
  }

  .station[aria-pressed='true'] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
  }

  .station .eq,
  .station__desc {
    display: none;
  }

  .radio__stations {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .viz__bar {
    animation: none;
  }
}
