* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #121212;
  --surface: #181818;
  --surface-hover: #232323;
  --text: #ffffff;
  --muted: #b3b3b3;
  --brand: #1DB954;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --border: 1px solid rgba(255,255,255,.06);
  --transition-fast: 150ms;
  --transition-med: 250ms;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 2rem;
  min-height: 100vh;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  text-align: center;
  padding-top: 3em;
}
header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
header p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: #b3b3b3;
  max-width: 700px;
  padding-top: 0.5em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 3em;
}
.grid p {
  margin-top: 0.75em;
}
.playlist {
  display: block;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform var(--transition-fast) ease, background var(--transition-med) ease, box-shadow var(--transition-med) ease;
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow);
}
.playlist:hover {
  background: var(--surface-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.playlist:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.playlist img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.playlist h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #fff;
}
.playlist p {
  font-size: 0.85rem;
  color: #b3b3b3;
}
.left-aligned {
  text-align: left;
  margin: 0 auto;
}
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #b3b3b3;
}
footer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

footer p {
  margin-bottom: 0.5em;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 3.5s infinite cubic-bezier(.445,.05,.55,.95);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.status-dot.green { background-color: #22c55e; color: #22c55e; box-shadow: 0 0 12px 2px rgba(34,197,94,.45); }
.status-dot.orange { background-color: #f59e0b; color: #f59e0b; box-shadow: 0 0 12px 2px rgba(245,158,11,.45); }
.status-dot.red { background-color: #ef4444; color: #ef4444; box-shadow: 0 0 12px 2px rgba(239,68,68,.45); }

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.6; }
  40%      { transform: scale(1.08); opacity: 0.75; }
  60%      { transform: scale(1.08); opacity: 1; }
}