/* ============================================================================
   508 Ministry & Alongside+ Studio - All-in-One Artist Pipeline UI
   ============================================================================ */
.ap-section {
  background: linear-gradient(160deg, #131b35 0%, #1a264b 60%, #10172c 100%);
  border: 1.5px solid rgba(212, 168, 75, 0.72);
  border-radius: 20px;
  padding: 24px 22px;
  margin: 22px 0;
  color: #f7f3ea;
  box-shadow: 0 18px 46px rgba(8, 12, 26, 0.35);
}

.ap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 168, 75, 0.28);
}

.ap-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.18);
  border: 1px solid rgba(212, 168, 75, 0.65);
  color: #f3d58c;
  margin-bottom: 8px;
}

.ap-title {
  margin: 0 0 6px;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.ap-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(247, 243, 234, 0.86);
  max-width: 760px;
}

.ap-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d4a84b;
  background: rgba(212, 168, 75, 0.14);
  color: #fff6dc;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
}

.ap-guide-link:hover {
  background: rgba(212, 168, 75, 0.28);
}

.ap-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ap-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 168, 75, 0.34);
  border-radius: 16px;
  padding: 18px;
}

.ap-card-wide {
  grid-column: 1 / -1;
}

.ap-step-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ap-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7c166, #c6922c);
  color: #131b35;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-step-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff8e6;
}

.ap-field {
  margin-bottom: 11px;
}

.ap-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f3d58c;
  margin-bottom: 4px;
}

.ap-input,
.ap-select,
.ap-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(212, 168, 75, 0.42);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #ffffff;
  background: rgba(9, 14, 28, 0.72);
}

.ap-textarea {
  min-height: 78px;
  resize: vertical;
}

.ap-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ap-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid #d4a84b;
  background: linear-gradient(135deg, #e7c166, #c6922c);
  color: #131b35;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
}

.ap-btn:hover {
  filter: brightness(1.06);
}

.ap-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ap-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff6dc;
}

.ap-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ap-note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(247, 243, 234, 0.78);
  margin-top: 6px;
}

.ap-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(212, 168, 75, 0.14);
  border: 1px solid rgba(212, 168, 75, 0.55);
  color: #fff6dc;
}

.ap-status.is-err {
  background: rgba(220, 38, 38, 0.22);
  border-color: #f87171;
  color: #fecaca;
}

.ap-status.is-ok {
  background: rgba(22, 163, 74, 0.2);
  border-color: #4ade80;
  color: #dcfce7;
}

.ap-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.ap-cover-box {
  background: #0a1020;
  border: 1.5px solid #d4a84b;
  border-radius: 14px;
  overflow: hidden;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.ap-cover-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ap-cover-meta {
  padding: 9px 11px;
  font-size: 11.5px;
  color: #f3d58c;
}

.ap-song-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ap-song-tab {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 75, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #fff6dc;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.ap-song-tab.active {
  background: #e7c166;
  color: #131b35;
}

.ap-lyrics-editor {
  width: 100%;
  min-height: 230px;
  box-sizing: border-box;
  border: 1px solid rgba(212, 168, 75, 0.5);
  border-radius: 12px;
  padding: 12px;
  background: #0b1224;
  color: #faf6ed;
  font-family: 'Figtree', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.ap-audio-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 14, 28, 0.72);
  border: 1px solid rgba(212, 168, 75, 0.35);
}

.ap-audio-box audio {
  width: 100%;
  margin-top: 6px;
}

.ap-delivery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ap-artifact-chip {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(9, 14, 28, 0.78);
  border: 1px solid rgba(212, 168, 75, 0.4);
  font-size: 12.5px;
}

.ap-artifact-chip strong {
  display: block;
  color: #f3d58c;
  margin-bottom: 3px;
}

.ap-artifact-chip a {
  color: #93c5fd;
  word-break: break-all;
}

.ap-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.ap-lang-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(9, 14, 28, 0.7);
  border: 1px solid rgba(212, 168, 75, 0.25);
  font-size: 11.5px;
}

.ap-lang-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  margin-top: 4px;
}

.ap-lang-badge.is-live {
  background: rgba(22, 163, 74, 0.24);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.ap-lang-badge.is-queued {
  background: rgba(217, 119, 6, 0.22);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.ap-weekly-box {
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(212, 168, 75, 0.6);
  border-radius: 14px;
  padding: 16px;
}

.ap-rhythm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ap-rhythm-col {
  background: rgba(9, 14, 28, 0.62);
  border: 1px solid rgba(212, 168, 75, 0.34);
  border-radius: 12px;
  padding: 14px 16px;
}

.ap-rhythm-hd {
  margin: 0 0 8px;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #f3d58c;
}

.ap-rhythm-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247, 243, 234, 0.9);
}

.ap-rhythm-list li {
  margin-bottom: 7px;
}

.ap-vault-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.ap-vault-hd {
  font-size: 13px;
  font-weight: 800;
  color: #dcfce7;
  margin-bottom: 6px;
}

.ap-vault-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ap-vault-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(9, 14, 28, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #f0fdf4;
}

.ap-prompter-guide-bar {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.18), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(212, 168, 75, 0.75);
}

.ap-prompter-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ap-prompter-guide-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3d58c;
}

.ap-prompter-guide-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.ap-prompter-guide-bar audio {
  width: 100%;
  display: block;
}

.ap-sing-along-btn.is-playing {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  border-color: #86efac;
  color: #052e16;
}

@media (max-width: 820px) {
  .ap-steps-grid,
  .ap-output-grid,
  .ap-delivery-list,
  .ap-rhythm-grid,
  .ap-row-2,
  .ap-row-3 {
    grid-template-columns: 1fr;
  }
  .ap-section {
    padding: 16px 14px;
  }
  .ap-title {
    font-size: 26px;
  }
}
