.mev2-taxonomy-page {
    width: 100%;
    padding: 0 24px 48px;
    container-type: inline-size;
    --mev2-pilot-gutter: 24px;
    background: var(--mev2-canvas);
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
}

.mev2-taxonomy-page *,
.mev2-taxonomy-page *::before,
.mev2-taxonomy-page *::after {
    box-sizing: border-box;
}

.mev2-taxonomy-page h1,
.mev2-taxonomy-page h2,
.mev2-taxonomy-page h3,
.mev2-taxonomy-page strong,
.mev2-taxonomy-page span,
.mev2-taxonomy-page small,
.mev2-taxonomy-page p,
.mev2-taxonomy-page div,
.mev2-taxonomy-page label,
.mev2-taxonomy-page button,
.mev2-taxonomy-page select {
    font-family: var(--mev2-font) !important;
}

.mev2-taxonomy-page h1,
.mev2-taxonomy-page h2,
.mev2-taxonomy-page h3,
.mev2-taxonomy-page strong {
    color: var(--mev2-text) !important;
}

.mev2-taxonomy-page a {
    color: inherit !important;
    text-decoration: none !important;
}

.mev2-taxonomy-page button,
.mev2-taxonomy-page select {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
}

.mev2-taxonomy-shell {
    width: min(1360px, 100%);
    margin: 0 auto;
}

.mev2-tax-hero {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid var(--mev2-accent-border);
    border-radius: 28px;
    background: var(--mev2-accent-soft);
    isolation: isolate;
}

.mev2-tax-hero__image,
.mev2-tax-hero__veil {
    position: absolute;
    inset: 0;
}

.mev2-tax-hero__image {
    z-index: -3;
    background-image: var(--mev2-tax-hero);
    background-position: center;
    background-size: cover;
}

.mev2-tax-hero__veil {
    z-index: -2;
    background: linear-gradient(90deg, rgba(var(--mev2-surface-rgb), 0.98) 0%, rgba(var(--mev2-surface-rgb), 0.94) 42%, rgba(var(--mev2-surface-rgb), 0.48) 70%, rgba(var(--mev2-surface-rgb), 0.15) 100%);
}

.mev2-tax-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(690px, 100%);
    min-height: 270px;
    padding: 30px 34px;
}

.mev2-tax-hero__title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mev2-tax-hero__icon {
    display: grid;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--mev2-tax-accent) 18%, var(--mev2-surface));
}

.mev2-tax-hero__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.mev2-tax-hero h1 {
    margin: 0 !important;
    font-size: clamp(42px, 5vw, 68px) !important;
    font-weight: 850 !important;
    line-height: .94 !important;
    letter-spacing: -.04em;
}

.mev2-tax-hero__count {
    margin: 8px 0 0 !important;
    color: var(--mev2-text-secondary) !important;
    font-size: 15px;
    font-weight: 650;
}

.mev2-tax-hero__description {
    max-width: 610px;
    margin-top: 20px;
    color: var(--mev2-text) !important;
    font-size: 16px;
    line-height: 1.55;
}

.mev2-tax-hero__description p {
    margin: 0 !important;
    color: inherit !important;
}

.mev2-tax-nav {
    display: flex;
    gap: 6px;
    width: 100%;
    margin: 12px 0 18px;
    padding: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mev2-tax-nav::-webkit-scrollbar { display: none; }

.mev2-tax-nav__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 9px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--mev2-text) !important;
    font-size: 13px;
    font-weight: 650;
    transition: background .15s ease;
}

.mev2-tax-nav__item:hover {
    background: var(--mev2-surface-alt);
}

.mev2-tax-nav__item.is-active {
    border-color: color-mix(in srgb, var(--mev2-tax-accent) 34%, var(--mev2-border));
    background: color-mix(in srgb, var(--mev2-tax-accent) 12%, var(--mev2-surface));
    color: var(--mev2-text) !important;
}

.mev2-taxonomy-page .mev2-tax-nav__item { border-radius: var(--mev2-radius-xs) !important; }

.mev2-tax-nav__icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: var(--mev2-radius-xs);
    background: var(--mev2-surface-alt);
}

.mev2-tax-nav__icon img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.mev2-tax-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.mev2-tax-filters {
    position: sticky;
    top: 126px;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.mev2-taxonomy-page .mev2-tax-filters {
    border-radius: var(--mev2-radius-xs) !important;
}

@media (min-width: 901px) {
    .mev2-tax-filters { max-height: calc(100vh - 142px); overflow-y: auto; }
}

.mev2-tax-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
}

.mev2-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--mev2-muted) !important;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mev2-tax-filters__head h2 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

.mev2-tax-filters__close {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: var(--mev2-surface-alt);
    color: var(--mev2-text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mev2-filter-section {
    padding: 14px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--mev2-border) 65%, transparent);
}

.mev2-filter-section h3 {
    margin: 0 0 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.mev2-filter-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 260px;
    overflow: auto;
}

.mev2-filter-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--mev2-text-secondary);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.mev2-filter-option small {
    color: var(--mev2-muted) !important;
    font-size: 10px;
}

.mev2-filter-option:hover,
.mev2-filter-option.is-active {
    background: var(--mev2-accent-soft);
    color: var(--mev2-accent);
}

.mev2-tax-filters .mev2-filter-option {
    border-radius: var(--mev2-radius-xs) !important;
}

.mev2-reco-option::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.mev2-reco-option { justify-content: flex-start; }
.mev2-reco-option--start { --mev2-reco-tone: var(--mev2-purple); --mev2-reco-soft: var(--mev2-purple-soft); }
.mev2-reco-option--explore { --mev2-reco-tone: var(--mev2-blue); --mev2-reco-soft: var(--mev2-blue-soft); }
.mev2-reco-option--find { --mev2-reco-tone: var(--mev2-pink); --mev2-reco-soft: var(--mev2-pink-soft); }
.mev2-reco-option::before { background: var(--mev2-reco-tone, var(--mev2-muted)); }
.mev2-reco-option:hover,
.mev2-reco-option.is-active {
    color: var(--mev2-reco-tone, var(--mev2-text));
    background: var(--mev2-reco-soft, var(--mev2-surface-alt));
}

.mev2-scale-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mev2-scale-options button {
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--mev2-border);
    border-radius: 999px;
    background: var(--mev2-surface);
    color: var(--mev2-text-secondary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.mev2-scale-options button:hover,
.mev2-scale-options button.is-active {
    border-color: var(--mev2-accent-border);
    background: var(--mev2-accent-soft);
    color: var(--mev2-accent);
}

.mev2-filter-section--toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mev2-toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    cursor: pointer;
}

.mev2-toggle-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.mev2-toggle-row strong {
    font-size: 11px;
    font-weight: 760 !important;
}

.mev2-toggle-row small {
    color: var(--mev2-muted) !important;
    font-size: 9px;
    line-height: 1.25;
}

.mev2-toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mev2-toggle-row i {
    position: relative;
    display: block;
    width: 36px;
    height: 21px;
    border-radius: 999px;
    background: var(--mev2-surface-inset);
    transition: background .15s ease;
}

.mev2-toggle-row i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--mev2-surface);
    box-shadow: 0 1px 3px rgba(31,32,40,.16);
    transition: transform .15s ease;
}

.mev2-toggle-row input:checked + i { background: var(--mev2-action); }
.mev2-toggle-row input:checked + i::after { transform: translateX(15px); }

.mev2-filter-reset {
    width: calc(100% - 24px);
    min-height: 34px;
    margin: 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--mev2-text-secondary);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.mev2-tax-filters .mev2-filter-reset { border-radius: var(--mev2-radius-xs) !important; }
.mev2-filter-reset:hover { background: var(--mev2-surface-alt); color: var(--mev2-text); }

.mev2-tax-results { min-width: 0; }

.mev2-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.mev2-results-toolbar__count {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.mev2-results-toolbar__count strong {
    font-size: 20px;
    font-weight: 840 !important;
}

.mev2-results-toolbar__count span {
    color: var(--mev2-muted) !important;
    font-size: 13px;
    font-weight: 650;
}

.mev2-results-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mev2-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mev2-muted) !important;
    font-size: 11px;
    font-weight: 650;
}

.mev2-sort select {
    min-height: 34px;
    padding: 0 36px 0 13px;
    border: 1px solid var(--mev2-border);
    border-radius: 12px;
    background: var(--mev2-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6d78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--mev2-text);
    font-size: 11px;
    font-weight: 700;
}

.mev2-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--mev2-border);
    border-radius: 12px;
    background: var(--mev2-surface);
    color: var(--mev2-text);
    font-size: 11px;
    font-weight: 750;
}

.mev2-mobile-filter-btn i {
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 999px;
    background: var(--mev2-action);
    color: var(--mev2-on-image);
    font-size: 9px;
    font-style: normal;
}

.mev2-mobile-filter-btn i[hidden] { display: none; }

.mev2-results-stage { position: relative; min-height: 220px; }

.mev2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 25px;
}

.mev2-results-loading {
    position: absolute;
    z-index: 20;
    inset: -6px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(var(--mev2-surface-rgb), 0.76);
    backdrop-filter: blur(2px);
}

.mev2-results-loading[hidden] { display: none; }

.mev2-results-loading span {
    width: 30px;
    height: 30px;
    border: 3px solid var(--mev2-border);
    border-top-color: var(--mev2-accent);
    border-radius: 50%;
    animation: mev2-spin .7s linear infinite;
}

@keyframes mev2-spin { to { transform: rotate(360deg); } }

.mev2-empty-state {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px dashed var(--mev2-border);
    border-radius: 20px;
    background: rgba(var(--mev2-surface-rgb), 0.55);
}

.mev2-empty-state[hidden] { display: none; }

.mev2-empty-state strong { font-size: 15px; }
.mev2-empty-state span { color: var(--mev2-muted) !important; font-size: 12px; }

.mev2-load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

.mev2-load-more-wrap[hidden] { display: none; }

.mev2-load-more {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--mev2-border);
    border-radius: 999px;
    background: var(--mev2-surface);
    color: var(--mev2-text);
    font-size: 12px;
    font-weight: 780;
    cursor: pointer;
}

.mev2-tax-overlay { display: none; }

@media (max-width: 1180px) {
    .mev2-tax-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
    .mev2-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .mev2-taxonomy-page { padding: 0 14px 38px; }
    .mev2-tax-hero { min-height: 240px; border-radius: 22px; }
    .mev2-tax-hero__content { min-height: 240px; padding: 26px 24px; }
    .mev2-tax-hero__veil { background: linear-gradient(90deg, rgba(var(--mev2-surface-rgb), 0.98) 0%, rgba(var(--mev2-surface-rgb), 0.9) 58%, rgba(var(--mev2-surface-rgb), 0.38) 100%); }
    .mev2-tax-layout { display: block; }
    .mev2-tax-filters {
        position: fixed;
        z-index: 10050;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(360px, calc(100vw - 42px));
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0 22px 22px 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        background: var(--mev2-surface);
    }
    .mev2-taxonomy-page .mev2-tax-filters { border-radius: 0 var(--mev2-radius-sm) var(--mev2-radius-sm) 0 !important; }
    .mev2-tax-filters.is-open { transform: translateX(0); }
    .mev2-tax-filters__close { display: inline-grid; place-items: center; }
    .mev2-tax-overlay {
        position: fixed;
        z-index: 10040;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(28,29,35,.28);
        opacity: 0;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .mev2-tax-overlay.is-open { visibility: visible; opacity: 1; }
    .mev2-filters-open { overflow: hidden; }
    .mev2-mobile-filter-btn { display: inline-flex; }
}

@media (max-width: 680px) {
    .mev2-taxonomy-page { padding: 0 10px 32px; }
    .mev2-tax-hero { min-height: 245px; border-radius: 20px; }
    .mev2-tax-hero__content { min-height: 245px; padding: 22px 18px; }
    .mev2-tax-hero__icon { flex-basis: 50px; width: 50px; height: 50px; border-radius: 16px; }
    .mev2-tax-hero__icon img { width: 28px; height: 28px; }
    .mev2-tax-hero h1 { font-size: clamp(34px, 12vw, 48px) !important; }
    .mev2-tax-hero__description { font-size: 14px; line-height: 1.45; }
    .mev2-tax-nav { margin-top: 12px; }
    .mev2-tax-nav__item { font-size: 12px; }
    .mev2-results-toolbar { align-items: flex-end; }
    .mev2-results-toolbar__count strong { font-size: 20px; }
    .mev2-sort select { max-width: 128px; }
    .mev2-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
}

/* Game Boy pilot: the global rail is navigation; archive filters live above games. */
.mev2-taxonomy-page--pilot .mev2-tax-layout { display: block; }
.mev2-taxonomy-page .mev2-tax-hero,
.mev2-taxonomy-page .mev2-tax-hero__content { min-height: 300px; }
.mev2-taxonomy-page .mev2-tax-hero {
    margin-bottom: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
}
.mev2-taxonomy-page .mev2-tax-hero__image,
.mev2-taxonomy-page .mev2-tax-hero__veil {
    left: 50%;
    right: auto;
    width: calc(100cqw + 2 * var(--mev2-pilot-gutter));
    transform: translateX(-50%);
}
.mev2-taxonomy-page .mev2-tax-hero__veil {
    background: linear-gradient(0deg, var(--mev2-canvas), transparent 24px), linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.8) 65%, #000);
}
.mev2-taxonomy-page .mev2-tax-hero__content { width: min(720px, 100%); justify-content: flex-end; padding: 32px 0 24px; }
.mev2-taxonomy-page .mev2-tax-hero h1 { font-size: clamp(32px, 3.5vw, 44px) !important; }
/* Theme names can be long unbroken words beside an optional icon. */
.mev2-taxonomy-page--thematique .mev2-tax-hero__title-row > div { min-width: 0; }
.mev2-taxonomy-page--thematique .mev2-tax-hero h1 { overflow-wrap: anywhere; }
.mev2-taxonomy-page .mev2-tax-hero h1,
.mev2-taxonomy-page .mev2-tax-hero__description { color: #fff !important; }
.mev2-taxonomy-page .mev2-tax-hero__description { margin-top: 14px; font-size: 14px; }
.mev2-taxonomy-page .mev2-tax-hero__icon { width: 48px; height: 48px; flex-basis: 48px; }
.mev2-taxonomy-page .mev2-tax-hero__icon[hidden] { display: none !important; }
.mev2-taxonomy-page .mev2-tax-hero__count { font-size: 13px; color: rgba(255,255,255,.8) !important; }
.mev2-taxonomy-page .mev2-tax-hero__back {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255,255,255,.7) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none !important;
}
.mev2-taxonomy-page .mev2-tax-hero__back:hover,
.mev2-taxonomy-page .mev2-tax-hero__back:focus-visible { color: var(--mev2-accent) !important; }
.mev2-tax-hero__back:focus-visible { outline: 2px solid var(--mev2-accent); outline-offset: 4px; }
.mev2-tax-hero--no-image .mev2-tax-hero__image { background-image: none; }

.mev2-pilot-filters { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mev2-border); }
.mev2-pilot-filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mev2-archive-chips,
.mev2-pilot-filters__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.mev2-archive-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    background: var(--mev2-surface-alt);
    color: var(--mev2-text-secondary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}
.mev2-archive-chip { border-radius: var(--mev2-radius-pill); }
.mev2-archive-chip--start { --mev2-chip-tone: var(--mev2-purple); --mev2-chip-soft: var(--mev2-purple-soft); --mev2-chip-border: var(--mev2-purple-border); }
.mev2-archive-chip--explore { --mev2-chip-tone: var(--mev2-blue); --mev2-chip-soft: var(--mev2-blue-soft); --mev2-chip-border: var(--mev2-blue-border); }
.mev2-archive-chip--find { --mev2-chip-tone: var(--mev2-pink); --mev2-chip-soft: var(--mev2-pink-soft); --mev2-chip-border: var(--mev2-pink-border); }
.mev2-archive-chip:not(:first-child)::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mev2-chip-tone); }
.mev2-archive-chip:hover,
.mev2-archive-chip.is-active { color: var(--mev2-chip-tone, var(--mev2-text)); background: var(--mev2-chip-soft, var(--mev2-surface-alt)); border-color: var(--mev2-chip-border, var(--mev2-border)); }
.mev2-pilot-child,
.mev2-pilot-multi { display: flex; flex: 0 0 auto; gap: 9px; min-height: 40px; padding: 8px 13px; border-radius: var(--mev2-radius-pill); background: var(--mev2-surface-alt); }
.mev2-pilot-child strong,
.mev2-pilot-multi strong { white-space: nowrap; font-size: 12px; }
.mev2-toggle-row input:focus-visible + i { outline: 2px solid var(--mev2-accent); outline-offset: 3px; }
.mev2-pilot-reset { min-height: 34px; padding: 6px 12px; border: 0; border-radius: var(--mev2-radius-pill); background: var(--mev2-surface-alt); color: var(--mev2-text-secondary); font-size: 11px; cursor: pointer; }
.mev2-pilot-reset[hidden] { display: none; }

@media (max-width: 900px) { .mev2-taxonomy-page { --mev2-pilot-gutter: 14px; } }

@media (max-width: 680px) {
    .mev2-taxonomy-page { --mev2-pilot-gutter: 10px; }
    .mev2-taxonomy-page .mev2-tax-hero,
    .mev2-taxonomy-page .mev2-tax-hero__content { min-height: 280px; }
}

.mev2-taxonomy-page .mev2-tax-hero--no-image.mev2-tax-hero--no-description,
.mev2-taxonomy-page .mev2-tax-hero--no-image.mev2-tax-hero--no-description .mev2-tax-hero__content { min-height: 0; }
.mev2-taxonomy-page .mev2-tax-hero--no-image.mev2-tax-hero--no-description .mev2-tax-hero__content { padding-top: 24px; padding-bottom: 16px; }

/* Explicit priority keeps true pills even when the WP theme styles buttons. */
body.mef-native-v2 .mev2-taxonomy-page .mev2-archive-chip { border-radius: 999px !important; }
.mev2-pilot-filters { position: relative; z-index: 40; }
.mev2-genre-picker { position: relative; min-width: 0; }
body.mef-native-v2 .mev2-taxonomy-page .mev2-genre-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 999px !important;
    background: var(--mev2-surface-alt);
    color: var(--mev2-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}
.mev2-genre-trigger > svg { flex: 0 0 auto; }
.mev2-genre-trigger [data-genre-label] { min-width: 0; max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mev2-genre-trigger[aria-expanded="true"] { outline: 2px solid var(--mev2-accent-border); outline-offset: 1px; }
.mev2-genre-trigger[aria-expanded="true"] .mev2-genre-chevron { transform: rotate(180deg); }
.mev2-genre-list {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    right: 0;
    width: max(100%, 260px);
    max-width: min(360px, calc(100vw - 20px));
    max-height: min(360px, 50vh);
    padding: 6px;
    overflow-y: auto;
    border: 1px solid var(--mev2-border);
    border-radius: 16px;
    background: var(--mev2-surface);
    color: var(--mev2-text);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.mev2-genre-list[hidden] { display: none; }
.mev2-genre-picker.opens-up .mev2-genre-list { top: auto; bottom: calc(100% + 8px); }
body.mef-native-v2 .mev2-taxonomy-page .mev2-genre-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 10px !important;
    background: transparent;
    color: var(--mev2-text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
.mev2-genre-option > svg { flex: 0 0 16px; visibility: hidden; }
.mev2-genre-option small { margin-left: auto; color: var(--mev2-muted); font-size: 11px; }
body.mef-native-v2 .mev2-taxonomy-page .mev2-genre-option:hover,
body.mef-native-v2 .mev2-taxonomy-page .mev2-genre-option.is-highlighted { background: var(--mev2-accent-soft); color: var(--mev2-accent); }
.mev2-genre-option[aria-selected="true"] > svg { visibility: visible; color: var(--mev2-accent); }

/* The pilot keeps one set of controls: inline desktop, native modal mobile.
 * The modal top layer is not clipped by the full-bleed hero's CSS container. */
.mev2-pilot-filter-dialog[open] { display: block; position: static; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.mev2-pilot-filter-dialog:not([open]) { display: none; }
.mev2-pilot-filters__head,
.mev2-pilot-apply,
.mev2-pilot-filter-btn { display: none; }
.mev2-pilot-filters__footer { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (min-width: 1025px) {
    .mev2-pilot-filters__footer:not(:has(.mev2-pilot-reset:not([hidden]))) { display: none; }
}

.mev2-platform-switcher { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 20px; }
.mev2-platform-switcher__track { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.mev2-platform-switcher__track::-webkit-scrollbar { display: none; }
.mev2-platform-switcher__item { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; min-height: 44px; padding: 5px 12px 5px 6px; border-radius: var(--mev2-radius-pill); color: var(--mev2-text-secondary) !important; text-decoration: none !important; white-space: nowrap; font-size: 13px; font-weight: 650; }
.mev2-platform-switcher__item:hover,
.mev2-platform-switcher__item.is-active { background: var(--mev2-purple-soft); color: var(--mev2-text) !important; }
.mev2-platform-switcher__icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--mev2-purple-solid); }
.mev2-platform-switcher__icon img { width: 21px; height: 21px; object-fit: contain; }
.mev2-platform-switcher__hub,
body.mef-native-v2 .mev2-platform-switcher__arrow { display: inline-grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--mev2-border); border-radius: var(--mev2-radius-pill) !important; background: var(--mev2-surface); color: var(--mev2-text-secondary) !important; cursor: pointer; }
.mev2-platform-switcher__hub:hover,
body.mef-native-v2 .mev2-platform-switcher__arrow:hover:not(:disabled) { color: var(--mev2-accent) !important; border-color: var(--mev2-accent-border); }
body.mef-native-v2 .mev2-platform-switcher__arrow { flex-basis: 30px; width: 30px; height: 30px; }
body.mef-native-v2 .mev2-platform-switcher__arrow[hidden] { display: none; }
.mev2-platform-switcher__arrow:disabled { opacity: .35; cursor: default; }

@media (max-width: 1024px) {
    html.mev2-filters-open { overflow: hidden; }
    body.mef-native-v2 .mev2-platform-switcher__arrow { display: none; }
    .mev2-platform-switcher { gap: 4px; margin-bottom: 16px; }
    .mev2-platform-switcher__hub { flex-basis: 44px; width: 44px; height: 44px; }
    body.mef-native-v2 .has-pilot-filter-dialog .mev2-pilot-filter-btn { display: inline-flex; min-height: 44px; padding: 0 16px; border-radius: var(--mev2-radius-pill) !important; font-size: 12px; cursor: pointer; }
    .has-pilot-filter-dialog .mev2-pilot-filter-dialog[open] {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(400px, calc(100vw - 20px));
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 20px 18px max(18px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--mev2-surface);
        color: var(--mev2-text);
        border: 0;
        border-left: 1px solid var(--mev2-border);
        border-radius: 0;
    }
    .mev2-pilot-filter-dialog::backdrop { background: rgba(0,0,0,.65); }
    .has-pilot-filter-dialog .mev2-pilot-filters { padding: 0; margin: 0; border: 0; }
    .has-pilot-filter-dialog .mev2-pilot-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
    .has-pilot-filter-dialog .mev2-pilot-filters__head h2 { margin: 0; font-size: 22px; }
    .has-pilot-filter-dialog [data-pilot-filter-close]:not(.mev2-pilot-apply) { display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: var(--mev2-radius-pill); background: var(--mev2-surface-alt); color: var(--mev2-text); cursor: pointer; }
    .has-pilot-filter-dialog .mev2-pilot-filters__bar { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 20px; }
    .has-pilot-filter-dialog .mev2-archive-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0; padding: 0; }
    .has-pilot-filter-dialog .mev2-archive-chip { min-height: 44px; padding: 10px 8px; }
    .has-pilot-filter-dialog .mev2-pilot-filters__tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .has-pilot-filter-dialog .mev2-genre-picker { grid-column: auto; }
    body.mef-native-v2 .has-pilot-filter-dialog .mev2-genre-trigger { min-height: 44px; }
    .has-pilot-filter-dialog .mev2-genre-trigger [data-genre-label] { flex: 1; max-width: none; }
    .has-pilot-filter-dialog .mev2-genre-list { max-width: 100%; }
    .has-pilot-filter-dialog .mev2-pilot-multi,
    .has-pilot-filter-dialog .mev2-pilot-child { display: flex; justify-content: space-between; min-height: 44px; padding: 8px 2px; border: 0; border-radius: 0; background: transparent; }
    .has-pilot-filter-dialog .mev2-pilot-filters__footer { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
    .has-pilot-filter-dialog .mev2-pilot-apply { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: var(--mev2-radius-pill); background: var(--mev2-action); color: var(--mev2-on-image); font-size: 13px; font-weight: 650; cursor: pointer; }
    .has-pilot-filter-dialog .mev2-pilot-apply small { color: inherit; }
    .has-pilot-filter-dialog .mev2-pilot-reset { min-height: 44px; }
}

