.ms-yt-thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 860px;
    margin: 28px auto;
    padding: 0;
    border: 0;
    background: #110616;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 28px rgba(55, 14, 75, 0.18);
}
.ms-yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.ms-yt-thumb:hover img,
.ms-yt-thumb:focus-visible img {
    transform: scale(1.03);
    filter: brightness(0.78);
}
.ms-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    height: 78px;
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(55, 14, 75, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.ms-yt-play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    fill: #fff;
}
.ms-yt-thumb:hover .ms-yt-play,
.ms-yt-thumb:focus-visible .ms-yt-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #76b13e;
}
.ms-yt-thumb:focus-visible {
    outline: 3px solid #76b13e;
    outline-offset: 4px;
}

.ms-yt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ms-yt-modal.is-open {
    display: flex;
}
.ms-yt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 6, 22, 0.82);
}
.ms-yt-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ms-yt-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.ms-yt-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ms-yt-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #370e4b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.ms-yt-modal-close:hover,
.ms-yt-modal-close:focus-visible {
    background: #76b13e;
    color: #fff;
}
body.ms-yt-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .ms-yt-play {
        width: 64px;
        height: 64px;
    }
    .ms-yt-modal-close {
        top: 8px;
        right: 8px;
    }
}
