/**
 * 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;
}

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

.yfv-archive-badge-wrap img {
    display: block;
    width: 100%;
}

.yfv-archive-play-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.yfv-archive-play-badge svg {
    margin-left: 2px;
}
