/* Compact catalog card overrides for the public beat list. */
.beat-grid {
    gap: 16px;
}

.beat-card-compact {
    gap: 10px;
    padding: 14px;
}

.beat-card-media {
    position: relative;
    aspect-ratio: 1 / .92;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(229,153,0,.24);
    background: #080606;
}

.beat-card-media::before,
.beat-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.beat-card-media::before {
    background:
        linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.04) 34%, rgba(0,0,0,.02) 70%, rgba(0,0,0,.46) 100%),
        radial-gradient(circle at 16% 10%, rgba(229,153,0,.13), transparent 35%);
}

.beat-card-media::after {
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 -50px 64px rgba(0,0,0,.22);
}

.beat-card-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    aspect-ratio: auto;
    z-index: 1;
    cursor: pointer;
}

.beat-card-title-block {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 108px;
    z-index: 4;
    display: grid;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.beat-card-title-block p {
    margin: 0;
    font-size: 9px;
    letter-spacing: .16em;
}

.beat-card-title-block h2 {
    margin: 0;
    color: #fff4e8;
    font-size: clamp(22px, 2.35vw, 30px);
    text-shadow: 0 8px 28px rgba(0,0,0,.72);
}

.beat-card-title-block small {
    color: rgba(255,244,232,.82);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 5px 18px rgba(0,0,0,.7);
}

.beat-chip-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    justify-content: flex-end;
    max-width: 104px;
    gap: 5px;
}

.beat-chip-overlay span {
    min-height: 22px;
    padding: 0 7px;
    border-color: rgba(255,244,232,.2);
    background: rgba(0,0,0,.42);
    color: #fff4e8;
    font-size: 8px;
    letter-spacing: .08em;
    backdrop-filter: blur(10px);
}

.beat-card-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    padding: 10px 9px 7px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.04) 24%, rgba(0,0,0,.25) 76%, rgba(0,0,0,.5) 100%);
}

.beat-card-wave .beat-wave-player-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px;
    min-height: 48px;
    border-color: rgba(255,244,232,.14);
    background: rgba(8,6,6,.27);
    box-shadow: 0 -10px 28px rgba(0,0,0,.14), inset 0 0 0 1px rgba(255,255,255,.03);
    backdrop-filter: blur(7px) saturate(1.05);
}

.beat-card-wave .beat-wave-play {
    width: 36px;
    height: 36px;
    min-height: 36px;
    background: rgba(229,153,0,.84);
    border-color: rgba(255,244,232,.35);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    font-size: 13px;
}

.beat-card-wave .beat-wave-player.is-playing .beat-wave-play {
    background: rgba(163,21,18,.82);
}

.beat-card-wave .beat-wave-body {
    gap: 0;
}

.beat-card-wave .beat-wave-canvas-wrap {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    border-color: rgba(255,244,232,.12);
    background:
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 20px 100%,
        linear-gradient(180deg, rgba(255,244,232,.035), rgba(0,0,0,.06));
}

.beat-card-wave .beat-wave-canvas-wrap canvas {
    height: 36px !important;
    max-height: 36px;
}

.beat-card-wave .beat-wave-time {
    display: none;
}

.beat-card-wave-empty {
    padding: 9px;
    color: rgba(255,244,232,.72);
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

.beat-card-footer {
    display: grid;
    gap: 9px;
    padding-top: 1px;
}

.beat-card-producer span {
    display: block;
    margin-bottom: 2px;
    color: var(--accent-2);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.beat-card-producer strong {
    display: block;
    color: #fff4e8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1;
}

.beat-card-prices {
    display: grid;
    gap: 7px;
}

.beat-card-compact .beat-price-line {
    font-size: 11px;
}

.beat-card-compact .button-small {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding-top: 11px;
    padding-bottom: 11px;
}

html.beat-modal-open,
html.beat-modal-open body {
    overflow: hidden;
}

.beat-shop-modal[hidden] {
    display: none;
}

.beat-shop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
}

.beat-shop-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(229,153,0,.16), transparent 28%),
        radial-gradient(circle at 80% 4%, rgba(122,2,1,.28), transparent 28%),
        rgba(0,0,0,.78);
    backdrop-filter: blur(12px);
}

.beat-shop-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    border: 1px solid rgba(229,153,0,.28);
    background: linear-gradient(145deg, rgba(18,9,9,.98), rgba(7,5,5,.98));
    box-shadow: 0 34px 140px rgba(0,0,0,.62);
    padding: clamp(20px, 3vw, 34px);
}

.beat-shop-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,244,232,.16);
    background: rgba(0,0,0,.34);
    color: #fff4e8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.beat-shop-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 36px);
}

.beat-shop-preview {
    display: grid;
    gap: 12px;
    align-content: start;
}

.beat-shop-art {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(circle at 25% 15%, rgba(229,153,0,.18), transparent 34%), linear-gradient(145deg, rgba(122,2,1,.42), rgba(8,6,6,.92));
    overflow: hidden;
}

.beat-shop-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beat-shop-art span {
    display: grid;
    place-items: end start;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: rgba(255,244,232,.32);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    letter-spacing: -.07em;
}

.beat-shop-preview h2 {
    margin: 0;
    color: #fff4e8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .92;
    letter-spacing: -.055em;
}

.beat-shop-preview p:not(.section-kicker),
.beat-shop-license p,
.beat-shop-license small,
.beat-shop-cart .account-muted,
.beat-shop-terms p {
    color: var(--muted);
    line-height: 1.55;
}

.beat-shop-panel {
    display: grid;
    gap: 16px;
    align-content: start;
}

.beat-shop-license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.beat-shop-license,
.beat-shop-cart {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.22);
    padding: 16px;
}

.beat-shop-license {
    display: grid;
    gap: 14px;
    align-content: space-between;
}

.beat-shop-license.is-disabled {
    opacity: .58;
}

.beat-shop-license h3 {
    margin: 0 0 6px;
    color: #fff4e8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    letter-spacing: -.035em;
}

.beat-shop-license strong,
.beat-shop-cart-summary strong {
    color: var(--accent-2);
    font-weight: 900;
}

.beat-shop-license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.beat-shop-license-actions .button-small.is-selected,
.beat-shop-license-actions .button-small:focus-visible {
    outline: 2px solid rgba(229,153,0,.65);
    outline-offset: 2px;
}

.beat-shop-cart {
    display: grid;
    gap: 14px;
    border-color: rgba(229,153,0,.28);
    background: rgba(229,153,0,.055);
}

.beat-shop-cart[hidden] {
    display: none;
}

.beat-shop-cart-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: #fff4e8;
}

.beat-shop-checkout {
    display: grid;
    gap: 14px;
}

.beat-shop-checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.beat-shop-checkout label {
    display: grid;
    gap: 6px;
    color: var(--accent-2);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.beat-shop-checkout input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.34);
    color: #fff4e8;
    padding: 14px;
    outline: none;
}

.beat-shop-checkout input:focus {
    border-color: rgba(229,153,0,.65);
}

.beat-shop-terms[hidden] {
    display: none;
}

.beat-shop-terms {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10005;
    width: min(560px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(229,153,0,.38);
    background:
        radial-gradient(circle at 16% 0%, rgba(229,153,0,.14), transparent 32%),
        linear-gradient(145deg, rgba(18,9,9,.99), rgba(7,5,5,.99));
    padding: 22px;
    box-shadow: 0 30px 120px rgba(0,0,0,.72), 0 0 0 999px rgba(0,0,0,.42);
}

.beat-shop-terms-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.beat-shop-terms-head strong {
    color: #fff4e8;
}

.beat-shop-terms-head button {
    border: 0;
    background: transparent;
    color: var(--accent-2);
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .beat-shop-layout,
    .beat-shop-license-grid,
    .beat-shop-checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .beat-card-title-block {
        right: 92px;
    }

    .beat-chip-overlay {
        max-width: 88px;
    }

    .beat-card-wave {
        padding: 9px 7px 6px;
    }

    .beat-card-wave .beat-wave-player {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .beat-card-wave .beat-wave-play {
        width: 36px;
        height: 36px;
        border-radius: 999px;
    }

    .beat-shop-modal {
        padding: 10px;
        place-items: stretch;
    }

    .beat-shop-dialog {
        max-height: 94vh;
        padding: 18px;
    }
}
