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

body {
  background: #0f0f14;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.background-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: background 0.1s linear;
}

.container {
  width: min(92vw, 1200px);
  z-index: 2;
}

.player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(24, 24, 36, 0.6);
  backdrop-filter: blur(20px);
  border-radius: clamp(14px, 4vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  box-shadow: 0 0 80px rgba(100, 0, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.vinyl-container {
  width: clamp(150px, 55vw, 320px);
  height: clamp(150px, 55vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: box-shadow 0.1s linear;
}

.vinyl.playing {
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.track-info {
  width: 92%;
  margin-top: clamp(18px, 7vw, 90px);
  overflow: hidden;
  position: relative;
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(12px, 4vw, 30px);
  padding-right: clamp(40px, 10vw, 120px);
}

.marquee-group span {
  font-size: clamp(14px, 4.5vw, 28px);
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffffff, #b388ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dot {
  opacity: 0.6;
  font-size: clamp(14px, 4vw, 24px);
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .player {
    aspect-ratio: 3 / 4;
    padding: 20px 14px;
    justify-content: space-evenly;
  }

  .vinyl-container {
    width: 70vw;
    height: 70vw;
    max-width: 280px;
    max-height: 280px;
  }

  .track-info {
    margin-top: 16px;
  }
}
