:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #11141a;
  --surface-raised: #171b22;
  --line: #282d37;
  --text: #f4f2ed;
  --muted: #969ca8;
  --accent: #d6ff3f;
  --accent-ink: #111500;
  --danger: #ff6969;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(214, 255, 63, 0.08),
      transparent 28rem
    ),
    linear-gradient(135deg, #090b0f 0%, #0b0e13 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}

.shell {
  width: min(1800px, 100%);
  margin: 0 auto;
  padding: 34px;
}
.panel {
  min-height: calc(100vh - 68px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}
.muted {
  color: var(--muted);
}

.login-card {
  position: relative;
  width: min(570px, 100%);
  margin: clamp(8vh, 14vh, 150px) auto 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(23, 27, 34, 0.98),
    rgba(14, 17, 22, 0.98)
  );
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.language-switch {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0e13;
}

.language-button {
  min-width: 44px;
  padding: 7px 9px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.language-button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 14px 14px 3px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.5rem;
  font-weight: 950;
}

.login-card > .muted {
  margin: 14px 0 34px;
  line-height: 1.6;
}
.auth-form + .auth-form {
  margin-top: 18px;
}
.auth-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.875rem;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.discord-login {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition:
    filter 150ms ease,
    transform 150ms ease;
}

.discord-login:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.discord-login:focus-visible {
  outline: 3px solid rgba(88, 101, 242, 0.35);
  outline-offset: 3px;
}
.input-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #0b0e13;
  color: var(--text);
  padding: 13px 15px;
  font-size: 1rem;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 255, 63, 0.13);
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 850;
  transition:
    transform 140ms ease,
    filter 140ms ease,
    background 140ms ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
button:disabled {
  cursor: wait;
  filter: grayscale(0.7);
  opacity: 0.55;
  transform: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.button-icon,
.control-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(214, 255, 63, 0.3);
  outline-offset: 2px;
}
.message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.message.error {
  color: var(--danger);
}

.topbar {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.82fr) minmax(450px, 1.25fr) minmax(290px, 0.72fr) minmax(330px, 0.85fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}
.topbar-brand,
.topbar-stream,
.queue-search,
.topbar-actions,
.stream-copy {
  min-width: 0;
}
.queue-search {
  display: grid;
  gap: 6px;
}
.queue-search span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.queue-search input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.queue-search input::placeholder {
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-audience {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  min-width: 190px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(17, 20, 26, 0.78);
}

.panel-audience > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.panel-audience > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--accent);
  font-size: 1.55rem;
  line-height: 1;
}

.panel-audience small {
  color: var(--muted);
  font-size: 0.65rem;
}

.panel-audience b {
  color: var(--text);
}
.topbar-stream label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.stream-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.stream-copy input {
  height: 40px;
  min-width: 0;
  padding: 8px 12px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}
.stream-copy button {
  background: var(--accent);
  color: var(--accent-ink);
}
.topbar-stream small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-stream a {
  color: var(--text);
}
.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.status-pill,
.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}
.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
}
.status-pill.online i {
  background: var(--accent);
  box-shadow: 0 0 13px rgba(214, 255, 63, 0.7);
}

.workspace {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.82fr) minmax(450px, 1.25fr) minmax(290px, 0.72fr) minmax(330px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.workspace > *,
.primary-column > *,
.library-item > *,
.queue-item > * {
  min-width: 0;
}
.primary-column {
  display: grid;
  gap: 22px;
  align-content: start;
}
.now-card,
.upload-card,
.queue-card,
.library-card,
.interlude-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 20, 26, 0.94);
  overflow: hidden;
}

.interlude-card {
  padding: 28px;
}

.interlude-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.interlude-hint {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.interlude-prefix,
.active-interlude {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(214, 255, 63, 0.22);
  border-radius: 13px;
  background: rgba(214, 255, 63, 0.055);
}

.interlude-prefix-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.interlude-prefix small,
.active-interlude small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.active-interlude {
  margin-top: 10px;
  border-color: rgba(214, 255, 63, 0.55);
}

.active-interlude > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(214, 255, 63, 0.8);
}

.interlude-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 18px;
}

.interlude-upload-form label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.interlude-upload-form input {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.72rem;
}

.interlude-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  margin: 18px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.interlude-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1015;
}

.interlude-item-copy {
  min-width: 0;
}

.interlude-item-copy strong,
.interlude-item-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.interlude-item-copy strong {
  display: -webkit-box;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.interlude-item-copy span {
  white-space: nowrap;
}

.interlude-item-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.interlude-item-actions {
  display: flex;
  gap: 5px;
}

.interlude-item-actions button {
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
}

.interlude-item-actions .interlude-play {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.interlude-item-actions .interlude-play-soft,
.voice-send-soft {
  border-color: #55b8ff;
  background: #238bd2;
  color: #f7fcff;
}

.voice-console {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(85, 184, 255, 0.32);
  border-radius: 13px;
  background: rgba(35, 139, 210, 0.07);
}

.voice-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-console-head small,
.voice-console-head strong {
  display: block;
}

.voice-console-head small {
  margin-bottom: 3px;
  color: #75c6ff;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.voice-recording-time {
  color: #75c6ff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.voice-console-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.voice-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.voice-console-actions button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.7rem;
}

.voice-review {
  display: grid;
  gap: 10px;
}

.voice-review audio {
  width: 100%;
  height: 36px;
}

.voice-review-actions .voice-send-soft {
  border-color: #55b8ff;
  background: #238bd2;
}

.voice-review-actions .voice-send-standard {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.interlude-item-actions .interlude-delete {
  color: #ff9696;
}

.now-card {
  display: grid;
  grid-template-columns: minmax(230px, 38%) 1fr;
  min-height: 390px;
}
.artwork-wrap {
  position: relative;
  min-height: 300px;
  background: #0c0f14;
  overflow: hidden;
}
.artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.artwork-wrap img.visible {
  display: block;
}
.artwork-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.artwork-placeholder span {
  width: 8px;
  border-radius: 99px;
  background: var(--accent);
  animation: meter 1s ease-in-out infinite alternate;
}
.artwork-placeholder span:nth-child(1) {
  height: 28px;
  animation-delay: -0.8s;
}
.artwork-placeholder span:nth-child(2) {
  height: 68px;
  animation-delay: -0.55s;
}
.artwork-placeholder span:nth-child(3) {
  height: 104px;
  animation-delay: -0.3s;
}
.artwork-placeholder span:nth-child(4) {
  height: 62px;
  animation-delay: -0.65s;
}
.artwork-placeholder span:nth-child(5) {
  height: 34px;
  animation-delay: -0.15s;
}
@keyframes meter {
  to {
    transform: scaleY(0.35);
    opacity: 0.55;
  }
}

.track-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 58px);
}
.track-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 1;
  overflow-wrap: anywhere;
}
.progress-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 5px;
  border-radius: 10px;
  background: #30353f;
  overflow: hidden;
}
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}
.transport {
  display: none;
  min-width: 0;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.transport button {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 1.25rem;
}
.transport .transport-primary {
  width: 62px;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.control-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.control-key {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 10px 8px 9px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #1c212a, #14181f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--text);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    transform 100ms ease;
}

.control-key:hover {
  border-color: #505967;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.control-key:active {
  transform: translateY(1px);
}

.control-key-primary {
  border-color: rgba(214, 255, 63, 0.55);
  background: linear-gradient(145deg, #dbff55, #bfe92a);
  color: var(--accent-ink);
}

.control-key-stop {
  color: #ff9d9d;
}

.control-icon {
  display: grid;
  place-items: center;
  line-height: 1;
}

.control-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke-width: 2.2;
}

.control-label {
  overflow: hidden;
  max-width: 100%;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card {
  padding: 28px;
}

.volume-control {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.volume-control input {
  width: 100%;
  accent-color: var(--accent);
}

.volume-control output {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.playback-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mode-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.mode-toggle:has(input:checked) {
  border-color: rgba(214, 255, 63, 0.48);
  color: var(--accent);
}

.mode-toggle input {
  accent-color: var(--accent);
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-top: 22px;
  border: 1px dashed #424957;
  border-radius: 16px;
  background: #0d1015;
  text-align: center;
  transition:
    border-color 150ms,
    background 150ms;
}
.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--accent);
  background: rgba(214, 255, 63, 0.04);
}
.drop-zone strong {
  margin-bottom: 5px;
}
.drop-zone span {
  color: var(--muted);
  font-size: 0.85rem;
}
.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.library-head > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.library-actions button,
.library-item button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
}

.library-sort-label {
  display: flex;
  min-width: 155px;
  flex: 1 1 180px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.library-sort-label select {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.library-sort-label option {
  background: var(--surface);
}

.library-list {
  display: grid;
  gap: 8px;
  max-height: 540px;
  margin: 16px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1015;
}

.library-item strong,
.library-item span {
  display: block;
}

.library-item strong {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.library-name-input {
  width: 100%;
  padding: 7px 9px;
}

.library-item-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.library-item-actions button {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 10px;
}

.library-item .library-favorite-button {
  color: var(--muted);
}

.library-favorite-button .button-icon {
  fill: transparent;
}

.library-item .library-favorite-button.active {
  border-color: rgba(214, 255, 63, 0.48);
  color: var(--accent);
}

.library-item .library-favorite-button.active .button-icon {
  fill: currentColor;
}

.library-item .library-delete-button {
  color: #ff9696;
}

.library-empty {
  padding: 28px 0 6px;
  text-align: center;
}

.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #414754;
  border-radius: 18px;
  background: #171b22;
  padding: 28px;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.confirm-dialog::backdrop {
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 105, 105, 0.45);
  border-radius: 50%;
  background: rgba(255, 105, 105, 0.1);
  color: #ff9696;
  font-weight: 800;
}

.confirm-dialog h2 {
  margin: 18px 0 8px;
}

.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.dialog-actions button {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
}

.dialog-actions .danger-button {
  border-color: rgba(255, 105, 105, 0.45);
  background: rgba(255, 105, 105, 0.12);
  color: #ffadad;
}

.queue-card,
.library-card {
  padding: 28px;
}
.queue-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.counter {
  min-width: 42px;
  justify-content: center;
  color: var(--text);
}
.queue-hint {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
}
.queue-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: queue;
}
.queue-expand {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.queue-expand:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.queue-expand:focus-visible {
  outline: 3px solid rgba(214, 255, 63, 0.18);
  outline-offset: 2px;
}
.queue-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--surface-raised);
  cursor: grab;
}
.queue-item.current {
  cursor: default;
}
.queue-item:hover {
  border-color: #353b47;
}
.queue-item:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgba(214, 255, 63, 0.14);
}
.queue-item.current {
  border-color: rgba(214, 255, 63, 0.45);
  background: rgba(214, 255, 63, 0.07);
}
.queue-item.current .queue-number {
  color: var(--accent);
}
.queue-item.dragging {
  opacity: 0.45;
}
.queue-number {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.queue-copy {
  min-width: 0;
}
.queue-copy strong,
.queue-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-copy strong {
  font-size: 0.92rem;
}
.queue-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}
.remove-button {
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
}
.remove-button:hover {
  color: var(--danger);
}
.queue-position-dialog {
  text-align: center;
}
.queue-dialog-icon {
  margin-inline: auto;
  border-color: rgba(214, 255, 63, 0.45);
  background: rgba(214, 255, 63, 0.1);
  color: var(--accent);
}
.queue-position-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.queue-position-actions button {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
}
.queue-position-actions .queue-position-now {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.queue-position-cancel {
  width: 100%;
  margin-top: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}
.empty-state {
  display: grid;
  min-height: 390px;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}
.empty-state div {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 2rem;
}
.empty-state strong {
  color: var(--text);
}
.empty-state span {
  margin-top: 6px;
  font-size: 0.85rem;
}
.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  max-width: min(420px, calc(100vw - 56px));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171b22;
  padding: 13px 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  border-color: rgba(255, 105, 105, 0.5);
  color: #ff9b9b;
}

.radio-body {
  min-height: 100vh;
  padding: 0;
}

.radio-shell {
  width: 100%;
  min-height: 100vh;
}

.radio-player {
  width: 100%;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 64px);
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 255, 63, 0.08), transparent 32%),
    var(--background);
}

.radio-header {
  width: 100%;
}

.radio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  width: 100%;
  margin-top: clamp(42px, 7vh, 82px);
}

.radio-now,
.radio-voting {
  min-width: 0;
}

.radio-live-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.radio-audience {
  display: flex;
  min-width: 220px;
  min-height: 64px;
  margin-left: clamp(60px, 10vw, 180px);
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 20, 26, 0.78);
}

.radio-audience span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.radio-audience strong {
  color: var(--accent);
  font-size: 1.85rem;
  line-height: 1;
}

.radio-vote-summary {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(214, 255, 63, 0.35);
  border-radius: 13px;
  background: rgba(214, 255, 63, 0.06);
}

.radio-vote-summary strong {
  color: var(--accent);
  font-size: 1rem;
}

.radio-vote-summary span,
.radio-vote-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.radio-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.radio-player h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  line-height: 0.96;
  overflow-wrap: break-word;
}

.radio-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.76rem;
}

.radio-progress > div {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #313641;
}

.radio-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.radio-voting {
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--line);
}

.radio-voting-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.radio-voting-head .radio-kicker {
  margin: 0 0 6px;
}

.radio-voting-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.radio-voting-head > span {
  flex: none;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.radio-my-vote {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(214, 255, 63, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  line-height: 1.45;
}

.radio-vote-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.radio-vote-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1015;
  color: var(--text);
  text-align: left;
}

.radio-vote-option:hover,
.radio-vote-option.selected {
  border-color: var(--accent);
  background: rgba(214, 255, 63, 0.08);
}

.radio-vote-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-vote-option span {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.radio-vote-empty {
  margin: 16px 0 0;
}

.radio-controls {
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.radio-controls button {
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.radio-controls button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.radio-controls input {
  width: 100%;
  padding: 0;
  accent-color: var(--accent);
}

.radio-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.radio-socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: clamp(44px, 7vh, 84px);
  padding-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--line);
}

.radio-social {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 132px;
  padding: clamp(22px, 2.4vw, 34px);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #11141a;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.radio-social:hover,
.radio-social:focus-visible {
  transform: translateY(-4px);
  border-color: currentColor;
}

.radio-social-youtube:hover,
.radio-social-youtube:focus-visible {
  background: rgba(255, 0, 0, 0.13);
  color: #ff4e4e;
}

.radio-social-facebook:hover,
.radio-social-facebook:focus-visible {
  background: rgba(8, 102, 255, 0.15);
  color: #5797ff;
}

.radio-social-discord:hover,
.radio-social-discord:focus-visible {
  background: rgba(88, 101, 242, 0.17);
  color: #8993ff;
}

.radio-social > svg {
  width: 46px;
  height: 46px;
  fill: currentColor;
}

.radio-social-play {
  fill: #11141a;
}

.radio-social > span {
  display: grid;
  gap: 5px;
  color: #fff;
}

.radio-social small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.radio-social strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.radio-social > i {
  font-size: 1.25rem;
  font-style: normal;
}

@media (max-width: 899px) {
  .radio-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 42px;
  }
  .radio-voting {
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .radio-player h1 {
    max-width: none;
  }
  .radio-audience {
    min-width: 190px;
    margin-left: auto;
  }
  .radio-socials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1539px) {
  .topbar {
    grid-template-columns: auto minmax(300px, 1fr) auto;
  }
  .topbar-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .queue-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .workspace {
    grid-template-columns:
      minmax(250px, 0.65fr) minmax(440px, 1.4fr) minmax(280px, 0.75fr);
  }
  .primary-column {
    grid-column: auto;
  }
  .interlude-card {
    grid-column: auto;
  }
  .library-card {
    grid-column: 1 / -1;
  }
  .library-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .now-card {
    grid-template-columns: minmax(230px, 34%) 1fr;
  }
}

@media (max-width: 1099px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .topbar-stream {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .queue-search {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .primary-column {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .library-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 719px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .interlude-card {
    order: 1;
  }
  .primary-column {
    grid-row: auto;
    order: 2;
  }
  .queue-card {
    order: 3;
  }
  .library-card {
    order: 4;
  }
  .queue-card,
  .library-card,
  .interlude-card {
    grid-column: auto;
    min-height: 0;
  }
  .library-list {
    grid-template-columns: 1fr;
  }
  body {
    background: var(--bg);
  }
  .shell {
    padding: 16px;
  }
  .panel {
    min-height: calc(100vh - 36px);
  }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 18px 12px;
  }
  .topbar h1 {
    font-size: 2rem;
  }
  .status-pill {
    display: none;
  }
  .now-card {
    display: block;
    grid-template-columns: 1fr;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .interlude-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-height: none;
  }
  .interlude-item {
    position: relative;
    display: flex;
    min-height: 92px;
    padding: 10px 7px 7px;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    text-align: center;
    cursor: pointer;
  }
  .interlude-item.active {
    border-color: rgba(214, 255, 63, 0.55);
    background: rgba(214, 255, 63, 0.08);
  }
  .interlude-item-copy strong {
    display: -webkit-box;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .interlude-item-copy span {
    display: none;
  }
  .interlude-item-actions {
    width: 100%;
    justify-content: center;
  }
  .interlude-item-actions button {
    min-width: 28px;
    min-height: 28px;
    padding: 4px 6px;
  }
  .interlude-item-actions .interlude-play {
    flex: 1 1 32px;
  }
  .interlude-item-actions .interlude-play-soft {
    flex: 2 1 58px;
  }
  .voice-console-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .artwork-wrap {
    display: none;
  }
  .track-copy {
    padding: 18px 0 24px;
  }
  .track-copy h2 {
    font-size: 1.45rem;
  }
  .progress-row,
  .transport,
  #upload-form {
    display: none;
  }
  .upload-card {
    display: none;
  }
  .control-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .control-key {
    min-height: 86px;
    box-shadow: none;
  }
  .control-label {
    display: none;
  }
  .queue-card,
  .library-card,
  .interlude-card {
    min-height: 0;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .interlude-card {
    padding-top: 0;
    border-top: 0;
  }
  .queue-hint {
    display: none;
  }
  .queue-list {
    margin-top: 18px;
  }
  .empty-state {
    min-height: 150px;
  }
  .empty-state div {
    display: none;
  }
  .input-action {
    grid-template-columns: 1fr;
  }
  .upload-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .upload-footer button {
    width: 100%;
  }
  .library-head {
    align-items: stretch;
    flex-direction: column;
  }
  .library-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .library-sort-label {
    grid-column: 1 / -1;
    min-height: 42px;
  }
  .library-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .library-item-actions {
    display: flex;
  }
  .library-item-actions button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .login-card {
    margin-top: 4vh;
  }
}

@media (max-width: 479px) {
  .shell {
    padding: 12px;
  }
  .topbar {
    grid-template-columns: 1fr;
  }
  .topbar-actions {
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
  }
  .panel-audience {
    min-width: 170px;
  }
  .topbar-brand {
    padding-right: 88px;
  }
  .topbar-stream {
    grid-column: 1;
    grid-row: auto;
  }
  .topbar-stream small {
    white-space: normal;
  }
  .stream-copy input {
    font-size: 0.7rem;
  }
  .library-item {
    grid-template-columns: 1fr;
  }
  .library-item-actions {
    justify-content: flex-start;
  }
  .control-deck {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .control-key {
    min-height: 64px;
  }
  .radio-body {
    padding: 0;
  }
  .radio-player {
    padding: 22px 18px 32px;
  }
  .radio-live-row {
    align-items: stretch;
    flex-direction: column;
  }
  .radio-audience {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .radio-controls {
    grid-template-columns: auto minmax(80px, 1fr) auto;
  }
  .radio-controls label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  input,
  .artwork-placeholder span,
  .toast {
    animation: none;
    transition: none;
  }
}

.is-hidden {
  display: none;
}
