/* ==========================================================================
   Módulos de upload (Separar, Cortar, Transcrever, YouTube)
   Hero ilustrado, etapas, dropzone, progresso, histórico e atalhos de player.
   Escopo: tudo sob .mu-page (páginas de envio) ou .mu-* (players).
   ========================================================================== */

.mu-page,
.mu-player {
  --mu: #22d3ee;
  --mu-2: #67e8f9;
  --mu-rgb: 34, 211, 238;
  --mu-ink: #04121a;
}
.mu-separar   { --mu: #60a5fa; --mu-2: #93c5fd; --mu-rgb: 96, 165, 250;  --mu-ink: #06122a; }
.mu-cortar    { --mu: #e879f9; --mu-2: #f0abfc; --mu-rgb: 232, 121, 249; --mu-ink: #22062a; }
.mu-transcrever { --mu: #2dd4bf; --mu-2: #5eead4; --mu-rgb: 45, 212, 191; --mu-ink: #03201c; }
.mu-youtube   { --mu: #f87171; --mu-2: #fca5a5; --mu-rgb: 248, 113, 113; --mu-ink: #2a0707; }

.mu-page { min-width: 0; }

/* ---------- Hero ---------- */
.mu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25.5rem);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: center;
}
.mu-hero-copy { min-width: 0; }
.mu-hero .lede { max-width: 32rem; }
.mu-hero .lede strong { color: var(--mu-2); }

.mu-hero-art {
  position: relative;
  min-width: 0;
  animation: mu-art-in 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mu-hero-art::before {
  content: "";
  position: absolute;
  inset: -12% -8% -14%;
  background: radial-gradient(closest-side, rgba(var(--mu-rgb), 0.22), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.mu-art-card {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid rgba(var(--mu-rgb), 0.28);
  background:
    linear-gradient(160deg, rgba(var(--mu-rgb), 0.13), rgba(9, 15, 26, 0.94) 52%),
    #0b121c;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1rem 1rem;
  overflow: hidden;
}
.mu-art-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}
.mu-art-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.18);
}
.mu-art-dot:first-child { background: rgba(var(--mu-rgb), 0.85); }
.mu-art-title {
  margin-left: 0.4rem;
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.6);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-art-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.mu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--mu-rgb), 0.3);
  background: rgba(var(--mu-rgb), 0.08);
  color: var(--mu-2);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Barras de forma de onda genéricas */
.mu-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.mu-bars i {
  flex: 1;
  min-width: 1px;
  height: var(--h, 50%);
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  animation: mu-bar 1.5s ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes mu-bar {
  from { transform: scaleY(0.5); }
  to   { transform: scaleY(1); }
}
.mu-lane-tag {
  flex: 0 0 3.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.62);
}

/* Separar: mix -> 4 pistas */
.mu-sep-mix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.6rem;
  padding: 0.3rem 0.55rem;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.05);
  color: rgba(226, 232, 240, 0.7);
}
.mu-sep-fork {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0;
}
.mu-sep-fork span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mu-2);
  background: rgba(var(--mu-rgb), 0.12);
  border: 1px solid rgba(var(--mu-rgb), 0.35);
}
.mu-sep-fork span::before { content: "↓ IA separa"; }
.mu-sep-lanes {
  position: relative;
  display: grid;
  gap: 0.35rem;
}
.mu-sep-lane {
  --c: #a78bfa;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.05rem;
  padding: 0.25rem 0.45rem 0.25rem 0.55rem;
  border-radius: 9px;
  border-left: 2px solid var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(226, 232, 240, 0.03));
  color: var(--c);
  animation: mu-lane-in 0.6s calc(0.35s + var(--i, 0) * 0.13s) cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mu-sep-lane .mu-lane-tag { color: var(--c); }
.mu-lane-v { --c: #a78bfa; }
.mu-lane-d { --c: #ff7a45; }
.mu-lane-b { --c: #60a5fa; }
.mu-lane-o { --c: #34d399; }
.mu-lane-ms {
  display: inline-flex;
  gap: 3px;
  flex: 0 0 auto;
}
.mu-lane-ms b {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.55);
  background: rgba(226, 232, 240, 0.07);
}
.mu-lane-v .mu-lane-ms b:last-child {
  color: #1a1033;
  background: var(--c);
}
@keyframes mu-lane-in {
  from { opacity: 0; transform: translateY(-10px) scaleY(0.7); }
  to   { opacity: 1; transform: none; }
}
/* Cabeça de leitura: o wrapper delimita a área das barras */
.mu-playhead {
  position: absolute;
  top: -0.15rem;
  bottom: -0.15rem;
  left: 4.75rem;
  right: 3.05rem;
  overflow: hidden;
  pointer-events: none;
}
.mu-playhead::before {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.07));
  transform: translateX(-100%);
  animation: mu-sweep 5.5s linear infinite;
}
@keyframes mu-sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* Cortar: região selecionada com alças */
.mu-cut-track {
  position: relative;
  height: 5.6rem;
  margin-top: 1.7rem;
  padding: 0 0.15rem;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.04);
}
.mu-cut-track .mu-bars { color: rgba(226, 232, 240, 0.32); }
.mu-cut-track .mu-bars i.in { color: var(--mu-2); background: var(--mu-2); }
.mu-cut-region {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--a, 33%);
  width: var(--w, 33%);
  border-left: 2px solid var(--mu);
  border-right: 2px solid var(--mu);
  background: rgba(var(--mu-rgb), 0.16);
  transform-origin: center;
  animation: mu-region-in 0.8s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mu-cut-region::before,
.mu-cut-region::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.55rem;
  height: 1.6rem;
  margin-top: -0.8rem;
  border-radius: 4px;
  background: var(--mu);
  box-shadow: 0 0 12px rgba(var(--mu-rgb), 0.6);
}
.mu-cut-region::before { left: -0.33rem; }
.mu-cut-region::after { right: -0.33rem; }
.mu-cut-t {
  position: absolute;
  top: -1.15rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--mu-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mu-cut-t.a { left: -0.9rem; }
.mu-cut-t.b { right: -0.9rem; }
.mu-cut-scissor {
  position: absolute;
  left: 50%;
  bottom: -0.75rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.75rem;
  border-radius: 50%;
  background: var(--mu);
  color: var(--mu-ink);
  box-shadow: 0 6px 16px rgba(var(--mu-rgb), 0.45);
}
.mu-cut-region .mu-playhead { left: 0; right: 0; top: 0; bottom: 0; }
.mu-cut-region .mu-playhead::before { animation-duration: 3.2s; }
@keyframes mu-region-in {
  from { opacity: 0; transform: scaleX(0.15); }
  to   { opacity: 1; transform: none; }
}
.mu-cut-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.mu-cut-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  background: rgba(226, 232, 240, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.07);
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.85);
  animation: mu-pop-in 0.5s calc(0.9s + var(--i, 0) * 0.18s) both;
}
.mu-cut-row strong { font-weight: 650; }
.mu-cut-row .mu-cut-range { color: rgba(226, 232, 240, 0.55); font-variant-numeric: tabular-nums; }
.mu-cut-row .mu-chip { margin-left: auto; }
.mu-cut-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--mu);
  flex: 0 0 auto;
}
.mu-cut-row + .mu-cut-row .mu-cut-dot { background: #a78bfa; }
@keyframes mu-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* Transcrever: player + texto sincronizado */
.mu-trx-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.05);
}
.mu-trx-play {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--mu);
  color: var(--mu-ink);
  flex: 0 0 auto;
}
.mu-trx-player .mu-bars {
  height: 1.6rem;
  color: rgba(var(--mu-rgb), 0.75);
}
.mu-trx-time {
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.55);
  font-variant-numeric: tabular-nums;
}
.mu-trx-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.mu-trx-line {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  font-size: 0.86rem;
  line-height: 1.45;
}
.mu-trx-ts {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--mu-2);
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.mu-trx-line p { margin: 0; color: #e2e8f0; }
.mu-trx-line p span {
  opacity: 0.28;
  animation: mu-word 12s calc(var(--w, 0) * 0.42s) linear infinite;
}
@keyframes mu-word {
  0%       { opacity: 0.28; color: #e2e8f0; }
  1.5%     { opacity: 1; color: var(--mu-2); }
  5%       { opacity: 1; color: #f8fafc; }
  40%      { opacity: 1; color: #f8fafc; }
  46%, 100% { opacity: 0.28; color: #e2e8f0; }
}

/* YouTube: link -> arquivos */
.mu-yt-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(2, 6, 12, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.12);
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.8);
  min-width: 0;
}
.mu-yt-badge {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.35rem;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  flex: 0 0 auto;
}
.mu-yt-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mu-yt-url b { color: #f8fafc; font-weight: 600; }
.mu-yt-caret {
  width: 1.5px;
  height: 1rem;
  background: var(--mu-2);
  flex: 0 0 auto;
  animation: mu-blink 1.1s steps(1) infinite;
}
@keyframes mu-blink { 50% { opacity: 0; } }
.mu-yt-flow {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  height: 2.2rem;
  align-items: center;
}
.mu-yt-flow i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mu);
  animation: mu-flow 1.4s ease-in-out infinite;
}
.mu-yt-flow i:nth-child(2) { animation-delay: 0.18s; }
.mu-yt-flow i:nth-child(3) { animation-delay: 0.36s; }
@keyframes mu-flow {
  0%, 100% { transform: translateY(-5px); opacity: 0.25; }
  50%      { transform: translateY(5px); opacity: 1; }
}
.mu-yt-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.mu-yt-file {
  --c: var(--mu);
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem 0.65rem 0.65rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(226, 232, 240, 0.03));
  animation: mu-pop-in 0.5s calc(0.5s + var(--i, 0) * 0.16s) both;
  min-width: 0;
}
.mu-yt-file.f-mp3 { --c: #f87171; }
.mu-yt-file.f-wav { --c: #fbbf24; }
.mu-yt-file.f-mp4 { --c: #a78bfa; }
.mu-yt-file svg { color: var(--c); }
.mu-yt-file strong { font-size: 0.92rem; letter-spacing: 0.02em; }
.mu-yt-file em {
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.55);
}
.mu-yt-bar {
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.1);
  overflow: hidden;
}
.mu-yt-bar::before {
  content: "";
  display: block;
  height: 100%;
  background: var(--c);
  transform-origin: left;
  animation: mu-fill 4.5s calc(var(--i, 0) * 0.5s) ease-in-out infinite;
}
@keyframes mu-fill {
  0%       { transform: scaleX(0); }
  55%, 100% { transform: scaleX(1); }
}
.mu-yt-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #34d399;
  color: #04120c;
  animation: mu-check 4.5s calc(var(--i, 0) * 0.5s) ease-out infinite;
}
@keyframes mu-check {
  0%, 52%  { opacity: 0; transform: scale(0.4); }
  60%      { opacity: 1; transform: scale(1.15); }
  66%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes mu-art-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Pausa quando fora da tela / aba oculta (classe posta pelo JS) */
.mu-hero-art.is-paused *,
.mu-hero-art.is-paused *::before,
.mu-hero-art.is-paused *::after {
  animation-play-state: paused !important;
}

/* ---------- Etapas ---------- */
.mu-steps {
  list-style: none;
  margin: clamp(1.25rem, 3vw, 1.9rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.mu-steps li {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.08);
  background: rgba(11, 18, 28, 0.6);
  animation: mu-pop-in 0.55s calc(0.2s + var(--n, 0) * 0.1s) both;
}
.mu-steps li:nth-child(2) { --n: 1; }
.mu-steps li:nth-child(3) { --n: 2; }
.mu-step-n {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--mu-ink);
  background: linear-gradient(145deg, var(--mu-2), var(--mu));
  box-shadow: 0 6px 18px rgba(var(--mu-rgb), 0.28);
}
.mu-steps strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.mu-steps li span:not(.mu-step-n) {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Abas e dropzone ---------- */
.mu-page .sep-tab:focus-visible,
.mu-page .sep-plus:focus-visible,
.mu-page .yt-format:has(input:focus-visible),
.mu-file-remove:focus-visible,
.mu-paste:focus-visible,
.mu-copy:focus-visible {
  outline: 3px solid rgba(var(--mu-rgb), 0.7);
  outline-offset: 3px;
}
.mu-page .sep-tab-file.is-active {
  color: #f8fafc;
  border-color: rgba(var(--mu-rgb), 0.65);
  background: linear-gradient(145deg, rgba(var(--mu-rgb), 0.2), rgba(8, 14, 24, 0.92));
  box-shadow: 0 0 0 1px rgba(var(--mu-rgb), 0.18), 0 8px 22px rgba(var(--mu-rgb), 0.12);
}
.mu-page .sep-tab-file.is-active .sep-tab-icon {
  background: var(--mu);
  color: var(--mu-ink);
}
.mu-page .sep-tab-file.is-active .sep-tab-text em { color: var(--mu-2); }
.mu-page .sep-tab-file:not(.is-active):hover .sep-tab-icon { color: var(--mu-2); }

.mu-page .sep-drop {
  position: relative;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 13.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border: 1.5px dashed rgba(var(--mu-rgb), 0.42);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--mu-rgb), 0.11), transparent 65%),
    rgba(6, 10, 19, 0.6);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.mu-page .sep-drop:hover {
  border-color: rgba(var(--mu-rgb), 0.75);
  box-shadow: 0 0 0 4px rgba(var(--mu-rgb), 0.06);
}
.mu-page .sep-drop.is-drag {
  border-style: solid;
  border-color: var(--mu);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(var(--mu-rgb), 0.24), transparent 70%),
    rgba(6, 10, 19, 0.7);
  box-shadow: 0 0 0 5px rgba(var(--mu-rgb), 0.12), 0 18px 40px rgba(var(--mu-rgb), 0.12);
  transform: scale(1.01);
}
.mu-page.mu-dragging .sep-drop:not(.is-drag) {
  border-color: rgba(var(--mu-rgb), 0.85);
  animation: mu-breathe 1.2s ease-in-out infinite;
}
@keyframes mu-breathe {
  50% { box-shadow: 0 0 0 6px rgba(var(--mu-rgb), 0.14); }
}
.mu-page .sep-drop.is-filled { border-style: solid; border-color: rgba(var(--mu-rgb), 0.5); min-height: 0; }
.mu-page .sep-drop.is-invalid {
  border-color: rgba(255, 92, 122, 0.8);
  animation: mu-shake 0.4s ease;
}
@keyframes mu-shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.mu-page .sep-plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  font-size: 0;
  color: var(--mu-ink);
  background: linear-gradient(145deg, var(--mu-2), var(--mu));
  box-shadow: 0 12px 30px rgba(var(--mu-rgb), 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mu-page .sep-plus svg { pointer-events: none; }
.mu-page .sep-plus::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(var(--mu-rgb), 0.45);
  animation: mu-ring 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes mu-ring {
  0%   { transform: scale(0.85); opacity: 0.9; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
.mu-page .sep-drop:hover .sep-plus { transform: translateY(-2px); }
.mu-page .sep-drop.is-drag .sep-plus { transform: translateY(-5px) scale(1.08); }
.mu-page .sep-drop.is-filled .sep-plus { width: 2.4rem; height: 2.4rem; box-shadow: none; }
.mu-page .sep-drop.is-filled .sep-plus svg { width: 18px; height: 18px; }
.mu-page .sep-drop.is-filled .sep-plus::after { animation: none; opacity: 0; }
.mu-page .sep-drop-copy { text-align: center; max-width: 34rem; }
.mu-page .sep-drop-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
}
.mu-page .sep-drop-title u {
  text-decoration-color: rgba(var(--mu-rgb), 0.7);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  color: var(--mu-2);
}
.mu-t-drag { display: none; color: var(--mu-2); }
.mu-page .sep-drop.is-drag .mu-t-idle { display: none; }
.mu-page .sep-drop.is-drag .mu-t-drag { display: inline; }
.mu-page .sep-drop.is-filled .mu-formats,
.mu-page .sep-drop.is-filled .sep-drop-hint { display: none; }
.mu-page .sep-drop.is-filled .sep-drop-title { margin-bottom: 0; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.mu-t-filled { display: none; }
.mu-page .sep-drop.is-filled:not(.is-drag) .mu-t-idle { display: none; }
.mu-page .sep-drop.is-filled:not(.is-drag) .mu-t-filled { display: inline; }
.mu-page .sep-drop.is-filled {
  flex-direction: row;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
}
.mu-page .sep-drop.is-filled .sep-drop-copy { text-align: left; }
.mu-page .sep-drop.is-filled .sep-file-name { display: none; }
.mu-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.55rem;
}
.mu-formats span {
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(226, 232, 240, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.1);
}
.mu-formats em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.25rem;
}
.mu-page .sep-drop-hint { font-size: 0.82rem; }
.mu-page .sep-file-name { color: var(--mu-2); }

/* Cartão do arquivo selecionado */
.mu-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--mu-rgb), 0.35);
  background: linear-gradient(120deg, rgba(var(--mu-rgb), 0.12), rgba(11, 18, 28, 0.85));
  animation: mu-pop-in 0.35s ease both;
}
.mu-file-icon {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 10px;
  background: rgba(var(--mu-rgb), 0.16);
  color: var(--mu-2);
}
.mu-file-icon i {
  flex: 1;
  border-radius: 2px;
  background: currentColor;
}
.mu-file-icon i:nth-child(1) { height: 35%; }
.mu-file-icon i:nth-child(2) { height: 70%; }
.mu-file-icon i:nth-child(3) { height: 50%; }
.mu-file-icon i:nth-child(4) { height: 85%; }
.mu-file-icon i:nth-child(5) { height: 40%; }
.mu-file-info { min-width: 0; }
.mu-file-name {
  margin: 0;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-file-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mu-file-meta .ok { color: #34d399; font-weight: 600; }
.mu-file-remove {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(226, 232, 240, 0.05);
  color: #e2e8f0;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.mu-file-remove:hover { background: rgba(255, 92, 122, 0.16); border-color: rgba(255, 92, 122, 0.5); }

/* Campo de URL: botão colar + validação + prévia */
.mu-url-row {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}
.mu-url-row input { flex: 1; }
.mu-paste {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--mu-rgb), 0.4);
  background: rgba(var(--mu-rgb), 0.1);
  color: var(--mu-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.mu-paste:hover { background: rgba(var(--mu-rgb), 0.2); }
.mu-url-hint {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.mu-url-hint.ok { color: #34d399; }
.mu-url-hint.bad { color: #fbbf24; }
.mu-yt-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.1);
  background: rgba(2, 6, 12, 0.5);
  animation: mu-pop-in 0.3s ease both;
}
.mu-yt-preview img {
  width: 7.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.06);
  flex: 0 0 auto;
}
.mu-yt-preview p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.mu-yt-preview p strong { display: block; color: #e2e8f0; font-size: 0.88rem; }

/* ---------- Progresso ---------- */
.mu-page .sep-progress {
  border-color: rgba(var(--mu-rgb), 0.35);
  background: linear-gradient(145deg, rgba(var(--mu-rgb), 0.13), rgba(8, 14, 24, 0.9));
  animation: mu-pop-in 0.3s ease both;
}
.mu-page .sep-progress-spinner {
  border-color: rgba(var(--mu-rgb), 0.25);
  border-top-color: var(--mu);
}
.mu-page .sep-progress.is-done .sep-progress-spinner {
  border-color: #34d399;
  background: #34d399;
}
.mu-page .sep-progress-pct { color: var(--mu-2); }
.mu-page .sep-progress-track { height: 0.6rem; }
.mu-page .sep-progress-fill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--mu), var(--mu-2));
  box-shadow: 0 0 14px rgba(var(--mu-rgb), 0.45);
}
.mu-page .sep-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  animation: mu-shimmer 1.6s ease-in-out infinite;
}
@keyframes mu-shimmer {
  to { transform: translateX(100%); }
}
.mu-page .sep-progress.is-done .sep-progress-fill::after { animation: none; }
.mu-elapsed {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mu-page.mu-dragging .sep-drop > * { pointer-events: none; }

/* ---------- Histórico ---------- */
.mu-page .sep-table-wrap { position: relative; }
.mu-page .sep-empty td {
  padding: 2.2rem 1rem 2rem;
  font-size: 0.92rem;
}
.mu-page .sep-empty td::before {
  content: "";
  display: block;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 0.8rem;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E") center / 1.45rem no-repeat,
    rgba(var(--mu-rgb), 0.14);
  border: 1px solid rgba(var(--mu-rgb), 0.3);
}
.mu-page .sep-row { transition: background-color 0.15s; }
.mu-page .sep-row:hover { background: rgba(var(--mu-rgb), 0.05); }
.mu-page .sep-title-link:hover { color: var(--mu-2); }
.mu-page .sep-row-progress-fill { background: var(--mu); }
.mu-page .sep-row-progress-pct { color: var(--mu-2); }

@media (max-width: 640px) {
  .mu-page .sep-table thead { display: none; }
  .mu-page .sep-table,
  .mu-page .sep-table tbody { display: block; }
  .mu-page .sep-table tr.sep-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.9rem;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  .mu-page .sep-table tr.sep-row td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 0.82rem;
    color: var(--muted);
  }
  .mu-page .sep-table tr.sep-row td:first-child {
    flex: 1 0 100%;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.2rem;
  }
  .mu-page .sep-table tr.sep-row td[data-l]::before,
  .mu-page .sep-table tr.sep-row td:not(:first-child):not(.sep-actions)::before {
    color: rgba(226, 232, 240, 0.45);
    margin-right: 0.3rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .mu-page .sep-table td.sep-actions { margin-left: auto; width: auto; }
  .mu-page .sep-table tr.sep-empty,
  .mu-page .sep-table tr.sep-empty td { display: block; border: 0; }

  #sepTable tr.sep-row td:nth-child(2)::before { content: "Criado"; }
  #sepTable tr.sep-row td:nth-child(3)::before { content: "BPM"; }
  #sepTable tr.sep-row td:nth-child(4)::before { content: "Tom"; }
  #sepTable tr.sep-row td:nth-child(5)::before { content: "Dur."; }
  #sepTable tr.sep-row td:nth-child(6)::before { content: "Status"; }
  #cutTable tr.sep-row td:nth-child(2)::before { content: "Criado"; }
  #cutTable tr.sep-row td:nth-child(3)::before { content: "Dur."; }
  #cutTable tr.sep-row td:nth-child(4)::before { content: "Status"; }
  #trxTable tr.sep-row td:nth-child(2)::before { content: "Criado"; }
  #trxTable tr.sep-row td:nth-child(3)::before { content: "Idioma"; }
  #trxTable tr.sep-row td:nth-child(4)::before { content: "Dur."; }
  #trxTable tr.sep-row td:nth-child(5)::before { content: "Status"; }
}

/* ---------- YouTube: formatos ---------- */
.mu-youtube .yt-format {
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.mu-youtube .yt-format:hover { transform: translateY(-1px); border-color: rgba(226, 232, 240, 0.3); }
.mu-youtube .yt-format .mu-fmt-ic {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.07);
  color: rgba(226, 232, 240, 0.7);
  transition: background-color 0.15s, color 0.15s;
}
.mu-youtube .yt-format:has(input:checked) {
  border-color: rgba(var(--mu-rgb), 0.65);
  background: linear-gradient(145deg, rgba(var(--mu-rgb), 0.16), rgba(8, 14, 24, 0.9));
  box-shadow: 0 8px 22px rgba(var(--mu-rgb), 0.1);
}
.mu-youtube .yt-format:has(input:checked) .mu-fmt-ic {
  background: var(--mu);
  color: var(--mu-ink);
}
.mu-youtube .yt-format em { grid-column: 2; }
.mu-youtube .yt-url-box {
  display: grid;
  gap: 0.5rem;
}
.mu-youtube .yt-url-box input[type="url"] { width: 100%; min-width: 0; }
.mu-yt-result:not(:empty) {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}
.mu-youtube #ytDownloadBtn:not([hidden]) {
  border-color: rgba(52, 211, 153, 0.6);
  color: #6ee7b7;
}

/* ---------- Players: atalhos ---------- */
.mu-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.mu-keys span { white-space: nowrap; }
.mu-keys kbd {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  margin-right: 0.25rem;
  border-radius: 5px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-bottom-width: 2px;
  background: rgba(226, 232, 240, 0.06);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.mu-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(11, 18, 28, 0.95);
  border: 1px solid rgba(var(--mu-rgb), 0.45);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 0);
  animation: mu-toast 1.6s ease both;
  pointer-events: none;
}
@keyframes mu-toast {
  0%   { opacity: 0; transform: translate(-50%, 8px); }
  12%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ---------- Transcrever: resultado ---------- */
.mu-trx-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.65rem;
}
.mu-trx-tools .trx-transcript-head { margin: 0; }
.mu-trx-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mu-trx-tools-right {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mu-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--mu-rgb), 0.4);
  background: rgba(var(--mu-rgb), 0.1);
  color: var(--mu-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.mu-copy:hover { background: rgba(var(--mu-rgb), 0.2); }
.mu-copy.is-done { border-color: rgba(52, 211, 153, 0.6); color: #6ee7b7; background: rgba(52, 211, 153, 0.12); }
.mu-player .trx-transcript-body {
  border-color: rgba(var(--mu-rgb), 0.2);
  background: rgba(6, 10, 19, 0.6);
  line-height: 1.7;
  font-size: 1rem;
}
.mu-player .trx-transcript-body.is-large { font-size: 1.15rem; }
.mu-res-progress {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--mu-rgb), 0.3);
  background: linear-gradient(145deg, rgba(var(--mu-rgb), 0.12), rgba(8, 14, 24, 0.9));
}
.mu-res-progress p { margin: 0; font-weight: 600; }
.mu-res-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 32, 0.85);
  overflow: hidden;
}
.mu-res-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mu), var(--mu-2));
  transition: width 0.45s ease;
}

/* ---------- Cortar: lista pendente ---------- */
.mu-cortar .cut-pending-item {
  border-color: rgba(var(--mu-rgb), 0.3);
  background: rgba(var(--mu-rgb), 0.06);
  animation: mu-pop-in 0.3s ease both;
}
.mu-cortar .cut-pending-remove { font-size: 1.1rem; padding: 0 0.3rem; }
.mu-cortar .cut-pending-remove:focus-visible { outline: 2px solid var(--mu); border-radius: 4px; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .mu-hero { grid-template-columns: minmax(0, 1fr); }
  .mu-hero-art { max-width: 30rem; width: 100%; }
  .mu-hero-art::before { inset: -8% 0 -10%; }
}
@media (max-width: 680px) {
  .mu-steps { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .mu-steps li { padding: 0.7rem 0.85rem; }
}
@media (max-width: 480px) {
  .mu-art-card { padding: 0.75rem 0.75rem 0.85rem; }
  .mu-lane-tag { flex-basis: 3.2rem; font-size: 0.62rem; }
  .mu-playhead { left: 4.15rem; }
  .mu-page .sep-drop { min-height: 11.5rem; padding: 1.4rem 0.9rem 1.2rem; }
  .mu-yt-files { gap: 0.4rem; }
  .mu-yt-file { padding: 0.6rem 0.5rem 0.55rem; }
  .mu-yt-preview img { width: 6rem; }
  .mu-paste span { display: none; }
  .mu-paste { padding: 0 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mu-page *,
  .mu-page *::before,
  .mu-page *::after,
  .mu-player *,
  .mu-player *::before,
  .mu-player *::after,
  .mu-toast {
    animation: none !important;
    transition: none !important;
  }
  .mu-page .sep-progress-spinner { animation: sep-spin 1.6s linear infinite !important; }
  .mu-trx-line p span { opacity: 1; }
}

/* Espaço entre as etapas e o painel (YouTube não usa .sep-panel) */
.mu-page .mu-panel { margin-top: 1rem; }
@media (hover: none) {
  .mu-keys { display: none; }
}

/* ---------- Juntar cortes ---------- */
.mu-help {
  margin: 0 0 1rem;
  border: 1px solid rgba(var(--mu-rgb), 0.22);
  border-radius: 12px;
  background: rgba(var(--mu-rgb), 0.05);
  padding: 0.2rem 0.9rem;
}
.mu-help summary {
  cursor: pointer;
  padding: 0.55rem 0;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--mu-2);
}
.mu-help summary:focus-visible { outline: 2px solid var(--mu); outline-offset: 2px; border-radius: 4px; }
.mu-help .cut-tip { margin: 0 0 0.8rem; opacity: 0.85; line-height: 1.55; }
.mu-empty-state {
  display: block;
  text-align: center;
  line-height: 1.6;
  padding: 2rem 1rem !important;
  border: 1px dashed rgba(var(--mu-rgb), 0.3);
  border-radius: 14px;
  opacity: 1 !important;
  color: var(--muted);
}
.mu-empty-state::before {
  content: "";
  display: block;
  margin: 0 auto 0.8rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0abfc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4 8.1 15.9M14.5 14.5 20 20M8.1 8.1 12 12'/%3E%3C/svg%3E") center / 1.45rem no-repeat,
    rgba(var(--mu-rgb), 0.12);
}
.mu-empty-state[hidden] { display: none !important; }
