.dosed-deck {
  --deck-pink: #ff2bd6;
  --deck-cyan: #22e7ff;
  --deck-lime: #b7ff36;
  --deck-orange: #ff7a1a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 2rem 0 4rem;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 43, 214, .24), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(34, 231, 255, .2), transparent 34%),
    #09090b;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .38), inset 0 0 80px rgba(183, 255, 54, .03);
}

.dosed-deck::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.deck-head,
.deck-now,
.deck-time,
.deck-transport,
.deck-volume,
.deck-fx,
.deck-track {
  display: flex;
  align-items: center;
}

.deck-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deck-head h3,
.deck-now h4 {
  margin: 0;
  text-transform: uppercase;
}

.deck-head h3 {
  font-size: clamp(1.5rem, 3vw, 3.1rem);
  letter-spacing: -.04em;
}

.deck-live {
  flex: 0 0 auto;
  padding: .45rem .75rem;
  color: #080808;
  background: var(--deck-lime);
  border-radius: 999px;
  font: 800 .7rem/1 system-ui, sans-serif;
  letter-spacing: .16em;
}

.deck-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: clamp(1.2rem, 4vw, 3.25rem);
  align-items: center;
}

.deck-platter {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #17171b 0 3px, #08080a 4px 8px);
  border: 10px solid #222229;
  box-shadow: 0 0 0 2px #050507, 0 0 22px rgba(34, 231, 255, .3);
}

.deck-platter::before {
  content: "";
  position: absolute;
  inset: -15px;
  z-index: -1;
  border-radius: inherit;
  background: var(--deck-cyan);
  box-shadow: 0 0 12px var(--deck-cyan), 0 0 34px rgba(34, 231, 255, .65);
  transition: box-shadow .3s ease, filter .3s ease;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.deck-platter:hover::before {
  background: conic-gradient(from 0deg, #22e7ff, #7438ff, #ff2bd6, #7438ff, #22e7ff);
  box-shadow: 0 0 14px #22e7ff, 0 0 32px rgba(116, 56, 255, .8), 0 0 52px rgba(255, 43, 214, .55);
  animation: deck-rim-cycle 2.2s linear infinite;
}

.deck-platter::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: inherit;
  box-shadow: 0 0 0 9px rgba(255,255,255,.025), 0 0 0 24px rgba(255,255,255,.018);
}

.deck-label {
  position: absolute;
  inset: 27%;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #050505;
  text-align: center;
  background: conic-gradient(from 20deg, var(--deck-pink), var(--deck-orange), var(--deck-lime), var(--deck-cyan), var(--deck-pink));
  border: 3px solid #080808;
  border-radius: 50%;
  font: 900 clamp(.65rem, 1.7vw, 1rem)/1.05 system-ui, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.deck-label::after {
  content: "";
  width: 12%;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: #070707;
}

.dosed-deck.is-playing .deck-platter { animation: deck-spin 4.2s linear infinite; }
.dosed-deck.is-playing .deck-label { animation: deck-counter-spin 4.2s linear infinite; }

@keyframes deck-spin { to { transform: rotate(360deg); } }
@keyframes deck-counter-spin { to { transform: rotate(-360deg); } }
@keyframes deck-rim-cycle { to { transform: rotate(360deg); filter: hue-rotate(36deg) saturate(1.2); } }

.deck-console { min-width: 0; }

.deck-now {
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.deck-now p { margin: .25rem 0 0; color: rgba(255,255,255,.68); }
.deck-bpm { color: var(--deck-cyan); font: 800 .75rem/1 system-ui, sans-serif; letter-spacing: .12em; }

.deck-progress {
  width: 100%;
  margin: 1.25rem 0 .45rem;
  accent-color: var(--deck-pink);
}

.deck-time {
  justify-content: space-between;
  color: rgba(255,255,255,.58);
  font: 700 .68rem/1 system-ui, sans-serif;
  letter-spacing: .09em;
}

.deck-transport {
  gap: .65rem;
  margin: 1.2rem 0;
}

.deck-button {
  min-width: 3rem;
  min-height: 3rem;
  padding: .7rem 1rem;
  color: #fff;
  background: #19191e;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  cursor: pointer;
  font: 800 .75rem/1 system-ui, sans-serif;
  letter-spacing: .08em;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.deck-button:hover,
.deck-button:focus-visible {
  color: #050505;
  background: var(--deck-cyan);
  box-shadow: 0 0 24px rgba(34,231,255,.4);
  transform: translateY(-2px);
}

.deck-button--play {
  min-width: 5.6rem;
  color: #050505;
  background: var(--deck-pink);
  border-color: var(--deck-pink);
}

.deck-volume { gap: .8rem; }
.deck-volume label { min-width: 4rem; color: rgba(255,255,255,.7); font: 800 .68rem/1 system-ui, sans-serif; letter-spacing: .1em; }
.deck-volume input { width: 100%; accent-color: var(--deck-lime); }

.deck-fx {
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.deck-fx-label { margin-right: .25rem; color: rgba(255,255,255,.58); font: 800 .66rem/1 system-ui, sans-serif; letter-spacing: .14em; }
.deck-fx .deck-button { min-height: 2.2rem; padding: .5rem .8rem; }
.deck-fx .deck-button[aria-pressed="true"] { color: #050505; background: var(--deck-lime); box-shadow: 0 0 22px rgba(183,255,54,.35); }

.deck-playlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-top: 1.4rem;
}

.deck-track {
  gap: .7rem;
  min-width: 0;
  padding: .85rem;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
}

.deck-track:hover,
.deck-track[aria-current="true"] { border-color: var(--deck-pink); background: rgba(255,43,214,.12); }
.deck-track-number { color: var(--deck-pink); font: 900 .75rem/1 system-ui, sans-serif; }
.deck-track-copy { min-width: 0; }
.deck-track strong,
.deck-track span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deck-track strong { font: 800 .72rem/1.2 system-ui, sans-serif; letter-spacing: .03em; }
.deck-track span { margin-top: .2rem; color: rgba(255,255,255,.55); font: 600 .65rem/1.2 system-ui, sans-serif; }

.deck-soundcloud {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.dosed-deck.fx-warp { filter: hue-rotate(45deg) saturate(1.25); }
.dosed-deck.fx-bloom .deck-platter { box-shadow: 0 0 0 2px #000, 0 0 100px 24px rgba(255,43,214,.35); }
.dosed-deck.fx-flip .deck-grid { transform: scaleX(-1); }
.dosed-deck.fx-flip .deck-grid > * { transform: scaleX(-1); }

@media (max-width: 780px) {
  .deck-grid { grid-template-columns: 1fr; }
  .deck-playlist { grid-template-columns: 1fr; }
  .deck-platter { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .dosed-deck *,
  .dosed-deck *::before,
  .dosed-deck *::after { animation: none !important; transition: none !important; }
}
