/* Focused artist discovery page. The shared design system owns the palette,
   header, footer, city picker, and mobile navigation. */

.page-discover {
    background: var(--bg);
}

.discover-page {
    width: min(100%, 1540px);
    min-height: calc(100vh - 120px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 76px) clamp(20px, 3.5vw, 52px) 80px;
}

.discover-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1;
}

.discover-kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    margin-right: 8px;
    background: var(--accent);
}

.discover-hero {
    display: grid;
    grid-template-columns: minmax(300px, 0.86fr) minmax(440px, 1.14fr);
    align-items: end;
    gap: clamp(36px, 6vw, 100px);
    padding: 0 0 clamp(36px, 5vw, 64px);
}

.discover-hero h1 {
    max-width: 690px;
    margin: 12px 0 14px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
}

.discover-hero-copy > p {
    max-width: 570px;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.98rem, 1.35vw, 1.14rem);
    font-weight: 600;
    line-height: 1.55;
}

.discover-search-shell {
    width: 100%;
}

.discover-form {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 74px;
    padding: 8px 8px 8px 58px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 999px;
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 0.15s, box-shadow 0.15s;
}

.discover-form:focus-within {
    transform: translate(-1px, -1px);
    box-shadow: 7px 7px 0 var(--ink);
}

.discover-form-icon {
    position: absolute;
    left: 22px;
    width: 24px;
    height: 24px;
    color: var(--teal);
}

.discover-form input {
    min-width: 0;
    flex: 1;
    padding: 8px 14px 8px 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    -webkit-appearance: none;
}

.discover-form input::-webkit-search-cancel-button {
    display: none;
}

.discover-form input::placeholder {
    color: #718087;
}

.discover-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 22px;
    color: var(--paper);
    background: var(--accent);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.discover-submit:hover {
    background: var(--accent-light);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
}

.discover-submit:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.discover-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.discover-submit svg {
    width: 18px;
    height: 18px;
}

.discover-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 8px 0;
}

.discover-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--ink);
    background: rgba(255, 255, 245, 0.58);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
}

.discover-location:hover {
    background: var(--paper);
}

.discover-location svg {
    width: 14px;
    height: 14px;
}

.discover-location-change {
    color: var(--teal);
    font-size: 0.68rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.discover-form-hint {
    color: rgba(26, 46, 53, 0.72);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.discover-start {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 60px);
    max-width: 930px;
    margin: 22px auto 0;
    padding: clamp(24px, 4vw, 44px);
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 30px;
    box-shadow: 5px 5px 0 var(--ink);
}

.discover-start-record {
    position: relative;
    width: 170px;
    height: 170px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, var(--ink) 0 3px, #253e46 4px 8px);
    box-shadow: 4px 4px 0 var(--accent);
}

.discover-start-record::before,
.discover-start-record::after,
.discover-start-record span {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.discover-start-record::before {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border: 2px solid var(--paper);
}

.discover-start-record::after {
    width: 15px;
    height: 15px;
    background: var(--paper);
    border: 2px solid var(--ink);
}

.discover-start-record span {
    width: 118px;
    height: 118px;
    border: 1px solid rgba(255, 255, 245, 0.18);
}

.discover-start h2,
.discover-loading h2,
.discover-error h2 {
    margin: 8px 0 9px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.discover-start p,
.discover-error p {
    max-width: 600px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
}

.discover-starter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.discover-starter-chips button {
    padding: 8px 13px;
    color: var(--ink);
    background: var(--bg);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 1.5px 1.5px 0 var(--ink);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.73rem;
    font-weight: 800;
}

.discover-starter-chips button:hover {
    background: var(--accent);
    color: var(--paper);
}

.discover-loading {
    padding-top: 38px;
    border-top: 3px dashed var(--ink);
}

.discover-loading-copy {
    margin-bottom: 24px;
}

.discover-skeleton-row {
    display: flex;
    gap: 14px;
    overflow: hidden;
}

.discover-skeleton-card {
    flex: 0 0 236px;
    min-height: 310px;
    padding: 30px 20px;
    background: rgba(255, 255, 245, 0.58);
    border: 2.5px solid rgba(26, 46, 53, 0.42);
    border-radius: 24px;
}

.discover-skeleton-circle,
.discover-skeleton-line {
    display: block;
    background: linear-gradient(90deg, rgba(61,107,125,.12), rgba(255,255,245,.85), rgba(61,107,125,.12));
    background-size: 220% 100%;
    animation: discoverShimmer 1.3s linear infinite;
}

.discover-skeleton-circle {
    width: 126px;
    height: 126px;
    margin: 0 auto 28px;
    border-radius: 50%;
}

.discover-skeleton-line {
    width: 86%;
    height: 14px;
    margin: 12px auto;
    border-radius: 999px;
}

.discover-skeleton-line.short {
    width: 52%;
}

@keyframes discoverShimmer {
    to { background-position: -220% 0; }
}

.artist-discovery-results {
    display: flex;
    flex-direction: column;
}

.discover-anchor {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
    padding: 16px 20px;
    background: rgba(255, 255, 245, 0.68);
    border: 2.5px solid var(--ink);
    border-radius: 24px;
    box-shadow: 3px 3px 0 var(--ink);
}

.discover-anchor-art {
    position: relative;
    display: grid;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    color: var(--paper);
    background: var(--teal);
    border: 2.5px solid var(--ink);
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 900;
}

.discover-anchor-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-anchor-copy {
    min-width: 0;
}

.discover-anchor-copy h2 {
    margin: 3px 0;
    color: var(--ink);
    font-size: clamp(1.4rem, 2.5vw, 2.05rem);
    font-weight: 900;
    line-height: 1.05;
}

.discover-anchor-copy p {
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
}

.discover-anchor-link {
    flex-shrink: 0;
    margin-left: auto;
    padding: 9px 13px;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.discover-anchor-link:hover {
    color: var(--paper);
    background: var(--teal);
}

.discover-rail-section {
    padding: 34px 0 44px;
    border-top: 3px dashed var(--ink);
}

.discover-rail-section + .discover-rail-section {
    padding-top: 34px;
}

.discover-section-heading {
    margin-bottom: 20px;
}

.discover-section-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.discover-section-heading h2 {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.6vw, 3.3rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
}

.discover-section-heading p {
    margin-top: 8px;
    color: rgba(26, 46, 53, 0.74);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.discover-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 15px;
    color: var(--paper);
    background: var(--teal);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.discover-count:empty {
    display: none;
}

.discover-count-muted {
    color: var(--ink);
    background: rgba(255, 255, 245, 0.58);
    border: 1.5px solid var(--ink);
}

.discover-grid-wrap {
    width: 100%;
}

.discover-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 5px 4px 8px;
}

.discover-card-grid:not(.is-expanded) .discover-card:nth-child(n + 11) {
    display: none;
}

.discover-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 318px;
    flex-direction: column;
    align-items: center;
    padding: 22px 17px 18px;
    overflow: hidden;
    text-align: center;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.discover-card.is-nearby {
    border-color: var(--accent);
}

.discover-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

.discover-card-hit-target {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: inherit;
    cursor: pointer;
}

.discover-card-hit-target:focus-visible {
    outline: 4px solid var(--teal);
    outline-offset: -7px;
}

.discover-card > :not(.discover-card-hit-target) {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.discover-card-art {
    position: relative;
    display: grid;
    width: 126px;
    height: 126px;
    margin: 0 auto 25px;
    place-items: center;
    flex-shrink: 0;
    color: var(--paper);
    background: var(--teal);
    border: 2.5px solid var(--ink);
    border-radius: 50%;
    font-size: 1.55rem;
    font-weight: 900;
}

.discover-card-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.discover-card-play {
    position: absolute;
    right: -1px;
    bottom: -12px;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--paper);
    background: var(--accent);
    border: 2.5px solid var(--ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    pointer-events: auto;
}

.discover-card-play:hover,
.discover-card-play.is-playing {
    background: var(--teal);
}

.discover-card-play:disabled {
    cursor: wait;
    opacity: 0.65;
}

.discover-card-play svg {
    width: 16px;
    height: 16px;
}

.discover-card-play .play-triangle {
    transform: translateX(1px);
}

.discover-card-name {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.discover-card:hover .discover-card-name {
    color: var(--accent);
}

.discover-card-genre {
    display: inline-flex;
    margin: 7px 0 0;
    padding: 3px 10px;
    color: var(--ink);
    background: rgba(61, 107, 125, 0.1);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.2;
}

.discover-card-event {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.discover-card-near-badge {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 3px 8px;
    color: var(--paper);
    background: var(--accent);
    border-radius: 999px;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.discover-card-date {
    color: var(--accent);
    font-weight: 900;
}

.discover-card-venue {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.discover-card-city {
    margin-top: 2px;
    color: var(--text-muted);
}

.discover-card-page-link {
    margin-top: 14px;
    color: var(--teal);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.discover-show-more {
    display: block;
    min-width: 190px;
    margin: 20px auto 0;
    padding: 11px 18px;
    color: var(--ink);
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
}

.discover-show-more:hover {
    color: var(--paper);
    background: var(--teal);
}

.discover-empty-rail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 18px 20px;
    background: rgba(255, 255, 245, 0.58);
    border: 2px dashed var(--ink);
    border-radius: 18px;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
}

.discover-empty-rail button,
.discover-error button {
    margin-left: auto;
    padding: 8px 13px;
    color: var(--paper);
    background: var(--teal);
    border: 2px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
}

.discover-error {
    max-width: 660px;
    margin: 34px auto 0;
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 28px;
    box-shadow: 5px 5px 0 var(--ink);
}

.discover-error .discover-kicker {
    margin: 0 auto;
}

.discover-error p {
    margin: 0 auto;
}

.discover-error button {
    margin: 20px auto 0;
}

.page-discover .city-picker-option {
    width: 100%;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
}

.page-discover .city-picker-option > span,
.page-discover .city-picker-option .metro-name,
.page-discover .city-picker-option .metro-cities {
    display: block;
}

.discover-city-picker-status {
    padding: 28px 12px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .discover-page {
        padding-top: 30px;
    }

    .discover-hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .discover-hero h1 {
        max-width: 680px;
        font-size: clamp(3rem, 11vw, 5.2rem);
    }

    .discover-search-shell {
        max-width: 720px;
    }

    .discover-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .page-discover {
        padding-bottom: var(--bottom-nav-clearance);
    }

    .discover-page {
        padding: 26px 16px 42px;
    }

    .discover-hero {
        padding-bottom: 30px;
    }

    .discover-hero h1 {
        margin-top: 10px;
        font-size: clamp(2.7rem, 14vw, 4.4rem);
    }

    .discover-hero-copy > p {
        font-size: 0.92rem;
    }

    .discover-form {
        min-height: 62px;
        padding: 6px 6px 6px 47px;
        border-width: 2.5px;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .discover-form-icon {
        left: 17px;
        width: 20px;
        height: 20px;
    }

    .discover-form input {
        font-size: 1rem;
    }

    .discover-submit {
        min-height: 46px;
        padding: 0 14px;
    }

    .discover-submit svg {
        display: none;
    }

    .discover-form-meta {
        align-items: flex-start;
        padding-top: 12px;
    }

    .discover-form-hint {
        display: none;
    }

    .discover-start {
        grid-template-columns: 1fr;
        margin-top: 8px;
        padding: 25px 22px 28px;
        border-radius: 24px;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .discover-start-record {
        width: 116px;
        height: 116px;
    }

    .discover-start-record::before {
        width: 46px;
        height: 46px;
    }

    .discover-start-record span {
        width: 82px;
        height: 82px;
    }

    .discover-starter-chips {
        gap: 7px;
    }

    .discover-anchor {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 28px;
        padding: 14px;
        border-radius: 20px;
    }

    .discover-anchor-art {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
    }

    .discover-anchor-copy {
        flex: 1;
    }

    .discover-anchor-link {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .discover-rail-section {
        margin-right: -16px;
        margin-left: -16px;
        padding: 28px 0 34px;
    }

    .discover-section-heading {
        padding: 0 16px;
    }

    .discover-section-heading h2 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

    .discover-count {
        min-height: 29px;
        padding: 0 11px;
        font-size: 0.68rem;
    }

    .discover-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        padding: 5px 16px 8px;
    }

    .discover-card {
        min-height: 284px;
        padding: 17px 12px 15px;
        border-radius: 22px;
    }

    .discover-card-art {
        width: 98px;
        height: 98px;
        margin-bottom: 23px;
    }

    .discover-card-play {
        width: 36px;
        height: 36px;
    }

    .discover-card-name {
        font-size: 0.88rem;
    }

    .discover-card-event {
        font-size: 0.66rem;
    }

    .discover-empty-rail {
        margin: 0 16px;
    }

    .discover-empty-rail button {
        margin-left: 0;
    }

    .discover-skeleton-row {
        margin-right: -16px;
        overflow: hidden;
    }

    .discover-skeleton-card {
        flex-basis: 174px;
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .discover-skeleton-circle,
    .discover-skeleton-line {
        animation: none;
    }

}

@media (min-width: 901px) and (max-width: 1200px) {
    .discover-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
