/* embedded-pick-album-grammys.css
   ───────────────────────────────
   Minimal Grammy browser surface that overlays the music-club picker
   when the "Grammys" pill is clicked. Card layout intentionally mirrors
   the Oscar browser (.fp-oscar__card) so the two feel like siblings. */

.mx-grammy-launch-pill .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 so it sits between 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;
}

/* 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;
}
.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(130px, 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;
}
.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;
}

.mx-grammy-browser__loadmore {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
/* Match the film picker's .fp-oscar__loadmore so the two browsers
   share the same primary-action treatment. */
.mx-grammy__loadmore {
    appearance: none; font: inherit; cursor: pointer;
    background: #0c3530; color: #fff; font-weight: 700; font-size: 0.86rem;
    border: 0; border-radius: 8px; padding: 8px 18px;
    transition: background 0.12s ease;
}
.mx-grammy__loadmore:hover     { background: #1b6b62; }
.mx-grammy__loadmore[disabled] { opacity: 0.6; cursor: not-allowed; }
.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;
}
