/* ==============================================================
   VIRTUAL IT ASSISTANT — IT SUPPORT HERO MATCHED VIDEO FORMAT
   File: audiocontroller.css
   ============================================================== */

/* ===== GLOBAL FULL-PAGE GRID BACKGROUND ===== */
.azmi-global-grid {
  position: fixed;
  inset: 0;
  z-index: -1; /* stays behind everything */
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px),
    radial-gradient(1100px 70% at 15% -10%, #16243d 0%, #0f182b 55%, #0c1320 100%);
  animation: azmiGridDrift 240s linear infinite;
  pointer-events: none;
}
@keyframes azmiGridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 500px 300px, 300px 200px, 0 0; }
}

/* ===== FRAME ===== */
.va-frame {
  --frame-h: clamp(360px, 42vh, 460px);
  position: relative;
  width: 100%;
  height: var(--frame-h);
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1726;
  border: 1px solid #22314c;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

/* Video fill */
.va-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Decorative corners */
.va-frame:before,
.va-frame:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #6fb8ff;
  opacity: 0.45;
}
.va-frame:before {
  left: 10px;
  top: 10px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}
.va-frame:after {
  right: 10px;
  bottom: 10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

/* Badge (top-left label) */
.va-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(32, 114, 196, 0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 9999px;
  z-index: 5; /* above overlay */
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== OVERLAY BUTTON (Play with Sound) ===== */
.va-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.55));
  z-index: 4;
}
.va-overlay .va-btn {
  margin-top: 40px; /* ensures not colliding with badge */
}

/* ===== CONTROLS BAR ===== */
.va-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 28, 0) 0%,
    rgba(10, 16, 28, 0.55) 40%,
    rgba(10, 16, 28, 0.8) 100%
  );
  backdrop-filter: blur(3px);
  z-index: 3;
  flex-wrap: wrap;
}

/* Buttons */
.va-btn {
  background: #1a2a48;
  color: #fff;
  border: 1px solid #395083;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.va-btn:hover {
  background: #00ace6;
  color: #0c1320;
}

/* ===== VOLUME SLIDER ===== */
.va-vol {
  appearance: none;
  width: 100px;
  height: 8px;
  background: rgba(57, 80, 131, 0.35);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}
.va-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #1a2a48;
}
.va-vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #1a2a48;
}

/* ===== SEEK BAR ===== */
.va-seek {
  width: 140px;
  height: 8px;
  background: rgba(57, 80, 131, 0.35);
  border-radius: 9999px;
  cursor: pointer;
}
.va-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #1a2a48;
}
.va-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #1a2a48;
}

/* ===== TIME LABEL ===== */
.va-time {
  color: #e8edf4;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .va-frame {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }
}
