/* ============================================
   HS BILLIONS - Carruseles y Tarjetas
   ============================================ */

/* ============================================
   SHELF
   ============================================ */
.hs-billions-shelf {
    position: relative;
    margin-bottom: 12px;
    padding: 0;
}

.hs-billions-shelf__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    padding: 0 16px;
    flex-wrap: nowrap;
}

.hs-billions-shelf__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.hs-billions-shelf__count {
    font-size: 13px;
    font-weight: 500;
    color: var(--hs-text-muted);
    margin-left: 8px;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 20px;
}

.hs-billions-shelf__viewall {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #0891b2, #7c3aed);
    color: white;
    border-radius: 24px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(8,145,178,0.3);
    border: none;
    cursor: pointer;
}

.hs-billions-shelf__viewall:hover {
    transform: scale(1.02);
}

/* ============================================
   FRAME + TRACK
   ============================================ */
.hs-billions-frame {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    margin: -20px 0;
    overflow: visible;
    z-index: 1;
}

.hs-billions-track {
    display: flex;
    align-items: flex-start;
    gap: 0px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 16px;
    width: 100%;
    touch-action: pan-x pan-y pinch-zoom;
}

.hs-billions-track::-webkit-scrollbar {
    display: none;
}

/* ============================================
   FLECHAS
   ============================================ */
.hs-billions-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    color: #0f172a;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hs-billions-frame:hover .hs-billions-arrow {
    opacity: 1;
}

.hs-billions-arrow:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.hs-billions-arrow--prev {
    left: 8px;
}

.hs-billions-arrow--next {
    right: 8px;
}

.hs-billions-arrow--hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   CARD
   ============================================ */
.hs-billions-card {
    position: relative;
    flex: 0 0 auto;
    width: 280px;
    height: fit-content;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    will-change: transform;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hs-billions-card:hover {
    transform: scale(1.08) translateY(-8px);
    z-index: 100;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    overflow: visible;
}

.hs-billions-card:active {
    transform: scale(1.04);
}

.hs-billions-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.hs-billions-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hs-billions-card:hover .hs-billions-card__media img {
    transform: scale(1.08);
}

.hs-billions-card__body {
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
}

.hs-billions-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-billions-card__actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.hs-billions-card__move,
.hs-billions-card__delete {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    color: white;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.hs-billions-card__move:hover {
    background: #0891b2;
    transform: scale(1.1);
}

.hs-billions-card__delete:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* ============================================
   VIEWALL CARD (dentro del carrusel)
   ============================================ */
.hs-billions-card--viewall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(8,145,178,0.04);
    border: 2px dashed rgba(8,145,178,0.2);
    aspect-ratio: 16 / 9;
    min-height: 150px;
    color: var(--hs-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.hs-billions-card--viewall:hover {
    background: rgba(8,145,178,0.08);
    border-color: rgba(8,145,178,0.4);
    transform: scale(1.03);
}

.hs-viewall-number {
    font-size: 28px;
    font-weight: 800;
    color: #0891b2;
}

/* ============================================
   NUEVA PLAYLIST
   ============================================ */
.hs-new-playlist-wrap {
    text-align: center;
    padding: 16px;
}

.hs-new-playlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--hs-border);
    border-radius: 12px;
    color: var(--hs-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.hs-new-playlist-btn:hover {
    border-color: var(--hs-primary);
    color: var(--hs-primary);
    box-shadow: var(--hs-shadow);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hs-billions-card {
        width: 220px;
    }
    .hs-billions-shelf__title {
        font-size: 16px;
    }
    .hs-billions-arrow {
        display: none;
    }
    .hs-billions-card__body {
        padding: 6px 8px 8px;
    }
    .hs-billions-card__title {
        font-size: 13px;
    }
    .hs-billions-card__actions {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hs-billions-card {
        width: 180px;
    }
    .hs-billions-card__title {
        font-size: 12px;
    }
    .hs-billions-card--viewall {
        min-height: 120px;
    }
    .hs-viewall-number {
        font-size: 22px;
    }
}