/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    padding-bottom: 100px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1db954;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1496293455970-f8581aae0e3b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    color: #b3b3b3;
}

/* Category Sections */
.category-section {
    padding: 60px 5%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #1db954;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.song-card {
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    padding: 15px;
}

.song-card:hover {
    background-color: #282828;
    transform: translateY(-5px);
}

.song-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.song-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.song-card:hover .song-image {
    transform: scale(1.05);
}

.song-info {
    padding: 5px 0;
}

.song-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem;
}

.song-artist {
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #282828;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    z-index: 1000;
    border-top: 1px solid #444;
}

.player-info {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 200px;
}

#player-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}

.song-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-info p {
    font-size: 0.8rem;
    color: #b3b3b3;
}

.player-controls {
    display: flex;
    align-items: center;
    width: 40%;
    justify-content: center;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    margin: 0 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.player-controls button:hover {
    color: #1db954;
}

#play-btn {
    font-size: 1.8rem;
    background-color: #1db954;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-btn:hover {
    transform: scale(1.05);
}

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

#progress-bar {
    flex-grow: 1;
    margin: 0 15px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #535353;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1db954;
    cursor: pointer;
}

#current-time, #duration {
    font-size: 0.8rem;
    color: #b3b3b3;
    min-width: 40px;
}

.volume-container {
    display: flex;
    align-items: center;
    width: 15%;
    margin-left: 20px;
}

#volume-bar {
    width: 100px;
    height: 5px;
    margin-left: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #535353;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1db954;
    cursor: pointer;
}

.extra-controls {
    display: flex;
    align-items: center;
    width: 10%;
    justify-content: flex-end;
}

.extra-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin-left: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.extra-controls button:hover {
    color: #1db954;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .music-player {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .player-info, .player-controls, .progress-container, .volume-container {
        width: 100%;
        margin: 5px 0;
        justify-content: center;
    }
    
    .extra-controls {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}