/* ===== Music Page ===== */
.music-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 20px 40px;
}

/* ===== iPod Classic ===== */
.ipod {
  width: 320px;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 20px;
  padding: 24px 16px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 8px 8px 0 0 var(--border);
}

/* Screen — iPod LCD palette */
.ipod {
  --lcd-bg: #c8d4a2;
  --lcd-text: #444;
  --lcd-text-light: #333;
  --lcd-border: #a0b080;
}

[data-theme="dark"] .ipod {
  --lcd-bg: #2a3a1a;
  --lcd-text: #8a9a6a;
  --lcd-text-light: #a0b080;
  --lcd-border: #3a4a2a;
}

.ipod-screen {
  width: 100%;
  background: var(--lcd-bg);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ipod-header {
  font-family: 'Bangers', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-align: center;
  color: var(--lcd-text);
  border-bottom: 1px solid var(--lcd-border);
  padding-bottom: 4px;
}

.ipod-now-playing {
  font-family: 'Special Elite', serif;
  font-size: 11px;
  text-align: center;
  color: var(--lcd-text-light);
  padding: 4px 0;
  min-height: 18px;
}

/* Track list */
.ipod-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ipod-track {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  cursor: pointer;
  font-family: 'Special Elite', serif;
  font-size: 11px;
  color: var(--text);
  border-radius: 3px;
  transition: background 0.15s;
}

[data-theme="dark"] .ipod-track {
  color: #a0b080;
}

.ipod-track:hover {
  background: rgba(0,0,0,0.1);
}

[data-theme="dark"] .ipod-track:hover {
  background: rgba(255,255,255,0.1);
}

.ipod-track.active {
  background: #444;
  color: #c8d4a2;
}

[data-theme="dark"] .ipod-track.active {
  background: #8a9a6a;
  color: #1a2a0a;
}

.track-num {
  font-size: 10px;
  width: 14px;
  text-align: right;
  opacity: 0.6;
}

.track-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Progress */
.ipod-progress {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.ipod-progress-bar {
  height: 100%;
  width: 0%;
  background: #444;
  border-radius: 2px;
  transition: width 0.3s;
}

[data-theme="dark"] .ipod-progress-bar {
  background: #8a9a6a;
}

.ipod-time {
  display: flex;
  justify-content: space-between;
  font-family: 'Special Elite', serif;
  font-size: 9px;
  color: #666;
}

[data-theme="dark"] .ipod-time {
  color: #6a7a5a;
}

/* Click Wheel */
.ipod-wheel {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipod-wheel-ring {
  width: 200px;
  height: 200px;
  border: 3px solid var(--border);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.ipod-wheel-center {
  all: unset;
  box-sizing: border-box;
  width: 76px;
  height: 76px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.15s;
}

.ipod-wheel-center:hover {
  transform: scale(1.05);
}

.ipod-wheel-center:active {
  transform: scale(0.95);
}

.ipod-wheel-label {
  position: absolute;
  font-family: 'Bangers', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.ipod-wheel-label.top { top: 10px; }
.ipod-wheel-label.bottom { bottom: 10px; }
.ipod-wheel-label.left { left: 14px; }
.ipod-wheel-label.right { right: 14px; }

@media (max-width: 600px) {
  .music-page {
    padding: 56px 16px 30px;
  }
  .ipod {
    width: 290px;
    padding: 20px 14px 24px;
    gap: 20px;
    box-shadow: 6px 6px 0 0 var(--border);
  }
  .ipod-track {
    padding: 8px 10px;
    min-height: 36px;
  }
  .ipod-wheel {
    width: 180px;
    height: 180px;
  }
  .ipod-wheel-ring {
    width: 160px;
    height: 160px;
  }
  .ipod-wheel-center {
    width: 60px;
    height: 60px;
  }
}

/* ===== Spotify Button ===== */
.spotify-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  font-family: 'Bangers', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 12px 24px;
  background: var(--border);
  color: var(--bg);
  border: 3px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 0 var(--border);
}

.spotify-btn:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--border);
}

@media (max-width: 600px) {
  .spotify-btn {
    bottom: 14px;
    left: 14px;
    font-size: 14px;
    padding: 10px 18px;
  }
}

@media (max-width: 380px) {
  .ipod {
    width: 250px;
    padding: 16px 12px 20px;
  }

  .ipod-wheel {
    width: 150px;
    height: 150px;
  }

  .ipod-wheel-ring {
    width: 130px;
    height: 130px;
  }

  .ipod-wheel-center {
    width: 50px;
    height: 50px;
  }
}
