/* embedded-pick-album-grammys.css
   ───────────────────────────────
   Minimal Grammy browser surface that overlays the music-club picker
   when Grammy Awards is picked from the Browse dropdown. Card layout
   intentionally mirrors the Oscar browser (.fp-oscar__card) so the two
   feel like siblings. */

/* Gold trophy on the Browse menu’s Grammy Awards row — was the Grammys
   launch pill’s icon before that pill folded into the dropdown. Matches
   the film picker’s Awards row. */
.fp-type-dd__opt[data-browse="grammys"] .material-icons {
    color: #c79b1f;
}

.mx-grammy-browser {
    padding: 8px 4px 16px;
}

.mx-grammy-browser__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 12px;
}
.mx-grammy-browser__back {
    background: none; border: 0; padding: 4px 6px;
    display: inline-flex; align-items: center; gap: 4px;
    color: #2B988F; font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
}
.mx-grammy-browser__back .material-icons { font-size: 18px; }
.mx-grammy-browser__back:hover { color: #1d7a72; }

/* Inside the queue picker the search-area back button covers this,
   so hide the browser's own Back. (#mx-grammyBrowser is shared with
   the media-explorer modal, which still needs its Back, so this is
   scoped to the picker host rather than removed outright.) */
#embeddedAlbumPicker .mx-grammy-browser__back {
    display: none;
}

.mx-grammy-browser__heading {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/* "Hide nominees" switch — pinned to the right of the header so it
   sits across from the subtitle/title block. Uses the same .fp-slider__
   markup as the Oscar browser; the styles below match film picker
   1:1 so the two toggles read as siblings. */
.mx-grammy-browser__nom-toggle {
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}
.fp-slider__filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #686b87;
    cursor: pointer;
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
}
.fp-slider__filter-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.fp-slider__filter-track {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 18px;
    background: #d8dbe8;
    border-radius: 999px;
    transition: background 160ms ease;
}
.fp-slider__filter-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
    transition: transform 160ms ease;
}
.fp-slider__filter-input:checked + .fp-slider__filter-track {
    background: #2B988F;
}
.fp-slider__filter-input:checked + .fp-slider__filter-track .fp-slider__filter-knob {
    transform: translateX(14px);
}
.fp-slider__filter-input:focus-visible + .fp-slider__filter-track {
    box-shadow: 0 0 0 3px rgba(43,152,143,0.25);
}
.fp-slider__filter-label {
    font-weight: 600;
}
.fp-slider__filter:hover .fp-slider__filter-input:not(:checked) + .fp-slider__filter-track {
    background: #c5cad8;
}
.mx-grammy-browser__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1d2e;
    display: inline-flex; align-items: center; gap: 6px;
}
.mx-grammy-browser__title .material-icons { color: #c79b1f; font-size: 20px; }
.mx-grammy-browser__subtitle {
    font-size: 0.78rem;
    color: #686b87;
    margin-top: 2px;
}

.mx-grammy-browser__filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 14px;
    margin: 4px 0 14px;
}
@media (max-width: 720px) {
    .mx-grammy-browser__filters { flex-wrap: wrap; }
}
.mx-grammy-browser__filter {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 0.72rem; color: #686b87;
    text-transform: uppercase; letter-spacing: 0.05em;
    min-width: 0;
}
.mx-grammy-browser__filter--sort {
    flex: 0 0 auto;
}
.mx-grammy-browser__filter--category {
    flex: 0 1 260px;
    min-width: 220px;
}
.mx-grammy-browser__filter--category .mx-grammy-combo {
    /* Combo sizes from its parent filter now; reset its own basis. */
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}
/* Year filter wraps a dual-range slider — claim the leftover space in
   the row (it sits last, after the category combobox and sort dropdown)
   without crowding either. Bumped padding-top keeps the thumbs aligned
   with the input baselines of its siblings. */
.mx-grammy-browser__filter--year {
    flex: 1 1 220px;
    min-width: 200px;
}

/* "Hide nominees" — its own row under the filters (it used to sit at the
   right of the header). Same hairline-topped row as the Oscars page's
   .fp-oscar__switches. */
.mx-grammy-browser__switches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: -2px 0 14px;
    padding-top: 12px;
    border-top: 1px solid #eef0f4;
}
.mx-grammy-browser__switches .mx-grammy-browser__nom-toggle { margin-left: 0; }

/* ── Mobile: Sort + Year → one "Sort & filter" menu beside Category ────
   renderGrammyCombo() builds it with the "Your Clubs" menu classes
   (.dash-m-club-type*, dashboard.css), same as the Oscars page. Desktop
   keeps the separate Year slider + Sort select. */
.mx-grammy-browser__filter--combo { display: none; }
@media (max-width: 991.98px) {
    .mx-grammy-browser__filters {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .mx-grammy-browser__filter--year,
    .mx-grammy-browser__filter--sort { display: none; }
    .mx-grammy-browser__filter--category {
        flex: 1 1 auto;
        min-width: 0;
    }
    .mx-grammy-browser__filter--category .mx-grammy-combo { min-width: 0; }
    .mx-grammy-browser__filter--combo {
        display: flex;
        flex: 0 0 auto;
        /* The filter wrapper uppercases its small caption; the menu has
           its own type styles. */
        text-transform: none;
        letter-spacing: 0;
    }
    .mx-grammy__combo-btn {
        height: 32px;
        padding: 0 8px 0 10px;
        border-radius: 6px;
    }
    .mx-grammy__combo-menu { width: 280px; z-index: 30; }
    .mx-grammy__combo-years { padding: 0 10px 8px; }
    /* .dash-m-club-typelinks sets display:inline-flex, which beats [hidden]. */
    .mx-grammy__combo-menu .dash-m-club-typelinks[hidden] { display: none; }
}

/* Dual-range year slider — compact single-row layout. Labels flank
   the track left/right so the whole control sits at input height
   instead of stacking labels above the track. */
.mx-grammy__year-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 32px;
}
.mx-grammy__year-label {
    flex: 0 0 auto;
    font-size: 0.85rem; font-weight: 600;
    color: #2B988F;
    text-transform: none; letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
}
.mx-grammy__year-label--to { text-align: right; }
.mx-grammy__year-track {
    position: relative;
    flex: 1 1 auto;
    height: 32px;
}
.mx-grammy__year-track::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 4px;
    transform: translateY(-50%);
    background: #e2e8f0;
    border-radius: 2px;
}
.mx-grammy__year-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: #2B988F;
    border-radius: 2px;
    pointer-events: none;
}
.mx-grammy__year-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    margin: 0;
}
.mx-grammy__year-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2B988F;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    cursor: pointer;
    pointer-events: all;
    transition: transform .12s ease;
}
.mx-grammy__year-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.mx-grammy__year-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2B988F;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    cursor: pointer;
    pointer-events: all;
}
.mx-grammy__year-range:disabled::-webkit-slider-thumb { border-color: #cbd5e1; cursor: not-allowed; }
.mx-grammy__year-range:disabled::-moz-range-thumb    { border-color: #cbd5e1; cursor: not-allowed; }

/* Sort + any other native <select> in the filter row gets the same
   chrome as the category combobox input so the three filters share
   a uniform look. */
.mx-grammy-browser__filter select {
    font: inherit;
    font-size: 0.9rem; text-transform: none; letter-spacing: 0;
    color: #1a1d2e; background: #fff;
    border: 1px solid #d4d6e1;
    border-radius: 6px;
    padding: 5px 30px 5px 10px;
    min-width: 170px;
    box-sizing: border-box;
    height: 32px;
    cursor: pointer;
    /* Replace the native chevron with the same material-icons arrow the
       combobox shows. SVG inline so it works without a webfont. */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%239ca0b3'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
}
.mx-grammy-browser__filter select:focus {
    outline: none;
    border-color: #2B988F;
    box-shadow: 0 0 0 2px rgba(43,152,143,0.15);
}

/* Category search-combo: input + searchable dropdown list. */
.mx-grammy-combo {
    position: relative;
    /* Compact enough to share a row with year slider + sort dropdown.
       The dropdown panel itself sizes to fit the longest option (up to
       max(560px, 95vw)), so a narrower input is fine. */
    min-width: 220px;
    flex: 0 1 260px;
    /* Reset the parent label's uppercase + tracking so option text reads
       in its stored Title Case (the .mx-grammy-browser__filter wrapper
       applies uppercase for the small filter labels above each input). */
    text-transform: none;
    letter-spacing: 0;
}
.mx-grammy-combo__input {
    width: 100%;
    font: inherit;
    font-size: 0.9rem; text-transform: none; letter-spacing: 0;
    color: #1a1d2e; background: #fff;
    border: 1px solid #d4d6e1;
    border-radius: 6px;
    padding: 5px 30px 5px 10px;
    box-sizing: border-box;
    height: 32px;
    text-overflow: ellipsis;
}
/* When the × clear button is showing, reserve room for it as well as the
   chevron, so a long category name ellipsizes instead of running under it
   (noticeable once the mobile Sort & filter button narrows this box). */
.mx-grammy-combo:has(.mx-grammy-combo__clear:not(.d-none)) .mx-grammy-combo__input {
    padding-right: 54px;
}
.mx-grammy-combo__input::placeholder { color: #9ca0b3; }
.mx-grammy-combo__input:focus {
    outline: none;
    border-color: #2B988F;
    box-shadow: 0 0 0 2px rgba(43,152,143,0.15);
}
.mx-grammy-combo__chevron {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    color: #9ca0b3;
    font-size: 22px !important;
    pointer-events: none;
}
.mx-grammy-combo__clear {
    position: absolute;
    right: 26px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #686b87;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 50%;
}
.mx-grammy-combo__clear:hover { color: #1a1d2e; background: rgba(0,0,0,0.05); }

.mx-grammy-combo__dropdown {
    position: absolute;
    top: calc(100% + 2px); left: 0;
    /* Always match the longest option label — never narrower than the
       input but allowed to grow wider so full category names fit. */
    min-width: 100%;
    width: max-content;
    max-width: min(560px, 95vw);
    background: #fff;
    border: 1px solid #d4d6e1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    text-transform: none;
    letter-spacing: 0;
}
.mx-grammy-combo__dropdown.is-open { display: block; }

.mx-grammy-combo__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 12px;
    font-size: 0.88rem;
    color: #1a1d2e;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}
.mx-grammy-combo__option:last-child { border-bottom: 0; }
.mx-grammy-combo__option.is-active,
.mx-grammy-combo__option:hover {
    background: rgba(43,152,143,0.10);
}
.mx-grammy-combo__option-label {
    flex: 1 1 auto;
    /* No ellipsis — the dropdown grows wide enough to fit full names. */
    white-space: nowrap;
}
.mx-grammy-combo__option-count {
    font-size: 0.72rem;
    color: #686b87;
    flex-shrink: 0;
}
.mx-grammy-combo__option--all {
    font-weight: 600;
    color: #2B988F;
}
.mx-grammy-combo__empty {
    padding: 10px;
    font-size: 0.85rem;
    color: #686b87;
    text-align: center;
}
.mx-grammy-browser__count {
    font-size: 0.78rem;
    color: #686b87;
    margin-bottom: 8px;
}

.mx-grammy-browser__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(130px, calc((100% - 28px) / 3)), 1fr));
    gap: 14px;
}

/* Hover treatment matches .fp-oscar__card — the whole card lifts +
   gets a tinted bg + teal border, not just the poster. */
.mx-grammy__card {
    appearance: none;
    background: none;
    border: 1px solid transparent;
    padding: 6px;
    border-radius: 10px;
    text-align: left;
    color: inherit;
    cursor: pointer;
    display: flex; flex-direction: column;
    gap: 4px;
    transition: border-color 120ms, transform 120ms, background 120ms;
}
.mx-grammy__card:hover {
    border-color: #2B988F;
    background: rgba(43,152,143,0.04);
    transform: translateY(-1px);
}
.mx-grammy__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #eef0f7;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.mx-grammy__poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.mx-grammy__poster-placeholder {
    color: #b6b9cf; font-size: 36px;
}

/* Translucent gold WINNER banner across the bottom — same shape as the
   Oscar picker so the two browsers feel related. Sits inside the
   .mx-grammy__poster container so it clips to the rounded corners. */
.mx-grammy__win-banner {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(212, 160, 23, 0.78);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}
.mx-grammy__win-banner .material-icons {
    font-size: 14px !important;
    line-height: 1;
    color: inherit;
}
.mx-grammy__win-banner-text { line-height: 1; }

.mx-grammy__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1d2e;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Title + favorite heart row — .mx-home__titlerow and the heart styles
   live in embedded-pick-album-home.css; this just lets the Grammy title
   take the row's free space. */
.mx-home__titlerow .mx-grammy__title {
    flex: 1 1 auto;
    min-width: 0;
}
.mx-grammy__year {
    color: #686b87;
    font-weight: 400;
}
.mx-grammy__artist {
    font-size: 0.76rem;
    color: #686b87;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Numbered pager (.fp-oscar-pager, embedded-pick-film.css) under the grid.
   scroll-margin-top: page changes scroll the browser top into view below
   the sticky header. */
.mx-grammy-browser__pager { margin-top: 18px; }
.mx-grammy-browser { scroll-margin-top: 80px; }
.mx-grammy-browser__empty {
    text-align: center;
    color: #686b87;
    padding: 30px 0;
}

/* ─────────────────────────────────────────────────────────────────
   Grammy Awards block on the album detail page. Mirrors the film
   picker's .fp-oscars list 1:1 (collapsible header, trophy-prefixed
   rows, gold accent on wins). Different namespace so the two never
   collide if a page somehow loads both stylesheets.
   ───────────────────────────────────────────────────────────────── */
.mx-grammys {
    margin-top: 14px;
    text-align: left;
    /* Hard-cap the block at 200px so its intrinsic content can never
       widen the auto-width poster column past the cover image itself.
       max-width on its own wasn't enough — the row labels still
       contributed min-content width to the column sizing pass. */
    width: 200px;
    max-width: 100%;
    overflow: hidden;
}
.mx-grammys__head {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 6px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #686b87;
    cursor: pointer;
    text-align: left;
}
.mx-grammys__head:hover { color: #2B988F; }
.mx-grammys__head:focus-visible { outline: none; color: #2B988F; }
.mx-grammys__head-caret {
    font-size: 18px !important;
    color: #b9bcd0;
    transition: transform 160ms ease, color 120ms;
}
.mx-grammys__head:hover .mx-grammys__head-caret { color: #2B988F; }
.mx-grammys.is-collapsed .mx-grammys__head-caret { transform: rotate(-90deg); }
.mx-grammys.is-collapsed .mx-grammys__list      { display: none; }
.mx-grammys__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mx-grammys__row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #1a1d2e;
    border-radius: 4px;
    padding: 2px 4px;
    margin-left: -4px;
    /* Belt-and-braces against intrinsic-content sizing of the parent
       column: rows are explicit-width so the row text can't push the
       container open. */
    width: 100%;
    min-width: 0;
}
.mx-grammys__icon {
    font-size: 14px !important;
    color: #b9bcd0;
    flex-shrink: 0;
    margin-top: 1px;
}
.mx-grammys__row.is-win .mx-grammys__icon { color: #d4a017; }

/* Clickable rows — open the Grammy browser filtered to this category.
   Mirrors .fp-oscars__row hover treatment in the film picker. */
.mx-grammys__row[data-grammy-cat] {
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}
.mx-grammys__row[data-grammy-cat]:hover,
.mx-grammys__row[data-grammy-cat]:focus-visible {
    background: rgba(43,152,143,0.10);
    color: #1b6b62;
    outline: none;
}
.mx-grammys__row[data-grammy-cat]:hover .mx-grammys__icon,
.mx-grammys__row[data-grammy-cat]:focus-visible .mx-grammys__icon {
    color: #1b6b62;
}
.mx-grammys__row.is-win[data-grammy-cat]:hover .mx-grammys__icon,
.mx-grammys__row.is-win[data-grammy-cat]:focus-visible .mx-grammys__icon {
    color: #d4a017;
}
.mx-grammys__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.25;
}
.mx-grammys__label {
    /* Inherits row color (so hover/win states still apply). Truncate
       on overflow so long category names ellipsize rather than
       pushing the column wider. */
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mx-grammys__year {
    color: #8a8da8;
    font-weight: 400;
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
}
.mx-grammys__nominee {
    color: #8a8da8;
    font-size: 0.68rem;
    font-weight: 400;
    margin-top: 1px;
    /* Match the label's truncation contract so multi-producer
       credits never escape the capped block width. */
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards with the favourite/backlog strip (albumPickerActsHtml) — the strip
   owns the bottom of the cover, so the WINNER banner moves to the top. */
.mx-grammy__card--acts .mx-grammy__win-banner {
    top: 0;
    bottom: auto;
}

/* Phones: the category list grows to its longest label above (max-content,
   up to 95vw from wherever the box starts), which ran off the right edge and
   made the page scroll sideways. Here it's screen-width minus the gutters,
   never scrolls sideways, and long names wrap to two lines then end in "…". */
@media (max-width: 991px) {
    .mx-grammy-combo__dropdown {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        min-width: 0;
        overflow-x: hidden;
        max-height: 60vh;
    }
    .mx-grammy-combo__option {
        white-space: normal;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        min-height: 44px;
    }
    .mx-grammy-combo__option-label {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }
}

/* ── Category sheet (phones) ──────────────────────────────────────────
   The category box opens a native-style bottom sheet instead of a dropdown:
   grab handle, "Category" + ✕, an optional search field, then the list as
   big rows (two-line names, ✓ on the current pick). The box is read-only on
   phones so tapping it doesn't raise the keyboard (embedded-pick-album-
   grammys.js, bindCategoryCombo). Desktop keeps the dropdown. */
.mx-grammy-sheet__head,
.mx-grammy-sheet-scrim { display: none; }

@media (max-width: 991px) {
    /* The box: looks like a select, with a real chevron. */
    .mx-grammy-combo__input {
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
        padding-left: 14px;
        background: #f3f5f8;
        border-color: transparent;
        cursor: pointer;
        caret-color: transparent;
    }
    .mx-grammy-combo__chevron { pointer-events: none; }

    .mx-grammy-sheet-scrim {
        position: fixed;
        inset: 0;
        z-index: 9600;
        background: rgba(10, 16, 24, .45);
    }
    html.mx-grammy-sheet-open .mx-grammy-sheet-scrim { display: block; }

    .mx-grammy-combo__dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9601;
        width: 100%;
        max-width: none;
        min-width: 0;
        max-height: 78vh;
        max-height: 78dvh;
        border: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, .22);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .mx-grammy-combo__dropdown.is-open { animation: mxGrammySheetUp .28s cubic-bezier(0.32, 0.72, 0, 1); }
    @keyframes mxGrammySheetUp { from { transform: translateY(100%); } to { transform: none; } }

    /* Header stays put while the list scrolls under it. */
    .mx-grammy-sheet__head {
        display: block;
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding: 8px 16px 10px;
        border-bottom: 1px solid #eef0f4;
    }
    .mx-grammy-sheet__grab {
        display: block;
        width: 38px;
        height: 5px;
        margin: 0 auto 8px;
        border-radius: 99px;
        background: #d6d9e0;
    }
    .mx-grammy-sheet__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .mx-grammy-sheet__title { font-size: 1.1rem; font-weight: 800; color: #1a1d2e; }
    .mx-grammy-sheet__close {
        width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
        background: #f0f2f5; color: #1a1d2e;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .mx-grammy-sheet__close .material-icons { font-size: 20px; }
    .mx-grammy-sheet__searchwrap { position: relative; }
    .mx-grammy-sheet__searchwrap .material-icons {
        position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
        font-size: 20px; color: #9aa0a8; pointer-events: none;
    }
    .mx-grammy-sheet__search {
        width: 100%;
        height: 44px;
        padding: 0 14px 0 40px;
        border: 1.5px solid transparent;
        border-radius: 12px;
        background: #f3f5f8;
        font-size: 16px;
        color: #1a1d2e;
        outline: none;
    }
    .mx-grammy-sheet__search:focus { background: #fff; border-color: #2B988F; }

    /* Rows */
    .mx-grammy-combo__option {
        min-height: 52px;
        padding: 10px 16px;
        gap: 12px;
        font-size: 0.98rem;
        border-bottom: 1px solid #f1f3f6;
    }
    .mx-grammy-combo__option.is-active,
    .mx-grammy-combo__option:hover { background: transparent; }   /* keyboard-nav highlight is desktop-only */
    .mx-grammy-combo__option:active { background: #f1f8f7; }
    .mx-grammy-combo__option-count {
        order: 2;
        font-size: .78rem;
        color: #8b90a0;
        font-variant-numeric: tabular-nums;
    }
    .mx-grammy-combo__option::after {
        content: 'check';
        order: 3;
        font-family: 'Material Icons';
        font-size: 22px;
        line-height: 1;
        color: #2B988F;
        visibility: hidden;
        -webkit-font-feature-settings: 'liga';
        font-feature-settings: 'liga';
    }
    .mx-grammy-combo__option.is-selected::after { visibility: visible; }
    .mx-grammy-combo__option.is-selected .mx-grammy-combo__option-label { font-weight: 700; color: #1f7a72; }
    .mx-grammy-combo__empty { padding: 20px 16px; text-align: center; }

    /* No page scrolling behind the sheet. */
    html.mx-grammy-sheet-open,
    html.mx-grammy-sheet-open body { overflow: hidden; }
}
