/* Bloco */
.video-player {
    position: relative;
    display: inline-block;
    line-height: 0;
    user-select: none;
    overflow: hidden;
    width: 100%;
}

/* Elementos */
.video-player__media {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
    position: relative;
    z-index: 1;
}

/* Overlay central (usa flex p/ centralizar) */
.video-player__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* só o botão recebe cliques */
    transition: opacity .25s ease;
}

/* Botão principal */
.video-player__btn {
    pointer-events: auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, .55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, opacity .2s ease;
    z-index: 1;
}

.video-player__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.video-player__btn:hover {
    transform: scale(1.04);
    cursor: pointer;
}

/* Ícone de play (triângulo) */
.video-player__icon {
    position: relative;
    width: 0;
    height: 0;
    border-left: 28px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    margin-left: 4px;
    /* leve compensação visual */
}

/* Modificadores */
.video-player__btn--hidden {
    opacity: 0;
    pointer-events: none;
}

.video-player--loading .video-player__btn {
    opacity: .6;
    cursor: progress;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Barra de progresso fixada no rodapé do player */
.video-player__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 12px;
    width: 100%;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
    transition: all ease-in-out .1s;
}

/* buffer (quanto já está carregado) */
.video-player__progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, .28);
}

/* preenchimento do tempo corrente */
.video-player__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width .1s linear;
}

/* estado de loading: barra fica translúcida */
.video-player--loading .video-player__progress {
    opacity: .6;
    cursor: progress;
}

/* opcional: ao passar o mouse, aumenta um pouco a altura */
.video-player__progress:hover {
    height: 20px;
}

/* Botão de tela cheia (canto superior direito) */
.video-player__fs-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    /* width: 40px; */
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, .55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    color: white;
}

.video-player__fs-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Ícone "expand" / "collapse" com CSS puro */
.video-player__fs-btn::before {
    content: "";
    display: block;
    width: 25px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 3px;
    margin-right: 5px;
}

/* Quando estiver em fullscreen, mostramos um "X" simples */
.video-player--fs > .video-player__media {
    top: 50%;
    transform: translateY(-50%);
}

.video-player--fs .video-player__fs-btn::before {
    content: "✕";
    font-size: 18px;
    line-height: 18px;
    width: auto;
    height: auto;
    border: none;
    color: #fff;
}

/* Em fullscreen, podemos aumentar o padding da barra para evitar toques acidentais */
.video-player--fs .video-player__progress {
    height: 16px;
}