:root {
  --ink: #10131d;
  --panel: #151a29;
  --panel-soft: #1d2537;
  --muted: #8f99aa;
  --line: rgba(255, 255, 255, 0.11);
  --white: #ffffff;
  --teal: #2ac7d8;
  --blue: #427dff;
  --coral: #ff6f61;
  --lime: #d8f572;
  --page: #f6f7fb;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 184px;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 12%, rgba(42, 199, 216, 0.18), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(255, 111, 97, 0.12), transparent 28%),
    #0d111b;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 220ms ease;
}

.app-shell.is-menu-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px;
  background: rgba(10, 14, 23, 0.76);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: opacity 180ms ease, transform 220ms ease, padding 220ms ease;
}

.app-shell.is-menu-collapsed .sidebar {
  padding-inline: 0;
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
}

.menu-toggle {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 238px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(18px);
  transition: left 220ms ease, transform 180ms ease;
}

.app-shell.is-menu-collapsed .menu-toggle {
  left: 14px;
  transform: rotate(180deg);
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 680;
}

.studio-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.studio-brand img {
  width: 100%;
  height: 100%;
  display: block;
}

.studio-nav {
  display: grid;
  gap: 8px;
}

.studio-nav a,
.sidebar-exit,
.soft-button,
.primary-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 620;
}

.studio-nav a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.studio-nav a.is-active,
.studio-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-exit {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border-color: var(--line);
}

.studio-main {
  padding: 22px clamp(16px, 3vw, 38px) 42px;
}

.console-header,
.section-heading,
.broadcast-card__header,
.broadcast-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 680;
  text-transform: uppercase;
}

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

.broadcast-card h2,
.share-card h2,
.deck-section h2 {
  margin-bottom: 0;
  font-weight: 680;
  letter-spacing: 0;
}

.onair-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.onair-status span {
  width: 9px;
  height: 9px;
  background: var(--muted);
  border-radius: 50%;
}

.onair-status.is-live span {
  background: #ff3b30;
  box-shadow: 0 0 0 8px rgba(255, 59, 48, 0.12);
}

.studio-view {
  display: none;
}

.studio-view.is-active {
  display: block;
}

.console-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px);
}

.console-header {
  margin-bottom: 18px;
}

.console-header #station-handle {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-weight: 680;
}

.live-controls {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(170px, auto) minmax(140px, auto) 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.mic-button.is-muted {
  color: #10131d;
  background: var(--lime);
  border-color: transparent;
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 16px;
}

.compact-panel {
  min-height: 100%;
}

.config-grid {
  display: grid;
  gap: 24px;
}

.broadcast-card,
.share-card,
.deck-section,
.pad-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px);
}

.broadcast-card {
  flex: 1.2;
  padding: 24px;
}

.channel-banner,
.public-preview__banner,
.public-listen-banner {
  position: relative;
  min-height: 150px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 24% 30%, rgba(42, 199, 216, 0.32), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(255, 111, 97, 0.22), transparent 30%),
    linear-gradient(135deg, #18213a, #101522);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-avatar,
.public-preview__avatar,
.public-listen-avatar {
  position: absolute;
  left: 18px;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--lime));
  background-size: cover;
  background-position: center;
  border: 4px solid #111522;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 720;
}

.broadcast-card__header {
  padding-top: 12px;
}

.share-card {
  flex: 0.8;
  padding: 24px;
}

.broadcast-card h2,
.share-card h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1;
}

.broadcast-card p,
.share-card p,
.hint {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.listener-counter {
  position: fixed;
  z-index: 45;
  top: 18px;
  right: 22px;
  min-width: 112px;
  padding: 10px 12px;
  text-align: center;
  background: rgba(16, 19, 29, 0.86);
  border: 1px solid rgba(42, 199, 216, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.listener-counter > strong,
.listener-counter > span {
  display: block;
}

.listener-counter strong {
  font-size: 26px;
  line-height: 1;
}

.listener-counter span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 560;
}

.field input,
.share-box input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.field select option {
  color: #10131d;
  background: #ffffff;
}

.onair-button {
  min-height: 52px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, #ff3b30, var(--coral));
  border: 0;
  border-radius: 999px;
  font-weight: 680;
  box-shadow: 0 18px 44px rgba(255, 59, 48, 0.2);
}

.onair-button.is-live {
  background: linear-gradient(135deg, #202838, #111522);
  border: 1px solid var(--line);
}

.soft-button,
.share-box button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.primary-button {
  color: #08111a;
  background: var(--teal);
}

.share-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 20px 0 12px;
}

.share-box button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.deck-section {
  padding: 18px;
}

.channel-section {
  margin-bottom: 24px;
}

.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
}

.channel-form {
  display: grid;
  align-content: start;
}

.field textarea {
  width: 100%;
  min-height: 104px;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  resize: vertical;
  font: inherit;
}

.field input[type="file"] {
  display: grid;
  align-items: center;
  padding: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.public-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.public-preview__banner {
  min-height: 126px;
}

.public-preview__avatar {
  width: 62px;
  height: 62px;
  font-size: 23px;
}

.public-preview h3 {
  margin: 28px 0 8px;
  font-size: 28px;
}

.public-preview p,
.public-preview small {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.deck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.sound-grid button {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--pad-color, var(--teal)) 45%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 650;
  transition: transform 180ms ease, border-color 180ms ease;
}

.sound-grid button .pad-title,
.sound-grid button .pad-time {
  position: relative;
  z-index: 2;
}

.sound-grid button .pad-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-grid button .pad-time {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 560;
}

.sound-grid button .pad-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.sound-grid button .pad-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--pad-color, var(--lime));
  transition: width 120ms linear;
}

.sound-grid button:hover,
.sound-grid button.is-selected {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--pad-color, var(--teal)) 70%, white);
}

.sound-grid button.is-playing {
  border-color: color-mix(in srgb, var(--pad-color, var(--lime)) 75%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pad-color, var(--lime)) 40%, transparent);
}

.sound-grid button.is-paused {
  opacity: 0.78;
}

.sound-grid button[data-index],
.music-result[data-remote-drag-track] {
  cursor: grab;
}

.sound-grid button[data-index]:active,
.music-result[data-remote-drag-track]:active {
  cursor: grabbing;
}

.config-sound-grid {
  margin-bottom: 18px;
}

.mic-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0 18px;
}

.mic-meter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 7px;
  height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.mic-meter span {
  height: calc(12px + (var(--level, 0) * 56px));
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lime), var(--teal));
  opacity: 0.45;
  transition: height 90ms ease, opacity 90ms ease;
}

.mic-meter.is-hot span {
  opacity: 0.9;
}

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

.mic-presets button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.mic-presets button.is-active {
  color: #10131d;
  border-color: transparent;
  background: var(--lime);
}

.mic-settings .field {
  margin: 12px 0;
}

.pad-editor {
  padding: 20px;
}

.music-section {
  margin-top: 0;
}

#sonidos .section-heading {
  margin-bottom: 28px;
}

.music-section .section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}

.music-section .upload-button {
  width: 100%;
  justify-content: center;
}

.music-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.music-search__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.music-search__field span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.music-search__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
}

.music-search__field input:focus {
  border-color: rgba(42, 199, 216, 0.7);
  box-shadow: 0 0 0 3px rgba(42, 199, 216, 0.12);
}

.music-results {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.music-result,
.music-results__empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.music-results__empty {
  display: block;
  color: rgba(255, 255, 255, 0.66);
}

.music-result__cover {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #10131d;
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 900;
}

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

.music-result__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.music-result__copy strong,
.music-result__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-result__copy strong {
  font-size: 14px;
  font-weight: 760;
}

.music-result__copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.music-result > button {
  min-height: 40px;
  padding: 0 14px;
}

.music-player {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 0;
}

.music-player > div {
  min-width: 0;
}

.music-player h3 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.music-progress {
  display: grid;
  gap: 7px;
  margin: 10px 0 14px;
}

.music-seek {
  width: 100%;
  height: 24px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--cyan);
}

.music-seek::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) var(--music-progress, 0%), rgba(255, 255, 255, 0.13) var(--music-progress, 0%));
}

.music-seek::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5.5px;
}

.music-seek::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.music-seek::-moz-range-progress {
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
}

.music-progress__time {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.music-controls {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.music-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.music-actions button {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}

.music-actions .icon-button {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
}

.music-icon {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.music-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.music-volume strong {
  color: var(--white);
  text-align: right;
  font-size: 12px;
}

.queue-list {
  display: none;
  gap: 10px;
  margin-top: 16px;
}

.queue-item,
.empty-queue {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.queue-track {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.queue-track span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.queue-track strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 620;
}

.queue-remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.queue-remove:hover {
  color: #10131d;
  border-color: transparent;
  background: var(--lime);
}

.danger-button {
  color: #ffb7af;
  border-color: rgba(255, 111, 97, 0.28);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#live-audio {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.queue-item.is-current {
  border-color: rgba(42, 199, 216, 0.42);
  background: rgba(42, 199, 216, 0.1);
}

.program-timeline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 0;
  height: 178px;
  padding: 0;
  background: rgba(9, 12, 19, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -20px 54px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.program-timeline__head {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 12px 16px 18px;
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.program-timeline__head strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.05;
}

.program-timeline__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.program-timeline__actions .soft-button {
  min-height: 32px;
  width: 100%;
  padding: 0 8px;
  font-size: 12px;
}

.program-timeline__rail {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 28px 1fr;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 44px 20px 18px;
  scrollbar-color: rgba(42, 199, 216, 0.65) rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px) 18px 31px / 72px 18px repeat-x,
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px) 18px 42px / 24px 78px repeat-x;
}

.program-timeline__rail::before {
  content: "00:00   00:15   00:30   00:45   01:00   01:15   01:30";
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 760;
  word-spacing: 26px;
  white-space: nowrap;
  pointer-events: none;
}

.timeline-live-progress {
  position: absolute;
  z-index: 3;
  top: 38px;
  bottom: 12px;
  left: calc(var(--program-x, 18px) - 7px);
  width: 14px;
  background: transparent;
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
}

.timeline-live-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1), 0 0 18px rgba(255, 59, 48, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-live-progress::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff3b30;
  transform: translateX(-50%);
}

.timeline-empty,
.timeline-card {
  min-height: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.timeline-empty {
  grid-row: 2;
  width: min(520px, 72vw);
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.58);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 12px, transparent 12px 24px),
    rgba(255, 255, 255, 0.035);
  border-style: dashed;
  text-align: left;
}

.timeline-card {
  position: relative;
  grid-row: 2;
  width: var(--clip-width, 220px);
  min-width: 56px;
  max-width: 560px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(25, 31, 45, 0.96);
  cursor: grab;
  box-shadow: inset 3px 0 0 var(--teal);
}

.timeline-card:active {
  cursor: grabbing;
}

.timeline-card.is-current {
  border-color: rgba(42, 199, 216, 0.9);
  background:
    linear-gradient(180deg, rgba(42, 199, 216, 0.24), rgba(255, 255, 255, 0.05)),
    rgba(25, 31, 45, 0.96);
}

.timeline-card.is-selected {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.timeline-card.is-dragging {
  opacity: 0.48;
}

.timeline-card.is-ad {
  border-color: rgba(255, 111, 97, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 111, 97, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(25, 31, 45, 0.96);
  box-shadow: inset 3px 0 0 var(--coral);
}

.timeline-card.is-pad {
  border-color: rgba(216, 245, 114, 0.42);
  box-shadow: inset 3px 0 0 var(--lime);
}

.timeline-card.is-pad .timeline-card__top {
  color: var(--lime);
}

.timeline-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline-card.is-ad .timeline-card__top {
  color: #ffb7af;
}

.timeline-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.16;
}

.timeline-wave {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  opacity: 0.68;
}

.timeline-wave i {
  width: 3px;
  min-width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.timeline-card.is-current .timeline-wave i {
  background: rgba(216, 245, 114, 0.72);
}

.timeline-card.is-ad .timeline-wave i {
  background: rgba(255, 183, 175, 0.68);
}

.timeline-card.is-pad .timeline-wave i {
  background: rgba(216, 245, 114, 0.64);
}

.timeline-card__bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.timeline-card__bar span {
  display: block;
  width: var(--item-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
}

.timeline-resize {
  position: absolute;
  top: 10px;
  right: 4px;
  bottom: 10px;
  width: 12px;
  border-radius: 999px;
  cursor: ew-resize;
}

.timeline-resize::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%);
}

.timeline-resize:hover::after {
  background: var(--white);
}

.timeline-drag-ghost {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  max-width: 220px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(24, 31, 45, 0.96);
  border: 1px solid rgba(42, 199, 216, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  font-size: 13px;
  font-weight: 800;
}

.empty-queue {
  display: block;
  color: rgba(255, 255, 255, 0.62);
}

.listen-body {
  min-height: 100vh;
}

.listen-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.public-brand {
  position: fixed;
  top: 22px;
  left: 22px;
}

.listen-card {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.public-listen-banner {
  min-height: 190px;
  margin-bottom: 34px;
}

.public-listen-avatar {
  left: 50%;
  bottom: -34px;
  width: 86px;
  height: 86px;
  border-color: #151a29;
  transform: translateX(-50%);
}

.listen-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
}

.public-description {
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.public-schedule {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 8px 12px;
  color: var(--lime);
  background: rgba(216, 245, 114, 0.1);
  border: 1px solid rgba(216, 245, 114, 0.18);
  border-radius: 999px;
  font-size: 14px;
}

.station-switcher {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  max-width: 390px;
  margin: 22px auto 0;
}

.station-switcher button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.station-switcher button:hover {
  background: rgba(216, 245, 114, 0.14);
  transform: translateY(-1px);
}

.station-switcher button:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

.station-switcher span,
.station-switcher strong {
  display: block;
}

.station-switcher span {
  color: var(--muted);
  font-size: 13px;
}

.station-switcher strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
}

.public-wave {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 8px;
  height: 94px;
  margin: 30px 0;
}

.public-wave span {
  width: 12px;
  min-height: 22px;
  background: linear-gradient(180deg, var(--teal), var(--lime));
  border-radius: 999px;
  animation: public-pulse 900ms ease-in-out infinite alternate;
}

.public-wave span:nth-child(2) {
  animation-delay: 120ms;
}

.public-wave span:nth-child(3) {
  animation-delay: 240ms;
}

.public-wave span:nth-child(4) {
  animation-delay: 360ms;
}

.public-wave span:nth-child(5) {
  animation-delay: 480ms;
}

.public-wave span:nth-child(6) {
  animation-delay: 600ms;
}

@keyframes public-pulse {
  from {
    height: 24px;
  }
  to {
    height: 92px;
  }
}

@media (min-width: 760px) {
  .music-search {
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: end;
  }

  .music-result {
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
  }

  .music-result__cover {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    width: 100%;
    max-width: 100vw;
  }

  .app-shell.is-menu-collapsed .sidebar {
    display: none;
  }

  .menu-toggle,
  .app-shell.is-menu-collapsed .menu-toggle {
    top: 14px;
    left: 14px;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 16px;
    padding: 14px;
  }

  .studio-brand {
    justify-content: center;
  }

  .studio-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    overflow-x: auto;
  }

  .studio-nav a {
    justify-content: center;
    min-width: 82px;
    padding: 0 10px;
    font-size: 13px;
  }

  .sidebar-exit {
    margin-top: 0;
  }

  .studio-main {
    width: 100%;
    max-width: 100vw;
    padding: 62px 14px 194px;
    overflow-x: hidden;
  }

  .console-header,
  .section-heading,
  .broadcast-card__header,
  .broadcast-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .console-panel,
  .deck-section,
  .compact-panel,
  .music-player,
  .broadcast-card,
  .share-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .operator-grid,
  .deck-layout,
  .channel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

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

  .console-header #station-handle {
    font-size: clamp(28px, 9vw, 40px);
    overflow-wrap: anywhere;
  }

  .listener-counter {
    top: 12px;
    right: 12px;
    width: auto;
    min-width: 92px;
    padding: 8px 10px;
  }

  .listener-counter strong {
    font-size: 22px;
  }

  .listener-counter .onair-status {
    margin-top: 8px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .live-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .music-controls {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .music-player {
    grid-template-columns: 1fr;
  }

  .music-actions {
    justify-content: stretch;
  }

  .music-actions button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 246px;
  }

  .studio-main {
    padding-bottom: 246px;
  }

  .program-timeline {
    grid-template-columns: 1fr;
    height: 212px;
  }

  .program-timeline__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .program-timeline__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 210px;
  }

  .program-timeline__rail {
    grid-auto-columns: minmax(148px, 74vw);
    padding: 38px 12px 12px;
  }

  .timeline-card,
  .timeline-empty {
    min-height: 86px;
  }

  .console-panel {
    padding: 14px;
  }

  .broadcast-card,
  .share-card,
  .deck-section {
    padding: 14px;
  }

  .console-header {
    margin-bottom: 14px;
  }

  .broadcast-hint,
  .hint {
    overflow-wrap: anywhere;
  }

  .share-box {
    grid-template-columns: 1fr;
  }

  .broadcast-actions {
    gap: 10px;
  }

  .onair-button,
  .soft-button,
  .primary-button,
  .upload-button {
    width: 100%;
  }

  .music-controls {
    grid-template-columns: 1fr;
  }

  .music-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .music-actions button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    font-size: 14px;
  }

  .music-result {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .music-result > button {
    grid-column: span 1;
    width: 100%;
  }

  .music-volume {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .music-volume input {
    grid-column: 1 / -1;
    order: 3;
  }

  .mic-settings,
  .mic-presets {
    grid-template-columns: 1fr;
  }

  .sound-grid button {
    min-height: 92px;
  }

  .public-brand {
    position: static;
    margin: 0 auto 18px;
    justify-content: center;
  }

  .listen-shell {
    align-content: start;
    padding: 14px;
  }

  .listen-card {
    padding: 18px;
  }

  .station-switcher {
    grid-template-columns: 46px 1fr 46px;
    gap: 8px;
  }

  .station-switcher button {
    width: 46px;
    height: 46px;
  }
}
