/* Player de vídeo acessível com controles em Português
   (adaptado do cf-player.css do PcD na Escola: iframe → video;
   recolorido para o tema "Festa vibrante quente") */
.cf-player {
  position: relative;
}

.cf-player video {
  pointer-events: auto;
}

/* Barra de controles */
.cf-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #3D0F33;
  flex-wrap: nowrap;
}

/* Botões */
.cf-controls button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
}

.cf-controls button:hover,
.cf-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid #FFC53D;
  outline-offset: 1px;
}

.cf-controls button:focus:not(:focus-visible) {
  outline: none;
}

.cf-controls button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Barra de progresso */
.cf-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 60px;
}

.cf-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  outline: none;
}

.cf-progress:focus-visible {
  outline: 2px solid #FFC53D;
  outline-offset: 2px;
}

.cf-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FFC53D;
  cursor: pointer;
}

.cf-progress::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FFC53D;
  border: none;
  cursor: pointer;
}

/* Tempo */
.cf-time {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

/* Overlay de play grande */
.cf-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.cf-play-overlay button {
  pointer-events: auto;
  background: rgba(61, 15, 51, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.cf-play-overlay button:hover,
.cf-play-overlay button:focus-visible {
  background: rgba(61, 15, 51, 0.9);
  transform: scale(1.1);
  outline: 2px solid #FFC53D;
  outline-offset: 2px;
}

.cf-play-overlay button:focus:not(:focus-visible) {
  outline: none;
}

.cf-play-overlay button svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-left: 4px;
}

.cf-play-overlay[hidden] {
  display: none;
}

/* Tela cheia: o vídeo ocupa tudo, controles fixos embaixo */
.cf-player:fullscreen {
  display: flex;
  flex-direction: column;
  background: #000;
}

.cf-player:fullscreen .video-wrap {
  flex: 1;
  aspect-ratio: auto !important;
}

.cf-player:fullscreen .video-wrap video {
  object-fit: contain;
}

/* Responsivo */
@media (max-width: 576px) {
  .cf-controls {
    gap: 4px;
    padding: 6px 8px;
  }

  .cf-time {
    font-size: 0.7rem;
    min-width: 65px;
  }

  .cf-controls button {
    min-width: 36px;
    min-height: 36px;
  }
}
