/* ============ FEATURE STYLES ============ */
/* 1) Disc Condition badge + scratched-disc overlay */

.disc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "VT323", monospace;
  border: 1px solid var(--chrome-4);
  background: rgba(0,0,0,0.45);
  letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap;
}
.disc-badge.dc-sm { padding: 1px 6px; font-size: 10px; }
.disc-badge.dc-md { padding: 3px 9px; font-size: 12px; }
.disc-badge .dc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}
.disc-badge.dc-mint .dc-label { color: #7af09a; }
.disc-badge.dc-likenew .dc-label { color: #ffd84d; }
.disc-badge.dc-scratched .dc-label { color: #ff9a4d; }
.disc-badge.dc-unplayable .dc-label { color: #ff4d6d; }

/* small condition pill on grid card */
.card .dc-pill {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  pointer-events: none;
}

/* scratched disc overlay shown on detail cover */
.scratch-disc-wrap {
  position: absolute;
  bottom: 14px; left: 14px;
  width: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.scratch-disc {
  width: 84px; height: 84px;
  display: block;
}
.scratch-disc-cap {
  font-family: "VT323", monospace;
  font-size: 11px; letter-spacing: 2px;
  padding: 1px 6px;
  background: rgba(0,0,0,0.75);
  border: 1px solid;
}

/* ============ 2) BOOMBOX ============ */
.boombox-fab {
  position: fixed; right: 18px; bottom: 18px;
  z-index: 7000;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: "VT323", monospace; font-size: 13px; letter-spacing: 2px;
  color: var(--gold);
  background: linear-gradient(to bottom, #2a2a35, #14141c);
  border: 1px solid var(--chrome-3); border-top-color: #5a5a6a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.6);
  cursor: pointer;
}
.boombox-fab:hover { color: #fff; border-color: var(--gold); }
.boombox-fab .bb-fab-ico {
  font-size: 16px; color: var(--red);
  text-shadow: 0 0 8px var(--red);
}
.boombox-fab .bb-fab-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: bbPulse 1s ease-in-out infinite;
}
@keyframes bbPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.boombox {
  position: fixed; right: 18px; bottom: 18px;
  width: 320px; z-index: 7000;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, #3a3a48 0%, #1a1a22 50%, #0a0a12 100%);
  border: 2px solid #000;
  border-top-color: #6a6a78;
  border-left-color: #4a4a55;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.6),
    0 12px 30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.4);
  padding: 10px 12px 12px;
  font-family: "VT323", monospace;
  user-select: none;
}

.bb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 8px;
  border-bottom: 1px dashed #3a3a48;
  margin-bottom: 10px;
}
.bb-brand {
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: 16px; letter-spacing: 1px;
  background: linear-gradient(to bottom, #fff 0%, #fff 40%, #888 50%, #ddd 60%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bb-led {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2a30; box-shadow: inset 0 0 4px rgba(0,0,0,0.6);
}
.bb-led[data-on="true"] {
  background: var(--red);
  box-shadow: 0 0 10px var(--red), inset 0 0 4px rgba(0,0,0,0.4);
  animation: bbPulse 1s ease-in-out infinite;
}
.bb-close {
  background: none; border: 1px solid var(--chrome-3);
  color: var(--chrome-2); font-family: "VT323", monospace; font-size: 14px;
  width: 22px; height: 22px; cursor: pointer; padding: 0;
}
.bb-close:hover { color: var(--gold); border-color: var(--gold); }

/* cassette window */
.bb-cassette {
  background: #0a0a12;
  border: 1px solid #000;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
  padding: 6px;
}
.bb-window {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.6));
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px; min-height: 90px;
  display: flex; flex-direction: column; gap: 6px;
}
.bb-tape {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; gap: 6px;
  position: relative;
}
.bb-reel {
  width: 36px; height: 36px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #000 30%, transparent 31%),
    radial-gradient(circle at 50% 50%, #888 32%, transparent 33%),
    radial-gradient(circle at 50% 50%, #1a1a22 0%, #2a2a35 80%);
  border: 1px solid #000;
  position: relative; flex-shrink: 0;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}
.bb-reel span {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: #555;
  transform-origin: 0 50%;
}
.bb-reel span:nth-child(1) { transform: translateY(-50%) rotate(0deg); }
.bb-reel span:nth-child(2) { transform: translateY(-50%) rotate(120deg); }
.bb-reel span:nth-child(3) { transform: translateY(-50%) rotate(240deg); }
.bb-tape-strip {
  flex: 1; height: 3px;
  background: linear-gradient(to right, #1a1a22 0%, #4a3a2a 30%, #6a4a30 50%, #4a3a2a 70%, #1a1a22 100%);
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
}
.bb-cassette-label {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 8px; align-items: baseline;
  border-top: 1px dashed rgba(255,255,255,0.15);
  padding-top: 4px;
}
.bb-side {
  font-size: 10px; letter-spacing: 2px; color: var(--gold);
}
.bb-tape-title {
  font-size: 13px; letter-spacing: 1px; color: var(--chrome-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-tape-meta {
  font-size: 10px; letter-spacing: 1.5px; color: var(--chrome-3);
  white-space: nowrap;
}

/* EQ bars */
.bb-eq {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2px;
  height: 40px; margin: 8px 0;
  padding: 4px;
  background: #000;
  border: 1px solid #000;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.8);
}
.bb-eq span {
  flex: 1; min-width: 0;
  background: linear-gradient(to top, #4ad07a 0%, #ffd84d 60%, #ff4d6d 100%);
  height: 8%;
  transition: height 0.06s linear;
  box-shadow: 0 0 4px currentColor;
}

/* transport */
.bb-transport {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 6px;
  margin-bottom: 8px;
}
.bb-tbtn {
  font-family: "VT323", monospace;
  font-size: 16px; letter-spacing: 1px;
  color: var(--chrome-1);
  background: linear-gradient(to bottom, #5a5a68 0%, #2a2a35 50%, #1a1a22 100%);
  border: 1px solid #000; border-top-color: #7a7a88;
  padding: 8px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
}
.bb-tbtn:hover { color: var(--gold); }
.bb-tbtn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.6); }
.bb-tbtn.bb-play {
  font-size: 18px;
}
.bb-tbtn.bb-play.on {
  color: var(--red);
  text-shadow: 0 0 8px var(--red);
  background: linear-gradient(to bottom, #4a3030 0%, #2a1818 50%, #1a0a0a 100%);
}

/* tracklist */
.bb-tracklist {
  background: #000; border: 1px solid #000;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  padding: 4px; margin-bottom: 8px;
  max-height: 110px; overflow-y: auto;
}
.bb-tracklist::-webkit-scrollbar { width: 6px; }
.bb-tracklist::-webkit-scrollbar-thumb { background: var(--chrome-3); }
.bb-track {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 8px; align-items: baseline;
  padding: 5px 8px;
  font-size: 13px; letter-spacing: 1px;
  color: var(--chrome-2);
  cursor: pointer;
  border-left: 2px solid transparent;
}
.bb-track:hover { color: var(--chrome-1); background: rgba(255,255,255,0.04); }
.bb-track.active {
  color: var(--gold); border-left-color: var(--gold);
  background: rgba(255,216,77,0.08);
  text-shadow: 0 0 6px rgba(255,216,77,0.4);
}
.bb-track .bb-tnum { color: var(--chrome-3); font-size: 11px; }
.bb-track .bb-ttitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-track .bb-tbpm { font-size: 11px; color: var(--teal); }

/* volume */
.bb-vol-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 8px; align-items: center;
}
.bb-vol-l {
  font-size: 11px; letter-spacing: 2px; color: var(--gold);
}
.bb-vol-v {
  font-size: 11px; letter-spacing: 1.5px; color: var(--chrome-2);
  width: 26px; text-align: right;
}
.bb-vol {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(to right, #1a1a22, #3a3a48);
  border: 1px solid #000;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}
.bb-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 18px;
  background: linear-gradient(to bottom, #ddd, #888);
  border: 1px solid #000;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.bb-vol::-moz-range-thumb {
  width: 14px; height: 18px;
  background: linear-gradient(to bottom, #ddd, #888);
  border: 1px solid #000;
  cursor: pointer;
}

/* ============ 3) TRAILER NIGHT ============ */
.tn-menu {
  position: relative;
}
.tn-menu-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px 40px 30px;
  overflow: hidden;
  min-height: 0;
}

.tn-left {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}
.tn-left::-webkit-scrollbar { width: 8px; }
.tn-left::-webkit-scrollbar-thumb { background: var(--chrome-3); }

.tn-fbi {
  font-family: "VT323", monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--chrome-3);
  border: 1px solid var(--chrome-4);
  background: rgba(0,0,0,0.3);
  padding: 6px 10px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.tn-tagline {
  font-family: "VT323", monospace;
  font-size: 14px; letter-spacing: 4px;
  color: var(--teal);
  text-shadow: 0 0 8px rgba(95,211,224,0.5);
  margin-bottom: 8px;
}
.tn-bigtitle {
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.88; letter-spacing: -2px;
  margin: 0 0 12px;
  background: linear-gradient(to bottom, #fff 0%, #fff 40%, #ffd84d 60%, #c89b1c 80%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 18px rgba(255,216,77,0.3));
}
.tn-pitch {
  font-family: "VT323", monospace;
  font-size: 16px; color: var(--chrome-2); letter-spacing: 1px;
  margin-bottom: 18px;
  border-left: 2px solid var(--gold); padding-left: 12px;
}

.tn-menu-options {
  display: flex; flex-direction: column; gap: 10px;
}
.tn-opt {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 44px;
  background: linear-gradient(to right, rgba(15,25,70,0.85), rgba(5,10,40,0.5));
  border: 1px solid var(--chrome-3);
  border-left: 3px solid var(--gold-deep);
  cursor: pointer;
  transition: all 0.18s;
}
.tn-opt-arrow {
  position: absolute; left: 14px;
  color: var(--gold); font-size: 18px;
  text-shadow: 0 0 8px var(--gold);
  opacity: 0.4;
  transition: all 0.2s;
}
.tn-opt:hover, .tn-opt.open {
  background: linear-gradient(to right, rgba(40,60,150,0.9), rgba(10,20,80,0.7));
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255,216,77,0.25);
}
.tn-opt:hover .tn-opt-arrow, .tn-opt.open .tn-opt-arrow {
  opacity: 1; transform: translateX(4px);
}
.tn-opt-mid { flex: 1; min-width: 0; }
.tn-opt-l {
  font-family: "Cinzel", serif; font-weight: 700; font-style: italic;
  font-size: 22px; letter-spacing: 1px;
  color: var(--chrome-1); text-transform: uppercase;
}
.tn-opt:hover .tn-opt-l, .tn-opt.open .tn-opt-l { color: var(--gold); text-shadow: 0 0 8px rgba(255,216,77,0.4); }
.tn-opt-s {
  font-family: "VT323", monospace;
  font-size: 13px; letter-spacing: 1.5px;
  color: var(--chrome-3); margin-top: 2px;
}

.tn-scenes {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 0 4px 24px;
  border-left: 1px dashed var(--chrome-4);
  margin-left: 22px;
}
.tn-scene {
  display: grid; grid-template-columns: auto 36px 1fr;
  gap: 10px; align-items: center;
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--chrome-4);
  cursor: pointer;
  transition: all 0.15s;
}
.tn-scene:hover { border-color: var(--gold); background: rgba(40,60,150,0.5); }
.tn-scene-num {
  font-family: "VT323", monospace; font-size: 14px;
  color: var(--gold); letter-spacing: 1px;
  width: 22px;
}
.tn-scene-thumb {
  width: 36px; height: 36px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 4px, transparent 4px, transparent 8px),
    linear-gradient(135deg, var(--navy-light), var(--navy-deep));
  border: 1px solid var(--chrome-4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: "Cinzel", serif; font-size: 18px; color: var(--gold);
}
.tn-scene-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-scene-mid { min-width: 0; }
.tn-scene-title {
  font-family: "VT323", monospace; font-size: 14px;
  color: var(--chrome-1); letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tn-scene-meta {
  font-family: "VT323", monospace; font-size: 11px;
  color: var(--chrome-3); letter-spacing: 1.5px;
}
.tn-scene-empty {
  font-family: "VT323", monospace; font-size: 13px;
  color: var(--chrome-3); letter-spacing: 2px;
  padding: 8px;
}

.tn-features {
  margin-left: 22px;
  padding: 10px 14px;
  border-left: 1px dashed var(--chrome-4);
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--chrome-4);
  border-right: 1px solid var(--chrome-4);
  border-bottom: 1px solid var(--chrome-4);
}
.tn-feat-title {
  font-family: "VT323", monospace; font-size: 13px;
  color: var(--gold); letter-spacing: 3px;
  margin-bottom: 8px;
}
.tn-feat-row {
  display: grid; grid-template-columns: 1fr 110px 30px;
  gap: 8px; align-items: center;
  font-family: "VT323", monospace;
  margin-bottom: 4px;
}
.tn-feat-bar {
  height: 8px; background: #000; border: 1px solid var(--chrome-4);
  position: relative;
}
.tn-feat-bar span {
  display: block; height: 100%;
  transition: width 0.3s;
}
.tn-feat-row.dc-mint .tn-feat-bar span { background: #7af09a; }
.tn-feat-row.dc-likenew .tn-feat-bar span { background: #ffd84d; }
.tn-feat-row.dc-scratched .tn-feat-bar span { background: #ff9a4d; }
.tn-feat-row.dc-unplayable .tn-feat-bar span { background: #ff4d6d; }
.tn-feat-name { font-size: 12px; letter-spacing: 1.5px; color: var(--chrome-2); }
.tn-feat-row.dc-mint .tn-feat-name { color: #7af09a; }
.tn-feat-row.dc-likenew .tn-feat-name { color: #ffd84d; }
.tn-feat-row.dc-scratched .tn-feat-name { color: #ff9a4d; }
.tn-feat-row.dc-unplayable .tn-feat-name { color: #ff4d6d; }
.tn-feat-count { font-size: 14px; color: var(--gold); text-align: right; }
.tn-feat-note {
  font-family: "VT323", monospace; font-size: 11px;
  color: var(--chrome-3); letter-spacing: 1.5px;
  margin-top: 8px; padding-top: 6px;
  border-top: 1px dashed var(--chrome-4);
}

/* RIGHT SIDE PICKER */
.tn-right {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--chrome-4);
  padding: 12px;
}
.tn-pickhead {
  font-family: "VT323", monospace;
  font-size: 13px; letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255,216,77,0.4);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--chrome-4);
}
.tn-pick-grid {
  flex: 1; min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 6px; padding-right: 6px;
}
.tn-pick-grid::-webkit-scrollbar { width: 8px; }
.tn-pick-grid::-webkit-scrollbar-thumb { background: var(--chrome-3); }

.tn-pick {
  display: grid; grid-template-columns: 50px 1fr 24px;
  gap: 10px; align-items: center;
  padding: 6px;
  background: linear-gradient(to right, rgba(15,25,70,0.5), rgba(5,10,40,0.3));
  border: 1px solid var(--chrome-4);
  cursor: pointer;
  transition: all 0.15s;
}
.tn-pick:hover { border-color: var(--gold-deep); }
.tn-pick.on {
  border-color: var(--gold);
  background: linear-gradient(to right, rgba(60,80,160,0.6), rgba(20,35,90,0.5));
  box-shadow: inset 0 0 0 1px rgba(255,216,77,0.3);
}
.tn-pick-thumb {
  position: relative;
  width: 50px; height: 50px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 4px, transparent 4px, transparent 8px),
    linear-gradient(135deg, var(--navy-light), var(--navy-deep));
  border: 1px solid var(--chrome-4);
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-size: 22px; color: var(--gold);
  overflow: hidden;
}
.tn-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-pick-cond {
  position: absolute; bottom: 0; right: 0;
  width: 14px; height: 14px;
  font-family: "VT323", monospace; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.tn-pick-mid { min-width: 0; }
.tn-pick-title {
  font-family: "Cinzel", serif; font-size: 14px; font-weight: 700;
  color: var(--chrome-1); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tn-pick.on .tn-pick-title { color: var(--gold); }
.tn-pick-cat {
  font-family: "VT323", monospace; font-size: 11px;
  color: var(--chrome-3); letter-spacing: 1.5px;
  margin-top: 2px;
}
.tn-pick-check {
  font-family: "VT323", monospace; font-size: 18px;
  color: var(--gold); text-shadow: 0 0 8px rgba(255,216,77,0.6);
  text-align: center;
}

/* ---------- PLAYBACK STAGE ---------- */
.tn-playback, .tn-end {
  position: relative;
  background: #000;
}
.tn-letterbox {
  position: absolute; left: 0; right: 0;
  height: 8%;
  background: #000;
  z-index: 30;
  pointer-events: none;
  animation: lbIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tn-letterbox.top { top: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.8); }
.tn-letterbox.bottom { bottom: 0; box-shadow: 0 -4px 14px rgba(0,0,0,0.8); }
@keyframes lbIn { 0% { height: 0; } 100% { height: 8%; } }

.tn-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.tn-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85) brightness(0.6);
  animation: tnZoom 6s ease-out forwards;
}
@keyframes tnZoom { from { transform: scale(1.0); } to { transform: scale(1.15); } }
.tn-bg-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: clamp(200px, 40vw, 480px);
  text-shadow: 0 8px 0 rgba(0,0,0,0.6), 0 0 60px currentColor;
  opacity: 0.5;
  animation: tnZoom 6s ease-out forwards;
}
.tn-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, transparent 30%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  pointer-events: none;
}
.tn-static {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: tnStatic 0.2s steps(2) infinite;
}
@keyframes tnStatic { 0% { transform: translateY(0); } 100% { transform: translateY(2px); } }

.tn-card {
  position: relative; z-index: 10;
  margin: 0 0 80px 60px;
  max-width: 70%;
  animation: tnSlide 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tnSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.tn-chapter {
  font-family: "VT323", monospace;
  font-size: 14px; letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,216,77,0.6);
  margin-bottom: 6px;
}
.tn-cat {
  font-family: "VT323", monospace;
  font-size: 13px; letter-spacing: 4px;
  color: var(--teal);
  margin-bottom: 14px;
}
.tn-title {
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.88; letter-spacing: -2px;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 6px 0 rgba(0,0,0,0.7), 0 0 30px rgba(255,255,255,0.3);
}
.tn-desc {
  font-family: "Tahoma", sans-serif; font-size: 18px;
  color: var(--chrome-1);
  max-width: 600px; line-height: 1.4;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.tn-bar {
  width: 320px; max-width: 60vw;
  height: 8px; background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  position: relative; overflow: hidden;
}
.tn-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-deep), var(--gold), #fff);
  box-shadow: 0 0 12px rgba(255,216,77,0.7);
}
.tn-meta {
  font-family: "VT323", monospace; font-size: 14px;
  color: var(--chrome-2); letter-spacing: 2px;
  margin-top: 6px;
}

.tn-rating {
  position: absolute; bottom: 90px; right: 60px;
  z-index: 12;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.85);
  border: 2px solid #fff;
  padding: 4px 12px 8px;
  font-family: "VT323", monospace;
  animation: tnSlide 0.7s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.tn-rating .rt-tag {
  font-size: 10px; letter-spacing: 1.5px; color: #fff;
  white-space: nowrap;
}
.tn-rating .rt-letter {
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: 36px; color: #fff;
  line-height: 1; padding: 4px 0;
}

.tn-controls {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; gap: 10px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--chrome-3);
}

/* end card */
.tn-end-inner {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 40px;
  text-align: center;
  animation: tnSlide 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tn-end-fin {
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: clamp(80px, 14vw, 180px);
  letter-spacing: 8px;
  background: linear-gradient(to bottom, #fff, #ffd84d 60%, #c89b1c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.7));
  margin-bottom: 8px;
}
.tn-end-sub {
  font-family: "VT323", monospace;
  font-size: 14px; letter-spacing: 6px;
  color: var(--chrome-2);
  margin-bottom: 32px;
}
.tn-credits {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: "VT323", monospace;
  text-align: left;
}
.tn-cred-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; align-items: baseline;
  font-size: 16px;
}
.tn-cred-role {
  color: var(--chrome-3); letter-spacing: 3px; text-align: right;
}
.tn-cred-name {
  color: var(--gold); letter-spacing: 1px;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .boombox {
    width: calc(100vw - 24px);
    max-width: 380px;
    right: 12px; bottom: 12px;
  }
  .boombox-fab { right: 12px; bottom: 12px; padding: 7px 12px; font-size: 12px; }
  .boombox-fab .bb-fab-ico { font-size: 14px; }

  .scratch-disc-wrap { width: 56px; bottom: 8px; left: 8px; }
  .scratch-disc { width: 56px; height: 56px; }
  .scratch-disc-cap { font-size: 9px; padding: 1px 4px; letter-spacing: 1px; }

  .card .dc-pill { top: 6px; left: 6px; }
  .disc-badge.dc-sm { padding: 1px 4px; font-size: 9px; letter-spacing: 1px; }
  .disc-badge.dc-sm .dc-dot { width: 5px; height: 5px; }

  /* Mobile: single column, full scroll — base overflow:hidden must be cleared */
  .tn-menu {
    overflow-y: auto;
  }
  .tn-menu-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 14px 12px 32px;
    gap: 14px;
    overflow: visible; /* let .tn-menu handle scrolling */
    flex: none;        /* don't stretch — grow with content */
    min-height: 0;
  }
  .tn-left {
    overflow-y: visible;
    padding-right: 0;
  }
  .tn-right {
    min-height: 0;
    max-height: none;
    padding: 10px;
  }
  /* Let picker expand fully rather than truncating at 50vh */
  .tn-pick-grid {
    max-height: none;
    overflow-y: visible;
  }
  .tn-fbi { font-size: 10px; padding: 5px 8px; }
  .tn-tagline { font-size: 12px; letter-spacing: 3px; }
  .tn-pitch { font-size: 14px; padding-left: 10px; }
  .tn-opt { padding: 12px 14px 12px 36px; gap: 10px; }
  .tn-opt-arrow { left: 12px; font-size: 14px; }
  .tn-opt-l { font-size: 18px; letter-spacing: 0.5px; }
  .tn-opt-s { font-size: 12px; letter-spacing: 1px; }
  .tn-scenes, .tn-features { margin-left: 12px; padding-left: 14px; }
  .tn-feat-row { grid-template-columns: 1fr 80px 24px; gap: 6px; }
  .tn-feat-name { font-size: 11px; }

  /* playback */
  .tn-card { margin: 0 0 90px 20px; max-width: calc(100vw - 32px); }
  .tn-rating { display: none; }
  .tn-controls { gap: 6px; padding: 6px 10px; bottom: 18px; }
  .tn-controls .btn { font-size: 12px; padding: 6px 10px; letter-spacing: 1px; }
  .tn-end-inner { padding: 40px 20px; }
  .tn-cred-row { grid-template-columns: 110px 1fr; gap: 12px; font-size: 12px; }
  .tn-cred-role { letter-spacing: 1.5px; }
}

@media (max-width: 540px) {
  .boombox { padding: 8px 10px 10px; width: calc(100vw - 16px); right: 8px; bottom: 64px; }
  .boombox-fab { right: 10px; bottom: 64px; }
  .bb-top { padding: 0 2px 6px; margin-bottom: 8px; }
  .bb-brand { font-size: 14px; }
  .bb-window { min-height: 64px; padding: 6px; }
  .bb-tape { height: 36px; }
  .bb-reel { width: 26px; height: 26px; }
  .bb-reel span { width: 10px; }
  .bb-tape-title { font-size: 12px; }
  .bb-tape-meta { font-size: 9px; }
  .bb-side { font-size: 9px; }
  .bb-eq { height: 30px; margin: 6px 0; padding: 3px; }
  .bb-tracklist { max-height: 80px; }
  .bb-track { padding: 4px 6px; font-size: 12px; gap: 6px; }
  .bb-track .bb-tnum, .bb-track .bb-tbpm { font-size: 10px; }
  .bb-tbtn { padding: 6px; font-size: 14px; }
  .bb-tbtn.bb-play { font-size: 16px; }

  .tn-bigtitle { font-size: clamp(40px, 12vw, 64px); letter-spacing: -1px; }
  .tn-pickhead { font-size: 11px; letter-spacing: 2px; }
  .tn-pick { grid-template-columns: 42px 1fr 18px; gap: 8px; padding: 5px; }
  .tn-pick-thumb { width: 42px; height: 42px; font-size: 18px; }
  .tn-pick-title { font-size: 13px; }
  .tn-pick-cat { font-size: 10px; letter-spacing: 1px; }
  .tn-pick-check { font-size: 14px; }

  .tn-title { font-size: clamp(36px, 10vw, 56px); letter-spacing: -1px; }
  .tn-desc { font-size: 14px; }
  .tn-chapter { font-size: 12px; letter-spacing: 4px; }
  .tn-cat { font-size: 11px; letter-spacing: 2px; margin-bottom: 10px; }
  .tn-card { margin: 0 0 80px 14px; }
  .tn-bar { width: 80vw; max-width: none; }

  .tn-end-fin { font-size: clamp(64px, 18vw, 120px); letter-spacing: 4px; }
  .tn-end-sub { font-size: 12px; letter-spacing: 4px; margin-bottom: 20px; }
  .tn-cred-row { grid-template-columns: 90px 1fr; gap: 10px; font-size: 11px; }
}

@media (max-width: 380px) {
  .boombox { padding: 6px 8px 8px; }
  .bb-transport { gap: 4px; }
  .tn-opt-l { font-size: 16px; }
  .tn-card { margin: 0 0 76px 10px; }
}
