/* The cassette tape visualization (CodePen "Press Play" shell), token-mapped:
   orange → --accent, red → --accent-strong, blue → --accent-2,
   yellow → --accent-3, white → --paper. Rendered inside the deck now-card. */

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

.cassette {
  position: relative;
  margin: 0 auto;
  background: var(--accent);
  border-radius: 16px;
  width: 534px;
  height: 335px;
}

.cassette::before {
  position: absolute;
  z-index: 20;
  bottom: 20px;
  left: -3px;
  content: "";
  height: 90px;
  border-right: var(--accent) solid 5px;
  border-top: transparent solid 10px;
  border-bottom: transparent solid 10px;
}

.cassette::after {
  position: absolute;
  z-index: 20;
  bottom: 20px;
  right: -3px;
  content: "";
  height: 90px;
  border-left: var(--accent) solid 5px;
  border-top: transparent solid 10px;
  border-bottom: transparent solid 10px;
}

.screws .screw {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  background: var(--accent-strong);
  border-radius: 50%;
  z-index: 30;
}

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

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

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

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

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

.outer-sticker {
  background: var(--accent-strong);
  width: 474px;
  height: 210px;
  position: relative;
  left: 50%;
  margin-left: -237px;
  border-radius: 16px;
  margin-top: 25px;
  display: inline-block;
}

.sticker {
  background: var(--accent-3);
  margin: 0 auto;
  width: 466px;
  height: 200px;
  border-radius: 16px;
  position: relative;
  margin-top: 5px;
  overflow: hidden;
}

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

.sticker-header .side {
  font-weight: 700;
  font-size: 30px;
  color: var(--accent-3);
  padding: 0 5px 1px;
  line-height: 32px;
  margin-top: 10px;
  background: var(--accent);
  float: left;
  border-radius: 5px;
}

.sticker-header .notes {
  float: left;
  margin-left: 15px;
  width: 374px;
}

.sticker-header .notes hr {
  border: 0;
  height: 3px;
  background: var(--text-dim);
  margin-bottom: 15px;
}

.sticker-center {
  position: relative;
  display: inline-block;
  width: 100%;
}

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

.sticker-center .stripe-b {
  background: var(--accent-2);
  display: inline-block;
  width: 100%;
  height: 30px;
  margin-top: 30px;
}

.cassete-center {
  background: var(--accent);
  margin: 0 auto;
  width: 318px;
  height: 92px;
  border-radius: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -159px;
}

.cassete-center .circle {
  border-radius: 50%;
  width: 65px;
  height: 65px;
  background: var(--paper);
  position: absolute;
  top: 12%;
}

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

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

.cassete-center .circle i {
  display: block;
  position: absolute;
  width: 4px;
  height: 55%;
  left: 45%;
  top: -5%;
  border-top: solid 15px var(--accent);
  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); }

.cassete-center .window {
  position: absolute;
  overflow: hidden;
  background: var(--paper);
  width: 122px;
  height: 60px;
  left: 50%;
  margin-left: -61px;
  margin-top: 15px;
  border-radius: 5px;
}

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

.cassete-center .window .reel {
  border-radius: 50%;
  width: 190px;
  height: 190px;
  background: var(--accent-strong);
  position: absolute;
  top: -60px;
  z-index: 2;
}

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

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

.sticker-bottom {
  margin: 5px 5px;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  overflow: auto;
}

.sticker-bottom hr {
  border: 0;
  height: 3px;
  background: var(--text);
  width: 170px;
  margin: 8px 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: 19px;
  padding-left: 19px;
  margin: 0;
  color: var(--text);
}

.cassette-bottom-outer {
  position: absolute;
  left: 50%;
  margin-left: -175px;
  bottom: 0;
  border-bottom: 80px solid var(--accent-strong);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  height: 0;
  width: 350px;
}

.cassette-bottom {
  border-bottom: 80px solid var(--accent);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  position: relative;
  margin-left: -15px;
  margin-top: 5px;
  height: 0;
  width: 340px;
}

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

.holes div {
  position: absolute;
  bottom: -70px;
}

.holes .hole-big {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--paper);
}

.holes .hole-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
}

.holes :nth-child(1) {
  left: 20px;
  box-shadow: var(--accent-strong) -2px 2px 0;
}

.holes :nth-child(2) {
  left: 70px;
  bottom: -60px;
  box-shadow: var(--accent-strong) -2px 2px 0;
}

.holes :nth-child(3) {
  right: 20px;
  box-shadow: var(--accent-strong) 2px 2px 0;
}

.holes :nth-child(4) {
  right: 70px;
  bottom: -60px;
  box-shadow: var(--accent-strong) 2px 2px 0;
}

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