/* PW-328 Legends: tribute artist pages, home banner and card, autocomplete and PDP card.
   Also the publisher landing hero, which shares the Explore featured rail. */

/* Self-hosted Latin subsets (OFL, from Google Fonts) of the two typefaces the Legends designs use. */
@font-face {
    font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
    src: url("/fonts/legends/playfair-display-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("/fonts/legends/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.legends-serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-style: italic; }

/* ── Logo ─────────────────────────────────────────────────────────────── */
.legends-logo { display: inline-flex; align-items: flex-end; line-height: 1; white-space: nowrap; }
.legends-logo__mark { display: block; width: 30px; height: auto; }
.legends-logo__word {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-style: italic; font-weight: 700; font-size: 18px; color: #f4f6f8;
    margin: 0 0 1px -7px;
}
.legends-logo--light .legends-logo__word { color: #09283a; }
.legends-logo--sm .legends-logo__mark { width: 22px; }
.legends-logo--sm .legends-logo__word { font-size: 13px; margin-left: -5px; }

/* ── Shared night-sky surface ─────────────────────────────────────────── */
.legends-sky {
    position: relative; overflow: hidden; color: #f4f6f8;
    background:
        radial-gradient(ellipse 60% 70% at 72% 40%, rgba(233, 194, 123, .14), transparent 70%),
        linear-gradient(137deg, #05121c 0%, #0a1a2c 41%, #161b3a 74%);
}

/* ── Hero (Explore artist page) ───────────────────────────────────────── */
.legends-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: url("/images2/legends/hero-sparkles.svg") center / cover no-repeat; opacity: .9;
}
.legends-hero__inner {
    position: relative; box-sizing: border-box; max-width: 1512px; margin: 0 auto; min-height: 485px;
    padding: 20px 64px 56px;
    display: grid; grid-template-columns: minmax(0, 1fr) 373px; grid-template-rows: auto 1fr;
    column-gap: 56px; align-items: center;
}
.legends-hero__crumbs { grid-column: 1 / -1; align-self: start; font-size: 13px; color: rgba(255, 255, 255, .55); }
.legends-hero__crumbs a { color: inherit; text-decoration: none; }
.legends-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.legends-hero__crumbs-sep { margin: 0 8px; }
.legends-hero__meta { display: flex; align-items: center; gap: 14px; }
.legends-hero__meta-sep { flex: 0 0 auto; width: 1px; height: 12px; background: rgba(255, 255, 255, .3); }
.legends-years { font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.96px; color: #e9c27b; }
.legends-hero__name { margin: 18px 0 20px; font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -.5px; color: #f4f6f8; }
.legends-hero__tribute { font-family: Inter, "Helvetica Neue", Arial, sans-serif; max-width: 780px; margin: 0 0 18px; font-size: 22px; font-weight: 300; line-height: 1.45; color: #d1d5db; }
.legends-hero__quote { margin: 0; font-size: 19px; color: #ffe6b3; }
.legends-hero__portrait { position: relative; width: 373px; height: 373px; }
.legends-hero__portrait::before {
    content: ""; position: absolute; inset: -150px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(233, 194, 123, .26) 0%, rgba(233, 194, 123, .08) 40%, transparent 66%);
}
.legends-hero__photo {
    position: absolute; top: 50%; left: 50%; width: 330px; height: 330px; transform: translate(-50%, -50%);
    border-radius: 50%; object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.legends-hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 991px) {
    .legends-hero__inner { padding: 16px 32px 40px; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 32px; min-height: 0; }
    .legends-hero__portrait { width: 260px; height: 260px; }
    .legends-hero__photo { width: 230px; height: 230px; }
    .legends-hero__name { font-size: 64px; }
    .legends-hero__tribute { font-size: 18px; }
}
@media (max-width: 767px) {
    /* Mobile design places the sparkles layer at its natural size, offset left, not stretched to cover. */
    .legends-hero::before { background: url("/images2/legends/hero-sparkles.svg") -872px 0 / 1441.9px 484.768px no-repeat; }
    .legends-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 16px 28px; }
    .legends-hero__crumbs { order: -2; align-self: flex-start; text-align: left; font-size: 12px; }
    .legends-hero__portrait { order: -1; width: 230px; height: 230px; margin: 16px 0 28px; }
    .legends-hero__photo { width: 204px; height: 204px; }
    .legends-hero__meta { justify-content: center; gap: 10px; }
    .legends-hero__name { margin: 8px 0; font-size: 48px; letter-spacing: .48px; line-height: 1.1; }
    .legends-hero__tribute { font-size: 16px; font-weight: 300; line-height: 1.5; margin-bottom: 8px; }
    .legends-hero__quote { font-size: 15px; }
}

/* ── Artist card (Default / Compact / Mini) ───────────────────────────── */
/* The card-bg*.svg files are the Figma "Background" layers (gradient, glows, stars, sparkles, grain,
   border) at each variant's exact size, so the card dimensions below are fixed to match them. */
.legends-card {
    position: relative; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between;
    flex: 0 0 auto; width: 232px; height: 360px; padding: 24px; overflow: hidden; border-radius: 12px;
    box-shadow: 0 10px 24px -6px rgba(10, 26, 43, .28);
    background: #0a1a2c url("/images2/legends/card-bg.svg") 0 0 / 100% 100% no-repeat;
    color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.legends-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 230, 179, 0); transition: box-shadow .2s;
}
.legends-card:hover, .legends-card:focus-visible { color: #fff; text-decoration: none; transform: translateY(-2px); }
.legends-card:hover::after, .legends-card:focus-visible::after { box-shadow: inset 0 0 0 1px rgba(255, 230, 179, .7); }
.legends-card__top { position: relative; display: flex; flex-direction: column; gap: 32px; width: 100%; }
.legends-card__portrait { position: relative; display: flex; justify-content: center; width: 100%; }
.legends-card__photo { display: block; width: 164px; height: 164px; border-radius: 50%; object-fit: cover; }
.legends-card__ring {
    position: absolute; left: calc(50% + 1px); top: 50%; width: 280.753px; height: 280.753px; max-width: none;
    transform: translate(-50%, -50%); pointer-events: none;
}
.legends-card__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.legends-card__name { font-size: 20px; font-weight: 700; line-height: 1.5; color: #fff; overflow-wrap: break-word; }
.legends-card .legends-years { line-height: normal; white-space: nowrap; }
.legends-card__cta {
    position: relative; font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: .13px; color: #ffe6b3; opacity: .9; white-space: nowrap;
}

.legends-card--compact, .legends-card--mini { width: 168px; padding: 16px; border-radius: 10px; }
.legends-card--compact { height: 304px; background-image: url("/images2/legends/card-bg-compact.svg"); }
.legends-card--mini { height: 231px; background-image: url("/images2/legends/card-bg-mini.svg"); }
.legends-card--mini .legends-card__top { gap: 26px; }
.legends-card--compact .legends-card__photo, .legends-card--mini .legends-card__photo { width: 130px; height: 130px; }
.legends-card--compact .legends-card__ring, .legends-card--mini .legends-card__ring { width: 246.753px; height: 246.753px; }
.legends-card--compact .legends-card__info, .legends-card--mini .legends-card__info { gap: 3px; }
.legends-card--compact .legends-card__name, .legends-card--mini .legends-card__name { font-size: 18px; }
.legends-card--compact .legends-years, .legends-card--mini .legends-years { font-size: 12px; letter-spacing: 1.68px; }
.legends-card--compact .legends-card__cta { font-size: 12px; letter-spacing: .12px; }

/* ── Home banner strip ────────────────────────────────────────────────── */
.legends-banner {
    position: relative; display: block; height: 60px; overflow: hidden; color: #f4f6f8; text-decoration: none;
    background: linear-gradient(to right, #05121c, #0b1a2e, #161b3a);
}
.legends-banner:hover, .legends-banner:focus-visible { text-decoration: none; color: #f4f6f8; }
.legends-banner::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: url("/images2/legends/banner-sparkles.svg") center / cover no-repeat;
}
.legends-banner::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(233, 194, 123, .55), transparent);
}
.legends-banner__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; height: 100%; padding: 0 16px; }
.legends-banner__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .22); }
.legends-banner__text { font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 15px; color: #d1d5db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legends-banner__text strong { color: #fff; font-weight: 700; }
.legends-banner__text .legends-years { font-size: 15px; letter-spacing: 1px; margin-left: 4px; }
.legends-banner__cta {
    padding: 7px 16px; border: 1px solid rgba(233, 194, 123, .5); border-radius: 999px;
    background: rgba(233, 194, 123, .12); font-size: 14px; font-weight: 600; color: #ffe6b3; white-space: nowrap;
}
.legends-banner:hover .legends-banner__cta { background: rgba(233, 194, 123, .22); }
@media (max-width: 767px) {
    .legends-banner { height: auto; min-height: 56px; }
    .legends-banner__inner { justify-content: flex-start; gap: 10px; min-height: 56px; padding: 6px 16px; }
    .legends-banner__divider { flex: 0 0 auto; height: 18px; background: #e9c27b; opacity: .35; }
    .legends-banner__text + .legends-banner__divider, .legends-banner__cta { display: none; }
    .legends-banner__text { flex: 1 1 auto; font-size: 13px; white-space: normal; line-height: normal; }
    .legends-banner__text strong { font-weight: 600; color: #f4f6f8; }
    .legends-banner__text .legends-years { font-size: 13px; letter-spacing: .96px; margin-left: 0; }
    .legends-banner .legends-logo { flex: 0 0 auto; }
}

/* ── Home "Sheet music from …" row ────────────────────────────────────── */
/* Design: the 30px text lines sit on the bottom of the logo's 42.5px halo; the wordmark sits ~5px above it. */
.legends-row-title {
    display: inline-flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 16px;
    font-size: 20px; font-weight: 400; line-height: 1.5; color: #000;
}
.legends-row-title .legends-logo__mark { width: 44px; }
.legends-row-title .legends-logo__word { font-size: 20px; letter-spacing: -.6px; margin: 0 0 5px -14.6px; }
.legends-row-title .browse-carousel-view-all {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 20px; font-weight: 700; color: #000; text-decoration: none; white-space: nowrap;
}
.legends-row-title .browse-carousel-view-all svg { display: block; width: 24px; height: 24px; }
.legends-row-title .browse-carousel-view-all:hover { text-decoration: underline; }
.legends-row .browse-carousel-row { align-items: stretch; }
.legends-row .legends-card { scroll-snap-align: start; }
@media (max-width: 767px) {
    /* One line: logo, title and a chevron link; the scroll buttons do not fit beside it. */
    .legends-row-title { flex-wrap: nowrap; gap: 8px; min-width: 0; font-size: 16px; color: #000; white-space: nowrap; }
    .legends-row-title .legends-logo { flex: 0 0 auto; }
    .legends-row-title .legends-logo__mark { width: 35px; }
    .legends-row-title .legends-logo__word { font-size: 16px; letter-spacing: -.48px; margin: 0 0 4px -9.5px; }
    .legends-row-title .browse-carousel-view-all { font-size: 0; gap: 0; }
    .legends-row .browse-carousel-nav { display: none; }
    .legends-row .browse-carousel-row { gap: 8px; }
    .legends-row .legends-card--default { width: 168px; height: 304px; padding: 16px; border-radius: 10px; background-image: url("/images2/legends/card-bg-compact.svg"); }
    .legends-row .legends-card--default .legends-card__photo { width: 130px; height: 130px; }
    .legends-row .legends-card--default .legends-card__ring { width: 246.753px; height: 246.753px; }
    .legends-row .legends-card--default .legends-card__info { gap: 3px; }
    .legends-row .legends-card--default .legends-card__name { font-size: 18px; }
    .legends-row .legends-card--default .legends-years { font-size: 12px; letter-spacing: 1.68px; }
    .legends-row .legends-card--default .legends-card__cta { font-size: 12px; letter-spacing: .12px; }
}

/* ── Explore featured rail (Top 5 / Featured selections) ──────────────── */
.legends-featured-note { margin: -6px 0 14px; font-size: 13px; color: #5a6670; }
.legends-rank { display: none; }
@media (max-width: 767px) {
    /* Mobile Top 5: narrow cards with the rank hanging off each card's left edge. */
    .signature-artist-carousel:has(.legends-rank) .signature-artist-carousel-heading h2 { font-size: 20px; color: #1e2225; }
    .signature-artist-carousel:has(.legends-rank) .signature-artist-carousel-controls { display: none; }
    .signature-artist-carousel-row:has(.legends-rank) { gap: 44px; padding-left: 22px; margin-right: -16px; padding-right: 16px; }
    .signature-artist-carousel-card:has(.legends-rank) { flex: 0 0 162px; min-width: 0; }
    .signature-artist-carousel-card:has(.legends-rank) .browse-card-title { font-size: 11px; line-height: 1.3; color: #09283a; }
    .signature-artist-carousel-card:has(.legends-rank) .browse-card-artist { margin-top: 2px; font-size: 10px; color: #666; }
    .signature-artist-carousel-card:has(.legends-rank) .browse-card-tag { font-size: 9px; }
    .signature-artist-carousel-card:has(.legends-rank) .arrangement-play-btn svg { width: 23px; height: 23px; }
    .legends-rank {
        display: block; position: absolute; left: -22px; top: 100px; z-index: 3; pointer-events: none;
        font-size: 100px; font-weight: 700; line-height: 1; color: #fff;
        -webkit-text-stroke: 3px #1f6fa8; paint-order: stroke fill;
    }
}

/* ── Search + sort row and grid heading on landing pages ──────────────── */
.legends-search-row { display: flex; align-items: center; gap: 16px; margin: 14px 0 24px; }
.legends-search-row + .signature-artist-carousel { margin-top: 24px; }
.legends-search-row .signature-artist-search { flex: 0 1 470px; margin: 0; }
.legends-search-row .signature-artist-search input { padding-right: 84px; }
.legends-search-row .signature-artist-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.signature-artist-search > .signature-artist-search__clear {
    position: absolute; top: 3px; right: 46px; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.signature-artist-search > .signature-artist-search__clear[hidden] { display: none; }
.legends-search-row .browse-sort { margin-left: auto; }
.legends-grid-heading { margin: 8px 0 14px; }
.legends-grid-heading h2 { margin: 0; color: #20252b; font-size: 22px; font-weight: 700; }
.legends-grid-heading p { margin: 4px 0 0; font-size: 13px; color: #5a6670; }
@media (min-width: 1200px) {
    .browse-grid.legends-grid { grid-template-columns: repeat(4, minmax(0, 225px)); justify-content: center; }
}
@media (max-width: 767px) {
    .legends-search-row { flex-wrap: wrap; }
    .legends-search-row .signature-artist-search { flex-basis: 100%; }
    .legends-search-row .browse-sort { display: none; }
}

/* ── PDP: legend card beside the title ────────────────────────────────── */
.legends-pdp-row { display: flex; align-items: flex-end; gap: 20px; }
.legends-pdp-row__text { min-width: 0; flex: 1 1 auto; }
.legends-pdp-row .split-layout-pdp-title-meta { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; }
.legends-pdp-row .split-layout-pdp-header-rating { gap: 8px; }
.legends-pdp-row .split-layout-pdp-header-stars { display: inline-flex; gap: 8px; font-size: 15px; letter-spacing: 0; }
.legends-pdp-row .split-layout-pdp-header-rating-avg { font-size: 14px; font-weight: 700; color: #1e2225; }
.legends-pdp-row .split-layout-pdp-read-reviews-link { padding: 8px 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #1e2225; }
.legends-pdp-row .split-layout-pdp-title-row { margin-bottom: 0; }
.legends-pdp-byline { margin-top: 8px; }
.legends-pdp-details { margin-top: 20px; }
.legends-pdp-details .split-layout-pdp-info-row { gap: 16px; }
@media (min-width: 901px) {
    .legends-pdp-details .split-layout-pdp-header-byline,
    .legends-pdp-details .split-layout-pdp-info-line-break { display: none; }
}
@media (max-width: 900px) {
    /* The PDP flattens into one ordered column on mobile; the card row takes the title's slot. */
    .legends-pdp-row { order: var(--split-layout-pdp-ord-title, 6); gap: 16px; padding: 16px 16px 0; margin-bottom: 24px; }
    .legends-pdp-row .split-layout-pdp-song-title,
    .legends-pdp-row .split-layout-pdp-title-meta { padding-left: 0; padding-right: 0; margin-bottom: 0; }
    .legends-pdp-row .split-layout-pdp-song-title { margin-bottom: 12px; font-size: 24px; }
    .legends-pdp-byline { display: none; }
    .legends-pdp-details { margin-top: 0; }
    .legends-pdp-details .split-layout-pdp-info-line-break { display: none; }
}

/* ── Publisher landing hero ───────────────────────────────────────────── */
.publisher-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    margin: 16px 0 28px; padding: 40px 48px; border-radius: 8px; background: #213040; color: #fff;
}
.publisher-hero__name { margin: 0 0 10px; font-size: 36px; font-weight: 700; line-height: 1.2; color: #fff; }
.publisher-hero__kicker { margin: 0 0 10px; font-size: 18px; color: #d1d9e0; }
.publisher-hero__tagline { max-width: 420px; margin: 0 0 22px; font-size: 16px; line-height: 1.45; color: #f4f6f8; }
.publisher-hero__cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px;
    background: #fff; color: #1d2733; font-size: 15px; font-weight: 600; text-decoration: none;
}
.publisher-hero__cta:hover { background: #eef2f5; color: #1d2733; text-decoration: none; }
.publisher-hero__logo {
    flex: 0 0 240px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px dashed rgba(255, 255, 255, .5); border-radius: 6px; text-align: center;
}
.publisher-hero__logo img { max-width: 200px; max-height: 90px; }
.publisher-hero__logo-name { font-size: 22px; letter-spacing: 6px; text-transform: uppercase; }
.publisher-hero__logo-sub { margin-top: 6px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.publisher-intro { max-width: 840px; margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #20252b; }
@media (max-width: 767px) {
    .publisher-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; margin-top: 8px; }
    .publisher-hero__name { font-size: 26px; }
    .publisher-hero__logo { display: none; }
}
