/* Visual discovery reuses the library's real covers and native filter URLs. */
.mce {
    --mce-surface: var(--mc-surface, #121316);
    --mce-border: var(--mc-line, rgba(255, 255, 255, .1));
    --mce-text: var(--mc-paper, #f3f1ea);
    margin-bottom: 2rem;
}

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

.mce-heading h2 {
    margin: 0;
    color: var(--mce-text);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.mce-heading .mc-text-link {
    min-height: 44px;
}

.mce-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
}

.mce-card {
    position: relative;
    display: block;
    min-width: 0;
    height: clamp(168px, 13vw, 200px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--mce-border);
    border-radius: 12px;
    background: var(--mce-surface);
    color: var(--mce-text);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mce-card::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 6, 10, .04) 10%, rgba(4, 6, 10, .18) 40%, rgba(4, 6, 10, .92) 100%);
    content: '';
    pointer-events: none;
}

.mce-art {
    position: absolute;
    inset: -8px -7% -16px;
    display: flex;
    gap: 7px;
    overflow: hidden;
    transform: skewX(-13deg);
}

.mce-panel {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: #25303c;
}

.mce-panel:nth-child(3n + 2) {
    background: #35303c;
}

.mce-panel:nth-child(3n) {
    background: #304039;
}

.mce-panel img {
    display: block;
    width: calc(100% + 64px);
    max-width: none;
    height: 100%;
    margin-left: -32px;
    object-fit: cover;
    object-position: center 25%;
    transform: skewX(13deg);
}

.mce-caption {
    position: absolute;
    z-index: 2;
    inset: auto 1.125rem 1rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
    pointer-events: none;
}

.mce-name {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-size: clamp(1rem, 1.25vw, 1.1875rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .035em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.mce-subtitle {
    color: #d2d4d8;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
}

.mce-card:hover {
    border-color: rgba(255, 255, 255, .5);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.mce-card:focus-visible {
    outline: 2px solid var(--linime-blue, #83c3ff);
    outline-offset: 4px;
}

.mce-card:active {
    border-color: var(--linime-blue, #83c3ff);
}

.mc-library .mct.mct--visual {
    padding: 0;
    border: 0;
    background: transparent;
}

.mct--visual > .mct-heading {
    padding-top: 1.25rem;
    border-top: 1px solid var(--mc-line);
}

@media (max-width: 1100px) {
    .mce-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .mce-card {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .mce-heading {
        align-items: center;
        gap: .5rem;
        margin-bottom: .75rem;
    }

    .mce-heading h2 {
        font-size: 1rem;
    }

    .mce-heading .mc-text-link {
        gap: .25rem;
        font-size: .6875rem;
    }

    .mce-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .75rem;
    }

    .mce-card {
        height: 160px;
        border-radius: 10px;
    }

    .mce-caption {
        inset: auto 1rem .875rem;
    }

    .mce-name {
        font-size: 1rem;
    }

    .mce-subtitle {
        max-width: 47%;
        font-size: .6875rem;
    }

    .mce-panel:nth-child(n + 6) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mce-card {
        transition: none;
    }
}
