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

/* Banner Ads */
.banner-ad {
    position: fixed;
    width: 160px;
    height: 600px;
    z-index: 999;
    top: 50%;
    transform: translateY(-50%);
}

.left-banner {
    left: 10px;
}

.right-banner {
    right: 10px;
}

.banner-content {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-placeholder {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 8px;
}

.banner-size {
    font-size: 12px;
    color: #adb5bd;
}

/* Article Section */
.article-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 40px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.article-meta {
    color: #666;
    font-size: 1rem;
    font-style: italic;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content section {
    margin-bottom: 40px;
}

.article-content h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

.article-content h4 {
    color: #444;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.article-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6b6b;
}

.feature-item h4 {
    margin-bottom: 15px;
    color: #333;
}

.howto-steps {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.howto-steps li {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.howto-steps li:last-child {
    border-bottom: none;
}

.benefits-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.benefits-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #555;
}

.article-legal ul {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.article-legal ul li {
    margin-bottom: 8px;
    color: #856404;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 60px 0;
    margin: 40px 0;
}

.faq-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #ff6b6b;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-item h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design for Article and FAQ */
@media (max-width: 768px) {
    .article-header h2 {
        font-size: 2rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 20px;
    }
}

/* Hide banner ads on smaller screens */
@media (max-width: 1400px) {
    .banner-ad {
        display: none;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #e53e3e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #e53e3e;
}

/* Hero Section */
.hero {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.play-icon {
    width: 40px;
    height: 40px;
    background: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.logo-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.tagline {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.hero h2 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 16px;
    background: transparent;
}

.search-container input::placeholder {
    color: #999;
}

.search-container button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 100px;
}

.search-container button:hover {
    background: #3367d6;
}

.search-container button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.search-help {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Loading */
.loading {
    padding: 48px 0;
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.results {
    padding: 48px 0;
}

.results h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 32px;
}

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

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    font-size: 14px;
    color: #718096;
    margin-bottom: 4px;
}

.video-duration {
    font-size: 14px;
    color: #a0aec0;
    margin-bottom: 16px;
}

.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.download-buttons button {
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-size: 13px;
}

.watch-btn {
    background: #4285f4;
    color: white;
}

.watch-btn:hover {
    background: #3367d6;
    transform: scale(1.05);
}

.mp4-btn {
    background: #ea4335;
    color: white;
}

.mp4-btn:hover {
    background: #d33b2c;
    transform: scale(1.05);
}

.mp3-btn {
    background: #34a853;
    color: white;
}

.mp3-btn:hover {
    background: #2f855a;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .download-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .download-buttons button {
        font-size: 14px;
        padding: 14px;
    }
}

/* Advertisement Section */
.ad-section {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.ad-banner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ad-content {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 60px 20px;
    margin-bottom: 12px;
}

.ad-placeholder {
    font-size: 18px;
    font-weight: 500;
    color: #999;
    margin-bottom: 8px;
}

.ad-size {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 4px;
}

.ad-note {
    font-size: 12px;
    color: #ccc;
}

.ad-label {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* How to Use Section */
.how-to-use {
    padding: 60px 0;
    background: white;
}

.how-to-use h3 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.step p {
    color: #666;
    line-height: 1.5;
}

/* Features */
.features {
    padding: 60px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 32px 20px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
}

.download-icon {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.mobile-icon {
    background: linear-gradient(135deg, #ea4335, #fbbc05);
}

.secure-icon {
    background: linear-gradient(135deg, #34a853, #137333);
}

.feature h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 48px 0 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.footer-section h5,
.footer-section h6 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: #a0aec0;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #e53e3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.social-link:hover {
    background: #c53030;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 24px;
    text-align: center;
    color: #a0aec0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-header {
    margin-bottom: 24px;
}

.processing-icon {
    font-size: 64px;
    animation: spin 2s linear infinite;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.modal-header p {
    color: #718096;
}

.video-title {
    font-size: 14px;
    color: #a0aec0;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-space {
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 32px;
    margin: 24px 0;
}

.ad-placeholder {
    color: #a0aec0;
}

.ad-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ad-placeholder p {
    font-weight: 500;
    margin-bottom: 4px;
}

.ad-placeholder small {
    display: block;
    font-size: 12px;
}

.timer-section {
    margin: 24px 0;
}

.countdown {
    font-size: 48px;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 8px;
}

.download-btn {
    width: 100%;
    background: #38a169;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-bottom: 16px;
}

.download-btn:hover {
    background: #2f855a;
}

.cancel-btn {
    background: transparent;
    color: #718096;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
}

.cancel-btn:hover {
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 8px;
        border-radius: 12px;
        padding: 16px;
    }
    
    .search-container input {
        border-radius: 8px;
    }
    
    .search-container button {
        border-radius: 8px;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Error States */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 16px;
    border-radius: 8px;
    margin: 24px 0;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 48px 0;
    color: #718096;
}

.no-results h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #2d3748;
}