
@media (display-mode: standalone) {
  body {
    background-color: #000; /* Black background for standalone mode */
  }
}

:root{
--bg0:#07111f;
--bg1:#0c1730;
--panel: rgba(15, 24, 46, 0.78);
--panel2: rgba(21, 33, 61, 0.90);
--stroke: rgba(255,255,255,0.09);
--text:#ecf2ff;
--muted:#aab7d6;
--accent:#7c9cff;
--accent2:#8b5cf6;
--good:#42d392;
--shadow: 0 20px 60px rgba(0,0,0,0.35);
--radius: 22px;
}

* { box-sizing: border-box; }

html, body {
margin: 0;
min-height: 100%;
color: var(--text);
font-family: sans-serif;
font-weight: 600;
background:
radial-gradient(circle at top left, rgba(124,156,255,0.24), transparent 32%),
radial-gradient(circle at top right, rgba(139,92,246,0.18), transparent 28%),
linear-gradient(80deg, var(--bg0), var(--bg1));
overflow-x: hidden;
}

h3 {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #9B51E0;
font-family: "Poppins", sans-serif;
font-style: normal;
font-weight: 800;
font-size: 26px;
color: linen;
line-height: 30px;
}

h4 {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #9B51E0;
font-family: "Poppins", sans-serif;
font-style: normal;
font-weight: 800;
font-size: 16px;
}

.topbar {
position: fixed;
width: 100%;
top: 0;
z-index: 20;
backdrop-filter: blur(14px);
background: linear-gradient(180deg, rgba(7,17,31,0.95), rgba(7,17,31,0.58));
border-bottom: 3px solid rgba(255,255,255,0.3);
}

.topbar-inner {
width: min(1240px, calc(100% - 24px));
margin: 0 auto;
padding: 4px 0;
display: flex;
gap: 12px;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
position: relative;
z-index: 1;
}

.controls{
display:flex;
align-items:center;
justify-content:center;
gap:15px;
}

#playBtn {     
color: #98A0FF;
width: 58px;
background:rgba(200,120,255,.35);
border:none;
font-size:22px;
padding:10px 18px;
border-radius:10px;
cursor:pointer;
backdrop-filter:blur(8px);
}

#volume{
width:160px;
accent-color:#d070ff;
}

.itemlogo {
height: 100%;
background: linear-gradient(182.51deg, #9CBAFF 20.84%, #8D59FF 99.18%);
background-clip: border-box;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.brand {
display: flex;
flex-direction: column;
gap: 2px;
}

.brand-title {
font-size: 2.15rem;
font-weight: 700;
line-height: 1.05;
}

.brand-sub {
color: var(--muted);
font-size: 0.88rem;
}

.nav-group {
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
}

.footer {
width: min(1240px, calc(100% - 24px));
margin: auto;
display: flex;
gap: 12px;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
position: relative;
z-index: 1;
}

.pillfooter {
border: 0;
border-radius: 15px;
outline: 0;
padding: 4px 14px;
color: var(--text);
text-decoration: none;
border: 1px solid rgba(255,255,255,0.08);
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pill {
border: 0;
outline: 0;
cursor: pointer;
font-family: inherit;
padding: 10px 15px;
border-radius: 999px;
color: var(--text);
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.08);
font-weight: 600;
letter-spacing: 0.2px;
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pill:hover, .station-card:hover {
transform: translateY(-1px);
}

.pill.active {
background: linear-gradient(135deg, rgba(124,156,255,0.98), rgba(139,92,246,0.92));
box-shadow: 0 10px 28px rgba(124,156,255,0.22);
}

.wrap {
width: min(1240px, calc(100% - 24px));
margin: 40px auto;
padding:26px 0 28px;
position: relative;
z-index: 1;
}

.player-wrap {
width: min(860px, 100%);
margin: 0 auto 16px;
}

.panel {
background: transparent;
margin-bottom: 100px;
border: 1px solid var(--stroke);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
}

.player-panel {
padding: 16px;
display: grid;
gap: 14px;
}

.audio-shell {
display: none;
padding: 10px;
border-radius: 16px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.07);
}

audio {
width: 100%;
display: block;
}

.now-row {
display: grid;
grid-template-columns: 84px 1fr;
gap: 14px;
align-items: center;
}

.art {
width: 84px;
height: 84px;
border-radius: 20px;
overflow: hidden;
background:
linear-gradient(135deg, rgba(124,156,255,0.18), rgba(139,92,246,0.16)),
rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.09);
display: grid;
place-items: center;
}

.art img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.art-fallback {
width: 100%;
height: 100%;
display: grid;
place-items: center;
font-weight: 700;
font-size: 1.8rem;
color: white;
background: linear-gradient(135deg, rgba(124,156,255,0.95), rgba(139,92,246,0.95));
}

.player-meta {
display: grid;
gap: 6px;
}

.now-label {
color: var(--muted);
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}

.now-title {
margin: 0;
font-size: 1.15rem;
line-height: 1.15;
word-break: break-word;
}

.now-sub {
margin: 0;
color: var(--muted);
font-size: 0.9rem;
line-height: 1.35;
word-break: break-word;
}

.timeline {
display: grid;
gap: 8px;
padding: 12px;

}

.bar {
position: relative;
width: 100%;
height: 10px;
border-radius: 999px;
overflow: hidden;
background: rgba(255,255,255,0.10);
}

.fill {
position: absolute;
inset: 0 auto 0 0;
width: 0%;
background: linear-gradient(90deg, var(--accent), var(--accent2));
border-radius: 999px;
transition: width 0.15s linear;
}

.time-row {
display: flex;
justify-content: space-between;
gap: 12px;
color: var(--muted);
font-size: 0.9rem;
flex-wrap: wrap;
}

.stations-panel {
padding: 16px;
}

.section-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
margin-bottom: 14px;
flex-wrap: wrap;
}

.section-head h2 {
margin: 0;
font-size: 1.05rem;
}

.section-head .small {
color: var(--muted);
font-size: 0.92rem;
}

.station-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
gap: 12px;
}

.station-card {
border: 1px solid rgba(255,255,255,0.08);
border-radius: 18px;
overflow: hidden;
background: transparent;
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
display: block;
width: 100%;
text-align: left;
padding: 0;
cursor: pointer;
transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
min-height: 120px;
}

.station-card.active {
border-color: rgba(124,156,255,0.56);
background: linear-gradient(135deg, rgba(184,216,255,0.2), rgba(210,180,246,0.1));
box-shadow: 0 10px 28px rgba(124,156,255,0.22);
}

.station-card-inner {
padding: 12px 14px;
min-height: 70px;
display: flex;
align-items: center;
}

.station-name {
margin: 0;
font-size: 1.3rem;
font-weight: 700;
line-height: 1.2;
word-break: break-word;
}

.empty {
padding: 24px;
color: var(--muted);
background: rgba(255,255,255,0.04);
border: 1px dashed rgba(255,255,255,0.12);
border-radius: 18px;
text-align: center;
}

@media (max-width: 900px) {
  body {
    padding-top: 96px;
  }

  .topbar-inner {
    gap: 6px;
  }
  
  .brand-title {
    font-size: 1.5rem;
  }

  .controls {
    width: 40%;
    justify-content: center;
    order: 0;
  }

  .nav-group {
    width: 30%;
    justify-content: center;
    order: 1;
  }

  .wrap {
    margin: -40px auto 36px;
    padding: 1px 0 24px;
  }

  .station-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .now-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .art {
    width: 72px;
    height: 72px;
  }

  .panel {
    margin-bottom: 72px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 132px;
  }

  .topbar-inner,
  .wrap {
    width: min(600px, calc(100% - 16px));
  }

  .topbar-inner {
    flex-direction: row;
  }

  .brand {
    align-items: flex-start;
  }          
  
  .brand-title {
    font-size: 1rem;
  }

  .nav-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 30%;
  }

  .pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
  }

  .controls {
    width: 40%;
    justify-content: center;
    gap: 10px;
  }

  .player-panel,
  .stations-panel {
    padding: 8px;
  }

  .station-grid {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 10px;
  }

  .station-card {
    min-height: 58px;
  }

  .station-card-inner {
    padding: 8px 10px;
    min-height: 46px;
  }

  .now-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .player-meta {
    justify-items: center;
  }

  .art {
    width: 64px;
    height: 64px;
  }

  .time-row {
    justify-content: center;
  }

  #volume {
    width: min(100%, 220px);
  }

  #playBtn {
    font-size: 20px;
    padding: 9px 14px;
  }

  .background {
    display: none;
  }
}

@media (max-width: 420px) {
  body {
    padding-top: 124px;
  }

  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  #playBtn {
    width: auto;
    padding: 8px 12px;
  }

  #volume {
    width: 100%;
  }

  .controls {
    gap: 8px;
  }

  .pill {
    font-size: 0.92rem;
  }
}

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}        

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #1b0d33;
    overflow: hidden;
}

.background span {   
    width: 17vmin;
    height: 17vmin;
    border-radius: 17vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 26s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}


.background span:nth-child(0) {
    color: #651a86;
    top: 46%;
    left: 48%;
    animation-duration: 120s;
    animation-delay: -116s;
    transform-origin: -2vw 17vh;
    box-shadow: -34vmin 0 6.90528017360891vmin currentColor;
}
.background span:nth-child(1) {
    color: #4c2a75;
    top: 14%;
    left: 35%;
    animation-duration: 42s;
    animation-delay: -69s;
    transform-origin: 11vw -14vh;
    box-shadow: 34vmin 0 5.617344491716791vmin currentColor;
}
.background span:nth-child(2) {
    color: #583C87;
    top: 14%;
    left: 42%;
    animation-duration: 74s;
    animation-delay: -422s;
    transform-origin: 1vw 1vh;
    box-shadow: -34vmin 0 8.929709081423635vmin currentColor;
}
.background span:nth-child(3) {
    color: rgba(132, 95, 175, 0.6);
    top: 29%;
    left: 32%;
    animation-duration: 135s;
    animation-delay: -159s;
    transform-origin: 18vw 1vh;
    box-shadow: 34vmin 0 8.555858131037738vmin currentColor;
}
.background span:nth-child(4) {
    color: #651a86;
    top: 61%;
    left: 71%;
    animation-duration: 453s;
    animation-delay: -258s;
    transform-origin: 0vw 14vh;
    box-shadow: 34vmin 0 14.32372576473221vmin currentColor;
}
.background span:nth-child(5) {
    color: #651a86;
    top: 65%;
    left: 64%;
    animation-duration: 332s;
    animation-delay: -478s;
    transform-origin: -13vw 4vh;
    box-shadow: -34vmin 0 10.232417304412594vmin currentColor;
}
.background span:nth-child(6) {
    color: #583C87;
    top: 30%;
    left: 75%;
    animation-duration: 142s;
    animation-delay: -241s;
    transform-origin: 13vw 3vh;
    box-shadow: 34vmin 0 3.6831844362706185vmin currentColor;
}
.background span:nth-child(7) {
    color: rgba(132, 95, 175, 0.6);
    top: 1%;
    left: 11%;
    animation-duration: 317s;
    animation-delay: -83s;
    transform-origin: -17vw 24vh;
    box-shadow: -34vmin 0 7.035953931650241vmin currentColor;
}
.background span:nth-child(8) {
    color: #583C87;
    top: 63%;
    left: 92%;
    animation-duration: 126s;
    animation-delay: -287s;
    transform-origin: 17vw 22vh;
    box-shadow: -34vmin 0 6.478691695985274vmin currentColor;
}
.background span:nth-child(9) {
    color: #583C87;
    top: 73%;
    left: 9%;
    animation-duration: 37s;
    animation-delay: -205s;
    transform-origin: 4vw -4vh;
    box-shadow: -34vmin 0 5.1800295283807465vmin currentColor;
}
.background span:nth-child(10) {
    color: #583C87;
    top: 26%;
    left: 99%;
    animation-duration: 224s;
    animation-delay: -134s;
    transform-origin: -5vw -13vh;
    box-shadow: -34vmin 0 4.648456168216528vmin currentColor;
}
.background span:nth-child(11) {
    color: #651a86;
    top: 9%;
    left: 77%;
    animation-duration: 239s;
    animation-delay: -461s;
    transform-origin: -11vw -12vh;
    box-shadow: -34vmin 0 4.811942675959224vmin currentColor;
}
.background span:nth-child(12) {
    color: #4c2a75;
    top: 73%;
    left: 95%;
    animation-duration: 71s;
    animation-delay: -476s;
    transform-origin: 24vw -13vh;
    box-shadow: 34vmin 0 8.45757157047761vmin currentColor;
}
.background span:nth-child(13) {
    color: rgba(132, 95, 175, 0.6);
    top: 77%;
    left: 52%;
    animation-duration: 104s;
    animation-delay: -65s;
    transform-origin: 9vw 9vh;
    box-shadow: -34vmin 0 4.342580882765889vmin currentColor;
}

.hidden {
  display: none;
}


input,
output {
  display: inline-block;
  vertical-align: middle;
  font-size: 1em;
  font-family: Arial, sans-serif;
}

output {
  background: #ff4500;
  padding: 5px 16px;
  border-radius: 3px;
  color: #fff;
}


input[type="range"] {
  -webkit-appearance: none;
  margin-right: 15px;
  width: 200px;
  height: 7px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  background-image: linear-gradient(#8761B6, #583C87);
  background-repeat: no-repeat;
}


/* Input Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #ff4500;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;
  transition: background .3s ease-in-out;
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3181ED;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;
  transition: background .3s ease-in-out;
}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #ff4500;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;
  transition: background .3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #ff0200;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #ff0200;
}

input[type="range"]::-ms-thumb:hover {
  background: #ff0200;
}

/* Input Track */
input[type=range]::-webkit-slider-runnable-track  {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type=range]::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type="range"]::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}