/* ============================================================
   UNPOP — Artist Last Release — v1.5.1 (ADAPTED FOR FLEX PARENT)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ── CONTENEUR PRINCIPAL ────────────────────────────────── */
.unpop-release {
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(13, 30, 46, 0.4);
    border: 1px solid rgba(180, 210, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(1, 11, 19, 0.5);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
}

.unpop-release:hover {
    border-color: rgba(180, 210, 255, 0.25);
    box-shadow: 0 8px 32px rgba(180, 210, 255, 0.08);
}

/* ── LABEL / TITRE ──────────────────────────────────────– */
.unpop-release__label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 20px;
    padding: 0;
    flex-shrink: 0;
}

/* ── CONTENEUR CARTES ──────────────────────────────────– */
.unpop-release__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

/* ── ITEM LISTE ────────────────────────────────────────── */
.unpop-release__item {
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    list-style: none;
}

/* ── CARD — layout vertical ────────────────────────────– */
.unpop-release__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #0d1e2e;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.unpop-release__card:hover {
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow:
        0 8px 28px rgba(251, 146, 60, 0.15),
        0 0 0 1px rgba(251, 146, 60, 0.1);
    transform: translateY(-4px);
}

/* ── COVER — grande, carrée ────────────────────────────– */
.unpop-release__cover-wrap {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #0d2033;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.unpop-release__cover-wrap img {
    border-radius: 0 !important;
}

.unpop-release__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.unpop-release__card:hover .unpop-release__cover {
    transform: scale(1.05);
}

/* ── Placeholder si pas de cover ───────────────────────– */
.unpop-release__cover-wrap::after {
    content: '🎵';
    font-size: 48px;
    opacity: 0.4;
    position: absolute;
    z-index: 1;
}

.unpop-release__cover-wrap.has-image::after {
    display: none;
}

/* ── INFOS — bloc bas ──────────────────────────────────– */
.unpop-release__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 20px;
    background: linear-gradient(to bottom, #0d1e2e, #0a1825);
    position: relative;
    min-height: 0;
}

/* ── Label orange ──────────────────────────────────────– */
.unpop-release__info-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FB923C;
    margin: 0 0 4px;
    padding: 0;
    flex-shrink: 0;
}

/* ── Titre ─────────────────────────────────────────────– */
.unpop-release__title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    line-height: 1.25;
    white-space: normal;
    flex: 1;
    min-height: 0;
}

/* ── Meta — tout sur une ligne ─────────────────────────– */
.unpop-release__meta {
    text-transform: capitalize;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* ── Supprimer badge type et flèche ────────────────────– */
.unpop-release__type,
.unpop-release__cta {
    display: none;
}

/* ────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .unpop-release {
        padding: 20px;
    }

    .unpop-release__label {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .unpop-release__list {
        gap: 10px;
    }

    .unpop-release__card {
        border-radius: 14px;
    }

    .unpop-release__cover-wrap {
        aspect-ratio: 1 / 1;
    }

    .unpop-release__info {
        padding: 16px 18px 18px;
        gap: 5px;
    }

    .unpop-release__info-label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .unpop-release__title {
        font-size: 18px;
    }

    .unpop-release__meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .unpop-release {
        padding: 16px;
    }

    .unpop-release__list {
        gap: 8px;
    }

    .unpop-release__card {
        border-radius: 12px;
    }

    .unpop-release__info {
        padding: 14px 16px 16px;
    }

    .unpop-release__title {
        font-size: 16px;
    }

    .unpop-release__meta {
        font-size: 11px;
    }

    .unpop-release__cover-wrap::after {
        font-size: 36px;
    }
}
