/* =========================================================
   SUPERAPE — BEAT DETAIL
   Redesign
   Mobile first
   ========================================================= */

.container {
    width: min(100% - 24px, 1100px);
    margin: 0 auto;
    padding: 18px 0 120px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}


/* =========================================================
   COVER
   ========================================================= */

.cover {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    background: #0d0d11;

    border: 1px solid #303038;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;

    overflow: hidden;
}

.cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   DETAIL PANEL
   ========================================================= */

.right-box {
    background: #101014;

    border: 1px solid #303038;
    border-radius: 0 0 2px 2px;

    padding: 18px 16px 20px;

    box-shadow: none;
}

.title {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 30px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.045em;
}


/* =========================================================
   META
   ========================================================= */

.meta {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin: 0 0 18px;
}

.pill {
    padding: 6px 8px;

    background: transparent;

    border: 1px solid #303038;
    border-radius: 2px;

    color: #9f9faa;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.035em;

    text-transform: uppercase;
}


/* nasconde le informazioni non utili */

.meta .pill:nth-child(1),
.meta .pill:nth-child(2) {
    display: none;
}

#tier-pill {
    display: none;
}


/* =========================================================
   PREVIEW
   ========================================================= */

.audio {
    margin: 0 0 18px;
}

.preview-trigger {
    width: 100%;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 12px 14px;

    background: #f2f2ef;
    color: #08080a;

    border: 1px solid #f2f2ef;
    border-radius: 2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow: none;
}

.preview-trigger:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.preview-trigger.is-playing {
    background: #f2f2ef;
    color: #08080a;

    border-color: #f2f2ef;
}


/* =========================================================
   DESKTOP — solo struttura base per ora
   ========================================================= */

@media (min-width: 801px) {

    .container {
        padding-top: 28px;
    }

    .grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }

    .cover {
        border: 1px solid #303038;
        border-radius: 2px;
    }

    .right-box {
        border-radius: 2px;
    }

    .title {
        font-size: 38px;
    }
}

/* Metadata: mostra solo i valori realmente disponibili */

.meta .pill:nth-child(1),
.meta .pill:nth-child(2) {
    display: inline-flex;
}

#tier-pill {
    display: none;
}

/* =========================================================
   BEAT DETAIL — PURCHASE AREA
   ========================================================= */

.section-label,
.price-label {
    color: #8f8f99;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.035em;

    text-transform: uppercase;
}

.license-select {
    width: 100%;
    min-height: 48px;

    padding: 12px 40px 12px 12px;

    background: #0d0d11;
    color: #ffffff;

    border: 1px solid #3a3a43;
    border-radius: 2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 12px;
    font-weight: 700;

    box-shadow: none;
}

.license-note {
    margin-top: 9px;

    color: #92929c;

    font-size: 12px;
    line-height: 1.4;
}

.price-box {
    margin: 20px 0 18px;
}

.price {
    margin-top: 5px;

    color: #ffffff;

    font-size: 36px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.actions {
    display: grid;
    grid-template-columns: 1fr;

    gap: 9px;

    margin-bottom: 14px;
}

.btn {
    width: 100%;
    min-height: 48px;

    padding: 11px 14px;

    border-radius: 2px;

    font-size: 13px;
    font-weight: 900;

    box-shadow: none;
}

.btn-buy {
    background: #e53935;
    color: #ffffff;

    border: 1px solid #e53935;
}

.btn-buy:hover {
    transform: none;

    background: #f04440;
    border-color: #f04440;
}

.btn-secondary {
    background: transparent;
    color: #a8a8b2;

    border: 1px solid #303038;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 11px;
    letter-spacing: 0.035em;

    text-transform: uppercase;
}

.note {
    color: #777781;

    font-size: 11px;
    line-height: 1.45;
}

.detail-trust {
    color: #8f8f99;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 600;
}
