/* ==========================================================================
   AUTHENTIC VINTAGE CRT TV DUAL-MONITOR 3D CONVEYOR
   Exact photographic bezel match from reference image with curved CRT video portal
   ========================================================================== */

.vintage-tv-deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  overflow: visible;
}

.vintage-tv-chassis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 88vw);
  aspect-ratio: 734 / 498;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  border-radius: 14px;
  display: block !important;
  box-sizing: border-box !important;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.95), 
    0 0 50px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  will-change: transform, opacity, filter;
  transition: filter 0.3s ease, border-color 0.3s ease;
  background: #0d0c0b;
}

.vintage-tv-chassis:active {
  cursor: grabbing;
}

/* Authentic Photographic Vintage TV Bezel Overlay */
.tv-bezel-frame-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.tv-bezel-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  display: block !important;
  pointer-events: none !important;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
}

/* Inner CRT Screen Aperture matching exact photographic hole coordinates */
.tv-screen-portal {
  position: absolute !important;
  left: 8.04% !important;
  top: 12.25% !important;
  width: 64.85% !important;
  height: 69.08% !important;
  background: #000 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  z-index: 4 !important;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.95), inset 0 0 8px rgba(0, 0, 0, 1);
}

.tv-screen-portal video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* CRT Scanlines and Curved Phosphor Glare */
.tv-crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0.26) 2px,
    rgba(0, 0, 0, 0) 4px
  );
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
}

.tv-crt-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 6;
  border-radius: inherit;
}

.tv-clip-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #fafafa;
  background: rgba(0, 0, 0, 0.72);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 8;
  backdrop-filter: blur(4px);
}

/* Bottom Hardware Audio Toggle */
.tv-hardware-hud {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 15;
}

.tv-sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fafafa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.tv-sound-toggle-btn:hover {
  background: rgba(39, 39, 42, 0.95);
  border-color: #a1a1aa;
}

.tv-sound-toggle-btn.is-active {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

/* Conveyor Stepper Dots */
.game-conveyor-stepper {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 18, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.stepper-dot {
  background: transparent;
  border: none;
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.stepper-dot:hover {
  color: #fafafa;
}

.stepper-dot.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.stepper-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
  .vintage-tv-chassis {
    width: 92vw;
  }
  .tv-clip-tag {
    font-size: 0.55rem;
    padding: 2px 5px;
  }
  .game-conveyor-stepper {
    bottom: -40px;
    padding: 4px 10px;
  }
}
