/* ══════════════════════════════════════════
   LATEST VIDEOS GRID
══════════════════════════════════════════ */

.mrlv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    font-family: var(--mr-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}
/* Allow shortcode to control column count */
.mrlv-grid[data-cols="1"] { grid-template-columns: 1fr; max-width: 480px; }
.mrlv-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.mrlv-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

/* ── Card ───────────────────────────────── */
.mrlv-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.08), 0 0.5px 2px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
}

/* ── Thumbnail hero ─────────────────────── */
.mrlv-thumb-wrap {
    position: relative;
    cursor: pointer;
    background: #1a1208;
    overflow: hidden;
}

.mrlv-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: .85;
    transition: opacity .2s;
}
.mrlv-thumb-wrap:hover .mrlv-thumb { opacity: .75; }

.mrlv-thumb-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2a1f0e 0%, #1a1208 100%);
}

.mrlv-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,8,5,.05) 0%,
        rgba(10,8,5,.02) 35%,
        rgba(10,8,5,.52) 70%,
        rgba(10,8,5,.82) 100%
    );
    pointer-events: none;
}

/* Play button — appears on hover */
.mrlv-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.85);
    opacity: 0;
    width: 48px; height: 48px;
    background: rgba(255,255,255,.9);
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #1a1208;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    transition: opacity .18s, transform .18s;
    padding: 0; margin: 0;
}
.mrlv-play-btn svg { margin-left: 2px; }
.mrlv-thumb-wrap:hover .mrlv-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Artist + meta overlay — bottom of thumbnail */
.mrlv-card-overlay-info {
    position: absolute;
    bottom: 14px; left: 16px; right: 16px;
    pointer-events: none;
}
.mrlv-artist {
    font-family: var(--mr-serif, Georgia, serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 5px rgba(0,0,0,.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mrlv-meta {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    margin-top: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ── Inline player (replaces thumbnail) ─── */
.mrlv-player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.mrlv-player-wrap iframe {
    display: block;
    width: 100%; height: 100%;
    border: 0;
}

/* ── Card body ──────────────────────────── */
.mrlv-card-body {
    padding: 12px 16px 14px;
    flex: 1;
    border-top: 1px solid rgba(0,0,0,.06);
}

.mrlv-tags {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8c7f71;
    margin-bottom: 6px;
}

.mrlv-ragas {
    font-family: var(--mr-serif, Georgia, serif);
    font-size: .95rem;
    color: #1a1512;
    line-height: 1.4;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .mrlv-grid,
    .mrlv-grid[data-cols="3"],
    .mrlv-grid[data-cols="4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .mrlv-grid,
    .mrlv-grid[data-cols="2"],
    .mrlv-grid[data-cols="3"],
    .mrlv-grid[data-cols="4"] {
        grid-template-columns: 1fr;
    }
    .mrlv-artist { font-size: .95rem; }
}
