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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background-color: #1db954;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.search-box button:hover {
    background-color: #17a44b;
    transform: scale(1.05);
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: left;
    line-height: 1.8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.result-card h2 {
    margin-bottom: 10px;
}

.result-card p {
    font-size: 0.95rem;
}
.result-content {
    display: flex;
    gap: 20px;
    align-items: center;
    animation: fadeIn 0.6s ease-in-out;
}

.album-cover {
    width: 150px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.track-info {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.mood-badge {
    margin-top: 15px;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.recommendation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    transition: 0.3s ease;
}

.recommendation-item:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.02);
}

.recommendation-item img {
    width: 50px;
    border-radius: 6px;
}

.recommendation-item span {
    font-size: 0.85rem;
    opacity: 0.8;
}
.audio-player {
    margin-top: 15px;
}

.audio-player audio {
    width: 100%;
    outline: none;
    border-radius: 8px;
}
.no-preview {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}
/* 🔄 Loading Card */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-in-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 🎵 Wave Loader */

.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease-in-out;
}

.loading-card p {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.wave-menu {
    border: 3px solid #1db954;
    border-radius: 50px;
    width: 200px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    background: rgba(29, 185, 84, 0.1);
}

.wave-menu li {
    list-style: none;
    height: 30px;
    width: 4px;
    border-radius: 10px;
    background: #1db954;
    margin: 0 6px;
    animation-name: wave1;
    animation-duration: 0.3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.wave-menu li:nth-child(2) { animation-name: wave2; animation-delay: 0.2s; }
.wave-menu li:nth-child(3) { animation-name: wave3; animation-delay: 0.23s; animation-duration: 0.4s; }
.wave-menu li:nth-child(4) { animation-name: wave4; animation-delay: 0.1s; animation-duration: 0.3s; }
.wave-menu li:nth-child(5) { animation-delay: 0.5s; }
.wave-menu li:nth-child(6) { animation-name: wave2; animation-duration: 0.5s; }
.wave-menu li:nth-child(8) { animation-name: wave4; animation-delay: 0.4s; animation-duration: 0.25s; }
.wave-menu li:nth-child(9) { animation-name: wave3; animation-delay: 0.15s; }

@keyframes wave1 {
    from { transform: scaleY(1); }
    to { transform: scaleY(0.5); }
}

@keyframes wave2 {
    from { transform: scaleY(0.3); }
    to { transform: scaleY(0.6); }
}

@keyframes wave3 {
    from { transform: scaleY(0.6); }
    to { transform: scaleY(0.8); }
}

@keyframes wave4 {
    from { transform: scaleY(0.2); }
    to { transform: scaleY(0.5); }
}
/* 📊 Mood Meter */

.mood-meter {
    margin-top: 15px;
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}

.mood-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.6s ease-in-out;
}