/* Nexus Playlist Studio — estilos compartidos (#creador-playlists y /creador-playlists/) */
.nps-wrap {
  background: var(--bg-surface, #141B29);
  border: 1px solid var(--border-subtle, rgba(148, 184, 220, 0.14));
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  max-width: 1240px;
  margin: 0 auto;
  color: var(--text-primary, #E6EAF2);
}

.nps-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 184, 220, 0.12);
}

.nps-quota-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nps-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 184, 220, 0.16);
  color: var(--text-secondary, #8B93A7);
}

.nps-pill b {
  color: var(--text-primary, #E6EAF2);
}

.nps-pill.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.nps-pill.cyan {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: #67E8F9;
}

.nps-pill.warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.nps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface-elevated, #1E2636);
  border: 1px solid rgba(148, 184, 220, 0.14);
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 20px;
}

.nps-tab {
  background: transparent;
  color: var(--text-secondary, #8B93A7);
  border: none;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.nps-tab:hover {
  color: #fff;
}

.nps-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.18));
  color: #fff;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.nps-panel {
  display: none;
}

.nps-panel.active {
  display: block;
}

.nps-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .nps-grid-2 {
    grid-template-columns: 1fr;
  }
  .nps-wrap {
    padding: 18px;
  }
}

.nps-card {
  background: rgba(10, 14, 20, 0.55);
  border: 1px solid rgba(148, 184, 220, 0.12);
  border-radius: 12px;
  padding: 18px;
}

.nps-card-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.nps-sub {
  font-size: 0.84rem;
  color: var(--text-secondary, #8B93A7);
  margin-bottom: 12px;
  line-height: 1.5;
}

.nps-textarea,
.nps-input,
.nps-select {
  width: 100%;
  background: var(--bg-surface-elevated, #1E2636);
  border: 1px solid rgba(148, 184, 220, 0.18);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.2s;
}

.nps-textarea:focus,
.nps-input:focus,
.nps-select:focus {
  border-color: var(--accent-cyan, #22D3EE);
}

.nps-textarea {
  min-height: 92px;
  resize: vertical;
}

.nps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.14s, opacity 0.18s, background 0.18s;
  text-decoration: none;
}

.nps-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nps-btn-primary {
  background: linear-gradient(135deg, #10B981, #22D3EE);
  color: #061018;
}

.nps-btn-secondary {
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.38);
  color: #67E8F9;
}

.nps-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 184, 220, 0.18);
  color: #E6EAF2;
}

.nps-btn-danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.nps-btn-sm {
  padding: 6px 11px;
  font-size: 0.78rem;
  border-radius: 7px;
}

.nps-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nps-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 184, 220, 0.2);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  color: #E6EAF2;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.nps-search-chip:hover {
  border-color: var(--accent-cyan, #22D3EE);
}

.nps-search-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nps-lib-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.nps-lib-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface-elevated, #1E2636);
  border: 1px solid rgba(148, 184, 220, 0.1);
  border-radius: 9px;
  padding: 9px 12px;
}

.nps-lib-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nps-lib-meta img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0A0E14;
}

.nps-lib-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nps-lib-sub {
  font-size: 0.78rem;
  color: var(--text-secondary, #8B93A7);
}

.nps-role-btn {
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.nps-role-btn.own {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.nps-role-btn.mainstream {
  background: rgba(34, 211, 238, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.nps-charts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nps-chart-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface-elevated, #1E2636);
  border: 1px solid rgba(148, 184, 220, 0.12);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
}

.nps-chart-opt input {
  accent-color: #10B981;
  width: 16px;
  height: 16px;
}

.nps-range {
  width: 100%;
  accent-color: #10B981;
  cursor: pointer;
}

.nps-preview-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.86rem;
  color: #A7F3D0;
  margin-top: 12px;
}

.nps-status {
  margin-top: 12px;
  font-size: 0.86rem;
  padding: 10px 13px;
  border-radius: 9px;
  display: none;
}

.nps-status.show {
  display: block;
}

.nps-status.info {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: #A5F3FC;
}

.nps-status.ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #A7F3D0;
}

.nps-status.err {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #FECACA;
}

.nps-pl-result {
  margin-top: 18px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(148, 184, 220, 0.15);
  border-radius: 12px;
  padding: 18px;
}

.nps-pl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 184, 220, 0.1);
}

.nps-pl-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.nps-pl-desc {
  font-size: 0.84rem;
  color: var(--text-secondary, #8B93A7);
  margin-top: 3px;
}

.nps-tracks-ol {
  list-style: none;
  margin-top: 10px;
}

.nps-track-li {
  display: grid;
  grid-template-columns: 26px 40px 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 6px;
  border-bottom: 1px solid rgba(148, 184, 220, 0.06);
}

@media (max-width: 680px) {
  .nps-track-li {
    grid-template-columns: 22px 34px 1fr auto;
  }
  .nps-track-li .nps-hide-sm {
    display: none;
  }
}

.nps-track-li img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #141B29;
}

.nps-tag-own {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.nps-tag-main {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: #67E8F9;
  border: 1px solid rgba(34, 211, 238, 0.32);
}

.nps-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-primary, #E6EAF2);
  cursor: pointer;
}

.nps-switch-label input {
  accent-color: #10B981;
  width: 16px;
  height: 16px;
}

.nps-cta-banner {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nps-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
}

.nps-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-surface-elevated, #1E2636);
  border: 1px solid rgba(148, 184, 220, 0.12);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 0.83rem;
  color: var(--text-secondary, #8B93A7);
  line-height: 1.45;
}

.nps-step b {
  color: #fff;
}

.nps-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.nps-info-strip {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 0.82rem;
  color: #BAE6FD;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
