:root {
  color-scheme: dark;
  --bg: #07080c;
  --stage: #222a34;
  --stage-deep: #111820;
  --device: #39424c;
  --device-soft: #56616d;
  --screen: #110a15;
  --screen-hot: #25101e;
  --text: #f4f7fb;
  --muted: #a2adb8;
  --faint: rgba(244, 247, 251, 0.56);
  --line: rgba(244, 247, 251, 0.13);
  --cyan: #22e6ff;
  --violet: #8f6cff;
  --pink: #ff3df2;
  --green: #b8ff3d;
  --volume-percent: 84%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 61, 242, 0.18), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(34, 230, 255, 0.2), transparent 34%),
    linear-gradient(140deg, #06070b 0%, #111722 48%, #05060a 100%);
  color: var(--text);
}

body[data-theme="acid"] {
  --stage: #252d28;
  --stage-deep: #101713;
  --device: #3b4542;
  --device-soft: #65726d;
  --screen: #090f10;
  --screen-hot: #102218;
  --cyan: #00f5d4;
  --violet: #b8ff3d;
  --pink: #ff3df2;
  --green: #faff5a;
  background:
    radial-gradient(circle at 16% 12%, rgba(184, 255, 61, 0.16), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(0, 245, 212, 0.18), transparent 34%),
    linear-gradient(140deg, #050807 0%, #101b18 48%, #040605 100%);
}

body[data-theme="infra"] {
  --stage: #2b2b37;
  --stage-deep: #151521;
  --device: #3f424f;
  --device-soft: #6a6f80;
  --screen: #120b12;
  --screen-hot: #251016;
  --cyan: #00d8ff;
  --violet: #ff3868;
  --pink: #ff2a6d;
  --green: #ffe66d;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 42, 109, 0.18), transparent 32%),
    radial-gradient(circle at 84% 20%, rgba(0, 216, 255, 0.15), transparent 34%),
    linear-gradient(140deg, #08070b 0%, #171625 48%, #050508 100%);
}

body[data-theme="acid"] .stage {
  background:
    linear-gradient(112deg, rgba(71, 88, 82, 0.88) 0 38%, rgba(28, 45, 41, 0.84) 38% 66%, rgba(9, 18, 18, 0.92) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018));
}

body[data-theme="infra"] .stage {
  background:
    linear-gradient(112deg, rgba(76, 78, 93, 0.88) 0 38%, rgba(38, 37, 55, 0.84) 38% 66%, rgba(15, 18, 27, 0.92) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018));
}

body[data-theme="acid"] .primary-button {
  background: linear-gradient(135deg, #b8ff3d, #00f5d4 58%, #ff3df2);
}

body[data-theme="infra"] .primary-button {
  background: linear-gradient(135deg, #00d8ff, #ff3868 58%, #ffe66d);
}

button,
input,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.signal-canvas,
.grid-layer,
.scanline-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.signal-canvas {
  z-index: 0;
  opacity: 0.32;
}

.grid-layer {
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.13) 1px, transparent 1.4px);
  background-position: 0 0;
  background-size: 18px 18px;
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, black, black 72%, transparent);
}

.scanline-layer {
  z-index: 2;
  opacity: 0.1;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.09) 0,
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px,
    transparent 6px
  );
}

.shell {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3.4vw, 42px);
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(244, 247, 251, 0.24);
  background:
    linear-gradient(90deg, transparent 40%, rgba(34, 230, 255, 0.95) 40% 48%, transparent 48%),
    linear-gradient(0deg, transparent 40%, rgba(255, 61, 242, 0.9) 40% 48%, transparent 48%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 24px rgba(34, 230, 255, 0.16);
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  border: 1px solid rgba(244, 247, 251, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(4, 6, 10, 0.42);
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 16px rgba(143, 108, 255, 0.86);
}

.signal-pill.is-live .signal-dot {
  background: var(--green);
  box-shadow: 0 0 18px rgba(184, 255, 61, 0.92);
}

.signal-pill.is-error .signal-dot {
  background: var(--pink);
  box-shadow: 0 0 18px rgba(255, 61, 242, 0.88);
}

.stage {
  position: relative;
  display: grid;
  width: min(100%, 1180px);
  min-height: min(760px, calc(100vh - 138px));
  align-self: center;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  column-gap: clamp(28px, 6vw, 84px);
  row-gap: 18px;
  align-items: center;
  margin: 24px auto;
  border: 1px solid rgba(244, 247, 251, 0.12);
  border-radius: 8px;
  padding: clamp(34px, 6vw, 78px);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(80, 92, 105, 0.86) 0 38%, rgba(37, 47, 59, 0.82) 38% 66%, rgba(18, 25, 35, 0.9) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.stage::before {
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 56%, rgba(34, 230, 255, 0.11) 56.2%, transparent 57.6%),
    linear-gradient(118deg, transparent 0 54%, rgba(255, 61, 242, 0.09) 54.4%, transparent 55.3%),
    radial-gradient(circle at 78% 28%, rgba(34, 230, 255, 0.16), transparent 26%);
}

.stage::after {
  width: 220px;
  height: 1px;
  right: 18%;
  top: 22%;
  background: repeating-linear-gradient(90deg, rgba(244, 247, 251, 0.22) 0 6px, transparent 6px 13px);
  transform: rotate(116deg);
  opacity: 0.42;
}

.stage-heading,
.stage-details,
.radio-column {
  position: relative;
  z-index: 1;
}

.stage-heading,
.stage-details {
  grid-column: 1;
  max-width: 430px;
}

.stage-heading {
  grid-row: 1;
  align-self: end;
}

.stage-details {
  grid-row: 2;
  align-self: start;
}

.kicker {
  max-width: 400px;
  margin: 22px 0 0;
  color: rgba(244, 247, 251, 0.76);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 660;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-shadow:
    0 0 18px rgba(34, 230, 255, 0.16),
    0 0 28px rgba(255, 61, 242, 0.1);
}

h1 {
  isolation: isolate;
  position: relative;
  display: inline-block;
  max-width: 540px;
  margin: 0;
  color: #f8fdff;
  font-size: clamp(3.35rem, 8vw, 5.9rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.01em;
  -webkit-text-fill-color: #f8fdff;
  -webkit-text-stroke: 1.05px rgba(34, 230, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 9px rgba(34, 230, 255, 0.48),
    0 0 22px rgba(34, 230, 255, 0.28),
    0 0 32px rgba(255, 61, 242, 0.22),
    0 22px 54px rgba(0, 0, 0, 0.48);
}

h1::before,
h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

h1::before {
  z-index: -1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 4.5px rgba(34, 230, 255, 0.26);
  filter:
    drop-shadow(0 0 8px rgba(34, 230, 255, 0.52))
    drop-shadow(0 0 18px rgba(255, 61, 242, 0.24));
}

h1::after {
  z-index: -2;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 10px rgba(255, 61, 242, 0.13);
  filter: blur(11px);
}

.description {
  max-width: 390px;
  margin: 20px 0 30px;
  color: rgba(244, 247, 251, 0.62);
  font-size: clamp(1rem, 1.8vw, 1.11rem);
  line-height: 1.58;
}

.broadcast-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -8px 0 0;
  color: rgba(244, 247, 251, 0.58);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.broadcast-line span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.broadcast-line span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 14px rgba(34, 230, 255, 0.28);
}

.airtime {
  display: grid;
  width: fit-content;
  gap: 4px;
  margin: 24px 0 0;
  border-left: 2px solid var(--cyan);
  padding-left: 14px;
  color: rgba(244, 247, 251, 0.7);
  text-transform: uppercase;
}

.airtime span {
  color: rgba(244, 247, 251, 0.48);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.14em;
}

.airtime strong {
  color: #ffffff;
  font-size: clamp(1.16rem, 2vw, 1.44rem);
  font-weight: 860;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 18px rgba(34, 230, 255, 0.2),
    0 0 26px rgba(255, 61, 242, 0.18);
}

.listen-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.primary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.primary-button {
  border: 0;
  padding: 0 22px;
  background:
    linear-gradient(135deg, rgba(34, 230, 255, 0.95), rgba(143, 108, 255, 0.9) 54%, rgba(255, 61, 242, 0.9));
  color: #061016;
  cursor: pointer;
  box-shadow:
    0 14px 34px rgba(34, 230, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.text-link {
  color: rgba(244, 247, 251, 0.68);
  transition: color 180ms ease;
}

.text-link:hover {
  color: #ffffff;
}

.micro-note {
  margin: 132px 0 0;
  color: rgba(244, 247, 251, 0.42);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radio-column {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-items: center;
  perspective: 1200px;
}

.radio-device {
  isolation: isolate;
  position: relative;
  width: min(100%, 382px);
  border: 1px solid rgba(34, 230, 255, 0.28);
  border-radius: 8px;
  padding: 18px 18px 0;
  background:
    radial-gradient(circle at 76% 14%, rgba(34, 230, 255, 0.24), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(255, 61, 242, 0.2), transparent 27%),
    linear-gradient(142deg, rgba(127, 142, 156, 0.96), rgba(48, 58, 70, 0.98) 43%, rgba(21, 27, 37, 0.99) 100%),
    var(--device);
  transform: rotateX(3.5deg) rotateY(-7deg) translateZ(0);
  transform-style: preserve-3d;
  box-shadow:
    34px 42px 90px rgba(0, 0, 0, 0.5),
    -18px 24px 74px rgba(34, 230, 255, 0.12),
    0 0 70px rgba(255, 61, 242, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset -18px -20px 38px rgba(0, 0, 0, 0.24);
}

.radio-device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.24), transparent 19% 62%, rgba(0, 0, 0, 0.24)),
    linear-gradient(80deg, transparent 0 68%, rgba(34, 230, 255, 0.12) 68% 70%, transparent 70%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.22), transparent 18%);
  pointer-events: none;
  z-index: 2;
}

.radio-device::after {
  content: "";
  position: absolute;
  inset: 18px -20px -18px 30px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(34, 230, 255, 0.16), rgba(255, 61, 242, 0.1)),
    rgba(0, 0, 0, 0.42);
  filter: blur(1px);
  transform: translateZ(-50px) skewY(2deg);
  opacity: 0.82;
}

.device-notch {
  position: absolute;
  width: 44px;
  height: 10px;
  left: 50%;
  top: -10px;
  border: 1px solid rgba(244, 247, 251, 0.18);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #171d24;
  transform: translateX(-50%);
}

.device-notch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 5px;
  left: 50%;
  top: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #06080b, #67727e, #06080b);
  transform: translateX(-50%);
}

.radio-screen {
  position: relative;
  z-index: 3;
  border: 1px solid rgba(34, 230, 255, 0.42);
  border-radius: 8px;
  padding: 16px 17px 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 110%, rgba(255, 61, 242, 0.28), transparent 38%),
    radial-gradient(circle at 18% 18%, rgba(34, 230, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(34, 230, 255, 0.09), rgba(255, 61, 242, 0.1)),
    var(--screen);
  box-shadow:
    inset 0 0 0 1px rgba(244, 247, 251, 0.08),
    inset 0 0 46px rgba(0, 0, 0, 0.68),
    0 0 30px rgba(34, 230, 255, 0.16),
    0 0 42px rgba(255, 61, 242, 0.08);
}

.radio-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 61, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 8px, 18px 100%;
  opacity: 0.64;
}

.screen-top,
.screen-title,
.frequency-visual,
.track-window,
.status {
  position: relative;
  z-index: 1;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  color: rgba(244, 247, 251, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-title {
  display: grid;
  margin: 21px 0 13px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(2.2rem, 4vw, 2.75rem);
  font-weight: 520;
  letter-spacing: 0.16em;
  line-height: 0.92;
  text-align: center;
  text-shadow:
    0 0 24px rgba(255, 61, 242, 0.32),
    0 0 16px rgba(34, 230, 255, 0.26);
}

.frequency-visual {
  display: grid;
  width: 100%;
  height: 66px;
  grid-template-columns: repeat(28, 1fr);
  align-items: center;
  gap: 3px;
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.frequency-visual span {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 61, 242, 0.92), rgba(34, 230, 255, 0.98) 52%, rgba(184, 255, 61, 0.9));
  opacity: 0.32;
  transform: scaleY(var(--level, var(--bar)));
  transform-origin: center;
  transition: opacity 180ms ease, filter 180ms ease, transform 90ms linear;
}

.player-panel.is-playing .frequency-visual span {
  filter:
    drop-shadow(0 0 8px rgba(34, 230, 255, 0.56))
    drop-shadow(0 0 14px rgba(255, 61, 242, 0.22));
  opacity: 0.9;
}

.track-window {
  display: grid;
  gap: 5px;
  min-height: 48px;
  border: 1px solid rgba(184, 255, 61, 0.34);
  border-radius: 4px;
  margin-top: 12px;
  padding: 8px 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(184, 255, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 255, 0.04) 1px, transparent 1px),
    rgba(4, 10, 10, 0.82);
  background-size: 100% 4px, 12px 100%, auto;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.62),
    inset 0 0 20px rgba(184, 255, 61, 0.08),
    0 0 20px rgba(184, 255, 61, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.track-label {
  color: rgba(184, 255, 61, 0.6);
  font-size: 0.54rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.track-text {
  min-width: 0;
  overflow: hidden;
  color: rgba(244, 247, 251, 0.88);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-shadow:
    0 0 10px rgba(184, 255, 61, 0.18),
    0 0 16px rgba(34, 230, 255, 0.12);
  text-transform: uppercase;
  white-space: nowrap;
}

.player-panel.is-playing .radio-screen {
  box-shadow:
    inset 0 0 0 1px rgba(244, 247, 251, 0.08),
    inset 0 0 38px rgba(0, 0, 0, 0.56),
    0 0 40px rgba(34, 230, 255, 0.26),
    0 0 58px rgba(255, 61, 242, 0.14);
}

.status {
  min-height: 22px;
  margin: 12px 0 0;
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.device-controls {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: end;
  padding: 26px 20px 20px;
}

.knob-group,
.volume-control {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: rgba(244, 247, 251, 0.5);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play-button {
  position: relative;
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  border: 1px solid rgba(34, 230, 255, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.84) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 34%, rgba(34, 230, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #7a8794, #293240 52%, #070a10);
  cursor: pointer;
  box-shadow:
    0 12px 0 rgba(0, 0, 0, 0.36),
    0 22px 34px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(34, 230, 255, 0.1),
    inset 0 2px 6px rgba(255, 255, 255, 0.18),
    inset 0 -12px 22px rgba(0, 0, 0, 0.44);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.play-button:hover {
  transform: translateY(-2px);
}

.player-panel.is-playing .play-button {
  background:
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.88) 0 3px, transparent 4px),
    radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(145deg, #22e6ff, #ff3df2 52%, #171228);
  box-shadow:
    0 12px 0 rgba(0, 0, 0, 0.34),
    0 0 44px rgba(34, 230, 255, 0.48),
    0 0 70px rgba(255, 61, 242, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.34);
}

.play-button:focus-visible,
.primary-button:focus-visible,
.ghost-button:focus-visible,
.text-link:focus-visible,
input[type="range"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 12px rgba(34, 230, 255, 0.56));
}

.play-button.is-playing .play-icon {
  width: 22px;
  height: 24px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0 35%, transparent 35% 65%, rgba(255, 255, 255, 0.92) 65%);
}

.volume-control {
  width: 100%;
}

.volume-control span {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.volume-control strong {
  color: rgba(244, 247, 251, 0.72);
  font-weight: 780;
}

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--cyan), var(--pink)) 0 / var(--volume-percent) 100% no-repeat,
    rgba(6, 8, 10, 0.42);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.44);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    linear-gradient(145deg, #22e6ff, #ff3df2);
  box-shadow:
    0 7px 14px rgba(0, 0, 0, 0.34),
    0 0 16px rgba(255, 61, 242, 0.26);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: linear-gradient(145deg, #22e6ff, #ff3df2);
  box-shadow:
    0 7px 14px rgba(0, 0, 0, 0.34),
    0 0 16px rgba(255, 61, 242, 0.26);
}

.device-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.26);
  margin: 0 -16px;
  padding: 14px 20px;
  color: rgba(244, 247, 251, 0.34);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-panel.is-playing .device-footer span:last-child {
  color: rgba(184, 255, 61, 0.72);
  text-shadow: 0 0 18px rgba(184, 255, 61, 0.22);
}

.stage-watermark {
  position: absolute;
  right: 70px;
  bottom: 60px;
  z-index: 0;
  margin: 0;
  color: rgba(0, 0, 0, 0.16);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
  pointer-events: none;
}

.footer {
  color: rgba(244, 247, 251, 0.44);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directory-link {
  color: rgba(244, 247, 251, 0.32);
  font-size: 0.66rem;
  transition: color 180ms ease;
}

.directory-link:hover {
  color: rgba(244, 247, 251, 0.58);
}

.footer-separator {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--green));
}

.admin-shell {
  min-height: 100vh;
  grid-template-rows: auto 1fr;
}

.admin-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 980px);
  align-self: center;
  grid-template-columns: minmax(260px, 0.86fr) minmax(300px, 1.14fr);
  gap: clamp(28px, 6vw, 76px);
  margin: 32px auto;
  border: 1px solid rgba(244, 247, 251, 0.13);
  border-radius: 8px;
  padding: clamp(28px, 5.6vw, 70px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(75, 86, 99, 0.78), rgba(22, 30, 41, 0.9) 54%, rgba(9, 14, 20, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.admin-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(34, 230, 255, 0.17), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(255, 61, 242, 0.12), transparent 28%),
    linear-gradient(122deg, transparent 0 48%, rgba(34, 230, 255, 0.1) 48.3%, transparent 50%);
  pointer-events: none;
}

.admin-heading,
.admin-form {
  position: relative;
  z-index: 1;
}

.admin-heading .track-label {
  margin-bottom: 22px;
}

.admin-heading h1 {
  font-size: clamp(3.1rem, 7vw, 5.2rem);
}

.admin-heading .kicker {
  max-width: 380px;
}

.admin-form {
  display: grid;
  gap: 18px;
  align-content: center;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field span,
.admin-meter {
  color: rgba(244, 247, 251, 0.54);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid rgba(244, 247, 251, 0.16);
  border-radius: 8px;
  background: rgba(5, 8, 13, 0.58);
  color: rgba(244, 247, 251, 0.92);
  outline: none;
  padding: 14px 15px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(34, 230, 255, 0.04);
}

.admin-field textarea {
  min-height: 118px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: rgba(34, 230, 255, 0.56);
  box-shadow:
    0 0 0 3px rgba(34, 230, 255, 0.12),
    0 0 30px rgba(255, 61, 242, 0.08);
}

.admin-meter {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

#adminStatus {
  color: rgba(244, 247, 251, 0.58);
  text-align: right;
}

#adminStatus[data-tone="success"] {
  color: rgba(184, 255, 61, 0.74);
}

#adminStatus[data-tone="error"] {
  color: rgba(255, 96, 191, 0.9);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.ghost-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 247, 251, 0.16);
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(5, 8, 13, 0.46);
  color: rgba(244, 247, 251, 0.72);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.ghost-button:hover {
  border-color: rgba(34, 230, 255, 0.34);
  color: #ffffff;
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 34px 18px 42px;
  }

  .stage-heading,
  .stage-details {
    grid-column: 1;
    max-width: 620px;
    text-align: center;
    justify-self: center;
  }

  .stage-heading {
    grid-row: 1;
  }

  .radio-column {
    grid-column: 1;
    grid-row: 2;
  }

  .radio-device {
    transform: none;
  }

  .stage-details {
    grid-row: 3;
  }

  .kicker {
    margin-bottom: 24px;
  }

  .description {
    margin-right: auto;
    margin-left: auto;
  }

  .broadcast-line {
    justify-content: center;
  }

  .airtime {
    width: max-content;
    margin-right: auto;
    margin-left: auto;
    border-left: 0;
    border-bottom: 1px solid rgba(34, 230, 255, 0.44);
    padding: 0 0 12px;
  }

  .listen-actions {
    justify-content: center;
  }

  .micro-note {
    margin-top: 34px;
  }

  .stage-watermark {
    right: 22px;
    bottom: 30px;
    opacity: 0.6;
  }

  .admin-panel {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .admin-heading .kicker {
    margin-right: auto;
    margin-left: auto;
  }

  .admin-actions,
  .admin-meter {
    justify-content: center;
  }

  #adminStatus {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 18px 12px;
  }

  .topbar,
  .footer {
    align-items: center;
  }

  .signal-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.64rem;
  }

  .stage {
    gap: 28px;
    margin: 22px auto;
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .description {
    margin-top: 0;
  }

  .listen-actions {
    flex-direction: column;
    gap: 10px;
  }

  .primary-button,
  .text-link {
    width: min(100%, 230px);
  }

  .radio-device {
    width: min(100%, 326px);
    padding: 12px 12px 0;
  }

  .radio-device::after {
    inset: 14px -10px -12px 18px;
  }

  .radio-screen {
    padding: 12px 13px 14px;
  }

  .screen-title {
    margin: 18px 0 10px;
    font-size: 2.05rem;
  }

  .frequency-visual {
    height: 46px;
    gap: 3px;
  }

  .track-window {
    min-height: 43px;
    margin-top: 10px;
    padding: 7px 9px;
  }

  .track-text {
    font-size: 0.64rem;
  }

  .status {
    min-height: 18px;
    margin-top: 8px;
    font-size: 0.66rem;
  }

  .device-controls {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 14px;
    align-items: center;
    padding: 18px 12px 14px;
  }

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

  .play-icon {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 15px;
  }

  .device-footer {
    gap: 10px;
    padding: 12px 14px;
    font-size: 0.58rem;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }

  .admin-panel {
    margin: 22px auto;
    padding: 28px 18px 34px;
  }

  .admin-heading h1 {
    font-size: clamp(2.65rem, 14vw, 3.8rem);
  }

  .admin-meter {
    flex-direction: column;
    gap: 6px;
  }

  .admin-actions {
    display: grid;
  }
}

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

  .signal-canvas {
    opacity: 0.18;
  }
}
