:root {
  color-scheme: dark;
  --cassette-bg: #050505;
  --cassette-ink: #ebe5d8;
  --cassette-muted: #8f8b82;
  --cassette-line: rgba(236, 229, 214, 0.13);
  --cassette-panel: #0c0d0d;
  --cassette-metal: #2a2b29;
  --cassette-paper: #d8cbb7;
  --cassette-paper-ink: #171412;
  --kruv: #ef5148;
  --milkiss: #61c8aa;
  --fire-idle: #77736c;
  --tape-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
  --font-ui: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand ITC", cursive;
}

html,
body {
  background:
    radial-gradient(circle at 20% -2%, rgba(239, 81, 72, 0.12), transparent 25rem),
    radial-gradient(circle at 100% 20%, rgba(97, 200, 170, 0.1), transparent 24rem),
    #020202;
}

body {
  color: var(--cassette-ink);
  font-family: var(--font-ui);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  inset: -80px -40px auto auto;
  width: 320px;
  height: 220px;
  border: 16px solid rgba(83, 58, 44, 0.55);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.58;
  transform: rotate(18deg);
}

body::after {
  inset: auto auto -92px -48px;
  width: 190px;
  height: 270px;
  border: 14px solid rgba(83, 58, 44, 0.5);
  border-radius: 50%;
  opacity: 0.52;
  transform: rotate(-22deg);
}

body:not(.widget-page):not(.install-page)::before,
body:not(.widget-page):not(.install-page)::after {
  z-index: 0;
  min-height: 0;
  padding: 0;
  color: transparent;
  text-shadow: none;
  white-space: normal;
  animation: none;
  content: "";
}

body:not(.widget-page):not(.install-page)::before {
  inset: -38px -132px auto auto;
  width: 620px;
  height: 190px;
  border: 0;
  border-radius: 0;
  background: url("./assets/film-loop.png") center / contain no-repeat;
  filter: saturate(0.78) brightness(0.82);
  opacity: 0.46;
  transform: rotate(2deg);
}

body:not(.widget-page):not(.install-page)::after {
  inset: auto auto -86px -150px;
  width: 620px;
  height: 190px;
  border: 0;
  border-radius: 0;
  background: url("./assets/film-loop.png") center / contain no-repeat;
  filter: saturate(0.72) brightness(0.78);
  opacity: 0.42;
  transform: rotate(192deg) scale(0.74);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(239, 81, 72, 0.16), transparent 18rem),
    #040404;
  color: var(--cassette-ink);
  text-align: center;
  animation: cassetteBootOut 0.44s ease 1.1s forwards;
}

.boot-screen strong {
  margin-top: 126px;
  font-size: 1.45rem;
}

.boot-screen span {
  color: var(--cassette-muted);
}

@keyframes cassetteBootOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
  }
}

.cassette-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100svh;
  overflow: hidden;
  padding:
    calc(env(safe-area-inset-top, 0px) + 16px)
    8px
    calc(env(safe-area-inset-bottom, 0px) + 104px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px) 0 0 / 32px 100%,
    url("./assets/cassette-plastic-grain.png") 0 0 / 220px 220px repeat,
    radial-gradient(circle at 9% 49%, rgba(239, 81, 72, 0.1), transparent 7rem),
    radial-gradient(circle at 96% 58%, rgba(97, 200, 170, 0.09), transparent 8rem),
    linear-gradient(180deg, #060606 0%, #101111 48%, #050505 100%);
  background-blend-mode: normal, normal, soft-light, normal, normal, normal;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), var(--tape-shadow);
}

.cassette-shell::before,
.cassette-shell::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.cassette-shell::before {
  top: -50px;
  left: -70px;
  width: 380px;
  height: 118px;
  background: url("./assets/film-loop.png") center / contain no-repeat;
  filter: saturate(0.8) brightness(0.76);
  opacity: 0.38;
  transform: rotate(6deg);
}

.cassette-shell::after {
  right: -30px;
  bottom: 154px;
  width: 86px;
  height: 86px;
  border: 6px solid rgba(229, 207, 74, 0.82);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(5, 5, 5, 0.86);
  opacity: 0.78;
}

.cassette-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  color: var(--cassette-ink);
}

.brand-tape {
  position: relative;
  min-width: 0;
  max-width: 236px;
  min-height: 63px;
  padding: 7px 12px 8px;
  background:
    url("./assets/paper-label-grain.png") center / cover,
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 13%, transparent 84%, rgba(0, 0, 0, 0.17)),
    repeating-linear-gradient(0deg, rgba(80, 57, 37, 0.16) 0 1px, transparent 1px 9px),
    var(--cassette-paper);
  color: var(--cassette-paper-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.45);
  transform: rotate(-1deg);
}

.brand-tape::before,
.brand-tape::after {
  position: absolute;
  top: 0;
  width: 32px;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.13)),
    rgba(211, 201, 184, 0.64);
  content: "";
}

.brand-tape::before {
  left: -6px;
  transform: skewX(-10deg);
}

.brand-tape::after {
  right: -5px;
  width: 54px;
  background:
    url("./assets/worn-tape-piece.png") center / 112px 34px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.13)),
    rgba(211, 201, 184, 0.64);
  transform: skewX(12deg);
}

.brand-tape p {
  display: none;
}

.brand-tape h1 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: clamp(2.1rem, 9.6vw, 2.75rem);
  font-family: var(--font-hand);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-tape h1 span:first-child {
  color: #a72b2c;
}

.brand-tape h1 span:last-child {
  color: #245d53;
}

.brand-tape h1 b {
  color: #0f0d0b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
}

.top-actions {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  gap: 6px;
}

.utility-action {
  display: none;
}

.sync-pill {
  display: none;
  min-width: 82px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 229, 216, 0.7);
  padding: 8px 10px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.sync-pill.is-online {
  border-color: rgba(97, 200, 170, 0.44);
  background: rgba(97, 200, 170, 0.12);
  color: #a9f4df;
}

.segmented {
  display: flex;
  width: auto;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 78px;
  min-height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.16)),
    rgba(8, 9, 9, 0.8);
  color: rgba(235, 229, 216, 0.75);
  padding: 2px 12px 4px;
  font-size: 1.12rem;
  font-family: var(--font-hand);
  font-weight: 820;
  line-height: 1.24;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.segment::after {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.82;
}

.segment[data-person="you"],
.segment[data-person="yasya"] {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(235, 229, 216, 0.72);
}

.segment.is-active {
  border-color: rgba(239, 81, 72, 0.6);
  color: #ff6d65;
  background:
    linear-gradient(180deg, rgba(239, 81, 72, 0.18), rgba(0, 0, 0, 0.22)),
    rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 22px rgba(239, 81, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.segment.is-active[data-person="yasya"] {
  border-color: rgba(97, 200, 170, 0.62);
  color: #87f0cf;
  background:
    linear-gradient(180deg, rgba(97, 200, 170, 0.16), rgba(0, 0, 0, 0.22)),
    rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 22px rgba(97, 200, 170, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cassette-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}

.current-pair .mini-card::after {
  display: none;
}

.cassette-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 86px minmax(0, 1fr) 46px;
  grid-template-rows: 40px 28px 44px;
  align-items: stretch;
  gap: 6px;
  min-height: 134px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    url("./assets/cassette-plastic-grain.png") 0 0 / 220px 220px repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.014) 28px 29px),
    #0a0b0b;
  background-blend-mode: soft-light, normal, normal, normal;
  color: var(--cassette-ink);
  padding: 8px 8px 8px 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -18px 36px rgba(0, 0, 0, 0.46),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    0 12px 30px rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

.cassette-card::before,
.cassette-card::after {
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #050505 0 23%, #2d2d2b 24% 42%, #050505 43% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.11);
  content: "";
}

.cassette-card::before {
  top: 7px;
  left: 7px;
}

.cassette-card::after {
  top: 7px;
  right: 7px;
}

.tape-side {
  align-self: start;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  margin-top: 24px;
  border: 2px solid currentColor;
  border-radius: 3px;
  color: var(--kruv);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.is-milkiss .tape-side {
  color: var(--milkiss);
}

.tape-model {
  position: absolute;
  left: 11px;
  bottom: 13px;
  color: rgba(216, 202, 174, 0.64);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  writing-mode: vertical-rl;
}

.is-kruv .tape-model {
  color: var(--kruv);
}

.is-milkiss .tape-model {
  color: var(--milkiss);
}

.mini-artwork {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 86px;
  height: 86px;
  align-self: start;
  border: 3px solid #1b1b1a;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 81, 72, 0.9), rgba(26, 31, 38, 0.8)),
    #151515;
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(235, 229, 216, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.is-milkiss .mini-artwork {
  background:
    linear-gradient(135deg, rgba(97, 200, 170, 0.76), rgba(22, 31, 38, 0.9)),
    #151515;
}

.artwork::after {
  inset: 16%;
  border-color: rgba(255, 255, 255, 0.18);
}

.tape-label {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  background:
    url("./assets/paper-label-grain.png") center / cover,
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(73, 55, 36, 0.17) 16px 17px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 16%, transparent 82%, rgba(0, 0, 0, 0.12)),
    var(--cassette-paper);
  color: var(--cassette-paper-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tape-label span {
  order: 3;
  flex: 0 0 auto;
  max-width: 52px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b71f28;
  font-size: 1.02rem;
  font-family: var(--font-hand);
  font-weight: 900;
  line-height: 1.24;
  padding: 1px 0 2px;
  text-shadow:
    0 1px 0 rgba(255, 242, 218, 0.6),
    0 0 1px rgba(0, 0, 0, 0.32);
}

.is-milkiss .tape-label span {
  color: #147263;
}

.tape-label strong,
.tape-label small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tape-label strong {
  order: 1;
  flex: 1 1 auto;
  max-width: none;
  box-sizing: border-box;
  padding: 3px 7px 5px 1px;
  color: #14110f;
  font-size: clamp(0.98rem, 3.85vw, 1.14rem);
  font-family: var(--font-hand);
  font-weight: 800;
  line-height: 1.28;
}

.tape-label strong::after {
  color: #221c18;
  font-size: 0.76em;
  font-weight: 700;
  content: " . " attr(data-artist);
}

.tape-label strong[data-artist=""]::after {
  content: "";
}

.tape-label small {
  display: none;
  order: 2;
  flex: 1 1 auto;
  color: #221c18;
  font-size: 0.85rem;
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.22;
}

.tape-label small::before {
  content: ". ";
}

.track-action-strip {
  appearance: none;
  grid-column: 3;
  grid-row: 2;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.22)),
    rgba(4, 5, 5, 0.78);
  color: var(--kruv);
  margin-right: 74px;
  padding: 3px 8px;
  align-self: center;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.66);
  cursor: pointer;
}

.is-milkiss .track-action-strip {
  color: var(--milkiss);
}

.track-action-strip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.inline-waveform {
  display: block;
  height: 22px;
  min-width: 0;
  overflow: hidden;
  border-radius: 5px;
  background:
    linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px) 0 50% / 9px 42% repeat-x,
    linear-gradient(90deg, transparent 0 3px, currentColor 3px 5px, transparent 5px 9px) 0 50% / 12px 70% repeat-x,
    linear-gradient(90deg, transparent 0 2px, currentColor 2px 4px, transparent 4px 8px) 0 50% / 15px 95% repeat-x;
  opacity: 0.9;
}

.open-track-copy {
  overflow: hidden;
  color: rgba(235, 229, 216, 0.62);
  font-family: var(--font-hand);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.2;
  padding: 1px 0 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-button {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  min-width: 68px;
  min-height: 28px;
  border: 1px solid rgba(235, 229, 216, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.22)),
    rgba(6, 7, 7, 0.92);
  color: #f2e8d1;
  padding: 2px 8px 4px;
  font-family: var(--font-hand);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  cursor: pointer;
}

.is-kruv .listen-button {
  border-color: rgba(239, 81, 72, 0.44);
  color: #ff7b73;
}

.is-milkiss .listen-button {
  border-color: rgba(97, 200, 170, 0.44);
  color: #8df0d0;
}

.listen-button:disabled {
  color: rgba(235, 229, 216, 0.32);
  cursor: not-allowed;
}

.listen-button.is-playing {
  border-color: rgba(97, 200, 170, 0.35);
  color: var(--milkiss);
  box-shadow: 0 0 14px rgba(97, 200, 170, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cassette-window {
  grid-column: 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    url("./assets/cassette-window-kruv.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #050606;
  padding: 0;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.86);
}

.is-milkiss .cassette-window {
  background:
    url("./assets/cassette-window-milkiss.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #050606;
}

.reel {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #050505 0 18%, #22211f 19% 34%, transparent 35%),
    conic-gradient(from 12deg, #050505 0 12deg, #5a5247 13deg 27deg, #050505 28deg 57deg, #5a5247 58deg 73deg, #050505 74deg 120deg, #5a5247 121deg 140deg, #050505 141deg 360deg);
  box-shadow: inset 0 0 0 5px #171716, 0 0 0 2px #3c3934;
}

.waveform {
  display: none;
  height: 27px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px) 0 50% / 9px 40% repeat-x,
    linear-gradient(90deg, transparent 0 4px, currentColor 4px 6px, transparent 6px 10px) 0 50% / 13px 66% repeat-x,
    linear-gradient(90deg, transparent 0 2px, currentColor 2px 4px, transparent 4px 8px) 0 50% / 15px 92% repeat-x;
  color: var(--kruv);
  opacity: 0.92;
}

.is-milkiss .waveform {
  color: var(--milkiss);
}

.fire-meter {
  appearance: none;
  grid-column: 4;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--fire-idle);
  padding: 5px 3px;
  font: inherit;
  text-align: center;
  touch-action: manipulation;
  cursor: pointer;
  transition: color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fire-meter:active {
  transform: translateY(1px) scale(0.98);
}

.fire-meter:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.fire-meter.is-lit {
  color: var(--kruv);
  box-shadow: inset 0 0 18px rgba(239, 81, 72, 0.1), 0 0 18px rgba(239, 81, 72, 0.1);
}

.is-milkiss .fire-meter.is-lit {
  color: var(--milkiss);
  box-shadow: inset 0 0 18px rgba(97, 200, 170, 0.1), 0 0 18px rgba(97, 200, 170, 0.1);
}

.fire-meter b {
  display: block;
  width: 28px;
  height: 35px;
  background:
    radial-gradient(circle at 49% 74%, currentColor 0 39%, transparent 40%),
    radial-gradient(circle at 34% 55%, currentColor 0 28%, transparent 29%),
    radial-gradient(circle at 67% 50%, currentColor 0 29%, transparent 30%),
    linear-gradient(currentColor, currentColor);
  clip-path: polygon(49% 0, 61% 18%, 65% 33%, 82% 39%, 93% 59%, 86% 78%, 69% 94%, 50% 100%, 31% 94%, 14% 78%, 7% 58%, 19% 38%, 33% 28%, 39% 12%);
  filter: drop-shadow(0 0 9px color-mix(in srgb, currentColor 42%, transparent));
}

.fire-meter strong {
  display: block;
  margin-top: 4px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
}

.fire-meter small {
  margin-top: 6px;
  color: rgba(235, 229, 216, 0.54);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cassette-search {
  position: relative;
  margin-top: 10px;
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    url("./assets/cassette-plastic-grain.png") 0 0 / 220px 220px repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2)),
    #090a0a;
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px rgba(0, 0, 0, 0.42);
}

.cassette-search::before,
.cassette-search::after {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  content: "";
}

.cassette-search::before {
  left: -14px;
  bottom: 5px;
  width: 58px;
  height: 52px;
  background: url("./assets/red-heart-scribble.png") center / contain no-repeat;
  opacity: 0.86;
}

.cassette-search::after {
  right: -12px;
  bottom: -13px;
  width: 98px;
  height: 44px;
  background: url("./assets/pink-scratch.png") center / contain no-repeat;
  opacity: 0.8;
}

.search-form {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.search-form input {
  min-height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.22)),
    #080909;
  color: var(--cassette-ink);
  padding: 0 14px;
  font-size: 1rem;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45);
}

.search-form input::placeholder {
  color: rgba(235, 229, 216, 0.42);
}

.search-form input:focus {
  border-color: rgba(97, 200, 170, 0.52);
  box-shadow: 0 0 0 3px rgba(97, 200, 170, 0.11), inset 0 0 0 2px rgba(0, 0, 0, 0.45);
}

.submit-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #121313;
  color: var(--cassette-ink);
}

.result-list {
  position: relative;
  z-index: 5;
  margin-top: 10px;
}

.result-item,
.platform-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 16, 16, 0.96);
  color: var(--cassette-ink);
}

.source-badge {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cassette-muted);
}

.cassette-history {
  position: relative;
  margin-top: 14px;
  padding: 0 8px 96px;
  border: 0;
  background: transparent;
}

.cassette-history::after {
  position: absolute;
  right: -38px;
  top: 360px;
  z-index: 2;
  width: 74px;
  height: 74px;
  background: url("./assets/yellow-smile-sticker.png") center / contain no-repeat;
  content: "";
  opacity: 0.82;
  pointer-events: none;
  transform: rotate(-10deg);
}

.history-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.history-title-row .section-kicker {
  position: relative;
  color: var(--cassette-ink);
  font-size: clamp(2.25rem, 12vw, 3rem);
  font-family: var(--font-hand);
  font-weight: 780;
  line-height: 1.7;
  padding: 12px 0 18px;
  opacity: 1;
}

.history-title-row .section-kicker::after {
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 132px;
  height: 5px;
  border-radius: 999px;
  background: var(--milkiss);
  content: "";
  transform: rotate(-5deg);
}

.history-filter,
.history-count {
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(235, 229, 216, 0.66);
  padding: 0;
  font-size: 1rem;
  font-weight: 650;
}

.history-filter::after {
  content: "⌄";
  margin-left: 7px;
  color: rgba(235, 229, 216, 0.5);
}

.history-count {
  display: none;
}

.history-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    url("./assets/cassette-plastic-grain.png") 0 0 / 220px 220px repeat,
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 100% 34px,
    rgba(5, 6, 6, 0.78);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.38);
}

.history-date {
  position: relative;
  display: inline-flex;
  justify-self: start;
  margin: 8px 0 0 8px;
  padding: 4px 16px 5px;
  background:
    url("./assets/paper-label-grain.png") center / cover,
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.14)),
    var(--cassette-paper);
  color: #28231d;
  font-size: 0.92rem;
  font-family: var(--font-hand);
  font-weight: 720;
  line-height: 1.24;
  transform: rotate(-1deg);
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 58px 34px;
  align-items: center;
  min-height: 64px;
  gap: 6px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  box-shadow: none;
  color: var(--cassette-ink);
  padding: 0 4px 0 0;
}

.history-item::before {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  display: block;
  width: 1px;
  height: 64px;
  background:
    linear-gradient(var(--cassette-muted) 0 46%, transparent 46% 55%, var(--cassette-muted) 55% 100%);
  content: "";
  opacity: 0.54;
}

.history-item::after {
  position: absolute;
  left: 56px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kruv);
  box-shadow: 0 0 0 2px #070808;
  content: "";
  opacity: 1;
}

.history-item.is-milkiss::after {
  background: var(--milkiss);
}

.history-time {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 43px;
  margin-left: 8px;
  color: rgba(235, 229, 216, 0.58);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 650;
  text-align: right;
}

.history-main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 62px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 5px 0;
  text-align: left;
}

.history-artwork {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
}

.history-copy {
  min-width: 0;
}

.history-copy span {
  display: none;
}

.history-copy strong,
.history-copy small {
  display: block;
  box-sizing: border-box;
  padding: 2px 6px 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy strong {
  color: var(--cassette-ink);
  font-family: var(--font-hand);
  font-size: clamp(1.02rem, 4.05vw, 1.18rem);
  font-weight: 700;
  line-height: 1.28;
}

.history-copy small {
  margin-top: 0;
  color: rgba(235, 229, 216, 0.62);
  font-family: var(--font-hand);
  font-size: 0.86rem;
  line-height: 1.22;
}

.history-person {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  max-width: 58px;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px 3px 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--kruv);
  font-family: var(--font-hand);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.24;
  text-align: left;
}

.history-item.is-milkiss .history-person {
  color: var(--milkiss);
}

.history-fire {
  grid-column: 4;
  grid-row: 1;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  width: 36px;
  height: 38px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fire-idle);
  box-shadow: none;
}

.history-fire[aria-pressed="true"],
.history-fire.is-lit {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.fire-mark {
  display: block;
  width: 14px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(49% 0, 62% 18%, 66% 34%, 84% 43%, 92% 62%, 78% 88%, 50% 100%, 23% 88%, 8% 62%, 18% 42%, 34% 29%, 39% 13%);
  font-size: 0;
  filter: none;
  opacity: 1;
}

.fire-mark::before {
  content: "";
}

.reaction-count {
  display: block;
  color: var(--fire-idle);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.history-fire[aria-pressed="true"] .fire-mark,
.history-fire.is-lit .fire-mark {
  animation: none;
  filter: drop-shadow(0 0 8px rgba(239, 81, 72, 0.55));
}

.history-item.is-kruv .history-fire.is-lit,
.history-item.is-kruv .history-fire.is-lit .reaction-count {
  color: var(--kruv);
}

.history-item.is-milkiss .history-fire.is-lit,
.history-item.is-milkiss .history-fire.is-lit .reaction-count {
  color: var(--milkiss);
}

.history-empty {
  margin: 10px;
  min-height: 86px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(235, 229, 216, 0.6);
}

.history-more {
  display: grid;
  padding: 10px 10px 12px;
}

.history-more button {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(235, 229, 216, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(239, 81, 72, 0.09), rgba(97, 200, 170, 0.08)),
    rgba(255, 255, 255, 0.045);
  color: rgba(235, 229, 216, 0.82);
  font-family: var(--font-hand);
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.22;
  padding: 5px 12px 7px;
  text-align: left;
  cursor: pointer;
}

.history-more small {
  color: rgba(235, 229, 216, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.tab-panel[hidden] {
  display: none;
}

.cassette-tab-panel {
  position: relative;
  margin-top: 14px;
  padding: 0 8px 96px;
}

.tab-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.tab-panel-head .section-kicker {
  position: relative;
  margin: 0;
  color: var(--cassette-ink);
  font-size: clamp(2.25rem, 12vw, 3rem);
  font-family: var(--font-hand);
  font-weight: 780;
  line-height: 1.7;
  padding: 12px 0 18px;
}

.tab-panel-head .section-kicker::after {
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 132px;
  height: 5px;
  border-radius: 999px;
  background: var(--milkiss);
  content: "";
  transform: rotate(-5deg);
}

.tab-panel-count {
  color: rgba(235, 229, 216, 0.66);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.tab-track-list,
.mixtape-tape,
.duo-board {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    url("./assets/cassette-plastic-grain.png") 0 0 / 220px 220px repeat,
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 100% 34px,
    rgba(5, 6, 6, 0.78);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.38);
}

.tab-track-list {
  display: grid;
  gap: 0;
}

.tab-empty {
  display: grid;
  place-items: center;
  min-height: 128px;
  color: rgba(235, 229, 216, 0.54);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.24;
  padding: 4px 8px 6px;
}

.tab-track-item,
.mixtape-slot,
.duo-now-card {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--cassette-ink);
  text-align: left;
}

.tab-track-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding: 7px 8px;
}

.tab-track-artwork {
  width: 46px;
  height: 46px;
  border-radius: 6px;
}

.tab-track-copy,
.mixtape-copy,
.duo-now-card span {
  min-width: 0;
}

.tab-track-copy strong,
.tab-track-copy small,
.mixtape-copy strong,
.mixtape-copy small,
.duo-now-card strong,
.duo-now-card small {
  display: block;
  box-sizing: border-box;
  padding: 2px 6px 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-track-copy strong,
.mixtape-copy strong,
.duo-now-card strong {
  font-family: var(--font-hand);
  font-size: 1.18rem;
  font-weight: 720;
  line-height: 1.28;
}

.tab-track-copy small,
.mixtape-copy small,
.duo-now-card small {
  color: rgba(235, 229, 216, 0.62);
  font-family: var(--font-hand);
  font-size: 0.9rem;
  line-height: 1.22;
}

.tab-track-meta {
  display: grid;
  justify-items: start;
  gap: 3px;
  color: var(--kruv);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.24;
  padding: 2px 0 3px;
}

.tab-track-item.is-milkiss .tab-track-meta {
  color: var(--milkiss);
}

.tab-track-meta em {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  color: var(--fire-idle);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.mixtape-tape {
  padding: 10px;
}

.mixtape-spine {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 18px 5px;
  background:
    url("./assets/paper-label-grain.png") center / cover,
    var(--cassette-paper);
  color: #221c18;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.24;
  transform: rotate(-1deg);
}

.mixtape-slots {
  display: grid;
  gap: 7px;
}

.mixtape-slot {
  display: grid;
  grid-template-columns: 28px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  padding: 7px;
}

.mixtape-side {
  display: grid;
  place-items: center;
  width: 26px;
  height: 34px;
  border: 2px solid currentColor;
  color: var(--kruv);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
}

.mixtape-slot.is-milkiss .mixtape-side,
.mixtape-slot.is-milkiss em {
  color: var(--milkiss);
}

.mixtape-artwork,
.duo-artwork {
  width: 50px;
  height: 50px;
  border-radius: 7px;
}

.mixtape-slot em {
  color: var(--kruv);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.24;
  padding: 2px 0 3px;
}

.cassette-action-link {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-top: 9px;
  border: 1px solid rgba(235, 229, 216, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(235, 229, 216, 0.78);
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 760;
  line-height: 1.24;
  padding: 3px 8px 5px;
  text-decoration: none;
}

.duo-board {
  padding: 10px;
}

.duo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 9px;
}

.duo-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 4px;
  text-align: center;
}

.duo-stats strong {
  color: var(--cassette-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.duo-stats small {
  overflow: hidden;
  color: rgba(235, 229, 216, 0.56);
  font-family: var(--font-hand);
  font-size: 0.88rem;
  line-height: 1.24;
  padding: 2px 2px 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duo-note {
  margin: 0 0 9px;
  border-left: 3px solid rgba(97, 200, 170, 0.62);
  color: rgba(235, 229, 216, 0.66);
  font-family: var(--font-hand);
  font-size: 1.04rem;
  font-weight: 720;
  line-height: 1.26;
  padding: 2px 0 4px 9px;
}

.duo-now {
  display: grid;
  gap: 7px;
}

.duo-now-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  padding: 8px;
}

.duo-now-card b {
  display: block;
  color: var(--kruv);
  font-family: var(--font-hand);
  font-size: 0.98rem;
  line-height: 1.24;
  padding: 2px 0 3px;
}

.duo-now-card.is-milkiss b {
  color: var(--milkiss);
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  z-index: 44;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(calc(100% - 12px), 418px);
  min-height: 82px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    url("./assets/cassette-plastic-grain.png") 0 0 / 220px 220px repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.14)),
    rgba(9, 10, 10, 0.94);
  background-blend-mode: soft-light, normal, normal;
  padding: 9px 4px 10px;
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.bottom-tab {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: rgba(235, 229, 216, 0.58);
  font-size: 0.83rem;
  font: inherit;
  font-weight: 670;
  text-decoration: none;
  cursor: pointer;
}

.tab-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  font-family: var(--font-hand);
  font-size: 1.08rem;
  line-height: 1.24;
  padding: 2px 1px 4px;
}

.bottom-tab.is-active {
  color: var(--kruv);
}

.utility-hidden-panel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.platform-sheet {
  z-index: 30;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.sheet-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #101111;
  color: var(--cassette-ink);
}

.sheet-track h2,
.platform-link strong {
  color: var(--cassette-ink);
}

.platform-link,
button.platform-link {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--cassette-ink);
}

button.platform-link {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.platform-link .platform-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 0.84rem;
}

.platform-link .platform-mark svg {
  width: 20px;
  height: 20px;
}

.platform-copy-link {
  background:
    linear-gradient(90deg, rgba(239, 81, 72, 0.12), rgba(97, 200, 170, 0.1)),
    rgba(255, 255, 255, 0.055);
}

.platform-copy-mark {
  background: linear-gradient(135deg, var(--kruv), var(--milkiss));
  color: #090909;
}

.platform-link span,
.sheet-track p:last-child {
  color: rgba(235, 229, 216, 0.62);
}

.close-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cassette-ink);
}

.toast {
  z-index: 40;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: var(--cassette-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 560px) {
  body {
    display: grid;
    place-items: start center;
  }

  .cassette-shell {
    margin: 18px auto;
    min-height: calc(100svh - 36px);
    border-radius: 8px;
  }
}

@media (max-width: 390px) {
  .cassette-shell {
    padding-left: 5px;
    padding-right: 5px;
  }

  .cassette-topbar {
    gap: 6px;
  }

  .brand-tape {
    max-width: 208px;
    min-height: 54px;
    padding: 6px 9px 7px;
  }

  .brand-tape::before {
    left: -4px;
    width: 24px;
  }

  .brand-tape::after {
    right: -4px;
    width: 40px;
    background-size: 96px 30px;
  }

  .brand-tape h1 {
    gap: 5px;
    font-size: clamp(1.78rem, 7.7vw, 2.02rem);
  }

  .segmented {
    gap: 6px;
  }

  .segment {
    min-width: 64px;
    min-height: 40px;
    border-width: 1.5px;
    padding: 2px 9px 4px;
    font-size: 0.96rem;
  }

  .segment::after {
    width: 7px;
    height: 7px;
  }

  .cassette-deck {
    margin-top: 8px;
  }

  .cassette-card {
    grid-template-columns: 26px 82px minmax(0, 1fr) 44px;
    grid-template-rows: 42px 28px 42px;
    min-height: 134px;
    gap: 5px;
    padding: 6px 5px;
  }

  .mini-artwork {
    width: 82px;
    height: 82px;
  }

  .tape-label {
    gap: 4px;
    padding: 5px 8px;
  }

  .tape-label span {
    max-width: 45px;
    font-size: 0.92rem;
  }

  .tape-label strong {
    font-size: clamp(0.92rem, 3.55vw, 1.04rem);
  }

  .tape-label small {
    font-size: 0.76rem;
  }

  .track-action-strip {
    gap: 5px;
    margin-right: 70px;
  }

  .listen-button {
    min-width: 66px;
    min-height: 26px;
    padding: 2px 6px 4px;
    font-size: 0.84rem;
  }

  .cassette-window {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .reel {
    width: 29px;
    height: 29px;
  }

  .history-item {
    grid-template-columns: 66px minmax(0, 1fr) 52px 30px;
    gap: 5px;
    min-height: 64px;
  }

  .history-item::after {
    left: 50px;
  }

  .history-time {
    width: 39px;
    margin-left: 5px;
  }

  .history-person {
    max-width: 52px;
    font-size: 0.94rem;
  }
}

@media (max-width: 350px) {
  .cassette-topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-items: stretch;
  }

  .segmented {
    justify-content: end;
  }

  .cassette-card {
    grid-template-columns: 25px 78px minmax(0, 1fr) 42px;
    min-height: 134px;
  }

  .mini-artwork {
    width: 78px;
    height: 78px;
  }

  .fire-meter strong {
    font-size: 1.1rem;
  }

  .track-action-strip {
    gap: 5px;
  }

  .open-track-copy {
    display: none;
  }
}
