/* rk-overlay.css (HUD Overlay – Clean UI, Full Video Controls Preserved) */

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #00f6ff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
}

/* Front video only gets full-screen width/height */
#front-video {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #000;
  object-fit: cover;
  z-index: 1;
}

/* Generic video fallback styling */
video {
  background-color: #000;
}

/* Rear video as PiP */
#rear-video {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 25%;
  aspect-ratio: 16 / 9;
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  background-color: #000;
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
}

/* HUD Overlay */
.hud-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.cluster {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.3);
}

/* Speed section */
.speed {
  text-align: center;
  min-width: 100px;
}

.speed .label {
  font-size: 0.9rem;
  opacity: 0.7;
}

#speed-value {
  font-size: 3.2rem;
  font-weight: bold;
  color: #00f6ff;
}

.speed .unit {
  font-size: 1rem;
  margin-top: -6px;
}

/* RPM display */
.rpm {
  width: 120px;
  height: 70px;
  position: relative;
}

.rpm svg {
  width: 100%;
  height: 100%;
}

#rpm-value {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #00f6ff;
  text-align: center;
}

/* Extra telemetry info */
.telemetry-extra {
  font-size: 0.95rem;
  line-height: 1.6;
  min-width: 150px;
}

.telemetry-extra div {
  margin-bottom: 4px;
}