* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #000000;
    color: #e0e0e0;
    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.3); }
.tagline { color: #666; font-size: 0.9rem; margin-top: 5px; }

/* 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: #bbb; line-height: 1.4; }

/* 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.1rem; margin-bottom: 8px; }
.faq-item p { color: #888; font-size: 0.95rem; line-height: 1.6; }

/* 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; }