:root {
    --primary-color: #1DB954;
    --secondary-color: #191414;
    --accent-color: #1DB954;
    --text-color: #FFFFFF;
    --background-color: #0a0a0a;
    --card-background: #1e1e1e;
    --hover-color: #1ed760;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1DB954, #191414);
    overflow: hidden;
    padding-top: 80px;
    width: 100%;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        var(--background-color) 100%
    );
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%231DB954" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: backgroundMove 30s linear infinite;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #1DB954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 20px 20px 20px 55px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(29, 185, 84, 0.3);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.search-btn {
    padding: 20px 35px;
    border: none;
    border-radius: 30px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3);
}

.search-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
}

.results-wrapper {
    background-color: var(--background-color);
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.track-card {
    background: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 0.5s ease backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.track-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.2);
}

.track-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.track-info {
    padding: 20px;
}

.track-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.download-btn.downloaded {
    background: var(--primary-color);
    color: white;
    opacity: 0.8;
    cursor: default;
}

.download-btn.downloaded:hover {
    transform: none;
    background: var(--primary-color);
}

.loading-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.creator-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0;
}

.creator-credit a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-credit a:hover {
    color: var(--hover-color);
}

.creator-credit .fa-heart {
    color: #ff4b4b;
    animation: heartBeat 1.2s ease infinite;
}

footer {
    background: var(--secondary-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-disclaimer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    margin: 0 auto;
}

.notification.success {
    border-left: 4px solid #1DB954;
}

.notification.error {
    border-left: 4px solid #ff4b4b;
}

.notification.info {
    border-left: 4px solid #3498db;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification.success i {
    color: #1DB954;
}

.notification.error i {
    color: #ff4b4b;
}

.notification.info i {
    color: #3498db;
}

.notification-content {
    flex-grow: 1;
    overflow: hidden;
}

.notification-content p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

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

@keyframes slideOut {
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .track-card {
        margin: 0 auto;
        max-width: 320px;
    }
    
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .hero-content {
        padding: 20px;
    }
}


