@font-face {
  font-family: 'ChicagoFLF';
  src: url('https://fonts.cdnfonts.com/s/14220/ChicagoFLF.woff') format('woff');
}

.ipod-container {
  width: 305px;
  height: 405px;
  position: relative;
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3));
}

.ipod-image {
  width: 305px;
  height: 405px;
  clip-path: inset(5px round 30px);
}

audio {
  display: none;
}
.click-wheel-area {
  position: absolute;
  top: 339px;
  left: 132px;
  width: 40px;
  height: 40px;
  cursor: url('https://hhroses.neocities.org/cursors/pointer.png'), pointer;
  border-radius: 25px;
}
.next-button,
.back-button {
  position: absolute;
  top: 281px;
  cursor: url('https://hhroses.neocities.org/cursors/pointer.png'), pointer;
  width: 40px;
  height: 40px;
  border-radius: 25px;
}
.next-button {
  position: absolute;
  left: 190px;
}
.back-button {
  position: absolute;
  left: 74px;
}
.menu-button { 
  position: absolute;
  bottom: 140px;
  left: 95px;
  width: 50px;
  height: 50px;
  cursor: url('https://hhroses.neocities.org/cursors/pointer.png'), pointer;
}

.click-wheel-area:active,
.next-button:active,
.back-button:active {
  background: linear-gradient(to bottom, 
    grey 0%, 
    #ffffff 50%, 
    #a0a0a0 100%
  );
  opacity: 0.05;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .5);
}    

/* CRT scanlines */
.screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 2px
  );
  pointer-events: none;
  z-index: 10;
}

/* Screen flicker */
.screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 11;
  animation: flicker 0.1s infinite;
}

@keyframes flicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

/* iPod Classic Screen */
.screen {
  position: absolute;
  top: 31px;
  left: 35px;
  width: 231px;
  height: 170px;
  background: linear-gradient(to bottom, #e9f5fc 0%, #eaf6ff 100%);
  border-radius: 3px;
  color: #000;
  font-family: 'Helvetica Neue', 'Geneva', sans-serif;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  border: 1px solid grey;
}

/* Title bar at top */
.screen-header {
  background: linear-gradient(to bottom, white 0%, #dbe9ee 50%, #d0e3e7 100%);
  color: black;
  padding: 3px 10px;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #6d879c;
  flex-shrink: 0;
}

.screen-header-left {
  display: flex;
  align-items: center;
}

.play-icon {
  font-size: 10px;
  margin-right: 4px;
  color: #3789ad;
}

.screen-header-title {
  flex: 1;
  text-align: center;
}

/* Battery icon */
.battery {
  width: 20px;
  height: 10px;
  border: 1px solid black;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  width: 2px;
  height: 6px;
  background: green;
  border: 1px solid black;
  border-radius: 0 2px 2px 0;
}

.battery-fill {
  width: 80%;
  height: 100%;
  background: linear-gradient(to bottom, 
    #2a8a2a 0%, 
    lime 20%,
    green 70%,
    #2a8a2a 100%
  );
  border-radius: 1px;
}

/* Now Playing area */
.now-playing {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

/* Main content row */
.now-playing-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

/* Album art */
.album-art {
  width: 76px;
  height: 76px;
  border-radius: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  margin-top: 6px;
  margin-left: 3px;
}

/* Track info */
.track-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  flex: 1;
  height: 75px;
}

.track-title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 4px;
}

.track-artist {
  font-size: 12px;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 4px;
  font-weight: 600;
}

.track-album {
  font-size: 12px;
  color: #3a3a3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Progress bar area */
.progress-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.time {
  font-size: 10px;
  color: #3a3a3a;
  min-width: 28px;
  text-align: center;
}

/* Progress bar area */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  margin-top: -2px;
}

.progress-bar {
  width: 99%;
  height: 13px;
  background: linear-gradient(to bottom, 
    #a0a0a0 0%, 
    #ffffff 50%, 
    #a0a0a0 100%
  );
  overflow: hidden;
  position: relative;
  border-top: 1px solid #5a7a98;
  border-bottom: 1px solid #c0d8ec;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  border-left: 1px solid #b9b9b9;
  border-right: 1px solid #b9b9b9;
}

.progress-fill {
  height: 100%;
  border: 1px solid #3789ad;
  background: linear-gradient(to bottom, #7cd6ff 0%, #3789ad 50%, #7cd6ff 100%);
  width: 0%;
}

.time-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.time {
  font-size: 11px;
  color: #1a1a1a;
  font-weight: 700;
}