:root {
    --primary: #6A00FF;
    --secondary: #FF0077;
    --accent: #00E0FF;
    --yellow: #FFC93C;
    --light: #FAFBFF;
    --dark: #11121A;
    --gray: #6d6d78;
    --light-gray: #e5e8f0;
    --border-radius: 18px;
    --box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(120deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(120deg, var(--accent), var(--primary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.75;
    text-align: center;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

p {
    color: var(--gray);
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    padding: 14px 36px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(106, 0, 255, 0.25);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav ul li a {
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 90px 0 70px;
    background: linear-gradient(135deg, rgba(106, 0, 255, 0.05), rgba(255, 0, 119, 0.05));
}

.hero h1 {
    font-size: 3.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.download-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.download-box input {
    flex: 1;
    padding: 18px;
    border: none;
    font-size: 16px;
}

.download-box button {
    border: none;
    padding: 0 40px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-box button:hover {
    background: var(--secondary);
}

/* Loader */
.loader {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem auto;
    color: #555;
    font-size: 1rem;
}

.loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Results */
#results {
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.media-item {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.media-preview {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.media-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    opacity: 0.9;
    transition: var(--transition);
}

.video-container:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-actions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    display: inline-block;
    padding: 10px 15px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
    text-align: center;
}

.download-link:hover {
    background: var(--secondary);
}

.copy-link {
    padding: 10px 15px;
    background: var(--light-gray);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.copy-link:hover {
    background: var(--accent);
    color: #fff;
}

.error {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.success {
    padding: 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Features */
.features {
    padding: 80px 0;
}

.features h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 30px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 15px;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.how-it-works h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.steps {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.step {
    padding: 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Tools */
.tools {
    padding: 80px 0;
}

.tools h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tool-card {
    padding: 30px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.tool-card h3 {
    margin-bottom: 15px;
}

/* Blog Preview */
.blog-preview {
    padding: 80px 0;
    background: var(--light);
}

.blog-preview h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.blog-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: white;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--dark);
    color: #ddd;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    font-size: 14px;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .download-box {
        flex-direction: column;
    }
    
    .download-box button {
        width: 100%;
        padding: 16px;
    }
    
    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .features-grid,
    .steps,
    .tools-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #0c0c14;
        color: #f1f1f1;
    }
    
    header {
        background: rgba(17, 18, 26, 0.95);
    }
    
    .feature-item,
    .step,
    .tool-card,
    .blog-card,
    .media-item {
        background: #1a1a2a;
        color: #f1f1f1;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .media-preview {
        background: #2a2a3a;
    }
    
    .copy-link {
        background: #2a2a3a;
        color: #f1f1f1;
    }
    
    footer {
        background: #0c0c14;
    }
}
/* Additional styles for better image handling */
.media-preview {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-preview img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.image-loading {
    color: #999;
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.image-error i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.proxy-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

/* Loader styles */
.loader {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem auto;
    color: #555;
    font-size: 1rem;
}

.loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #e1306c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Results styles */
#results {
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.media-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e1306c;
    font-size: 20px;
    opacity: 0.9;
    transition: var(--transition);
}

.video-container:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-actions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    display: inline-block;
    padding: 10px 15px;
    background: #e1306c;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
    text-align: center;
}

.download-link:hover {
    background: #c72b5c;
}

.copy-link {
    padding: 10px 15px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-link:hover {
    background: #e0e0e0;
}

.error {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.success {
    padding: 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* New sections styles */
.section-description {
    color: #6d6d78;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.supported-content {
    padding: 80px 0;
    background: #fafafa;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.content-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.content-item:hover {
    transform: translateY(-5px);
}

.content-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.8rem;
}

.testimonials {
    padding: 80px 0;
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.testimonial-author p {
    color: #6d6d78;
    font-size: 0.9rem;
}

.faq {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-box {
    max-width: 600px;
    margin: 40px auto 0;
}

.ad-container {
    margin: 40px auto;
}

.ad-unit {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .media-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-link, .copy-link {
        flex: 1;
        text-align: center;
    }
    
    .content-grid, .testimonials-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        flex-direction: column;
    }
}