.hero-price-amount {
  color: #f8fafc;
  font-weight: 900;
}

.hero-price-note {
  color: #dbeafe;
  font-size: 0.78em;
  font-weight: 700;
}

.hero-love-condition {
  flex-basis: 100%;
  color: #fed7aa;
  font-size: 0.9em;
  font-weight: 900;
}

.hero-payment-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px 10px;
  max-width: 620px;
  margin: 18px auto 0;
  color: #fed7aa;
  line-height: 1.55;
}

.hero-payment-message strong {
  flex-basis: 100%;
  color: #e2e8f0;
  font-size: 0.98em;
  font-weight: 800;
}

.hero-payment-message .hero-price-amount {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #c2410c, #f97316);
  box-shadow:
    0 9px 22px rgba(194, 65, 12, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 1.02em;
  font-weight: 950;
}

.hero-payment-message .hero-price-note {
  color: #cbd5e1;
  font-size: 0.76em;
  font-weight: 650;
}

/* Legacy Production renders the updated payment copy as a pseudo-element.
   This keeps React's child-node tree untouched during Studio Pro transitions. */
.hero-explanation[data-runtime-payment-copy]::after {
  content: attr(data-runtime-payment-copy);
  display: block;
  width: fit-content;
  max-width: min(100%, 620px);
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(251, 146, 60, 0.5);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #9a3412, #f97316);
  box-shadow:
    0 12px 28px rgba(194, 65, 12, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.92em;
  font-weight: 850;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
}

#music-library-content {
  display: flex;
  flex-direction: column;
}

#music-library-content .music-category-filter {
  order: 1;
}

#music-library-content .music-grid {
  order: 2;
}

#music-library-content .custom-music-priority-card {
  order: 3;
  margin: 16px 0 0;
}

.script-writing-help {
  margin: 12px 2px 0;
  color: var(--studio-muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
  text-align: right;
}

.script-writing-help strong {
  color: var(--studio-text);
  font-weight: 850;
}

.script-writing-help a {
  color: #60a5fa;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.script-writing-help a:hover {
  color: #93c5fd;
}

.script-writing-help a:focus-visible {
  border-radius: 5px;
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.script-writing-help span {
  color: #6ee7b7;
  font-weight: 850;
}

.premium-studio-theme[data-theme="day"] .hero-price-amount {
  color: #ffffff;
}

.premium-studio-theme[data-theme="day"] .hero-price-note {
  color: #dbeafe;
}

.premium-studio-theme[data-theme="day"] .hero-payment-message {
  color: #526174;
}

.premium-studio-theme[data-theme="day"] .hero-payment-message strong {
  color: #ffffff;
}

.premium-studio-theme[data-theme="day"] .hero-payment-message .hero-price-amount {
  color: #ffffff;
}

.premium-studio-theme[data-theme="day"] .hero-payment-message .hero-price-note {
  color: #ffffff;
}

.premium-studio-theme[data-theme="day"] .hero-explanation[data-runtime-payment-copy]::after {
  color: #ffffff;
}

.premium-studio-theme[data-theme="day"] .script-writing-help a {
  color: #1d4ed8;
}

.premium-studio-theme[data-theme="day"] .script-writing-help a:hover {
  color: #172554;
}

.premium-studio-theme[data-theme="day"] .script-writing-help span {
  color: #047857;
}

@media (max-width: 640px) {
  .hero-price-note {
    flex-basis: 100%;
  }

  .hero-payment-message {
    gap: 8px;
  }

  .hero-payment-message .hero-price-amount {
    min-height: 38px;
    padding-inline: 14px;
  }

  .hero-explanation[data-runtime-payment-copy]::after {
    width: 100%;
    padding-inline: 13px;
    border-radius: 18px;
    font-size: 0.86em;
    overflow-wrap: anywhere;
  }

  .script-writing-help {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .script-writing-help a {
    scroll-behavior: auto;
  }
}
