@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: local('Poppins Regular'), local('Poppins-Regular'), url(../fonts/Poppins-Regular.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(../fonts/Poppins-SemiBold.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --primary-color: #ff2c55; --primary-hover: #eb1e48; --brand-blue: #2563eb; --brand-sky: #3b82f6; --text-main: #0f172a; --text-muted: #64748b; --text-body: #475569; --bg-page: #ffffff; --border-color: #e2e8f0; --main-color: #fff; --main-color-hover: #fe2c55; }

html { box-sizing: border-box; height: 100%; scroll-behavior: smooth; }
*, :after, :before { box-sizing: inherit; }
body { color: var(--text-body); background-color: var(--bg-page); font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px; margin: 0 auto; line-height: 1.65; -webkit-font-smoothing: antialiased; }

a { color: #dc3545; transition: color .15s ease; }
a:hover { text-decoration: none; color: #a71d2a; }
kbd { color: #1e293b; background: #e2e8f0; border-radius: 4px; padding: 2px 6px; font-size: 12px; }
mark { color: #fff; background: var(--primary-color) !important; padding: .2rem .4rem; font-size: 87.5%; border-radius: .2rem; }

button:focus { outline: none; }
.btn-danger { background: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.btn-danger:hover { background: var(--primary-hover) !important; }

.form-control.border-white { border: 1px solid rgba(167, 180, 201, 0.7) !important; }
.form-control::-ms-expand { background-color: transparent; border: 0; }
.form-control:focus { color: var(--text-main); background-color: #fff; border-color: var(--brand-sky); outline: 0; box-shadow: none; }
.form-control::-webkit-input-placeholder, .form-control::-moz-placeholder, .form-control:-ms-input-placeholder { color: #94a3b8; opacity: 1; }
.btn.focus, .btn:focus { box-shadow: none; }

/* Site Header & Navbar */
.site-navbar { background: #ffffff; padding: 12px 0; }
.site-navbar .navbar-brand { font-size: 28px; font-weight: 700; padding: 0; margin: 0; }
.brand-badge-icon { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #ff2c55 0%, #fa2d60 100%); display: inline-flex; align-items: center; justify-content: center; margin-right: 9px; flex-shrink: 0; box-shadow: 0 3px 8px rgba(255, 44, 85, 0.3); }
.brand-name { color: #0f172a; font-weight: 700; margin-left: 6px; }
.brand-name-dark { color: #ff2c55; }
.site-navbar .navbar-nav .nav-link { color: #334155; padding: 8px 16px; font-size: 15px; font-weight: 500; }
.site-navbar .navbar-nav .nav-link:hover, .site-navbar .navbar-nav .nav-link.active { color: var(--primary-color); }
.site-navbar .navbar-nav .nav-item .dropdown-menu { right: 0; left: initial; border-radius: 10px; font-size: 14px; border: 1px solid var(--border-color); box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08); padding: 6px 0; }
.site-navbar .navbar-nav .nav-item .dropdown-menu a { padding: 8px 16px; color: #334155; }
.site-navbar .navbar-nav .nav-item .dropdown-menu a.active, .site-navbar .navbar-nav .nav-item .dropdown-menu a:active { color: var(--primary-color); background-color: #f1f5f9; }
.site-navbar .navbar-nav .nav-item .dropdown-menu a:hover { background-color: #f8fafc; color: var(--primary-color); }
.site-navbar .navbar-nav .nav-item .dropdown-menu a img { margin-right: 8px; border-radius: 2px; }
.lang-current-flag { border-radius: 2px; }

/* Subpage Search Panel (Kept intact for Detail/SEO pages) */
.header .search-panel.search-panel-subpage { padding: 36px 0 28px 0; text-align: center; background: #0f172a; color: #fff; border-bottom: 1px solid #1e293b; }
.header .search-panel.search-panel-subpage .slogan { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.header .search-panel.search-panel-subpage p { padding-bottom: 14px; color: #94a3b8; font-size: 14px; }
.header .search-panel.search-panel-subpage #download-form .url { height: 48px; border-radius: 6px 0 0 6px; border: 0; width: 100%; padding: .375rem 1rem; padding-right: 44px; font-size: 15px; color: #0f172a; }
.header .search-panel.search-panel-subpage #download-form .btn-download { font-size: 16px; border-radius: 0 6px 6px 0; width: 100%; height: 48px; color: #fff; background-color: var(--primary-color) !important; font-weight: 600; border: none; }
.header .search-panel.search-panel-subpage #download-form .btn-download:hover { background: var(--primary-hover) !important; }
.header .search-panel.search-panel-subpage #download-form .btn-clear { position: absolute; top: 7px; right: 8px; display: none; }
.header .search-panel.search-panel-subpage .social-proof { font-size: 12px; text-align: right; margin-top: 6px; color: #94a3b8; }
.header .search-panel.search-panel-subpage .social-proof .icon-heart { background: url(../img/heart.png) no-repeat; padding-left: 22px; }
.header .search-panel.search-panel-subpage .loading { display: none; height: 90px; align-items: center; justify-content: center; }

/* Modern Homepage Hero Section */
.hero-section { background: radial-gradient(circle at 82% 35%, rgba(219, 234, 254, 0.55) 0%, rgba(248, 250, 252, 0) 65%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-bottom: 1px solid rgba(226, 232, 240, 0.8); position: relative; }
.hero-row { min-height: 360px; }
.hero-title { font-size: 40px; font-weight: 800; line-height: 1.15; color: #0f172a; letter-spacing: -0.8px; margin-bottom: 10px; }
.hero-highlight { color: #ff2c55; background: linear-gradient(135deg, #ff2c55 0%, #fa2d60 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 48px; }
.hero-subtitle { font-size: 15.5px; color: #475569; line-height: 1.5; margin-bottom: 20px; max-width: 500px; }
.hero-search-panel { background: transparent; padding: 0; text-align: left; }
.hero-input-box { display: flex; align-items: center; background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 50px; padding: 4px 5px 4px 18px; box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.03); transition: border-color .2s ease, box-shadow .2s ease; position: relative; }
.hero-input-box:focus-within { border-color: #ff2c55; }
.hero-input-icon { display: inline-flex; align-items: center; color: #94a3b8; margin-right: 10px; flex-shrink: 0; }
.hero-url-input { border: none !important; background: transparent !important; padding: 0 8px !important; height: 46px !important; font-size: 15px !important; color: #0f172a !important; flex: 1; box-shadow: none !important; }
.hero-clear-btn { border: none; background: transparent; padding: 4px 8px; cursor: pointer; flex-shrink: 0; display: none; }
.hero-submit-btn { background: linear-gradient(135deg, #ff2c55 0%, #fa2d60 100%) !important; color: #ffffff !important; border-radius: 50px !important; height: 46px; padding: 0 24px !important; font-weight: 600 !important; font-size: 15px !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(255, 44, 85, 0.35); border: none; flex-shrink: 0; transition: transform .15s ease, box-shadow .15s ease; }
.hero-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 44, 85, 0.45); color: #ffffff !important; }
.hero-submit-btn span { margin-left: 3px; }
.hero-feature-pills { margin-top: 16px; }
.hero-feature-pills ul { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0; margin: 0; list-style: none; }
.hero-feature-pills ul li { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 500; color: #475569; gap: 6px; }
.pill-badge-hd { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.pill-badge-hd-red { background: #ff2c55; color: #ffffff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; display: inline-block; }
.hero-search-panel .loading { display: none; height: 80px; align-items: center; justify-content: center; }
.hero-search-panel .download-result { text-align: left; margin-top: 12px; }

/* Hero Right Visual */
.hero-image-container { position: relative; display: inline-block; }
.hero-illustration-img { max-width: 100%; height: auto; border-radius: 14px; filter: drop-shadow(0 12px 30px rgba(15, 23, 42, 0.08)); transition: transform .3s ease; }
.hero-illustration-img:hover { transform: translateY(-3px); }

/* Common Section & Container Styling */
.site-main { padding-top: 26px; padding-bottom: 30px; }
.home-section { margin-bottom: 36px; padding: 0; }

.section-pill-badge { display: inline-block; background: #ffe4e6; color: #ff2c55; border: 1px solid #fecdd3; font-size: 11.5px; font-weight: 700; padding: 3px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-main-heading { font-size: 26px; font-weight: 700; color: #0f172a; letter-spacing: -0.5px; margin-top: 6px; margin-bottom: 4px; }
.section-sub-heading { font-size: 14.5px; color: #64748b; line-height: 1.5; margin-bottom: 20px; }

.block-header { text-align: center; margin-bottom: 24px; }
.block-title { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.block-subtitle { font-size: 14.5px; color: #64748b; line-height: 1.5; margin-bottom: 0; }

/* Distinct Module Panel Container (Nổi bật & phân hóa các module trên nền trắng) */
.panel-module { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 24px; padding: 20px 24px; box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.06); }
.panel-has-badge { padding-top: 0; }
.panel-has-badge .block-header { margin-top: -13px; }

@media (max-width: 768px) {
    .panel-module { padding: 24px 18px 20px; border-radius: 18px; }
}

.panel-how-it-works { background: #f8fafc; border-color: #e2e8f0; }
.panel-formats { background: #fff5f7; border-color: #ffe4e6; }
.panel-quality-guide { background: #f8fbff; border-color: #dbeafe; }
.panel-why-choose { background: #f8fafc; border-color: #e2e8f0; }
.panel-discoveries { background: #f8fafc; border-color: #e2e8f0; }
.panel-faq { background: #fff8f9; border-color: #ffe4e6; }

/* Section: Lead Intro Box */
.section-lead-intro { margin-bottom: 30px; }
.lead-intro-box { margin: 0 auto; padding: 20px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-left: 4px solid #ff2c55; border-right: 4px solid #ff2c55; border-radius: 18px; box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.05); }
.lead-intro-text { font-size: 14.5px; line-height: 1.7; color: #475569; }

/* Section: How It Works Boxed Cards with Preview */
.steps-boxed-row { margin-top: 4px; }
.step-col { display: flex; }
.step-card-boxed { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 18px; padding: 22px 17px 20px; height: 100%; width: 100%; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.step-card-boxed:hover { background: #ffffff; transform: translateY(-3px); box-shadow: 0 12px 26px -3px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.step-badge-number { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: #ff2c55; color: #ffffff; font-weight: 700; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; box-shadow: 0 4px 10px rgba(255, 44, 85, 0.25); flex-shrink: 0; }
.step-flow-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 0; }
.step-flow-desc { font-size: 13px; color: #64748b; line-height: 1.45; margin-top: 6px; margin-bottom: 12px; }
.step-ui-preview { margin-top: auto; display: flex; align-items: center; justify-content: center; }
.step-preview-img { max-width: 100%; height: auto; display: block; border-radius: 10px; transition: transform .2s ease; }
.step-card-boxed:hover .step-preview-img { transform: scale(1.02); }

.read-guide-pill { border: 1.5px solid #ff2c55 !important; border-radius: 50px !important; color: #ff2c55 !important; background: transparent !important; padding: 8px 24px !important; font-weight: 700 !important; font-size: 14px !important; display: inline-flex; align-items: center; gap: 6px; transition: all .2s ease; }
.read-guide-pill:hover { background: #ff2c55 !important; color: #ffffff !important; box-shadow: 0 4px 16px rgba(255, 44, 85, 0.35); text-decoration: none; }
.read-guide-pill .arrow-sym { transition: transform .15s ease; }
.read-guide-pill:hover .arrow-sym { transform: translateX(3px); }

/* Section: What You Can Save */
.format-card { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 20px; padding: 26px 22px; height: 100%; display: flex; align-items: flex-start; box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.format-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -4px rgba(255, 44, 85, 0.09); border-color: #fecdd3; }
.format-icon-wrap { margin-right: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.format-icon-svg { display: block; }
.format-icon-square { width: 56px; height: 56px; background: #fff1f2; border: 1px solid #ffe4e6; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.format-body { flex: 1; }
.format-title { font-size: 17.5px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.format-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 0; }

/* Section: Why Choose DownMP4 */
.why-choose-card { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 20px; padding: 28px 20px 22px; height: 100%; text-align: center; box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.why-choose-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09); border-color: #cbd5e1; }
.why-icon-circle { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-circle-pink { background: #ffe4e6; color: #ff2c55; }
.icon-circle-blue { background: #dbeafe; color: #2563eb; }
.icon-circle-green { background: #dcfce7; color: #16a34a; }
.icon-circle-purple { background: #f3e8ff; color: #9333ea; }
.why-title { font-size: 16.5px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.why-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 0; }
.platform-links { font-size: 12.5px; font-weight: 600; color: #ff2c55; }
.platform-links a { color: #ff2c55; text-decoration: underline; transition: color .15s ease; }
.platform-links a:hover { color: #c71f40; }

/* Section: Which Quality Should You Choose? */
.quality-table-wrapper { max-width: 960px; margin: 0 auto; background: #ffffff; border: 1.5px solid #dbeafe; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.06); }
.quality-comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.quality-comparison-table thead tr { background: #eff6ff; border-bottom: 1.5px solid #dbeafe; }
.quality-comparison-table th { padding: 13px 22px; font-size: 14px; font-weight: 700; color: #1e3a8a; letter-spacing: 0.1px; }
.quality-comparison-table th:first-child { width: 22%; }
.quality-comparison-table td { padding: 13px 22px; font-size: 14px; color: #334155; border-top: 1px solid #f1f5f9; line-height: 1.55; }
.quality-comparison-table tbody tr:hover { background: #f8fbff; }
.quality-comparison-table .quality-name { font-weight: 700; color: #0f172a; white-space: nowrap; }
.quality-footnote { font-size: 13px; color: #64748b; margin-top: 14px; margin-bottom: 6px; }
.quality-guide-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #2563eb; text-decoration: underline; transition: color .15s ease; }
.quality-guide-link:hover { color: #1d4ed8; }

@media (max-width: 576px) {
    .quality-comparison-table th,
    .quality-comparison-table td { padding: 11px 14px; font-size: 13.5px; }
    .quality-comparison-table .quality-name { white-space: normal; }
}

/* Video Card Item (Latest Discoveries) */
.list-videos .video-item { transition: transform .2s ease; }
.list-videos .video-item .img { overflow: hidden; position: relative; width: 100%; border-radius: 12px; background: #e2e8f0; box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06); }
.list-videos .video-item .img::after { padding-top: 56.25%; display: block; content: ''; }
.list-videos .video-item .img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; object-fit: cover; transition: transform .25s ease; }
.list-videos .video-item:hover .img img { transform: scale(1.04); }
.list-videos .video-item .img .site { position: absolute; bottom: 8px; right: 8px; z-index: 1; color: #fff; background: rgba(15, 23, 42, 0.85); padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: normal; }
.list-videos .video-item .title { padding-top: 10px; }
.list-videos .video-item .title h3,
.list-videos .video-item .title h4 { font-size: 14px; color: #0f172a; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; margin-bottom: 0; }

/* Section: Latest Discoveries Carousel & Grid */
.section-discoveries .list-videos { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; gap: 16px; margin-left: 0; margin-right: 0; padding: 4px 2px 14px; }
.section-discoveries .list-videos::-webkit-scrollbar { display: none; }
.section-discoveries .list-videos .video-item { flex: 0 0 260px; max-width: 260px; scroll-snap-align: start; margin-bottom: 0; }

@media (max-width: 576px) {
    .section-discoveries .list-videos .video-item { flex: 0 0 210px; max-width: 210px; }
}

.carousel-nav-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e8f0; background: #ffffff; color: #475569; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: all 0.2s ease; padding: 0; }
.carousel-nav-btn:hover { background: #f8fafc; color: #ff2c55; border-color: #fecdd3; box-shadow: 0 2px 6px rgba(255, 44, 85, 0.15); }
.carousel-nav-btn:active { transform: scale(0.95); }

/* Section: FAQ Accordion */
.faq-accordion-container { max-width: 960px; margin: 0 auto; }
.faq-item { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.faq-item[open] { border-color: #fecdd3; box-shadow: 0 4px 16px rgba(255, 44, 85, 0.07); }
.faq-question { padding: 15px 20px; cursor: pointer; font-size: 15.5px; font-weight: 700; color: #0f172a; display: flex; align-items: center; list-style: none; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon-arrow { display: inline-flex; align-items: center; justify-content: center; margin-right: 14px; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] .faq-icon-arrow { transform: rotate(180deg); }
.faq-question-text { flex: 1; }
.faq-answer { padding: 0 20px 18px 20px; font-size: 13.5px; color: #475569; line-height: 1.6; }
.faq-answer p { margin-bottom: 0; }

/* Section: Final CTA Banner */
.cta-red-banner { background: linear-gradient(135deg, #ff2c55 0%, #fa2d60 100%); border-radius: 22px; padding: 30px 40px; color: #ffffff; box-shadow: 0 14px 34px rgba(255, 44, 85, 0.32); }
.cta-main-title { font-size: 23px; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.cta-main-subtitle { font-size: 14px; color: rgba(255, 255, 255, 0.95); }
.btn-white-pill { background: #ffffff !important; color: #ff2c55 !important; border-radius: 50px !important; padding: 11px 28px !important; font-weight: 700 !important; font-size: 15px !important; border: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, box-shadow .15s ease; }
.btn-white-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18); color: #e01b44 !important; }

.btn-white-pill span { margin-left: 7px; }
/* Site Footer (Restored from previous version) */
.site-footer { background: #ffffff; border-top: 1px solid var(--border-color); padding: 36px 0 28px; margin-top: 36px; }
.footer-brand { text-decoration: none; }
.footer-disclaimer { font-size: 13px; color: #475569; max-width: 380px; line-height: 1.5; }
.footer-col-title { font-size: 13.5px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.footer-nav-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 18px; list-style: none; padding: 0; margin: 0; }
.footer-nav-list-vertical { flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-nav-list li a { font-size: 13.5px; color: #475569; transition: color .15s ease; }
.footer-nav-list li a:hover { color: var(--primary-color); text-decoration: none; }
.footer-copyright { font-size: 13px; color: #475569; }

/* Subpage Hero & Content Preserved */
.hero-section.hero-compact { padding: 28px 0 24px; min-height: auto; }
.hero-compact-content { max-width: 880px; }
.hero-title-compact { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.hero-subtitle-compact { font-size: 14px; margin-bottom: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-input-box-compact { max-width: 880px; margin: 0 auto; }
.hero-social-proof { font-size: 12px; color: #64748b; margin-top: 8px; text-align: center; }
.hero-social-proof .icon-heart { background: url(../img/heart.png) no-repeat; padding-left: 20px; display: inline-block; }
.box-content { padding-top: 30px; }
.box-content h1, .box-content h2 { margin-bottom: 13px; font-size: 26px; font-weight: 600; }
.box-content h1 { font-size: 28px; }
.box-content ul li { padding-bottom: 10px; }
.box-content strong { font-size: 17px; }
.box-content .step-guide .step { font-weight: bold; }

/* Detail Page & Downloader Components (Preserved for compatibility) */
.video-detail h2 { font-size: 20px; }
.video-detail .video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-detail .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-detail .col-info { padding-left: 0px; }
.video-detail .col-info .title h1 { margin-bottom: 7px; font-size: 19px; line-height: 1.4; word-wrap: break-word; font-weight: 600; color: #0f172a; }
.video-detail .col-info .author { margin-bottom: 10px; }
.video-detail .col-info .video-info p { margin-bottom: .3rem }
.video-detail .description { word-break: break-word; line-height: 1.6; }
.video-detail .description.is-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.video-detail .description-toggle { padding: 4px 0 0; border: 0; background: transparent; color: #fe2c55; font-size: 14px; font-weight: 600; cursor: pointer; }
.video-detail .description-toggle:hover, .box-content .video-detail .description-toggle:focus { color: #c71f40; text-decoration: underline; }
.video-detail .btn-extract { padding: 10px 20px; font-size: 17px; }
.video-detail .qa-list .qa-title { font-weight: bold; margin-bottom: 0; font-size: 16px }
.video-detail .video-info p { margin-bottom: .3rem; }
.video-detail .video-tip-box { font-style: italic; margin-bottom: 10px; }
.video-detail strong { font-size: 15px; }

.download-container { margin: 30px 0 20px; }
.download-container .icon-loading, .btn-download-mp3 .icon-loading { animation: spinner .8s linear infinite; border: 2px solid #fff; border-right-color: transparent; border-radius: 100%; display: inline-block; width: 15px; height: 15px; margin-right: 3px; }
.download-container .download-block { margin-bottom: 10px; }
.download-container .download-block .download-block-header { font-size: 18px; font-weight: 600; border-bottom: 1px solid #e8e8e8; margin-bottom: 10px; }
.download-container .download-block .download-block-header i { width: 20px; height: 20px; margin-right: 5px; display: inline-block; margin-bottom: -4px; }
.download-container .download-block .download-block-header i.icon-film { background-image: url(../img/film.png); }
.download-container .download-block .download-block-header i.icon-mute { background-image: url(../img/mute.png); }
.download-container .download-block .download-block-header i.icon-audio { background-image: url(../img/audio.png); }
.download-container .download-block .download-block-header i.icon-subtitles { background-image: url(../img/subtitles.png); }
.download-container .download-block .download-block-header i.icon-photos { background-image: url(../img/photos.png); }
.download-container .download-block .download-block-content .btn-download { font-size: 14px; padding: 6px 10px; text-align: left; margin-bottom: 15px; }
.download-container .download-block .download-block-content .btn-download[data-loading="true"], .btn-download-mp3[data-loading="true"] { position: relative; overflow: hidden; isolation: isolate; }
.download-container .download-block .download-block-content .btn-download .download-progress-fill, .btn-download-mp3 .download-progress-fill { position: absolute; z-index: 0; inset: 0 auto 0 0; width: var(--download-progress, 0%); background-color: rgba(255, 255, 255, .32); transition: width .25s ease; pointer-events: none; }
.download-container .download-block .download-block-content .btn-download .progress-bar-animated, .btn-download-mp3 .progress-bar-animated { -webkit-animation: progress-bar-stripes 1s linear infinite !important; animation: progress-bar-stripes 1s linear infinite !important; }
.download-container .download-block .download-block-content .btn-download .download-progress-label, .btn-download-mp3 .download-progress-label { position: relative; z-index: 1; }
.download-container .download-block .download-block-content .btn-download .icon-download { background: url(../img/download-color.png) no-repeat; padding-left: 22px; background-position: 0 1px; }
.download-container .download-block .download-block-content .btn-download:hover .icon-download { background: url(../img/download-white.png) no-repeat; }
.download-container .download-block .download-block-content .btn-download.active .icon-download { background: url(../img/download-white.png) no-repeat; }
.download-container .download-block .download-block-content .btn-download .length { float: right; margin-top: 3px; }
.btn-download-mp3 .icon-download { background: url(../img/download-white.png) no-repeat; padding-left: 22px; background-position: 0 2px; }

.box-content .box-header .header-info { word-break: break-word; }
.box-content .box-header .header-info p { font-size: 14px; }
.box-content .box-header .header-logo img { border-radius: 50%; object-fit: cover; width: 170px; height: 170px; }

.stats .share-button { cursor: pointer; }
.stats .share-button:hover { background: #ccc; }
.stats .stats-item { padding-right: 30px; }
.stats .stats-item:last-child { padding: 0; border-radius: 10px; }

.legal-content { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 24px; padding: 15px 44px 44px 44px !important; box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.06); }
.legal-content h1 { font-size: 28px; color: #0f172a; text-align: center; margin-bottom: 30px; }
.legal-content h2 { font-size: 18px; color: #0f172a }
.legal-content h3 { font-size: 17px; font-weight: 600; }

.qa-list .qa-title { font-weight: bold; margin-bottom: 0; font-size: 18px }
.qa-list table tr td, .qa-list table tr th { padding: 15px; vertical-align: middle; border: 1px solid #ccc; }
.qa-list table tr td img { max-width: 200px; }

.img-container { overflow: hidden; position: relative; width: 100%; display: none; margin-bottom: 10px; }
.img-container::after { padding: 0; display: block; content: ''; }
.img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* Photo preview lightbox */
body.lightbox-open { overflow: hidden; }
.photo-preview-link, .photo-preview { cursor: zoom-in; }
.image-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .92); align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.image-lightbox.show { display: flex; }
.image-lightbox__img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; animation: lightboxZoomIn .18s ease; cursor: default; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.image-lightbox__close, .image-lightbox__nav { position: absolute; border: 0; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; line-height: 1; transition: background .15s ease, transform .15s ease; }
.image-lightbox__close:hover, .image-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.image-lightbox__close { top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; font-size: 32px; }
.image-lightbox__nav { top: 50%; width: 46px; height: 58px; margin-top: -29px; border-radius: 10px; font-size: 34px; }
.image-lightbox__prev { left: 18px; }
.image-lightbox__next { right: 18px; }
.image-lightbox__toolbar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 2; }
.image-lightbox__counter { position: static; transform: none; color: #fff; background: rgba(0, 0, 0, .65); border-radius: 999px; padding: 5px 15px; font-size: 14px; line-height: 22px; white-space: nowrap; }
.image-lightbox__download { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .65); border-radius: 50%; transition: background .15s ease, transform .15s ease; cursor: pointer; }
.image-lightbox__download[hidden] { display: none; }
.image-lightbox__download:hover { color: #fff; background: #000; transform: translateY(-1px); }
.image-lightbox__download .icon-download { display: block; width: 18px; height: 18px; padding: 0; background: url(../img/download-white.png) center / 18px 18px no-repeat; }
.image-lightbox__download .icon-loading { display: block; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spinner .8s linear infinite; }

#toast-container { position: fixed; top: 15px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast-item { font-weight: 600; max-width: 360px; padding: 12px 18px; border-radius: 8px; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; pointer-events: auto; }
.toast-item.toast-show { opacity: 1; transform: translateY(0); }
.toast-error { background: #fff0f0; color: #a32d2d; border: 1px solid #f7c1c1; }
.toast-success { background: #f0fff4; color: #276749; border: 1px solid #9fd3b0; }
.toast-info { background: #ebf4fb; color: #185fa5; border: 1px solid #b5d4f4; }

.share-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.share-modal.is-open { display: block; }
.share-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.share-modal__dialog { position: relative; width: min(620px, calc(100% - 32px)); margin: 0 auto; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); overflow: hidden; }
.share-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid #ccc; }
.share-modal__header h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.share-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #555; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.share-modal__close:hover { background: #f2f2f2; color: #111; }
.share-modal__close svg { width: 20px; height: 20px; fill: currentColor; }
.share-modal__content { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; padding: 20px; }
.share-item { flex: 1 1 70px; min-width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border: 0; border-radius: 12px; background: transparent; color: #222; cursor: pointer; font: inherit; transition: background-color 0.15s ease, transform 0.15s ease; }
.share-item:hover { background: #dbdbdb; }
.share-item:hover .share-item__icon { background: #111; color: #fff; }
.share-item:active { transform: scale(0.96); }
.share-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #f1f1f1; }
.share-item__icon svg { width: 23px; height: 23px; fill: currentColor; }
.share-item__label { font-size: 13px; line-height: 1.2; white-space: nowrap; }
.share-item--copy .share-item__icon { background: #111; color: #fff; }
.share-item--copy[data-copied="true"] .share-item__icon { background: #16803c; }
.share-item--copy[data-copied="true"] .share-item__label { color: #16803c; }
.share-item:focus-visible, .share-modal__close:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lightboxZoomIn {
    from { transform: scale(.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Video Detail SaaS Redesign (Homepage-matched Palette) */
.detail-page-wrapper { display: flex; flex-direction: column; gap: 22px; }
.detail-panel,
.detail-card { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 22px; padding: 24px 26px; box-shadow: 0 6px 22px -6px rgba(15, 23, 42, 0.05); }
.detail-hero-card { background: #ffffff; border-color: #e2e8f0; }
.detail-info-formats-card { background: #f8fbff; border-color: #dbeafe; }
.detail-about-card { background: #f8fafc; border-color: #e2e8f0; }
.detail-howto-card { background: #fff8f9; border-color: #ffe4e6; }
.detail-faq-card { background: #f8fbff; border-color: #dbeafe; }
.detail-help-card { background: #f8fafc; border-color: #e2e8f0; }
.detail-player-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.16); background: #0f172a; }
.detail-header-info { padding-left: 16px !important; }
.detail-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; color: #475569; font-size: 13.5px; }
.detail-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta-item svg { color: #64748b; flex-shrink: 0; }
.detail-share-btn { border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 50px; padding: 3px 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.detail-share-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.detail-video-description .description { color: #475569; font-size: 14px; line-height: 1.55; }
.detail-topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-topic-pill { display: inline-block; background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; font-size: 12.5px; font-weight: 500; padding: 4px 12px; border-radius: 50px; }

/* Generate Button */
.detail-download-container { margin: 0 !important; }
.generate-cta-wrapper { max-width: 560px; margin: 0 auto; }
.btn-generate-gradient { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px 28px !important; font-size: 17px !important; font-weight: 700 !important; color: #ffffff !important; background: linear-gradient(90deg, #ff2c55 0%, #eb1e48 100%) !important; border: none !important; border-radius: 50px !important; box-shadow: 0 10px 26px -4px rgba(255, 44, 85, 0.35); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.btn-generate-gradient:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -4px rgba(255, 44, 85, 0.45); color: #ffffff !important; }
.btn-generate-gradient:active { transform: translateY(0); }
.generate-terms-note { margin-top: 10px; font-size: 12.5px; color: #64748b; }
.generate-terms-note a { color: #2563eb; text-decoration: underline; }

/* Quick Download Ready Card */
.qualities-result-wrapper { display: flex; flex-direction: column; gap: 18px; }
.qualities-ready-card { background: #f8fbff; border-color: #dbeafe; padding: 24px 26px 16px; }
.qualities-advanced-card { background: #f8fafc; border-color: #e2e8f0; padding: 24px 26px 20px; }
.qualities-ready-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qualities-check-badge { width: 34px; height: 34px; border-radius: 50%; background: #16a34a; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.28); }
.qualities-ready-title { font-size: 17px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.qualities-ready-sub { font-size: 13.5px; color: #64748b; }
.quick-format-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 18px 18px; height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.quick-format-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.quick-format-icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; margin-right: 10px; }
.quick-icon-rose { background: #ffe4e6; color: #ff2c55; }
.quick-icon-blue { background: #dbeafe; color: #2563eb; }
.quick-icon-slate { background: #f1f5f9; color: #475569; }
.quick-icon-purple { background: #f3e8ff; color: #7c3aed; }
.quick-icon-orange { background: #fff7ed; color: #f59e0b; }
.quick-format-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.quick-format-sub { font-size: 13px; color: #64748b; }
.btn-quick-download { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; color: #ffffff !important; font-weight: 600 !important; font-size: 14.5px !important; padding: 10px 16px !important; border-radius: 10px !important; border: none !important; position: relative; overflow: hidden; isolation: isolate; transition: filter .15s ease, transform .15s ease; background: #ff2c55; box-shadow: 0 4px 12px rgba(255, 44, 85, 0.25); }
.btn-quick-download:hover { filter: brightness(0.85); color: #ffffff !important; }
.btn-quick-mp4 { background: #ff2c55; box-shadow: 0 4px 12px rgba(255, 44, 85, 0.25); }
.btn-quick-mp3 { background: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); }
.btn-quick-thumb { background: #0f172a; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); }
.btn-quick-download span { margin-left: 7px }
.btn-quick-download .download-progress-fill { position: absolute; z-index: 0; inset: 0 auto 0 0; width: var(--download-progress, 0%); background-color: rgba(255, 255, 255, 0.30); transition: width .25s ease; pointer-events: none; }
.btn-quick-download .progress-bar-animated,
.advanced-format-btn .progress-bar-animated { -webkit-animation: progress-bar-stripes 1s linear infinite !important; animation: progress-bar-stripes 1s linear infinite !important; }
.btn-quick-download .download-progress-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; }

.advanced-toggle-bar { margin-top: 16px; border-top: 1px solid #dbeafe; text-align: center; }
.btn-advanced-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 16px; color: #ff2c55; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-advanced-toggle:hover { color: #eb1e48; }
.btn-advanced-toggle .advanced-toggle-arrow { transition: transform .2s ease; }
.is-advanced-open .btn-advanced-toggle .advanced-toggle-arrow { transform: rotate(180deg); }
/* More Download Options (Advanced Panel - Horizontal Quality Chips) */
.qualities-advanced-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.qualities-gear-badge { width: 36px; height: 36px; border-radius: 10px; background: #ffe4e6; display: inline-flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.btn-advanced-close { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #ffffff; color: #ff2c55; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 50px; cursor: pointer; transition: all .15s ease; }
.btn-advanced-close:hover { background: #fff5f7; border-color: #fecdd3; }
.advanced-categories-stack { display: flex; flex-direction: column; gap: 14px; }
.advanced-category-group { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; }
.advanced-col-heading { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.advanced-format-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.advanced-format-btn { width: 100%; text-align: left; padding: 8px 14px !important; font-size: 13px !important; border: 1.5px solid #fecdd3 !important; border-radius: 10px !important; position: relative; transition: all .15s ease; color: #ff2c55 !important; margin-bottom: 10px; }
.advanced-format-btn:hover { color: #fff !important; background-color: #dc3545 !important; border-color: #dc3545 !important; }
.advanced-format-btn .adv-dl-icon { color: #ff2c55; margin-right: 3px; }
.advanced-format-btn .adv-format-name { white-space: nowrap; }
.advanced-format-btn .adv-format-meta { color: #64748b; font-size: 12px; font-weight: 500; float: right; }
.advanced-format-btn[data-loading="true"],
.advanced-format-btn.active { background: #ff2c55 !important; border-color: #ff2c55 !important; color: #ffffff !important; }
.advanced-format-btn[data-loading="true"] .adv-dl-icon,
.advanced-format-btn.active .adv-dl-icon,
.advanced-format-btn[data-loading="true"] .adv-format-meta,
.advanced-format-btn.active .adv-format-meta { color: #ffffff !important; }
.advanced-format-btn:hover .adv-dl-icon, .advanced-format-btn:hover .adv-format-meta { color: #fff; }
.advanced-format-btn .download-progress-fill { position: absolute; z-index: 0; inset: 0 auto 0 0; width: var(--download-progress, 0%); background-color: rgba(255, 255, 255, 0.30); transition: width .25s ease; pointer-events: none; }
.advanced-format-btn .download-progress-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #ffffff; }
.qualities-tip-bar { margin-top: 18px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; color: #475569; display: flex; align-items: center; gap: 8px; }

/* Info & Formats Card */
.detail-sub-heading { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.detail-kv-box { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 16px 18px; }
.detail-info-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: #334155; }
.detail-info-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.detail-info-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-info-key { display: inline-flex; align-items: center; gap: 7px; color: #64748b; flex-shrink: 0; }
.detail-info-key svg { color: #94a3b8; }
.detail-info-value { text-align: right; color: #0f172a; }
.detail-formats-table-wrap { background: #ffffff; border: 1.5px solid #dbeafe; border-radius: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-formats-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.detail-formats-table thead tr { background: #eff6ff; border-bottom: 1.5px solid #dbeafe; }
.detail-formats-table th { padding: 11px 14px; font-weight: 700; color: #1e3a8a; white-space: nowrap; }
.detail-formats-table td { padding: 10px 14px; color: #475569; border-top: 1px solid #f1f5f9; }
.detail-formats-table tbody tr:hover { background: #f8fbff; }
.detail-about-text p { font-size: 14px; color: #475569; line-height: 1.65; margin-bottom: 8px; }
.detail-download-notes { border-top: 1px solid #e2e8f0; }
.detail-notes-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.detail-note-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #475569; line-height: 1.5; }
.detail-note-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff2c55; margin-top: 7px; flex-shrink: 0; }

/* Bottom How-To & FAQ Cards */
.detail-howto-card,
.detail-faq-card { display: flex; flex-direction: column; }
.detail-card-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.detail-circle-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.detail-icon-rose { background: #ffe4e6; color: #ff2c55; }
.detail-icon-blue { background: #dbeafe; color: #2563eb; }
.detail-icon-indigo { background: #e0e7ff; color: #2563eb; }
.detail-steps-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 12px; }
.detail-steps-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #475569; line-height: 1.55; background: #ffffff; border: 1px solid #ffe4e6; border-radius: 12px; padding: 12px 14px; }
.detail-step-badge { width: 24px; height: 24px; border-radius: 50%; background: #ff2c55; color: #ffffff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.detail-howto-footer { border-top: 1px solid #ffe4e6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.detail-guide-footer-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #ff2c55; }
.detail-guide-footer-link:hover { color: #eb1e48; text-decoration: underline; }
.detail-device-links { font-size: 12.5px; font-weight: 600; color: #94a3b8; }
.detail-device-links a { color: #475569; }
.detail-device-links a:hover { color: #ff2c55; text-decoration: underline; }
.detail-faq-list { display: flex; flex-direction: column; gap: 8px; }
.detail-faq-list .faq-question { justify-content: space-between; padding: 13px 16px; font-size: 14.5px; }
.detail-faq-list .faq-answer { padding: 0 16px 14px; font-size: 13.5px; color: #475569; line-height: 1.6; }
.detail-faq-list .faq-item[open] .faq-toggle-icon { transform: rotate(180deg); }
.faq-toggle-icon { transition: transform .2s ease; color: #2563eb; font-weight: 700; }
.detail-view-more-link { font-size: 13.5px; font-weight: 700; color: #ff2c55; }
.detail-view-more-link:hover { color: #eb1e48; text-decoration: underline; }

/* Need Help? Card */
.detail-help-item { display: flex; align-items: center; gap: 14px; background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 16px 18px; height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.detail-help-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.detail-help-icon { width: 44px; height: 44px; border-radius: 12px; background: #f8fafc; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.detail-help-text { flex: 1; min-width: 0; }
.detail-help-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.detail-help-sub { font-size: 12.5px; color: #64748b; line-height: 1.4; }
.detail-help-arrow { color: #94a3b8; font-weight: 700; font-size: 16px; }
.detail-help-item:hover .detail-help-arrow { color: #ff2c55; }

/* Responsive Media Queries */
@media (max-width: 1199px) {
    .hero-title { font-size: 34px; }
    .hero-highlight { font-size: 40px; }
    .quality-cards-flex { gap: 6px; }
}

@media (max-width: 991px) {
    .site-navbar .navbar-collapse { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color); }
    .site-navbar .navbar-nav .nav-item .dropdown-menu { position: static; float: none; box-shadow: none; border: 1px solid var(--border-color); margin-bottom: 8px; }
    .site-navbar .navbar-nav .nav-item .dropdown-menu a { white-space: normal; line-height: 1.4; }
    .hero-section { padding: 32px 0 28px; }
    .hero-row {min-height:auto}
    .hero-title { font-size: 30px; text-align: center; }
    .hero-highlight { font-size: 34px; }
    .hero-subtitle { text-align: center; margin: 0 auto 20px; font-size: 15px; }
    .hero-feature-pills ul { justify-content: center; }
    .hero-input-box { max-width: 600px; margin: 0 auto; }
    .step-item-col { margin-bottom: 20px; }
    .step-arrow-divider { display: none !important; }
    .panel-ice-blue { padding: 22px 20px; }
    .quality-cards-flex { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
    .quality-text-side { text-align: center; margin-bottom: 16px; }
    .cta-red-banner, .cta-gradient-banner { padding: 24px 22px; }
    .cta-main-title { font-size: 19px; text-align: center; }
    .cta-main-subtitle { font-size: 13px; text-align: center; }
    .cta-info-col { flex-direction: column; text-align: center; }
    .cta-tray-icon-box { margin-right: 0 !important; margin-bottom: 10px; }
    .why-card { padding: 12px 14px; }
    .detail-header-info { padding-left: 15px !important; padding-right: 15px !important; }
    .detail-info-col { border-right: 0; border-bottom: 1px solid #f1f5f9; padding-bottom: 14px; }
    .detail-about-col { padding-left: 15px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle {display: none;}
    .hero-highlight { font-size: 29px; }
    .hero-title-compact { font-size: 22px; }
    .section-main-heading { font-size: 21px; }
    .section-sub-heading { font-size: 14px; }
    .block-title { font-size: 23px; }
    .quality-cards-flex { grid-template-columns: repeat(2, 1fr); }
    .saved-devices-tri-row { flex-direction: column; gap: 12px; }
    .device-tri-divider { display: none; }
    .cta-red-banner, .cta-gradient-banner { padding: 22px 18px; border-radius: 18px; }
    .detail-panel, .detail-card, .qualities-ready-card, .qualities-advanced-card { padding: 20px 16px; border-radius: 18px; }
    .legal-content { padding: 20px 18px 26px !important; border-radius: 18px; }
    .legal-content h1 { font-size: 23px; margin-bottom: 20px; }
    .site-footer { text-align: center; }
    .footer-nav-list { justify-content: center; }
    .footer-nav-list-vertical { align-items: center; }
    .footer-copyright { text-align: center; }
    .footer-disclaimer { margin: 0 auto 8px; }
}

@media (max-width: 576px) {
    .site-navbar .navbar-brand {margin-left:15px; font-size:25px;}
    .hero-section { padding: 15px 0 15px; }
    .hero-title { font-size: 23px; }
    .hero-highlight { font-size: 25px; }
    .hero-title-compact { font-size: 20px; }
    .hero-input-box { flex-direction: column; border-radius: 16px; padding: 8px; align-items: stretch; position: relative; }
    .hero-input-icon { display: none; }
    .hero-url-input { width: 100%; margin-bottom: 8px; padding: 5px 36px 10px 8px !important; border-bottom: 1px solid #e2e8f0 !important; border-radius: 0 !important; }
    .hero-clear-btn { position: absolute; top: 15px; right: 12px; z-index: 2; }
    .hero-submit-btn { width: 100%; border-radius: 12px !important; }
    .hero-feature-pills ul { gap: 8px 12px; }
    .hero-feature-pills ul li { font-size: 12.5px; }
    .quality-cards-flex { grid-template-columns: 1fr; max-width: 260px; margin: 16px auto 0; }
    .panel-ice-blue { padding: 18px 14px; border-radius: 18px; }
    .cta-main-title { font-size: 18px; }
    .btn-white-pill { width: 100%; }
    .btn-generate-gradient { font-size: 15px !important; padding: 12px 18px !important; height: auto; white-space: normal; line-height: 1.35; }
    .detail-formats-table th, .detail-formats-table td { padding: 9px 10px; font-size: 12.5px; }
    .detail-info-list li { flex-wrap: wrap; gap: 4px 10px; }
    .detail-info-value { word-break: break-word; }
    .detail-howto-footer { flex-direction: column; align-items: flex-start; }
    .share-modal__content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px 12px; }
    .share-item { min-width: 0; padding: 10px 4px; }
    .share-item__label { font-size: 12px; white-space: normal; text-align: center; word-break: break-word; }
}


/* ==========================================
   How To Download Page Redesign
   ========================================== */
.panel-choose-device { background: #fff8f9; border-color: #ffe4e6; }
.step-label-small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #2563eb; line-height: 1.2; }
.step-boxed-desc { font-size: 13.5px; color: #475569; line-height: 1.55; }
.step-tip-banner { display: flex; align-items: flex-start; gap: 8px; background: #fff5f7; border: 1px solid #ffe4e6; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: #475569; line-height: 1.45; }
.step-tip-icon { flex-shrink: 0; margin-top: 1px; }
.device-guide-card { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 18px; padding: 24px 18px 18px; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.device-guide-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -4px rgba(15, 23, 42, 0.08); border-color: #fecdd3; }
.device-guide-icon { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.device-icon-windows { background: #eff6ff; color: #2563eb; }
.device-icon-mac { background: #f1f5f9; color: #0f172a; }
.device-icon-android { background: #dcfce7; color: #16a34a; }
.device-icon-iphone { background: #f3e8ff; color: #9333ea; }
.device-guide-title { font-size: 16.5px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.device-guide-desc { font-size: 13px; color: #64748b; line-height: 1.55; margin-bottom: 16px; }
.device-guide-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 8px 14px; border-radius: 10px; background: #eff6ff; border: 1px solid #dbeafe; color: #2563eb; font-size: 13px; font-weight: 700; transition: all .15s ease; }
.device-guide-btn:hover { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.device-guide-path { margin-top: 8px; font-size: 11px; line-height: 1.35; color: #94a3b8; word-break: normal; overflow-wrap: anywhere; }

/* Compare Formats Bar */
.howto-compare-bar { max-width: 880px; margin: 0 auto; background: #ffffff; border: 1.5px solid #dbeafe; border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.howto-compare-text { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #334155; }
.howto-compare-icon { width: 30px; height: 30px; border-radius: 8px; background: #eff6ff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.howto-compare-btn { border-radius: 10px !important; font-size: 13px !important; font-weight: 700 !important; padding: 8px 18px !important; white-space: nowrap; }

/* Common Problems */
.panel-problems { background: #f8fafc; border-color: #e2e8f0; }
.problems-list { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.problem-item { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.problem-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); }
.problem-summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.problem-summary::-webkit-details-marker { display: none; }
.problem-icon-circle { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; font-weight: 800; }
.problem-icon-circle svg { width: 20px; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; fill: none; }
.problem-icon-pink { background: #ffe4e6; color: #ff2c55; }
.problem-icon-blue { background: #dbeafe; color: #2563eb; }
.problem-icon-purple { background: #f3e8ff; color: #9333ea; }
.problem-icon-red { background: #fee2e2; color: #dc2626; }
.problem-icon-green { background: #dcfce7; color: #16a34a; }
.problem-icon-yellow { background: #fff0cf; color: #ec9e00; }
.problem-icon-orange { background: #fff1df; color: #f49c15; }
.problem-text-wrap { flex: 1; min-width: 0; }
.problem-title { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 2px; line-height: 1.35; }
.problem-desc { font-size: 13.5px; color: #64748b; line-height: 1.45; margin: 0; }
.problem-chevron { color: #94a3b8; font-size: 16px; font-weight: 700; flex-shrink: 0; }

/* FAQ heading inside summary */
h3.faq-question-text { font-size: 15.5px; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.4; }

/* What You Can And Cannot Download */
.panel-can-cannot { background: #f8fbff; border-color: #dbeafe; }
.can-cannot-card { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 20px 22px; height: 100%; }
.can-card { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 36%); }
.cannot-card { border-color: #fecdd3; background: linear-gradient(180deg, #fff1f2 0%, #ffffff 36%); }
.can-cannot-heading { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.can-badge,
.cannot-badge { width: 24px; height: 24px; border-radius: 50%; color: #ffffff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.can-badge { background: #16a34a; }
.cannot-badge { background: #ff2c55; }
.can-cannot-list { padding-left: 18px; font-size: 13.5px; color: #475569; line-height: 1.75; }

/* Download Responsibly */
.panel-responsibly { background: #f8fafc; border-color: #e2e8f0; padding: 28px 32px; }
.responsibly-text { max-width: 960px; margin: 0 auto; font-size: 14px; color: #475569; line-height: 1.65; }

@media (max-width: 768px) {
    .howto-compare-bar { flex-direction: column; align-items: stretch; text-align: center; }
    .howto-compare-text { justify-content: center; }
}

/* ==========================================================================
   Shared How-To Components (Lead Bullets, Vertical Step Timeline, Pair Cards,
   Info Banner Cards, Other Devices Bar, Footnote)
   ========================================================================== */

/* Lead Intro Box Heading & Bullets */
.lead-intro-title { font-size: 21px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.content-bullets { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.content-bullets li { position: relative; padding-left: 20px; font-size: 14px; color: #475569; line-height: 1.55; }
.content-bullets li::before { content: ""; width: 8px; height: 8px; background: #ff2c55; border-radius: 50%; position: absolute; left: 0; top: 7px; }

/* Vertical Step Timeline */
.steps-timeline { display: grid; gap: 12px; position: relative; }
.steps-timeline::before { content: ""; position: absolute; z-index: 2; left: 43px; top: 52px; bottom: 58px; width: 3px; background: linear-gradient(#ff97ae, #ff2c55); }
.step-timeline-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) 360px; min-height: 204px; overflow: hidden; border: 1.5px solid #e2e8f0; border-radius: 18px; background: #ffffff; position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.step-timeline-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04); }
.step-timeline-card .step-badge-number { z-index: 3; justify-self: center; align-self: start; margin-top: 32px; width: 44px; height: 44px; font-size: 18px; }
.step-timeline-copy { align-self: center; padding: 22px 20px 22px 8px; }
.step-timeline-copy .step-flow-title { font-size: 18px; margin-bottom: 8px; }
.step-timeline-copy .step-boxed-desc { max-width: 540px; font-size: 14px; line-height: 1.6; }

/* Step Timeline Visual Mockups */
.step-timeline-mock { position: relative; width: 328px; max-width: 100%; justify-self: center; align-self: end; padding-top: 12px; overflow: visible; display: flex; align-items: flex-end; justify-content: center; min-height: 165px; }
.step-timeline-mock img { display: block; width: 272px; max-width: 100%; height: auto; object-fit: contain; }

/* 2-Column Pair Panels */
.panel-pair-card { padding: 28px 30px; }
.panel-pair-card .block-title { font-size: 21px; text-align: left; margin-bottom: 12px; }
.panel-pair-card p { font-size: 14px; color: #475569; line-height: 1.6; margin-bottom: 12px; }
.panel-pair-card p:last-child { margin-bottom: 0; }
.panel-pair-card .content-numbered,
.panel-pair-card .content-bullets { margin-top: 10px; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; }
.path + .path { margin-top: 8px; margin-bottom: 0; }
.chip { display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: 12px; color: #1464e2; background: #eaf3ff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip.gray { color: #203450; background: #f0f3f8; }
.chip svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; }
.arr { font-size: 18px; color: #334155; font-weight: 700; }
.utility-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.utility-chip { display: inline-flex; align-items: center; gap: 7px; background: #eef4ff; border: 1px solid #e0e9f7; color: #215cc0; border-radius: 11px; padding: 8px 12px; line-height: 1.25; font-size: 13.5px; font-weight: 700; }
.utility-chip .chip-mark { display: inline-block; font-size: 14px; color: #3e79e0; }
.utility-chip.android-chip { background: #f0f7ff; font-size: 13px; white-space: normal; }
.content-numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.content-numbered li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.55; font-size: 14px; color: #475569; }
.content-numbered .number { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #ffe3eb; color: #ff2c55; font-size: 13.5px; font-weight: 700; }
.panel-pair-card .content-numbered + p { background: #eff6ff; color: #1e40af; border-radius: 12px; padding: 13px 15px; margin-top: 16px; font-size: 13.5px; }
.tip-box { background: #eff6ff; color: #1e40af; border-radius: 12px; padding: 13px 15px; margin-top: 16px; display: flex; align-items: center; gap: 11px; font-size: 13.5px; line-height: 1.5; }
.tip-box .i-icon { color: #2563eb; font-size: 18px; font-weight: 700; flex-shrink: 0; line-height: 1; }

/* Info Banner Cards (Quality / Audio / Use Video) */
.panel-info-card { display: flex; align-items: center; gap: 20px; padding: 24px 30px; }
.info-card-icon { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 26px; font-weight: 700; }
.info-card-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.info-card-body { flex: 1; min-width: 0; }
.info-card-title { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 6px; line-height: 1.3; }
.info-card-desc { font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }

/* Other Devices Bar */
.other-devices-bar { padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.other-devices-bar strong { font-size: 15px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.other-devices-bar a { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.other-devices-bar a:hover { text-decoration: underline; }
.other-devices-bar .separate { width: 1px; height: 20px; background: #e2e8f0; }

/* Bottom Footnote */
.howto-footnote { text-align: center; color: #64748b; font-size: 13.5px; margin: 18px 0 4px; }

@media (max-width: 991px) {
    .step-timeline-card { grid-template-columns: 68px minmax(0, 1fr); min-height: auto; }
    .steps-timeline::before { left: 33px; }
    .step-timeline-copy { padding: 24px 18px 12px 6px; align-self: start; }
    .step-timeline-mock { grid-column: 2; width: min(100%, 328px); height: auto; min-height: 0; justify-self: start; justify-content: flex-start; margin-left: 6px; padding-bottom: 16px; }
    .step-timeline-mock.mock-iphone { height: auto; overflow: visible; }
    .other-devices-bar .separate { display: none; }
}

@media (max-width: 576px) {
    .steps-timeline::before { left: 25px; top: 44px; bottom: 44px; }
    .step-timeline-card { grid-template-columns: 52px minmax(0, 1fr); min-height: auto; }
    .step-timeline-card .step-badge-number { width: 36px; height: 36px; min-width: 36px; font-size: 15px; margin-top: 22px; }
    .step-timeline-copy { padding: 18px 14px 10px 4px; }
    .step-timeline-copy .step-flow-title { font-size: 16.5px; }
    .step-timeline-mock { margin-left: 0; padding: 4px 14px 16px 4px; max-width: 100%; }
    .panel-info-card { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
    .panel-pair-card { padding: 20px 16px; }
    .panel-pair-card .block-title { font-size: 18.5px; }
    .chip { font-size: 12.5px; padding: 6px 10px; white-space: normal; }
    .other-devices-bar { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .other-devices-bar a { white-space: normal; line-height: 1.4; }
    .panel-responsibly { padding: 20px 16px; }
    .problem-summary { padding: 12px 14px; gap: 10px; }
    .faq-question { padding: 13px 16px; font-size: 14.5px; }
    .faq-answer { padding: 0 16px 14px; }
}
