/* ==============================================
   YT Fullscreen Slider — ytfs.css
   Desktop only. Proporção sempre respeitada.
   ============================================== */

/* ── Wrapper externo ── */
.ytfs-slider {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* ── Track ── */
.ytfs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Slide individual ── */
.ytfs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.ytfs-slide.ytfs-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    position: relative;
}

/* ── Wrapper proporcional ──
   padding-top empurra a altura exata da proporção escolhida.
   Ex: 16:9 → 56.25%, 4:3 → 75%, 21:9 → 42.86%
   O valor vem do PHP via variável CSS --ytfs-ratio. ── */
.ytfs-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: var(--ytfs-ratio, 56.25%);
    background: #000;
    overflow: hidden;
}

/* ── Player / iframe ──
   Preenche exatamente o wrapper — sem faixas pretas. ── */
.ytfs-player,
.ytfs-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    pointer-events: none;
}

/* ── Overlay: bloqueia cliques no iframe ── */
.ytfs-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
}

/* Navegação acima do overlay */
.ytfs-dots,
.ytfs-arrow {
    z-index: 20;
}

/* ── Dots ── */
.ytfs-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.ytfs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.2s;
}

.ytfs-dot:hover {
    background: rgba(255,255,255,0.75);
    transform: scale(1.2);
}

.ytfs-dot.ytfs-dot-active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Setas ── */
.ytfs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
}

.ytfs-slider:hover .ytfs-arrow {
    opacity: 1;
}

.ytfs-arrow:hover {
    background: rgba(0,0,0,0.65);
}

.ytfs-prev { left: 14px; }
.ytfs-next { right: 14px; }
