:root{
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#020617;
  color:#e5e7eb;
}

*,
*::before,
*::after{box-sizing:border-box}

body{
  margin:0;
  padding:0 0.5rem 1.25rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  background:#020617;
  color:#e5e7eb;
}

.container{
  max-width:1040px;
  width:100%;
  margin-top:0.5rem;
  min-height:100vh; /* empuja footer bajo el fold */
}

/* Cabecera */
.header h1{
  font-size:1.8rem;
  margin-bottom:0.1rem;
  text-align:center;
  letter-spacing:0.03em;
}
.subtitle{
  text-align:center;
  color:#9ca3af;
  margin-bottom:0.8rem;
  font-size:0.85rem;
}

/* Layout dos columnas */
.layout{
  display:flex;
  gap:1.1rem;
  align-items:flex-start;
}
.game-column{flex:4;min-width:0}
.info-column{flex:2;min-width:220px}

/* Cards */
.card{
  background:#020819;
  border-radius:12px;
  padding:0.95rem 0.9rem 1rem;
  border:1px solid #111827;
  box-shadow:0 10px 22px rgba(0,0,0,0.4);
}

/* About */
.about{
  background:#020617;
  border-radius:12px;
  padding:0.85rem 0.8rem 0.9rem;
  border:1px solid #111827;
  box-shadow:0 10px 22px rgba(0,0,0,0.4);
  font-size:0.8rem;
  color:#9ca3af;
  line-height:1.5;
}
.about h2{
  font-size:0.95rem;
  margin-top:0;
  margin-bottom:0.4rem;
  color:#e5e7eb;
}
.muted{color:#6b7280}

/* Dropzone */
.dropzone{
  border:1px dashed #1f2937;
  border-radius:12px;
  padding:1.1rem;
  background:#020617;
  cursor:pointer;
  transition:border-color .15s ease, transform .08s ease;
  text-align:center;
  user-select:none;
}
.dropzone:hover{border-color:#0ea5e9}
.dropzone:active{transform:translateY(1px)}
.dropzone.dragover{border-color:#22c55e}

.dropzone__title{margin:0;font-weight:700}
.dropzone__meta{margin:0.25rem 0 0;color:#9ca3af;font-size:0.85rem}

/* Controls */
.tool-row{
  display:flex;
  gap:0.6rem;
  align-items:flex-end;
  margin-top:0.85rem;
}

.select{display:flex;flex-direction:column;gap:0.25rem;min-width:160px}
.select span{font-size:0.78rem;color:#9ca3af}

select{
  padding:0.5rem 0.7rem;
  border-radius:8px;
  border:1px solid #1f2937;
  background:#020617;
  color:#e5e7eb;
  font-size:0.9rem;
}

button{
  border:none;
  border-radius:8px;
  padding:0.5rem 0.85rem;
  cursor:pointer;
  background:#0ea5e9;
  color:#0b1120;
  font-weight:600;
  font-size:0.85rem;
  transition:background .15s ease, transform .08s ease;
  white-space:nowrap;
}
button:hover:not(:disabled){background:#0284c7}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:0.55;cursor:not-allowed}

.status{
  margin-top:0.7rem;
  font-size:0.85rem;
  color:#cbd5f5;
}
.status.error{color:#f97373}
.status.ok{color:#4ade80}

.result{margin-top:0.75rem;display:flex;gap:0.75rem;align-items:center;flex-wrap:wrap}

.download{
  display:inline-block;
  padding:0.5rem 0.85rem;
  border-radius:8px;
  border:1px solid #1f2937;
  background:#020617;
  color:#e5e7eb;
  text-decoration:none;
}
.download:hover{border-color:#0ea5e9;color:#0ea5e9}

.player{width:min(520px,100%)}

/* “otra sección” antes del footer */
.section-gap{
  width:100%;
  height:3.5rem;
}

/* Footer */
.site-footer{
  width:100%;
  padding:2.5rem 0.5rem 1.2rem;
  border-top:1px solid #111827;
  background:linear-gradient(to bottom,#020617 0%,#020819 40%,#020617 100%);
  min-height:28vh; /* sensación de sección nueva */
}

.footer-inner{
  max-width:1040px;
  width:100%;
  margin:0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}

.footer-title{
  margin:0 0 0.25rem;
  font-weight:600;
  color:#e5e7eb;
  font-size:0.9rem;
}
.footer-meta{
  margin:0;
  font-size:0.8rem;
  color:#9ca3af;
  line-height:1.5;
}

.site-footer a{
  color:#e5e7eb;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .15s ease,border-color .15s ease;
}
.site-footer a:hover{
  color:#0ea5e9;
  border-bottom-color:#0ea5e9;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  justify-content:flex-end;
  font-size:0.85rem;
  color:#d1d5db;
}

/* Responsive */
@media (max-width:1024px){
  .header h1{font-size:1.6rem}
  .subtitle{font-size:0.82rem}
  .card{padding:0.9rem 0.8rem 0.95rem}
  .about{padding:0.8rem}
}

@media (max-width:768px){
  body{padding:0 0.5rem 1.5rem}
  .layout{flex-direction:column}
  .about{margin-top:0.9rem}
  .footer-inner{flex-direction:column}
  .footer-links{justify-content:flex-start}
  .site-footer{min-height:22vh}
}

@media (max-width:480px){
  .header h1{font-size:1.4rem}
  .subtitle{font-size:0.78rem;margin-bottom:0.7rem}
  .tool-row{flex-direction:column;align-items:stretch}
  .select{min-width:unset}
  button{width:100%}
}
