/* ==========================================================================
   MULTIMEDIA SECTION (BALANCED 3x2 DRIBBLE BENTO GRID · 6 MEDIA TYPES)
   Types: Video, Photo Gallery, Podcast, Mega Story, Infographic, Short Videos
   ========================================================================== */

/* Outer Section - Always Dark Theme */
.multimedia-section {
    --bg-primary: #0d0c22;
    --bg-secondary: #16152b;
    --bg-secondary-alt: #1e1d35;
    --bg-card: rgba(24, 23, 40, 0.82);
    --bg-card-hover: #26253e;
    --text-primary: #f3f3f4;
    --text-secondary: #9e9ea7;
    --text-muted: #6e6d7a;
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-active: rgba(234, 76, 137, 0.55);
    --card-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 28px rgba(234, 76, 137, 0.16);
    width: 100%;
    padding: 32px 0;
    background-color: #0d0c22;
    background-image: radial-gradient(circle at 50% 15%, #18162e 0%, #0d0c22 65%, #080718 100%);
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    position: relative;
    overflow: hidden;
    color-scheme: dark;
}

    /* Ambient glow in background for Dribbble depth */
    .multimedia-section::before {
        content: "";
        position: absolute;
        top: -150px;
        right: 10%;
        width: 550px;
        height: 550px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(234, 76, 137, 0.14) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .multimedia-section::after {
        content: "";
        position: absolute;
        bottom: -100px;
        left: 5%;
        width: 450px;
        height: 450px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

.multimedia-container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Section Header & Dribbble Filter Pills Bar
   ========================================================================== */
.multimedia-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.multimedia-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pink);
    background: rgba(234, 76, 137, 0.1);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    border: 1px solid rgba(234, 76, 137, 0.2);
}

    .multimedia-tag-pill svg {
        width: 13px;
        height: 13px;
    }

.multimedia-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 12px;
}

.multimedia-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
}

/* Filter Pills Bar */
.multimedia-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(24, 23, 40, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.mm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    position: relative;
}

    .mm-filter-btn svg {
        width: 15px;
        height: 15px;
        transition: transform 0.25s ease;
    }

    .mm-filter-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

        .mm-filter-btn:hover svg {
            transform: scale(1.15);
        }

    .mm-filter-btn.active {
        color: #ffffff;
        background: var(--pink);
        box-shadow: 0 4px 16px rgba(234, 76, 137, 0.4);
    }

.mm-filter-badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-weight: 700;
}

.mm-filter-btn.active .mm-filter-badge {
    background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Multimedia Grid: 2 Columns for All (4 Cards 2x2) / 3 Columns for Type (6 Cards 3x2)
   ========================================================================== */
.multimedia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    /* 3 columns x 2 rows when filtering by specific media type */
    .multimedia-grid.is-grid-type {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

/* Load More / Explore All Link Button below Grid */
.mm-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 42px;
    width: 100%;
    animation: mmFadeInUp 0.35s ease forwards;
}

    .mm-load-more-wrap.is-hidden {
        display: none !important;
    }

.mm-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 36px;
    background: rgba(24, 23, 40, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .mm-load-more-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(234, 76, 137, 0.12), rgba(255, 107, 107, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mm-load-more-btn:hover {
        color: var(--pink);
        border-color: var(--pink);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(234, 76, 137, 0.32);
    }

        .mm-load-more-btn:hover::before {
            opacity: 1;
        }

    .mm-load-more-btn svg {
        width: 17px;
        height: 17px;
        transition: transform 0.3s ease;
    }

    .mm-load-more-btn:hover svg {
        transform: translateX(4px);
    }

@keyframes mmFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Media Card Styling */
.mm-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .mm-card:hover {
        transform: translateY(-6px);
        border-color: var(--border-active);
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45), 0 0 24px rgba(234, 76, 137, 0.14);
    }

    .mm-card.is-hidden {
        display: none !important;
    }

/* Common Media Viewport (All 16:10 for Perfect Horizontal Baseline) */
.mm-media-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f0e1c;
}

.mm-media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.mm-card:hover .mm-media-thumb {
    transform: scale(1.06);
}

/* Dark atmospheric gradient scrim */
.mm-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(13, 12, 24, 0.4) 0%, transparent 45%, rgba(13, 12, 24, 0.8) 100% );
    pointer-events: none;
}

/* Viewport Badges */
.mm-viewport-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(13, 12, 24, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

    .mm-viewport-badge svg {
        width: 12px;
        height: 12px;
    }

    .mm-viewport-badge.accent-pink {
        border-color: rgba(234, 76, 137, 0.4);
        color: #ffa4c5;
    }

    .mm-viewport-badge.accent-orange {
        border-color: rgba(255, 152, 0, 0.4);
        color: #ffb74d;
    }

    .mm-viewport-badge.accent-green {
        border-color: rgba(16, 185, 129, 0.4);
        color: #6ee7b7;
    }

.mm-viewport-pill-right {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(13, 12, 24, 0.75);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

/* Center Glowing Play Button */
.mm-glow-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(234, 76, 137, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(234, 76, 137, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

    .mm-glow-play-btn svg {
        width: 22px;
        height: 22px;
        margin-left: 3px;
    }

.mm-card:hover .mm-glow-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--pink);
    box-shadow: 0 0 0 10px rgba(234, 76, 137, 0.25), 0 10px 30px rgba(234, 76, 137, 0.5);
}

/* Card Body */
.mm-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mm-card-category {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .mm-card-category svg {
        width: 13px;
        height: 13px;
    }

.mm-card-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.mm-card:hover .mm-card-title {
    color: var(--pink);
}

.mm-card-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Card Footer / Action Link */
.mm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.mm-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--pink);
    text-decoration: none;
    transition: transform 0.2s ease;
}

    .mm-action-link svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s ease;
    }

.mm-card:hover .mm-action-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   SPECIFIC STYLES FOR EACH OF THE 6 MEDIA TYPES
   ========================================================================== */

/* 1. VIDEO CARD */
.mm-video-card .mm-media-viewport {
    cursor: pointer;
}

.mm-video-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    color: #ffffff;
}

.mm-timeline-progress {
    flex-grow: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.mm-timeline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: var(--pink);
    border-radius: 3px;
}

.mm-video-duration {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}

.mm-sound-eq {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.mm-sound-bar {
    width: 2.5px;
    background: var(--pink);
    border-radius: 2px;
    animation: eqPulse 1.2s infinite ease-in-out alternate;
}

    .mm-sound-bar:nth-child(1) {
        height: 5px;
        animation-delay: 0.1s;
    }

    .mm-sound-bar:nth-child(2) {
        height: 12px;
        animation-delay: 0.3s;
    }

    .mm-sound-bar:nth-child(3) {
        height: 8px;
        animation-delay: 0.2s;
    }

    .mm-sound-bar:nth-child(4) {
        height: 14px;
        animation-delay: 0.4s;
    }

@keyframes eqPulse {
    0% {
        height: 4px;
    }

    100% {
        height: 14px;
    }
}

/* 2. PHOTO GALLERY CARD */
.mm-photo-card .mm-media-viewport {
    cursor: pointer;
}

.mm-photo-lens-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
}

.mm-photo-card:hover .mm-photo-lens-btn {
    transform: scale(1.1);
    background: var(--pink);
    border-color: var(--pink);
}

/* 3. PODCAST CARD */
.mm-podcast-deck {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #131224 0%, #1e1b38 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    position: relative;
}

.mm-podcast-disc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.mm-podcast-vinyl {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(234, 76, 137, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

    .mm-podcast-vinyl img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.mm-podcast-card:hover .mm-podcast-vinyl img {
    transform: rotate(35deg) scale(1.08);
}

.mm-podcast-vinyl::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #131224;
    border: 2px solid #ffffff;
}

.mm-podcast-vinyl-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mm-podcast-vinyl-ep {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
}

.mm-podcast-vinyl-guest {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Waveform inside Podcast Card */
.mm-compact-waveform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    height: 36px;
    margin: 6px 0;
    z-index: 2;
}

.mm-wave-bar {
    flex: 1;
    background: rgba(234, 76, 137, 0.3);
    border-radius: 999px;
    transition: height 0.2s ease, background 0.2s ease;
}

    .mm-wave-bar.active {
        background: var(--pink);
    }

/* Podcast Bottom Controls Bar */
.mm-podcast-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}

.mm-podcast-scrub-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.mm-podcast-scrub-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 42%;
    background: linear-gradient(90deg, var(--pink), #ff9800);
    border-radius: 4px;
}

.mm-podcast-timer {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
}

.mm-podcast-play-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pink);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 76, 137, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .mm-podcast-play-circle:hover {
        transform: scale(1.08);
        background: #f06292;
    }

/* 4. MEGA STORY CARD (LONG FORM) */
.mm-megastory-card .mm-media-viewport {
    cursor: pointer;
}

.mm-read-time-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(13, 12, 24, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* 5. INFOGRAPHIC CARD */
.mm-infographic-deck {
    width: 100%;
    height: 100%;
    background: #090916;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .mm-infographic-deck::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.15) 0%, transparent 60%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 100% 100%, 18px 18px, 18px 18px;
        pointer-events: none;
    }

.mm-info-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.mm-stat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.mm-infographic-card:hover .mm-stat-box {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mm-stat-num {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

    .mm-stat-num.c-green {
        color: #10b981;
    }

    .mm-stat-num.c-pink {
        color: var(--pink);
    }

    .mm-stat-num.c-orange {
        color: #ff9800;
    }

.mm-stat-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   6. SHORT VIDEOS CARD (VERTICAL FULL-HEIGHT REEL WITH GRADIENT OVERLAY)
   ========================================================================== */
.mm-shortvideo-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0b0a16;
    border-color: rgba(234, 76, 137, 0.25);
    border-radius: 22px;
}

    .mm-shortvideo-card:hover {
        border-color: rgba(234, 76, 137, 0.65);
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45), 0 0 28px rgba(234, 76, 137, 0.25);
    }

.mm-shortvideo-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Full-height vertical video thumbnail */
.mm-shortvideo-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    z-index: 1;
}

.mm-shortvideo-card:hover .mm-shortvideo-thumb {
    transform: scale(1.08);
    filter: brightness(0.92);
}

/* Dark gradient overlay scrim (like short-videos section above) */
.mm-shortvideo-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(10, 9, 22, 0.45) 0%, rgba(10, 9, 22, 0.1) 25%, rgba(10, 9, 22, 0.65) 55%, rgba(10, 9, 22, 0.94) 85%, #0a0916 100% );
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mm-shortvideo-card:hover .mm-shortvideo-scrim {
    background: linear-gradient( 180deg, rgba(10, 9, 22, 0.5) 0%, rgba(10, 9, 22, 0.15) 22%, rgba(10, 9, 22, 0.72) 52%, rgba(10, 9, 22, 0.97) 82%, #0a0916 100% );
}

/* Top Reel Badge */
.mm-shortvideo-top-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.45);
    z-index: 3;
}

/* Center Glowing Play Button */
.mm-shortvideo-play-btn {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--pink);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(234, 76, 137, 0.55), 0 0 16px rgba(234, 76, 137, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .mm-shortvideo-play-btn svg {
        width: 22px;
        height: 22px;
        margin-left: 3px;
    }

.mm-shortvideo-card:hover .mm-shortvideo-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 10px rgba(234, 76, 137, 0.25), 0 12px 32px rgba(234, 76, 137, 0.6);
}

/* Overlay Body Info */
.mm-shortvideo-overlay-body {
    position: relative;
    z-index: 3;
    padding: 22px 24px 22px;
    display: flex;
    flex-direction: column;
}

.mm-shortvideo-category {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff80ab;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mm-shortvideo-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    transition: color 0.2s ease;
}

.mm-shortvideo-card:hover .mm-shortvideo-title {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--pink);
}

.mm-shortvideo-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Overlay Footer */
.mm-shortvideo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.mm-shortvideo-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 3px 9px;
    border-radius: 999px;
}

.mm-shortvideo-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #ff80ab;
    transition: transform 0.2s ease;
}

    .mm-shortvideo-action svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s ease;
    }

.mm-shortvideo-card:hover .mm-shortvideo-action svg {
    transform: translateX(4px);
}

/* ==========================================================================
   IMMERSIVE MEDIA MODAL VIEWER (Video Theater & Gallery)
   ========================================================================== */
.mm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 7, 18, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

    .mm-modal-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.mm-modal-container {
    width: 100%;
    max-width: 980px;
    background: #121124;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 76, 137, 0.2);
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.mm-modal-backdrop.is-open .mm-modal-container {
    transform: scale(1);
}

.mm-modal-header {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-modal-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-modal-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
    background: rgba(234, 76, 137, 0.15);
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.mm-modal-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mm-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .mm-modal-close-btn:hover {
        background: var(--pink);
        transform: rotate(90deg);
    }

.mm-modal-body {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-modal-media-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-modal-footer {
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   RESPONSIVE DESIGN (3 COLS -> 2 COLS -> 1 COL)
   ========================================================================== */
@media (max-width: 1080px) {
    .multimedia-section {
        padding: 64px 0 80px;
    }

    .multimedia-grid,
    .multimedia-grid.is-grid-type {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .multimedia-section {
        padding: 48px 0 60px;
    }

    .multimedia-grid,
    .multimedia-grid.is-grid-type {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .multimedia-filter-bar {
        border-radius: 20px;
        padding: 6px;
        gap: 6px;
    }

    .mm-filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .mm-card-body {
        padding: 18px 20px 20px;
    }

    .mm-card-title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   SHORT VIDEOS SECTION (Facebook Reels Box Style + Dribbble Aesthetics)
   ========================================================================== */

.short-videos-section {
    padding: 20px 0 84px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
    transition: background-color 0.35s ease;
}

.reels-container-full {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Facebook Reels Box with Dribbble Aesthetics */
.reels-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 24px 26px 28px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] .reels-box {
    background: #181728;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* Reels Header */
.reels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    /* padding-bottom: 14px; */
    /* border-bottom: 1px solid var(--border-subtle); */
}

.reels-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reels-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(234, 76, 137, 0.35);
    flex-shrink: 0;
}

    .reels-icon-badge svg {
        width: 20px;
        height: 20px;
    }

.reels-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reels-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.reels-pill-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(234, 76, 137, 0.1);
    color: var(--pink);
    border: 1px solid rgba(234, 76, 137, 0.22);
    letter-spacing: 0.02em;
}

.reels-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reels-nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reels-arrow-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary-alt);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .reels-arrow-btn svg {
        width: 16px;
        height: 16px;
    }

    .reels-arrow-btn:hover:not(:disabled) {
        background: var(--pink);
        color: #ffffff;
        border-color: var(--pink);
        transform: scale(1.06);
    }

    .reels-arrow-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
        transform: none;
        background: var(--bg-secondary-alt);
        color: var(--text-muted);
    }

.reels-more-options-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary-alt);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .reels-more-options-btn svg {
        width: 18px;
        height: 18px;
    }

    .reels-more-options-btn:hover {
        color: var(--text-primary);
        border-color: var(--border-active);
        background: var(--bg-card);
    }

/* Reels Carousel Wrap & Floating Chevron Buttons */
.reels-carousel-wrap {
    position: relative;
    width: 100%;
}

.reels-float-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(18, 17, 32, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    transition: all 0.25s var(--transition-smooth);
}

    .reels-float-btn svg {
        width: 22px;
        height: 22px;
    }

    .reels-float-btn.float-prev {
        left: -12px;
    }

    .reels-float-btn.float-next {
        right: -12px;
    }

    .reels-float-btn:hover {
        background: var(--pink);
        border-color: var(--pink);
        transform: translateY(-50%) scale(1.12);
        box-shadow: 0 10px 28px rgba(234, 76, 137, 0.55);
    }

/* Horizontal Track */
.reels-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px 14px;
    user-select: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
}

    .reels-track.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    .reels-track::-webkit-scrollbar {
        display: none;
    }

/* Individual Reel Card */
.reel-card {
    flex: 0 0 216px;
    aspect-ratio: 9 / 15.6;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #0c0b17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth), border-color 0.35s ease;
    cursor: pointer;
    scroll-snap-align: start;
}

    .reel-card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: rgba(234, 76, 137, 0.55);
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35), 0 0 22px rgba(234, 76, 137, 0.25);
    }

.reel-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.reel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover .reel-thumb {
    transform: scale(1.06);
}

/* Center Play Button - Appears on Hover */
.reel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pink);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 28px rgba(234, 76, 137, 0.5), 0 0 14px rgba(234, 76, 137, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

    .reel-play-btn svg {
        width: 22px;
        height: 22px;
        margin-left: 3px; /* Optically centered play triangle */
    }

.reel-card:hover .reel-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Scrim Overlay for Caption Readability */
.reel-scrim-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52%;
    background: linear-gradient( 0deg, rgba(13, 12, 34, 0.94) 0%, rgba(13, 12, 34, 0.55) 60%, transparent 100% );
    pointer-events: none;
    z-index: 2;
    transition: height 0.3s ease;
}

.reel-card:hover .reel-scrim-bottom {
    height: 58%;
}

/* Reel Card Caption Info */
.reel-card-info {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
}

.reel-caption {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    transition: color 0.25s ease;
}

.reel-card:hover .reel-caption {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--pink);
    text-underline-offset: 3px;
}

/* Responsive for Reels Section */
@media (max-width: 1024px) {
    .reels-box {
        padding: 20px 20px 24px;
        border-radius: 20px;
    }

    .reel-card {
        flex: 0 0 190px;
    }

    .reels-float-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .short-videos-section {
        padding: 14px 0 60px;
    }

    .reels-container-full {
        padding: 0 16px;
    }

    .reels-box {
        padding: 16px 14px 18px;
        border-radius: 18px;
    }

    .reels-title {
        font-size: 1.2rem;
    }

    .reel-card {
        flex: 0 0 165px;
        border-radius: 15px;
    }

    .reels-float-btn {
        display: none !important;
    }

    .reel-play-btn {
        width: 42px;
        height: 42px;
    }

        .reel-play-btn svg {
            width: 18px;
            height: 18px;
            margin-left: 2px;
        }

    .reel-card-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .reel-caption {
        font-size: 0.78rem;
    }
}
