.radio-page-wrapper {
  width: 100%;
  position: relative;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 5vw, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, rgba(8, 12, 22, 0.95), #010104);
}

.radio-page-area {
  width: 100%;
  display: flex;
  justify-content: center;
}

.radio-page-main {
  width: min(1080px, 100%);
  position: relative;
  background: rgba(12, 15, 25, 0.9);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(40px, 6vw, 64px);
  box-shadow: 0 50px 120px rgba(1, 2, 4, 0.75);
  backdrop-filter: blur(14px);
}

.radio-page-content {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-radio-player {
  width: 100%;
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65);
}

.radio-player-grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

@media (min-width: 900px) {
  .radio-player-grid {
    grid-template-columns: 1fr 1fr;
  }

  .radio-player-panel {
    order: 1;
  }

  .radio-player-intro {
    order: 2;
    padding-left: clamp(16px, 2vw, 28px);
  }
}

.radio-player-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.radio-player-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.radio-player-intro h1 {
  margin: 4px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.01em;
  color: #f7f8fa;
}

.radio-player-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

.radio-player-panel {
  background: rgba(5, 7, 13, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px;
  display: grid;
  gap: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.radio-player-visual {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  --radio-level: 0;
}

.radio-player-orb {
  width: clamp(220px, 26vw, 250px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 35, 58, 0.95), rgba(5, 7, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.radio-player-orb::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 65%);
  filter: blur(6px);
  opacity: calc(0.25 + var(--radio-level, 0) * 0.55);
  transform: scale(calc(0.8 + var(--radio-level, 0) * 0.35));
  transition: transform 0.12s linear, opacity 0.12s linear;
  mix-blend-mode: screen;
}

.radio-waveform {
  width: clamp(110px, 15vw, 140px);
  height: clamp(110px, 15vw, 140px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: radio-breathe 4s ease-in-out infinite;
  opacity: calc(0.3 + var(--radio-level, 0) * 0.4);
  transform: scale(calc(0.9 + var(--radio-level, 0) * 0.4));
}

.radio-avatar-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.radio-avatar-text span {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: calc(0.08em + var(--radio-level, 0) * 0.14em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(106, 200, 255, 0.35);
  transform-origin: center;
  transform: scaleY(calc(1 + var(--radio-level, 0) * 0.75))
    scaleX(calc(1 + var(--radio-level, 0) * 0.18));
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95),
    rgba(115, 192, 255, 0.85),
    rgba(255, 121, 197, 0.9)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.08s linear, letter-spacing 0.08s linear;
}

.radio-player-visual.is-active .radio-avatar-text span {
  animation: radio-text-vibe 0.25s ease-in-out infinite;
}

.radio-live-pill {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, #ff4d85, #ffc04d);
  padding: 4px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #050505;
}

.radio-live-pill.is-offline {
  background: linear-gradient(120deg, #5c5c5c, #2f2f2f);
  color: #f5f5f5;
}

.radio-player-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.radio-player-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-meta-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.radio-meta-value {
  font-size: 18px;
  font-weight: 600;
  color: #72ffe1;
}

.radio-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #050505;
  background: linear-gradient(120deg, #7fffce, #3dd2ff);
  box-shadow: 0 8px 20px rgba(61, 210, 255, 0.25);
}

.radio-status-badge.is-offline {
  background: linear-gradient(120deg, #5c5c5c, #2f2f2f);
  color: #f5f5f5;
  box-shadow: none;
}

.radio-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.radio-player-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  min-width: 260px;
  width: 260px;
  font-size: 16px;
  font-weight: 600;
  color: #050608 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(225, 229, 245, 0.95));
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-shadow: none;
  margin: 0 auto;
}

.radio-player-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
}

.radio-player-button.is-playing {
  background: linear-gradient(180deg, rgba(244, 247, 255, 0.95), rgba(210, 220, 255, 0.95));
  color: #050608 !important;
}

.radio-player-button .radio-button-label {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.radio-button-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radio-button-icon span,
.radio-wave {
  width: 4px;
  height: 16px;
  margin: 0 2px;
  border-radius: 999px;
  background: #0f62fe;
}

.radio-button-icon span:nth-child(2),
.radio-wave:nth-child(2) {
  width: 0;
  height: 0;
  margin: 0;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #0f62fe;
  background: none;
}

.radio-player-button.is-playing .radio-button-icon span:nth-child(2),
.radio-player-button.is-playing .radio-wave:nth-child(2) {
  border-width: 0;
  width: 4px;
  height: 18px;
  background: #ff3b5f;
}

.radio-player-button.is-playing .radio-button-icon span:first-child,
.radio-player-button.is-playing .radio-wave:first-child {
  transform: translateX(-3px);
  background: #ff3b5f;
}

.radio-player-button.is-playing .radio-button-icon span:last-child,
.radio-player-button.is-playing .radio-wave:last-child {
  transform: translateX(3px);
  background: #ff3b5f;
}

.radio-player-external {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 18px;
  border-radius: 999px;
}

.radio-player-external:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.radio-signal {
  display: flex;
  gap: 6px;
}

.radio-signal span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(127, 255, 206, 0.5), rgba(61, 210, 255, 0.5));
  animation: radio-signal 1.5s ease-in-out infinite;
}

.radio-signal span:nth-child(2) {
  animation-delay: 0.2s;
}
.radio-signal span:nth-child(3) {
  animation-delay: 0.4s;
}
.radio-signal span:nth-child(4) {
  animation-delay: 0.6s;
}
.radio-signal span:nth-child(5) {
  animation-delay: 0.8s;
}

.radio-player-error {
  min-height: 20px;
  color: #ffb6b0;
  font-size: 14px;
  margin: 0;
}

.radio-player-error:empty {
  display: none;
}

@keyframes radio-breathe {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes radio-avatar-drift {
  0%,
  100% {
    transform: translate(-6%, -4%) rotate(-2deg);
  }
  50% {
    transform: translate(6%, 4%) rotate(2deg);
  }
}

@keyframes radio-bass {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 1;
  }
}

@keyframes radio-signal {
  0%,
  100% {
    transform: scaleX(0.7);
    opacity: 0.8;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .radio-page-main {
    padding: 28px 18px;
  }

  .dark-radio-player {
    padding: 20px 16px;
  }

  .radio-player-intro h1 {
    font-size: 28px;
  }

  .radio-player-description {
    display: none;
  }

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

  .radio-player-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .radio-player-button {
    width: 100%;
    justify-content: center;
  }

  .radio-player-visual {
    min-height: 150px;
    order: -1;
    margin-bottom: 20px;
  }

  .radio-player-orb {
    width: min(60vw, 180px);
  }
}
@keyframes radio-text-vibe {
  0%, 100% {
    transform: translateY(0)
      scaleY(calc(1 + var(--radio-level, 0) * 0.75))
      scaleX(calc(1 + var(--radio-level, 0) * 0.18));
  }
  50% {
    transform: translateY(-2%)
      scaleY(calc(1 + var(--radio-level, 0) * 0.85))
      scaleX(calc(1 + var(--radio-level, 0) * 0.22));
  }
}
