/* ==========================================================================
   Alongside+ Self-Production Studio: Melody Request & 5 Studio Melodies
   Self-hosted Cormorant (headings) + Figtree (body) | Obsidian & Brushed Gold
   ========================================================================== */

/* HERO MELODY REQUEST CARD (Replaces old Chord Soundboard in Simple + Advanced) */
.fc-melody-deck {
  background: linear-gradient(155deg, #131B2E 0%, #0C1222 52%, #0A0D16 100%) !important;
  border: 1.5px solid rgba(244, 213, 127, 0.42) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.fc-melody-deck::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 168, 75, 0.2), #FCE39A 50%, rgba(212, 168, 75, 0.2));
  pointer-events: none;
}

.fc-melody-deck-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fc-melody-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F4D57F;
  margin-bottom: 4px;
}

.fc-melody-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.fc-melody-sub {
  margin: 6px 0 0;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #CBD5E1;
}

/* BIG GLOWING BRUSHED-GOLD MELODY REQUEST BUTTON */
.fc-melody-cta-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1.5px solid #FEF0B3;
  background: linear-gradient(135deg, #FCE39A 0%, #E7BE5E 48%, #C99630 100%);
  color: #091020 !important;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212, 168, 75, 0.38), 0 0 0 3px rgba(244, 213, 127, 0.14);
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none;
}

.fc-melody-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(244, 213, 127, 0.48), 0 0 0 4px rgba(244, 213, 127, 0.24);
}

.fc-melody-cta-btn:active {
  transform: translateY(0);
}

.fc-melody-cta-btn .fc-note-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(9, 16, 32, 0.16);
  font-size: 17px;
  line-height: 1;
}

.fc-melody-cta-subpill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(9, 16, 32, 0.15);
  color: #091020;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Compact Inline Button right below Teleprompter */
.fc-prompter-melody-bar {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(244, 213, 127, 0.12), rgba(14, 24, 48, 0.92));
  border: 1px solid rgba(244, 213, 127, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-prompter-melody-bar-copy {
  flex: 1 1 210px;
  min-width: 0;
}

.fc-prompter-melody-bar-copy strong {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #FCE39A;
}

.fc-prompter-melody-bar-copy span {
  display: block;
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.4;
}

.fc-melody-cta-inline {
  width: auto;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* PRO TIP STRIP */
.fc-phone-sing-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(244, 213, 127, 0.09);
  border: 1px solid rgba(244, 213, 127, 0.34);
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: #F8FAFC;
}

.fc-phone-sing-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(244, 213, 127, 0.18);
  color: #F4D57F;
  font-size: 15px;
  flex-shrink: 0;
}

/* 5 READY-TO-PLAY STUDIO MELODY STARTERS */
.fc-starters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}

.fc-starters-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #FCE39A;
}

.fc-starters-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #86EFAC;
}

.fc-starters-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fc-mel-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(10, 14, 26, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.fc-mel-row:hover {
  border-color: rgba(244, 213, 127, 0.45);
}

.fc-mel-row.is-playing {
  background: linear-gradient(135deg, rgba(244, 213, 127, 0.14), rgba(14, 25, 49, 0.96));
  border-color: #F4D57F;
  box-shadow: 0 8px 24px rgba(212, 168, 75, 0.22);
}

.fc-mel-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.fc-mel-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.fc-mel-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(244, 213, 127, 0.14);
  border: 1px solid rgba(244, 213, 127, 0.36);
  color: #F4D57F;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.fc-mel-row.is-playing .fc-mel-num {
  background: #F4D57F;
  color: #091020;
}

.fc-mel-info {
  min-width: 0;
  flex: 1;
}

.fc-mel-name {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-mel-meta {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-mel-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fc-mel-play-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 36px;
  background: linear-gradient(135deg, #FCE39A, #D4A84B);
  color: #091020;
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.14s ease, filter 0.14s ease;
  white-space: nowrap;
}

.fc-mel-play-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.fc-mel-row.is-playing .fc-mel-play-btn {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #FFFFFF;
}

.fc-mel-loop-btn {
  appearance: none;
  border: 1px solid rgba(244, 213, 127, 0.34);
  background: rgba(15, 25, 48, 0.85);
  color: #CBD5E1;
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 36px;
  font-family: 'Figtree', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.fc-mel-loop-btn.is-on {
  background: rgba(244, 213, 127, 0.20);
  border-color: #F4D57F;
  color: #FCE39A;
}

.fc-mel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-mel-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.fc-mel-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D4A84B, #FCE39A);
  transition: width 0.12s linear;
}

.fc-mel-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #94A3B8;
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Mobile Quick Studio dedicated 5-melody container */
.fc-mqs-melody-section {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 28, 56, 0.94), rgba(9, 15, 31, 0.98));
  border: 1px solid rgba(244, 213, 127, 0.36);
}

/* Generated Custom Melodies Shelf */
.fc-custom-melodies-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 213, 127, 0.22);
}

.fc-custom-melodies-wrap[hidden] {
  display: none !important;
}

/* ==========================================================================
   MELODY REQUEST PROMPT STUDIO MODAL (Dark Glass Obsidian & Brushed Gold)
   ========================================================================== */
.fc-mr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  background: rgba(4, 8, 18, 0.86);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.fc-mr-backdrop.is-open {
  display: flex;
}

.fc-mr-modal {
  width: min(860px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #121A2E 0%, #0B1120 55%, #090C14 100%);
  border: 1.5px solid rgba(244, 213, 127, 0.52);
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  color: #F8FAFC;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fc-mr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(244, 213, 127, 0.14), rgba(10, 17, 34, 0.96));
  border-bottom: 1px solid rgba(244, 213, 127, 0.26);
  flex-shrink: 0;
}

.fc-mr-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fc-mr-emblem {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FCE39A, #C99630);
  color: #091020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(212, 168, 75, 0.36);
}

.fc-mr-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.fc-mr-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #CBD5E1;
}

.fc-mr-close {
  appearance: none;
  border: 1px solid rgba(244, 213, 127, 0.4);
  background: rgba(15, 25, 48, 0.9);
  color: #FCE39A;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-mr-close:hover {
  background: rgba(244, 213, 127, 0.2);
}

.fc-mr-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fc-mr-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-mr-lbl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fc-mr-lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F4D57F;
}

.fc-mr-hint {
  font-size: 11.5px;
  color: #94A3B8;
}

.fc-mr-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(6, 10, 20, 0.92);
  border: 1.5px solid rgba(244, 213, 127, 0.30);
  color: #FFFFFF;
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 13px 15px;
  resize: vertical;
  min-height: 86px;
}

.fc-mr-textarea:focus {
  outline: none;
  border-color: #F4D57F;
  box-shadow: 0 0 0 3px rgba(244, 213, 127, 0.16);
}

.fc-mr-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fc-mr-preset-btn {
  appearance: none;
  border: 1px dashed rgba(244, 213, 127, 0.42);
  background: rgba(244, 213, 127, 0.07);
  color: #FCE39A;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.fc-mr-preset-btn:hover {
  background: rgba(244, 213, 127, 0.18);
  border-style: solid;
}

.fc-mr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-mr-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.85);
  color: #E2E8F0;
  border-radius: 999px;
  padding: 7px 13px;
  min-height: 36px;
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.fc-mr-chip:hover {
  border-color: rgba(244, 213, 127, 0.65);
  color: #FFFFFF;
}

.fc-mr-chip.is-on {
  background: linear-gradient(135deg, #FCE39A, #D4A84B);
  border-color: #FEF0B3;
  color: #091020;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(212, 168, 75, 0.30);
}

.fc-mr-key-chip {
  min-width: 44px;
  justify-content: center;
  text-align: center;
}

.fc-mr-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fc-mr-summary-bar {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(244, 213, 127, 0.08);
  border: 1px solid rgba(244, 213, 127, 0.28);
  font-size: 12.5px;
  color: #E2E8F0;
  line-height: 1.45;
}

.fc-mr-summary-bar strong {
  color: #FCE39A;
}

/* Progress Animation Stage (30-60s Live Generation) */
.fc-mr-progress-box {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 30, 58, 0.96), rgba(9, 14, 28, 0.98));
  border: 1.5px solid rgba(244, 213, 127, 0.5);
  text-align: center;
}

.fc-mr-progress-box[hidden] {
  display: none !important;
}

.fc-mr-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 32px;
  margin-bottom: 10px;
}

.fc-mr-wave span {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FEF0B3, #D4A84B);
  animation: fcMrWavePulse 1.05s ease-in-out infinite;
}

.fc-mr-wave span:nth-child(2) { animation-delay: 0.14s; }
.fc-mr-wave span:nth-child(3) { animation-delay: 0.28s; }
.fc-mr-wave span:nth-child(4) { animation-delay: 0.42s; }
.fc-mr-wave span:nth-child(5) { animation-delay: 0.56s; }
.fc-mr-wave span:nth-child(6) { animation-delay: 0.70s; }

@keyframes fcMrWavePulse {
  0%, 100% { height: 8px; opacity: 0.55; }
  50% { height: 30px; opacity: 1; }
}

.fc-mr-prog-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 12px 0 8px;
}

.fc-mr-prog-fill {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C99630, #FCE39A);
  transition: width 0.5s ease;
}

/* Result Card */
.fc-mr-result-box {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.14), rgba(11, 20, 40, 0.96));
  border: 1.5px solid rgba(134, 239, 172, 0.48);
}

.fc-mr-result-box[hidden] {
  display: none !important;
}

.fc-mr-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.fc-mr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  background: rgba(8, 13, 26, 0.96);
  border-top: 1px solid rgba(244, 213, 127, 0.22);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .fc-mr-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .fc-mr-modal {
    max-height: 94vh;
    border-radius: 18px;
  }
  .fc-mr-head, .fc-mr-body, .fc-mr-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .fc-mr-two-col {
    grid-template-columns: 1fr;
  }
  .fc-mel-row-top {
    flex-wrap: wrap;
  }
  .fc-mel-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .fc-mel-play-btn {
    flex: 1;
    justify-content: center;
  }
  .fc-prompter-melody-bar .fc-melody-cta-inline {
    width: 100%;
  }
}
