/* Riddim Identify — audio recognition panel, ported from the live product's
   identify.css and retuned to the redesign's ink, paper and gold tokens. */

.page-head--center { text-align: center; }
.page-head--center .page-head__lede { margin-left: auto; margin-right: auto; }

.identify-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 30px 34px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 176, 74, 0.16), transparent 40%),
    radial-gradient(circle at 92% 92%, rgba(125, 92, 255, 0.12), transparent 36%),
    linear-gradient(145deg, var(--ink-850), var(--ink-900));
  box-shadow: var(--shadow-2);
  text-align: center;
}
.identify-panel::before,
.identify-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.identify-panel::before { width: 280px; height: 280px; top: -150px; left: -120px; background: rgba(226, 176, 74, 0.12); animation: identifyAurora 11s ease-in-out infinite alternate; }
.identify-panel::after { width: 220px; height: 220px; right: -110px; bottom: -130px; background: rgba(125, 92, 255, 0.12); animation: identifyAurora 15s ease-in-out infinite alternate-reverse; }
.identify-panel--loading { min-height: 260px; display: grid; place-content: center; gap: 8px; }
.identify-panel--loading > p:last-child { color: var(--muted); }

.identify-panel > .eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-full);
  color: var(--gold);
  background: linear-gradient(90deg, rgba(226, 176, 74, 0.16), rgba(125, 92, 255, 0.13));
  box-shadow: 0 8px 26px rgba(125, 92, 255, 0.08);
}
.identify-panel > h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--gold-2);
  text-shadow: 0 0 28px rgba(226, 176, 74, 0.16);
}
.identify-panel > p:not(.eyebrow):not(.identify-message) {
  max-width: 610px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(125, 92, 255, 0.24);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(125, 92, 255, 0.14), rgba(226, 176, 74, 0.08));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 14px 36px rgba(8, 8, 10, 0.18);
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.6;
}

.identify-visual {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.identify-disc {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, var(--gold-2), var(--gold) 35%, #8e5d21 62%, #7d5cff);
  box-shadow: 0 0 0 8px rgba(226, 176, 74, 0.08), 0 0 55px rgba(226, 176, 74, 0.22), inset 0 0 24px rgba(8, 8, 10, 0.55);
  transition: transform var(--dur-3) var(--ease);
  animation: identifySpin 26s linear infinite;
}
.identify-disc::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(241, 201, 114, 0.34);
}
.identify-disc-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-950);
  color: var(--gold);
  font-size: 15px;
  box-shadow: 0 0 0 5px rgba(125, 92, 255, 0.12);
}
.identify-disc.is-active { animation: identifySpin 2.8s linear infinite, identifyGlow 1.1s ease-in-out infinite; }
.identify-orbit {
  position: absolute;
  border: 1px solid rgba(226, 176, 74, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.identify-orbit-one { width: 150px; height: 70px; animation: identifyOrbit 5s ease-in-out infinite; }
.identify-orbit-two { width: 176px; height: 94px; transform: rotate(38deg); border-color: rgba(125, 92, 255, 0.25); animation: identifyOrbit 7s ease-in-out infinite reverse; }
.identify-spark {
  position: absolute;
  color: var(--gold);
  font-weight: 800;
  font-size: 22px;
  text-shadow: 0 0 18px rgba(226, 176, 74, 0.6);
  animation: identifySpark 4.6s ease-in-out infinite;
}
.identify-spark-one { top: 22px; right: 20px; }
.identify-spark-two { bottom: 27px; left: 18px; font-size: 17px; animation-delay: -1.2s; }
.identify-spark-three { top: 68px; left: 8px; font-size: 12px; color: #a993ff; animation-delay: -2.4s; }
.identify-spark-four { bottom: 14px; right: 26px; font-size: 15px; color: #c9a2ff; animation-delay: -3.1s; }
.identify-spark-five { top: 30px; left: 30px; font-size: 13px; color: rgba(241, 201, 114, 0.85); animation-delay: -0.6s; }

.identify-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 260px;
  height: 34px;
  margin: 16px auto 2px;
}
.identify-eq span {
  flex: 1 1 0;
  max-width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(241, 201, 114, 0.95), rgba(125, 92, 255, 0.7));
  transform-origin: 50% 100%;
  animation: identifyEq 1.5s ease-in-out infinite;
}
@keyframes identifyEq {
  0%, 100% { transform: scaleY(0.26); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes identifySpark {
  0%, 100% { transform: translate3d(0, 2px, 0); opacity: 0.5; }
  50% { transform: translate3d(0, -8px, 0); opacity: 1; }
}

.identify-timer {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-full);
  background: rgba(226, 176, 74, 0.08);
  color: var(--gold);
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(226, 176, 74, 0.08);
}
.identify-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.identify-actions .btn { min-width: 190px; border-radius: var(--r-full); box-shadow: 0 10px 30px rgba(226, 176, 74, 0.16); }
.identify-actions .btn[disabled] { opacity: 0.6; cursor: progress; }

.identify-message {
  max-width: 610px;
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(125, 92, 255, 0.24);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(125, 92, 255, 0.14), rgba(226, 176, 74, 0.08));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 14px 36px rgba(8, 8, 10, 0.18);
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 1.6;
}
.identify-message[data-state="error"] { border-color: rgba(224, 133, 123, 0.4); background: rgba(224, 133, 123, 0.08); color: #f0b6ae; }
.identify-message[data-state="match"] { border-color: rgba(124, 197, 155, 0.4); background: rgba(124, 197, 155, 0.08); color: #b9e2c8; }
.identify-signin { margin-top: 12px; }

.identify-result {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 620px;
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid rgba(226, 176, 74, 0.24);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(226, 176, 74, 0.13), rgba(125, 92, 255, 0.11) 58%, var(--ink-850));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  text-align: left;
}
.identify-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(226, 176, 74, 0.08), rgba(125, 92, 255, 0.05) 52%, transparent);
  pointer-events: none;
}
.identify-result img {
  position: relative;
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: var(--r-sm);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.identify-result__body { position: relative; min-width: 0; }
.identify-result .eyebrow { color: #b8a6ff; }
.identify-result h3 { margin: 4px 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--gold-2); }
.identify-result strong, .identify-result span, .identify-result small { display: block; margin-top: 4px; }
.identify-result strong { color: #d7c7ff; font-size: 14px; }
.identify-result span { color: var(--muted); font-size: 13px; }
.identify-result small { color: var(--muted-2); font-size: 11.5px; }
.identify-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.identify-links a {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: rgba(226, 176, 74, 0.05);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.identify-links a:hover { border-color: rgba(226, 176, 74, 0.5); background: rgba(226, 176, 74, 0.1); transform: translateY(-1px); }

.identify-privacy {
  display: block;
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.identify-faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 26px auto 0;
}

@keyframes identifySpin { to { transform: rotate(360deg); } }
@keyframes identifyGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(226, 176, 74, 0.08), 0 0 42px rgba(226, 176, 74, 0.16), inset 0 0 24px rgba(8, 8, 10, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(226, 176, 74, 0.1), 0 0 70px rgba(226, 176, 74, 0.3), inset 0 0 24px rgba(8, 8, 10, 0.55); }
}
@keyframes identifyOrbit { 50% { transform: rotate(8deg) scale(1.04); } }
@keyframes identifyAurora {
  from { transform: translate3d(-6px, 4px, 0) scale(1); }
  to { transform: translate3d(14px, -10px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .identify-disc,
  .identify-disc.is-active,
  .identify-eq span,
  .identify-spark,
  .identify-orbit,
  .identify-panel::before,
  .identify-panel::after { animation: none; }
}
@media (max-width: 900px) {
  .identify-faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .identify-panel { padding: 34px 18px 28px; border-radius: var(--r-lg); }
  .identify-visual { width: 160px; height: 160px; }
  .identify-disc { width: 90px; height: 90px; }
  .identify-orbit-one { width: 130px; height: 62px; }
  .identify-orbit-two { width: 148px; height: 78px; }
  .identify-actions { flex-direction: column; align-items: stretch; }
  .identify-actions .btn { min-width: 0; }
  .identify-result { align-items: flex-start; flex-direction: column; }
  .identify-result img { width: 100%; height: auto; max-height: 220px; }
}
