:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8f8fa;
  background: #09090b;
  --red: #ff3152;
  --muted: #a7a7b0;
  --line: #ffffff17;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: radial-gradient(circle at 12% 8%, #811c314d 0, transparent 34rem), radial-gradient(circle at 88% 86%, #5217273d 0, transparent 30rem), linear-gradient(145deg, #070708, #111115 58%, #09090b);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.player-shell { position: relative; width: min(100% - 36px, 1040px); margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0 28px; }
.station-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.station-header { margin-bottom: clamp(22px, 4vw, 38px); }
.station-brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.station-brand strong,.station-brand small { display: block; }
.station-brand strong { font-size: 15px; letter-spacing: .01em; }
.station-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.station-mark { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 1px solid #ffffff24; border-radius: 14px; background: linear-gradient(145deg, #ff4260, #b90f2d); box-shadow: 0 10px 30px #bd173740; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: -.08em; }
.station-mark img { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.station-mark span { line-height: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #ff54703d; border-radius: 999px; background: #ff315212; color: #ff8da0; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px #ff31521f; }
.player-card { display: grid; grid-template-columns: minmax(280px, .92fr) minmax(320px, 1.08fr); gap: clamp(30px, 6vw, 72px); align-items: center; padding: clamp(22px, 4.5vw, 52px); border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(145deg, #1b1b20e8, #101013f2); box-shadow: 0 36px 100px #0009, inset 0 1px #ffffff0f; backdrop-filter: blur(20px); }
.artwork-stage { position: relative; min-width: 0; }
.artwork-frame { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid #ffffff1f; border-radius: 26px; background: #222228; box-shadow: 0 28px 60px #0008; transform: translateZ(0); transition: transform .5s ease, box-shadow .5s ease; }
.artwork-frame img,.artwork-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.artwork-frame img { z-index: 2; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .45s ease, transform .8s ease; }
.artwork-frame img.is-loaded { opacity: 1; transform: scale(1); }
.artwork-fallback { display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; background: radial-gradient(circle at 32% 28%, #ff627c 0, transparent 27%), linear-gradient(145deg, #d91f3e, #520d1b 72%); color: white; font-size: clamp(48px, 9vw, 92px); font-weight: 900; letter-spacing: -.11em; }
.artwork-fallback b { color: #ff9aaa; font-weight: 900; }
.artwork-sheen { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(125deg, #ffffff1c, transparent 28%, transparent 70%, #0004); }
.equalizer { position: absolute; z-index: 4; right: 18px; bottom: 18px; display: flex; align-items: end; gap: 4px; height: 40px; padding: 6px 11px 10px; border: 1px solid #ffffff2b; border-radius: 12px; background: #08080bc9; box-shadow: 0 8px 22px #0007; backdrop-filter: blur(10px); }
.equalizer i { width: 3px; height: 8px; border-radius: 99px; background: #ff4865; transform-origin: bottom; }
body[data-player-state="playing"] .equalizer i { animation: equalizer .72s ease-in-out infinite alternate; }
body[data-player-state="playing"] .equalizer i:nth-child(2) { animation-delay: -.48s; }
body[data-player-state="playing"] .equalizer i:nth-child(3) { animation-delay: -.16s; }
body[data-player-state="playing"] .equalizer i:nth-child(4) { animation-delay: -.62s; }
body[data-player-state="playing"] .equalizer i:nth-child(5) { animation-delay: -.28s; }
body[data-player-state="playing"] .equalizer i:nth-child(6) { animation-delay: -.54s; }
body[data-player-state="playing"] .equalizer i:nth-child(7) { animation-delay: -.08s; }
body[data-player-state="playing"] .artwork-frame { transform: translateY(-4px); box-shadow: 0 34px 72px #000a, 0 0 55px #d3163530; }
.player-content { min-width: 0; }
.eyebrow { margin: 0 0 13px; color: #ff7188; font-size: 11px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
h1 { max-width: 14ch; margin: 0; overflow-wrap: anywhere; font-size: clamp(34px, 5.5vw, 60px); letter-spacing: -.055em; line-height: .98; }
.artist-label { margin: 16px 0 0; color: #f0f0f3; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.transport { display: flex; align-items: center; gap: 19px; margin-top: clamp(30px, 5vw, 48px); }
.play-toggle { position: relative; flex: 0 0 74px; width: 74px; height: 74px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(145deg, #ff4260, #cb1232); color: #fff; box-shadow: 0 15px 38px #d4193b61, inset 0 1px #ffffff63; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.play-toggle:hover { transform: scale(1.045); box-shadow: 0 18px 46px #e31b406e, inset 0 1px #ffffff63; }
.play-toggle:active { transform: scale(.96); }
.button-ring { position: absolute; inset: -1px; border: 1px solid #ff7188; border-radius: inherit; opacity: 0; }
body[data-player-state="connecting"] .button-ring { inset: -8px; border-width: 3px; border-color: #ff91a34d; border-top-color: #fff; opacity: 1; animation: buffer-ring .8s linear infinite; }
body[data-player-state="connecting"] .play-toggle { cursor: progress; box-shadow: 0 15px 38px #d4193b61, 0 0 0 5px #ff315217, inset 0 1px #ffffff63; }
body[data-player-state="playing"] .button-ring { animation: pulse-ring 1.8s ease-out infinite; }
.play-icon { width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid currentColor; transition: opacity .18s ease, transform .25s ease; }
.stop-icon { position: absolute; width: 19px; height: 19px; border-radius: 4px; background: currentColor; opacity: 0; transform: scale(.55) rotate(-20deg); transition: opacity .18s ease, transform .25s ease; }
body[data-player-state="playing"] .play-icon { opacity: 0; transform: scale(.55) rotate(20deg); }
body[data-player-state="playing"] .stop-icon { opacity: 1; transform: scale(1) rotate(0); }
.transport-copy { min-width: 0; }
.transport-copy strong { display: block; margin-bottom: 5px; font-size: 16px; }
.status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.status[data-state="playing"] { color: #70dfa7; }
.status[data-state="error"] { color: #ff91a3; }
.live-progress { height: 3px; margin: 25px 0 24px; overflow: hidden; border-radius: 99px; background: #ffffff13; }
.live-progress span { display: block; width: 35%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #ff3152, #ff9aac, transparent); opacity: .25; transform: translateX(-120%); }
body[data-player-state="playing"] .live-progress span { opacity: 1; animation: live-progress 1.8s linear infinite; }
.stream-options { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
label { color: #c9c9cf; font-size: 12px; font-weight: 750; }
select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 36px 9px 12px; border: 1px solid #ffffff20; border-radius: 11px; background: #ffffff0a; color: #f8f8fa; font: inherit; font-size: 12px; }
select option { color: #111; background: #fff; }
audio { display: none; }
.retry-button { width: 100%; margin-top: 14px; padding: 12px 16px; border: 1px solid #ff617a52; border-radius: 11px; background: #ff315215; color: #ff9cac; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ff7890; outline-offset: 4px; }
@keyframes equalizer { from { height: 7px; } to { height: 18px; } }
@keyframes buffer-ring { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { opacity: .7; transform: scale(1); } 75%,100% { opacity: 0; transform: scale(1.42); } }
@keyframes live-progress { to { transform: translateX(335%); } }
@media (max-width: 760px) {
  .player-shell { width: min(100% - 28px, 560px); padding-top: 22px; }
  .player-card { grid-template-columns: 1fr; gap: 28px; border-radius: 27px; }
  .artwork-stage { width: min(100%, 430px); margin: 0 auto; }
  h1 { max-width: none; font-size: clamp(32px, 10vw, 50px); }
  .transport { margin-top: 28px; }
}
@media (max-width: 430px) {
  .player-shell { width: min(100% - 20px, 400px); padding-top: 14px; }
  .station-header { margin: 0 4px 14px; }
  .station-brand small { display: none; }
  .live-pill { padding: 7px 10px; }
  .player-card { gap: 24px; padding: 14px 14px 22px; border-radius: 23px; }
  .artwork-frame { border-radius: 19px; }
  .equalizer { right: 12px; bottom: 12px; }
  .player-content { padding: 0 5px; }
  .stream-options { grid-template-columns: 1fr; gap: 8px; }
  .play-toggle { flex-basis: 66px; width: 66px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
