.mmp-wrap {
    --mmp-bg: #0b0f14;
    --mmp-panel: rgba(255, 255, 255, 0.075);
    --mmp-panel-hover: rgba(255, 255, 255, 0.12);
    --mmp-border: rgba(255, 255, 255, 0.12);
    --mmp-text: #ffffff;
    --mmp-muted: rgba(255, 255, 255, 0.68);
    --mmp-accent: #1ed760;
    background: radial-gradient(circle at top left, rgba(30, 215, 96, 0.22), transparent 32%), linear-gradient(135deg, #080b10 0%, #111827 100%);
    color: var(--mmp-text);
    border-radius: 30px;
    padding: clamp(24px, 4vw, 46px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.mmp-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.mmp-kicker {
    margin: 0 0 8px;
    color: var(--mmp-accent) !important;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 800;
}

.mmp-header h2 {
    color: var(--mmp-text) !important;
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.mmp-header p:not(.mmp-kicker) {
    margin: 12px 0 0;
    color: var(--mmp-muted) !important;
    font-size: 16px;
}

.mmp-grid {
    display: grid;
    grid-template-columns: repeat(var(--mmp-columns), minmax(0, 1fr));
    gap: 18px;
}

.mmp-card {
    position: relative;
    border: 1px solid var(--mmp-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055));
    padding: 12px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
    backdrop-filter: blur(18px);
}

.mmp-card:hover {
    transform: translateY(-4px);
    background: var(--mmp-panel-hover);
    border-color: rgba(30, 215, 96, 0.42);
}

.mmp-artwork {
    position: relative;
    /* Use a landscape preview area so featured images/video stills fit naturally instead of being forced into a square. */
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.mmp-artwork img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform .3s ease;
}

.mmp-card:hover .mmp-artwork img { transform: scale(1.045); }

.mmp-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: var(--mmp-accent);
    box-shadow: 0 14px 35px rgba(30, 215, 96, 0.38);
    cursor: pointer;
    transform: translateY(8px);
    opacity: .96;
    transition: transform .22s ease, opacity .22s ease;
}

.mmp-card:hover .mmp-play { transform: translateY(0); opacity: 1; }

.mmp-play span {
    display: block;
    margin: auto;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #051008;
    transform: translateX(2px);
}

.mmp-card.is-playing .mmp-play span {
    width: 16px;
    height: 18px;
    border: 0;
    border-left: 5px solid #051008;
    border-right: 5px solid #051008;
    transform: none;
}

.mmp-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.mmp-content { padding: 16px 4px 4px; }

.mmp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.mmp-title-row h3 {
    margin: 0;
    color: var(--mmp-text) !important;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mmp-title-row p,
.mmp-desc,
.mmp-duration,
.mmp-missing {
    color: var(--mmp-muted) !important;
}

.mmp-title-row p { margin: 5px 0 0; font-size: 14px; }
.mmp-duration { flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.mmp-desc { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.mmp-missing { font-size: 13px; margin: 12px 0 0; }

.mmp-player { margin-top: 14px; }
.mmp-player audio,
.mmp-player video { width: 100%; display: block; border-radius: 14px; }
.mmp-player video { aspect-ratio: 16 / 9; background: #000; }
.mmp-player audio { height: 38px; }

.mmp-empty {
    border: 1px dashed var(--mmp-border);
    border-radius: 18px;
    padding: 28px;
    color: var(--mmp-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .mmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .mmp-wrap { border-radius: 22px; padding: 20px; }
    .mmp-grid { grid-template-columns: 1fr; }
    .mmp-header h2 { font-size: 34px; }
}

/* v1.0.4 refinements */
.mmp-no-thumb .mmp-artwork {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101820;
}

.mmp-no-thumb .mmp-artwork img {
    object-fit: contain;
    object-position: center center;
    transform: none !important;
}

.mmp-video-preview {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.mmp-video-preview video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.mmp-type-video .mmp-content {
    padding-top: 14px;
}
