.div-cards-entries {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 20px;
}

.music-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    padding: 5px;
    background-color: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    cursor: pointer;
    
    &:hover {
        animation: pulse 0.3s ease-in-out;
    }
    
    & img {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        aspect-ratio: 1;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        cursor: zoom-in;
    }
}

.music-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    gap: 2px;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    padding: 0 5px;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.music-title, .music-artist {
    width: fit-content;
    max-width: 100%;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap;
    display: inline-block;
    position: relative;
}

.auto-scroll {
    animation: scroll-text 7s linear infinite alternate;
    padding-right: 20px;
    --scroll-distance: 0px;
}

.music-card:hover .auto-scroll, .bar-artist:hover .auto-scroll {
    animation-play-state: paused;
}

.music-infos {
    width: fit-content;
    color: var(--primary-color);
    background-color: var(--dark-bg-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes scroll-text {
    0%, 20% { transform: translateX(0); }
    90%, 100% { transform: translateX(calc(var(--scroll-distance, 0) * -1)); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}


/* Track Popup */
#track-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 11, 23, 0.88);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#track-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.track-popup {
    background: var(--primary-color);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 20px 22px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: scale(0.92);
    transition: transform 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--color-darker) transparent;
}

#track-popup-overlay.visible .track-popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--main-bg-color);
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}

.popup-cover img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    cursor: zoom-in;
    transition: transform 0.15s ease;
}

.popup-cover img:hover {
    transform: scale(1.04);
}

/* Image zoom lightbox */
#image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 11, 23, 0.95);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#image-zoom-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#image-zoom-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
    transform: scale(0.88);
    transition: transform 0.2s ease;
    cursor: zoom-out;
}

#image-zoom-overlay.visible img {
    transform: scale(1);
}

.popup-track-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.popup-explicit {
    background-color: var(--color-darker);
    color: var(--primary-color);
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.popup-artists {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    text-align: center;
}

.popup-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.popup-genre-tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.popup-stat {
    background-color: var(--dark-bg-color);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
}

.popup-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.popup-stat-value {
    font-size: 0.85rem;
    font-weight: bold;
}

.popup-spotify-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 26px;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 4px;
    transition: background-color 0.2s, transform 0.15s;
}

.popup-spotify-btn:hover {
    background-color: #cc5200;
    transform: scale(1.04);
}

@media (max-width: 800px) {
    .track-popup {
        padding: 24px 14px 18px;
        gap: 10px;
    }

    .popup-cover img {
        width: 140px;
        height: 140px;
    }

    .popup-track-name {
        font-size: 1rem;
    }

    .popup-stat-value {
        font-size: 0.8rem;
    }
}


/* Skeleton loading */
@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    border-radius: 6px;
    background: linear-gradient(90deg, #bdbebb 25%, #d2d3cf 50%, #bdbebb 75%);
    background-size: 1200px 100%;
    animation: skeleton-shimmer 1.6s infinite linear;
}

.popup-stat .skeleton {
    background: linear-gradient(90deg, #06111e 25%, #112336 50%, #06111e 75%);
    background-size: 1200px 100%;
    animation: skeleton-shimmer 1.6s infinite linear;
    border-radius: 4px;
}

.skeleton-cover {
    width: 180px;
    height: 180px;
    border-radius: 12px !important;
    flex-shrink: 0;
}

.skeleton-cover-circle {
    width: 180px;
    height: 180px;
    border-radius: 50% !important;
    flex-shrink: 0;
}

.skeleton-title {
    width: 60%;
    height: 20px;
}

.skeleton-artist {
    width: 38%;
    height: 14px;
}

.skeleton-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.skeleton-tag {
    width: 74px;
    height: 22px;
    border-radius: 20px !important;
}

.skeleton-label {
    width: 50%;
    height: 9px;
}

.skeleton-value {
    width: 68%;
    height: 13px;
}

.skeleton-btn {
    width: 150px;
    height: 38px;
    border-radius: 20px !important;
    margin-top: 4px;
}

@media (max-width: 800px) {
    .skeleton-cover {
        width: 140px;
        height: 140px;
    }
}


/* Key features */
.div-key-features {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.key-feature-text {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.div-scrollable {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    overflow-x: scroll;
    scrollbar-width: none;
    scrollbar-color: var(--primary-color) var(--dark-bg-color);
    pointer-events: none;
    white-space: nowrap;
}

.key-feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    min-height: 150px;
    color: white;
    font-size: 16px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.key-feature-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* BARS */
.div-bar-entries {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}

.bar-artist {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 2px 0px 2px 10px;
    color: #333;
    background-color: var(--primary-color);
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    transition: width 0.5s ease-in-out;
    cursor: pointer;
}

.bar-artist-content {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
}

.bar-artist-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    font-size: 1rem;
}

.bar-artist-image {
    position: relative;
    right: 3px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: zoom-in;
    transition: transform 0.15s ease;
}

.bar-artist-image:hover {
    transform: scale(1.1);
}


/* Responsive design */
@media (max-width: 800px) {
    .music-card {
        max-width: 100%;
        gap: 8px;
        padding: 6px;
    }

    .music-card img {
        width: 45px;
        height: 45px;
    }

    .music-title {
        font-size: 0.8rem;
    }

    .music-artist {
        font-size: 0.7rem;
    }

    .music-infos {
        font-size: 0.6rem;
    }

    .bar-artist-text {
        font-size: 0.8rem;
    }
    .bar-artist-image {
        width: 30px;
        height: 30px;
    }

}

.popup-error {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 20px 10px;
}


/* Artist Popup */
.popup-cover.artist-cover img {
    border-radius: 50%;
}

.popup-artist-tracks {
    width: 100%;
    background-color: var(--dark-bg-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-artist-tracks-title {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-color);
    opacity: 0.55;
    margin-bottom: 4px;
}

.popup-artist-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-darker) transparent;
}

.popup-artist-track-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 5px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
    min-width: 0;
}

.popup-artist-track-item:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.popup-artist-track-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.popup-artist-track-name {
    flex-grow: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.popup-artist-track-streams {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}