/* ML-03 ZAPPING — 2D/2.5D Testrahmen, cleanes Chrome */

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

html, body {
  height: 100%;
  background: #040404;
  color: #b8b8b8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* —— Monitor-Körper (2.5D) —— */
.monitor {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(4deg);
}

.monitor-bezel {
  position: relative;
  padding: clamp(14px, 2.2vw, 28px) clamp(16px, 2.5vw, 32px) clamp(20px, 3vw, 36px);
  background: linear-gradient(165deg, #1e1e1e 0%, #111 45%, #0a0a0a 100%);
  border-radius: 6px 6px 4px 4px;
  box-shadow:
    0 2px 0 #2a2a2a inset,
    0 -1px 0 #080808 inset,
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.monitor-bezel::before {
  content: "";
  position: absolute;
  inset: 8px 10px auto;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.03) 3px 4px
  );
  border-radius: 2px;
  pointer-events: none;
}

.monitor-brand {
  position: absolute;
  bottom: clamp(6px, 1vw, 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.14);
  text-transform: uppercase;
  pointer-events: none;
}

.monitor-stand {
  width: 42%;
  height: clamp(10px, 1.6vw, 16px);
  margin: 0 auto;
  background: linear-gradient(180deg, #141414, #0c0c0c);
  transform: translateZ(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.monitor-base {
  width: 58%;
  height: 5px;
  margin: 0 auto;
  background: #0e0e0e;
  border-radius: 0 0 3px 3px;
  transform: translateZ(-6px) translateY(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* —— Screen (Werk = heilig, kein Dauer-Effekt) —— */
.screen-wrap {
  position: relative;
  width: min(78vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #000,
    0 0 40px rgba(0, 0, 0, 0.9) inset;
}

.screen-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 85% at 50% 48%, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 2;
}

.screen-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.screen-glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.screen-glitch.active {
  opacity: 1;
}

/* —— Chrome / HUD —— */
.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.osd-channel {
  position: absolute;
  top: clamp(16px, 3vh, 28px);
  right: clamp(16px, 3vw, 28px);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.12em;
  color: rgba(220, 220, 220, 0.88);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 70ms steps(2);
}

.osd-channel.visible {
  opacity: 1;
}

.osd-channel.searching {
  animation: osd-flicker 80ms steps(2) infinite;
}

@keyframes osd-flicker {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.hud-top {
  position: absolute;
  top: clamp(16px, 3vh, 28px);
  left: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-channel-label {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.38);
}

.hud-work-title {
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-hint {
  position: absolute;
  bottom: clamp(16px, 3vh, 28px);
  left: clamp(16px, 3vw, 28px);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.7;
}

.telemetry {
  position: absolute;
  bottom: clamp(16px, 3vh, 28px);
  right: clamp(16px, 3vw, 28px);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.16);
  text-align: right;
}

/* —— A11y —— */
.sr-works {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .monitor { transform: none; }
  .osd-channel.searching { animation: none; opacity: 0.7; }
}
