/**
 * YouTube Featured Video - Frontend Facade CSS
 * Lightweight, zero-dependency, modern aspect-ratio
 */

.yfv-facade-wrap {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    background-color: #000000;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    user-select: none;
}

.yfv-facade-wrap.yfv-is-standard {
    aspect-ratio: 16 / 9;
}

.yfv-facade-wrap.yfv-is-short {
    aspect-ratio: 9 / 16;
    max-height: 580px;
    max-width: 326px;
    margin-left: auto;
    margin-right: auto;
}

.yfv-facade-wrap .yfv-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.yfv-facade-wrap:hover .yfv-thumb {
    transform: scale(1.02);
}

.yfv-facade-wrap .yfv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yfv-facade-wrap .yfv-play-icon {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.yfv-facade-wrap:hover .yfv-play-btn,
.yfv-facade-wrap .yfv-play-btn:focus-visible {
    transform: translate(-50%, -50%) scale(1.15);
}

.yfv-facade-wrap .yfv-play-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 12px;
}

.yfv-facade-wrap .yfv-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Single Post Content Fallback Container */
.yfv-single-featured-wrap {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 24px;
}

/* Archive / Front Page Listing Play Badge Overlay */
.yfv-archive-badge-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.yfv-archive-badge-wrap img,
.yfv-archive-badge-wrap .wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.yfv-archive-badge-wrap:hover img {
    transform: scale(1.03);
}

.yfv-archive-play-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yfv-archive-badge-wrap:hover .yfv-archive-play-badge {
    transform: scale(1.12);
    background: rgba(0, 0, 0, 0.88);
}

.yfv-badge-icon {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
