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

html,
body {
  height: 100%;
  overflow: hidden;
  background: #1a140c;
  color: #f4efe6;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.scene {
  position: fixed;
  inset: 0;
}

.scene__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12, 8, 4, 0.55) 0%, transparent 28%, transparent 62%, rgba(12, 8, 4, 0.72) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(8, 5, 2, 0.45) 100%);
  pointer-events: none;
}

.scene__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem 1.6rem;
}

.brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.online {
  font-size: 0.85rem;
  opacity: 0.85;
}

.yt {
  position: fixed;
  width: 200px;
  height: 200px;
  left: -9999px;
  top: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.deck {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: min(520px, calc(100% - 2.8rem));
  padding: 0.85rem 1.05rem 0.85rem 0.85rem;
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 22px;
  background: rgba(18, 12, 6, 0.5);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.disc {
  position: relative;
  flex-shrink: 0;
  width: 118px;
  height: 118px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
    repeating-radial-gradient(
      circle at center,
      #0d0d0d 0 1px,
      #171717 1.5px 3px
    );
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 0 3px #090909,
    inset 0 0 0 5px rgba(255, 220, 160, 0.18);
  animation: spin 7s linear infinite;
  animation-play-state: paused;
}

.disc:disabled {
  cursor: default;
  opacity: 0.8;
}

.disc.is-spinning {
  animation-play-state: running;
}

.disc__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    transparent 0 18%,
    rgba(255, 255, 255, 0.08) 22%,
    transparent 32%,
    transparent 68%,
    rgba(255, 255, 255, 0.05) 74%,
    transparent 82%
  );
  pointer-events: none;
}

.disc__art {
  position: absolute;
  inset: 29%;
  width: 42%;
  height: 42%;
  margin: auto;
  border-radius: 50%;
  object-fit: cover;
  background: #3a2a18;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.disc__hole {
  position: absolute;
  inset: 46.5%;
  border-radius: 50%;
  background: #1a140c;
  box-shadow:
    0 0 0 1px rgba(255, 247, 232, 0.35),
    inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.deck__meta {
  min-width: 0;
  flex: 1;
}

.now__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.now__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now__artist {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress {
  height: 4px;
  margin: 0.7rem 0 0.75rem;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.18);
  overflow: hidden;
  cursor: pointer;
}

.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #f4efe6;
}

.transport {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ctrl {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 232, 0.28);
  border-radius: 50%;
  background: rgba(255, 247, 232, 0.06);
  cursor: pointer;
}

.ctrl:disabled {
  opacity: 0.55;
  cursor: default;
}

.ctrl--play {
  width: 40px;
  height: 40px;
  background: rgba(255, 247, 232, 0.12);
}

.play__icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #f4efe6;
}

.ctrl--play.is-playing .play__icon {
  width: 10px;
  height: 12px;
  margin: 0;
  border: 0;
  background: linear-gradient(#f4efe6, #f4efe6) left / 3px 100% no-repeat,
    linear-gradient(#f4efe6, #f4efe6) right / 3px 100% no-repeat;
}

.ctrl__prev,
.ctrl__next {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ctrl__prev {
  border-right: 8px solid #f4efe6;
}

.ctrl__next {
  border-left: 8px solid #f4efe6;
}

.time {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 520px) {
  .disc {
    width: 92px;
    height: 92px;
  }

  .now__title {
    font-size: 0.98rem;
  }
}
