/* ===== Premium UI — cinematic controls ===== */

.ml-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.95rem 1.85rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  background: rgba(12, 12, 24, 0.55);
  backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  overflow: hidden;
}

.ml-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168,85,247,0.65), rgba(34,211,238,0.35), rgba(168,85,247,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ml-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.22);
}

.ml-btn-primary {
  background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(34,211,238,0.12));
}

.ml-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.ml-btn-primary:hover::after { transform: translateX(120%); }

.ml-btn-ghost {
  background: rgba(255,255,255,0.03);
}

.ml-btn-ghost::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(168,85,247,0.25));
}

.ml-btn-sm {
  min-height: 40px;
  padding: 0.65rem 1.15rem;
  font-size: 0.66rem;
  border-radius: 8px;
}

.ml-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0.75rem;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  transition: color 0.3s;
}

.ml-scroll-cue:hover { color: var(--cyan); }

.ml-scroll-cue .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--purple), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.ml-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: #fca5a5;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.ml-live-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 10px #f87171;
  animation: liveDot 1.4s ease infinite;
}

@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Scroll stage */
.scroll-stage {
  scroll-snap-type: y proximity;
}

.snap-panel {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

html.smooth-scroll { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  .ml-scroll-cue .line { animation: none; }
  html.smooth-scroll { scroll-behavior: auto; }
}
