.mcytv-videos-block {
    margin: 12px 0 20px;
}

.mcytv-videos-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.mcytv-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcytv-video-thumb-item {
    width: 90px;
}

.mcytv-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.mcytv-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.mcytv-video-thumb:hover img,
.mcytv-video-thumb:focus img {
    opacity: 1;
}

.mcytv-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    pointer-events: none;
}

.mcytv-play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #ffffff;
}

/* Modal */
.mcytv-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcytv-modal[hidden] {
    display: none;
}

.mcytv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.mcytv-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 1;
}

.mcytv-modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* ratio 16:9 */
    background: #000;
}

.mcytv-modal-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mcytv-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
