/* ── Mondo Shorts ── */

.ms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.ms-titulo {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-yt-icon {
    display: flex;
    align-items: center;
}

.ms-ver-todos {
    font-size: 0.875rem;
    font-weight: 600;
    color: #CD212A;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.ms-ver-todos:hover { opacity: 0.75; }

/* ── Grid ── */
.ms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1024px) {
    .ms-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .ms-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .ms-grid::-webkit-scrollbar { display: none; }
}

/* ── Card ── */
.ms-card {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
    flex: 0 0 140px; /* mobile scroll */
}
.ms-card:hover { transform: scale(1.03); }

.ms-thumb-wrap {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.ms-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.2s;
}
.ms-card:hover .ms-play-overlay,
.ms-card:focus .ms-play-overlay { opacity: 1; }

.ms-card-title {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 6px 2px 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Modal ── */
.ms-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.ms-modal.is-open { display: flex; }

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

.ms-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 0 16px;
}

.ms-modal-close {
    position: absolute;
    top: -40px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.ms-modal-iframe-wrap {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    max-height: 80vh;
}

.ms-modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}
