/* Session player simplification
   Keep runtime telemetry in the DOM for compatibility, but remove it
   from the visible player interface. */

.video-card > .meta,
.video-card > .session-stats {
  display: none !important;
}

.controls-card .controls {
  align-items: center;
}

.control-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 160px;
  padding-inline: 4px;
}

.status,
.session-timer-display,
.final-countdown {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.12);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.45);
}

.status.good {
  border-color: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.14);
}

.status.good::before {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
}

.status.warn,
.final-countdown {
  border-color: rgba(245, 158, 11, 0.34);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.16);
}

.status.warn::before {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.status.bad {
  border-color: rgba(248, 113, 113, 0.34);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.17);
}

.status.bad::before {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.45);
}

.session-timer-display {
  flex: 0 0 auto;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  min-height: 42px;
  margin-left: auto;
  padding: 9px 16px;

  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.62);

  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.session-timer-label {
  color: #aebbd0;
}

#sessionTime,
#finalCountdown {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

#sessionTime {
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.02em;
}

.theater-mode-btn[aria-pressed="true"] {
  background:
    linear-gradient(
      135deg,
      #64748b,
      #475569
    );
  box-shadow:
    inset 0 0 0 1px rgba(191, 219, 254, 0.18),
    0 8px 22px rgba(15, 23, 42, 0.24);
}

.status[hidden],
.session-timer-display[hidden],
.final-countdown[hidden] {
  display: none !important;
}

.controls-card .shortcut-help {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(100, 116, 139, 0.2);
  color: #b6c2d3 !important;
  font-size: 0.98rem !important;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .control-feedback {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    min-width: 0;
    padding-inline: 0;
  }

  .session-timer-display {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .control-feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .status,
  .session-timer-display,
  .final-countdown {
    white-space: normal;
  }

  .controls-card .shortcut-help {
    font-size: 0.94rem !important;
  }
}


/* ---------- Metronome beat runway ---------- */

.otl-metronome-visualizer {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 34px;

  display: grid;
  width: clamp(170px, 24vw, 300px);
  gap: 4px;

  color: var(--signal-color, #e2e8f0);

  pointer-events: none;
  transform: translateX(-50%);
  opacity: 0.86;
  filter:
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.78));
}

.otl-metronome-visualizer[hidden] {
  display: none !important;
}

.otl-metronome-runway {
  position: relative;

  width: 100%;
  height: 16px;
}

.otl-metronome-runway-track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;

  height: 2px;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      currentColor 28%,
      currentColor 100%
    );

  opacity: 0.36;
  transform: translateY(-50%);
}

.otl-metronome-runway-dot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;

  width: 9px;
  height: 9px;
  border-radius: 50%;

  background: currentColor;
  box-shadow:
    0 0 8px currentColor,
    0 1px 3px rgba(0, 0, 0, 0.7);

  transform:
    translate(-50%, -50%);

  will-change: left;
}

.otl-metronome-runway-dot::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 4px;

  width: 20px;
  height: 3px;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      currentColor
    );

  opacity: 0.52;
  transform: translateY(-50%);
  filter: blur(1px);
}

.otl-metronome-runway-impact {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;

  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;

  background: rgba(2, 6, 23, 0.42);
  box-shadow:
    0 0 6px currentColor,
    0 1px 3px rgba(0, 0, 0, 0.78);

  transform:
    translate(50%, -50%)
    scale(1);

  transition:
    transform 55ms ease-out,
    background-color 55ms ease-out,
    box-shadow 55ms ease-out;
}

.otl-metronome-runway-impact.is-impact {
  background: currentColor;
  box-shadow:
    0 0 11px currentColor,
    0 1px 3px rgba(0, 0, 0, 0.78);

  transform:
    translate(50%, -50%)
    scale(1.34);
}

/*
  Red remains silent and shows no timing guide.
  The internal metronome clock continues running so the
  runway can resume in sync when Green or Yellow returns.
*/
.video-shell.red
.otl-metronome-visualizer {
  display: none !important;
}

.video-shell:fullscreen
.otl-metronome-visualizer,
.video-shell:-webkit-full-screen
.otl-metronome-visualizer,
body.theater-mode
.otl-metronome-visualizer {
  bottom: 42px;
  width: clamp(190px, 26vw, 320px);
}

@media (max-width: 560px) {
  .otl-metronome-visualizer {
    bottom: 28px;
    width: clamp(150px, 44vw, 210px);
  }
}
