/* ===== Extractor de audio =====
   Diseño solo de esta herramienta. Se carga después de /assets/style.css. */
.xa { padding: 40px 16px 80px; }
.xa h1 { font-size: clamp(28px, 5vw, 40px); margin: 16px 0 8px; letter-spacing: -.02em; }
.xa .lead { max-width: 760px; }
.xa-tool { max-width: 860px; }
.xa-drop { aspect-ratio: auto; min-height: 170px; }
.xa-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.xa-head b { word-break: break-all; }
.xa video { width: 100%; max-height: 380px; background: #000; border-radius: 12px; display: block; }
.xa video.xa-audio { height: 54px; background: transparent; }
.xa-h { font-size: 17px; margin: 20px 0 10px; }

/* Barra para elegir el fragmento */
.xa-range { position: relative; height: 44px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; margin: 0 10px; touch-action: none; cursor: pointer; }
.xa-sel { position: absolute; top: 0; bottom: 0; background: rgba(98, 70, 234, .22); border-left: 3px solid var(--brand); border-right: 3px solid var(--brand); }
.xa-play { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); pointer-events: none; }
.xa-handle { position: absolute; top: 50%; width: 22px; height: 34px; margin-left: -11px; transform: translateY(-50%); border-radius: 7px;
             background: var(--brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: ew-resize; padding: 0; touch-action: none; }
.xa-handle::after { content: ""; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .8); }
.xa-handle:focus-visible { outline: 3px solid rgba(98, 70, 234, .4); }
.xa-times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 6px 10px 0; }
.xa-marks { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 12px; }
.xa-marks label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; }
.xa-marks input { width: 80px; padding: 7px 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
.xa-marks .btn, .xa-len .btn { width: auto; }
.xa-len { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; font-size: 15px; }
#limit-msg .nudge, #file-msg .nudge { margin-top: 12px; }
#limit-msg:empty { display: none; }

/* Formatos */
.xa-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.xa-formats button { text-align: left; font: inherit; color: var(--text); background: var(--bg-2); border: 2px solid var(--line); border-radius: 12px;
                     padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.xa-formats button b { font-size: 16px; }
.xa-formats button span { color: var(--muted); font-size: 13px; }
.xa-formats button.active { border-color: var(--brand); background: rgba(98, 70, 234, .12); }
#go:disabled { opacity: .5; cursor: not-allowed; }
.xa-done { margin-top: 14px; display: grid; gap: 8px; }
.xa-done .hint { margin: 0; }
.xa-done a { color: var(--brand-2); font-weight: 600; }
@media (max-width: 640px) { .xa-formats { grid-template-columns: minmax(0, 1fr); } }
