:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f8fafc;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-content h1 i {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.description {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.upload-section {
    padding: 40px;
    background: var(--bg-light);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #fafbff;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #fafbff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.supported-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.format-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.files-section {
    padding: 40px;
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center; /* alinhamento vertical consistente */
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1; /* evita deslocamento vertical */
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--accent-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.file-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.file-item:hover {
    box-shadow: var(--shadow);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* centraliza verticalmente info + actions */
    margin-bottom: 15px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-details h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 10px;
    align-items: center; /* centraliza verticalmente status e botões */
}

.progress-section {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;            /* evita linha alta que desalinhe verticalmente */
    display: inline-flex;      /* permite alinhar o conteúdo verticalmente */
    align-items: center;       /* centraliza verticalmente o texto/ícone */
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.features-section {
    padding: 40px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .files-section,
    .upload-section,
    .features-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .file-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .file-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--accent-color);
}

.notification.error {
    background: var(--danger-color);
}

.notification.info {
    background: var(--primary-color);
}
/* Navegação interna (format-nav) */
.format-nav {
margin-top: 16px;
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}
.format-nav a {
color: #ffffff;
background: rgba(255,255,255,0.16);
padding: 6px 12px;
border-radius: 999px;
font-weight: 600;
text-decoration: none;
transition: var(--transition);
}
.format-nav a:hover {
background: rgba(255,255,255,0.28);
transform: translateY(-1px);
}

/* Títulos e microcopy dentro da upload-area */
.upload-area .microcopy {
margin-top: 8px;
color: var(--text-secondary);
font-size: 0.9rem;
}

/* Seções genéricas (how-it-works, faq, internal-links) */
.how-it-works,
.faq,
.internal-links {
padding: 40px;
border-top: 1px solid var(--border-color);
background: #fff;
}
.how-it-works h2,
.faq h2,
.internal-links h2 {
margin-bottom: 16px;
color: var(--text-primary);
}

/* Lista ordenada da seção "Como funciona" */
.how-it-works ol {
padding-left: 20px;
color: var(--text-secondary);
}
.how-it-works ol li {
margin-bottom: 10px;
}

/* FAQ com / */
.faq details {
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 14px 16px;
margin-bottom: 12px;
background: #fff;
transition: var(--transition);
}
.faq details:hover {
box-shadow: var(--shadow);
}
.faq summary {
cursor: pointer;
list-style: none;
font-weight: 600;
color: var(--text-primary);
}
.faq summary::-webkit-details-marker {
display: none;
}
.faq details p {
margin-top: 10px;
color: var(--text-secondary);
}

/* Links internos (lista de formatos no final) */
.links-internos {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding-left: 0;
list-style: none;
}
.links-internos a {
display: inline-block;
background: var(--bg-light);
color: var(--text-primary);
padding: 8px 12px;
border-radius: 999px;
border: 1px solid var(--border-color);
text-decoration: none;
transition: var(--transition);
font-weight: 600;
}
.links-internos a:hover {
background: #fafbff;
border-color: var(--primary-color);
transform: translateY(-1px);
}

/* Acessibilidade visual: foco /
a:focus,
button:focus,
.upload-area:focus {
outline: 3px solid rgba(99, 102, 241, 0.45); / var(--primary-color) com alpha */
outline-offset: 2px;
border-radius: 8px;
}

/* Ajustes responsivos para novas seções */
@media (max-width: 768px) {
.how-it-works,
.faq,
.internal-links {
padding: 20px;
}
.format-nav {
gap: 8px;
}
}

/* Opcional: tipografia consistente de H2/H3 em blocos novos */
.how-it-works h2,
.faq h2,
.internal-links h2,
.features-section h2 {
font-size: 1.5rem;
font-weight: 700;
}
.features-section h3,
.feature-card h3 {
font-size: 1.1rem;
}

/* Correção: header sobre fundo gradiente (garantir legibilidade) */
.header .subtitle,
.header .description {
color: rgba(255,255,255,0.9);
}

/* Ajuste fino dos botões dentro de listas/ações novas */
.internal-links a .fas,
.format-nav a .fas {
margin-right: 6px;
}

/* Opcional: contêiner para limitar largura de textos longos nas seções */
.main-content > section,
.upload-section,
.files-section,
.features-section {
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}

/* remover-metadados-mp4 — estilos específicos desta landing */
.mp4-hero { text-align: center; color: #fff; margin-bottom: 32px; }
.mp4-hero h1 { font-size: 2.2rem; font-weight: 800; display: inline-flex; align-items: center; gap: 12px; }
.mp4-hero h1 i { color: var(--accent-color); }
.mp4-hero p { opacity: 0.9; max-width: 700px; margin: 8px auto 0; }

.mp4-badges { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mp4-badge { background: rgba(255,255,255,0.18); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }

.mp4-compat { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.mp4-compat .format-tag { background: rgba(255,255,255,0.18); }

.mp4-how, .mp4-benefits, .mp4-faq, .mp4-internal { padding: 32px 40px; border-top: 1px solid var(--border-color); background: #fff; }
.mp4-how h2, .mp4-benefits h2, .mp4-faq h2, .mp4-internal h2 { margin-bottom: 16px; color: var(--text-primary); font-size: 1.5rem; font-weight: 800; }
.mp4-how ol { padding-left: 20px; color: var(--text-secondary); }
.mp4-how li { margin-bottom: 10px; }

.mp4-benefits ul { list-style: none; padding-left: 0; }
.mp4-benefits li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--text-secondary); }
.mp4-benefits li i { color: var(--primary-color); margin-top: 4px; }

.mp4-faq details { border: 1px solid var(--border-color); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; transition: var(--transition); }
.mp4-faq details:hover { box-shadow: var(--shadow); }
.mp4-faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--text-primary); }
.mp4-faq summary::-webkit-details-marker { display: none; }
.mp4-faq p { margin-top: 10px; color: var(--text-secondary); }

.mp4-internal .links-internos { gap: 10px; }

@media (max-width: 768px) {
  .mp4-how, .mp4-benefits, .mp4-faq, .mp4-internal { padding: 20px; }
  .mp4-hero h1 { font-size: 1.8rem; }
}





/* Remova/Comente o bloco anterior de .floating-lang */

/* Garanta que o header seja o contêiner de referência */
.header, .header-content {
  position: relative;
}

/* Posiciona o seletor no canto superior direito do header */
.lang-switcher {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;

  display: inline-flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.lang-switcher .lang-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-secondary, #4b5563);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.lang-switcher .lang-item:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text-primary, #111827);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

/* Flags e estados ativos — mantenha os mesmos do snippet anterior */
.flag { width: 18px; height: 12px; display: inline-block; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); overflow: hidden; position: relative; }
.flag-br { background: linear-gradient(180deg, #009b3a 0 50%, #009b3a 50% 100%); }
.flag-br::before { content: ""; position: absolute; inset: 2px 3px; background: #ffdf00; transform: rotate(0deg) skew(12deg); }
.flag-br::after { content: ""; position: absolute; inset: 3px 5px; background: radial-gradient(circle at 50% 50%, #002776 62%, transparent 63%); border-radius: 50%; }

.flag-us { background:
  linear-gradient(180deg,#b22234 0 10%,#fff 10% 20%,#b22234 20% 30%,#fff 30% 40%,#b22234 40% 50%,#fff 50% 60%,#b22234 60% 70%,#fff 70% 80%,#b22234 80% 90%,#fff 90% 100%); position: relative; }
.flag-us::before { content: ""; position: absolute; top: 0; left: 0; width: 55%; height: 60%; background: #3c3b6e; border-bottom-right-radius: 2px; }

.flag-es { background: linear-gradient(180deg,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75% 100%); }

/* Destaque o idioma atual via classe no body */
body.lang-pt .lang-switcher a[hreflang="pt-BR"],
body.lang-en .lang-switcher a[hreflang="en"],
body.lang-es .lang-switcher a[hreflang="es"] {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-primary, #111827);
}

@media (max-width: 640px) {
  .lang-switcher { padding: 5px 6px; gap: 6px; }
  .lang-switcher .lang-item { padding: 5px 8px; font-size: 11px; }
  .flag { width: 16px; height: 11px; }
}