* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  overflow: hidden;
}

#bgBlur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.3) saturate(1.3);
  z-index: -1;
  transition: background-image 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ipod-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  height: 100vh;
  padding: 40px 60px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}

/* ===== iPod Body ===== */
.ipod-body {
  width: 320px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid #333;
  border-radius: 30px;
  box-shadow: 
    0 0 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.ipod-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.ipod-top-bezel {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid #444;
  font-size: 11px;
  letter-spacing: 2px;
  color: #999;
  font-weight: 600;
}

.logo {
  font-size: 14px;
  font-weight: 700;
  color: #0f0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  letter-spacing: 3px;
}

/* ===== Screen ===== */
.ipod-screen {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    inset 0 -2px 4px rgba(255, 255, 255, 0.05);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-display {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.album-art {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.now-playing-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 4px;
}

.info-header {
  font-size: 8px;
  letter-spacing: 1px;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}

.track-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
  margin: 2px 0;
}

.track-artist {
  font-size: 10px;
  color: #999;
  margin: 0;
}

.progress-bar {
  height: 2px;
  background: #333;
  border-radius: 1px;
  margin: 6px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f0, #0d0);
  box-shadow: 0 0 4px rgba(0, 255, 0, 0.5);
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #666;
  font-family: 'Courier New', monospace;
}

/* ===== Click Wheel ===== */
.click-wheel-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.click-wheel {
  position: relative;
  width: 240px;
  height: 240px;
  border: 2px solid #444;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #333, #1a1a1a);
  box-shadow: 
    0 0 0 1px #222,
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -4px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.wheel-segment {
  position: absolute;
  width: 70px;
  height: 70px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
}

.wheel-segment:hover {
  color: #0f0;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

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

.wheel-up {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.wheel-right {
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.wheel-down {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.wheel-left {
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Center Play Button */
.center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid #0f0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 255, 0, 0.1), rgba(0, 0, 0, 0.3));
  color: #0f0;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 
    0 0 0 1px rgba(0, 255, 0, 0.3),
    inset 0 1px 2px rgba(0, 255, 0, 0.2);
}

.center-button:hover {
  background: radial-gradient(circle at 35% 35%, rgba(0, 255, 0, 0.2), rgba(0, 0, 0, 0.4));
  box-shadow: 
    0 0 12px rgba(0, 255, 0, 0.4),
    0 0 0 1px rgba(0, 255, 0, 0.5),
    inset 0 1px 2px rgba(0, 255, 0, 0.3);
}

.center-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Wheel Labels */
.wheel-labels {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 8px;
  color: #555;
  letter-spacing: 0.5px;
  height: 20px;
  position: relative;
}

.label {
  position: absolute;
  font-weight: 600;
}

.label-prev {
  left: 10px;
}

.label-next {
  right: 10px;
}

.label-shuffle {
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.label-repeat {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

/* Bottom Bezel */
.ipod-bottom-bezel {
  padding: 12px 0;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
}

.dock-connector {
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 255, 0, 0.1) 20%,
    rgba(0, 255, 0, 0.1) 80%,
    transparent
  );
  border: 1px solid #444;
  border-radius: 2px;
}

/* ===== Info Panel ===== */
.info-panel {
  flex: 1;
  max-width: 400px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 500px;
  overflow-y: auto;
}

.info-panel::-webkit-scrollbar {
  width: 6px;
}

.info-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb {
  background: #0f0;
  border-radius: 3px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-section h3 {
  font-size: 11px;
  letter-spacing: 2px;
  color: #0f0;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.queue-preview {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  border-radius: 6px;
}

.queue-preview img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.queue-preview div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.queue-preview strong {
  font-size: 12px;
  color: #fff;
  margin-bottom: 2px;
}

.queue-preview span {
  font-size: 10px;
  color: #888;
}

.station-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.station-item {
  padding: 8px;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
}

.station-item:hover {
  background: rgba(0, 255, 0, 0.1);
  border-color: rgba(0, 255, 0, 0.4);
  color: #0f0;
}

.station-item.active {
  background: rgba(0, 255, 0, 0.15);
  border-color: #0f0;
  color: #0f0;
  font-weight: 600;
}

.loading {
  color: #666;
  text-align: center;
  padding: 20px 10px;
  font-size: 11px;
}

.tips {
  padding: 12px;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 6px;
}

.tips p {
  font-size: 10px;
  color: #bbb;
  margin: 4px 0;
}

.tips strong {
  color: #0f0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .ipod-container {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .info-panel {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ipod-body {
    width: 280px;
  }

  .ipod-screen {
    height: 200px;
  }

  .album-art {
    height: 110px;
  }

  .click-wheel {
    width: 200px;
    height: 200px;
  }

  .center-button {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .info-panel {
    max-height: 300px;
    padding: 16px;
  }
}
