:root {
    --primary: #1877F2;
    --primary-dark: #0f5dc2;
    --primary-deeper: #0a3f88;
    --accent: #10b981;
    --accent-dark: #059669;
    --bg-body: #f4f7fb;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(24, 119, 242, 0.12);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 12px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand-logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1877F2 0%, #0b5cff 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    flex-shrink: 0;
}

.logo-text small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-left: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 13px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(24, 119, 242, 0.08);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--text-main);
    flex-shrink: 0;
}

/* Hero Downloader Box (DownVideo style) */
.hero-section {
    background: linear-gradient(135deg, #1877F2 0%, #0d47a1 100%);
    color: #ffffff;
    padding: 56px 0 68px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
    max-width: 100%;
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto 28px;
}

/* Downloader Search Box */
.downloader-card {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(7, 29, 73, 0.28);
}

.downloader-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.input-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.url-input {
    width: 100%;
    height: 58px;
    padding: 0 92px 0 46px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    min-width: 0;
}

.url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.12);
}

.btn-paste {
    position: absolute;
    right: 8px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-paste:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.btn-download-submit {
    height: 58px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.btn-download-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.45);
}

.btn-download-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.hero-Supported-pills {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-Supported-pills span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Loading & Alert States */
.result-wrapper {
    max-width: 860px;
    margin: -28px auto 30px;
    position: relative;
    z-index: 10;
}

.loader-box {
    display: none;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-top: 18px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    word-break: break-word;
}

.alert-box.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

/* Video Result Card */
.video-result-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 16px;
    overflow: hidden;
}

.video-result-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.video-info-box {
    min-width: 0;
    width: 100%;
}

.video-thumb-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.video-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.video-meta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.video-meta-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.streams-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}

.streams-table th,
.streams-table td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.streams-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    background: #f8fafc;
}

.badge-quality {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-hd {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-sd {
    background: #f1f5f9;
    color: #475569;
}

.badge-audio {
    background: #fef3c7;
    color: #b45309;
}

.btn-dl-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 9px 15px;
    border-radius: 8px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-dl-row:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dl-row.btn-dl-hd {
    background: linear-gradient(135deg, #1877F2 0%, #0d5bd9 100%);
}

/* Download Another Video Button */
.download-another-wrap {
    margin-top: 16px;
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.btn-download-another {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    border: 1.5px solid #bfdbfe;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    transition: all 0.2s ease;
}

.btn-download-another:hover {
    background: linear-gradient(135deg, #1877F2 0%, #0f5dc2 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(24, 119, 242, 0.28);
}

/* Ad Placeholders */
.ad-container {
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
}

.ad-placeholder {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.ad-badge {
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Content Sections */
.section-block {
    padding: 46px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 34px;
}

.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* 3-Step Guide Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-card-img-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.step-card:hover .step-card-img-wrap img {
    transform: scale(1.03);
}

.step-card-content {
    padding: 4px 6px 6px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(24, 119, 242, 0.12);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-item h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Updates & FAQ 2-Column Split Layout (FDOWN Style) */
.updates-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

.panel-box {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.08);
    border: 1px solid #cbd5e1;
}

.panel-box.updates-panel {
    border-color: #2c3e50;
}

.panel-box.faq-panel {
    border-color: #3498db;
}

.panel-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.panel-box-header.header-dark {
    background: #2c3e50;
}

.panel-box-header.header-blue {
    background: #3498db;
}

.panel-box-body {
    padding: 18px;
    background: #ffffff;
}

.updates-scroll-area {
    max-height: 540px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.updates-scroll-area::-webkit-scrollbar {
    width: 7px;
}

.updates-scroll-area::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.updates-scroll-area::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 4px;
}

.update-card {
    padding: 15px 18px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.93rem;
    line-height: 1.55;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    word-break: break-word;
}

.update-card-teal {
    background: #18b596;
}

.update-card-blue {
    background: #3498db;
}

.update-card-indigo {
    background: #6366f1;
}

.update-card-amber {
    background: #d97706;
}

.update-title {
    font-weight: 800;
    color: #1e293b;
    display: inline;
    margin-right: 4px;
}

.update-cog {
    vertical-align: -2px;
    margin-right: 3px;
    color: #1e293b;
}

.update-text {
    color: #ffffff;
    font-weight: 500;
}

/* FAQ Accordion */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #f3f4f6;
    border: none;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: inherit;
    line-height: 1.4;
    transition: background 0.15s ease;
}

.faq-question:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

.faq-chevron {
    flex-shrink: 0;
    color: #374151;
    transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: #18b596;
}

.faq-answer {
    display: none;
    background: #ffffff;
    padding: 14px 16px;
    color: #4b5563;
    font-size: 0.91rem;
    border-top: 1px solid #e5e7eb;
    line-height: 1.55;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Private Downloader Form Styles */
.private-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 840px;
    margin: -34px auto 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.93rem;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.45;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
    min-width: 0;
}

.form-control:focus {
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 140px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.copy-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.btn-secondary {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #1e293b;
}

/* Content Page Card */
.page-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 34px;
    margin: 32px auto;
    max-width: 860px;
    box-shadow: var(--shadow-sm);
}

.page-card h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 14px;
    line-height: 1.3;
}

.page-card h2 {
    font-size: 1.25rem;
    margin: 22px 0 10px;
}

.page-card p,
.page-card li {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.page-card ul,
.page-card ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 52px 0 30px;
    margin-top: 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text {
    color: #ffffff;
}

.footer-desc {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 0.92rem;
    max-width: 420px;
}

.footer-links-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 14px;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 9px;
}

.footer-links-col a {
    color: #94a3b8;
    font-size: 0.92rem;
}

.footer-links-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.86rem;
    color: #94a3b8;
}

.disclaimer-note {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #64748b;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */

/* 1. Tablet & Mobile Navigation (<= 960px) */
@media (max-width: 960px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px 18px;
        gap: 6px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
        z-index: 999;
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.98rem;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .updates-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* 2. Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        height: 62px;
    }

    .site-nav {
        top: 62px;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .hero-section {
        padding: 36px 0 52px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 1.65rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.94rem;
        margin-bottom: 22px;
    }

    .downloader-card {
        padding: 10px;
        border-radius: 14px;
    }

    .downloader-form {
        flex-direction: column;
        gap: 10px;
    }

    .input-wrapper {
        width: 100%;
        flex: none;
    }

    .url-input {
        height: 52px;
        padding: 0 78px 0 40px;
        font-size: 0.94rem;
    }

    .input-icon {
        left: 13px;
    }

    .btn-paste {
        height: 38px;
        padding: 0 11px;
        font-size: 0.8rem;
        right: 7px;
    }

    .btn-download-submit {
        width: 100%;
        height: 52px;
        font-size: 1rem;
    }

    .hero-Supported-pills {
        font-size: 0.8rem;
        gap: 8px 12px;
        margin-top: 14px;
    }

    .result-wrapper {
        margin: -20px auto 24px;
    }

    .video-result-card {
        padding: 16px;
        border-radius: 16px;
    }

    .video-result-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-meta-title {
        font-size: 1.05rem;
    }

    .steps-grid,
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-block {
        padding: 34px 0;
    }

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

    .step-card,
    .feature-item {
        padding: 20px 18px;
    }

    .private-box {
        padding: 18px;
        margin: -24px auto 24px;
        border-radius: 16px;
    }

    .copy-row {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
        height: 46px;
    }

    .page-card {
        padding: 22px 18px;
        margin: 20px auto;
        border-radius: 16px;
    }

    .site-footer {
        padding: 38px 0 24px;
        margin-top: 32px;
    }
}

/* 3. Small Mobile Phones (<= 520px) */
@media (max-width: 520px) {
    .hero-title {
        font-size: 1.42rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    /* Hide the middle "Format" column on narrow phones so Quality + Download Button fit cleanly */
    .streams-table th:nth-child(2),
    .streams-table td:nth-child(2) {
        display: none;
    }

    .streams-table th,
    .streams-table td {
        padding: 10px 8px;
        font-size: 0.86rem;
    }

    .btn-dl-row {
        padding: 8px 12px;
        font-size: 0.82rem;
        gap: 5px;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 0.94rem;
    }

    .faq-answer {
        padding: 0 16px 15px;
        font-size: 0.88rem;
    }
}


/* ==========================================================================
   MULTI-LANGUAGE SWITCHER & FOOTER LANG BAR + RTL SUPPORT
   ========================================================================== */
.lang-switcher {
    position: relative;
    margin-left: 6px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    padding: 6px;
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-option small {
    color: var(--text-light);
    font-size: 0.74rem;
    font-weight: 700;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(24, 119, 242, 0.09);
    color: var(--primary);
}

.lang-option.active {
    font-weight: 700;
}

.footer-lang-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    padding: 18px 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lang-bar a {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.footer-lang-bar a:hover,
.footer-lang-bar a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 6px;
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 11px 14px;
    }

    .lang-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-top: 6px;
    }
}

/* RTL Layout Support for Arabic (dir="rtl") */
html[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .url-input {
    padding: 0 46px 0 92px;
}

html[dir="rtl"] .btn-paste {
    right: auto;
    left: 8px;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .streams-table th,
html[dir="rtl"] .streams-table td,
html[dir="rtl"] .faq-question,
html[dir="rtl"] .faq-answer,
html[dir="rtl"] .alert-box,
html[dir="rtl"] .form-group {
    text-align: right;
}
