* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0f1e3d;
  color: #fff;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.ipod-container {
  background-color: #fff;
  color: #0f1e3d;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 40px 20px 60px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.logo {
  max-width: 140px;
  margin-top: 0;
}

audio {
  display: none;
}

.visual-container {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

canvas {
  width: 100%;
  height: 100%;
  background-color: transparent !important;
  border-radius: 10px;
  pointer-events: none;
}

#song-title {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: bold;
  color: #0f1e3d;
  margin-top: 10px;
  margin-bottom: -20px;
  text-align: center;
  position: relative;
  height: 20px;
}

#scroll-inner {
  position: absolute;
  white-space: nowrap;
  animation: scroll-text 10s linear infinite;
}

@keyframes scroll-text {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

.ipod-wheel {
  position: relative;
  width: 180px;
  height: 180px;
  background-color: #fff;
  border-radius: 50%;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wheel-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: transparent;
  color: #0f1e3d;
  font-weight: bold;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.1s;
}

.wheel-btn:active {
  transform: scale(0.95);
}

.wheel-btn.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.wheel-btn.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.wheel-btn.left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.wheel-btn.right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
