* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', sans-serif;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding-bottom: 100px;
}

header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid #2a2a40;
    background: rgba(15, 15, 26, 0.9);
}

header h1 {
    font-size: 2.5rem;
    color: #c9a87c;
    margin-bottom: 10px;
}

header p {
    color: #6a6a7a;
    font-size: 1rem;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: rgba(26, 26, 46, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

.artist-btn {
    padding: 10px 20px;
    background: transparent;
    color: #8a8a9a;
    border: 1px solid #3a3a50;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.artist-btn:hover {
    background: #2a2a40;
    color: #c9a87c;
    border-color: #6b4226;
}

.artist-btn.active {
    background: linear-gradient(45deg, #6b4226, #8b5e3c);
    color: #f0e6d8;
    border-color: #8b5e3c;
}

/* ===== پلیر ثابت ===== */
.player-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(15, 15, 26, 0.95);
    border-top: 2px solid #2a2a40;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.player-artist {
    color: #c9a87c;
    font-size: 0.9rem;
    font-weight: bold;
}

.player-title {
    color: #8a8a9a;
    font-size: 0.8rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: transparent;
    border: 1px solid #3a3a50;
    color: #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #2a2a40;
    border-color: #6b4226;
}

.play-pause {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #6b4226, #8b5e3c);
    border: none;
    font-size: 1.5rem;
}

.play-pause:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #8b5e3c, #6b4226);
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.time {
    color: #8a8a9a;
    font-size: 0.8rem;
    min-width: 35px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    background: #2a2a40;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #c9a87c;
    border-radius: 50%;
    cursor: pointer;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-bar {
    -webkit-appearance: none;
    width: 80px;
    height: 5px;
    background: #2a2a40;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #c9a87c;
    border-radius: 50%;
    cursor: pointer;
}

/* ===== گرید آهنگ‌ها ===== */
#songGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.song-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #2a2a40;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #6b4226;
}

.song-artist {
    color: #c9a87c;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.song-title {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.song-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.play-btn, .download-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.play-btn {
    background: linear-gradient(45deg, #6b4226, #8b5e3c);
    color: #f0e6d8;
}

.download-btn {
    background: #2a2a40;
    color: #8a8a9a;
    border: 1px solid #3a3a50;
}

.play-btn:hover, .download-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #2a2a40;
    color: #6a6a7a;
    font-size: 0.85rem;
    margin-top: 30px;
}

/* ===== مخصوص موبایل ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.8rem;
    }
    
    nav {
        gap: 5px;
        padding: 10px;
    }
    
    .artist-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    #songGrid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .song-card {
        padding: 15px;
    }
    
    .player-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .player-info {
        min-width: 100px;
        flex: 1;
    }
    
    .player-controls {
        order: 1;
    }
    
    .player-progress {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .player-volume {
        display: none;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .play-pause {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}