/* ============================================================= */
/* TEAC 450 Stereo Cassette Deck & Visualizer Styles             */
/* Modeled faithfully after 1973-1975 TEAC 450 Reference Design  */
/* ============================================================= */

:root {
  --wood-walnut: #4a2814;
  --wood-dark: #2c160b;
  --wood-highlight: #6e3d20;
  --gunmetal-deck: #222328;
  --gunmetal-light: #32333b;
  --silver-trim: #b8b8c4;
  --silver-bright: #e4e4ec;
  --black-faceplate: #131316;
  --fader-silver: #c8c8d2;
  --meter-amber-glow: #ffc436;
  --meter-lamp: #ffe79a;
  --red-indicator: #e53935;
  --red-glow: rgba(229, 57, 53, 0.7);
  --green-tape: #4caf50;
  --tape-plastic: #2a2928;
  --screw-color: #8c8c98;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 50% 30%, #2b2c34 0%, #17181c 65%, #0b0c0e 100%);
  font-family: 'Share Tech Mono', monospace;
  color: #c0c0cb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
}

/* Outer Chassis Wrapper with Dark Surface Reflection */
.deck-wrapper {
  width: 100%;
  max-width: 1020px;
  perspective: 1000px;
}

/* Main TEAC 450 Chassis Structure with Walnut Wood Cheeks */
.teac-450-chassis {
  display: flex;
  background: #141417;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95),
              0 10px 30px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

/* ============================================================= */
/* 1. Solid American Walnut Wood Cheeks (Left & Right Sides)     */
/* ============================================================= */
.wood-cheek {
  width: 32px;
  min-width: 32px;
  background: linear-gradient(90deg, #381d0f 0%, #5d341b 35%, #462613 70%, #281308 100%),
              repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.12) 2px, transparent 2px, transparent 7px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  align-items: center;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2),
              inset -1px 0 0 rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.cheek-left {
  border-radius: 8px 0 0 4px;
  border-right: 2px solid #1a0d06;
}

.cheek-right {
  border-radius: 0 8px 4px 0;
  border-left: 2px solid #1a0d06;
}

.wood-grain-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 4px, rgba(255,255,255,0.02) 4px, rgba(255,255,255,0.02) 6px);
  pointer-events: none;
}

/* Recessed Hex Socket Cap Screws on Wood Cheeks (Seen in 3D View) */
.side-hex-screw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #44454c 30%, #1e1e24 75%, #0e0e12 100%);
  border: 1px solid #6b6c78;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5),
              0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-hex-screw::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #000;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* ============================================================= */
/* 2. Main Central Metal Unit                                    */
/* ============================================================= */
.teac-main-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #18191d;
  border-top: 3px solid #b2b2c0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  min-width: 0;
}

/* ============================================================= */
/* 3. Top Horizontal Deck Surface (Gunmetal Finish with Bevels) */
/* ============================================================= */
.teac-top-deck {
  background: linear-gradient(180deg, #2b2c33 0%, #1e1f24 100%);
  border-bottom: 3px solid #383944;
  padding: 18px 20px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.12),
              0 4px 10px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .teac-top-deck {
    grid-template-columns: 1fr;
  }
}

/* Left: Cassette Well with Viewing Window & Ferrite Head Plate */
.teac-cassette-well {
  background: #151619;
  border: 3px solid #3e3f49;
  border-radius: 6px;
  box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.95),
              0 4px 10px rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  flex-direction: column;
  perspective: 900px;
}

.well-top-trim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.well-indicator-mark {
  color: #9ea0b2;
}

.well-indicator-sub {
  background: #25262e;
  color: #ffaa33;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid #3d3e4c;
  font-size: 7.5px;
  letter-spacing: 1px;
}

/* Recessed Well Chamber Cavity (Housing the Door & Mechanical Rails) */
.cassette-well-cavity {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 40%, #15161c 0%, #0a0b0d 100%);
  border: 2px solid #2d2e38;
  border-radius: 5px;
  padding: 8px 6px;
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  perspective: 900px;
  overflow: visible;
  min-height: 260px;
  box-sizing: border-box;
}

/* Dual warm incandescent compartment lamps */
.well-lamp {
  position: absolute;
  top: 24px;
  width: 9px;
  height: 20px;
  border-radius: 4px;
  background: radial-gradient(ellipse at center, #fff2cc 0%, #ffb84d 55%, #b36b00 100%);
  box-shadow: 0 0 10px rgba(255, 184, 77, 0.5),
              0 0 22px rgba(255, 150, 30, 0.3);
  opacity: 0.65;
  transition: opacity 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.well-lamp.lamp-left {
  left: 14px;
}

.well-lamp.lamp-right {
  right: 14px;
}

.teac-cassette-well.ejected .well-lamp {
  opacity: 1;
  box-shadow: 0 0 18px rgba(255, 190, 80, 0.9),
              0 0 40px rgba(255, 140, 20, 0.55);
}

/* Mechanical guide rails on sides */
.well-guide-rail {
  position: absolute;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, #444550 0%, #202128 50%, #444550 100%);
  border-radius: 2px;
  box-shadow: inset 0 0 1px #000, 0 0 2px rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.well-guide-rail.rail-left {
  left: 32px;
}

.well-guide-rail.rail-right {
  right: 32px;
}

/* Background drive mechanism visible behind opened door */
.well-interior-chassis {
  position: absolute;
  inset: 15px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.teac-cassette-well.ejected .well-interior-chassis {
  opacity: 0.8;
}

.drive-spindle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #5b5c6b 25%, #24252e 70%, #121318 100%);
  border: 2px solid #3d3e4c;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.7);
  position: relative;
}

.drive-spindle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb84d;
  box-shadow: 0 0 6px rgba(255, 184, 77, 0.7);
}

.drive-capstan {
  width: 6px;
  height: 24px;
  background: linear-gradient(90deg, #d8d8e5 0%, #70717e 100%);
  border-radius: 2px;
  align-self: flex-end;
  margin-bottom: 25px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

/* ============================================================= */
/* Cassette Compartment Door Assembly (Hinged 3D Opening Door)  */
/* ============================================================= */
.cassette-door-assembly {
  width: 308px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 98%;
  transform: perspective(900px) rotateX(0deg) translateY(0) translateZ(0);
  transition: transform 0.48s cubic-bezier(0.18, 0.9, 0.28, 1.02),
              box-shadow 0.48s ease,
              filter 0.3s ease;
  z-index: 4;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Door Ejected / Open State Animation */
.cassette-door-assembly.ejected {
  transform: perspective(900px) rotateX(28deg) translateY(-14px) translateZ(26px);
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.92),
              0 6px 16px rgba(0, 0, 0, 0.7),
              0 0 25px rgba(255, 170, 50, 0.25);
  cursor: pointer;
}

.cassette-door-assembly.ejected:hover {
  filter: brightness(1.05);
}

/* Door Top Lip Bezel & Gripper */
.door-top-bezel {
  width: 308px;
  margin: 0 auto 5px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 8px;
  background: linear-gradient(180deg, #32333c 0%, #1e1f26 100%);
  border: 1px solid #4a4b58;
  border-radius: 3px 3px 0 0;
  box-sizing: border-box;
}

.door-grip-ridges {
  width: 60px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #585966 0px, #585966 2px, #1a1a20 2px, #1a1a20 4px);
  border-radius: 1px;
}

.door-status-pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8c8e9f;
  text-transform: uppercase;
  font-weight: bold;
}

.cassette-door-assembly.ejected .door-status-pill {
  color: #ffaa33;
  text-shadow: 0 0 6px rgba(255, 170, 50, 0.6);
}

/* Snug Viewing Window (Fitting closely around the 290px cassette) */
.bay-window {
  width: 308px;
  max-width: 100%;
  height: 203px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(28, 30, 36, 0.95) 0%, rgba(13, 14, 18, 0.98) 100%);
  border: 2px solid #3d3e48;
  border-radius: 4px;
  padding: 7px 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95),
              0 1px 2px rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Subtle Glass Reflection Streak */
.glass-reflection-shine {
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 60%);
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 5;
}

/* Authentic Cassette Shell (Physical 1.57:1 Compact Cassette Ratio) */
.cassette-body {
  width: 290px;
  max-width: 100%;
  height: 185px;
  aspect-ratio: 1.57 / 1;
  background: linear-gradient(180deg, #2a2927 0%, #1a1918 100%);
  border: 2px solid #484642;
  border-radius: 7px;
  padding: 8px 10px 6px 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(0) translateZ(0);
  transition: transform 0.48s cubic-bezier(0.18, 0.9, 0.28, 1.02),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  box-sizing: border-box;
}

/* Cassette Body State when Ejected */
.cassette-body.ejected {
  transform: translateY(-4px) translateZ(6px);
  border-color: #ff9800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.95),
              0 0 16px rgba(255, 152, 0, 0.35);
  cursor: pointer;
}

/* Cassette Corner Screws */
.screw {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #999 40%, #444 100%);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.screw.top-left { top: 5px; left: 5px; }
.screw.top-right { top: 5px; right: 5px; }
.screw.bottom-left { bottom: 5px; left: 5px; }
.screw.bottom-right { bottom: 5px; right: 5px; }
.screw.center-bottom { bottom: 6px; left: 50%; transform: translateX(-50%); }

/* TDK D-90 Style Paper Label */
.cassette-label {
  background: #eae4d5;
  color: #1a1a1c;
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid #c8c0ad;
}

.label-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 900;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 2px;
  letter-spacing: 1px;
}

.label-brand {
  color: #1b5e20;
  font-weight: 900;
}

.label-side {
  background: #1b5e20;
  color: #fff;
  padding: 0 4px;
  border-radius: 2px;
}

.label-handwritten {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: #1a237e;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-time {
  font-size: 8px;
  color: #555;
  text-align: right;
  margin-top: 2px;
}

/* Cassette Transparent Center Window with Dual Spools */
.tape-center-window {
  background: rgba(15, 15, 18, 0.9);
  border: 2px solid #33333d;
  border-radius: 4px;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
}

.spool-container {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tape-pack {
  position: absolute;
  border-radius: 50%;
  background: #3e2415;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
  transition: width 1s linear, height 1s linear;
}
.left-tape-pack { width: 44px; height: 44px; }
.right-tape-pack { width: 34px; height: 34px; }

.reel {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0ede6;
  border: 2px solid #555;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hub-center {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spoke {
  position: absolute;
  width: 3px;
  height: 12px;
  background: #333;
  left: calc(50% - 1.5px);
  top: 3px;
  transform-origin: bottom center;
}
.spoke-1 { transform: rotate(0deg); }
.spoke-2 { transform: rotate(120deg); }
.spoke-3 { transform: rotate(240deg); }

.spinning-normal {
  animation: reelSpin 1.8s linear infinite;
}
.spinning-fast {
  animation: reelSpin 0.35s linear infinite;
}
.spinning-rewind {
  animation: reelSpinReverse 0.35s linear infinite;
}

@keyframes reelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes reelSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Tape Ruler in Center */
.tape-ruler {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 32px;
  font-size: 7px;
  color: #888;
  border-left: 1px solid #444;
  padding-left: 3px;
}

/* Cassette Bottom Block & Magnetic Tape Area */
.cassette-bottom-block {
  margin-top: 6px;
  height: 16px;
  background: #181716;
  border: 1px solid #383633;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: relative;
}

.magnetic-tape-strip {
  width: 70%;
  height: 6px;
  background: #3d2314;
  margin: 0 auto;
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.9);
}

.tape-guide {
  width: 5px;
  height: 10px;
  background: #444;
  border-radius: 1px;
}

/* Eject Overlay Notice */
.eject-prompt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ff9800;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.cassette-body.ejected .eject-prompt-overlay {
  opacity: 1;
}

.prompt-icon {
  font-size: 24px;
}

.prompt-text {
  font-size: 11px;
}

/* Lower Brushed Aluminum Door Plate: High Density Ferrite Head */
.ferrite-head-plate {
  width: 308px;
  max-width: 100%;
  margin: 5px auto 0 auto;
  background: linear-gradient(180deg, #f0f0f8 0%, #c4c4d4 38%, #9696a4 100%);
  border: 1px solid #ffffff;
  border-bottom: 2px solid #555660;
  border-radius: 2px 2px 4px 4px;
  padding: 5px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
              0 3px 6px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.ferrite-plate-accent {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2b2c34;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8),
              0 1px 0 rgba(255, 255, 255, 0.6);
}

.ferrite-text {
  color: #17181c;
  font-family: 'Share Tech Mono', sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 2.2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================================= */
/* 4. Right: CRT Master Monitor Unit (Matching the Well Frame)  */
/* ============================================================= */
.teac-monitor-well {
  background: #151619;
  border: 3px solid #3e3f49;
  border-radius: 6px;
  box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.95),
              0 4px 10px rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.crt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.crt-title {
  color: #9ea0b2;
}

.hatch-hint-tag {
  background: #25262e;
  color: #ff9800;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid #3d3e4c;
}

.crt-bezel {
  background: #111114;
  border: 2px solid #2e2f38;
  border-radius: 6px;
  padding: 8px;
  flex: 1;
  display: flex;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.95);
}

.crt-glass {
  flex: 1;
  background: #000;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95);
}

#player-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

#player-container iframe, #player {
  width: 100%;
  height: 100%;
  border: none;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 8;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.crt-scanlines.hidden {
  opacity: 0;
}

.crt-overlay-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #4caf50;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9;
}

/* Mechanical Sliding Cover with Clickable Protruding Handle */
.crt-shutter-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #24242a 0%, #17181c 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 3px solid #ff9800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  user-select: none;
  transform: translateY(calc(-100% + 28px));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.crt-shutter-cover.closed {
  transform: translateY(0);
}

.shutter-slats {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, #2a2a32 0px, #2a2a32 4px, #16161a 4px, #16161a 8px);
  opacity: 0.65;
  pointer-events: none;
}

.shutter-badge {
  background: #111114;
  border: 1px solid #3e3f4b;
  border-radius: 4px;
  padding: 10px 16px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.badge-title {
  color: #ff9800;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 2px;
}

.badge-sub {
  font-size: 8px;
  color: #7b7b8a;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.badge-indicator {
  margin-top: 6px;
  font-size: 8px;
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.shutter-handle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, #3d3e48 0%, #282930 100%);
  border-top: 1px solid #5a5b68;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #d8d8e4;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
}

/* ============================================================= */
/* 5. Upper Stepped Fascia Tier (Brushed Silver Aluminum)        */
/* ============================================================= */
.teac-stepped-tier {
  background: linear-gradient(180deg, #484a54 0%, #36373f 40%, #28292f 100%);
  border-top: 2px solid #636572;
  border-bottom: 3px solid #101012;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
              0 6px 12px rgba(0, 0, 0, 0.8);
  flex-wrap: wrap;
  gap: 16px;
}

/* Authentic TEAC Piano Transport Keys */
.piano-transport-block {
  display: flex;
  gap: 5px;
  background: #111114;
  padding: 8px 10px;
  border-radius: 4px;
  border: 2px solid #2a2a32;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9);
}

.key-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.piano-key {
  width: 36px;
  height: 58px;
  background: linear-gradient(180deg, #4d4e5a 0%, #32333b 50%, #202126 100%);
  border: 1px solid #636573;
  border-bottom: 4px solid #0a0a0d;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.1s ease;
  user-select: none;
}

.piano-key:hover {
  background: linear-gradient(180deg, #585966 0%, #3a3b44 50%, #27282f 100%);
}

.piano-key:active, .piano-key.pressed {
  transform: translateY(3px);
  border-bottom-width: 1px;
  background: linear-gradient(180deg, #24242c 0%, #16171b 100%);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9);
}

/* Color Insets on REC and STOP Keys (Exact to Reference Photos!) */
.key-color-insert {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.red-insert {
  background: #d32f2f;
  border: 1px solid #b71c1c;
}
.white-insert {
  background: #ffffff;
  border: 1px solid #bbb;
}

.key-indicator-notch {
  width: 14px;
  height: 2px;
  background: #ffaa33;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 170, 50, 0.6);
  margin-top: 14px;
}

.key-label {
  font-size: 8px;
  font-weight: 900;
  color: #b0b0be;
  letter-spacing: 1px;
}

/* Upper Aux Block (Counter, Tape Run, Toggles, Power) */
.stepped-aux-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mechanical Tape Counter & Optical TAPE RUN */
.counter-and-run-unit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #111114;
  border: 2px solid #2d2e37;
  border-radius: 4px;
  padding: 6px 10px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.mechanical-counter-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-display-window {
  display: flex;
  gap: 2px;
  background: #000;
  border: 1px solid #2a2b34;
  padding: 2px 4px;
  border-radius: 2px;
}

.counter-display-window span {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #fff;
  background: #1c1d22;
  padding: 0 3px;
  border-radius: 2px;
}

#counter-reset-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444550;
  border: 1px solid #666878;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Optical TAPE RUN 6-Segment Red LED Strip */
.tape-run-unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tape-run-label {
  font-size: 7.5px;
  letter-spacing: 1px;
  color: #888998;
  font-weight: bold;
}

.tape-run-strip {
  display: flex;
  gap: 3px;
  background: #0a0a0c;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid #22232a;
}

.run-led {
  width: 6px;
  height: 10px;
  background: #331111;
  border-radius: 1px;
  transition: background 0.08s ease, box-shadow 0.08s ease;
}

.run-led.active {
  background: #ff1a1a;
  box-shadow: 0 0 6px #ff1a1a, 0 0 10px rgba(255, 26, 26, 0.8);
}

/* Metal Bat Toggle Switches (Exact to Reference Photos!) */
.toggle-switches-group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.toggle-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}

.toggle-name {
  font-size: 7px;
  letter-spacing: 0.8px;
  color: #b0b0be;
  font-weight: bold;
  text-align: center;
}

.toggle-top-label, .toggle-bot-label {
  font-size: 6.5px;
  color: #7d7e8e;
  font-weight: bold;
}

.bat-switch {
  width: 18px;
  height: 28px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.switch-collar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #e4e4ee 40%, #7d7e8c 85%, #3c3d46 100%);
  border: 1px solid #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8),
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  position: absolute;
}

.bat-handle {
  width: 4px;
  height: 22px;
  background: linear-gradient(90deg, #d0d0dc 0%, #f0f0fa 50%, #90909e 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transform-origin: bottom center;
  transform: rotate(20deg);
  transition: transform 0.15s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
  z-index: 2;
}

.bat-switch.active .bat-handle {
  transform: rotate(-20deg);
}

.dolby-led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #331111;
  border: 1px solid #111;
  margin-bottom: 2px;
}

.dolby-led-dot.active-red {
  background: #ff2222;
  box-shadow: 0 0 6px #ff2222;
}

/* Machined Circular POWER Push Button */
.power-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.power-label-top {
  font-size: 7.5px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #b0b0be;
}

.teac-power-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #f0f0f8 35%, #9e9ea8 75%, #44454e 100%);
  border: 1px solid #1b1b22;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8),
              inset 0 1px 2px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.teac-power-btn:active, .teac-power-btn.active {
  transform: scale(0.92);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.power-sub-labels {
  display: flex;
  gap: 6px;
  font-size: 6.5px;
  color: #888998;
}

/* ============================================================= */
/* 6. Lower Vertical Faceplate (Matte Black with Silver Bezels)  */
/* ============================================================= */
.teac-lower-faceplate {
  background: #131316;
  border-top: 2px solid #24242c;
  padding: 20px 24px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 820px) {
  .teac-lower-faceplate {
    grid-template-columns: 1fr;
  }
}

/* Left: Jacks + Dual Illuminated Analog VU Meters */
.faceplate-left-col {
  display: flex;
  gap: 16px;
  align-items: center;
}

.jacks-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.jack-entry {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jack-sub {
  font-size: 8px;
  font-weight: bold;
  color: #888998;
}

.jack-title {
  font-size: 7.5px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #b0b0be;
}

.phones-title {
  margin-top: 6px;
}

.metal-phone-jack {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #000 45%, #666775 80%, #999aab 100%);
  border: 1px solid #222;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4),
              0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Shared Dual VU Housing with Brushed Silver Bezel */
.teac-dual-vu-housing {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vu-bezel-frame {
  background: #111114;
  border: 4px solid #8e8e9c;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9),
              inset 0 1px 2px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

/* Warm Incandescent / Golden-Amber Illumination (Exact to Photo 1!) */
.vu-meter-aperture {
  background: radial-gradient(ellipse at 50% 85%, #ffe699 0%, #ffc83b 45%, #ffa000 80%, #fffbf0 100%);
  box-shadow: inset 0 0 25px rgba(255, 160, 0, 0.7),
              inset 0 0 6px rgba(255, 230, 100, 0.9);
  height: 105px;
  position: relative;
  overflow: hidden;
}

.vu-dial-face {
  position: relative;
  width: 100%;
  height: 100%;
  color: #1a1a1c;
}

.vu-brand-mark {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #222;
}

.vu-meter-arc {
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 50px;
  border-top: 2px solid #222;
  border-radius: 50% 50% 0 0;
}

.vu-scale-ticks {
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  font-size: 7.5px;
  font-weight: bold;
}

.vu-scale-ticks .tick-zero, 
.vu-scale-ticks .tick-plus1, 
.vu-scale-ticks .tick-plus3 {
  color: #d32f2f;
}

.vu-percent-scale {
  position: absolute;
  top: 42px;
  left: 35%;
  right: 35%;
  display: flex;
  justify-content: space-between;
  font-size: 6.5px;
  color: #444;
}

/* ANSI C16.5 Physical Meter Needle */
.vu-needle {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 1.5px;
  height: 82px;
  background: #111;
  transform-origin: bottom center;
  transform: rotate(-35deg);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 5;
  transition: none !important;
}

.vu-needle-pivot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #3a3a42 30%, #111116 80%, #000 100%);
  border: 1px solid #555562;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 6;
  pointer-events: none;
}

.vu-center-divider {
  background: #18191d;
  border-left: 2px solid #33333d;
  border-right: 2px solid #33333d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
}

.peak-label, .rec-sub-label {
  font-size: 6px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #8c8c99;
  text-align: center;
}

.peak-led-dot, .rec-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #331111;
  border: 1px solid #111;
}

.peak-led-dot.active-peak, .rec-led-dot.active-red {
  background: #ff1a1a;
  box-shadow: 0 0 6px #ff1a1a;
}

/* TEAC 450 Logo Nameplate Below Meters */
.teac-branding-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.plate-brand {
  font-family: 'Cinzel', serif, 'Share Tech Mono';
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.plate-model {
  font-size: 8px;
  letter-spacing: 2px;
  color: #b0b0be;
}

.plate-dolby {
  font-size: 7.5px;
  letter-spacing: 1.5px;
  color: #8c8c99;
}

/* ============================================================= */
/* 7. Right: 6 Vertical Slider Potentiometers (Faders Bank)      */
/* ============================================================= */
.faceplate-right-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faders-bank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #0f0f12;
  border: 2px solid #26262e;
  border-radius: 5px;
  padding: 12px 14px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9);
}

.fader-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 8px;
  font-weight: 900;
  color: #b8b8c6;
  letter-spacing: 1px;
}

.pair-title {
  color: #ff9800;
}

.fader-dual-tracks {
  display: flex;
  gap: 12px;
}

.fader-track {
  display: flex;
  gap: 4px;
  height: 110px;
  position: relative;
}

.track-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 6.5px;
  color: #727382;
  height: 100%;
}

.fader-groove {
  width: 8px;
  height: 100%;
  background: #000;
  border: 1px solid #22232a;
  border-radius: 2px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

/* Ribbed Aluminum Fader Cap (Exact to Reference Photos!) */
.fader-cap {
  position: absolute;
  left: -13px;
  width: 34px;
  height: 18px;
  background: linear-gradient(180deg, #eaeaf2 0%, #b2b2c0 50%, #767784 100%),
              repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px);
  border: 1px solid #ffffff;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: grab;
  z-index: 5;
  transform: translateY(50%);
  user-select: none;
  transition: bottom 0.08s ease-out;
}

.fader-cap:active {
  cursor: grabbing;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  transition: none;
}

/* ============================================================= */
/* 8. URL Custom Cue Terminal                                    */
/* ============================================================= */
.teac-cue-terminal {
  background: #111114;
  border-top: 1px solid #26262e;
  padding: 10px 20px;
}

.terminal-socket {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #08080a;
  border: 1px solid #2e2f38;
  border-radius: 4px;
  padding: 4px 10px;
}

.terminal-icon {
  font-size: 16px;
}

#yt-url {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #fff;
}

.terminal-btn {
  background: linear-gradient(180deg, #444550 0%, #292a32 100%);
  border: 1px solid #5a5b68;
  border-radius: 3px;
  color: #ff9800;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 1px;
}

.terminal-btn:hover {
  background: #ff9800;
  color: #000;
}

/* Status Banner */
.status-banner {
  background: #3a1515;
  border: 1px solid #e53935;
  color: #ffcdd2;
  padding: 8px 12px;
  font-size: 11px;
  text-align: center;
}

/* ============================================================= */
/* 8.5. TEAC 450 Multi-System Deck-to-Deck Sync Terminal          */
/* ============================================================= */
.teac-sync-terminal {
  background: linear-gradient(180deg, #16171c 0%, #0e0f13 100%);
  border-top: 2px solid #2a2b35;
  border-bottom: 2px solid #24252e;
  padding: 10px 20px 12px 20px;
}

.sync-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-brass-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #d8b43f 0%, #b28a16 48%, #856405 100%);
  border: 1px solid #ffd875;
  border-radius: 2px;
  padding: 2px 10px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7),
              0 2px 4px rgba(0, 0, 0, 0.6);
}

.sync-header-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #171103;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sync-auth-tag {
  background: #191b22;
  border: 1px solid #323544;
  border-radius: 2px;
  color: #4ade80;
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 1.2px;
  padding: 2px 8px;
  font-weight: bold;
}

.sync-terminal-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: #090a0d;
  border: 1px solid #262732;
  border-radius: 4px;
  padding: 8px 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .sync-terminal-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.sync-switch-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 12px;
  border-right: 1px solid #24252e;
}

@media (max-width: 768px) {
  .sync-switch-block {
    border-right: none;
    border-bottom: 1px solid #24252e;
    padding-bottom: 8px;
  }
}

.sync-switch-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.sync-switch-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 1px;
  color: #8f92a4;
  font-weight: bold;
}

.sync-state-indicators {
  display: flex;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 6.5px;
  color: #636575;
}

.sync-beacon-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-beacon-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #4a4c5a;
  background: #25262e;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.sync-beacon-led.active-ready {
  background: radial-gradient(circle, #fde047 30%, #f59e0b 70%, #b45309 100%);
  border-color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.75), inset 0 1px 1px #fff;
  animation: beaconPulse 2s infinite ease-in-out;
}

.sync-beacon-led.active-locked {
  background: radial-gradient(circle, #86efac 30%, #10b981 70%, #047857 100%);
  border-color: #bbf7d0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.85), inset 0 1px 1px #fff;
}

.sync-beacon-led.disabled {
  background: #22232a;
  box-shadow: none;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
  50% { opacity: 1; box-shadow: 0 0 14px rgba(245, 158, 11, 0.9); }
}

.sync-beacon-text {
  display: flex;
  flex-direction: column;
}

.beacon-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #e2e8f0;
}

.beacon-peers {
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  color: #8c8f9f;
  letter-spacing: 0.5px;
}

.sync-room-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-room-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sync-input-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  color: #7b7e8f;
  text-transform: uppercase;
}

.sync-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sync-room-input {
  width: 90px;
  background: #000;
  border: 1px solid #3f4150;
  border-radius: 3px;
  padding: 3px 6px;
  color: #4ade80;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  outline: none;
  text-transform: uppercase;
}

.sync-room-input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}

.sync-btn {
  background: linear-gradient(180deg, #444550 0%, #25262e 100%);
  border: 1px solid #555768;
  border-radius: 3px;
  color: #e2e8f0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sync-btn:hover {
  background: linear-gradient(180deg, #585966 0%, #353642 100%);
  border-color: #8c8ea0;
  color: #fff;
}

.sync-btn:active {
  transform: translateY(1px);
}

.sync-btn-copy {
  background: linear-gradient(180deg, #383944 0%, #1f2028 100%);
  border: 1px solid #4ade80;
  color: #4ade80;
}

.sync-btn-copy:hover {
  background: #4ade80;
  color: #000;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.sync-btn-copy.copied {
  background: #4ade80 !important;
  color: #0b0f14 !important;
  border-color: #86efac !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7) !important;
  font-weight: bold;
}

.sync-share-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sync-share-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 6.5px;
  color: #6d7082;
  letter-spacing: 0.5px;
}

.sync-telemetry-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #050507;
  border: 1px solid #1e1f26;
  border-radius: 3px;
  padding: 3px 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  color: #8f92a4;
  white-space: nowrap;
}

.telemetry-item {
  display: flex;
  gap: 4px;
}

.telemetry-label {
  color: #585a6a;
}

.telemetry-val {
  color: #e2e8f0;
  font-weight: bold;
}

.telemetry-sep {
  color: #2e303d;
}

/* ============================================================= */
/* 9. TEAC 450 Built-in Cassette Storage Well (Molded Slots)     */
/* ============================================================= */
.cassette-rack-shelf {
  background: linear-gradient(180deg, #1f2025 0%, #15161a 100%);
  border-top: 3px solid #33343d;
  padding: 14px 20px 18px 20px;
}

.rack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #24252e;
  padding-bottom: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.rack-brass-plate {
  background: linear-gradient(180deg, #f4da8e 0%, #c69b38 45%, #e8c86d 60%, #99701a 100%);
  color: #291700;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.plate-screw {
  color: #553a10;
  font-size: 7px;
}

.rack-slot-count {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8c8c99;
  font-weight: bold;
}

.cassette-rack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .cassette-rack-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .cassette-rack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Molded Rack Slot */
.rack-slot {
  position: relative;
  height: 220px;
  cursor: pointer;
  user-select: none;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

/* Slot Cavity (Sunken Molded Slot) */
.slot-cavity {
  position: absolute;
  top: 0;
  bottom: 22px;
  width: 100%;
  max-width: 132px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #09090b 0%, #141418 50%, #08080a 100%);
  border-radius: 4px;
  border: 2px solid #24242c;
  border-bottom: 4px solid #141418;
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.in-deck-badge {
  color: #ff9800;
  border: 1px dashed rgba(255, 152, 0, 0.5);
  background: rgba(255, 152, 0, 0.1);
  padding: 4px 6px;
  font-size: 9px;
  letter-spacing: 1.5px;
  border-radius: 3px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
  pointer-events: none;
}

.rack-slot.active-in-deck .in-deck-badge {
  opacity: 1;
  transform: scale(1);
}

/* Acrylic Jewel Case (Authentic 1:1.5 Aspect Ratio) */
.cassette-case {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 126px;
  height: 190px;
  margin: 0 auto;
  border-radius: 4px;
  background: rgba(18, 18, 22, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7),
              inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  overflow: hidden;
  display: flex;
}

.rack-slot:hover .cassette-case {
  transform: translateY(-16px) scale(1.02);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
}

.rack-slot.active-in-deck .cassette-case {
  transform: translateY(-12px);
  border-color: #ff9800;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.85),
              0 0 14px rgba(255, 152, 0, 0.4);
}

.case-jewel-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 35%, transparent 55%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
  z-index: 5;
}

.case-hinge {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  box-shadow: 0 162px 0 0 rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 6;
}

/* J-Card Paper Insert Cover */
.jcard-cover {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

/* Dynamic YouTube Thumbnail Cover Art (Mocks Real Cassette Album Art) */
.cover-thumb-art {
  background-size: cover;
  background-position: center;
  position: relative;
}

.thumb-vintage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.cover-thumb-art .jcard-spine {
  background: rgba(14, 15, 18, 0.92);
  color: #f2c94c;
  backdrop-filter: blur(2px);
  z-index: 3;
}

.art-title-band {
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  padding: 3px 5px;
  margin-top: 2px;
  z-index: 2;
  position: relative;
}

.art-title-band .art-title {
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.art-title-band .art-sub {
  color: #ffca28;
  font-size: 7px;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.jcard-spine {
  width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-right: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 7.5px;
  letter-spacing: 1px;
  font-weight: bold;
  z-index: 2;
}

.spine-num {
  font-size: 9px;
  font-weight: 900;
}

.spine-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 95px;
}

.spine-type {
  font-size: 6.5px;
  opacity: 0.85;
}

.jcard-art {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 6px;
  z-index: 2;
  overflow: hidden;
}

.art-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.2;
}

.art-sub {
  font-size: 7px;
  letter-spacing: 0.8px;
  opacity: 0.85;
  margin-top: 2px;
}

.art-tape-window {
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  margin-top: auto;
}

.mini-spool {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  background: #111;
}

/* Cover Art Themes */
.cover-chrome {
  background: linear-gradient(135deg, #1b1c20 0%, #292a30 50%, #141518 100%);
}
.cover-chrome .jcard-spine { background: #131417; color: #f2c94c; }
.cover-chrome .art-title { color: #f2c94c; }
.cover-chrome .art-sub { color: #abb0be; }

.cover-lofi {
  background: linear-gradient(180deg, #191538 0%, #2f2557 55%, #47387a 100%);
}
.cover-lofi .jcard-spine { background: #120f2b; color: #ffb8da; }
.cover-lofi .art-title { color: #ffffff; text-shadow: 0 0 6px rgba(255, 184, 218, 0.7); }
.cover-lofi .art-sub { color: #d0c5f0; }
.art-moon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 30%, #ffcbe3 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 203, 227, 0.8);
}

.cover-synth {
  background: linear-gradient(180deg, #120324 0%, #260742 45%, #66105c 75%, #ff2a85 100%);
}
.cover-synth .jcard-spine { background: #0c0218; color: #00f0ff; }
.cover-synth .art-title { color: #00f0ff; text-shadow: 0 0 6px #00f0ff; }
.cover-synth .art-sub { color: #ffa2eb; }
.art-sun {
  width: 24px;
  height: 12px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: linear-gradient(180deg, #ffde59 0%, #ff1493 100%);
}

.cover-chill {
  background: linear-gradient(180deg, #091326 0%, #12244a 50%, #1e3d74 100%);
}
.cover-chill .jcard-spine { background: #060e1c; color: #82b1ff; }
.cover-chill .art-title { color: #e1f5fe; }
.cover-chill .art-sub { color: #90caf9; }
.art-city {
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(90deg, #08101e 0px, #08101e 4px, #0e1c33 4px, #0e1c33 8px);
}

.cover-gold {
  background: linear-gradient(135deg, #2b1f06 0%, #573f0e 40%, #1c1404 100%);
}
.cover-gold .jcard-spine { background: #171003; color: #ffd54f; }
.cover-gold .art-title { color: #ffd54f; }
.cover-gold .art-sub { color: #ffe082; }
.art-gold-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff59d 0%, #fbc02d 70%, #f57f17 100%);
}

/* Slot Nameplate */
.slot-plate {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: 126px;
  left: 50%;
  transform: translateX(-50%);
  height: 18px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  color: #b8b8c4;
  background: #18191f;
  border: 1px solid #32333e;
  border-radius: 2px;
  padding: 1px 3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  line-height: 15px;
}

/* ============================================================= */
/* 9.5. TEAC 450 Playlist Mixtape Track Index Drawer              */
/* ============================================================= */
.playlist-tracklist-drawer {
  background: linear-gradient(180deg, #181920 0%, #0d0e12 100%);
  border-top: 2px solid #3c3d4a;
  border-bottom: 2px solid #23242c;
  padding: 12px 20px 16px 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #282934;
  padding-bottom: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.playlist-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.playlist-deck-mark {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: #ffaa33;
}

.playlist-album-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.2px;
  color: #e2e8f0;
}

.playlist-badge {
  background: #252633;
  border: 1px solid #3d3e52;
  border-radius: 3px;
  color: #4ade80;
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 2px 8px;
}

.playlist-header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.playlist-aux-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.aux-switch-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 1px;
  color: #8c8f9f;
  font-weight: bold;
}

.bat-switch.mini-switch {
  width: 14px;
  height: 22px;
}

.bat-switch.mini-switch .switch-collar {
  width: 12px;
  height: 12px;
}

.bat-switch.mini-switch .bat-handle {
  width: 4px;
  height: 12px;
}

.playlist-close-btn {
  background: #202129;
  border: 1px solid #3e3f4e;
  border-radius: 3px;
  color: #8f92a4;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-close-btn:hover {
  background: #e53935;
  color: #fff;
  border-color: #ef5350;
}

.playlist-tracks-scroll {
  max-height: 220px;
  overflow-y: auto;
  background: #090a0d;
  border: 1px solid #23242e;
  border-radius: 4px;
  padding: 6px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.85);
}

.playlist-tracks-scroll::-webkit-scrollbar {
  width: 6px;
}

.playlist-tracks-scroll::-webkit-scrollbar-track {
  background: #101115;
}

.playlist-tracks-scroll::-webkit-scrollbar-thumb {
  background: #383a48;
  border-radius: 3px;
}

.playlist-empty-notice {
  padding: 16px;
  text-align: center;
  color: #6c6f82;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1px;
}

.playlist-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.playlist-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #121318;
  border: 1px solid #20212a;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.playlist-track-row:hover {
  background: #1c1d25;
  border-color: #ffaa33;
}

.playlist-track-row.active {
  background: linear-gradient(90deg, rgba(255, 170, 50, 0.18) 0%, rgba(20, 21, 28, 0.9) 100%);
  border-color: #ffaa33;
  box-shadow: 0 0 8px rgba(255, 170, 50, 0.2);
}

.track-index-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9.5px;
  font-weight: bold;
  color: #8f92a4;
  width: 24px;
}

.playlist-track-row.active .track-index-num {
  color: #ffaa33;
}

.track-row-title {
  flex: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.playlist-track-row.active .track-row-title {
  color: #fff;
  font-weight: bold;
}

.track-playing-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 7.5px;
  font-weight: bold;
  letter-spacing: 1px;
  background: #10b981;
  color: #000;
  padding: 1px 6px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Chassis Bottom Specs Rim */
.teac-chassis-bottom {
  background: #0d0d10;
  border-top: 1px solid #22222a;
  padding: 8px 20px;
  text-align: center;
}

.bottom-specs {
  font-size: 7.5px;
  letter-spacing: 2px;
  color: #555666;
}