:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #02080b;
  color: #effff9;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 18%, rgba(36, 153, 132, 0.24), transparent 34%),
    radial-gradient(circle at 16% 86%, rgba(74, 101, 190, 0.16), transparent 30%),
    linear-gradient(160deg, #02070a, #07171b 55%, #03090d);
}

button, audio { font: inherit; }

.radio-player-shell {
  width: min(560px, 100%);
  margin: 0 auto;
}

.radio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.radio-brand img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(88, 255, 198, 0.46);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(88, 255, 198, 0.22);
}

.radio-brand span,
.radio-brand strong { display: block; }
.radio-brand span { color: #79aaa2; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.radio-brand strong { margin-top: 2px; font-size: 1.12rem; }

.radio-card {
  padding: clamp(20px, 5vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(118, 215, 204, 0.3);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(13, 38, 42, 0.98), rgba(4, 15, 20, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.04);
}

.radio-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #75938f;
  font-size: 0.72rem;
  font-weight: 750;
}

.radio-live-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255, 83, 108, 0.5);
  border-radius: 999px;
  color: #ffdbe1;
  background: rgba(99, 17, 31, 0.62);
  letter-spacing: 0.06em;
}

.radio-live-badge.live {
  border-color: rgba(88, 255, 198, 0.62);
  color: #d9fff1;
  background: rgba(15, 90, 68, 0.68);
  box-shadow: 0 0 20px rgba(88, 255, 198, 0.17);
}

.radio-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 166px;
  height: 166px;
  margin: 24px auto 18px;
}

.radio-art img {
  width: 116px;
  height: 116px;
  border: 3px solid rgba(255, 225, 113, 0.62);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(255, 225, 113, 0.22);
}

.radio-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(88, 255, 198, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(88, 255, 198, 0.07);
}

.radio-live .radio-orbit { animation: radio-pulse 2.2s ease-in-out infinite; }

@keyframes radio-pulse {
  0%, 100% { opacity: 0.48; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

h1 { margin: 0; text-align: center; font-size: clamp(1.8rem, 7vw, 2.55rem); line-height: 1.05; }
.radio-description { margin: 10px auto 0; max-width: 430px; color: #9cbab5; text-align: center; line-height: 1.55; }
.radio-now-playing {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid rgba(255, 225, 113, 0.34);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(21, 51, 52, 0.92), rgba(7, 21, 27, 0.96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  text-align: left;
}
.radio-now-playing[hidden] { display: none; }
.radio-now-playing img {
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 225, 113, 0.62);
  border-radius: 13px;
  object-fit: cover;
  background: #061216;
}
.radio-now-playing span,
.radio-now-playing strong,
.radio-now-playing small { display: block; min-width: 0; }
.radio-now-playing span { color: #68f7cf; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.radio-now-playing strong { margin-top: 4px; overflow: hidden; color: #fff8d8; font-size: 1.15rem; text-overflow: ellipsis; white-space: nowrap; }
.radio-now-playing small { margin-top: 3px; overflow: hidden; color: #9cbab5; text-overflow: ellipsis; white-space: nowrap; }
.radio-status { min-height: 46px; margin: 18px 0; padding: 12px 14px; border-radius: 13px; color: #c4e2dc; background: rgba(3, 15, 19, 0.72); font-size: 0.86rem; line-height: 1.45; }

#radioAudio { width: 100%; min-height: 48px; margin: 0 0 15px; }

.radio-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.radio-actions button { min-height: 48px; padding: 0 18px; border: 1px solid rgba(132, 196, 191, 0.4); border-radius: 13px; color: #eafff7; background: rgba(14, 42, 47, 0.92); font-weight: 850; cursor: pointer; }
.radio-actions button.primary { border-color: rgba(88, 255, 198, 0.74); color: #05231d; background: linear-gradient(180deg, #77ffdb, #43dcb6); }
.radio-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.radio-actions button:focus-visible, .radio-links a:focus-visible { outline: 3px solid #ffe171; outline-offset: 3px; }
.radio-player-note { margin: 14px 0 0; color: #789893; font-size: 0.74rem; line-height: 1.5; }

.radio-links { display: grid; gap: 10px; margin-top: 14px; }
.radio-links a { padding: 13px 16px; border: 1px solid rgba(126, 190, 185, 0.2); border-radius: 15px; color: #c9e9e3; background: rgba(5, 18, 22, 0.8); text-decoration: none; }
.radio-links a.invite { border-color: rgba(100, 223, 255, 0.36); }
.radio-links strong, .radio-links span { display: block; }
.radio-links span { margin-top: 3px; color: #789893; font-size: 0.76rem; }

@media (max-width: 480px) {
  .radio-card { border-radius: 22px; }
  .radio-status-row > span:last-child { display: none; }
  .radio-art { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .radio-live .radio-orbit { animation: none; }
}
