:root {
    --primary-color: #fe2c55;
    --primary-hover: #e0254a;
    --bg-color: #f8f9fa;
    --bg-alt: #f1f3f5;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 760px;
}

/* ============ HEADER ============ */
.site-header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
}

.logo-text {
    color: var(--text-color);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    transition: 0.2s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    
    .site-nav.active {
        display: flex;
    }
    
    .site-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .site-nav a:last-child {
        border-bottom: none;
    }
}

/* ============ MAIN ============ */
.site-main {
    flex: 1;
}

/* ============ HERO ============ */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--text-color);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.downloader-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border 0.2s;
    background: #fff;
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.button-row {
    display: flex;
    gap: 0.5rem;
}

.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    flex: 1;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-lg {
    padding: 1rem;
    font-size: 1.05rem;
    width: 100%;
}

.supported-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.result-area {
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ SECTIONS ============ */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.page-header {
    padding: 3rem 0 1.5rem;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============ STEPS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(254, 44, 85, 0.1);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.step-content p {
    color: var(--text-muted);
}

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1.5rem 1rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============ FAQ ============ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.faq-item p {
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ CONTENT ============ */
.content-list,
.instruction-list {
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-muted);
}

.content-list li,
.instruction-list li {
    margin-bottom: 0.5rem;
}

.container-narrow h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.container-narrow h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.container-narrow p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.container-narrow a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.container-narrow a:hover {
    text-decoration: underline;
}

.notice-box {
    background: #fff8e6;
    border-left: 4px solid var(--warning-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin: 1.5rem 0;
}

.notice-box p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.cta-box {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.cta-box p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.cta-box .btn {
    min-width: 200px;
}

.text-center {
    text-align: center;
}

.link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ============ AD SLOT ============ */
.ad-slot {
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============ STATUS / RESULT ============ */
.status-message {
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.status-message.error {
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.status-message.loading {
    color: var(--text-muted);
}

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: left;
}

.result-thumbnail {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.result-info {
    padding: 1rem 1.25rem;
}

.result-info h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.result-info .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.download-btn.video {
    background: var(--primary-color);
    color: #fff;
}

.download-btn.video:hover {
    background: var(--primary-hover);
}

.download-btn.audio {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-btn.audio:hover {
    background: #fff5f7;
}

.download-btn .size {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 0.5rem;
}

/* ============ FOOTER ============ */
.site-footer {
    background: #1a1a1a;
    color: #d1d5db;
    margin-top: 4rem;
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-tagline {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2d2d2d;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-disclaimer {
    max-width: 600px;
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-disclaimer {
        text-align: center;
    }
}

/* ============ 404 ============ */
.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 180px;
}
/* ============ FORMS ============ */
.contact-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.2s;
    background: #fff;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #ecfdf5;
    color: var(--success-color);
    border: 1px solid #a7f3d0;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

/* Inline code */
code {
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    color: var(--primary-color);
    word-break: break-all;
}

/* Footer column titles */
.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
/* ============================================
   BUTTON TEXT FIX — FORCE OVERRIDE
   ============================================ */
.container-narrow a.btn,
.container-narrow a.btn:hover,
.container-narrow a.btn:focus,
.container-narrow a.btn:visited,
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:visited {
    text-decoration: none !important;
}

a.btn-primary,
a.btn.btn-primary,
.container-narrow a.btn-primary,
.btn.btn-primary {
    color: #ffffff !important;
    background-color: #fe2c55 !important;
}

a.btn-primary:hover,
a.btn.btn-primary:hover,
.container-narrow a.btn-primary:hover,
.btn.btn-primary:hover {
    color: #ffffff !important;
    background-color: #e0254a !important;
}

a.btn-secondary,
a.btn.btn-secondary,
.container-narrow a.btn-secondary,
.btn.btn-secondary {
    color: #212529 !important;
}

a.btn-secondary:hover,
a.btn.btn-secondary:hover,
.container-narrow a.btn-secondary:hover,
.btn.btn-secondary:hover {
    color: #212529 !important;
}
/* ============ BLOG ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(254, 44, 85, 0.15);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dot {
    opacity: 0.5;
}

/* Blog article page */
.blog-article .page-header {
    padding-bottom: 2rem;
}

.blog-article .page-header h1 {
    font-size: 1.9rem;
    line-height: 1.3;
    max-width: 720px;
    margin: 0.75rem auto 0.5rem;
}

@media (max-width: 480px) {
    .blog-article .page-header h1 {
        font-size: 1.5rem;
    }
}

.blog-content {
    padding: 2rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.blog-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 0.85rem;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.blog-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.6rem;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 1.15rem;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-content li {
    margin-bottom: 0.55rem;
    line-height: 1.7;
}

.blog-content strong {
    color: var(--text-color);
    font-weight: 700;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.blog-content a:hover {
    text-decoration: underline;
}

.blog-back {
    margin: 2rem 0 4rem;
    text-align: center;
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
    text-align: center;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e5e5;
}

.cookie-inner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-actions .btn {
    min-width: 120px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .cookie-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .cookie-inner p {
        flex: 1;
        padding-right: 1.5rem;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}