* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f0f0f0;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.w3-bar {
    padding: 12px 5%;
}

.w3-bar-item {
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.w3-bar-item:hover {
    background: #e94560 !important;
    transform: translateY(-2px);
}

/* Hero Section */
.music-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') 
                no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 50px;
}

.music-hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.music-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ff6b6b, #ffa502, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

.music-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Search & Filter Section */
.search-section {
    background: rgba(15, 23, 42, 0.8);
    padding: 30px 5%;
    backdrop-filter: blur(10px);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #e94560;
    transform: translateY(-3px);
}

/* Content Section */
.content-section {
    padding: 50px 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #1a1a2e, #e94560, #1a1a2e);
    border-radius: 2px;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(233, 69, 96, 0.3);
    border-color: rgba(233, 69, 96, 0.3);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffa502;
}

.card p {
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.8;
}

.card .info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.year {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.play-btn {
    background: #e94560;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    background: #ff6b6b;
}

.artist-card {
    display: flex;
    align-items: center;
    padding: 20px;
}

.artist-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #e94560;
}

.artist-info {
    flex: 1;
}

.song-list {
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.song-list.show {
    max-height: 500px;
}

.song-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-item:last-child {
    border-bottom: none;
}

.song-number {
    margin-right: 10px;
    color: #ffa502;
    font-weight: bold;
}

.song-title {
    flex: 1;
}

.song-duration {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 10px;
}

.view-songs-btn {
    background: rgba(233, 69, 96, 0.2);
    color: #ffa502;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-songs-btn:hover {
    background: rgba(233, 69, 96, 0.4);
}

.view-songs-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-songs-btn.active i {
    transform: rotate(180deg);
}

.top-song {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.top-song i {
    color: #ffa502;
    margin-right: 10px;
}

/* Footer */
footer {
    background: rgba(10, 10, 20, 0.95);
    padding: 50px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-icons {
    margin: 30px 0;
}

.social-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
}

.social-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
}

.social-icon:hover {
    background: #e94560;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .music-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .w3-bar-item {
        padding: 10px 15px;
        margin: 5px;
    }
    .music-hero h1 {
        font-size: 2.2rem;
    }
    .music-hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .music-hero {
        height: 50vh;
    }
    .search-container {
        flex-direction: column;
    }
    .search-box {
        min-width: 100%;
    }
}