/* Cassette Player, adapted from cassette2.html */
.cassette-player,
.cassette-player * {
  box-sizing: border-box;
}

.cassette-player {
  --cp-bg: #0e1015;
  --cp-panel: #171b23;
  --cp-cassette: #e7edf7;
  --cp-cassette-2: #cfd9e8;
  --cp-ink: #121722;
  --cp-muted: #667085;
  --cp-line: rgba(18, 23, 34, .12);
  --cp-dark-line: rgba(255, 255, 255, .08);
  --cp-accent: #6f8cff;
  --cp-accent-2: #9fb0ff;
  --cp-glow-1: rgba(111, 140, 255, .18);
  --cp-glow-2: rgba(159, 176, 255, .12);
  --cp-label: #f8f5ea;
  --cp-shadow: 0 28px 70px rgba(0, 0, 0, .42);
  --cp-radius: 30px;
  --cp-padding: 28px;
  --cp-reel-size: clamp(92px, 16vw, 136px);
  --cp-font: Inter, Arial, sans-serif;
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: var(--cp-padding) 16px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 14%, var(--cp-glow-1), transparent 28rem),
    radial-gradient(circle at 84% 78%, var(--cp-glow-2), transparent 26rem),
    var(--cp-bg);
  font-family: var(--cp-font);
}

.cassette-player button,
.cassette-player input {
  font: inherit;
}

.cp-stage {
  width: min(1040px, 100%);
  display: block;
}

.cp-player {
  border: 1px solid var(--cp-dark-line);
  border-radius: var(--cp-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 45%),
    var(--cp-panel);
  box-shadow: var(--cp-shadow);
  padding: 20px;
}

.cp-inner {
  padding: 0;
}

.cp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-inline: 4px;
}

.cp-brand strong {
  display: block;
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cp-brand span,
.cp-status {
  color: rgba(255, 255, 255, .58);
  font-size: .82rem;
}

.cp-status {
  padding: 8px 12px;
  border: 1px solid var(--cp-dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .68);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cp-cassette {
  position: relative;
  overflow: hidden;
  color: var(--cp-ink);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .7), transparent 38%),
    linear-gradient(180deg, var(--cp-cassette), var(--cp-cassette-2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .72),
    inset 0 -10px 30px rgba(18, 23, 34, .08);
}

.cp-cassette::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(18, 23, 34, .1);
  border-radius: 22px;
  pointer-events: none;
}

.cp-cassette::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -74px;
  width: 340px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: rgba(18, 23, 34, .08);
  box-shadow: inset 0 16px 28px rgba(18, 23, 34, .08);
  pointer-events: none;
}

.cp-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.cp-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.cp-label {
  background: var(--cp-label);
  border: 1px solid var(--cp-line);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.cp-now {
  display: none;
}

.cp-title {
  margin: 0 0 6px;
  color: var(--cp-ink);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-artist {
  margin: 0;
  color: var(--cp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-side {
  display: grid;
  place-items: center;
  min-width: 74px;
  height: 42px;
  border-radius: 999px;
  background: var(--cp-ink);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cp-tape-window {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 210px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #c4cee0, #b0bbce);
  border: 1px solid rgba(18, 23, 34, .13);
  box-shadow: inset 0 14px 24px rgba(18, 23, 34, .09);
}

.cp-reel {
  width: var(--cp-reel-size);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, #fff 0 9px, #8794a8 9px 14px, transparent 14px),
    radial-gradient(circle, transparent 0 31px, rgba(255, 255, 255, .3) 31px 32px, transparent 32px),
    radial-gradient(circle, #1b2230 0 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, .08),
    0 12px 26px rgba(18, 23, 34, .18);
}

.cp-reel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: conic-gradient(
    transparent 0 16deg,
    rgba(255, 255, 255, .92) 16deg 26deg,
    transparent 26deg 76deg,
    rgba(255, 255, 255, .92) 76deg 86deg,
    transparent 86deg 136deg,
    rgba(255, 255, 255, .92) 136deg 146deg,
    transparent 146deg 196deg,
    rgba(255, 255, 255, .92) 196deg 206deg,
    transparent 206deg 256deg,
    rgba(255, 255, 255, .92) 256deg 266deg,
    transparent 266deg 316deg,
    rgba(255, 255, 255, .92) 316deg 326deg,
    transparent 326deg 360deg
  );
}

.cp-player.is-playing .cp-reel {
  animation: cp-spin 2.8s linear infinite;
}

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

.cp-center {
  display: grid;
  gap: 12px;
  align-content: center;
}

.cp-screen {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(18, 23, 34, .08);
  text-align: center;
}

.cp-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #4a5669;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  font-weight: 750;
}

.cp-time-separator {
  opacity: .55;
}

.cp-seek,
.cp-volume {
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cp-accent) var(--range-progress, 0%), rgba(18, 23, 34, .14) var(--range-progress, 0%));
  outline: none;
  cursor: pointer;
}

.cp-volume {
  background: linear-gradient(90deg, var(--cp-accent) var(--volume-progress, 80%), rgba(18, 23, 34, .14) var(--volume-progress, 80%));
}

.cp-seek::-webkit-slider-thumb,
.cp-volume::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cp-accent);
  box-shadow: 0 3px 10px rgba(18, 23, 34, .18);
}

.cp-seek::-moz-range-thumb,
.cp-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cp-accent);
  box-shadow: 0 3px 10px rgba(18, 23, 34, .18);
}

.cp-meter {
  display: flex;
  align-items: end;
  gap: 3px;
  height: var(--cp-meter-height, 18px);
  padding: 3px 5px;
  overflow: hidden;
  border-radius: 7px;
}

.cp-meter i {
  flex: 1 1 0;
  min-width: 0;
  height: 30%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cp-accent-2), var(--cp-accent));
  transition: height .12s ease-out;
}

.cp-meter i:nth-child(2n) { height: 46%; }
.cp-meter i:nth-child(3n) { height: 68%; }
.cp-meter i:nth-child(5n) { height: 82%; }

@media (prefers-reduced-motion: reduce) {
  .cp-meter i {
    transition: none;
  }
}

.cp-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 4px 0;
}

.cp-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cp-btn {
  min-width: 50px;
  min-height: 44px;
  border: 1px solid rgba(18, 23, 34, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .54);
  color: var(--cp-ink);
  cursor: pointer;
  font-weight: 900;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.cp-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .82);
  border-color: rgba(111, 140, 255, .35);
}

.cp-primary {
  min-width: 68px;
  border-color: transparent;
  background: linear-gradient(180deg, var(--cp-accent-2), var(--cp-accent));
  color: #fff;
  box-shadow: 0 12px 24px rgba(111, 140, 255, .26);
}

.cp-volume-box {
  display: grid;
  grid-template-columns: auto 140px;
  gap: 10px;
  align-items: center;
  color: var(--cp-muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cp-playlist {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border-radius: 24px;
  background: var(--cp-label);
  border: 1px solid var(--cp-line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  overflow: hidden;
}

.cp-playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  border-bottom: 1px dashed rgba(18, 23, 34, .18);
  color: var(--cp-ink);
}

.cp-playlist-head span:first-child {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .76rem;
  font-weight: 900;
}

.cp-count {
  color: var(--cp-muted);
  font-size: .78rem;
  font-weight: 800;
}

.cp-list {
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.cp-track {
  width: 100%;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--cp-ink);
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.cp-track:hover,
.cp-track.is-active {
  transform: translateY(-1px);
  background: rgba(111, 140, 255, .1);
  border-color: rgba(111, 140, 255, .22);
}

.cp-num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 23, 34, .08);
  color: var(--cp-muted);
  font-size: .72rem;
  font-weight: 900;
}

.cp-track.is-active .cp-num {
  background: var(--cp-accent);
  color: #fff;
}

.cp-track-title {
  display: block;
  font-weight: 850;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-track-artist {
  display: block;
  color: var(--cp-muted);
  font-size: .78rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-track-duration {
  color: var(--cp-muted);
  font-size: .76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cp-dot {
  display: none;
  width: 14px;
  height: 14px;
  gap: 2px;
  align-items: end;
}

.cp-track.is-active .cp-track-duration {
  display: none;
}

.cp-track.is-active .cp-dot {
  display: flex;
}

.cp-dot i {
  width: 3px;
  height: 30%;
  border-radius: 999px;
  background: var(--cp-accent);
  animation: cp-eq .8s ease-in-out infinite paused;
}

.cp-player.is-playing .cp-track.is-active .cp-dot i {
  animation-play-state: running;
}

.cp-dot i:nth-child(2) {
  animation-delay: -.3s;
}

.cp-dot i:nth-child(3) {
  animation-delay: -.55s;
}

@keyframes cp-eq {
  0%, 100% {
    height: 30%;
  }
  45% {
    height: 100%;
  }
  70% {
    height: 55%;
  }
}

.cp-audio {
  display: none;
}

.cp-style-apple {
  --cp-bg: #f5f7fb;
  --cp-panel: #ffffff;
  --cp-cassette: #f9fafb;
  --cp-cassette-2: #e2e8f0;
  --cp-label: #ffffff;
  --cp-ink: #111827;
  --cp-muted: #6b7280;
  --cp-accent: #007aff;
  --cp-accent-2: #5856d6;
  --cp-dark-line: rgba(17, 24, 39, .08);
  background: radial-gradient(circle at top, #fff, #eef2f7);
  color: #111827;
}

.cp-style-apple .cp-player {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(17, 24, 39, .08);
  box-shadow: 0 34px 80px rgba(15, 23, 42, .14);
  backdrop-filter: blur(18px);
}

.cp-style-apple .cp-cassette {
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), transparent 38%), linear-gradient(180deg, #f9fafb, #e2e8f0);
}

.cp-style-apple .cp-label,
.cp-style-apple .cp-playlist {
  background: #fff;
}

.cp-style-apple .cp-title,
.cp-style-apple .cp-playlist-head,
.cp-style-apple .cp-track {
  color: #111827;
}

.cp-style-apple .cp-side {
  color: #fff;
}

.cp-style-apple .cp-brand strong {
  color: #111827;
}

.cp-style-apple .cp-brand span,
.cp-style-apple .cp-status {
  color: rgba(17, 24, 39, .58);
}

.cp-style-bootstrap {
  --cp-bg: #f8f9fa;
  --cp-panel: #ffffff;
  --cp-cassette: #e9ecef;
  --cp-cassette-2: #ced4da;
  --cp-label: #ffffff;
  --cp-ink: #212529;
  --cp-muted: #6c757d;
  --cp-accent: #0d6efd;
  --cp-accent-2: #6610f2;
  --cp-dark-line: rgba(33, 37, 41, .12);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #212529;
}

.cp-style-bootstrap .cp-player {
  background: #fff;
  border-color: rgba(33, 37, 41, .12);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .16);
}

.cp-style-bootstrap .cp-cassette {
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), transparent 38%), linear-gradient(180deg, #e9ecef, #ced4da);
}

.cp-style-bootstrap .cp-label,
.cp-style-bootstrap .cp-playlist {
  background: #fff;
}

.cp-style-bootstrap .cp-title,
.cp-style-bootstrap .cp-playlist-head,
.cp-style-bootstrap .cp-track {
  color: #212529;
}

.cp-style-bootstrap .cp-brand strong {
  color: #212529;
}

.cp-style-bootstrap .cp-brand span,
.cp-style-bootstrap .cp-status {
  color: #6c757d;
}

.cp-style-bootstrap .cp-btn {
  border-radius: .5rem;
}

.cp-style-neon {
  --cp-bg: #050812;
  --cp-panel: #0d1220;
  --cp-cassette: #141c30;
  --cp-cassette-2: #080c1a;
  --cp-label: #e7fffc;
  --cp-ink: #0a101c;
  --cp-muted: #64748b;
  --cp-accent: #00f5ff;
  --cp-accent-2: #ff2dd6;
  --cp-dark-line: rgba(0, 245, 255, .22);
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 245, 255, .28), transparent 22rem),
    radial-gradient(circle at 82% 72%, rgba(255, 45, 214, .24), transparent 24rem),
    #050812;
}

.cp-style-neon .cp-player {
  background: linear-gradient(180deg, rgba(13, 18, 32, .96), #060916);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, .14),
    0 0 35px rgba(0, 245, 255, .16),
    0 30px 90px rgba(0, 0, 0, .55);
}

.cp-style-neon .cp-cassette {
  background: linear-gradient(180deg, rgba(0, 245, 255, .08), transparent 38%), linear-gradient(180deg, #141c30, #080c1a);
  color: #e7fffc;
  box-shadow:
    inset 0 0 0 1px rgba(0, 245, 255, .26),
    0 0 28px rgba(255, 45, 214, .15);
}

.cp-style-neon .cp-label,
.cp-style-neon .cp-playlist {
  background: #e7fffc;
  box-shadow:
    inset 0 0 0 1px rgba(0, 245, 255, .32),
    0 0 20px rgba(0, 245, 255, .12);
}

.cp-style-neon .cp-title,
.cp-style-neon .cp-playlist-head,
.cp-style-neon .cp-track {
  color: #0a101c;
}

.cp-style-neon .cp-primary {
  box-shadow: 0 0 22px rgba(0, 245, 255, .38);
}

.cp-style-eighties {
  --cp-bg: #1c0831;
  --cp-panel: #261044;
  --cp-cassette: #ffb74d;
  --cp-cassette-2: #ff7043;
  --cp-label: #fff6b1;
  --cp-ink: #231837;
  --cp-muted: #73566f;
  --cp-accent: #ff2d95;
  --cp-accent-2: #00e5ff;
  --cp-dark-line: rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, transparent 0 64%, rgba(0, 229, 255, .18) 64% 66%, transparent 66%),
    radial-gradient(circle at 50% 18%, rgba(255, 45, 149, .34), transparent 20rem),
    linear-gradient(135deg, #1c0831, #36145c 58%, #0d0b2b);
}

.cp-style-eighties .cp-player {
  background: linear-gradient(180deg, #32145a, #160629);
  box-shadow: 0 32px 90px rgba(255, 45, 149, .2);
}

.cp-style-eighties .cp-cassette {
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), transparent 38%), linear-gradient(180deg, #ffb74d, #ff7043);
}

.cp-style-eighties .cp-label,
.cp-style-eighties .cp-playlist {
  background: #fff6b1;
}

.cp-style-eighties .cp-title,
.cp-style-eighties .cp-playlist-head,
.cp-style-eighties .cp-track {
  color: #231837;
}

.cp-style-eighties .cp-primary {
  background: linear-gradient(180deg, #00e5ff, #ff2d95);
  box-shadow: 0 12px 28px rgba(255, 45, 149, .32);
}

.cp-style-classic {
  --cp-bg: #231c16;
  --cp-panel: #2f271f;
  --cp-cassette: #ead6a4;
  --cp-cassette-2: #c9ab70;
  --cp-label: #fff7de;
  --cp-ink: #2d2218;
  --cp-muted: #7b6650;
  --cp-accent: #d67d35;
  --cp-accent-2: #f1c96a;
  background:
    radial-gradient(circle at 20% 12%, rgba(241, 201, 106, .16), transparent 24rem),
    linear-gradient(135deg, #211915, #3a2d20);
}

.cp-style-classic .cp-player {
  background: linear-gradient(180deg, #2a2117, #16120e);
}

.cp-style-classic .cp-cassette {
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 38%), linear-gradient(180deg, #ead6a4, #c9ab70);
}

.cp-style-classic .cp-label,
.cp-style-classic .cp-playlist {
  background: #fff7de;
}

.cp-style-classic .cp-title,
.cp-style-classic .cp-playlist-head,
.cp-style-classic .cp-track {
  color: #2d2218;
}

.cp-style-midnight {
  --cp-bg: #030712;
  --cp-panel: #0f172a;
  --cp-cassette: #2a303d;
  --cp-cassette-2: #111827;
  --cp-label: #e2e8f0;
  --cp-ink: #0f172a;
  --cp-muted: #64748b;
  --cp-accent: #818cf8;
  --cp-accent-2: #38bdf8;
  --cp-dark-line: rgba(148, 163, 184, .16);
  background:
    radial-gradient(circle at 28% 12%, rgba(56, 189, 248, .18), transparent 24rem),
    linear-gradient(135deg, #030712, #0f172a);
}

.cp-style-midnight .cp-player {
  background: linear-gradient(180deg, #111827, #020617);
}

.cp-style-midnight .cp-cassette {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 38%), linear-gradient(180deg, #2a303d, #111827);
}

.cp-style-midnight .cp-label,
.cp-style-midnight .cp-playlist {
  background: #e2e8f0;
}

.cp-style-midnight .cp-title,
.cp-style-midnight .cp-playlist-head,
.cp-style-midnight .cp-track {
  color: #0f172a;
}

.cp-style-candy {
  --cp-bg: #fff1f8;
  --cp-panel: #ffffff;
  --cp-cassette: #fce7f3;
  --cp-cassette-2: #ddd6fe;
  --cp-label: #ffffff;
  --cp-ink: #502d46;
  --cp-muted: #8b5f7b;
  --cp-accent: #ec4899;
  --cp-accent-2: #0ea5e9;
  --cp-dark-line: rgba(236, 72, 153, .16);
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, .22), transparent 22rem),
    radial-gradient(circle at 84% 72%, rgba(14, 165, 233, .18), transparent 24rem),
    #fff1f8;
  color: #502d46;
}

.cp-style-candy .cp-player {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 30px 80px rgba(236, 72, 153, .18);
}

.cp-style-candy .cp-cassette {
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent 38%), linear-gradient(180deg, #fce7f3, #ddd6fe);
}

.cp-style-candy .cp-label,
.cp-style-candy .cp-playlist {
  background: #fff;
}

.cp-style-candy .cp-title,
.cp-style-candy .cp-playlist-head,
.cp-style-candy .cp-track {
  color: #502d46;
}

.cp-style-candy .cp-brand strong {
  color: #502d46;
}

.cp-style-candy .cp-brand span,
.cp-style-candy .cp-status {
  color: #8b5f7b;
}

/* Property colors remain authoritative across every visual preset. */
.cassette-player {
  background:
    radial-gradient(circle at 16% 14%, var(--cp-glow-1), transparent 28rem),
    radial-gradient(circle at 84% 78%, var(--cp-glow-2), transparent 26rem),
    var(--cp-bg);
}

.cassette-player .cp-player {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 45%),
    var(--cp-panel);
}

.cassette-player[data-playlist="hidden"] .cp-grid {
  grid-template-columns: 1fr;
}

.cassette-player[data-playlist="hidden"] .cp-playlist {
  display: none;
}

.cassette-player[data-playlist="cards"] .cp-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-height: 360px;
}

.cassette-player[data-playlist="cards"] .cp-track {
  grid-template-columns: auto minmax(0, 1fr);
}

.cassette-player[data-playlist="cards"] .cp-track-duration,
.cassette-player[data-playlist="cards"] .cp-dot {
  display: none;
}

@media (max-width: 900px) {
  .cp-grid {
    grid-template-columns: 1fr;
  }

  .cp-list {
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .cassette-player {
    padding: 18px 10px;
  }

  .cp-player {
    padding: 12px;
    border-radius: 24px;
  }

  .cp-cassette {
    padding: 12px;
    border-radius: 22px;
  }

  .cp-label,
  .cp-controls
{
    grid-template-columns: 1fr;
  }

  .cp-side {
    width: fit-content;
  }

  .cp-volume-box {
    grid-template-columns: auto 1fr;
  }

  .cp-tape-window {
    gap: 14px;
  }

  .cp-reel {
    width: 96px;
  }
}
