/* Music composer — scoped under #ng-composer */
#ng-composer {
  --ng-bg: #f3f5f9;
  --ng-card: #ffffff;
  --ng-ink: #1c2434;
  --ng-muted: #6b7288;
  --ng-line: #e4e8f0;
  --ng-blue: #2f6bff;
  --ng-blue-soft: #e8f0ff;
  --ng-chip: #eef1f6;
  --ng-shadow: 0 10px 30px rgba(28, 36, 52, 0.06);
  text-align: left;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: var(--ng-ink);
  position: relative;
  z-index: 30;
}
#ng-composer [hidden] { display: none !important; }
#ng-composer .ng-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef1f6;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
#ng-composer .ng-tab {
  border: 0; background: transparent; border-radius: 10px;
  padding: 10px 8px; color: #5c677a; font-weight: 600; cursor: pointer;
}
#ng-composer .ng-tab.active { background: #fff; color: var(--ng-blue); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
#ng-composer .ng-model {
  margin-top: 14px; width: 100%; display: flex; gap: 12px; align-items: center;
  text-align: left; border: 0; background: #eef1f6; border-radius: 14px; padding: 12px 14px;
  cursor: default;
}
#ng-composer .ng-model-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; color: #7b8798; flex: none;
}
#ng-composer .ng-model-copy { display: flex; flex-direction: column; min-width: 0; }
#ng-composer .ng-model-copy small, #ng-composer .ng-model-menu small { color: var(--ng-muted); font-size: 12px; }
#ng-composer .ng-chev { margin-left: auto; color: #7b8798; }
#ng-composer .ng-model-menu {
  margin-top: 8px; border: 1px solid var(--ng-line); border-radius: 12px; overflow: hidden; background: #fff;
}
#ng-composer .ng-model-menu button {
  display: flex; flex-direction: column; width: 100%; text-align: left;
  border: 0; background: #fff; padding: 10px 12px;
}
#ng-composer .ng-model-menu button + button { border-top: 1px solid var(--ng-line); }
#ng-composer .ng-lbl { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
#ng-composer .ng-field { position: relative; }
#ng-composer textarea {
  width: 100%; min-height: 110px; resize: vertical; border: 1px solid #d9e0ea;
  border-radius: 14px; padding: 12px 12px 28px; outline: none; color: var(--ng-ink); background: #fff;
}
#ng-composer textarea:focus { border-color: #9db7ff; }
#ng-composer .ng-count { position: absolute; right: 12px; bottom: 8px; color: #98a2b3; font-size: 12px; }
#ng-composer .ng-style-row { position: relative; margin-top: 12px; z-index: 5; }
#ng-composer .ng-style-btn, #ng-composer .ng-vocal-row {
  width: 100%; border: 1px solid #d9e0ea; background: #fff; border-radius: 14px;
  min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  cursor: pointer; position: relative; z-index: 2;
}
#ng-composer .ng-style-pop {
  position: absolute; z-index: 40; left: 0; right: 0; top: 54px; background: #fff;
  border: 1px solid var(--ng-line); border-radius: 14px; box-shadow: var(--ng-shadow);
  padding: 12px; display: grid; gap: 12px;
}
#ng-composer .ng-pop-label { font-size: 12px; color: var(--ng-muted); margin-bottom: 6px; }
#ng-composer .ng-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#ng-composer .ng-chips button, #ng-composer .ng-segment button {
  border: 0; background: var(--ng-chip); color: #344054; border-radius: 999px; padding: 6px 10px; font-size: 13px; cursor: pointer;
}
#ng-composer .ng-chips button.on, #ng-composer .ng-segment button.on { background: var(--ng-blue-soft); color: var(--ng-blue); }
#ng-composer .ng-pop-actions { display: flex; justify-content: flex-end; gap: 8px; }
#ng-composer .ng-pop-actions button { border: 0; background: var(--ng-chip); border-radius: 8px; padding: 8px 12px; }
#ng-composer .ng-primary { background: var(--ng-blue); color: #fff; }
#ng-composer .ng-label-style,
#ng-composer .ng-label-vocal {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ng-ink);
}
#ng-composer .ng-label-style {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: 0.02em;
}
#ng-composer .ng-label-vocal {
  font-family: "Fraunces", "Palatino Linotype", Georgia, serif;
  letter-spacing: 0.01em;
}
#ng-composer .ng-vocal-row { margin-top: 12px; }
#ng-composer .ng-segment { display: flex; gap: 6px; }
#ng-composer .ng-generate {
  margin-top: 14px; width: 100%; border: 0; background: var(--ng-blue); color: #fff;
  border-radius: 12px; min-height: 48px; font-weight: 700; font-size: 16px; cursor: pointer;
}
#ng-composer .ng-generate:disabled { opacity: 0.65; cursor: progress; }
#ng-composer .cf-turnstile,
#ng-composer #recaptcha-container {
  display: flex !important;
  justify-content: center;
  width: 100%;
}
#ng-composer .ng-status { min-height: 22px; margin: 10px 0 0; color: var(--ng-muted); font-size: 14px; }
#ng-composer .ng-status.err { color: #b42318; }
#ng-composer .ng-bar { height: 6px; background: #e7edf7; border-radius: 99px; overflow: hidden; margin-top: 8px; }
#ng-composer .ng-bar span { display: block; height: 100%; width: 8%; background: var(--ng-blue); border-radius: 99px; transition: width .4s; }
#ng-composer .ng-panel { margin-top: 18px; }
#ng-composer .ng-panel-head { display: flex; gap: 16px; margin-bottom: 12px; }
#ng-composer .ng-link { border: 0; background: none; color: var(--ng-muted); font-weight: 700; padding: 0; }
#ng-composer .ng-link.on { color: var(--ng-blue); }
#ng-composer .ng-tracks { display: grid; grid-template-columns: 1fr; gap: 10px; }
#ng-composer .ng-track {
  display: flex; gap: 10px; align-items: center; border: 0; background: #f7f9fc;
  border-radius: 12px; padding: 8px; text-align: left; width: 100%;
}
#ng-composer .ng-track img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #d9e0ea; flex: none; }
#ng-composer .ng-track strong { display: block; font-size: 14px; }
#ng-composer .ng-track small { color: var(--ng-muted); display: block; margin-top: 2px; }
#ng-composer .ng-empty { color: var(--ng-muted); padding: 8px 4px; }
#ng-player {
  margin-top: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center;
  background: #fff; border: 1px solid #e4e8f0; border-radius: 12px; padding: 10px;
}
#ng-player img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
#ng-player audio { width: 100%; grid-column: 1 / -1; }
#ng-player a { color: #2f6bff; font-weight: 700; text-decoration: none; grid-column: 1 / -1; text-align: center; }
