:root {
  --bg: #070b1f;
  --bg-2: #0b1230;
  --card: rgba(15, 23, 48, 0.72);
  --line: rgba(255,255,255,0.105);
  --blue: #2290c8;
  --blue-2: #6fcaff;
  --white: #ffffff;
  --text: #e8eef9;
  --muted: #9baac1;
  --soft: #c8d5e8;
  --red: #ff4761;
  --green: #27d986;
  --radius-xl: 34px;
  --shadow: 0 30px 90px rgba(0,0,0,.48);
  --glow: 0 0 90px rgba(34,144,200,.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(68, 174, 255, .26), transparent 35%),
    radial-gradient(circle at 8% 18%, rgba(34,144,200,.22), transparent 24%),
    radial-gradient(circle at 92% 40%, rgba(109, 88, 255, .14), transparent 26%),
    linear-gradient(180deg, #070b1f 0%, #0a1028 45%, #050817 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.70) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(111,202,255,.58) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.35) 0 1px, transparent 1.5px);
  background-size: 170px 170px, 230px 230px, 310px 310px;
  background-position: 0 0, 45px 80px, 120px 30px;
  opacity: .33;
  animation: starsDrift 90s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 10%, rgba(0,0,0,.85), transparent 72%);
}

button,
input {
  font-family: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(76px);
  opacity: .46;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb.one {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: rgba(34,144,200,.34);
}

.orb.two {
  width: 590px;
  height: 590px;
  right: -210px;
  top: 120px;
  background: rgba(80, 140, 255, .21);
  animation-delay: -8s;
}

.orb.three {
  width: 420px;
  height: 420px;
  left: 48%;
  bottom: -200px;
  background: rgba(111,202,255,.19);
  animation-delay: -14s;
}

.site-head {
  padding: 38px 0 22px;
  text-align: center;
}

.logo-stage {
  width: min(160px, 38vw);
  height: min(160px, 38vw);
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(111,202,255,.20), transparent 63%),
    linear-gradient(135deg, rgba(255,255,255,.10), transparent);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 90px rgba(34,144,200,.28);
  animation: logoHalo 3.8s ease-in-out infinite;
}

.logo-stage img {
  position: relative;
  width: 67%;
  height: 67%;
  object-fit: contain;
  filter: drop-shadow(0 12px 34px rgba(34,144,200,.55));
  z-index: 1;
}

.site-title {
  margin-top: 13px;
  font-size: clamp(2.05rem, 5.2vw, 4.05rem);
  line-height: 1;
  letter-spacing: -0.075em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 18px 48px rgba(0,0,0,.44);
}

.tagline {
  margin-top: 10px;
  font-size: clamp(.95rem, 2vw, 1.22rem);
  color: var(--blue-2);
  font-weight: 500;
  letter-spacing: .025em;
}

.top-live {
  margin: 24px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.live-word {
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  position: relative;
  box-shadow: 0 0 18px rgba(255,71,97,.85);
  animation: dotPulse 1.7s ease-in-out infinite;
}

.pulse-dot.online {
  background: var(--green);
  box-shadow: 0 0 18px rgba(39,217,134,.85);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid currentColor;
  color: rgba(255,71,97,.55);
  animation: ringPulse 1.7s ease-out infinite;
}

.pulse-dot.online::after {
  color: rgba(39,217,134,.55);
}

.listener-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--soft);
  white-space: nowrap;
}

.listener-number {
  min-width: 2ch;
  text-align: right;
  font-size: 1.12rem;
  color: var(--blue-2);
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform .25s ease, color .25s ease;
}

.listener-number.bump {
  transform: translateY(-2px) scale(1.08);
  color: #fff;
}

.listener-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 22px;
  align-items: stretch;
  padding: 20px 0 26px;
}

.glass {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.082), rgba(255,255,255,.035)),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(22px);
  min-width: 0;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(111,202,255,.18), transparent 36%),
    radial-gradient(circle at 100% 20%, rgba(34,144,200,.13), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.07), transparent 32%);
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.glass-inner {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 34px);
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.kicker-text {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e9f6ff;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-2);
  box-shadow: 0 0 16px rgba(111,202,255,.75);
}

.art-box {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(111,202,255,.18), transparent 56%),
    linear-gradient(135deg, rgba(34,144,200,.22), rgba(7,11,31,.70));
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 80px rgba(0,0,0,.28);
}

.art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease, opacity .25s ease;
}

.art-box.logo-mode img {
  width: 42%;
  height: 42%;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(111,202,255,.42));
  animation: logoFloat 4.8s ease-in-out infinite;
}

.art-box:hover img {
  transform: scale(1.045);
}

.wiki-title {
  margin-top: 20px;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.045em;
}

.wiki-desc {
  margin-top: 11px;
  color: #c8d5e8;
  font-size: .95rem;
  line-height: 1.75;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 8px;
}

.wiki-desc::-webkit-scrollbar { width: 6px; }
.wiki-desc::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; }
.wiki-desc::-webkit-scrollbar-thumb { background: rgba(111,202,255,.40); border-radius: 999px; }

.player-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.radio-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(39,217,134,.08);
  border: 1px solid rgba(39,217,134,.18);
  color: #dcfff0;
  font-size: .84rem;
  font-weight: 600;
}

.radio-line .pulse-dot {
  width: 8px;
  height: 8px;
}

.player-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.track-title {
  width: 100%;
  margin-top: 16px;
  font-size: 33px !important;
  line-height: 1.16;
  letter-spacing: -.045em;
  font-weight: 800;
  color: #fff;
  overflow-wrap: anywhere;
  text-shadow: 0 14px 34px rgba(0,0,0,.40);
}

.track-artist {
  margin-top: 8px;
  font-size: clamp(.98rem, 2vw, 1.18rem);
  color: var(--blue-2);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.stream-note {
  min-height: 22px;
  margin-top: 13px;
  color: var(--muted);
  font-size: .86rem;
}

.next-box {
  width: min(100%, 440px);
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  color: #d9e6f7;
  font-size: .85rem;
  line-height: 1.45;
}

.next-box b {
  color: #fff;
  font-weight: 700;
}

.control-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.icon-btn,
.play-btn {
  appearance: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(34,144,200,.18);
  border-color: rgba(111,202,255,.26);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: .92;
}

.play-btn {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 18px 48px rgba(34,144,200,.42), inset 0 1px 0 rgba(255,255,255,.34);
  position: relative;
  isolation: isolate;
}

.play-btn::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(111,202,255,.27);
  animation: playRing 2s linear infinite;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 22px 62px rgba(34,144,200,.55), inset 0 1px 0 rgba(255,255,255,.34);
}

.play-btn.playing {
  background: linear-gradient(135deg, #ff6a7b, #e72d4a);
  box-shadow: 0 20px 56px rgba(255,71,97,.42), inset 0 1px 0 rgba(255,255,255,.30);
}

.play-btn.playing::before {
  border-color: rgba(255,71,97,.32);
}

.play-btn svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.progress-wrap {
  width: min(100%, 460px);
  margin-top: 24px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  box-shadow: 0 0 20px rgba(111,202,255,.30);
  transition: width .35s linear;
}

.time-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.volume-row {
  margin-top: 20px;
  width: min(100%, 360px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--soft);
}

.volume-row svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  opacity: .85;
  flex: 0 0 auto;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-2);
  box-shadow: 0 0 20px rgba(111,202,255,.34);
}

input[type="range"]::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-2);
  box-shadow: 0 0 20px rgba(111,202,255,.34);
}

.equalizer {
  margin-top: 22px;
  height: 30px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  opacity: .82;
}

.eq-bar {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ccefff, var(--blue));
}

.equalizer.playing .eq-bar {
  animation: eq 900ms ease-in-out infinite;
}

.equalizer.playing .eq-bar:nth-child(2) { animation-delay: .10s; }
.equalizer.playing .eq-bar:nth-child(3) { animation-delay: .20s; }
.equalizer.playing .eq-bar:nth-child(4) { animation-delay: .06s; }
.equalizer.playing .eq-bar:nth-child(5) { animation-delay: .16s; }
.equalizer.playing .eq-bar:nth-child(6) { animation-delay: .28s; }
.equalizer.playing .eq-bar:nth-child(7) { animation-delay: .12s; }
.equalizer.playing .eq-bar:nth-child(8) { animation-delay: .22s; }

.history {
  padding: 18px 0 48px;
}

.history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.history-head h2 {
  color: #fff;
  font-size: clamp(1.38rem, 3vw, 2.04rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.05em;
}

.updated {
  color: var(--blue-2);
  font-size: .84rem;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34,144,200,.10);
  border: 1px solid rgba(111,202,255,.16);
}

.carousel-shell {
  position: relative;
}

.history-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(111,202,255,.45) rgba(255,255,255,.06);
}

.history-rail::-webkit-scrollbar { height: 8px; }
.history-rail::-webkit-scrollbar-track { background: rgba(255,255,255,.055); border-radius: 999px; }
.history-rail::-webkit-scrollbar-thumb { background: rgba(111,202,255,.42); border-radius: 999px; }

.history-item {
  flex: 0 0 255px;
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(15,23,48,.74);
  border: 1px solid rgba(255,255,255,.10);
  padding: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}

.history-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  opacity: .74;
}

.history-item:hover {
  transform: translateY(-4px);
  border-color: rgba(111,202,255,.28);
  background:
    linear-gradient(180deg, rgba(34,144,200,.12), rgba(255,255,255,.035)),
    rgba(15,23,48,.80);
}

.history-time {
  color: var(--blue-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.history-song {
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-artist {
  margin-top: 7px;
  color: var(--muted);
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: rgba(7, 11, 31, .78);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
  backdrop-filter: blur(16px);
  transition: .18s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(34,144,200,.42);
}

.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-foot {
  text-align: center;
  padding: 24px 0 42px;
  color: rgba(200,213,232,.68);
  font-size: .84rem;
}

.site-foot img {
  width: 78px;
  display: block;
  margin: 0 auto 12px;
  opacity: .72;
  filter: drop-shadow(0 0 24px rgba(34,144,200,.25));
}

.sr-audio {
  display: none;
}

@media (max-width: 960px) {
  .site-head {
    padding-top: 28px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .player-card {
    order: -1;
  }

  .art-box {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 650px) {
  .wrap {
    width: min(100% - 22px, 1180px);
  }

  .site-head {
    padding: 24px 0 12px;
  }

  .logo-stage {
    width: 118px;
    height: 118px;
  }

  .top-live {
    margin-top: 18px;
    padding: 9px 12px;
    gap: 10px;
  }

  .live-word {
    font-size: .84rem;
  }

  .listener-number {
    font-size: 1rem;
  }

  .listener-label {
    font-size: .78rem;
  }

  .main-grid {
    gap: 16px;
    padding-top: 16px;
  }

  .glass {
    border-radius: 27px;
  }

  .glass-inner {
    padding: 18px;
  }

  .section-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .track-title {
    font-size: 33px !important;
    line-height: 1.12;
  }

  .play-btn {
    width: 78px;
    height: 78px;
  }

  .play-btn svg {
    width: 31px;
    height: 31px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .updated {
    white-space: normal;
  }

  .history-item {
    flex-basis: 220px;
  }

  .carousel-btn {
    display: none;
  }
}

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

@keyframes starsDrift {
  from { background-position: 0 0, 45px 80px, 120px 30px; }
  to { background-position: 900px 900px, 720px 1040px, 960px 830px; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(44px,-28px,0) scale(1.08); }
  66% { transform: translate3d(-36px,38px,0) scale(.96); }
}

@keyframes logoHalo {
  0%, 100% { transform: scale(1); opacity: .78; }
  50% { transform: scale(1.06); opacity: 1; }
}

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

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .75; }
}

@keyframes ringPulse {
  0% { transform: scale(.65); opacity: .70; }
  100% { transform: scale(2.25); opacity: 0; }
}

@keyframes playRing {
  0% { transform: scale(.96); opacity: .8; }
  100% { transform: scale(1.32); opacity: 0; }
}

@keyframes eq {
  0%, 100% { height: 6px; }
  50% { height: 29px; }
}
