/* ===== Track Start — Generator + Guide page styles ===== */

/* Two-column app layout */
.app-wrap { padding: 32px 0 80px; }
.app-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
.app-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 18px;
}
.app-main {
  display: flex; flex-direction: column; gap: 20px;
}
.app-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 4px; }
.app-title h1 { font-size: 32px; line-height: 1.1; }
.app-title p { color: var(--muted); font-size: 14px; }

/* Form */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-pick {
  padding: 7px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-family: var(--font-mono); color: var(--ink-2);
  cursor: pointer; transition: all .15s var(--ease);
}
.chip-pick:hover { border-color: var(--ink); }
.chip-pick.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.bpm-row { display: flex; align-items: center; gap: 12px; }
.bpm-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.bpm-row .bpm-val { font-family: var(--font-mono); font-size: 14px; color: var(--ink); min-width: 80px; text-align: right; }

/* Output panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 16px; font-weight: 500; }
.panel-head .tools { display: flex; gap: 6px; }
.tool-btn {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s var(--ease);
}
.tool-btn:hover { border-color: var(--ink); color: var(--ink); }
.tool-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Lyrics editor — rendered as editable blocks */
.lyric-doc { font-family: "Geist", sans-serif; }
.lyric-block-card {
  border-left: 2px solid var(--line);
  padding: 6px 0 6px 16px;
  margin-bottom: 18px;
  position: relative;
  transition: border-color .15s var(--ease);
}
.lyric-block-card:hover { border-color: var(--accent); }
.lyric-block-card:hover .lb-tools { opacity: 1; }
.lb-label {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-ink); display: inline-block; margin-bottom: 8px;
}
.lb-text {
  white-space: pre-line;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  outline: none;
  border-radius: 6px;
  padding: 2px;
}
.lb-text:focus { background: var(--accent-soft); }
.lb-tools {
  position: absolute; right: 0; top: 6px; opacity: 0; transition: opacity .15s var(--ease);
  display: flex; gap: 4px;
}
.lb-tools button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.lb-tools button:hover { color: var(--ink); border-color: var(--ink); }

/* Suno prompt box */
.suno-prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  background: #14130f;
  color: #f4f1ea;
  border-radius: var(--radius);
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}
.suno-prompt .tag { color: #c4b5fd; }
.suno-prompt .num { color: #fbbf24; }

/* Loading / status */
.gen-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }
.gen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

.empty-state {
  padding: 64px 24px; text-align: center; color: var(--muted);
}
.empty-state .icon-bg {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.empty-state h4 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* ===== Guide / distribution table ===== */
.guide-hero { padding: 56px 0 32px; }
.guide-hero h1 { max-width: 16ch; }
.guide-toc {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px;
}
.guide-toc a {
  padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  font-size: 13px; font-family: var(--font-mono); color: var(--ink-2);
}
.guide-toc a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.dist-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dist-filters .demo-chip { font-family: var(--font-mono); }
.dist-table-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.dist-table { width: 100%; border-collapse: collapse; }
.dist-table th, .dist-table td { padding: 16px 20px; text-align: left; vertical-align: top; font-size: 14px; }
.dist-table th {
  background: var(--bg-2); font-weight: 500; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.dist-table tbody tr { border-top: 1px solid var(--line); transition: background .15s var(--ease); }
.dist-table tbody tr:first-child { border-top: 0; }
.dist-table tbody tr:hover { background: var(--bg-2); }
.dist-name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dist-logo {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: #fff;
}
.dist-tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.dist-tag {
  padding: 3px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.dist-pros { color: var(--ok); font-size: 13px; }
.dist-cons { color: #b45309; font-size: 13px; }

@media (max-width: 980px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-side { position: static; }
  .dist-table th:nth-child(4), .dist-table td:nth-child(4) { display: none; }
}
@media (max-width: 680px) {
  .dist-table th:nth-child(3), .dist-table td:nth-child(3) { display: none; }
}
