:root{
  --bg1:#1b1330;
  --bg2:#0d0b1a;
  --card:#221a3a;
  --accent:#ff6b9d;
  --accent-2:#7c5cff;
  --ink:#f3f1fa;
  --muted:#9891b5;
}
*{box-sizing:border-box;
  font-size: medium;}
html{
  height: 100%;
}
body{
  margin:0;
  height: auto;
  display:flex; justify-content:center;
  align-items:center;
  background:radial-gradient(circle at 20% 10%, var(--bg1), var(--bg2) 65%);
  font-family:Arial, 'Helvetica Neue', sans-serif;
  color:var(--ink);
  padding:20px;
}
.player{
  /* width:380px; */
  /* width: 100%; */
  max-height: 80%;
  min-width: 380px;
  width: 80%;
  background:linear-gradient(165deg, var(--card), #191228);
  border-radius:26px;
  padding:28px;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.06);
}
.art{
  max-width: 280px;
  width:100%; aspect-ratio:1;
  border-radius:18px;
  background:conic-gradient(from 180deg, var(--accent-2), var(--accent), var(--accent-2));
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
  position:relative;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(124,92,255,.35);
}
.art::before{
  content:'';
  position:absolute; inset:12%;
  background:var(--bg2);
  border-radius:50%;
}
.art .disc{
  position:relative;
  width:40%; height:40%;
  border-radius:50%;
  background:radial-gradient(circle, #35294f 0%, #1b1330 70%);
  border:2px solid rgba(255,255,255,.15);
  animation:spin 6s linear infinite;
  animation-play-state:paused;
}
.art.playing .disc{ animation-play-state:running; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.meta{ text-align:center; margin-bottom:22px; }
.meta .title{ font-size:1.25rem; font-weight:700; letter-spacing:-0.01em; }
.meta .artist{ color:var(--muted); font-size:.9rem; margin-top:4px; }

.progress-row{ display:flex; align-items:center; gap:10px; margin-bottom:20px;}
.time{ font-size:.72rem; color:var(--muted); width:36px; }
.time.end{ text-align:right; }
input[type=range]{
  -webkit-appearance:none; appearance:none;
  flex:1; height:12px; border-radius:4px;
  /* background:rgba(255,255,255,.15); */
  background: orange;
  outline:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:13px; height:13px; border-radius:50%;
  background:var(--accent);
  cursor:pointer;
  box-shadow:0 0 0 4px rgba(255,107,157,.2);
}
#progress::-webkit-slider-runnable-track{
  background:linear-gradient(to right, var(--accent) var(--progress,0%), rgba(255, 255, 255, 0.15) 0%);
  height:4px; border-radius:4px;
}

.controls{
  display:flex; align-items:center; justify-content:center; gap:20px;
  margin-bottom:22px;
}
.controls button{
  background:transparent; border:none; color:var(--ink);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:transform .15s ease, color .15s ease;
}
.controls button:hover{ color:var(--accent); transform:scale(1.1); }
.controls .play-btn{
  width:58px; height:58px; border-radius:50%;
  background:linear-gradient(145deg, var(--accent), var(--accent-2));
  color:#fff;
}
.controls .play-btn:hover{ color:#fff; transform:scale(1.06); }
.controls svg{ width:22px; height:22px; }
.controls .play-btn svg{ width:24px; height:24px; }

.bottom-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.volume{ display:flex; align-items:center; gap:8px; flex:1; }
.volume svg{ width:32px; height:32px; color:var(--muted); flex-shrink:0; }
#volume{ flex:1; background: blueviolet;}
.shuffle-repeat{ display:flex; gap:10px; }
.shuffle-repeat button{ color:var(--muted); }
.shuffle-repeat button.active{ color:var(--accent); }

.playlist {
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 16px;
    max-height: 200px;
    overflow: auto;
    scrollbar-color: var(--accent) var(--bg2);
}

.playlist-item{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 8px; border-radius:10px; cursor:pointer;
  font-size:.85rem; color:var(--muted);
  transition:background .15s ease, color .15s ease;
}
.playlist-item:hover{ background:rgba(255,255,255,.05); color:var(--ink); }
.playlist-item.active{ color:var(--accent); background:rgba(255,107,157,.08); }
.playlist-item .dur{ font-size:.75rem; }

/* Von mir hinzugefügt: lässt shuffle oder repeat active oder nicht */
.changeActive {color: greenyellow!important;}
/* .artcontainer {
  width: 100%;
  display: flex;
  justify-content: center;
} */