* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: var(--gradient-1);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.top-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.top-banner a {
    color: white;
    font-weight: 500;
}

.top-banner .hot-tag {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.top-banner .close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.top-banner .close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Header */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo .logo-icon {
    width: 40px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
}

.main-nav > * {
    flex-shrink: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link .arrow {
    font-size: 10px;
    transition: var(--transition);
}

.nav-item:hover .nav-link .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn .lang-flag {
    font-size: 16px;
}

.lang-btn .lang-arrow {
    font-size: 10px;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-dropdown:hover .lang-btn .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 8px;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.lang-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.lang-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: var(--bg-secondary);
}

.lang-menu a .lang-flag {
    font-size: 18px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.dark-mode .theme-toggle .sun-icon {
    display: block;
}

body.dark-mode .theme-toggle .moon-icon {
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-item .icon {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #eef2ff 0%, #faf5ff 50%, var(--bg-primary) 100%);
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero .description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Section */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.section-bg {
    background: var(--bg-secondary);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card .hot-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.tool-card .tool-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    opacity: 0;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    background: var(--primary-color);
    color: white;
    transform: translateX(0);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.tool-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.tool-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.tool-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.tool-icon.orange {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.tool-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Guides Section - Stepper */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
}

.guide-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    display: flex;
    gap: 16px;
    position: relative;
}

.guide-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guide-number {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.guide-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.guide-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Card - Split Layout */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-split-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    align-items: flex-start;
}

.feature-split-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-split-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.feature-split-icon.purple { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
.feature-split-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }
.feature-split-icon.green { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.feature-split-icon.orange { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); }
.feature-split-icon.pink { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); }
.feature-split-icon.cyan { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }

.feature-split-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-split-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blog Section */
.blog-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.blog-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.blog-search input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
}

.blog-search input::placeholder {
    color: var(--text-light);
}

.blog-search-btn {
    padding: 0 24px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.blog-search-btn:hover {
    background: var(--primary-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.blog-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-1);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.blog-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h2 a {
    color: var(--text-primary);
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.blog-card .read-more:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question .toggle {
    font-size: 20px;
    transition: var(--transition);
    color: var(--text-light);
}

.faq-item.active .faq-question .toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 46px;
    height: 36px;
    background: #f97316;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-links a:hover::before {
    background: var(--primary-color);
}

.footer-contact-item {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--text-light);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Friend Links */
.friend-links {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: none;
    border-bottom: 1px solid var(--border-color);
}

.friend-links h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-list a {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
}

.friend-links-list a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Page Header (Tool Pages) */
.page-header {
    background: linear-gradient(180deg, #eef2ff 0%, #faf5ff 50%, var(--bg-primary) 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-header .page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Tool Main Content */
.tool-main {
    padding: 40px 0 60px;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.tool-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="number"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row .input-group {
    flex: 1;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.file-upload p {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.file-upload .hint {
    font-size: 13px;
    color: var(--text-light);
}

.file-upload input[type="file"] {
    display: none;
}

/* Video Player Container */
.video-container {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.sidebar-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sidebar-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.sidebar-card .cta-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Converter Page Layout - Vertical */
.converter-main {
    padding: 40px 0 60px;
}

.converter-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.converter-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.converter-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    padding: 40px 40px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.converter-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.converter-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.converter-header-content {
    position: relative;
    z-index: 1;
}

.converter-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.converter-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.converter-header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.converter-body {
    padding: 40px;
}

.converter-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.converter-alert .alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: -1px;
}

.converter-input-section {
    margin-bottom: 28px;
}

.converter-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.converter-input-label .label-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.converter-input-wrap {
    position: relative;
}

.converter-input-wrap input[type="text"],
.converter-input-wrap input[type="url"],
.converter-input-wrap input[type="number"],
.converter-input-wrap select,
.converter-input-wrap textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.converter-input-wrap input:focus,
.converter-input-wrap select:focus,
.converter-input-wrap textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.converter-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.converter-input-row .converter-input-wrap {
    flex: 1;
    min-width: 200px;
}

.converter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.converter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.converter-btn:active {
    transform: translateY(0);
}

.converter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.converter-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.converter-btn-secondary:hover {
    background: var(--border-color);
    box-shadow: none;
}

.converter-file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.converter-file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.04);
}

.converter-file-upload .upload-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.converter-file-upload .upload-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.converter-file-upload .upload-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.converter-file-upload .upload-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.converter-file-upload input[type="file"] {
    display: none;
}

.file-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 16px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-info .file-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.file-info .file-details {
    min-width: 0;
    flex: 1;
}

.file-info .file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-info .file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.file-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.converter-progress-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.converter-progress-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.converter-progress-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    margin-top: 8px;
    margin-bottom: 16px;
}

.converter-status-table {
    margin-top: 24px;
}

.converter-status-table h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.converter-result-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.converter-result-success .result-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.converter-download-wrap {
    text-align: center;
}

/* File List Section */
.converter-filelist-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 14px;
}

.converter-filelist-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.converter-filelist-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary-color), #8b5cf6);
    border-radius: 2px;
}

.converter-filelist {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.converter-filelist .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.converter-filelist .file-item:last-child {
    border-bottom: none;
}

.converter-filelist .file-item .file-index {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.converter-filelist .file-item .file-info {
    flex: 1;
    min-width: 0;
}

.converter-filelist .file-item .file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.converter-filelist .file-item .file-size {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.converter-filelist .file-item .file-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.converter-filelist .file-item .file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.converter-filelist-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.converter-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.converter-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* Key File Upload */
.key-upload-section {
    margin-top: 24px;
}

.key-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.key-upload-label .label-icon {
    width: 24px;
    height: 24px;
    background: #f59e0b;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.key-upload-label .optional {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
}

.key-upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.key-upload-box:hover {
    border-color: #f59e0b;
}

.key-upload-box .key-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.key-upload-box .key-info {
    flex: 1;
    min-width: 0;
}

.key-upload-box .key-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.key-upload-box .key-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.key-upload-box .key-select-btn {
    padding: 8px 16px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.key-upload-box .key-select-btn:hover {
    background: #d97706;
}

.key-upload-box .key-remove-btn {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.key-upload-box.has-key .key-remove-btn {
    display: flex;
}

.key-upload-box.has-key .key-select-btn {
    display: none;
}

.key-upload-box input[type="file"] {
    display: none;
}

/* TS Merge Tool - Target Site Style */
.tsmerge-main {
    padding: 40px 0 60px;
}

.tsmerge-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.tsmerge-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.tsmerge-header {
    text-align: center;
    margin-bottom: 40px;
}

.tsmerge-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
    line-height: 1.2;
}

.tsmerge-header p {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.ts-upload-box {
    border: 2px dashed #60a5fa;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 28px;
}

.ts-upload-box:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.ts-upload-box.drag-over {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
}

.ts-upload-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-upload-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.ts-upload-desc {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 20px;
}

.ts-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-upload-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.ts-upload-box input[type="file"] {
    display: none;
}

.key-upload-box-target {
    border: 2px dashed #34d399;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    padding: 36px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.key-upload-box-target:hover {
    border-color: #10b981;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.key-upload-box-target.has-key {
    background: linear-gradient(135deg, #d1fae5 0%, #dcfce7 100%);
    border-style: solid;
}

.key-upload-icon {
    font-size: 44px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-upload-title {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.key-upload-title .optional {
    font-weight: 400;
    color: #6b7280;
    font-size: 15px;
}

.key-upload-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.key-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: #22c55e;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key-upload-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.key-upload-box-target input[type="file"] {
    display: none;
}

.key-file-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    font-weight: 500;
    margin-bottom: 12px;
}

.key-file-info .key-remove {
    width: 22px;
    height: 22px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.key-file-info .key-remove:hover {
    background: rgba(239, 68, 68, 0.25);
}

.tsmerge-tip {
    text-align: center;
    color: #dc2626;
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.6;
}

/* File list area for target style */
.ts-filelist-section {
    margin-top: 28px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #e5e7eb;
}

.ts-filelist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ts-filelist-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ts-filelist-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.ts-filelist {
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.ts-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}

.ts-file-item:last-child {
    border-bottom: none;
}

.ts-file-item .ts-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ts-file-item .ts-file-index {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.ts-file-item .ts-file-info {
    flex: 1;
    min-width: 0;
}

.ts-file-item .ts-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-file-item .ts-file-size {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.ts-file-item .ts-file-remove {
    width: 30px;
    height: 30px;
    background: #fef2f2;
    color: #ef4444;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.ts-file-item .ts-file-remove:hover {
    background: #fee2e2;
}

.ts-filelist-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.ts-btn-secondary {
    padding: 11px 24px;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ts-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.ts-btn-primary {
    padding: 11px 32px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ts-btn-primary:hover {
    background: #2563eb;
}

.ts-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ts-progress-section {
    margin-top: 28px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.ts-progress-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.ts-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ts-progress-bar .ts-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ts-progress-bar .ts-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: tsProgressShine 1.5s infinite;
}

@keyframes tsProgressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ts-progress-text {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 16px;
}

.ts-status-table {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.ts-status-table h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
}

.ts-status-table table {
    width: 100%;
    border-collapse: collapse;
}

.ts-status-table th,
.ts-status-table td {
    padding: 10px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #f9fafb;
}

.ts-status-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    width: 120px;
}

.ts-status-table td {
    color: #1f2937;
    font-weight: 500;
}

.ts-status-table tr:last-child th,
.ts-status-table tr:last-child td {
    border-bottom: none;
}

.ts-result-section {
    margin-top: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.ts-result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ts-result-success .success-icon {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ts-result-success .success-text {
    font-size: 17px;
    font-weight: 600;
    color: #166534;
}

.ts-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.ts-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.ts-download-btn .download-icon {
    font-size: 20px;
}

/* M3U8 to MP4 - Target Site Style */
.m3u8-main {
    padding: 40px 0 60px;
}

.m3u8-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.m3u8-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.m3u8-header {
    text-align: center;
    margin-bottom: 40px;
}

.m3u8-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
    line-height: 1.2;
}

.m3u8-header p {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.m3u8-input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.m3u8-input-wrap {
    flex: 1;
}

.m3u8-input-wrap input {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.m3u8-input-wrap input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.m3u8-input-wrap input::placeholder {
    color: #9ca3af;
}

.m3u8-parse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.m3u8-parse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.m3u8-parse-btn:active {
    transform: translateY(0);
}

.m3u8-parse-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.m3u8-warning {
    text-align: center;
    color: #dc2626;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.6;
}

.m3u8-test-link {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
}

.m3u8-test-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.m3u8-test-link a:hover {
    text-decoration: underline;
}

.m3u8-promo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    margin-bottom: 36px;
}

.m3u8-promo-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.m3u8-promo-content {
    flex: 1;
    min-width: 0;
}

.m3u8-promo-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m3u8-promo-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #c7d2fe;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.m3u8-promo-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.m3u8-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.m3u8-promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.m3u8-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.m3u8-preview-card {
    background: #f3f4f6;
    border-radius: 16px;
    padding: 20px;
}

.m3u8-preview-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 16px;
}

.m3u8-video-wrap {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.m3u8-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
}

.m3u8-preview-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #e5e7eb;
}

.m3u8-preview-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.m3u8-preview-placeholder .placeholder-text {
    font-size: 16px;
    font-weight: 500;
}

/* M3U8 progress & result styles */
.m3u8-progress-section {
    margin-top: 28px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.m3u8-progress-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.m3u8-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.m3u8-progress-bar .m3u8-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.m3u8-progress-bar .m3u8-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: m3u8ProgressShine 1.5s infinite;
}

@keyframes m3u8ProgressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.m3u8-progress-text {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 16px;
}

.m3u8-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.m3u8-stat-item {
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.m3u8-stat-item .stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.m3u8-stat-item .stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.m3u8-result-section {
    margin-top: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.m3u8-result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.m3u8-result-success .success-icon {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.m3u8-result-success .success-text {
    font-size: 17px;
    font-weight: 600;
    color: #166534;
}

.m3u8-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.m3u8-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

@media (max-width: 900px) {
    .m3u8-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .m3u8-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .m3u8-header h1 {
        font-size: 28px;
    }
    .m3u8-header p {
        font-size: 16px;
    }
    .m3u8-input-row {
        flex-direction: column;
    }
    .m3u8-parse-btn {
        width: 100%;
    }
    .m3u8-promo {
        flex-direction: column;
        text-align: center;
    }
}

/* WebM to MP4 - Target Site Style */
.webm-main {
    padding: 40px 0 60px;
}

.webm-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.webm-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.webm-header {
    text-align: center;
    margin-bottom: 40px;
}

.webm-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
    line-height: 1.2;
}

.webm-header p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.webm-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 56px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.webm-upload-box:hover {
    border-color: #3b82f6;
    background: #f1f5f9;
}

.webm-upload-box.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.webm-upload-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.webm-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.webm-upload-desc {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.webm-upload-box input[type="file"] {
    display: none;
}

.webm-tip {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.webm-tip .tip-icon {
    color: #f59e0b;
    font-size: 16px;
}

/* WebM file info */
.webm-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 24px;
}

.webm-file-info .webm-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.webm-file-info .webm-file-icon {
    width: 44px;
    height: 44px;
    background: #3b82f6;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.webm-file-info .webm-file-details .webm-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.webm-file-info .webm-file-details .webm-file-size {
    font-size: 13px;
    color: #64748b;
}

.webm-file-info .webm-file-remove {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.webm-file-info .webm-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* WebM options */
.webm-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.webm-option-card {
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.webm-option-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.webm-option-card .option-radio {
    display: none;
}

.webm-option-card .option-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.webm-option-card .option-desc {
    font-size: 13px;
    color: #64748b;
}

.webm-select-wrap {
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 24px;
}

.webm-select-wrap label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    display: block;
}

.webm-select-wrap select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.webm-select-wrap select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* WebM buttons */
.webm-convert-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.webm-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.webm-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* WebM progress */
.webm-progress-section {
    margin-top: 28px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.webm-progress-label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.webm-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.webm-progress-bar .webm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.webm-progress-bar .webm-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: webmProgressShine 1.5s infinite;
}

@keyframes webmProgressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.webm-progress-text {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 12px;
}

/* WebM result */
.webm-result-section {
    margin-top: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.webm-result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.webm-result-success .success-icon {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.webm-result-success .success-text {
    font-size: 17px;
    font-weight: 600;
    color: #166534;
}

.webm-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.webm-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

@media (max-width: 768px) {
    .webm-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .webm-header h1 {
        font-size: 28px;
    }
    .webm-header p {
        font-size: 15px;
    }
    .webm-upload-box {
        padding: 40px 20px;
    }
    .webm-upload-icon {
        font-size: 48px;
    }
    .webm-options {
        grid-template-columns: 1fr;
    }
}

/* MKV to MP4 - Target Site Style */
.mkv-main {
    padding: 40px 0 60px;
}

.mkv-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.mkv-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.mkv-header {
    text-align: center;
    margin-bottom: 40px;
}

.mkv-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
    line-height: 1.2;
}

.mkv-header p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.mkv-upload-box {
    border: 2px dashed #93c5fd;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.mkv-upload-box:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mkv-upload-box.drag-over {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
}

.mkv-upload-icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.mkv-upload-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.mkv-upload-desc {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

.mkv-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.mkv-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.mkv-upload-box input[type="file"] {
    display: none;
}

/* MKV file info */
.mkv-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 24px;
}

.mkv-file-info .mkv-file-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mkv-file-info .mkv-file-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mkv-file-info .mkv-file-details .mkv-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.mkv-file-info .mkv-file-details .mkv-file-size {
    font-size: 13px;
    color: #64748b;
}

.mkv-file-info .mkv-file-remove {
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mkv-file-info .mkv-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* MKV options */
.mkv-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.mkv-option-card {
    padding: 22px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mkv-option-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}

.mkv-option-card .option-radio {
    display: none;
}

.mkv-option-card .option-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.mkv-option-card .option-desc {
    font-size: 13px;
    color: #64748b;
}

.mkv-select-wrap {
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 24px;
}

.mkv-select-wrap label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: block;
}

.mkv-select-wrap select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.mkv-select-wrap select:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* MKV buttons */
.mkv-convert-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.mkv-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5);
}

.mkv-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* MKV progress */
.mkv-progress-section {
    margin-top: 28px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.mkv-progress-label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.mkv-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.mkv-progress-bar .mkv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mkv-progress-bar .mkv-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: mkvProgressShine 1.5s infinite;
}

@keyframes mkvProgressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mkv-progress-text {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    margin-top: 12px;
}

/* MKV result */
.mkv-result-section {
    margin-top: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.mkv-result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mkv-result-success .success-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mkv-result-success .success-text {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.mkv-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 56px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

.mkv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.5);
}

@media (max-width: 768px) {
    .mkv-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .mkv-header h1 {
        font-size: 28px;
    }
    .mkv-header p {
        font-size: 15px;
    }
    .mkv-upload-box {
        padding: 36px 20px;
    }
    .mkv-upload-icon-circle {
        width: 76px;
        height: 76px;
        font-size: 32px;
    }
    .mkv-upload-title {
        font-size: 19px;
    }
    .mkv-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tsmerge-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .tsmerge-header h1 {
        font-size: 28px;
    }
    .tsmerge-header p {
        font-size: 16px;
    }
    .ts-upload-box {
        padding: 36px 20px;
    }
    .ts-upload-icon {
        font-size: 44px;
    }
    .key-upload-box-target {
        padding: 28px 20px;
    }
    .key-upload-icon {
        font-size: 36px;
    }
    .ts-filelist-actions {
        flex-direction: column;
    }
    .ts-btn-secondary,
    .ts-btn-primary {
        width: 100%;
    }
}

.converter-progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.converter-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.converter-progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-item {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-item .stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.converter-result-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.result-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.result-success .success-icon {
    width: 40px;
    height: 40px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.result-success .success-text {
    flex: 1;
}

.result-success .success-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.result-success .success-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn .download-icon {
    font-size: 22px;
}

/* Related Tools - Bottom */
.related-tools {
    margin-top: 48px;
}

.related-tools-header {
    text-align: center;
    margin-bottom: 32px;
}

.related-tools-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.related-tools-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.related-tool-card {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.related-tool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-tool-card .rt-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.related-tool-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.related-tool-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.related-tool-card .rt-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .converter-header {
        padding: 28px 24px 24px;
    }
    .converter-header h2 {
        font-size: 22px;
    }
    .converter-body {
        padding: 24px;
    }
    .converter-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    .converter-input-row {
        flex-direction: column;
    }
    .converter-btn {
        width: 100%;
    }
}

/* MP4 to MP3 Converter */
.mp4mp3-main {
    padding: 40px 0 60px;
}

.mp4mp3-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.mp4mp3-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.mp4mp3-header {
    text-align: center;
    margin-bottom: 40px;
}

.mp4mp3-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
    line-height: 1.2;
}

.mp4mp3-header p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.mp4mp3-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #fff;
    padding: 56px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 28px;
}

.mp4mp3-upload-box:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.mp4mp3-upload-box.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.mp4mp3-upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #94a3b8;
}

.mp4mp3-upload-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.mp4mp3-upload-desc {
    font-size: 15px;
    color: #64748b;
}

.mp4mp3-upload-box input[type="file"] {
    display: none;
}

.mp4mp3-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 24px;
}

.mp4mp3-file-info .mp4mp3-file-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mp4mp3-file-info .mp4mp3-file-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mp4mp3-file-info .mp4mp3-file-details .mp4mp3-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.mp4mp3-file-info .mp4mp3-file-details .mp4mp3-file-size {
    font-size: 13px;
    color: #64748b;
}

.mp4mp3-file-info .mp4mp3-file-remove {
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mp4mp3-file-info .mp4mp3-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.mp4mp3-options {
    margin-bottom: 28px;
}

.mp4mp3-options-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.mp4mp3-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.mp4mp3-input-group {
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
}

.mp4mp3-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.mp4mp3-input-group select {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.mp4mp3-input-group select:focus {
    border-color: #3b82f6;
}

.mp4mp3-convert-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.mp4mp3-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5);
}

.mp4mp3-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mp4mp3-progress-section {
    margin-top: 28px;
}

.mp4mp3-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.mp4mp3-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mp4mp3-progress-bar .mp4mp3-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mp4mp3-progress-bar .mp4mp3-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1.5s infinite;
}

.mp4mp3-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

.mp4mp3-result-section {
    margin-top: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.mp4mp3-result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mp4mp3-result-success .success-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mp4mp3-result-success .success-text {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.mp4mp3-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 56px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

.mp4mp3-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.5);
}

@media (max-width: 768px) {
    .mp4mp3-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .mp4mp3-header h1 {
        font-size: 28px;
    }
    .mp4mp3-header p {
        font-size: 15px;
    }
    .mp4mp3-upload-box {
        padding: 36px 20px;
    }
    .mp4mp3-upload-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    .mp4mp3-input-row {
        grid-template-columns: 1fr;
    }
}

/* MP4 to M3U8 Converter */
.mp4m3u8-main {
    padding: 40px 0 60px;
}

.mp4m3u8-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.mp4m3u8-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.mp4m3u8-header {
    text-align: center;
    margin-bottom: 40px;
}

.mp4m3u8-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
    line-height: 1.2;
}

.mp4m3u8-header p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.mp4m3u8-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.mp4m3u8-upload-box:hover {
    border-color: #3b82f6;
    background: #f1f5f9;
}

.mp4m3u8-upload-box.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.mp4m3u8-upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #94a3b8;
}

.mp4m3u8-upload-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.mp4m3u8-upload-desc {
    font-size: 15px;
    color: #94a3b8;
}

.mp4m3u8-upload-box input[type="file"] {
    display: none;
}

.mp4m3u8-tip {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mp4m3u8-tip .tip-icon {
    color: #f59e0b;
    font-size: 16px;
}

.mp4m3u8-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 24px;
}

.mp4m3u8-file-info .mp4m3u8-file-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mp4m3u8-file-info .mp4m3u8-file-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mp4m3u8-file-info .mp4m3u8-file-details .mp4m3u8-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.mp4m3u8-file-info .mp4m3u8-file-details .mp4m3u8-file-size {
    font-size: 13px;
    color: #64748b;
}

.mp4m3u8-file-info .mp4m3u8-file-remove {
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mp4m3u8-file-info .mp4m3u8-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.mp4m3u8-options {
    margin-bottom: 28px;
}

.mp4m3u8-options-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.mp4m3u8-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.mp4m3u8-input-group {
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
}

.mp4m3u8-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.mp4m3u8-input-group select,
.mp4m3u8-input-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.mp4m3u8-input-group select:focus,
.mp4m3u8-input-group input[type="text"]:focus {
    border-color: #3b82f6;
}

.mp4m3u8-encryption-group {
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
}

.mp4m3u8-encryption-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.mp4m3u8-encryption-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mp4m3u8-encryption-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.mp4m3u8-encryption-options input[type="radio"] {
    cursor: pointer;
}

.mp4m3u8-convert-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.mp4m3u8-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5);
}

.mp4m3u8-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mp4m3u8-progress-section {
    margin-top: 28px;
}

.mp4m3u8-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mp4m3u8-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.mp4m3u8-progress-percent {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

.mp4m3u8-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mp4m3u8-progress-bar .mp4m3u8-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mp4m3u8-progress-bar .mp4m3u8-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1.5s infinite;
}

.mp4m3u8-progress-status {
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.mp4m3u8-result-section {
    margin-top: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 28px;
}

.mp4m3u8-result-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mp4m3u8-result-success .success-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.mp4m3u8-result-success .success-text {
    flex: 1;
}

.mp4m3u8-result-success .success-title {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 2px;
}

.mp4m3u8-result-success .success-desc {
    font-size: 14px;
    color: #15803d;
}

.mp4m3u8-file-list {
    margin-bottom: 20px;
}

.mp4m3u8-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 8px;
}

.mp4m3u8-file-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #166534;
}

.mp4m3u8-file-item-size {
    font-size: 12px;
    color: #22c55e;
    margin-left: 10px;
}

.mp4m3u8-file-item-download {
    padding: 6px 14px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.mp4m3u8-file-item-download:hover {
    background: #16a34a;
}

.mp4m3u8-download-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.mp4m3u8-download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
    .mp4m3u8-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .mp4m3u8-header h1 {
        font-size: 28px;
    }
    .mp4m3u8-header p {
        font-size: 15px;
    }
    .mp4m3u8-upload-box {
        padding: 36px 20px;
    }
    .mp4m3u8-upload-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    .mp4m3u8-input-row {
        grid-template-columns: 1fr;
    }
}

/* MP4 to GIF Converter */
.mp4gif-main {
    padding: 32px 0 64px;
}

.mp4gif-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.mp4gif-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 32px;
}

.mp4gif-header {
    text-align: center;
    margin-bottom: 32px;
}

.mp4gif-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mp4gif-header p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.mp4gif-upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.mp4gif-upload-box:hover {
    border-color: #a855f7;
    background: #faf5ff;
}

.mp4gif-upload-box.drag-over {
    border-color: #a855f7;
    background: #faf5ff;
}

.mp4gif-upload-icon {
    color: #9ca3af;
    margin-bottom: 12px;
    font-size: 48px;
}

.mp4gif-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.mp4gif-upload-desc {
    font-size: 14px;
    color: #9ca3af;
}

.mp4gif-upload-box input[type="file"] {
    display: none;
}

.mp4gif-tip {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.mp4gif-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.mp4gif-file-info .mp4gif-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp4gif-file-info .mp4gif-file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mp4gif-file-info .mp4gif-file-details .mp4gif-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

.mp4gif-file-info .mp4gif-file-details .mp4gif-file-size {
    font-size: 12px;
    color: #6b7280;
}

.mp4gif-file-info .mp4gif-file-right {
    text-align: right;
}

.mp4gif-file-info .mp4gif-file-right .mp4gif-file-duration-label {
    font-size: 11px;
    color: #6b7280;
}

.mp4gif-file-info .mp4gif-file-right .mp4gif-file-duration {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.mp4gif-file-info .mp4gif-file-remove {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mp4gif-file-info .mp4gif-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.mp4gif-options {
    margin-bottom: 24px;
}

.mp4gif-options-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.mp4gif-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.mp4gif-input-group {
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.mp4gif-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}

.mp4gif-input-group input[type="number"],
.mp4gif-input-group select {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.mp4gif-input-group input[type="number"]:focus,
.mp4gif-input-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.mp4gif-convert-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mp4gif-convert-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.mp4gif-convert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mp4gif-progress-section {
    margin-top: 24px;
}

.mp4gif-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mp4gif-progress-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.mp4gif-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
}

.mp4gif-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.mp4gif-progress-bar .mp4gif-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.mp4gif-preview-section {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
}

.mp4gif-result-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mp4gif-result-success .success-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.mp4gif-result-success .success-text {
    flex: 1;
}

.mp4gif-result-success .success-title {
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 2px;
}

.mp4gif-result-success .success-desc {
    font-size: 13px;
    color: #15803d;
}

.mp4gif-gif-preview {
    text-align: center;
    margin-bottom: 20px;
}

.mp4gif-gif-preview img {
    max-width: 100%;
    border-radius: 10px;
    max-height: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mp4gif-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.mp4gif-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
    .mp4gif-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .mp4gif-header h1 {
        font-size: 1.75rem;
    }
    .mp4gif-header p {
        font-size: 14px;
    }
    .mp4gif-upload-box {
        padding: 32px 16px;
    }
    .mp4gif-upload-icon {
        font-size: 36px;
    }
    .mp4gif-input-row {
        grid-template-columns: 1fr;
    }
}

/* Video Compressor */
.vc-main {
    padding: 32px 0 64px;
}

.vc-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.vc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 32px;
}

.vc-header {
    text-align: center;
    margin-bottom: 32px;
}

.vc-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vc-header p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.vc-upload-box {
    border: 2px dashed #60a5fa;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    margin-bottom: 8px;
}

.vc-upload-box:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #f3e8ff 100%);
}

.vc-upload-box.drag-over {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #bfdbfe 0%, #e9d5ff 100%);
}

.vc-upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.vc-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.vc-upload-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.vc-upload-box input[type="file"] {
    display: none;
}

.vc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.vc-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.vc-tip {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.vc-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.vc-file-info .vc-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-file-info .vc-file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.vc-file-info .vc-file-details .vc-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

.vc-file-info .vc-file-details .vc-file-size {
    font-size: 12px;
    color: #6b7280;
}

.vc-file-info .vc-file-right {
    text-align: right;
}

.vc-file-info .vc-file-right .vc-file-estimated-label {
    font-size: 11px;
    color: #6b7280;
}

.vc-file-info .vc-file-right .vc-file-estimated {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

.vc-file-info .vc-file-remove {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vc-file-info .vc-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.vc-options {
    margin-bottom: 24px;
}

.vc-options-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.vc-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.vc-input-group {
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.vc-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}

.vc-input-group input[type="number"],
.vc-input-group select {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.vc-input-group input[type="number"]:focus,
.vc-input-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.vc-audio-options {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.vc-audio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
}

.vc-audio-options input[type="radio"] {
    accent-color: #3b82f6;
}

.vc-compress-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.vc-compress-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.vc-compress-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vc-progress-section {
    margin-top: 24px;
}

.vc-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vc-progress-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.vc-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
}

.vc-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.vc-progress-bar .vc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.vc-progress-status {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
}

.vc-result-section {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
}

.vc-result-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vc-result-success .success-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.vc-result-success .success-text {
    flex: 1;
}

.vc-result-success .success-title {
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 2px;
}

.vc-result-success .success-desc {
    font-size: 13px;
    color: #15803d;
}

.vc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.vc-stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.vc-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.vc-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.vc-stat-value.saved {
    color: #10b981;
}

.vc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.vc-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
    .vc-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .vc-header h1 {
        font-size: 1.75rem;
    }
    .vc-header p {
        font-size: 14px;
    }
    .vc-upload-box {
        padding: 32px 16px;
    }
    .vc-upload-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .vc-input-row {
        grid-template-columns: 1fr;
    }
    .vc-stats {
        grid-template-columns: 1fr;
    }
}

/* Audio Converter */
.ac-main {
    padding: 32px 0 64px;
}

.ac-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.ac-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
}

.ac-header {
    text-align: center;
    margin-bottom: 32px;
}

.ac-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.ac-header p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.ac-upload-box {
    border: 2px dashed #c084fc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    margin-bottom: 8px;
}

.ac-upload-box:hover {
    border-color: #a855f7;
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
}

.ac-upload-box.drag-over {
    border-color: #a855f7;
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
}

.ac-upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.ac-upload-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.ac-upload-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.ac-upload-box input[type="file"] {
    display: none;
}

.ac-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.ac-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.ac-tip {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.ac-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ac-file-info .ac-file-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.ac-file-info .ac-file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.ac-file-info .ac-file-details .ac-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    word-break: break-all;
}

.ac-file-info .ac-file-details .ac-file-size {
    font-size: 13px;
    color: #6b7280;
}

.ac-file-info .ac-file-right {
    text-align: right;
    flex-shrink: 0;
    margin-left: 16px;
}

.ac-file-info .ac-file-right .ac-file-estimated-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.ac-file-info .ac-file-right .ac-file-estimated {
    font-size: 15px;
    font-weight: 600;
    color: #a855f7;
}

.ac-file-info .ac-file-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fecaca;
    color: #dc2626;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ac-file-info .ac-file-remove:hover {
    background: #fca5a5;
}

.ac-options {
    margin-bottom: 24px;
}

.ac-options-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-options-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.ac-input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.ac-input-group {
    margin-bottom: 0;
}

.ac-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.ac-input-group select,
.ac-input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.ac-input-group select:focus,
.ac-input-group input:focus {
    outline: none;
    border-color: #a855f7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.ac-convert-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.ac-convert-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.ac-convert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ac-progress-section {
    margin-top: 24px;
}

.ac-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ac-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ac-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: #a855f7;
}

.ac-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.ac-progress-bar .ac-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.ac-progress-status {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
}

.ac-result-section {
    margin-top: 24px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 24px;
}

.ac-result-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ac-result-success .success-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ac-result-success .success-text {
    flex: 1;
}

.ac-result-success .success-title {
    font-size: 16px;
    font-weight: 600;
    color: #6b21a8;
    margin-bottom: 2px;
}

.ac-result-success .success-desc {
    font-size: 13px;
    color: #7c3aed;
}

.ac-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.ac-stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.ac-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.ac-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ac-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.ac-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

@media (max-width: 768px) {
    .ac-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .ac-header h1 {
        font-size: 1.75rem;
    }
    .ac-header p {
        font-size: 14px;
    }
    .ac-upload-box {
        padding: 32px 16px;
    }
    .ac-upload-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .ac-input-row {
        grid-template-columns: 1fr;
    }
    .ac-stats {
        grid-template-columns: 1fr;
    }
    .ac-file-info {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ac-file-info .ac-file-right {
        width: 100%;
        text-align: left;
        margin-left: 62px;
    }
}

/* M3U8 Parser */
.mp-main {
    padding: 32px 0 64px;
}

.mp-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.mp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
}

.mp-header {
    text-align: center;
    margin-bottom: 32px;
}

.mp-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.mp-header p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.mp-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.mp-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.mp-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.mp-tab-content {
    display: none;
}

.mp-tab-content.active {
    display: block;
}

.mp-input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mp-input-group {
    flex: 1;
}

.mp-input-group input[type="url"],
.mp-input-group input[type="text"],
.mp-input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.mp-input-group textarea {
    min-height: 150px;
    resize: vertical;
}

.mp-input-group input:focus,
.mp-input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mp-parse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.mp-parse-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.mp-parse-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mp-tip {
    text-align: center;
    font-size: 14px;
    color: #ef4444;
    margin-bottom: 24px;
}

.mp-upload-box {
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #eff6ff;
    margin-bottom: 16px;
}

.mp-upload-box:hover,
.mp-upload-box.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
}

.mp-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.mp-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.mp-upload-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.mp-upload-box input[type="file"] {
    display: none;
}

.mp-advanced {
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
    padding-top: 20px;
}

.mp-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    padding: 0;
}

.mp-advanced-toggle:hover {
    color: #3b82f6;
}

.mp-advanced-toggle .arrow {
    transition: transform 0.2s ease;
}

.mp-advanced-toggle.open .arrow {
    transform: rotate(180deg);
}

.mp-advanced-content {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.mp-advanced-content.show {
    display: block;
}

.mp-result-section {
    margin-top: 32px;
}

.mp-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mp-info-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.mp-info-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.mp-info-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.mp-info-value .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.mp-info-value .badge.none,
.badge.none {
    background: #dcfce7;
    color: #166534;
}

.mp-info-value .badge.aes,
.badge.aes {
    background: #fef3c7;
    color: #92400e;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.mp-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.mp-data-table th,
.mp-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.mp-data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.mp-data-table tr:last-child td {
    border-bottom: none;
}

.mp-data-table th:first-child {
    width: 180px;
}

.mp-segments-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.mp-segments-table-container {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.mp-segments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mp-segments-table th,
.mp-segments-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.mp-segments-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mp-segments-table tr:hover td {
    background: #f9fafb;
}

.mp-segments-table .url-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-streams-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mp-streams-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mp-streams-table th,
.mp-streams-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.mp-streams-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.mp-streams-table tr:last-child td {
    border-bottom: none;
}

.mp-streams-table tr:hover td {
    background: #f0fdfa;
}

.mp-stream-parse-btn {
    padding: 5px 14px;
    font-size: 12px;
    border: 1px solid #14b8a6;
    border-radius: 6px;
    background: #fff;
    color: #14b8a6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mp-stream-parse-btn:hover {
    background: #14b8a6;
    color: #fff;
}

.mp-stream-note {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    padding: 8px 0;
}

.mp-copy-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-copy-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

@media (max-width: 768px) {
    .mp-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .mp-header h1 {
        font-size: 1.5rem;
    }
    .mp-header p {
        font-size: 14px;
    }
    .mp-input-row {
        flex-direction: column;
    }
    .mp-parse-btn {
        width: 100%;
    }
    .mp-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mp-data-table th:first-child {
        width: 120px;
    }
    .mp-segments-table .url-cell {
        max-width: 200px;
    }
}

/* Video Metadata Viewer */
.vm-main {
    padding: 32px 0 64px;
}

.vm-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.vm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
}

.vm-header {
    text-align: center;
    margin-bottom: 32px;
}

.vm-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.vm-header p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

.vm-upload-box {
    border: 2px dashed #5eead4;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
    margin-bottom: 24px;
}

.vm-upload-box:hover,
.vm-upload-box.drag-over {
    border-color: #14b8a6;
    background: linear-gradient(135deg, #cffafe 0%, #ccfbf1 100%);
}

.vm-upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

.vm-upload-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.vm-upload-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.vm-upload-box input[type="file"] {
    display: none;
}

.vm-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.vm-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.vm-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.vm-file-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.vm-file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.vm-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    word-break: break-all;
}

.vm-file-size {
    font-size: 13px;
    color: #6b7280;
}

.vm-file-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fecaca;
    color: #dc2626;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vm-file-remove:hover {
    background: #fca5a5;
}

.vm-analyze-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.vm-analyze-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.vm-analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vm-result-section {
    margin-top: 32px;
}

.vm-video-preview {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.vm-video-preview video {
    width: 100%;
    display: block;
}

.vm-result-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vm-result-section h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, #14b8a6, #0891b2);
    border-radius: 2px;
}

.vm-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.vm-data-table th,
.vm-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.vm-data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    width: 180px;
}

.vm-data-table tr:last-child td {
    border-bottom: none;
}

.vm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.vm-stat-item {
    background: #f0fdfa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #99f6e4;
}

.vm-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.vm-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f766e;
}

@media (max-width: 768px) {
    .vm-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .vm-header h1 {
        font-size: 1.5rem;
    }
    .vm-header p {
        font-size: 14px;
    }
    .vm-upload-box {
        padding: 32px 16px;
    }
    .vm-upload-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .vm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vm-data-table th {
        width: 120px;
    }
}

/* Player Page - Video Section */
.player-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.player-hero {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.player-hero-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #2563eb;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-hero-subtitle {
    font-size: 20px;
    text-align: center;
    color: #4b5563;
    margin: 0 0 36px 0;
    font-weight: 400;
}

.player-input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.player-url-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
    color: #111827;
}

.player-url-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.player-url-input::placeholder {
    color: #9ca3af;
}

.player-load-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.player-load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.player-load-btn:active {
    transform: translateY(0);
}

.player-load-btn .play-icon {
    font-size: 14px;
}

.player-tip {
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    margin: 0 0 28px 0;
}

.player-video-container {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.player-video-container video {
    width: 100%;
    height: 100%;
    display: block;
}

.player-example {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.player-example a {
    color: #2563eb;
    text-decoration: none;
}

.player-example a:hover {
    text-decoration: underline;
}

.player-warn-box {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #854d0e;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.player-warn-box .warn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.player-status-bar {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.player-status-bar .status-icon {
    font-size: 20px;
}

.player-cors-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
}

.player-cors-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-cors-box .cors-icon {
    font-size: 18px;
    color: #3b82f6;
}

.cors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cors-list li {
    color: #1e40af;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cors-list .check-icon {
    color: #2563eb;
    font-weight: bold;
}

.player-video-section {
    margin-bottom: 28px;
}

.player-video-wrap {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.player-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
}

.player-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.player-video-placeholder .placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.player-video-placeholder .placeholder-text {
    font-size: 15px;
    font-weight: 500;
}

.player-stream-info {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 24px;
}

.player-stream-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-stream-info h4::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary-color), #8b5cf6);
    border-radius: 2px;
}

.player-stream-info .data-table {
    margin: 0;
}

.player-stream-info .data-table th {
    width: 140px;
    background: transparent;
}

@media (max-width: 768px) {
    .player-wrapper {
        max-width: 100%;
    }
    .player-stream-info .data-table th {
        width: 100px;
    }
    .player-hero {
        padding: 32px 20px;
    }
    .player-hero-title {
        font-size: 28px;
    }
    .player-hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .player-input-row {
        flex-direction: column;
        gap: 12px;
    }
    .player-url-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 14px;
    }
    .player-load-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Tool Info Section */
.tool-info {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Steps Section */
.steps-section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.steps-section .section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Content Article */
.content-article {
    max-width: 800px;
    margin: 0 auto;
}

.content-article h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.content-article h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.content-article h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.content-article p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-article li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-article strong {
    color: var(--text-primary);
}

/* Blog Article Two-Column Layout */
.blog-article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.blog-article-main {
    min-width: 0;
}

.blog-article-main .content-article {
    max-width: none;
}

/* TOC Sidebar */
.blog-toc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.blog-toc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.blog-toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.blog-toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.blog-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc-list li {
    margin-bottom: 8px;
}

.blog-toc-list a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-radius: 0;
    transition: var(--transition);
    line-height: 1.6;
    border-left: 2px solid transparent;
}

.blog-toc-list a:hover {
    color: #ef4444;
    border-left-color: #fecaca;
}

.blog-toc-list a.active {
    color: #ef4444;
    font-weight: 600;
    border-left-color: #ef4444;
}

.blog-toc-list .toc-sub a {
    padding-left: 28px;
    font-size: 13px;
}

/* Prev/Next Navigation */
.prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.prev-next-nav .nav-item {
    flex: 1;
    max-width: 48%;
}

.prev-next-nav .nav-item.next {
    text-align: right;
}

.prev-next-nav .nav-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.prev-next-nav .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.prev-next-nav .nav-item a:hover .nav-title {
    color: var(--primary-color);
}

.prev-next-nav .nav-placeholder {
    flex: 1;
    max-width: 48%;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-article-layout {
        grid-template-columns: 1fr;
    }

    .blog-toc-sidebar {
        position: static;
        max-height: none;
        order: -1;
        margin-bottom: 24px;
        padding: 20px;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
    }
}

@media (max-width: 768px) {
    .prev-next-nav {
        flex-direction: column;
        gap: 16px;
    }

    .prev-next-nav .nav-item,
    .prev-next-nav .nav-placeholder {
        max-width: 100%;
    }

    .prev-next-nav .nav-item.next {
        text-align: left;
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 13px;
    color: var(--text-light);
}

.testimonial-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* Progress Bar */
.progress-container {
    background: var(--bg-tertiary);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

/* Alert / Notice */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Results Area */
.results-area {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
}

.results-area h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .current {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tool-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 8px 0 8px 16px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 20px;
    }

    .hero .description {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .input-row {
        flex-direction: column;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-num {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode */
body.dark-mode {
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .site-header {
    background: rgba(17, 24, 39, 0.95);
}

body.dark-mode .top-banner {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

body.dark-mode .hero {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

body.dark-mode .player-hero {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

body.dark-mode .page-header {
    background: var(--bg-primary);
}

body.dark-mode .page-header h1 {
    color: var(--text-primary);
}

body.dark-mode .page-header .page-subtitle {
    color: var(--text-secondary);
}

body.dark-mode .breadcrumb {
    color: var(--text-secondary);
}

body.dark-mode .breadcrumb a {
    color: var(--text-secondary);
}

body.dark-mode .breadcrumb a:hover {
    color: var(--primary-color);
}

body.dark-mode .tool-card {
    background: var(--bg-secondary);
}

body.dark-mode .tool-card:hover {
    background: var(--bg-tertiary);
}

body.dark-mode input[type="text"],
body.dark-mode input[type="url"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="url"]:focus,
body.dark-mode input[type="number"]:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

body.dark-mode .dropdown-menu,
body.dark-mode .lang-menu {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .lang-menu a:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .section-bg {
    background: var(--bg-secondary);
}

body.dark-mode .blog-card {
    background: var(--bg-secondary);
}

body.dark-mode .blog-card:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .footer {
    background: #0f172a;
}

body.dark-mode .footer-bottom {
    border-color: var(--border-color);
}

body.dark-mode .friend-link-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .friend-link-item:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .footer-contact-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .social-icon {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .site-footer {
    background: #0f172a;
}

body.dark-mode .footer-links li a {
    color: var(--text-secondary);
}

body.dark-mode .footer-links li a:hover {
    color: var(--primary-color);
}

body.dark-mode .blog-content blockquote {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
}

body.dark-mode .blog-content pre {
    background: var(--bg-secondary);
}

body.dark-mode .blog-content code {
    background: var(--bg-tertiary);
}

body.dark-mode .toc-sidebar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .prev-next-nav a {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .prev-next-nav a:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .pagination a {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .pagination a:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.dark-mode .search-box input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .search-box button {
    background: var(--bg-tertiary);
}

body.dark-mode .contact-card {
    background: var(--bg-secondary);
}

body.dark-mode .contact-card:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .about-section {
    background: var(--bg-secondary);
}

body.dark-mode .feature-card {
    background: var(--bg-secondary);
}

body.dark-mode .feature-card:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .changelog-item {
    background: var(--bg-secondary);
}

body.dark-mode .changelog-item:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .tab-nav button {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-mode .tab-nav button.active {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .result-box {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .info-grid .info-item {
    background: var(--bg-secondary);
}

body.dark-mode .player-container {
    background: #000;
}

body.dark-mode .playlist-panel {
    background: var(--bg-secondary);
}

body.dark-mode .playlist-item {
    background: var(--bg-tertiary);
}

body.dark-mode .playlist-item:hover {
    background: var(--border-color);
}

body.dark-mode .playlist-item.active {
    background: var(--primary-color);
    color: white;
}
