:root {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Blobs for modern aesthetic */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -50px;
    right: -50px;
    animation-direction: alternate-reverse;
    animation-duration: 12s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.1);
    }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
    border-top: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector select {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    padding: 5px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.language-selector select option {
    background: var(--bg-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero {
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    padding: 8px;
    gap: 10px;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    padding-left: 15px;
    color: #94a3b8;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
    padding: 10px 0;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box button:hover {
    background: var(--primary-hover);
}

.search-box button:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

#loading {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

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

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

.error-msg {
    margin-top: 2rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.result-card {
    margin-top: 2rem;
    padding: 20px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.result-header img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

.res-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dl-btn {
    flex: 1;
    min-width: 180px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.dl-btn:active {
    transform: scale(0.96);
}

.video-dl {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.video-dl:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.audio-dl {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.audio-dl:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.features {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.features h3 {
    color: #94a3b8;
    margin-bottom: 15px;
    font-weight: 400;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 2rem;
    color: #475569;
}

.icons i {
    transition: color 0.3s, transform 0.3s;
}

.icons i:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

footer {
    text-align: center;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    color: #94a3b8;
    margin-top: 2rem;
}

/* SEO Content Section */
.seo-content {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem 2.5rem;
    line-height: 1.8;
    color: #94a3b8;
    animation: fadeIn 0.8s ease-out;
}

.seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.seo-content p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.seo-content strong {
    color: #e2e8f0;
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.seo-content ul li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.seo-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

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

footer a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .search-box input {
        width: 100%;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 15px;
        text-align: center;
    }

    .link-icon {
        display: none;
    }

    .search-box button {
        width: 100%;
        justify-content: center;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }
}