* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #e0e0e0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(15, 32, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(64, 156, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
    cursor: pointer;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(77, 160, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.8)); }
}

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

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    padding: 5px;
}

.nav-links .nav-text {
    font-size: 0.8rem;
    opacity: 0;
    position: absolute;
    bottom: -20px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover .nav-text {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4da0ff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Homepage */
.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(rgba(15, 32, 39, 0.7), rgba(15, 32, 39, 0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%234da0ff;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%232c5364;stop-opacity:0.3" /></linearGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)" /><circle cx="800" cy="300" r="150" fill="url(%23grad1)" /><circle cx="600" cy="600" r="80" fill="url(%23grad1)" /></svg>');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(77, 160, 255, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Search Container with Suggestions */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(32, 58, 67, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(77, 160, 255, 0.3);
}

.search-bar input::placeholder {
    color: rgba(224, 224, 224, 0.7);
}

.search-bar input:focus {
    background: rgba(32, 58, 67, 0.8);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(77, 160, 255, 0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Suggestions Box */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(32, 58, 67, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    animation: fadeInUp 0.3s ease-out;
    border: 1px solid rgba(77, 160, 255, 0.3);
}

.suggestion-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(77, 160, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(77, 160, 255, 0.2);
}

.suggestion-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
}

.suggestion-title {
    font-weight: bold;
    margin-bottom: 3px;
    color: #ffffff;
}

.suggestion-artist {
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight {
    color: #4da0ff;
    font-weight: bold;
}

.no-suggestions {
    padding: 15px 20px;
    text-align: center;
    opacity: 0.7;
}

/* Featured Section */
.featured {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.music-card {
    background: rgba(32, 58, 67, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(77, 160, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.music-card:hover {
    transform: translateY(-10px);
    background: rgba(32, 58, 67, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}

.music-card-img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.music-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.music-card:hover .music-card-img img {
    transform: scale(1.05);
}

.music-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #ffffff;
}

.music-card p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.music-card .actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    background: rgba(77, 160, 255, 0.2);
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-btn:hover {
    background: rgba(77, 160, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn.download {
    background: linear-gradient(45deg, #4da0ff, #2c5364);
}

.action-btn.play {
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
}

/* Player Page */
.player-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.player {
    background: rgba(32, 58, 67, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(77, 160, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.album-art {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    animation: rotate 10s linear infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.song-info {
    margin-bottom: 2rem;
}

.song-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.artist-name {
    font-size: 1.2rem;
    opacity: 0.8;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(77, 160, 255, 0.2);
    border-radius: 3px;
    margin: 2rem 0;
    position: relative;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    border-radius: 3px;
    width: 30%;
    transition: width 0.3s ease;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    background: rgba(77, 160, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.control-btn:hover {
    background: rgba(77, 160, 255, 0.3);
    transform: scale(1.1);
}

.control-btn.play {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    font-size: 1.5rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.volume-bar {
    width: 100px;
    height: 4px;
    background: rgba(77, 160, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-level {
    height: 100%;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    border-radius: 2px;
    width: 70%;
}

/* About Page */
.about-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(32, 58, 67, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(77, 160, 255, 0.3);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(32, 58, 67, 0.7);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4da0ff;
}

/* Favorites Page */
.favorites-page {
    padding: 80px 0;
}

.empty-favorites {
    text-align: center;
    padding: 40px 0;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Upload Interface */
.upload-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.upload-btn {
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.upload-content {
    background: rgba(32, 58, 67, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(77, 160, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.upload-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-label {
    display: block;
    padding: 15px 20px;
    background: rgba(77, 160, 255, 0.2);
    border: 2px dashed rgba(77, 160, 255, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: rgba(77, 160, 255, 0.3);
}

.upload-input {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 32, 39, 0.5);
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(77, 160, 255, 0.3);
}

.upload-input::placeholder {
    color: rgba(224, 224, 224, 0.7);
}

.upload-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.upload-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-submit:hover {
    transform: translateY(-2px);
}

.upload-cancel {
    flex: 1;
    padding: 12px;
    background: rgba(255, 107, 107, 0.2);
    border: none;
    border-radius: 10px;
    color: #ff6b6b;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-cancel:hover {
    background: rgba(255, 107, 107, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Results */
.search-results {
    padding: 2rem 0;
}

.search-results h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4da0ff, #4ecdc4);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .player {
        padding: 2rem;
    }
    
    .album-art {
        width: 250px;
        height: 250px;
    }

    .music-card .actions {
        flex-direction: column;
    }
    
    .suggestion-item {
        padding: 10px 15px;
    }
    
    .suggestion-icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
}