:root{
  --bg:#0b0b0c;
  --card:#141417;
  --text:#f4f4f5;
  --muted:#b3b3b7;
  --accent:#1db954; /* Spotifyish */
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Typography that scales nicely on phones and desktops */
h1{font-weight:700; font-size:clamp(1.4rem, 2.5vw, 2.2rem); margin:24px 0 12px}
h2{font-weight:600; font-size:clamp(1.1rem, 2vw, 1.4rem); margin:0 0 8px}
p,li{font-size:clamp(0.98rem, 1.6vw, 1.05rem); color:var(--muted)}

.container{
  width:min(100%, 1100px);
  padding:16px;
  margin-inline:auto;
}

/* Responsive grid for playlist cards */
.grid{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;        /* phones default */
}
@media (min-width:640px){
  .grid{grid-template-columns:repeat(2, 1fr)}
}
@media (min-width:960px){
  .grid{grid-template-columns:repeat(3, 1fr)}
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 4px 16px rgb(0 0 0 / 20%);
  border:1px solid rgb(255 255 255 / 6%);
}

.card header{
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px;
}

.badge{
  font-size:0.82rem; background:rgb(255 255 255 / 7%); color:var(--text);
  border-radius:999px; padding:4px 10px; white-space:nowrap;
}

/* Make Spotify embeds fluid */
.embed{
  width:100%;
  border:0;
  display:block;
  border-radius:12px;
  /* On phones use shorter height; grow on larger screens */
  height:300px;
}
@media (max-width:420px){
  .embed{ height:240px; }
}
@media (min-width:768px){
  .embed{ height:380px; }
}

/* Links and buttons */
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.button{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:12px; background:var(--accent); color:#0b0b0c; font-weight:600;
}

/* Utilities */
.stack{display:flex; flex-direction:column; gap:6px}
.row{display:flex; gap:8px; flex-wrap:wrap}
img{max-width:100%; height:auto; border-radius:12px}
