:root{
  --bg: #121212;
  --surface: #181818;
  --accent: #1db954; /* Spotify green */
  --text: #e6e6e6;
  --muted: #b3b3b3;
  --radius: 18px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background:linear-gradient(180deg,var(--bg),#0f0f0f);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  min-height:100vh;
}

/* Player layout */
#player{
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 20px;
  padding: 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  -webkit-user-select:none;
  user-select:none;
  touch-action:manipulation;
}

/* Cover */
#cover{
  width: calc(100% - 8px);
  border-radius: 12px;
  background:linear-gradient(180deg,#222,#0f0f0f);
  object-fit:cover;
  aspect-ratio:1/1;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Metadata */
#meta{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
  padding: 6px 2px;
}

#title{
  font-size:1.05rem;
  line-height:1.1;
  color:var(--text);
  font-weight:700;
  word-break:break-word;
}

#artist{
  font-size:0.95rem;
  color:var(--muted);
  font-weight:400;
  word-break:break-word;
}

/* Controls */
#controls{
  width:100%;
  display:flex;
  justify-content:center;
  padding-top:6px;
}

/* Play button - minimal, big, touch-friendly */
#playBtn{
  width:72px;
  height:72px;
  border-radius:50%;
  background:linear-gradient(180deg,var(--accent), #1aa34a);
  border:none;
  display:grid;
  place-items:center;
  box-shadow: 0 8px 26px rgba(27, 163, 83, 0.18), inset 0 -3px 8px rgba(0,0,0,0.15);
  -webkit-tap-highlight-color: transparent;
}

#playBtn:active{ transform:translateY(1px) }

#playBtn::before{
  content:"";
  display:block;
  width:0;
  height:0;
  border-style:solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent white;
  margin-left:4px;
}

/* When playing, show pause icon */
#playBtn.playing{
  background:transparent;
  border: 2px solid rgba(255,255,255,0.06);
  box-shadow:none;
}
#playBtn.playing::before{
  content:"";
  display:block;
  width:18px;
  height:18px;
  background:linear-gradient(180deg, #ffffff, #dadada);
  clip-path: polygon(0 0, 40% 0, 40% 100%, 0 100%, 0 0, 60% 0, 100% 0, 100% 100%, 60% 100%, 60% 0);
}

/* Responsive adjustments to fit TV and mobile screens nicely */
@media (min-width:720px){
  #player{ width:420px; }
}