.lyrics-analyzer-hero {
  padding-bottom: 4rem;
}

.analyzer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.analyzer-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.analyzer-card-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.analyzer-card-header h2 {
  font-size: 1.35rem;
  margin: 0.2rem 0 0;
}

.analyzer-eyebrow {
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-pill {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

.analyzer-textarea {
  min-height: 360px;
  resize: vertical;
}

.analyzer-input-meta {
  color: #64748b;
  display: flex;
  font-size: 0.8rem;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.55rem;
}

.analyzer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.analyzer-actions .generate-btn {
  flex: 1 1 220px;
}

.analyzer-status {
  border-radius: 12px;
  display: none;
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
}

.analyzer-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
  display: block;
}

.analyzer-status.is-success {
  background: #ecfdf5;
  color: #047857;
  display: block;
}

.analyzer-privacy-note,
.analysis-help {
  color: #64748b;
  font-size: 0.88rem;
  margin: 1rem 0 0;
}

.analyzer-empty,
.analyzer-loading {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  text-align: center;
}

.analyzer-empty i {
  color: #8b5cf6;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.analyzer-empty h3 {
  color: #1e293b;
}

.analyzer-spinner {
  animation: analyzer-spin 0.8s linear infinite;
  border: 4px solid #ede9fe;
  border-radius: 50%;
  border-top-color: #7c3aed;
  height: 42px;
  margin-bottom: 1rem;
  width: 42px;
}

@keyframes analyzer-spin {
  to { transform: rotate(360deg); }
}

.metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem;
}

.metric-card strong {
  color: #4c1d95;
  display: block;
  font-size: 1.35rem;
}

.metric-card span {
  color: #64748b;
  font-size: 0.78rem;
}

.analysis-panel {
  border-top: 1px solid #e2e8f0;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.analysis-panel h3 {
  font-size: 1.05rem;
}

.scheme-output {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  max-height: 220px;
  overflow: auto;
}

.scheme-line {
  align-items: center;
  background: #fafafa;
  border-radius: 10px;
  display: grid;
  font-size: 0.86rem;
  gap: 0.7rem;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  padding: 0.55rem 0.7rem;
}

.scheme-label {
  align-items: center;
  background: #ede9fe;
  border-radius: 8px;
  color: #5b21b6;
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.scheme-end-word {
  color: #64748b;
  font-size: 0.78rem;
}

.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.term-chip {
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  border-radius: 999px;
  color: #6b21a8;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
}

.insight-list {
  color: #334155;
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.insight-list li + li {
  margin-top: 0.55rem;
}

.analyzer-feature-icon {
  color: #7c3aed;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.analyzer-limitations {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analyzer-limitations article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem;
}

.analyzer-limitations h3 {
  font-size: 1rem;
}

@media (max-width: 991px) {
  .analyzer-grid {
    grid-template-columns: 1fr;
  }

  .analyzer-textarea {
    min-height: 280px;
  }
}

@media (max-width: 575px) {
  .analyzer-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .analyzer-card-header,
  .analyzer-input-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-pill {
    white-space: normal;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analyzer-limitations {
    grid-template-columns: 1fr;
  }

  .scheme-line {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .scheme-end-word {
    grid-column: 2;
  }
}
