/* Live reel and niche ticker ported from version one. */
/* ── SHOWCASE (tilted reel) ── */
.reel {
  background: linear-gradient(180deg, #0a0416 0%, #0d0520 55%, #0a0416 100%);
  padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
}
.reel-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(44px, 6vw, 70px);
  padding: 0 clamp(20px, 5vw, 60px);
}
.reel-head .h2 {
  margin: 18px 0 16px;
}
.reel-stage {
  perspective: 1400px;
  padding: clamp(10px, 2vw, 30px) 0 clamp(30px, 4vw, 50px);
}
.reel-plane {
  transform: rotateX(9deg) rotateZ(-2deg);
  transform-style: preserve-3d;
}
.reel-row {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  width: max-content;
  padding: 0 4vw;
  will-change: transform;
}
.reel-row + .reel-row {
  margin-top: clamp(14px, 1.8vw, 22px);
}
.reel-row-label {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.reel-row-label:not(:first-child) {
  margin-top: 34px;
}
.reel-card {
  position: relative;
  flex: 0 0 clamp(180px, 17vw, 250px);
  aspect-ratio: 3 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #140a2c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s;
}
.reel-card:hover {
  transform: scale(1.045) translateZ(30px);
  box-shadow:
    0 30px 80px rgba(37, 99, 255, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.reel-card video,
.reel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* indigo grade so mixed stock reads as one reel */
.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 7, 46, 0.16),
    rgba(10, 4, 22, 0.05) 42%,
    rgba(10, 4, 22, 0.3)
  );
  pointer-events: none;
}
.reel-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(10, 4, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.9);
}
.reel-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex-shrink: 0;
}
.reel-note {
  text-align: center;
  font-size: 12.5px;
  color: rgba(244, 244, 246, 0.62);
  padding: 0 clamp(20px, 5vw, 60px);
}
@media (prefers-reduced-motion: reduce) {
  .reel-plane {
    transform: none;
  }
  .reel-row {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── NICHE TICKER ── */
.ticker {
  background: #0a0416;
  padding: clamp(40px, 6vw, 70px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ticker-kicker {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.6);
  margin-bottom: 26px;
}
.ticker-track {
  display: flex;
  align-items: baseline;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  will-change: transform;
}
.ticker-track span {
  font-family: var(--font-body);
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(244, 244, 246, 0.42);
  white-space: nowrap;
  transition: color 0.3s;
}
.ticker-track span.lit {
  color: #fff;
}
.ticker-track i {
  font-style: normal;
  font-size: clamp(14px, 2vw, 22px);
  color: var(--blue);
  align-self: center;
}
/* ruler ticks + center notch (Nite Riot scrubber) */
.ticker-rule {
  height: 12px;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0 1px,
      transparent 1px 64px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0 1px,
      transparent 1px 8px
    );
  position: relative;
}
.ticker-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(37, 99, 255, 0.8);
}
.ticker-rule.is-top {
  margin-bottom: 26px;
}
.ticker-rule.is-bot {
  margin-top: 26px;
}

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(6, 2, 14, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, 4vh) 16px;
}
.lb-frame {
  position: relative;
  height: min(88vh, 780px);
  aspect-ratio: 3 / 5;
  max-width: 94vw;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0416 center/cover no-repeat;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lb-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0416;
}
.lb-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
}
.lb-btn {
  position: fixed;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(20, 10, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    transform 0.2s;
}
.lb-btn:hover {
  background: rgba(37, 99, 255, 0.55);
  transform: scale(1.06);
}
.lb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-close {
  top: max(16px, 3vh);
  right: max(16px, 3vw);
}
.lb-prev {
  left: max(12px, 2vw);
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: max(12px, 2vw);
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev:hover,
.lb-next:hover {
  transform: translateY(-50%) scale(1.06);
}
@media (max-width: 560px) {
  .lb-frame {
    height: auto;
    width: min(92vw, 440px);
  }
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .lb-btn {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox::backdrop {
    backdrop-filter: none;
  }
}

.reel .pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.85);
  white-space: nowrap;
  max-width: 100%;
}
.reel .pill-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(37, 99, 255, 0.9);
  flex-shrink: 0;
}

.reel,
.ticker {
  --blue-bright: #2563ff;
  --border-dark: rgba(255, 255, 255, 0.12);
  --font-body: Inter, sans-serif;
  font-family: Inter, sans-serif;
  color: #f4f4f6;
  font-size: 16px;
}
.reel {
  padding-top: 10px;
  position: relative;
}
.reel-controls {
  display: flex;
  justify-content: flex-end;
  padding: 10px clamp(20px, 4vw, 60px);
  margin-bottom: 6px;
}
.reel .preview-toggle {
  color: #dce4ff;
  border-color: #ffffff40;
  background: #ffffff0a;
}
.reel-card {
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  padding: 0;
  color: #fff;
  appearance: none;
}
.reel-card video {
  opacity: 0;
}
.reel-card.is-playing video {
  opacity: 1;
}
.reel .pill-label {
  line-height: 1.2;
}
.reel-row {
  contain: layout;
}
.lightbox {
  margin: auto;
}
.lightbox .reel-tag {
  font:
    700 10.5px Inter,
    sans-serif;
}
body.background-dialog-open {
  overflow: hidden;
}
@media (hover: none) {
  .reel-card:hover {
    transform: none;
    box-shadow: 0 24px 60px #0008;
  }
  .lb-btn:hover {
    transform: none;
  }
  .lb-prev:hover,
  .lb-next:hover {
    transform: translateY(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reel-card,
  .lb-btn {
    transition: none;
  }
  .reel-card:hover {
    transform: none;
  }
}
.reel-tag {
  white-space: nowrap;
  font-size: clamp(8.5px, 0.75vw, 10.5px);
  letter-spacing: 0.06em;
  max-width: calc(100% - 20px);
}
