:root {
  --bg1: #173f35;
  --bg2: #0f2f29;
  --accent: #d7b36a;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  transition: background 1.2s ease;
}

.player {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.disk-wrap {
  width: min(86vw, 560px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.disk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), transparent 18%),
    radial-gradient(circle at center, transparent 0 86.5%, #5b0000 86.5% 87.8%, #120000 87.8% 100%),
    repeating-radial-gradient(circle at center, #020202 0 0.9%, #090909 0.9% 1.8%, #040404 1.8% 2.7%);
  border: 4px solid #710000;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.45),
    inset 0 0 42px rgba(255, 255, 255, 0.03),
    inset 0 0 0 4px rgba(122, 0, 0, 0.14);
  animation: spin 7.5s linear infinite;
  animation-play-state: paused;
}

.disk.playing {
  animation-play-state: running;
}

.disk::before,
.disk::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.disk::before {
  width: 27%;
  height: 27%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at center, #1c1c1c 0 22%, #8f0e12 22% 72%, #430408 72% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.disk::after {
  width: 3.8%;
  height: 3.8%;
  background: radial-gradient(circle at center, #0b0b0b 0 45%, #8f8f8f 45% 100%);
}

.disk-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.disk-text text {
  fill: #ff4d4d;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: 5.4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.controls {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  z-index: 3;
}

.icon-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0;
  font-size: 1.35rem;
  cursor: pointer;
  font-weight: 700;
  background: rgba(8, 8, 8, 0.32);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

body::before,
body::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 45% 55% 0 0;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

body::before {
  bottom: -8vh;
  height: 30vh;
  animation: waveRise 8s ease-in-out infinite, waveMove 16s linear infinite;
}

body::after {
  bottom: -11vh;
  height: 24vh;
  opacity: 0.26;
  animation: waveRise 6.2s ease-in-out infinite reverse, waveMove 12s linear infinite reverse;
}

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

@keyframes waveRise {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

@keyframes waveMove {
  from {
    transform: translateX(-6%) translateY(0);
  }
  to {
    transform: translateX(6%) translateY(0);
  }
}

@media (max-width: 640px) {
  .player {
    padding: 20px;
  }

  .controls {
    top: 20px;
    left: 20px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .disk-wrap {
    width: min(92vw, 480px);
  }
}
