
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1e1e2f;
}

.player {
  width: 360px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: background-color 1s ease-in-out;
}

#cd-artwork-wrapper {
  margin: 0 auto 1rem;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ccc 30%, #999 70%, #666 100%);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

#cd-artwork {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.rotate {
  animation: spin 5s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.song-info {
  color: white;
  margin-top: 1rem;
}

.song-info h2 {
  font-size: 1.5rem;
}

.song-info p {
  font-size: 1rem;
  opacity: 0.8;
}

audio {
  margin-top: 1rem;
  width: 100%;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1.5rem;
}

.controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.controls svg {
  width: 24px;
  height: 24px;
  fill: white;
}


#cd-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
  z-index: 3;
  display: none;
}

.player.light-mode {
  color: #000;
}

.player.light-mode .controls svg {
  fill: #000;
}

.player:not(.light-mode) {
  color: #fff;
}

.player:not(.light-mode) .controls svg {
  fill: #fff;
}

#station-title {
  color: white;
  font-size: 1rem;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 1rem;
}


.player {
  height: 500px;
  overflow: hidden;
}

.song-info h2, .song-info p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.song-info h2.scrollable:hover, .song-info p.scrollable:hover {
  animation: scroll-text 6s linear infinite;
}

@keyframes scroll-text {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 568px) {
  body {
    align-items: flex-start;
    padding-top: 2rem;
  }
}
