/* ===================================
   NagiFM - Minimal Focus Music Player
   =================================== */

:root {
  /* Colors */
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --bg-tertiary: #1c1c1f;
  --text-primary: #ffffff;
  --text-secondary: #888892;
  --text-muted: #4a4a52;
  --accent: #a5b4fc;
  --accent-dim: rgba(165, 180, 252, 0.3);
  --accent-glow: rgba(165, 180, 252, 0.15);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Sizing */
  --player-max-width: 400px;
  --control-size: 64px;
  --control-size-sm: 40px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--player-max-width);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
}

/* Header / Logo */
.header {
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 400;
}

.logo-kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.9;
}

.logo-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Player */
.player {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

/* Category Navigation */
.category-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  min-height: 2rem;
}

.category-current {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: default;
  text-align: center;
}

/* Category arrows (< >) - positioned absolutely so Focus stays centered */
.category-arrow {
  position: absolute;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  top: 50%;
  transform: translateY(-50%);
}

.category-arrow-prev {
  right: calc(50% + 2.5rem);
}

.category-arrow-next {
  left: calc(50% + 2.5rem);
}

.category-arrow:hover {
  opacity: 0.8;
  color: var(--text-secondary);
}

.category-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Category name labels (positioned near current category) */
.category-prev-name,
.category-next-name {
  position: absolute;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

.category-prev-name {
  right: calc(100% - 30px);
  transform: translateY(-50%) perspective(150px) rotateY(20deg);
  transform-origin: right center;
}

.category-next-name {
  left: calc(100% - 30px);
  transform: translateY(-50%) perspective(150px) rotateY(-20deg);
  transform-origin: left center;
}

.category-prev-name:hover,
.category-next-name:hover {
  opacity: 0.8;
  color: var(--text-secondary);
}

.category-prev-name.hidden,
.category-next-name.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Category background covers (behind main cover) */
.category-bg {
  position: absolute;
  z-index: 1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-bg-cover {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.2;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Position covers behind main cover, 40% hidden */
.category-bg-prev {
  /* Will be positioned via JS to align with cover center */
}

.category-bg-prev .category-bg-cover {
  transform: perspective(400px) rotateY(20deg);
}

.category-bg-next .category-bg-cover {
  transform: perspective(400px) rotateY(-20deg);
}

.category-bg.hidden {
  opacity: 0;
}

/* Swoosh animation for background covers - slide inward toward player */
.category-bg-prev.swoosh-in {
  animation: bgSwooshInFromLeft 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-bg-next.swoosh-in {
  animation: bgSwooshInFromRight 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bgSwooshInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes bgSwooshInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Swoosh animation for category names */
.category-prev-name.swoosh-in,
.category-next-name.swoosh-in {
  animation: nameSwooshIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nameSwooshIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1);
  }
}

/* Main cover swoosh effect */
.cover-container.swoosh {
  animation: coverSwoosh 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes coverSwoosh {
  0% {
    opacity: 0.3;
    transform: perspective(400px) rotateY(30deg) scale(0.8) translateX(80px);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg) scale(1) translateX(0);
  }
}

.cover-container.swoosh-left {
  animation: coverSwooshLeft 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes coverSwooshLeft {
  0% {
    opacity: 0.3;
    transform: perspective(400px) rotateY(-30deg) scale(0.8) translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg) scale(1) translateX(0);
  }
}

/* Track Info */
.track-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.track-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.status-dot.active {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Cover Art */
.cover-container {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.cover-container:hover .cover-image,
.cover-container:hover .cover-video {
  transform: scale(1.02);
}

.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.cover-video.loaded {
  opacity: 1;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.player.playing .cover-overlay {
  opacity: 1;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.player.buffering .loading-spinner {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progress Bar */
.progress-container {
  width: 100%;
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

input[type="range"].amplitude-song-played-progress {
  width: 100%;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

input[type="range"].amplitude-song-played-progress::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

input[type="range"].amplitude-song-played-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: -8px;
  box-shadow: 0 0 10px var(--accent-dim);
  opacity: 0;
  transition: opacity var(--transition-normal);
}


input[type="range"].amplitude-song-played-progress::-moz-range-track {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  border: none;
}

input[type="range"].amplitude-song-played-progress::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 10px var(--accent-dim);
  opacity: 0;
  transition: opacity var(--transition-normal);
}


input[type="range"].amplitude-song-played-progress::-moz-range-progress {
  background: var(--accent);
  height: 4px;
  border-radius: 2px;
}

progress.amplitude-song-played-progress {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  pointer-events: none;
  z-index: 1;
}

progress.amplitude-song-played-progress::-webkit-progress-bar {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

progress.amplitude-song-played-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 2px;
}

progress.amplitude-song-played-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 2px;
}

/* Wave Animation Container */
.wave-container {
  width: 100%;
  height: 36px;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.wave-svg {
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.25;
}

.wave {
  transition: opacity var(--transition-normal);
}

.wave-1 {
  opacity: 0.6;
  transform-origin: center;
  animation: waveMove1 3s ease-in-out infinite;
  animation-play-state: paused;
}

.wave-2 {
  opacity: 0.4;
  transform-origin: center;
  animation: waveMove2 4s ease-in-out infinite;
  animation-play-state: paused;
}

.wave-3 {
  opacity: 0.2;
  transform-origin: center;
  animation: waveMove3 5s ease-in-out infinite;
  animation-play-state: paused;
}

/* Resume wave animation when playing */
.player.playing .wave-1,
.player.playing .wave-2,
.player.playing .wave-3 {
  animation-play-state: running;
}

@keyframes waveMove1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes waveMove2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes waveMove3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* Wave boat */
.wave-boat {
  position: absolute;
  top: 0;
  left: 20%;
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.35;
  /* Animation always running but paused by default */
  animation: boatSail 15s ease-in-out infinite, boatBob 2.5s ease-in-out infinite;
  animation-play-state: paused;
}

.wave-boat svg {
  width: 100%;
  height: 100%;
}

/* Resume animation when playing */
.player.playing .wave-boat {
  animation-play-state: running;
}

/* Boat sailing across the waves */
@keyframes boatSail {
  0% { left: 15%; }
  30% { left: 50%; }
  60% { left: 75%; }
  100% { left: 15%; }
}

/* Boat bobbing up and down */
@keyframes boatBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Play Button */
.play-btn {
  width: var(--control-size);
  height: var(--control-size);
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-dim);
}

.play-btn:active {
  transform: scale(0.98);
}

.play-btn .icon {
  width: 24px;
  height: 24px;
}

.play-btn .icon-play {
  margin-left: 3px;
}

/* Volume */
.volume-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.volume-btn {
  width: var(--control-size-sm);
  height: var(--control-size-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.volume-btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.volume-btn .icon {
  width: 20px;
  height: 20px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.volume-slider:hover::-webkit-slider-thumb {
  background: var(--text-primary);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-secondary);
  border-radius: 50%;
  border: none;
}

.volume-slider::-moz-range-progress {
  background: var(--text-secondary);
  height: 4px;
  border-radius: 2px;
}

/* Footer */
.footer {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.settings-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color var(--transition-fast), background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.settings-btn svg {
  width: 16px;
  height: 16px;
}

.settings-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.about-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.about-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 100;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: var(--spacing-xl);
  max-width: 320px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

/* About Modal */
.about-content {
  padding: var(--spacing-xl) var(--spacing-lg);
}

.about-kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: 4.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-romanji {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.about-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.about-tagline {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

.about-brand {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.about-tagline-jp {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Settings Modal */
.settings-content {
  min-width: 280px;
}

.settings-content .modal-title {
  margin-bottom: var(--spacing-md);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  cursor: pointer;
}

.setting-label {
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.setting-beta {
  color: var(--accent);
  margin-left: 0.25rem;
  display: none;
}

.setting-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: var(--spacing-xs);
  text-align: right;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: 24px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-dim);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

/* Story Modal (Full Page) */
.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.story-overlay.active {
  opacity: 1;
  visibility: visible;
}

.story-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-close {
  position: fixed;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
}

.story-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.story-close svg {
  width: 20px;
  height: 20px;
}

.story-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.story-article {
  max-width: 600px;
  margin: 0 auto;
  padding: calc(var(--spacing-xl) * 2) var(--spacing-lg);
  padding-bottom: calc(var(--spacing-xl) * 3);
}

.story-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.3;
}

/* Japanese version uses Shippori Mincho */
#story-ja .story-title,
#story-ja .story-text {
  font-family: 'Shippori Mincho', serif;
  font-style: normal;
}

.story-particle {
  font-size: 0.9em;
}

.story-kana {
  font-size: 0.9em;
}

.story-lang-link {
  font-family: inherit;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.story-lang-link:hover {
  color: var(--text-secondary);
}

.story-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.story-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.story-signature {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-xl);
  text-align: right;
}

/* Story button */
.story-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.story-btn:hover {
  color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 480px) {
  :root {
    --control-size: 56px;
    --control-size-sm: 36px;
  }

  .container {
    padding: var(--spacing-md);
    gap: var(--spacing-lg);
  }

  .logo-kanji {
    font-size: 2.5rem;
  }

  .volume-slider {
    width: 60px;
  }

  .controls {
    gap: var(--spacing-md);
  }
}

@media (max-width: 360px) {
  .volume-container {
    flex-direction: column;
    gap: 0;
  }

  .volume-slider {
    display: none;
  }
}

/* Loading State */
.player.loading .play-btn {
  opacity: 0.7;
}

/* Focus States */
button:focus-visible,
input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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