/* feedback-video.css - accessible player for the ITEC feedback page only.
   Separate from niwe-video.css; uses the fb- prefix so nothing on other pages is affected. */

/* Let the player take its natural height inside the existing .video-wrapper */
.fb-video-col .video-wrapper {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  display: block !important;
}

.fb-player {
  position: relative;
  height: auto !important;
  background: #000;
  /* no overflow:hidden here, it would clip the focus ring */
}

.fb-player video {
  display: block;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.fb-player video::cue {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 16px;
}

.fb-controls {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.fb-btn {
  background: transparent;
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.fb-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.fb-seek {
  flex: 1;
  min-width: 0;
  accent-color: #ffbf00;
}

.fb-time {
  font-size: 14px;
  white-space: nowrap;
}

/* STQC FIX: clearly visible keyboard focus (yellow ring + black halo) */
.fb-btn:focus-visible,
.fb-seek:focus-visible {
  outline: 3px solid #ffbf00;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #000;
}

/* Fullscreen */
.fb-player:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}

.fb-player:fullscreen video {
  max-height: calc(100vh - 70px);
}

@media (max-width: 575px) {
  .fb-controls {
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 8px;
  }

  .fb-seek {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
    margin: 4px 0 2px;
  }

  .fb-btn {
    width: 36px;
    height: 36px;
  }

  .fb-time {
    font-size: 12px;
  }
}