:root {
  --bg-0: #07050f;
  --bg-1: #0d0a1c;
  --bg-2: #141029;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f6f1ff;
  --text-1: #bfb4d8;
  --text-2: #8478a3;
  --accent: #c98cff;
  --accent-2: #ff7ad9;
  --ok: #6bf0a8;
  --warn: #ffcc66;
  --err: #ff7a8a;
  --grad: linear-gradient(115deg, var(--accent), var(--accent-2));
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Manrope", "Segoe UI", Poppins, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(80% 60% at 15% -10%, rgba(120, 60, 200, 0.28), transparent 60%),
    radial-gradient(70% 50% at 95% 5%, rgba(255, 90, 190, 0.14), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------------- Estructura ---------------- */

.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.sidebar {
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex; flex-direction: column; gap: 22px;
  background: rgba(10, 7, 20, 0.5);
  position: sticky; top: 0; height: 100vh;
}
.brand { font-size: 0.95rem; letter-spacing: 0.34em; font-weight: 700; }
.brand small { display: block; letter-spacing: 0.16em; font-size: 0.62rem; color: var(--text-2); margin-top: 4px; }

.nav { display: grid; gap: 3px; }
.nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text-1); cursor: pointer;
  font-weight: 600; font-size: 0.9rem; text-align: left;
  transition: background 0.2s, color 0.2s;
}
.nav button:hover { background: var(--panel); color: var(--text); }
.nav button[aria-current="true"] { background: var(--panel-2); color: var(--text); }
.nav svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-foot { margin-top: auto; display: grid; gap: 10px; font-size: 0.8rem; color: var(--text-2); }

.main { padding: 30px clamp(18px, 3vw, 40px) 80px; min-width: 0; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 26px;
}
.page-head h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--text-2); font-size: 0.88rem; margin-top: 2px; }

/* ---------------- Piezas ---------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.card > h2 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2); font-weight: 800; margin-bottom: 16px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.87rem; cursor: pointer;
  background: var(--panel-2); color: var(--text);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,0.12); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #16091f; }
.btn-ghost { background: none; border-color: var(--line-2); }
.btn-danger { background: none; border-color: rgba(255, 122, 138, 0.4); color: var(--err); }
.btn-sm { padding: 7px 13px; font-size: 0.8rem; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--text-1); letter-spacing: 0.02em; }
.field .help { font-size: 0.74rem; color: var(--text-2); }
/* Sin `type` explícito un input sigue siendo de texto, así que se
   seleccionan por descarte en vez de por tipo. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; padding: 10px 13px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.2s, background 0.2s;
}
input[type="datetime-local"], input[type="date"] { color-scheme: dark; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; background: rgba(0,0,0,0.4); }
textarea { resize: vertical; min-height: 88px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line);
}
.tag.draft { color: var(--warn); border-color: rgba(255, 204, 102, 0.35); }
.tag.published { color: var(--ok); border-color: rgba(107, 240, 168, 0.35); }
.tag.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.notice { padding: 11px 14px; border-radius: var(--r-sm); font-size: 0.84rem; border: 1px solid; margin-bottom: 12px; }
.notice.warn { color: var(--warn); border-color: rgba(255, 204, 102, 0.3); background: rgba(255, 204, 102, 0.07); }
.notice.err  { color: var(--err);  border-color: rgba(255, 122, 138, 0.3); background: rgba(255, 122, 138, 0.07); }
.notice.ok   { color: var(--ok);   border-color: rgba(107, 240, 168, 0.3); background: rgba(107, 240, 168, 0.07); }

/* ---------------- Login ---------------- */

.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-card { width: min(400px, 100%); padding: 34px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.login-card .brand { margin-bottom: 26px; }

/* ---------------- Lista de lanzamientos ---------------- */

.release-list { display: grid; gap: 10px; }
.release-row {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center;
  padding: 12px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.release-row:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px); }
.release-row img, .release-row .ph {
  width: 58px; height: 58px; border-radius: var(--r-sm); object-fit: cover;
  background: linear-gradient(140deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
}
.release-row h3 { font-size: 1rem; font-weight: 700; }
.release-row .meta { color: var(--text-2); font-size: 0.8rem; }
.release-actions { display: flex; gap: 8px; align-items: center; }

/* ---------------- Zonas de arrastre ---------------- */

.drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md);
  padding: 22px; text-align: center; cursor: pointer;
  color: var(--text-2); font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); background: rgba(201, 140, 255, 0.07); }
.drop strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 3px; }

.cover-preview { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; }
.cover-preview img { width: 168px; height: 168px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.swatches { display: flex; gap: 8px; margin-top: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.swatch { width: 52px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); position: relative; }
.swatch span {
  position: absolute; inset: auto 0 -18px 0; text-align: center;
  font-size: 0.56rem; color: var(--text-2); letter-spacing: 0.04em;
}

/* ---------------- Editor de adelanto ---------------- */

.wave-shell { display: grid; gap: 14px; }

.wave {
  position: relative; height: 148px;
  scroll-margin: 90px 0 140px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.2));
  border: 1px solid var(--line); overflow: hidden;
  touch-action: none; cursor: grab; user-select: none;
}
.wave.dragging { cursor: grabbing; }
.wave canvas { display: block; width: 100%; height: 100%; }

.wave-sel {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(201, 140, 255, 0.2), rgba(255, 122, 217, 0.12));
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent);
  box-shadow: 0 0 26px rgba(201, 140, 255, 0.35) inset;
  pointer-events: none;
}
.wave-handle {
  position: absolute; top: 0; bottom: 0; width: 16px;
  cursor: ew-resize; z-index: 3;
  display: grid; place-items: center;
}
.wave-handle::after {
  content: ""; width: 4px; height: 42px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 14px rgba(201, 140, 255, 0.8);
}
.wave-fade { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.wave-fade svg { width: 100%; height: 100%; display: block; }
.wave-playhead {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.9);
  pointer-events: none; opacity: 0; z-index: 4;
}
.wave-playhead.on { opacity: 1; }
.wave-ruler {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.68rem; color: var(--text-2);
}

.wave-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: none; cursor: pointer; font-size: 0.78rem; font-weight: 700; color: var(--text-1);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: rgba(201, 140, 255, 0.14); }

.readout { font-family: var(--mono); font-size: 0.8rem; color: var(--text-1); }
.readout b { color: var(--accent); font-weight: 700; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.83rem; font-weight: 600; }
.switch input { appearance: none; width: 38px; height: 21px; border-radius: 999px; background: rgba(255,255,255,0.14); position: relative; cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch input:checked { background: var(--grad); }
.switch input:checked::after { transform: translateX(17px); }

/* ---------------- Plataformas ---------------- */

.platform-groups { display: grid; gap: 20px; }
.platform-group h3 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.platform-rows { display: grid; gap: 8px; }
.platform-row {
  display: grid; grid-template-columns: 34px 130px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: var(--r-sm);
  border: 1px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.platform-row.filled { border-color: var(--line); background: rgba(255,255,255,0.03); }
.platform-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.06); }
.platform-logo svg { width: 19px; height: 19px; }
.platform-name { font-size: 0.85rem; font-weight: 700; }
.platform-row input { padding: 8px 11px; font-size: 0.82rem; font-family: var(--mono); }
.platform-row .state { font-size: 0.68rem; color: var(--text-2); min-width: 56px; text-align: right; }
.platform-row .state.ok { color: var(--ok); }

/* ---------------- Barra de guardado ---------------- */

/* La barra flota sobre el contenido, así que solo sus botones capturan
   el ratón: si no, su zona vacía bloqueaba el arrastre de la onda. */
.savebar {
  position: sticky; bottom: 0; margin-top: 22px;
  pointer-events: none;
  display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(13, 10, 28, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
}
.savebar > * { pointer-events: auto; }
.savebar .status { margin-right: auto; font-size: 0.82rem; color: var(--text-2); }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 54px 20px; color: var(--text-2); }
.empty h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 16px; overflow-x: auto; }
  .sidebar .nav { grid-auto-flow: column; }
  .sidebar-foot { display: none; }
  .cover-preview { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 30px 1fr; grid-template-areas: "logo name" "url url"; }
  .platform-row .platform-logo { grid-area: logo; }
  .platform-row .platform-name { grid-area: name; }
  .platform-row input { grid-area: url; }
  .platform-row .state { display: none; }
}

/* ---------------- Diálogos ---------------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(5, 3, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.modal-overlay.is-open { opacity: 1; }

.modal {
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #171030, #100b22);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s var(--ease);
}
.modal-overlay.is-open .modal { transform: none; }

.modal-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.modal-sub { color: var(--text-2); font-size: 0.85rem; margin: 5px 0 22px; }
.modal .field:last-of-type { margin-bottom: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }

.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind {
  display: grid; gap: 2px; text-align: left;
  padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(0,0,0,0.24);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.kind strong { font-size: 0.88rem; font-weight: 700; }
.kind span { font-size: 0.7rem; color: var(--text-2); }
.kind:hover { border-color: var(--line-2); }
.kind[aria-pressed="true"] { border-color: var(--accent); background: rgba(201, 140, 255, 0.14); }

.btn-danger-solid { background: linear-gradient(115deg, #ff6b7f, #ff4d6d); color: #2a0611; }

/* ---------------- Apariencia ---------------- */

.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.font-card {
  display: grid; gap: 3px; text-align: left;
  padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(0,0,0,0.24);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.font-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.font-card[aria-pressed="true"] { border-color: var(--accent); background: rgba(201, 140, 255, 0.12); }
.font-sample { font-size: 1.5rem; line-height: 1.15; margin-bottom: 6px; color: var(--text); }
.font-sample.body { font-size: 0.95rem; font-weight: 600; }
.font-card strong { font-size: 0.82rem; font-weight: 700; }
.font-note { font-size: 0.7rem; color: var(--text-2); }

.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; transition: opacity 0.2s; }
.color-field { display: grid; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--text-1); }
.color-field input[type="color"] {
  width: 100%; height: 46px; padding: 3px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(0,0,0,0.28); cursor: pointer;
}
.color-field code { font-family: var(--mono); font-size: 0.72rem; color: var(--text-2); }

.fx-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px; margin-top: 18px; }
.fx-row {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 11px 12px; border-radius: var(--r-sm); cursor: pointer;
  transition: background 0.2s;
}
.fx-row:hover { background: var(--panel); }
.fx-row input {
  appearance: none; width: 38px; height: 21px; border-radius: 999px; margin-top: 2px;
  background: rgba(255,255,255,0.14); position: relative; cursor: pointer; transition: background 0.2s;
  flex-shrink: 0;
}
.fx-row input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease);
}
.fx-row input:checked { background: var(--grad); }
.fx-row input:checked::after { transform: translateX(17px); }
.fx-row span { display: grid; gap: 1px; }
.fx-row strong { font-size: 0.85rem; font-weight: 700; }
.fx-row em { font-style: normal; font-size: 0.72rem; color: var(--text-2); }

/* ---------------- Listas editables ---------------- */

.list-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; align-items: start; }
.list-row.social { grid-template-columns: 150px 150px 1fr auto; }
.list-row textarea { min-height: 68px; }
@media (max-width: 760px) {
  .list-row.social { grid-template-columns: 1fr auto; }
  .list-row.social .s-url { grid-column: 1 / -1; }
}

/* Botón de escucha del editor: es la acción principal, así que se ve. */
.play-big { padding: 11px 20px; font-size: 0.9rem; }
.play-big.is-playing {
  background: none; border-color: var(--accent); color: var(--text);
  box-shadow: 0 0 0 4px rgba(201, 140, 255, 0.14);
}
.wave-controls { gap: 12px 14px; }

/* ---------------- Editor de adelanto (ampliado) ---------------- */

.src-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.24); border: 1px solid var(--line);
}
.src-info { font-family: var(--mono); font-size: 0.78rem; color: var(--text-1); }
.src-actions { display: flex; gap: 8px; }

.wave-controls { display: flex; gap: 12px 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.switch.sm { font-size: 0.8rem; }
.switch.sm input { width: 32px; height: 18px; }
.switch.sm input::after { width: 12px; height: 12px; }
.switch.sm input:checked::after { transform: translateX(14px); }

.nudge-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.nudge-row > div { display: flex; align-items: center; gap: 9px; }
.nudge-row span {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); font-weight: 800;
}
.nudge-row .chip { padding: 5px 10px; font-size: 0.74rem; font-family: var(--mono); }

.fade-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; margin-top: 16px; }
.fade-row .field { margin: 0; width: 140px; }

.gen-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.preview-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; }
.ps-ok { color: var(--ok); font-weight: 700; }
.ps-empty { color: var(--text-2); }
.ps-meta { color: var(--text-2); font-family: var(--mono); font-size: 0.76rem; }

.unpublished {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 5px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warn); border: 1px solid rgba(255, 204, 102, 0.35);
}
.unpublished::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- Selector de efectos ---------------- */

.fx-preview {
  padding: 26px 24px 24px;
  border-radius: var(--r-md);
  background: radial-gradient(70% 90% at 20% 0%, rgba(120,60,200,0.22), transparent 65%), rgba(0,0,0,0.34);
  border: 1px solid var(--line);
  margin-bottom: 22px;
  display: grid; gap: 18px;
  --accent-1: #c99dff; --accent-2: #ff7ad9; --accent-3: #7a3fd4; --accent-glow: #e2c2ff;
}
.fx-preview-hint { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 800; }
.fx-preview-title {
  font-family: "Fraunces", "TeX Gyre Pagella", Georgia, serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.03em;
  display: inline-block; justify-self: start;
  padding: 0.06em 0.1em 0.22em 0;
  background-image: linear-gradient(100deg, #fff 0%, var(--accent-1) 22%, var(--accent-glow) 40%, #fff 58%, var(--accent-2) 78%, var(--accent-glow) 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter 0.55s var(--ease);
  cursor: default;
}
.fx-preview-card { width: 230px; }
.fx-preview-card .song-card { padding: 14px; border-radius: var(--r-md); transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s; }
.fx-preview-card .song-cover { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 12px; }
.fx-preview-card .song-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.fx-preview-card .song-title { font-size: 1rem; font-weight: 600; font-family: "Fraunces", Georgia, serif; }
.fx-preview-card .song-meta { font-size: 0.74rem; color: var(--text-2); }

.fx-group { margin-bottom: 20px; }
.fx-group > label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-1); }
.fx-group > .help { display: block; font-size: 0.74rem; color: var(--text-2); margin-bottom: 10px; }
.fx-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.fx-option {
  display: grid; gap: 2px; text-align: left;
  padding: 10px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(0,0,0,0.24);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.fx-option:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fx-option[aria-pressed="true"] { border-color: var(--accent); background: rgba(201, 140, 255, 0.13); }
.fx-option strong { font-size: 0.84rem; font-weight: 700; }
.fx-option span { font-size: 0.7rem; color: var(--text-2); line-height: 1.35; }

/* La animación del título solo corre cuando está en pantalla. */
.gradient-title { animation-play-state: paused; }
.gradient-title.is-onscreen { animation-play-state: running; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.fx-idle-sheen { animation: sheen 8s ease-in-out infinite; }

/* ---------------- Canciones de un disco ---------------- */

.track-list { display: grid; gap: 8px; }
.track {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(0,0,0,0.22); overflow: hidden;
}
.track-head {
  display: grid; grid-template-columns: 34px minmax(0,1fr) 56px auto auto;
  gap: 10px; align-items: center; padding: 9px 12px;
}
.track-num {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-1);
}
.track-title { padding: 7px 10px !important; font-weight: 600; }
.track-meta { font-family: var(--mono); font-size: 0.74rem; color: var(--text-2); text-align: right; }
.track-flags { display: flex; gap: 5px; }
.track-flag {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800;
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2);
}
.track-flag.ok { color: var(--ok); border-color: rgba(107, 240, 168, 0.3); }
.track-actions { display: flex; gap: 4px; }

.icon-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line); background: none; color: var(--text-1);
  cursor: pointer; font-size: 0.72rem; line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); background: var(--panel); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.icon-btn.danger:hover { border-color: rgba(255,122,138,0.45); color: var(--err); }

.track-body { padding: 4px 12px 14px; border-top: 1px solid var(--line); }
.track-body .card { background: rgba(0,0,0,0.18); margin-top: 12px; }
.track-body .card:first-child { margin-top: 12px; }

.track-cover { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.track-cover img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.track-cover img[hidden] { display: none; }
.track-cover > div:only-child { grid-column: 1 / -1; }
.drop.small { padding: 14px; font-size: 0.78rem; }

@media (max-width: 760px) {
  .track-head { grid-template-columns: 30px minmax(0,1fr) auto; }
  .track-meta, .track-flags { display: none; }
  .track-cover { grid-template-columns: 1fr; }
}
