/* Homepage artist cards - visual match of Fon Music playlist cards */

#sec_Video > script[type="application/json"] {
    display: none !important;
}

#sec_Video #sec_Video_Inner {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78vw);
    gap: 1.15rem;
    max-width: 81.25rem;
    width: 100%;
    margin: 0;
    padding: 0 1rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    color: #fff;
    box-sizing: border-box;
}

#sec_Video #sec_Video_Inner::-webkit-scrollbar {
    display: none;
}

.home-artist-card {
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(117, 183, 255, 0.08);
    background: linear-gradient(160deg, rgba(24, 92, 183, 0.12), rgba(255, 255, 255, 0.018));
    padding: 0.45rem;
    box-shadow: 0 16px 48px rgba(0, 20, 55, 0.12);
    color: #fff;
    opacity: 1;
    transition: opacity 0.4s ease, border-color 0.25s ease;
}

.home-artist-card.is-swapping {
    opacity: 0;
    pointer-events: none;
}

.home-artist-card.is-playing {
    border-color: rgba(247, 100, 31, 0.38);
}

.home-artist-card.is-locked {
    border-color: rgba(247, 100, 31, 0.22);
}

.home-artist-card__art {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
}

.home-artist-card__art img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-artist-card:hover .home-artist-card__art img {
    transform: scale(1.04);
}

.home-artist-card__art--empty {
    background:
        radial-gradient(circle at 30% 20%, rgba(247, 100, 31, 0.18), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(117, 183, 255, 0.18), transparent 55%),
        rgba(255, 255, 255, 0.05);
}

.home-artist-card__title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    margin: 0;
    padding: 2.4rem 0.9rem 0.8rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    background: linear-gradient(180deg, transparent 0%, rgba(2, 7, 16, 0.78) 78%);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-artist-card__tracks {
    position: relative;
    padding: 0.2rem 0.25rem 0.15rem;
}

.home-artist-card__track {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.48rem 0.3rem;
}

.home-artist-card__track + .home-artist-card__track {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.home-artist-card__play {
    display: flex;
    height: 1.7rem;
    width: 1.7rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: rgba(247, 100, 31, 0.78);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(180, 55, 8, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-artist-card__play:hover,
.home-artist-card__play:focus {
    background: rgba(247, 100, 31, 0.95);
    color: #fff;
}

.home-artist-card__play.is-active {
    background: #f7641f;
}

.home-artist-card p {
    display: block;
    vertical-align: baseline;
}

.home-artist-card__meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-artist-card__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.home-artist-card__artist {
    margin: 0.1rem 0 0;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-artist-card__time {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
}

.home-artist-card audio {
    display: none;
}

@media (min-width: 768px) {
    #sec_Video #sec_Video_Inner {
        margin: 0 auto;
        padding: 0 1rem;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .home-artist-card {
        padding: 0.5rem;
    }
}

@media (min-width: 1100px) {
    #sec_Video #sec_Video_Inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-artist-card,
    .home-artist-card__art img {
        transition: none;
    }

    .home-artist-card:hover .home-artist-card__art img {
        transform: none;
    }
}
