:root {
    --primary-red: #ff3b5c;
    --dark-red: #e02d4c;
    --white: #ffffff;
    --bg: #f4f7f6;
    --text: #1a1a1a;
    --blue-btn: #51a7d8;
    --purple-stat: rgba(81, 45, 109, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); }

/* Navbar */
.navbar { background: white; padding: 15px 10%; display: flex; justify-content: center; border-bottom: 1px solid #eee; }
.logo { font-size: 1.6rem; font-weight: 800; }
.logo span { color: var(--primary-red); }

.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.hero { text-align: center; margin-bottom: 40px; }
h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; }
h1 span { color: var(--primary-red); }

/* Search Box */
.search-wrapper { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.input-container { display: flex; align-items: center; background: #f1f3f5; padding: 10px; border-radius: 12px; }
.input-container input { flex: 1; border: none; outline: none; background: transparent; padding: 10px; font-size: 1rem; }
.btn-paste { background: #ddd; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-weight: 600; }

.system-controls { margin: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.switch-container { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.slider { width: 44px; height: 22px; background: #ccc; border-radius: 20px; position: relative; transition: 0.3s; }
.slider::before { content: ""; position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; top: 3px; left: 3px; transition: 0.3s; }
input:checked + .slider { background: #22c55e; }
input:checked + .slider::before { transform: translateX(22px); }
input[type="checkbox"] { display: none; }

.btn-main { width: 100%; background: var(--primary-red); color: white; border: none; padding: 18px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; }

/* Result Section */
.result-card { display: none; background: white; border-radius: 20px; padding: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); margin-top: 30px; }
.result-grid { display: grid; grid-template-columns: 320px 1fr; gap: 25px; }
.preview-box { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
#previewPlayer { width: 100%; display: block; }
.stats-overlay { position: absolute; bottom: 0; width: 100%; background: var(--purple-stat); display: flex; justify-content: space-around; padding: 12px; color: white; font-size: 0.85rem; }

.caption-display { background: #f8f9fa; padding: 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #eee; margin: 10px 0 20px 0; }
.button-group { display: flex; flex-direction: column; gap: 10px; }
.btn-blue { background: var(--blue-btn); color: #000; border: none; padding: 15px; border-radius: 4px; font-weight: 500; cursor: pointer; }
.btn-blue.bold { font-weight: 800; }

/* SEO Article Styles */
.seo-article { background: white; margin-top: 60px; padding: 50px; border-radius: 20px; line-height: 1.8; color: #444; }
.seo-article h2 { color: #111; margin-bottom: 20px; font-size: 2rem; }
.seo-article h3 { color: #111; margin: 30px 0 15px 0; font-size: 1.5rem; }
.seo-article p { margin-bottom: 15px; }
.seo-article ul { margin: 15px 0 15px 25px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.content-box { background: #f9f9f9; padding: 20px; border-radius: 12px; border-left: 4px solid var(--primary-red); }
.faq-card { background: #fff5f6; padding: 15px; border-radius: 10px; margin-bottom: 10px; }

/* Loader */
.loader-area { display: none; margin-top: 20px; text-align: center; }
.spinner { width: 30px; height: 30px; border: 4px solid #eee; border-top: 4px solid var(--primary-red); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.footer { text-align: center; padding: 40px; color: #888; font-size: 0.9rem; }

@media (max-width: 768px) {
    .result-grid, .content-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
}