/* The cassette tape visualization — flat, two-tone line art (ADR-021).
   Drawn with ink (--text) strokes on raised paper (--bg-raised); the side
   badge is the single drop of vermillion (--accent). Same 534×335 canvas and
   DOM as the vintage shell so the deck hero scaling math is unchanged. */

.cassette-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.cassette {
  position: relative;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 3px solid var(--text);
  border-radius: 18px;
  width: 534px;
  height: 335px;
}

/* --- corner screws: ⊕ outline --- */
.cassette .screw {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 2px solid var(--text);
  border-radius: 50%;
  z-index: 30;
}

.screws .screw:nth-child(1) { top: 8px; left: 12px; }
.screws .screw:nth-child(2) { top: 8px; right: 12px; }
.screws .screw:nth-child(3) { left: 12px; bottom: 8px; }
.screws .screw:nth-child(4) { right: 12px; bottom: 8px; }

.screw-inner {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transform: rotate(45deg);
}

.screw-inner::before, .screw-inner::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--text);
  border-radius: 1px;
}

.screw-inner::before {
  left: 50%;
  width: 15%;
  margin-left: -7.5%;
  height: 100%;
}

.screw-inner::after {
  top: 50%;
  height: 15%;
  margin-top: -7.5%;
  width: 100%;
}

/* --- label sticker --- */
/* block + margin:auto centering — inline-block/left:50% static-position
   tricks drift under mobile emulation's text layout */
.outer-sticker {
  background: transparent;
  width: 474px;
  height: 210px;
  position: relative;
  border-radius: 10px;
  margin: 22px auto 0;
  display: block;
}

.sticker {
  background: var(--paper);
  border: 2px solid var(--text);
  margin: 0 auto;
  width: 470px;
  height: 204px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.sticker-header {
  float: left;
  padding: 12px 20px 0;
  width: 100%;
}

/* The side badge — the cassette's one drop of vermillion (hanko). */
.sticker-header .side {
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  padding: 2px 9px;
  line-height: 26px;
  margin-top: 2px;
  background: var(--accent);
  float: left;
  border-radius: 4px;
}

.sticker-header .notes {
  float: left;
  margin-left: 18px;
  width: 370px;
}

.sticker-header .notes hr {
  border: 0;
  height: 2px;
  background: color-mix(in srgb, var(--text) 35%, transparent);
  margin: 12px 0;
}

/* --- centre band: ink field holding the reels + window --- */
.sticker-center {
  position: relative;
  display: inline-block;
  width: 100%;
}

.sticker-center .stripe-a {
  background: var(--text);
  display: inline-block;
  width: 100%;
  height: 92px;
}

.sticker-center .stripe-b { display: none; }

.cassete-center {
  background: transparent;
  margin: 0 auto;
  width: 330px;
  height: 92px;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -165px;
}

/* Spoked reel hubs — paper discs with ink spokes, like the flat artwork. */
.cassete-center .circle {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  background: var(--paper);
  border: 3px solid var(--paper);
  position: absolute;
  top: 14%;
}

.cassete-center .circle.spinning {
  animation: cassette-spin 6s infinite linear;
}

.cassete-center .circle:nth-child(1) { left: 8px; }
.cassete-center .circle:nth-child(2) { right: 8px; }

.cassete-center .circle i {
  display: block;
  position: absolute;
  width: 4px;
  height: 55%;
  left: 45%;
  top: -5%;
  border-top: solid 16px var(--text);
  transform-origin: 50% 100%;
  z-index: 5;
}

.cassete-center .circle i:nth-child(1) { transform: rotate(30deg); }
.cassete-center .circle i:nth-child(2) { transform: rotate(90deg); }
.cassete-center .circle i:nth-child(3) { transform: rotate(150deg); }
.cassete-center .circle i:nth-child(4) { transform: rotate(210deg); }
.cassete-center .circle i:nth-child(5) { transform: rotate(270deg); }
.cassete-center .circle i:nth-child(6) { transform: rotate(330deg); }

/* Tape window between the hubs */
.cassete-center .window {
  position: absolute;
  overflow: hidden;
  background: var(--bg-raised);
  border: 3px solid var(--paper);
  width: 128px;
  height: 62px;
  left: 50%;
  margin-left: -64px;
  margin-top: 15px;
  border-radius: 6px;
}

.cassete-center .window .cover-bg {
  display: none; /* shown by the controller once a track with a cover loads */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.cassete-center .window .reel {
  border-radius: 50%;
  width: 190px;
  height: 190px;
  background: color-mix(in srgb, var(--text) 78%, var(--bg-raised));
  position: absolute;
  top: -64px;
  z-index: 2;
}

.cassete-center .window .reel.spinning {
  animation: cassette-spin 8s infinite linear;
}

.cassete-center .window .reel:nth-child(2) { left: -152px; }
.cassete-center .window .reel:nth-child(3) { right: -152px; }

/* --- label footer --- */
.sticker-bottom {
  margin: 6px 8px 0;
  border-top: 0;
  border-bottom: 0;
  overflow: auto;
}

.sticker-bottom hr {
  border: 0;
  height: 2px;
  background: color-mix(in srgb, var(--text) 35%, transparent);
  width: 165px;
  margin: 10px 0;
}

.sticker-bottom hr:nth-child(1) { float: left; }
.sticker-bottom hr:nth-child(3) { float: right; }

.sticker-bottom p {
  font-size: 12px;
  float: left;
  line-height: 22px;
  padding-left: 16px;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.06em;
}

/* --- base trapezoid with capstan/pinch holes --- */
.cassette-bottom-outer {
  position: absolute;
  left: 50%;
  margin-left: -175px;
  bottom: 8px;
  border-bottom: 72px solid var(--text);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  height: 0;
  width: 350px;
}

.cassette-bottom {
  border-bottom: 66px solid var(--bg-raised);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  position: relative;
  margin-left: -17px;
  margin-top: 3px;
  height: 0;
  width: 344px;
}

.cassette-bottom .screw {
  bottom: 0;
  left: 50%;
  margin-left: -11px;
  top: 18px;
}

.holes div {
  position: absolute;
  bottom: -62px;
  border: 2px solid var(--text);
  background: var(--paper);
}

.holes .hole-big {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.holes .hole-small {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.holes :nth-child(1) { left: 26px; }
.holes :nth-child(2) { left: 76px; bottom: -54px; }
.holes :nth-child(3) { right: 26px; }
.holes :nth-child(4) { right: 76px; bottom: -54px; }

@keyframes cassette-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
