* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Chicago', 'Helvetica', 'Arial', sans-serif;
  background: #2c2c2c;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.ipod {
  width: 280px;
  height: 500px;
  background: #ffffff;
  border-radius: 25px;
  box-shadow: 
    0 2px 5px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  padding: 18px;
  position: relative;
}

.screen-container {
  width: 100%;
  height: 180px;
  background: #000;
  border-radius: 3px;
  border: 2px solid #333;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.9);
  overflow: hidden;
  position: relative;
}

.screen {
  width: 100%;
  height: 100%;
  background: #a8c5d8;
  color: #000;
  position: relative;
  overflow: hidden;
}

/* Boot Screen */
.boot-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: #fff;
}

.apple-logo {
  font-size: 50px;
  opacity: 0;
  animation: bootFade 1.5s ease-in-out;
}

@keyframes bootFade {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Menu Styles */
.menu {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-header {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid #000;
  background: #a8c5d8;
}

.menu-items {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #a8c5d8;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.menu-items::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.menu-item {
  padding: 5px 8px;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: none;
}

.menu-item.selected {
  background: #1e3a8a;
  color: #fff;
}

/* Now Playing Screen */
.now-playing {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 15px;
  justify-content: center;
  align-items: center;
  background: #a8c5d8;
}

.album-art {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 2px solid #000;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  overflow: hidden;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-info {
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

.song-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 10px;
}

.progress-container {
  width: 100%;
  margin-top: 8px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #fff;
  border: 1px solid #000;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  margin-top: 3px;
}

.playback-status {
  font-size: 16px;
  margin-top: 8px;
}

/* Click Wheel */
.click-wheel-area {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.click-wheel {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #e8e8e8;
  box-shadow: 
    inset 0 0 15px rgba(0,0,0,0.1),
    0 2px 5px rgba(0,0,0,0.2);
  position: relative;
  user-select: none;
}

.wheel-touch-area {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
}

.center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.center-button:active {
  background: #e0e0e0;
  box-shadow: 
    inset 0 1px 3px rgba(0,0,0,0.3),
    0 1px 0 rgba(255,255,255,0.8);
}

.wheel-button {
  position: absolute;
  font-size: 9px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  user-select: none;
  padding: 8px;
  z-index: 5;
}

.wheel-button:active {
  color: #333;
}

.btn-menu {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.btn-play {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.btn-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Photo List */
.photo-list {
  background: #a8c5d8;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.photo-list::-webkit-scrollbar {
  display: none;
}

.photo-item {
  padding: 5px 8px;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-item.selected {
  background: #1e3a8a;
  color: #fff;
}

.photo-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}