/* =========================================================================
   Spotiny · Reset + base typography
   ========================================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* The .main scroll region inside .app-shell handles its own bottom padding
     (mini-player + bottom-nav). The body itself no longer needs padding. */
}
body.mini-visible,
body.now-playing-open {
  /* Hooks kept for backward-compat with existing JS — no body padding needed. */
}
body.now-playing-open {
  overflow: hidden;
}

button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
input { background: none; border: none; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-hover); }

.truncate {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Spinner (used in mini-player loading + lyrics loading) */
.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
