.cd-carousel {
  order: 1;
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  text-align: center;
}

.cd-stage {
  position: relative;
  height: 580px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab !important;
  outline-offset: -4px;
  background: #ededeb;
  isolation: isolate;
}

.cd-stage.dragging {
  cursor: grabbing !important;
}

.cd-orbit {
  position: absolute;
  inset: 0;
}

.featured-cd {
  position: absolute;
  left: 50%;
  top: 46%;
  width: var(--case-width, 540px);
  aspect-ratio: 1.12;
  margin: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
}

.featured-cd:before {
  content: '';
  position: absolute;
  left: 29%;
  right: 29%;
  height: 13px;
  bottom: -30px;
  background: #2228;
  border-radius: 50%;
  filter: blur(5px);
}

.featured-case {
  position: absolute;
  inset: 0;
  perspective: 1500px;
}

.header-jewel {
  --half-depth: 10px;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  will-change: transform;
}

.jc-face {
  position: absolute;
  inset: 0;
  border: 1px solid #fffc;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #eeeeee77, inset 0 0 0 5px #7775;
}

.jc-front {
  display: flex;
  background: linear-gradient(125deg, #eee9, #bbb6);
  transform: translateZ(var(--half-depth));
  padding: 6px 6px 6px 0;
  overflow: hidden;
}

.jc-spine {
  width: 8%;
  flex: none;
  background: repeating-linear-gradient(90deg, #7777 0, #ddd 1px, #9998 3px);
  border-right: 2px solid #fff9;
  margin-right: 5px;
}

.jc-cover {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #333;
  box-shadow: 0 0 0 1px #666;
  overflow: hidden;
}

.jc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.jc-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, #fff5, transparent 26%, transparent 65%, #fff2 66%, transparent 69%);
  box-shadow: inset 2px 2px 2px #fff9, inset -3px -3px 2px #0002;
}

.jc-back {
  transform: rotateY(180deg) translateZ(var(--half-depth));
  background: linear-gradient(120deg, #fff2, transparent 38%, #ddd2 75%, #fff4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  color: #444;
  font: 9px monospace;
  letter-spacing: 1px;
}

.jc-back span {
  position: relative;
  z-index: 1;
  font-size: clamp(7px, 1vw, 10px);
}

.jc-side,
.jc-edge {
  position: absolute;
  background: repeating-linear-gradient(0deg, #ccc9 0, #fff9 2px, #9999 3px);
  border: 1px solid #fff9;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.jc-side {
  top: 0;
  height: 100%;
  width: calc(var(--half-depth) * 2);
}

.jc-left {
  left: 0;
  transform: translateX(-50%) rotateY(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #bbb, #eee, #aaa);
}

.jc-right {
  right: 0;
  transform: translateX(50%) rotateY(90deg);
}

.jc-left span {
  writing-mode: vertical-rl;
  max-height: 94%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #444;
  font: 9px monospace;
  letter-spacing: 0.8px;
}

.jc-edge {
  left: 0;
  width: 100%;
  height: calc(var(--half-depth) * 2);
}

.jc-top {
  top: 0;
  transform: translateY(-50%) rotateX(90deg);
}

.jc-bottom {
  bottom: 0;
  transform: translateY(50%) rotateX(-90deg);
}

.jc-tray {
  position: absolute;
  inset: 5%;
  transform: rotateY(180deg) translateZ(-7px);
  backface-visibility: hidden;
  background: #bbb8;
  border: 1px solid #fff6;
  border-radius: 3px;
}

.jc-disc {
  position: absolute;
  left: 13%;
  top: 5%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotateY(180deg) translateZ(2px);
  backface-visibility: hidden;
  border: 1px solid #eee;
  background: conic-gradient(from 10deg, #ddd, #aaa 15%, #fff 20%, #d3e9ed 25%, #ead7e5 32%, #e8e7cb 37%, #bbb 45%, #fff 51%, #bbb 63%, #e4eafb 71%, #dfc5d7 80%, #ddd);
  box-shadow: 0 2px 5px #3335, inset 0 0 0 3px #ffffff66;
}

.jc-rings {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0, transparent 2px, #fff3 2.5px, transparent 3px);
  border: 1px solid #9997;
}

.jc-label {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  overflow: hidden;
  background: #aaa;
  border: 1px solid #fff8;
}

.jc-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jc-hub {
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background: radial-gradient(circle, #aaa 0 35%, #fff6 38% 55%, #8885 58% 65%, #eee 68%);
  border: 1px solid #fff8;
}

.cd-stage:before,
.cd-stage:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 200;
  pointer-events: none;
}

.cd-stage:before {
  left: 0;
  background: linear-gradient(90deg, #ededeb, #ededebed 20%, #ededeb88 55%, transparent);
}

.cd-stage:after {
  right: 0;
  background: linear-gradient(270deg, #ededeb, #ededebed 20%, #ededeb88 55%, transparent);
}

.featured-heading {
  font: 12px/1.5 MusicOriginal, Arial, sans-serif;
  margin: 4px 0 8px;
  color: #555;
}

@media (max-width: 650px) {
  .cd-stage {
    height: 370px;
  }

  .cd-stage:before,
  .cd-stage:after {
    width: 8%;
  }

  .featured-heading {
    font-size: 11px;
  }

  .header-jewel {
    --half-depth: 7px;
  }

  .jc-back {
    padding: 8px;
  }

  .featured-cd:before {
    height: 10px;
    bottom: -24px;
    filter: blur(4px);
  }
}

