.beats-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 8%, rgba(122,2,1,.24), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(229,153,0,.10), transparent 24%),
        var(--bg);
}

.beats-shell {
    padding-top: 155px;
    padding-bottom: 120px;
}

.beats-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(24px, 4vw, 48px);
    align-items: end;
    margin-bottom: 34px;
}

.beats-hero h1,
.beat-detail-hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(60px, 9vw, 140px);
    line-height: .86;
    letter-spacing: -.07em;
}

.beats-hero p:not(.eyebrow),
.beat-detail-hero p:not(.eyebrow) {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.beat-filter-card,
.beat-card,
.beat-panel,
.beat-license-card,
.beat-download-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(18,9,9,.9), rgba(7,5,5,.9));
    box-shadow: 0 24px 90px rgba(0,0,0,.28);
}

.beat-filter-card,
.beat-panel {
    padding: clamp(22px, 3vw, 34px);
}

.beat-filter-form {
    display: grid;
    gap: 14px;
}

.beat-filter-form input,
.beat-license-card input,
.beat-license-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #080606;
    color: #f5f0e9;
    padding: 16px 17px;
    outline: none;
}

.beat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.beat-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.beat-art {
    position: relative;
    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-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beat-art span {
    position: absolute;
    inset: auto 18px 18px;
    color: rgba(255,244,232,.32);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    line-height: .85;
    letter-spacing: -.07em;
}

.beat-card h2,
.beat-panel h2,
.beat-license-card h3,
.beat-download-card h3 {
    margin: 0;
    color: #fff4e8;
    font-family: 'Space Grotesk', sans-serif;
    line-height: .98;
    letter-spacing: -.04em;
}

.beat-card h2 { font-size: 30px; }
.beat-panel h2 { font-size: clamp(32px, 4vw, 54px); }
.beat-license-card h3,
.beat-download-card h3 { font-size: 24px; }

.beat-meta-line,
.beat-card small,
.beat-license-card p,
.beat-download-card p,
.beat-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.beat-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.beat-chip-row span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(229,153,0,.24);
    background: rgba(229,153,0,.07);
    color: #fff4e8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.beat-card audio,
.beat-panel audio {
    width: 100%;
}

.beat-price-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #81776f;
    font-size: 12px;
}

.beat-price-line strong {
    color: var(--accent-2);
}

.beat-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: clamp(24px, 4vw, 42px);
    align-items: start;
}

.beat-detail-hero {
    margin-bottom: 34px;
}

.beat-license-list,
.beat-download-list {
    display: grid;
    gap: 14px;
}

.beat-license-card,
.beat-download-card {
    padding: 20px;
}

.beat-license-head,
.beat-download-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.beat-license-price {
    color: var(--accent-2);
    font-weight: 900;
    white-space: nowrap;
}

.beat-sold-banner,
.beat-alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(229,153,0,.32);
    background: rgba(229,153,0,.08);
    color: #f7e8c6;
    line-height: 1.6;
}

.beat-alert.success { border-color: rgba(94,224,141,.35); background: rgba(94,224,141,.08); color: #d3ffe2; }
.beat-alert.error { border-color: rgba(163,21,18,.55); background: rgba(122,2,1,.18); color: #e9b0aa; }

.beat-license-card.is-disabled {
    opacity: .62;
}

.buyout-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.empty-beat-state {
    padding: 34px;
    border: 1px dashed var(--line);
    color: var(--muted);
}

@media (max-width: 1100px) {
    .beat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .beats-hero,
    .beat-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .beats-shell { padding-top: 130px; }
    .beat-grid { grid-template-columns: 1fr; }
    .beat-license-head,
    .beat-download-head { flex-direction: column; }
}
