/* ===== بدنه و فونت ===== */
body {
    font-family: 'Vazir', sans-serif;
    background: #0d0d0d; /* زمینه تیره‌تر */
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* عنوان صفحه */
h1 {
    text-align: center;
    margin: 20px 0;
    color: #f5f5f5;
    font-size: 28px;
    letter-spacing: 1px;
}

/* لیست کارت‌ها */
.madahis-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ۴ ستون در دسکتاپ */
    gap: 18px;
    padding: 20px;
}

/* کارت مداح */
.madahi-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.madahi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255,255,255,0.05);
}

.madahi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.25s ease;
}

.madahi-card:hover img {
    transform: scale(1.03);
}

/* ===== عناوین کارت مداح ===== */
.madahi-card h2 {
    font-size: 18px; /* اندازه کوچکتر */
    color: #f5f5f5;
    margin: 5px 0;
    font-weight: 600;
    font-family: 'Vazir', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* دکمه‌های کارت کنار هم */
.card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    width: 100%;
    justify-content: center;
}

.play-btn,
.madahi-card a {
    flex: 1;
    padding: 8px 0;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #111;
    color: #f0f0f0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: 'Vazir', sans-serif !important;
}

.play-btn:hover,
.madahi-card a:hover {
    background: #222;
    transform: translateY(-2px);
}

/* پلیر پایین صفحه */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #121212;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 999;
}

.player.show {
    transform: translateY(0);
    opacity: 1;
}

.player img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.4s linear;
}

.player .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    overflow: hidden;
}

.player .info .title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Vazir', sans-serif;
}

.player .info .artist {
    font-size: 13px;
    opacity: 0.7;
    font-family: 'Vazir', sans-serif;
}

.player .controls {
    display: flex;
    gap: 8px;
}

.player .controls button {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: 'Vazir', sans-serif;
}

.player .controls button:hover {
    background: #222;
    transform: translateY(-1px);
}

/* رسپانسیو موبایل */
@media screen and (max-width: 768px) {
    .madahis-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 12px;
    }

    .madahi-card img {
        height: 170px;
    }

    .card-buttons {
        flex-direction: column;
    }

    .player {
        padding: 8px 10px;
        gap: 8px;
    }

    .player img {
        width: 50px;
        height: 50px;
    }

    .player .info .title {
        font-size: 14px;
    }

    .player .info .artist {
        font-size: 12px;
    }

    .player .controls button {
        padding: 5px;
        font-size: 14px;
    }

    .madahi-card h2 {
        font-size: 16px; /* کوچکتر برای موبایل */
    }
}

/* فونت دکمه‌های فیلتر مداح */
.singer-btn, #backToSingers {
    font-family: 'Vazir', sans-serif !important;
    font-weight: 500;
    background: #111;
    color: #f0f0f0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.singer-btn:hover, #backToSingers:hover {
    background: #222;
}

/* فاصله 50px پایین سایت */
body::after {
    content: "";
    display: block;
    height: 100px;
}
/* دکمه منوی همبرگری */
#menuBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

#menuBtn span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* پنل منو */
#menuPanel {
    position: fixed;
    top: 0;
    right: -300px; /* ابتدا خارج از صفحه */
    width: 250px;
    height: 100%;
    background: #111;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    padding: 60px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: right 0.3s ease;
    z-index: 1000;
}

/* وقتی منو باز شد */
#menuPanel.active {
    right: 0;
}

/* لینک‌های منو */
#menuPanel a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

#menuPanel a:hover {
    color: #f5f5f5;
}

/* حالت انیمیشن برای دکمه همبرگر */
#menuBtn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active span:nth-child(2) {
    opacity: 0;
}

#menuBtn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* رسپانسیو موبایل */
@media screen and (max-width: 768px) {
    #menuPanel {
        width: 200px;
        padding-top: 60px;
    }

    #menuBtn {
        width: 30px;
        height: 25px;
    }

    #menuPanel a {
        font-size: 14px;
    }
}
