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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    padding: 20px 10px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.download-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

#videoUrl {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#videoUrl:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

#downloadBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

#downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

#downloadBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #667eea;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loading p {
    font-size: 1.1rem;
    font-weight: 500;
}

.result {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.video-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.video-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
}

.video-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.author {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 8px;
}

.music {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.video-info-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-info-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
}

.quality {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.quality-info {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

.duration {
    background: #fff3e0 !important;
    color: #f57c00 !important;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.download-options {
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.download-btn.audio {
    background: #ff6b35;
}

.download-btn.audio:hover {
    background: #e55a2b;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

.error i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.error p {
    margin: 10px 0;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.features {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

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

.how-to-use {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.how-to-use h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.how-to-use ol {
    max-width: 600px;
    margin: 0 auto;
}

.how-to-use li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.how-to-use strong {
    color: #667eea;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #007cba;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-item p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Content Pages (Legal Pages) */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.content-page h2 {
    color: #007cba;
    border-bottom: 3px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.content-page h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.content-page h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-page ul, .content-page ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 8px;
}

.content-page a {
    color: #007cba;
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.policy-notice {
    background: #e8f4f8;
    border-left: 4px solid #007cba;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.policy-notice p {
    margin: 0;
    font-weight: 500;
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 15px;
    text-align: center;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #007cba;
}

/* Success/Error Messages */
.success-message, .error-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message i, .error-message i {
    font-size: 18px;
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #005a8b;
    color: white;
    text-decoration: none;
}

/* Warning/Info Boxes */
.contact-box {
    background: #e8f4f8;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.contact-box h4 {
    color: #007cba;
    margin-top: 0;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h4 {
    color: #856404;
    margin-top: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    header p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .download-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }

    .features, .how-to-use, .faq-section {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    .features h2, .how-to-use h2, .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .faq-item p {
        font-size: 0.9rem;
    }

    .video-info {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }

    .video-preview {
        text-align: center;
    }

    .video-preview img {
        max-width: 150px;
        height: auto;
        border-radius: 10px;
    }

    .video-details h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .video-info-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
        justify-content: flex-start;
    }

    .video-info-meta span {
        background: #f0f0f0;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 0.85rem;
        color: #666;
    }

    .download-buttons {
        margin: 15px 0;
    }

    .download-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .video-stats {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        margin-top: 15px;
        font-size: 0.9rem;
    }

    .video-stats span {
        flex: 1;
        text-align: center;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    #videoUrl {
        font-size: 14px;
        padding: 12px 15px;
    }

    #downloadBtn {
        padding: 12px 20px;
        font-size: 14px;
    }
}