/* ================================================
   EPV YouTube Facade — Styles v1.0.0
   Cinematic, premium look. Zero dependencies.
   ================================================ */

.epv-ytf-wrap,
.epv-ytf-wrap * {
    box-sizing: border-box;
}

/* ── Container / proporções ── */
.epv-ytf-wrap {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #000;
    /* sombra elegante */
    box-shadow:
        0 2px 4px rgba(0,0,0,.12),
        0 8px 24px rgba(0,0,0,.18),
        0 20px 48px rgba(0,0,0,.1);
    transition: box-shadow .3s ease, transform .3s ease;
}

.epv-ytf-wrap:hover,
.epv-ytf-wrap:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(0,0,0,.14),
        0 16px 40px rgba(0,0,0,.22),
        0 32px 64px rgba(0,0,0,.14);
}

/* Ratios via padding-bottom */
.epv-ytf-ratio-16x9 { padding-bottom: 56.25%; }
.epv-ytf-ratio-4x3  { padding-bottom: 75%; }
.epv-ytf-ratio-1x1  { padding-bottom: 100%; }

/* ── Thumbnail ── */
.epv-ytf-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94),
                filter .4s ease;
    filter: brightness(.92) saturate(1.05);
    /* Remove as barras pretas do hqdefault */
    object-position: center;
}

.epv-ytf-wrap:hover .epv-ytf-thumb,
.epv-ytf-wrap:focus .epv-ytf-thumb {
    transform: scale(1.03);
    filter: brightness(1) saturate(1.1);
}

/* ── Overlay gradiente ── */
.epv-ytf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0,0,0,.55) 100%
    );
    transition: opacity .3s ease;
    pointer-events: none;
}

/* ── Botão Play ── */
.epv-ytf-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 50px;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1),
                filter .25s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
    pointer-events: none;
}

.epv-ytf-wrap:hover .epv-ytf-btn,
.epv-ytf-wrap:focus .epv-ytf-btn {
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.6));
}

/* O ícone SVG do YouTube */
.epv-ytf-btn svg {
    width: 100%;
    height: 100%;
}

.epv-ytf-btn-bg {
    fill: #ff0000;
    transition: fill .2s ease;
}

.epv-ytf-btn-play {
    fill: #fff;
}

.epv-ytf-wrap:hover .epv-ytf-btn-bg,
.epv-ytf-wrap:focus .epv-ytf-btn-bg {
    fill: #cc0000;
}

/* ── Meta (título + label) ── */
.epv-ytf-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}

.epv-ytf-title {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

.epv-ytf-label {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    letter-spacing: .02em;
}

/* ── Estado: reproduzindo ── */
.epv-ytf-wrap.epv-ytf-active {
    padding-bottom: 56.25%; /* fallback */
}

.epv-ytf-wrap.epv-ytf-active .epv-ytf-thumb,
.epv-ytf-wrap.epv-ytf-active .epv-ytf-overlay,
.epv-ytf-wrap.epv-ytf-active .epv-ytf-btn,
.epv-ytf-wrap.epv-ytf-active .epv-ytf-meta {
    display: none !important;
}

.epv-ytf-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: #000;
}

/* ── Responsivo ── */
@media (max-width: 480px) {
    .epv-ytf-btn {
        width: 56px;
        height: 40px;
    }
    .epv-ytf-title { font-size: 13px; }
}
