﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    transition: background-color 0.3s ease, color 0.2s ease;
    min-height: 100vh;
    background-color: #0c0c0c; /* تم مشکی پایه */
    color: #f0f0f0;
}

    /* تم روشن */
    body.light-theme {
        background-color: #f8f9fc;
        color: #1e1e2a;
    }

/* هدر اصلی */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background-color: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

body.light-theme .header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* اسم سایت سمت راست */
.site-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(155deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 5px rgba(236, 236, 236, 0.1);
}

body.light-theme .site-brand {
    background: linear-gradient(145deg, #2b2b3a, #4a4a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* نویگیشن دسکتاپ (وسط) */
.desktop-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

    .desktop-nav ul li button {
        background: transparent;
        border: none;
        color: #ddd;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem 1.2rem;
        border-radius: 40px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
        background-color: #1c1c1c;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    }

body.light-theme .desktop-nav ul li button {
    background-color: #eeeeee;
    color: #1e1e2a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.desktop-nav ul li button:hover {
    background-color: #2e2e2e;
    color: #fff;
    transform: translateY(-2px);
}

body.light-theme .desktop-nav ul li button:hover {
    background-color: #d4d4e0;
    color: #000;
}

/* ابزارهای سمت چپ (مود و تقویت صدا) */
.desktop-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: #242424;
    border: none;
    color: #f0f0f0;
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    position: relative;
}

body.light-theme .icon-btn {
    background: #eaeef2;
    color: #2a2a3a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.icon-btn:hover {
    background: #3a3a3a;
    transform: scale(1.06);
}

/* دکمه تقویت صدا با تیک سبز */
.boost-btn {
    position: relative;
}

    .boost-btn .check-sign {
        position: absolute;
        bottom: 4px;
        right: 4px;
        font-size: 0.9rem;
        color: #2ecc71;
        background: #0f0f0f;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #2ecc71;
        opacity: 0;
        transform: scale(0.5);
        transition: 0.2s;
    }

body.light-theme .boost-btn .check-sign {
    background: white;
}

.boost-btn.active .check-sign {
    opacity: 1;
    transform: scale(1);
}

/* دکمه منوی موبایل (سه نقطه) */
.mobile-menu-btn {
    display: none;
}

.menu-toggle-btn {
    background: #242424;
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px black;
}

body.light-theme .menu-toggle-btn {
    background: #eaeef2;
    color: #1e1e2a;
}

/* ========== دراور موبایل (از چپ باز میشه) ========= */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px; /* در RTL از راست منفی شروع کنه که انگار از چپ میاد؟ در RTL راست یعنی شروع، اما میخوایم از چپ بیاد بیرون، پس بهتر از راست استفاده کنیم: drawer از راست بیاد چون در RTL راست معادل چپ انگلیسیه. اما برای حس درست: در RTL اگر بخوایم drawer از چپ بیاد، باید left رو منفی کنیم. بگذارید ساده: ما میخوایم سه نقطه سمت چپ باشه و دراور از همان سمت باز بشه (سمت چپ). پس از left باز میشه. در RRT left همون چپ فیزیکیه. درستش اینه: دراور رو با left کنترل کنیم. */
    left: -300px; /* از چپ بیرون */
    width: 280px;
    height: 100vh;
    background: #121212;
    border-left: 1px solid #2c2c2c;
    box-shadow: 4px 0 20px rgba(0,0,0,0.8);
    transition: left 0.3s ease-out;
    z-index: 200;
    padding: 2rem 1.5rem;
    direction: rtl;
}

body.light-theme .mobile-drawer {
    background: #f4f6fb;
    border-left: 1px solid #cfd1da;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-drawer.open {
    left: 0; /* باز شدن از چپ */
}

.drawer-menu {
    list-style: none;
    margin-top: 2.5rem;
}

    .drawer-menu li {
        margin: 1.8rem 0;
    }

        .drawer-menu li button {
            background: transparent;
            border: none;
            color: #eee;
            font-size: 1.2rem;
            font-weight: 500;
            width: 100%;
            text-align: right;
            padding: 0.6rem 1rem;
            border-radius: 40px;
            background-color: #242424;
            cursor: pointer;
            transition: 0.2s;
        }

body.light-theme .drawer-menu li button {
    background-color: #e3e6ed;
    color: #121212;
}

.drawer-menu li button:hover {
    background-color: #3a3a3a;
}

.drawer-menu .settings-item {
    margin-top: 2rem;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

body.light-theme .drawer-menu .settings-item {
    border-top-color: #b0b5c4;
}

/* صفحه تنظیمات تمام‌صفحه (موبایل) */
.settings-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0f0f0f;
    z-index: 300;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

body.light-theme .settings-fullscreen {
    background: #f8fafd;
}

.settings-fullscreen.open {
    transform: translateY(0);
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    padding: 1rem 1.8rem;
    border-radius: 60px;
    box-shadow: 0 4px 12px black;
}

body.light-theme .setting-row {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.setting-row span {
    font-size: 1.2rem;
    font-weight: 500;
}

.setting-row .toggle-btn {
    background: #2e2e2e;
    border: none;
    color: white;
    font-size: 1.3rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

body.light-theme .setting-row .toggle-btn {
    background: #e8ecf2;
    color: #121212;
}

.setting-row .toggle-btn .check-sign {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.8rem;
    color: #2ecc71;
}

.back-button {
    background: #242424;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 50px;
    width: fit-content;
    margin: 2rem auto 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px black;
}

body.light-theme .back-button {
    background: #dfe3ec;
    color: #121212;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* حالت موبایل: نمایش منوی همبرگری و مخفی کردن نویگیشن دسکتاپ */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1.2rem;
    }

    .desktop-nav, .desktop-tools {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .site-brand {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) {
    .mobile-drawer, .settings-fullscreen {
        display: none; /* در دسکتاپ این بخش‌ها نباشن */
    }
}

/* محتوای آزمایشی زیر هدر */
.content-placeholder {
    padding: 2rem;
    text-align: center;
    opacity: 0.7;
}

    .content-placeholder i {
        font-size: 5rem;
        color: #2ecc71;
        margin-bottom: 1rem;
    }

.gradient-text {
    font-size: 25px;
    font-family: unset;
    font-weight: bold;
    background: linear-gradient(45deg, #ff0080, #7928ca, #00c6ff, #00ff88);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}












/*اسلایدر موزیک*/

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== هدر هر اسلایدر با دکمه‌های چپ و راست ===== */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
    text-align: left;
}

    .slider-header h2 {
        font-size: 1.6rem;
        font-weight: 600;
        color: #797979;
        padding-left: 1rem;
    }

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #333;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 1.2rem;
}

    .scroll-btn:hover {
        background: #333;
        color: #fff;
    }

/* ===== اسلایدر ===== */
.music-slider {
    margin-bottom: 3rem;
}

.slider-wrapper {
    position: relative;
}

.slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0.5rem 2rem 0.5rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE */
    scrollbar-width: none; /* Firefox */
}

    .slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

/* ===== کارت موزیک ===== */
.music-card {
    position: relative;
    flex: 0 0 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .music-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        border-color: #aaa;
    }

    .music-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 16px;
        background: #f0f0f0;
        margin-bottom: 0.8rem;
    }

    .music-card h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #111;
        margin-bottom: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.card-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-icon:hover {
        background: #333;
        color: #fff;
        border-color: #333;
    }

.dots-btn {
    position: relative;
}

/* ===== منوی کشویی حرفه‌ای ===== */
.download-dropdown {
    height:300px !important;
    position: absolute;
    background: #ffffff;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 100px;
    padding: 8px 0;
    margin-top: 10px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.98);
}

    .download-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-item {

    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align:left;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item i {
        font-size: 1.2rem;
        width: 24px;
        color: #333;
        transition: all 0.2s ease;
    }

    .dropdown-item:hover {
        background: #1a1a1a;
        color: #ffffff;
        padding-right: 28px;
    }

        .dropdown-item:hover i {
            color: #ffffff;
        }

    .dropdown-item[data-action="download"] {
        font-weight: 600;
        color: #000;
    }

        .dropdown-item[data-action="download"] i {
            color: #4CAF50;
        }

        .dropdown-item[data-action="download"]:hover {
            background: #4CAF50;
            color: white;
        }

            .dropdown-item[data-action="download"]:hover i {
                color: white;
            }

.download-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    transform: rotate(45deg);
    z-index: -1;
}

/* ===== دکمه مشاهده بیشتر ===== */
.view-more {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    background: transparent;
    border: 2px solid #333;
    border-radius: 40px;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-align: center;
}

    .view-more:hover {
        background: #333;
        color: #fff;
    }

/* ===== مودال پخش‌کننده ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    max-width: 420px;
    width: 100%;
    border-radius: 32px;
    padding: 2rem 1.8rem 1.8rem;
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid #aaa;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        opacity: 0.7;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 18px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
    transition: 0.2s;
}

    .close-modal:hover {
        color: #000;
        transform: scale(1.1);
    }

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    background: #eee;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
}

.modal-song-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.8rem;
    text-align: center;
}

.modal-controls {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 1.5rem 0;
}

    .modal-controls .btn-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 1px solid #222;
        background: #fff;
        color: #222;
        font-size: 1.3rem;
    }

        .modal-controls .btn-icon:hover {
            background: #222;
            color: #fff;
        }

.btn-icon.active {
    background: #222;
    color: #fff;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.2rem;
}

.timeline {
    flex: 1;
    height: 5px;
    background: #ddd;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}

    .timeline::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: #111;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

.time-label {
    font-size: 0.8rem;
    color: #555;
    min-width: 40px;
    text-align: center;
}

.music-card.playing .play-btn i {
    content: "\f28b";
}

.music-card.playing {
    border-color: #000;
    background: #fafafa;
}

/* ===== موبایل: مخفی شدن دکمه‌های کنار عنوان ===== */
@media (max-width: 768px) {
    .slider-controls {
        display: none;
    }
}

@media (max-width: 600px) {
    .music-card {
        flex: 0 0 160px;
        padding: 0.8rem;
    }

        .music-card img {
            height: 120px;
        }

    .btn-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-image {
        height: 160px;
    }
}