/* ============================================
   TIK4DOWN - TikTok Downloader Styles
   Color Scheme: TikTok Pink (#fe2c55) + Teal (#25f4ee)
   ============================================ */

/* ---------- RESET & VARIABLES ---------- */
:root {
    /* TikTok Colors */
    --primary: #fe2c55;
    --primary-light: #ff6b8a;
    --primary-dark: #d41e43;
    --secondary: #25f4ee;
    --secondary-dark: #00c9c0;
    --accent-gradient: linear-gradient(135deg, #fe2c55, #25f4ee);
    --accent-gradient-reverse: linear-gradient(135deg, #25f4ee, #fe2c55);

    /* Dark Theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a28;
    --bg-card-hover: #222236;
    --bg-input: #1e1e2e;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #707088;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(254, 44, 85, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Sizing */
    --container-max: 1200px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f8;
    --bg-input: #f0f0f8;
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #888898;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(254, 44, 85, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ---------- DYNAMIC BACKGROUND LOGOS ---------- */
.bg-logos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-logo {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transition: transform 0.1s linear;
}

.bg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
}

/* Logo 1 — Large, top-right, slow spin */
.bg-logo-1 {
    width: 500px;
    height: 500px;
    top: -80px;
    right: -120px;
    opacity: 0.04;
    animation: bgSpin 60s linear infinite, bgPulse 8s ease-in-out infinite;
}

/* Logo 2 — Medium, bottom-left, reverse spin */
.bg-logo-2 {
    width: 380px;
    height: 380px;
    bottom: 10%;
    left: -100px;
    opacity: 0.035;
    animation: bgSpinReverse 45s linear infinite;
}

/* Logo 3 — Small, center-right, faster spin */
.bg-logo-3 {
    width: 220px;
    height: 220px;
    top: 55%;
    right: 5%;
    opacity: 0.05;
    animation: bgSpin 30s linear infinite, bgFloat 12s ease-in-out infinite;
}

/* Logo 4 — Extra small, top-left accent */
.bg-logo-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 8%;
    opacity: 0.03;
    animation: bgSpinReverse 80s linear infinite, bgFloat 15s ease-in-out infinite alternate;
}

/* Logo 5 — Medium-large, bottom-right, gentle spin */
.bg-logo-5 {
    width: 420px;
    height: 420px;
    bottom: -120px;
    right: 15%;
    opacity: 0.04;
    animation: bgSpin 50s linear infinite, bgPulse 10s ease-in-out infinite 3s;
}

@keyframes bgSpin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes bgSpinReverse {
    from {
        rotate: 360deg;
    }

    to {
        rotate: 0deg;
    }
}

@keyframes bgFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 15px -20px;
    }
}

@keyframes bgPulse {

    0%,
    100% {
        scale: 1;
        filter: grayscale(20%) brightness(1);
    }

    50% {
        scale: 1.05;
        filter: grayscale(10%) brightness(1.15);
    }
}

/* Light theme — slightly more visible */
[data-theme="light"] .bg-logo-1 {
    opacity: 0.06;
}

[data-theme="light"] .bg-logo-2 {
    opacity: 0.05;
}

[data-theme="light"] .bg-logo-3 {
    opacity: 0.07;
}

[data-theme="light"] .bg-logo-4 {
    opacity: 0.045;
}

[data-theme="light"] .bg-logo-5 {
    opacity: 0.055;
}

/* Mobile — reduce count and size */
@media (max-width: 768px) {

    .bg-logo-4,
    .bg-logo-5 {
        display: none;
    }

    .bg-logo-1 {
        width: 280px;
        height: 280px;
    }

    .bg-logo-2 {
        width: 220px;
        height: 220px;
    }

    .bg-logo-3 {
        width: 150px;
        height: 150px;
    }
}

/* ---------- HEADER ---------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.85);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.language-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(254, 44, 85, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
    text-align: center;
    min-height: 500px;
    z-index: 1;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 50%;
    right: -80px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: -50px;
    left: 40%;
    animation-delay: -14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 10px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- SEARCH CARD ---------- */
.search-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.search-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: rgba(254, 44, 85, 0.2);
}

.search-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 12px 4px;
    font-family: inherit;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.paste-btn,
.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

.paste-btn:hover,
.clear-btn:hover {
    color: var(--primary);
    background: rgba(254, 44, 85, 0.08);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Toast */
.error-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(254, 44, 85, 0.1);
    border: 1px solid rgba(254, 44, 85, 0.2);
    color: var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESULTS SECTION ---------- */
.results-section {
    padding: 40px 0 60px;
    animation: fadeInUp 0.5s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Preview Card */
.video-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.video-preview-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.thumbnail-wrapper {
    position: relative;
    width: 160px;
    min-width: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9/16;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.video-info {
    flex: 1;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Author Row */
.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.author-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-name i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Engagement Stats */
.engagement-stat {
    background: rgba(254, 44, 85, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.engagement-stat i.fa-heart {
    color: #ef4444;
}

.engagement-stat i.fa-comment {
    color: #3b82f6;
}

/* Format Selection */
.format-selection-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.format-header {
    margin-bottom: 16px;
}

.format-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.format-header i {
    color: var(--primary);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.format-card {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.format-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.format-card.selected {
    border-color: var(--primary);
    background: rgba(254, 44, 85, 0.08);
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.format-card .format-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.format-card .format-quality {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.format-card .format-ext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* MP3 Audio Format Card */
.format-card-audio {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.03));
}

.format-card-audio:hover {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.06));
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

.format-card-audio.selected {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 4px 25px rgba(168, 85, 247, 0.25);
}

.format-card-audio .format-type {
    color: #a855f7;
}

.format-card-audio .format-type i {
    margin-right: 4px;
}

/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Progress Hub */
.progress-hub {
    margin-top: 20px;
    animation: fadeInUp 0.3s ease;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Success Hub */
.success-hub {
    text-align: center;
    margin-top: 20px;
    animation: fadeInUp 0.3s ease;
}

.success-icon {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 8px;
}

.success-hub p {
    font-weight: 600;
    color: #10b981;
}

.btn-redownload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 10px 24px;
    background: transparent;
    border: 1.5px solid #10b981;
    color: #10b981;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-redownload:hover {
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

/* Download Another */
.download-another-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.download-another-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(254, 44, 85, 0.05);
}

/* ---------- FEATURES SECTION ---------- */
.features-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(254, 44, 85, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(254, 44, 85, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    color: #fff;
    transform: scale(1.1);
}

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

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- HOW TO SECTION ---------- */
.howto-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.howto-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
}

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

.howto-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 18px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- SEO CONTENT SECTION ---------- */
.seo-content {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.seo-content h2 {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 40px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.seo-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.seo-block h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.seo-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Format Comparison Table */
.format-comparison {
    max-width: 700px;
    margin: 0 auto;
}

.format-comparison h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
}

.comparison-table th {
    background: rgba(254, 44, 85, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table td {
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ---------- LSI KEYWORDS SECTION ---------- */
.lsi-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
}

.lsi-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lsi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.lsi-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(254, 44, 85, 0.06);
    border: 1px solid rgba(254, 44, 85, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: default;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lsi-tag:hover {
    background: rgba(254, 44, 85, 0.12);
    border-color: rgba(254, 44, 85, 0.3);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.1);
}

.lsi-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.lsi-question {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: default;
    transition: all 0.2s ease;
}

.lsi-question i {
    font-size: 0.65rem;
    color: rgba(59, 130, 246, 0.5);
}

.lsi-question:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    color: #3b82f6;
}

.lsi-question:hover i {
    color: #3b82f6;
}

/* ---------- FOOTER ---------- */
.main-footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 28px;
    width: auto;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .video-preview-content {
        flex-direction: column;
        text-align: center;
    }

    .thumbnail-wrapper {
        width: 120px;
        min-width: 120px;
        margin: 0 auto;
    }

    .video-meta {
        justify-content: center;
    }

    .features-grid,
    .howto-steps,
    .seo-grid {
        grid-template-columns: 1fr;
    }

    .formats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .search-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .formats-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 12px 16px;
    }

    .lang-code {
        display: none;
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---------- UTILITIES ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}