/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport for mobile */
  overflow-x: hidden;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Scrollable panels — thin, unobtrusive scrollbars */
.settings-drawer__content,
.lyrics-panel__content {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.settings-drawer__content::-webkit-scrollbar,
.lyrics-panel__content::-webkit-scrollbar {
  width: 4px;
}

.settings-drawer__content::-webkit-scrollbar-track,
.lyrics-panel__content::-webkit-scrollbar-track {
  background: transparent;
}

.settings-drawer__content::-webkit-scrollbar-thumb,
.lyrics-panel__content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

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

/* Touch target minimum */
button, [role="button"] {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
}
