/* A local poster is the entire initial player. YouTube is created on Play only. */
.yi-youtube-preview {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    overflow: hidden;
    border-radius: 14px;
    background: #173c56;
}
.yi-youtube-play {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    color: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.yi-youtube-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.yi-youtube-poster {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.yi-youtube-poster[hidden] { display: none; }
.yi-youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 72px;
    height: 51px;
    border-radius: 14px;
    background: #df2424;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .2);
    pointer-events: none;
}
.yi-youtube-play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #fff;
}
@media (hover: hover) {
    .yi-youtube-play:hover .yi-youtube-play-icon { background: #c81717; }
}
.yi-youtube-preview > .yi-youtube-frame,
.customer-page-content .customer-video-section .video-wrapper-customer .yi-youtube-preview > .yi-youtube-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: inherit;
}
.customer-intro-media .yi-youtube-preview { height: 100%; border-radius: 0; }
.yi-youtube-preview noscript { position: absolute; bottom: 12px; left: 12px; right: 12px; text-align: center; }
.yi-youtube-preview noscript a { display: inline-block; padding: 10px 16px; color: #173c56; background: #fff; border-radius: 8px; }
