:root{
  --bg0:#070914;
  --bg1:#090b18;

  --text: rgba(255,255,255,0.96);
  --muted: rgba(255,255,255,0.66);

  --c1: rgba(120,255,245,0.95);  /* cyan */
  --c2: rgba(170,120,255,0.92);  /* violet */
  --c3: rgba(255,110,200,0.70);  /* pink */

  --ok: rgba(90,255,175,0.95);
  --bad: rgba(255,110,140,0.95);

  --r: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* Background system */
.bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* soft moving neon beams */
.bg::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    linear-gradient(115deg, transparent 0%, rgba(120,255,245,0.10) 35%, transparent 55%),
    linear-gradient(295deg, transparent 0%, rgba(170,120,255,0.10) 38%, transparent 58%),
    linear-gradient(165deg, transparent 0%, rgba(255,110,200,0.07) 40%, transparent 62%);
  filter: blur(18px);
  opacity: 0.85;
  animation: beams 14s ease-in-out infinite;
  transform: rotate(0.001deg);
}

@keyframes beams{
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.02); }
  50%  { transform: translate3d(3%,  2%, 0) scale(1.05); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.02); }
}

.bg__glow{
  position:absolute;
  inset:-25%;
  background:
    radial-gradient(1200px 800px at 22% 18%, rgba(120,255,245,0.22), transparent 60%),
    radial-gradient(1100px 820px at 78% 28%, rgba(170,120,255,0.22), transparent 55%),
    radial-gradient(900px 700px at 55% 85%, rgba(255,110,200,0.14), transparent 55%),
    radial-gradient(900px 600px at 45% 55%, rgba(255,255,255,0.04), transparent 55%);
  filter: blur(26px);
  opacity: 1;
}

.bg__grid{
  position:absolute;
  inset:0;
  opacity: 0.22;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(
      to right,
      rgba(120,255,245,0.16) 0px,
      rgba(120,255,245,0.16) 1px,
      transparent 1px,
      transparent 70px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(170,120,255,0.14) 0px,
      rgba(170,120,255,0.14) 1px,
      transparent 1px,
      transparent 70px
    );
  transform-origin: center bottom;
  transform: perspective(980px) rotateX(64deg) translateY(23vh) scale(1.15);
  filter: blur(0.25px);
}

.bg__vignette{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 50% 85%, rgba(0,0,0,0.0), rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.30) 75%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(0,0,0,0.32) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 1px,
      transparent 2px,
      transparent 5px
    );
  opacity: 0.9;
}

.wrap{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

/* Main panel */
.panel{
  width: min(720px, 92vw);
  border-radius: var(--r);
  position: relative;
  z-index: 5;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(18, 24, 46, 0.86), rgba(12, 16, 32, 0.80));
  border: 1px solid rgba(120,255,245,0.20);

  box-shadow:
    0 28px 90px rgba(0,0,0,0.55),
    0 0 44px rgba(120,255,245,0.10),
    0 0 90px rgba(170,120,255,0.07),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  backdrop-filter: blur(16px);
  padding: 18px 18px 14px;
}

.panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: calc(var(--r) + 2px);
  background: linear-gradient(90deg, rgba(120,255,245,0.65), rgba(170,120,255,0.55), rgba(255,110,200,0.38));
  filter: blur(22px);
  opacity: 0.55;
  pointer-events:none;
}

.panel__frame{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 1;
}

/* HUD corners */
.corner{
  position:absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(120,255,245,0.32);
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(120,255,245,0.18));
}
.corner--tl{ top: 10px; left: 10px; border-right:none; border-bottom:none; border-top-left-radius: 10px; }
.corner--tr{ top: 10px; right: 10px; border-left:none; border-bottom:none; border-top-right-radius: 10px; }
.corner--bl{ bottom: 10px; left: 10px; border-right:none; border-top:none; border-bottom-left-radius: 10px; }
.corner--br{ bottom: 10px; right: 10px; border-left:none; border-top:none; border-bottom-right-radius: 10px; }

/* Subtle moving scan lines inside panel */
.scan{
  position:absolute;
  left:-20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  opacity: 0.35;
  transform: rotate(-10deg);
}
.scan--a{ top: 26%; animation: scan 6.5s linear infinite; }
.scan--b{ top: 62%; animation: scan 8.2s linear infinite; opacity: 0.24; }

@keyframes scan{
  from { transform: translateX(-20%) rotate(-10deg); }
  to   { transform: translateX(20%) rotate(-10deg); }
}

/* Header */
.top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.brand__title{
  font-weight: 900;
  letter-spacing: 0.9px;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand__accent{
  background: linear-gradient(90deg, rgba(120,255,245,1), rgba(170,120,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  text-shadow: 0 0 18px rgba(120,255,245,0.18);
}

.brand__tag{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

/* Status badge */
.status{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}

.status::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: rotate(18deg);
  opacity: 0.0;
}

body.is-online .status::before{
  opacity: 0.60;
  animation: shimmer 2.2s linear infinite;
}

@keyframes shimmer{
  from { transform: translateX(-60%) rotate(18deg); }
  to   { transform: translateX(220%) rotate(18deg); }
}

.status__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bad);
  box-shadow: 0 0 18px rgba(255,110,140,0.25);
}

.status[data-state="online"] .status__dot{
  background: var(--ok);
  box-shadow: 0 0 18px rgba(90,255,175,0.32);
}

.status__text{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.78);
}

/* Divider */
.divider{
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(120,255,245,0.30), rgba(170,120,255,0.28), rgba(255,110,200,0.18), transparent);
  position: relative;
  z-index: 2;
}

/* Now playing */
.now{
  position: relative;
  z-index: 2;
}

.now__label{
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.ticker{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  padding: 12px 12px;
}

.ticker::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(120,255,245,0.22), rgba(170,120,255,0.18), rgba(255,110,200,0.14));
  filter: blur(10px);
  opacity: 0.28;
  pointer-events:none;
}

.ticker__inner{
  display:inline-flex;
  align-items:center;
  gap: 18px;
  white-space: nowrap;
  will-change: transform;
  animation: scroll 14s linear infinite;
}

.ticker__text{
  font-size: 16px;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 0 14px rgba(120,255,245,0.08);
}

.ticker__sep{
  color: rgba(255,255,255,0.20);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.meta{
  display:flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.meta__pill{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
  border-radius: 999px;
  padding: 8px 12px;
}

.meta__pill--ghost{
  color: rgba(255,255,255,0.60);
}

/* Controls */
.controls{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: var(--text);
  border-radius: 16px;
  padding: 10px 15px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  user-select:none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  position: relative;
  overflow: hidden;
}

.btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, rgba(120,255,245,0.22), rgba(170,120,255,0.18), rgba(255,110,200,0.14));
  filter: blur(12px);
  opacity: 0.0;
  pointer-events:none;
  transition: opacity 140ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(120,255,245,0.28);
  box-shadow: 0 0 0 3px rgba(120,255,245,0.10);
}

.btn:hover::before{ opacity: 0.38; }

.btn--ghost:hover{
  border-color: rgba(170,120,255,0.26);
  box-shadow: 0 0 0 3px rgba(170,120,255,0.10);
}

.btn__icon{
  width: 18px;
  text-align:center;
  opacity: 0.92;
}

.volume{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
}

.volume__label{
  font-size: 12px;
  color: var(--muted);
}

.volume__slider{
  width: 180px;
  accent-color: rgba(120,255,245,0.92);
}

/* Footer */
.foot{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.foot__line{ font-size: 12px; }
.muted{ color: var(--muted); }

/* Online pulse */
body.is-online .panel::before{
  opacity: 0.64;
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe{
  0%,100%{ filter: blur(22px); }
  50%{ filter: blur(26px); }
}

/* Responsive */
@media (max-width: 480px){
  .brand__title{ font-size: 20px; }
  .volume{ width: 100%; margin-left: 0; justify-content: space-between; }
  .volume__slider{ width: 60%; }
}
