* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #000000;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    padding: 40px 16px;
    width: 100%;
}

main {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ad Placeholders */
.ad-placeholder {
    width: 100%;
    height: 90px;
    background-color: #0a0a0a;
    border: 1px dashed #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 11px;
    margin-bottom: 30px;
    border-radius: 8px;
}

/* Header */
header { text-align: center; margin-bottom: 40px; }
.logo { font-size: 2.8rem; font-weight: 900; color: #fff; letter-spacing: -1px; }
.accent-cyan { color: #00f2ea; text-shadow: 0 0 15px rgba(0, 242, 234, 0.4); }
.tagline { color: #aaa; font-size: 1rem; margin-top: 8px; font-weight: 500; }

/* Download Container */
.download-container {
    width: 100%;
    background: #050505;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #111;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.input-group {
    display: flex;
    background: #000;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

#urlInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.btn { padding: 15px 20px; border: none; font-weight: 700; cursor: pointer; border-radius: 10px; transition: 0.2s; }
.btn-secondary { background: #111; color: #00f2ea; border-radius: 0; }
.btn-primary { width: 100%; background: linear-gradient(135deg, #00f2ea, #7000ff); color: #000; }
.btn-primary:active { transform: scale(0.98); }

/* How to Use */
.how-to-use { width: 100%; margin-bottom: 40px; }
.how-to-use h2 { text-align: center; margin-bottom: 25px; font-size: 1.5rem; color: #fff; }
.steps { display: flex; flex-direction: column; gap: 15px; }
.step { 
    display: flex; align-items: center; gap: 20px; 
    background: #0a0a0a; padding: 20px; border-radius: 15px; border: 1px solid #111; 
}
.step-number { 
    width: 35px; height: 35px; background: #00f2ea; color: #000; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0;
}
.step p { color: #ccc; line-height: 1.6; font-size: 1.05rem; }

/* FAQ */
.faq-section { width: 100%; margin-bottom: 40px; }
.faq-section h2 { text-align: center; margin-bottom: 25px; font-size: 1.5rem; color: #fff; }
.faq-item { background: #0a0a0a; padding: 20px; border-radius: 15px; border: 1px solid #111; margin-bottom: 15px; }
.faq-item h3 { color: #00f2ea; font-size: 1.2rem; margin-bottom: 10px; }
.faq-item p { color: #bbb; font-size: 1rem; line-height: 1.7; }

/* Feedback States */
.hidden { display: none !important; }
.loading-state { text-align: center; padding: 20px; }
.spinner { width: 35px; height: 35px; border: 3px solid #111; border-top: 3px solid #00f2ea; border-radius: 50%; margin: 0 auto 15px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.result-state { text-align: center; padding-top: 10px; }
.thumbnail-wrapper {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 0 1px #111;
}
.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}
.video-author {
    color: #00f2ea;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.95rem;
}
.video-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.4;
}
.btn-fast { 
    display: block; 
    background: linear-gradient(135deg, #00f2ea, #7000ff); 
    color: #000; 
    text-decoration: none; 
    padding: 20px; 
    border-radius: 12px; 
    font-weight: 900; 
    margin-top: 15px; 
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.4);
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-fast:active { transform: scale(0.98); }

.btn-final { 
    display: block; 
    background: #111; 
    color: #444; 
    text-decoration: none; 
    padding: 14px; 
    border-radius: 12px; 
    font-weight: 600; 
    margin-top: 15px; 
    border: 1px solid #222;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-final:hover { color: #888; border-color: #333; }
.btn-restart {
    width: 100%;
    margin-top: 15px;
    background: transparent;
    border: 1px solid #222 !important;
    color: #666 !important;
    font-size: 0.85rem;
}
.btn-restart:hover {
    background: #0a0a0a;
    color: #fff !important;
    border-color: #444 !important;
}

.error-state { color: #ff4d4d; text-align: center; padding: 15px; background: rgba(255,0,0,0.1); border-radius: 10px; margin-top: 10px; }

.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

/* Individual Share Button Colors */
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; box-shadow: 0 0 15px rgba(24, 119, 242, 0.5); }
.share-btn.tw:hover { background: #000000; border-color: #f0f0f0; color: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 0 15px rgba(37, 211, 102, 0.5); }
.share-btn.cp:hover { background: #00f2ea; border-color: #00f2ea; color: #000; box-shadow: 0 0 15px rgba(0, 242, 234, 0.5); }

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #1a1a1a;
    background: #080808;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.share-btn:hover {
    transform: scale(1.1) translateX(8px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #050505;
    border-top: 1px solid #111;
    padding: 12px 16px;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.mobile-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #888;
    text-decoration: none;
    font-size: 10px;
}

.mobile-share-item svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.mobile-share-item.fb svg { fill: #1877f2; }
.mobile-share-item.tw svg { fill: #fff; }
.mobile-share-item.wa svg { fill: #25d366; }
.mobile-share-item.cp svg { fill: #00f2ea; }

/* Footer Section */
footer {
    width: 100%;
    max-width: 800px;
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 1px solid #111;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-link:hover {
    color: #00f2ea;
}

.footer-text {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* SEO Content Sections */
.seo-content {
    width: 100%;
    max-width: 800px;
    margin: 30px 0;
    background: #050505;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #111;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.seo-content h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid #00f2ea;
    padding-left: 15px;
}

.seo-content p {
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .social-sidebar { display: none; }
    .social-mobile-bar { display: flex; }
    body { padding-bottom: 80px; }
}

@media (max-width: 600px) {
    .logo { font-size: 2.2rem; }
    .tagline { font-size: 0.9rem; }
    header { margin-bottom: 30px; }
}