:root {
  color-scheme: dark;
  --bg: #03050b;
  --panel: rgba(7, 10, 16, 0.78);
  --panel-strong: rgba(14, 14, 20, 0.9);
  --line: rgba(246, 197, 104, 0.2);
  --line-hot: rgba(246, 197, 104, 0.48);
  --gold: #f6c568;
  --gold-hot: #ffd98b;
  --amber: #c77c25;
  --text: #fff8e8;
  --soft: #d6c5a4;
  --muted: #93866f;
  --red: #ff564f;
  --green: #35d67d;
  --violet: #8b5cf6;
  --radius: 22px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.54);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(246, 197, 104, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 28%, rgba(199, 124, 37, 0.12), transparent 22rem),
    radial-gradient(circle at 14% 78%, rgba(246, 197, 104, 0.1), transparent 24rem),
    linear-gradient(135deg, #020407, #061014 50%, #020308);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(246, 197, 104, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(246, 197, 104, 0.02) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

body::after {
  background-image:
    radial-gradient(circle, rgba(255, 217, 139, 0.42) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.6px);
  background-position: 0 0, 44px 64px;
  background-size: 118px 118px, 172px 172px;
  opacity: 0.12;
  animation: particleDrift 28s linear infinite;
}

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

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1720px, 100%);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 330px;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 20px 88px;
}

.left-rail,
.right-rail,
.main-stage {
  min-width: 0;
}

.left-rail,
.right-rail {
  display: grid;
  align-content: start;
  gap: 16px;
}

.brand-card,
.main-nav,
.listener-card,
.player-card,
.generator-panel,
.channels-panel,
.now-card,
.automation-card,
.live-card,
.chat-card,
.schedule-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 197, 104, 0.11), transparent 35%),
    linear-gradient(150deg, rgba(9, 12, 18, 0.84), rgba(3, 5, 10, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand-card {
  min-height: 214px;
  display: grid;
  place-items: center;
}

.eagle-badge {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(246, 197, 104, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 217, 139, 0.28), transparent 42%),
    #050609;
  box-shadow: 0 0 36px rgba(246, 197, 104, 0.23);
}

.eagle-badge strong,
.eagle-badge span {
  position: absolute;
  text-align: center;
  text-transform: uppercase;
}

.eagle-badge strong {
  bottom: 36px;
  color: var(--gold-hot);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.eagle-badge span {
  bottom: 21px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.eagle-wing,
.eagle-body {
  position: absolute;
  background: linear-gradient(135deg, #fff0b7, #d8912b 48%, #6c350d);
  filter: drop-shadow(0 0 14px rgba(246, 197, 104, 0.45));
}

.eagle-wing {
  top: 36px;
  width: 70px;
  height: 48px;
  border-radius: 12px 90% 8px 90%;
}

.wing-left {
  left: 27px;
  transform: rotate(-28deg) skewX(-18deg);
}

.wing-right {
  right: 27px;
  transform: rotate(28deg) scaleX(-1) skewX(-18deg);
}

.eagle-body {
  top: 52px;
  width: 38px;
  height: 54px;
  border-radius: 70% 70% 55% 55%;
}

.main-nav {
  display: grid;
  padding: 8px;
}

.main-nav button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-transform: uppercase;
}

.main-nav button span {
  color: var(--gold);
  font-size: 23px;
}

.main-nav button i {
  color: var(--amber);
  font-style: normal;
}

.main-nav button.is-active,
.main-nav button:hover {
  border-color: rgba(246, 197, 104, 0.42);
  background: linear-gradient(135deg, rgba(199, 124, 37, 0.58), rgba(82, 48, 13, 0.48));
}

.listener-card {
  min-height: 102px;
  padding: 16px 18px;
}

.listener-card small,
.panel-head small,
.live-card small,
.now-card small,
.automation-card small,
.hero-title p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.listener-card > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.mini-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #1b1110;
  color: white;
  font-weight: 900;
}

.listener-card strong,
.listener-card em {
  display: block;
}

.listener-card em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.main-stage {
  display: grid;
  gap: 18px;
}

.hero-title {
  min-height: 218px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.hero-title h1 {
  margin: 6px 0 8px;
  color: var(--gold-hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 108px);
  line-height: 0.82;
  text-shadow: 0 0 34px rgba(246, 197, 104, 0.36);
}

.hero-title h1 span {
  display: block;
  margin-top: 20px;
  font-family: inherit;
  font-size: 0.38em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title strong {
  color: var(--gold);
  font-size: clamp(13px, 1.4vw, 19px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.player-section {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.56fr);
  gap: 18px;
}

.player-card {
  min-height: 720px;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 28px 28px 20px;
}

.live-chip {
  z-index: 2;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-hot);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--gold);
  background: rgba(3, 4, 8, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.live-chip i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(246, 197, 104, 0.7);
}

.favorite-button {
  position: absolute;
  right: 30px;
  bottom: 250px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 38px;
}

.halo-player {
  position: relative;
  width: min(620px, 84vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-top: -6px;
}

.halo-marks {
  position: absolute;
  inset: 6%;
  border-radius: 999px;
  background: repeating-conic-gradient(from -8deg, rgba(246, 197, 104, 0.88) 0 1deg, transparent 1deg 4deg);
  mask-image: radial-gradient(circle, transparent 0 63%, black 64% 70%, transparent 71%);
  animation: slowSpin 42s linear infinite;
}

.halo-ring {
  position: absolute;
  border: 2px solid rgba(246, 197, 104, 0.62);
  border-radius: 999px;
  box-shadow:
    inset 0 0 48px rgba(246, 197, 104, 0.08),
    0 0 54px rgba(246, 197, 104, 0.24);
}

.ring-a {
  inset: 15%;
}

.ring-b {
  inset: 23%;
  border-color: rgba(199, 124, 37, 0.42);
}

.eagle-player {
  position: relative;
  width: 70%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, rgba(246, 197, 104, 0.24), transparent 42%),
    radial-gradient(circle at 50% 72%, rgba(4, 5, 10, 0.9), transparent 60%);
}

.eagle-player .eagle-wing {
  top: 23%;
  width: 32%;
  height: 16%;
}

.eagle-player .wing-left {
  left: 24%;
}

.eagle-player .wing-right {
  right: 24%;
}

.eagle-player .eagle-body {
  top: 31%;
  width: 13%;
  height: 17%;
}

.eagle-player strong,
.eagle-player span,
.eagle-player small {
  position: absolute;
  text-align: center;
  text-transform: uppercase;
}

.eagle-player strong {
  bottom: 30%;
  color: var(--gold-hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 78px);
  letter-spacing: 0.08em;
}

.eagle-player span {
  bottom: 22%;
  color: var(--gold-hot);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0.14em;
}

.eagle-player small {
  bottom: 15%;
  color: var(--gold);
}

.track-area {
  margin-top: -22px;
  text-align: center;
}

.track-area h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.track-area p {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
}

.time-line {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--soft);
}

.progress,
.process-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(246, 197, 104, 0.13);
}

.progress i,
.process-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--gold-hot));
  box-shadow: 0 0 22px rgba(246, 197, 104, 0.44);
  transition: width 240ms linear;
}

.controls {
  display: grid;
  grid-template-columns: repeat(5, 68px);
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.controls button,
.top-tools button,
.chat-input button,
.schedule-card button,
.automation-card button,
.generator-actions button,
.section-head button {
  border: 1px solid rgba(246, 197, 104, 0.26);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.72);
  color: var(--text);
  font-weight: 900;
}

.controls button {
  width: 58px;
  height: 58px;
  font-size: 26px;
}

.controls button.is-active {
  color: #1a1007;
  background: linear-gradient(135deg, var(--gold-hot), var(--amber));
  border-color: rgba(246, 197, 104, 0.82);
  box-shadow: 0 0 26px rgba(246, 197, 104, 0.32);
}

.controls .main-play {
  width: 88px;
  height: 88px;
  color: white;
  font-size: 36px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 217, 139, 0.3), rgba(199, 124, 37, 0.56));
  border-color: rgba(246, 197, 104, 0.8);
  box-shadow: 0 0 44px rgba(246, 197, 104, 0.38);
}

.listen-tabs {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px;
  background: rgba(3, 5, 10, 0.68);
}

.listen-tabs button {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 22px;
}

.listen-tabs button span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}

.listen-tabs button.is-active {
  color: var(--gold);
}

.generator-panel {
  min-height: 720px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.panel-head,
.section-head,
.live-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2,
.section-head h2,
.schedule-card h2,
.automation-card h2,
.generator-panel h2 {
  margin: 4px 0 0;
  font-size: 22px;
  text-transform: uppercase;
}

.panel-head > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

textarea,
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(246, 197, 104, 0.18);
  border-radius: 14px;
  background: rgba(3, 4, 9, 0.78);
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.45;
  text-transform: none;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

.api-key-field > span {
  color: var(--soft);
}

.provider-endpoint[hidden] {
  display: none;
}

.provider-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(246, 197, 104, 0.16);
  border-radius: 16px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 8% 20%, rgba(246, 197, 104, 0.12), transparent 30%),
    rgba(3, 4, 9, 0.62);
}

.provider-status span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-status button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.generator-actions button,
.automation-card button,
.section-head button,
.schedule-card button {
  min-height: 42px;
  padding: 0 18px;
  text-transform: uppercase;
}

.generator-actions .gold-action {
  background: linear-gradient(135deg, var(--gold-hot), var(--amber));
  color: #1a1007;
}

.upload-drop {
  position: relative;
  display: grid;
  gap: 7px;
  border: 1px dashed rgba(246, 197, 104, 0.34);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 197, 104, 0.14), transparent 34%),
    rgba(3, 5, 10, 0.54);
  cursor: pointer;
}

.upload-drop span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.upload-drop strong {
  color: white;
  font-size: 18px;
}

.upload-drop small,
.upload-status {
  color: var(--muted);
  font-size: 12px;
}

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

.upload-status {
  margin: 0;
}

.generation-process {
  display: none;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(246, 197, 104, 0.18);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 10% 20%, rgba(246, 197, 104, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(3, 4, 9, 0.9), rgba(18, 12, 5, 0.72));
}

.generation-process.is-active {
  display: grid;
}

.generation-process.is-pending {
  border-color: rgba(246, 197, 104, 0.44);
  box-shadow:
    0 0 28px rgba(246, 197, 104, 0.18),
    inset 0 0 38px rgba(246, 197, 104, 0.05);
}

.generation-process.is-error {
  display: grid;
  border-color: rgba(251, 113, 133, 0.44);
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 113, 133, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(18, 4, 9, 0.92), rgba(18, 12, 5, 0.72));
  box-shadow:
    0 0 28px rgba(251, 113, 133, 0.12),
    inset 0 0 38px rgba(251, 113, 133, 0.04);
}

.process-orb {
  position: relative;
  width: 70px;
  height: 70px;
  border: 1px solid var(--line-hot);
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(246, 197, 104, 0.24);
}

.generation-process.is-pending .process-orb::before,
.generation-process.is-pending .process-orb::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(246, 197, 104, 0.22);
  border-radius: inherit;
  animation: pendingRipple 2.4s ease-out infinite;
}

.generation-process.is-pending .process-orb::after {
  animation-delay: 1.2s;
}

.process-orb i,
.process-orb span {
  position: absolute;
  border-radius: inherit;
}

.process-orb i {
  inset: 20px;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(246, 197, 104, 0.7);
  animation: pulse 1.2s ease-in-out infinite;
}

.process-orb span {
  inset: 6px;
  border: 1px dashed rgba(246, 197, 104, 0.52);
  animation: slowSpin 4s linear infinite;
}

.generation-process.is-error .process-orb {
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 26px rgba(251, 113, 133, 0.2);
}

.generation-process.is-error .process-orb i {
  background: var(--red);
  box-shadow: 0 0 22px rgba(251, 113, 133, 0.5);
}

.generation-process.is-error .process-orb span {
  border-color: rgba(251, 113, 133, 0.48);
}

.generation-process.is-error .pending-wave span {
  background: linear-gradient(180deg, #ffb0bd, rgba(251, 113, 133, 0.26));
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.26);
}

.generation-process.is-error .pending-wave em {
  color: #ffb0bd;
}

.generation-process strong {
  display: block;
  color: white;
}

.generation-process p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.process-copy {
  min-width: 0;
}

.pending-wave {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
}

.pending-wave span {
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hot), rgba(199, 124, 37, 0.26));
  box-shadow: 0 0 16px rgba(246, 197, 104, 0.34);
  animation: pendingBars 1.15s ease-in-out infinite;
}

.pending-wave span:nth-child(2) { animation-delay: 120ms; }
.pending-wave span:nth-child(3) { animation-delay: 240ms; }
.pending-wave span:nth-child(4) { animation-delay: 360ms; }
.pending-wave span:nth-child(5) { animation-delay: 480ms; }

.pending-wave em {
  margin-left: 6px;
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.pending-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pending-stats span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246, 197, 104, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(3, 5, 10, 0.52);
  font-size: 11px;
  font-weight: 900;
}

.worker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 10px;
}

.worker-cell {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(246, 197, 104, 0.14);
  border-radius: 12px;
  padding: 7px 8px;
  background: rgba(3, 5, 10, 0.48);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}

.worker-cell strong,
.worker-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-cell strong {
  color: var(--gold);
  font-size: 10px;
  text-transform: uppercase;
}

.worker-cell.is-running,
.worker-cell.is-retrying {
  border-color: rgba(246, 197, 104, 0.46);
  box-shadow: 0 0 18px rgba(246, 197, 104, 0.1);
}

.worker-cell.is-completed {
  border-color: rgba(74, 222, 128, 0.26);
  color: rgba(187, 247, 208, 0.88);
}

.worker-cell.is-failed {
  border-color: rgba(251, 113, 133, 0.32);
  color: rgba(254, 202, 202, 0.9);
}

.channels-panel {
  padding: 18px;
}

.library-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 197, 104, 0.11), transparent 35%),
    linear-gradient(150deg, rgba(9, 12, 18, 0.84), rgba(3, 5, 10, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.channel-card {
  min-width: 0;
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(246, 197, 104, 0.16);
  border-radius: 16px;
  padding: 10px;
  background: rgba(3, 5, 10, 0.64);
  color: var(--text);
  text-align: left;
}

.channel-card.is-active {
  border-color: var(--line-hot);
}

.channel-art,
.live-thumb,
.cover-cross {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 32%, rgba(246, 197, 104, 0.66), transparent 26%),
    linear-gradient(135deg, #1c1007, #06090d 52%, #0d1218);
}

.channel-art {
  height: 116px;
}

.channel-card strong,
.channel-card span,
.channel-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card span,
.channel-card small {
  color: var(--soft);
  font-size: 12px;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.library-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.library-tools select {
  width: auto;
  min-width: 150px;
  height: 38px;
  border-radius: 999px;
}

.library-list {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-right: 4px;
}

.library-group {
  margin: 6px 0 2px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-group.is-muted {
  color: var(--muted);
}

.library-row {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 92px 76px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(246, 197, 104, 0.13);
  border-radius: 16px;
  padding: 9px 12px;
  background: rgba(3, 5, 10, 0.56);
  color: var(--text);
  text-align: left;
}

.library-row.is-current {
  border-color: var(--line-hot);
  background:
    radial-gradient(circle at 10% 50%, rgba(246, 197, 104, 0.15), transparent 42%),
    rgba(7, 8, 13, 0.72);
}

.library-row.needs-audio {
  border-color: rgba(251, 113, 133, 0.22);
}

.library-type {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 197, 104, 0.24);
  border-radius: 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.library-row.has-audio .library-type {
  border-color: rgba(74, 222, 128, 0.3);
  color: #9cffbd;
}

.library-row.needs-audio .library-type {
  color: #ffb0bd;
}

.library-copy,
.library-copy strong,
.library-copy span {
  min-width: 0;
}

.library-copy strong,
.library-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-copy strong {
  font-size: 14px;
}

.library-copy span,
.library-date,
.library-duration {
  color: var(--muted);
  font-size: 11px;
}

.library-date,
.library-duration {
  text-align: right;
}

.library-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(246, 197, 104, 0.18);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.now-card {
  min-height: 144px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(180px, 0.8fr) 42px;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.cover-cross {
  width: 84px;
  height: 84px;
}

.cover-cross::before,
.cover-cross::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--gold-hot);
  box-shadow: 0 0 20px rgba(246, 197, 104, 0.7);
}

.cover-cross::before {
  top: 18px;
  left: 39px;
  width: 6px;
  height: 48px;
}

.cover-cross::after {
  top: 30px;
  left: 21px;
  width: 42px;
  height: 6px;
}

.now-card strong,
.now-card span {
  display: block;
}

.now-card strong {
  margin: 8px 0;
  font-size: 20px;
}

.now-card span {
  color: var(--gold);
}

.waveform {
  height: 64px;
  display: grid;
  grid-template-columns: repeat(42, 1fr);
  align-items: center;
  gap: 3px;
}

.waveform i {
  height: calc(10px + var(--h) * 1px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hot), rgba(199, 124, 37, 0.26));
  animation: wave 1.8s ease-in-out infinite;
}

.now-card button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 34px;
}

.automation-card {
  padding: 20px;
}

.automation-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.automation-flow span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 197, 104, 0.15);
  border-radius: 12px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.automation-flow span.is-active {
  border-color: var(--line-hot);
  color: var(--gold-hot);
  background: rgba(246, 197, 104, 0.1);
}

.top-tools {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.top-tools button {
  position: relative;
  width: 60px;
  height: 60px;
  color: var(--gold);
  font-size: 23px;
}

.top-tools i {
  position: absolute;
  top: -5px;
  right: -2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: white;
  font-size: 11px;
  font-style: normal;
}

.live-card,
.chat-card,
.schedule-card {
  padding: 20px;
}

.live-title {
  margin: 14px 0;
}

.live-title strong {
  font-size: 20px;
}

.live-title span {
  color: var(--red);
  font-weight: 900;
}

.live-thumb {
  height: 138px;
  margin-bottom: 14px;
}

.live-thumb::before {
  content: "✝";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold-hot);
  font-size: 50px;
  text-shadow: 0 0 26px rgba(246, 197, 104, 0.8);
}

.live-card h3 {
  margin: 0 0 5px;
}

.live-card p {
  margin: 0;
  color: var(--gold);
}

.chat-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.chat-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--soft);
}

.chat-list span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 197, 104, 0.1);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.chat-input {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 6px 0 16px;
  background: rgba(3, 5, 10, 0.68);
  color: var(--muted);
  font-size: 12px;
}

.chat-input input {
  height: 38px;
  border: 0;
  background: transparent;
  padding: 0;
}

.chat-input button {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.schedule-card {
  display: grid;
  gap: 12px;
}

.schedule-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--soft);
}

.schedule-row.is-active {
  background: rgba(199, 124, 37, 0.22);
  color: var(--text);
}

.schedule-row strong {
  color: var(--gold);
}

.schedule-row small {
  color: var(--gold);
  text-align: right;
  text-transform: uppercase;
}

.schedule-card button {
  color: var(--gold);
}

.mobile-bar {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 16px;
  left: 20px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px;
  background: rgba(4, 7, 11, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.mobile-bar button {
  min-width: 0;
  display: grid;
  gap: 4px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 22px;
}

.mobile-bar span {
  font-size: 10px;
  text-transform: uppercase;
}

.mobile-bar .is-active,
.mobile-bar .radio-dot {
  color: var(--gold);
}

.mobile-bar .radio-dot {
  width: 66px;
  height: 66px;
  margin: -30px auto 0;
  border: 1px solid var(--line-hot);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 197, 104, 0.28), rgba(199, 124, 37, 0.4));
  box-shadow: 0 0 34px rgba(246, 197, 104, 0.32);
}

.toast {
  position: fixed;
  z-index: 30;
  right: 28px;
  bottom: 102px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 214, 125, 0.42);
  border-radius: 16px;
  padding: 0 18px;
  background: rgba(7, 20, 13, 0.92);
  color: #a7ffc9;
  box-shadow: 0 0 34px rgba(53, 214, 125, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes particleDrift {
  to {
    transform: translate3d(-118px, -118px, 0);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.12);
  }
}

@keyframes wave {
  50% {
    transform: scaleY(1.6);
  }
}

@keyframes pendingBars {
  0%,
  100% {
    height: 9px;
    opacity: 0.45;
  }

  50% {
    height: 28px;
    opacity: 1;
  }
}

@keyframes pendingRipple {
  0% {
    opacity: 0.58;
    transform: scale(0.88);
  }

  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-tools {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 14px 14px 100px;
  }

  .left-rail {
    display: none;
  }

  .hero-title {
    min-height: 170px;
  }

  .player-section,
  .bottom-grid,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .player-card,
  .generator-panel {
    min-height: auto;
  }

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

  .mobile-bar {
    display: grid;
  }
}

@media (max-width: 640px) {
  .hero-title h1 {
    font-size: 54px;
  }

  .player-card,
  .generator-panel,
  .channels-panel,
  .live-card,
  .chat-card,
  .schedule-card,
  .now-card,
  .automation-card {
    border-radius: 18px;
    padding: 14px;
  }

  .halo-player {
    width: 100%;
  }

  .favorite-button {
    right: 16px;
    bottom: 206px;
  }

  .controls {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
  }

  .controls button {
    width: 100%;
    height: 52px;
  }

  .controls .main-play {
    width: 68px;
    height: 68px;
    margin: 0 auto;
  }

  .listen-tabs,
  .form-grid,
  .channel-grid,
  .library-row,
  .now-card,
  .automation-flow {
    grid-template-columns: 1fr 1fr;
  }

  .library-row {
    align-items: start;
  }

  .library-date,
  .library-duration {
    text-align: left;
  }

  .time-line {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .waveform {
    grid-column: 1 / -1;
  }
}
