/* ===== 인기 아티스트 섹션 ===== */

.popular-artists {
    --artist-green: #2f7d4a;
    --artist-green-dark: #1f5f37;
    --artist-line: rgba(47, 125, 74, 0.08);
    --artist-shadow: 0 18px 50px rgba(24, 86, 50, 0.06);

    width: min(1200px, calc(100% - 40px));
    margin: 56px auto;
    padding: 30px 48px 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--artist-line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% -50%, rgba(255, 255, 255, 0.98), transparent 58%),
        linear-gradient(135deg, #fafcfb 0%, #f5faf7 50%, #fbfdfb 100%);
    box-shadow: var(--artist-shadow);
}

.popular-artists::before,
.popular-artists::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.popular-artists::before {
    top: -150px;
    left: -80px;
    background: rgba(154, 219, 180, 0.08);
}

.popular-artists::after {
    right: -90px;
    bottom: -160px;
    background: rgba(124, 194, 154, 0.07);
}

/* 헤더 */
.popular-artists__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.popular-artists__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--artist-green-dark);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.popular-artists__sparkle {
    color: #85bb96;
    font-size: 15px;
    opacity: 0.9;
}

.popular-artists__more {
    position: absolute;
    right: 0;
    color: #52705c;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.popular-artists__more:hover {
    color: var(--artist-green);
    transform: translateX(2px);
}

/* 6열 고정 그리드 */
.popular-artists__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

/* 카드 */
.artist-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 18px;
    background: #dfe9e3;
    box-shadow: 0 10px 24px rgba(24, 70, 43, 0.13);
    aspect-ratio: 2 / 3;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(24, 70, 43, 0.18);
}

.artist-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.artist-card:hover .artist-card__image {
    transform: scale(1.045);
}

.artist-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to top,
            rgba(13, 22, 17, 0.88) 0%,
            rgba(13, 22, 17, 0.45) 31%,
            rgba(13, 22, 17, 0.05) 62%,
            rgba(13, 22, 17, 0) 100%
        );
    pointer-events: none;
}

.artist-card__content {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 11px;
    z-index: 2;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.artist-card__tag {
    flex-shrink: 0;
    height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.artist-card__name {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ===== 반응형 ===== */

@media (max-width: 1024px) {
    .popular-artists__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-artists {
        padding: 25px 36px 22px;
        border-radius: 27px;
    }
}

@media (max-width: 768px) {
    .popular-artists {
        width: min(100% - 24px, 1200px);
        margin: 38px auto;
        padding: 23px 24px 20px;
        border-radius: 24px;
    }

    .popular-artists__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .popular-artists__more {
        display: none;
    }
}

@media (max-width: 480px) {
    .popular-artists {
        width: calc(100% - 20px);
        padding: 20px 16px 18px;
        border-radius: 20px;
    }

    .popular-artists__title {
        font-size: 20px;
    }

    .popular-artists__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .artist-card,
    .artist-card__image,
    .artist-card__icon {
        transition: none;
    }
}
