/* ============================================================
   UNPOP — Artist Streaming — 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-streaming {
    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;
    padding: 24px;
    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-streaming:hover {
    border-color: rgba(180, 210, 255, 0.25);
    box-shadow: 0 8px 32px rgba(180, 210, 255, 0.08);
}

/* ── LABEL / TITRE ──────────────────────────────────────– */
.unpop-streaming__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;
}

/* ── LISTE ──────────────────────────────────────────────── */
.unpop-streaming__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* ── SCROLLBAR (Webkit) ────────────────────────────────– */
.unpop-streaming__list::-webkit-scrollbar {
    width: 6px;
}

.unpop-streaming__list::-webkit-scrollbar-track {
    background: transparent;
}

.unpop-streaming__list::-webkit-scrollbar-thumb {
    background: rgba(251, 146, 60, 0.3);
    border-radius: 3px;
}

.unpop-streaming__list::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 146, 60, 0.5);
}

/* ── ITEM / BOUTON ──────────────────────────────────────── */
.unpop-streaming__item {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.unpop-streaming__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    background-color: rgba(13, 30, 46, 0.6);
    border: 1px solid rgba(180, 210, 255, 0.15);
    border-radius: 14px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 12px rgba(1, 11, 19, 0.4);
}

/* ── HOVER EFFECT ──────────────────────────────────────── */
.unpop-streaming__btn:hover {
    background-color: rgba(13, 30, 46, 0.95);
    border-color: rgba(251, 146, 60, 0.4);
    box-shadow:
        0 8px 28px rgba(251, 146, 60, 0.18),
        0 0 0 1px rgba(251, 146, 60, 0.12);
    transform: translateY(-3px);
}

/* ── PSEUDO-ÉLÉMENT SHINE ──────────────────────────────── */
.unpop-streaming__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(251, 146, 60, 0.08) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border-radius: inherit;
}

.unpop-streaming__btn:hover::before {
    transform: translateX(100%);
}

/* ── ICÔNE ──────────────────────────────────────────────── */
.unpop-streaming__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-size: 18px;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

.unpop-streaming__btn:hover .unpop-streaming__icon {
    transform: scale(1.15) rotate(5deg);
}

/* ── LABEL TEXTE ────────────────────────────────────────── */
.unpop-streaming__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    flex: 1;
    transition: color 0.3s ease;
}

.unpop-streaming__btn:hover .unpop-streaming__name {
    color: #FB923C;
}

/* ── MODE GRILLE (fallback) ────────────────────────────– */
.unpop-streaming--grid .unpop-streaming__list {
    display: grid;
    grid-template-columns: repeat(var(--streaming-cols, 4), 1fr);
    gap: 12px;
}

.unpop-streaming--grid .unpop-streaming__btn {
    aspect-ratio: 1;
    flex-direction: column;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
}

.unpop-streaming--grid .unpop-streaming__icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
}

/* ── MODE PILLS (fallback) ─────────────────────────────– */
.unpop-streaming--pills .unpop-streaming__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unpop-streaming--pills .unpop-streaming__btn {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.unpop-streaming--pills .unpop-streaming__icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

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

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

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

    .unpop-streaming__list {
        gap: 10px;
    }

    .unpop-streaming__btn {
        padding: 14px 16px;
        font-size: 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .unpop-streaming__icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

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

    .unpop-streaming__btn {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
        border-radius: 10px;
    }

    .unpop-streaming__icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}
