/* ===== CSS Variables ===== */
:root {
    /* Light Theme Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
.dark-theme {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.dark-theme .header {
    background: rgba(17, 24, 39, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--bg-tertiary);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    display: none;
    overflow: hidden;
}

.lang-menu.active {
    display: block;
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.dark-theme .sun-icon {
    display: none;
}

.moon-icon {
    display: none;
}

.dark-theme .moon-icon {
    display: block;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Platform Icons */
.platforms {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: platformFloat 3s ease-in-out infinite;
}

.platform-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.platform-icon:hover::before {
    width: 100px;
    height: 100px;
}

.platform-icon:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.platform-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    animation-delay: 0s;
}

.platform-icon.instagram:hover {
    box-shadow: 0 15px 35px rgba(240, 148, 51, 0.5),
                0 0 30px rgba(188, 24, 136, 0.4);
    animation: instagramPulse 1.5s ease-in-out infinite;
}

.platform-icon.tiktok {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: white;
    animation-delay: 0.2s;
}

.platform-icon.tiktok:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(105, 255, 255, 0.3);
    animation: tiktokGlitch 0.3s ease-in-out infinite;
}

.platform-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
    color: white;
    animation-delay: 0.4s;
}

.platform-icon.facebook:hover {
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.5),
                0 0 30px rgba(24, 119, 242, 0.4);
    animation: facebookPulse 1.5s ease-in-out infinite;
}

.platform-icon.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
    animation-delay: 0.6s;
}

.platform-icon.twitter:hover {
    box-shadow: 0 15px 35px rgba(29, 161, 242, 0.5),
                0 0 30px rgba(29, 161, 242, 0.4);
    animation: twitterPulse 1.5s ease-in-out infinite;
}

.platform-icon.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    animation-delay: 0.8s;
}

.platform-icon.youtube:hover {
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.5),
                0 0 30px rgba(255, 0, 0, 0.4);
    animation: youtubePulse 1.5s ease-in-out infinite;
}

/* Platform Animations */
@keyframes platformFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes instagramPulse {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(240, 148, 51, 0.5),
                    0 0 30px rgba(188, 24, 136, 0.4);
    }
    50% {
        box-shadow: 0 15px 35px rgba(240, 148, 51, 0.7),
                    0 0 40px rgba(188, 24, 136, 0.6);
    }
}

@keyframes tiktokGlitch {
    0%, 100% {
        transform: translateY(-8px) scale(1.15) rotate(5deg);
    }
    25% {
        transform: translateY(-8px) scale(1.15) rotate(5deg) translateX(2px);
    }
    75% {
        transform: translateY(-8px) scale(1.15) rotate(5deg) translateX(-2px);
    }
}

@keyframes facebookPulse {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(24, 119, 242, 0.5),
                    0 0 30px rgba(24, 119, 242, 0.4);
    }
    50% {
        box-shadow: 0 15px 35px rgba(24, 119, 242, 0.7),
                    0 0 40px rgba(24, 119, 242, 0.6);
    }
}

@keyframes twitterPulse {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(29, 161, 242, 0.5),
                    0 0 30px rgba(29, 161, 242, 0.4);
    }
    50% {
        box-shadow: 0 15px 35px rgba(29, 161, 242, 0.7),
                    0 0 40px rgba(29, 161, 242, 0.6);
    }
}

@keyframes youtubePulse {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(255, 0, 0, 0.5),
                    0 0 30px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 15px 35px rgba(255, 0, 0, 0.7),
                    0 0 40px rgba(255, 0, 0, 0.6);
    }
}

/* Download Form */
.download-form {
    max-width: 700px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.url-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
}

.url-input::placeholder {
    color: var(--text-tertiary);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-btn:active {
    transform: translateY(0);
}

.input-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===== Result Section ===== */
.result-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.result-content {
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.result-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.result-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Quality Selector */
.quality-selector {
    margin-bottom: 2rem;
}

.quality-label {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    color: var(--text-primary);
}

.quality-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quality-btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.quality-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.quality-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quality-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.quality-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4),
                0 0 20px rgba(99, 102, 241, 0.3);
    animation: qualityPulse 2s ease-in-out infinite;
}

/* Quality Button Animations */
@keyframes qualityPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4),
                    0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6),
                    0 0 30px rgba(99, 102, 241, 0.5);
    }
}

/* Specific quality button colors */
.quality-btn[data-quality="1080"],
.quality-btn[data-quality="1080p"] {
    border-color: #10b981;
}

.quality-btn[data-quality="1080"]:hover,
.quality-btn[data-quality="1080p"]:hover {
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.quality-btn[data-quality="720"],
.quality-btn[data-quality="720p"] {
    border-color: #3b82f6;
}

.quality-btn[data-quality="720"]:hover,
.quality-btn[data-quality="720p"]:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.quality-btn[data-quality="mp3"] {
    border-color: #f59e0b;
}

.quality-btn[data-quality="mp3"]:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Download Actions */
.download-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.album-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.album-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.album-item-actions {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.album-item-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* ===== Features Section ===== */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Trending Section ===== */
.trending {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.trending-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.profile-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-item {
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.tag-item span {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .platforms {
        gap: 1rem;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
    }
    
    .platform-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
    }
    
    .result-thumbnail {
        width: 100%;
        height: auto;
    }
    
    .quality-options {
        justify-content: center;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
