:root {
  --bg: #030303;
  --white: #ffffff;
  --muted: #c9bfd6;
  --pink: #ff4bb3;
  --yellow: #f2e600;
  --violet: #952cff;

  --shadow-pink: 0 0 14px rgba(255, 75, 179, 0.55), 0 0 38px rgba(255, 75, 179, 0.18);
  --shadow-yellow: 0 0 14px rgba(242, 230, 0, 0.6), 0 0 38px rgba(242, 230, 0, 0.18);
  --shadow-violet: 0 0 14px rgba(149, 44, 255, 0.5), 0 0 38px rgba(149, 44, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 75, 179, 0.12), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(149, 44, 255, 0.10), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(242, 230, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #030303 0%, #09030d 60%, #050505 100%);
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient,
.bg-grid,
.bg-halftone,
.bg-svg,
.bg-sticker {
  position: absolute;
}

.bg-gradient {
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 75, 179, 0.10), transparent 24%),
    radial-gradient(circle at 70% 30%, rgba(149, 44, 255, 0.08), transparent 24%);
}

.bg-grid {
  inset: 0;
  opacity: 0.12;
  background:
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    repeating-linear-gradient(
      90deg,
      transparent 0 120px,
      rgba(255,255,255,0.03) 120px 121px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 120px,
      rgba(255,255,255,0.03) 120px 121px
    );
}

.bg-halftone {
  right: -120px;
  bottom: -120px;
  width: 460px;
  height: 460px;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 1.1px, transparent 1.1px);
  background-size: 14px 14px;
  transform: rotate(-10deg);
}

.bg-sticker {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.12;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.bg-sticker-kanji {
  top: 17%;
  left: 3%;
  color: var(--yellow);
  font-size: clamp(38px, 4vw, 80px);
  transform: rotate(-10deg);
}

.bg-sticker-radio {
  bottom: 13%;
  left: 5%;
  color: var(--pink);
  font-size: clamp(26px, 3vw, 56px);
  transform: rotate(-8deg);
}

.bg-sticker-live {
  top: 18%;
  right: 6%;
  color: var(--violet);
  font-size: clamp(22px, 2.2vw, 42px);
  transform: rotate(8deg);
}

.bg-svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bg-svg-rings {
  top: 10%;
  right: -80px;
  width: 500px;
  height: 500px;
  stroke: rgba(255, 75, 179, 0.10);
  stroke-width: 2;
  animation: slowSpin 28s linear infinite;
}

.bg-svg-wave {
  left: -80px;
  bottom: 10%;
  width: 760px;
  height: 260px;
  stroke: rgba(242, 230, 0, 0.10);
  stroke-width: 3;
  animation: floatWave 9s ease-in-out infinite;
}

.radio-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell {
  position: relative;
  width: min(1500px, 100%);
  min-height: calc(100vh - 44px);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.84), rgba(10, 4, 14, 0.90));
  box-shadow:
    0 0 0 2px rgba(255, 75, 179, 0.45),
    0 0 36px rgba(255, 75, 179, 0.16),
    0 0 90px rgba(149, 44, 255, 0.10);
}

.shell-outline {
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 3px solid rgba(242, 230, 0, 0.92);
  box-shadow: var(--shadow-yellow);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 26px 36px 10px;
}

.brand-logo {
  width: min(470px, 42vw);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 75, 179, 0.24));
}

.topbar-right {
  display: flex;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
  font-weight: 800;
}

.chip-live {
  color: var(--yellow);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulseDot 1.6s infinite;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 0.78fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 10px 36px 20px;
}

.hero-left,
.hero-center,
.hero-right {
  min-width: 0;
}

.cover-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 30px rgba(149, 44, 255, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.cover-frame {
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 3px solid rgba(242, 230, 0, 0.92);
  box-shadow: var(--shadow-yellow);
  z-index: 3;
  pointer-events: none;
}

.cover-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 75, 179, 0.16), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(149, 44, 255, 0.16), transparent 30%);
  z-index: 1;
}

.cover-art-wrap {
  position: absolute;
  inset: 0;
}

.cover-art {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cover-art.has-cover {
  opacity: 1;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 75, 179, 0.12), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(149, 44, 255, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.cover-fallback-label {
  color: var(--yellow);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: var(--shadow-yellow);
}

.cover-fallback-sub {
  color: var(--pink);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.cover-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(255,255,255,0.10);
  stroke-width: 2;
  z-index: 3;
  fill: none;
  animation: slowSpin 18s linear infinite;
}

.hero-center {
  display: flex;
  justify-content: center;
}

.player-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.play-cluster {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-ornament,
.play-burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
}

.play-ornament-back {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 2;
}

.play-burst {
  width: 126%;
  height: 126%;
  inset: -13%;
  stroke: rgba(255, 75, 179, 0.22);
  stroke-width: 2;
  animation: burstPulse 4.5s ease-in-out infinite;
}

.play-orbit {
  position: absolute;
  border-radius: 50%;
}

.orbit-a {
  inset: 8px;
  border: 4px solid rgba(242, 230, 0, 0.92);
  box-shadow: var(--shadow-yellow);
  animation: pulseRing 2.6s ease-in-out infinite;
}

.orbit-b {
  inset: 34px;
  border: 3px dashed rgba(255, 75, 179, 0.76);
  box-shadow: var(--shadow-pink);
  animation: slowSpin 12s linear infinite;
}

.orbit-c {
  inset: 62px;
  border: 2px solid rgba(149, 44, 255, 0.65);
  box-shadow: var(--shadow-violet);
  animation: slowSpinReverse 15s linear infinite;
}

.play-button {
  position: relative;
  z-index: 3;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  cursor: pointer;
  border: 8px solid var(--yellow);
  background:
    radial-gradient(circle at 30% 30%, #ff8bd0 0%, #ff57b8 28%, #ff228c 66%, #c70070 100%);
  box-shadow:
    inset 0 8px 26px rgba(255,255,255,0.22),
    inset 0 -16px 28px rgba(0,0,0,0.22),
    0 0 24px rgba(255, 75, 179, 0.75),
    0 0 60px rgba(255, 75, 179, 0.24);
  transition: transform 0.25s ease;
}

.play-button:hover {
  transform: scale(1.03);
}

.play-button::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-42%, -50%);
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 38px solid var(--yellow);
  filter: drop-shadow(0 0 10px rgba(242, 230, 0, 0.3));
}

body.is-playing .play-icon {
  width: 34px;
  height: 42px;
  border: 0;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(to right,
      var(--yellow) 0 12px,
      transparent 12px 22px,
      var(--yellow) 22px 34px);
}

.custom-player-meta {
  margin-top: 24px;
  width: 100%;
  max-width: 320px;
}

.player-loading {
  min-height: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.volume-wrap {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.volume-label {
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 0.18em;
  font-weight: 800;
}

.volume-range {
  width: 220px;
  accent-color: var(--yellow);
  cursor: pointer;
}

.now-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(149, 44, 255, 0.14);
  border: 1px solid rgba(149, 44, 255, 0.34);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.track-box {
  margin-top: 18px;
}

.track-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 82px);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  text-shadow:
    0 0 14px rgba(255,255,255,0.08),
    0 0 28px rgba(149, 44, 255, 0.14);
  word-break: break-word;
}

.station-box {
  margin-top: 18px;
}

.station-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.station-value {
  margin-top: 8px;
  color: var(--pink);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
}

.visual-box {
  position: relative;
  margin-top: 26px;
  padding: 18px;
  min-height: 170px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.visual-label {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.my_visualizer {
  width: 100%;
  height: 120px;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(255, 75, 179, 0.18));
}

.visual-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(149, 44, 255, 0.10), transparent 24%),
    radial-gradient(circle at 70% 50%, rgba(255, 75, 179, 0.10), transparent 24%);
  opacity: 0.9;
}

.status-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.status-pill {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.status-key {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-value {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-grid {
  padding: 0 36px 32px;
}

.panel {
  background: rgba(8, 8, 12, 0.72);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 24px rgba(149, 44, 255, 0.08);
  overflow: hidden;
}

.panel-history {
  padding: 22px;
}

.panel-header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 900;
}

.panel-tag {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lastsongs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}

.song-row {
  display: grid;
  grid-template-columns: 72px 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.song-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 75, 179, 0.36);
  box-shadow: 0 0 16px rgba(255, 75, 179, 0.12);
}

.song-time {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.song-cover-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.song-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.song-link:hover {
  color: var(--pink);
}

.track-change .track-title,
.track-change .cover-card,
.track-change .visual-box {
  animation: trackFlash 0.7s ease;
}

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

@keyframes slowSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatWave {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(242, 230, 0, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(242, 230, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 230, 0, 0); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.86; }
}

@keyframes burstPulse {
  0%, 100% { transform: scale(0.98); opacity: 0.14; }
  50% { transform: scale(1.03); opacity: 0.3; }
}

@keyframes trackFlash {
  0% {
    filter: brightness(1.2);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.08);
    transform: translateY(-2px);
  }
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-center {
    order: -1;
  }

  .hero-left {
    display: flex;
    justify-content: center;
  }

  .cover-card {
    max-width: 520px;
    width: 100%;
  }
}

@media (max-width: 780px) {
  .radio-page {
    padding: 12px;
  }

  .shell {
    min-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .shell-outline {
    inset: 10px;
    border-radius: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 8px;
  }

  .brand-logo {
    width: min(340px, 86vw);
  }

  .hero {
    padding: 8px 18px 18px;
    gap: 18px;
  }

  .play-cluster {
    width: 280px;
    height: 280px;
  }

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

  .play-icon {
    border-top-width: 18px;
    border-bottom-width: 18px;
    border-left-width: 30px;
  }

  body.is-playing .play-icon {
    width: 28px;
    height: 34px;
    background:
      linear-gradient(to right,
        var(--yellow) 0 10px,
        transparent 10px 18px,
        var(--yellow) 18px 28px);
  }

  .track-title {
    font-size: clamp(32px, 10vw, 54px);
  }

  .my_visualizer {
    height: 100px;
  }

  .bottom-grid {
    padding: 0 18px 20px;
  }

  .song-row {
    grid-template-columns: 60px 48px 1fr;
    gap: 10px;
  }

  .song-cover-wrap {
    width: 48px;
    height: 48px;
  }
}