﻿.music-modern-card {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    max-width: 90vw;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08); /* فقط سایه زیر کارت */
    overflow: hidden;
    font-family: 'IRANSans', sans-serif;
    transition: transform 0.3s ease;
}

    .music-modern-card:hover {
        transform: translateY(-6px);
    }

/* تصویر کاور */
.music-cover {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

    .music-cover img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        transition: none; /* حذف افکت محو شدن یا زوم */
    }

/* افکت روی تصویر */
.music-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.3s ease;
    backdrop-filter: none; /* حذف تار شدن تصویر */
    z-index: 1;
    pointer-events: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.music-cover:hover .music-overlay {
    background-color: rgba(0,0,0,0.35);
}

/* دکمه پخش */
.music-play {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.music-modern-card:hover .music-play {
    transform: scale(1.1);
}

.music-play i {
    font-size: 20px;
    color: #333;
}

/* اطلاعات موزیک */
.music-info {
    padding: 1rem;
}

    .music-info h3 {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.music-singer {
    font-size: 13px;
    color: #555;
    margin-bottom: 0.75rem;
}

    .music-singer a {
        font-weight: 500;
        color: #00796b;
        text-decoration: none;
    }

/* اکشن‌ها */
.music-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
    align-items: center;
    margin-top: 0.5rem;
}

    .music-actions i {
        margin-right: 4px;
    }

.music-download,
.music-listen {
    text-decoration: none;
    color: #6c757d;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .music-download:hover,
    .music-listen:hover {
        color: #000;
    }

/* متا آلبوم */
.music-meta {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    font-size: 13px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.music-cover:hover .music-meta {
    opacity: 1;
    visibility: visible;
}

/* نوار اسکرول */
.music-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background-color: transparent;
    padding: 1rem 0;
}

    .music-scroll-container::-webkit-scrollbar {
        display: none;
    }

.music-scroll-content {
    display: flex;
    gap: 18px;
    padding-left: 1rem;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .music-modern-card {
        width: 180px; /* افزایش عرض کارت در موبایل */
    }
}

@media (min-width: 769px) {
    .music-actions {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}
