/* Sitewide announcement marquee — cinema ticker under nav */
.site-marquee {
  --mq-fg: #0b1c46;
  --mq-accent: #2563eb;
  --mq-sky: #38bdf8;
  --mq-live: #0ea5e9;
  --mq-border: rgba(37, 99, 235, 0.14);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--mq-fg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.98)),
    radial-gradient(120% 180% at 12% 50%, rgba(56, 189, 248, 0.18), transparent 42%),
    radial-gradient(90% 160% at 88% 40%, rgba(37, 99, 235, 0.12), transparent 48%),
    #f4f8ff;
  border-bottom: 1px solid var(--mq-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.site-marquee::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.55) 18%,
    rgba(37, 99, 235, 0.85) 50%,
    rgba(56, 189, 248, 0.55) 82%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: siteMarqueeAccent 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.site-marquee-glow {
  position: absolute;
  width: 42%;
  height: 220%;
  top: -60%;
  left: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.35), transparent 68%);
  filter: blur(18px);
  animation: siteMarqueeDrift 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.site-marquee-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1160px, 90%);
  margin: 0 auto;
  padding: 9px 0;
}

.site-marquee-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b1c46 0%, #173a8b 100%);
  color: #fff;
  box-shadow:
    0 8px 20px rgba(11, 28, 70, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-marquee-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.55);
  animation: siteMarqueePulse 1.8s ease-out infinite;
}

.site-marquee-badge-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.site-marquee-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 28px,
    #000 calc(100% - 28px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 28px,
    #000 calc(100% - 28px),
    transparent 100%
  );
}

.site-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: siteMarqueeMove 34s linear infinite;
  will-change: transform;
}

.site-marquee:hover .site-marquee-track {
  animation-play-state: paused;
}

.site-marquee-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 10px;
}

.site-marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--mq-fg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.site-marquee-item a {
  color: inherit;
  text-decoration: none;
}

.site-marquee-item:hover,
.site-marquee-item:has(a:hover) {
  color: var(--mq-accent);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.site-marquee-sep {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  rotate: 45deg;
  border-radius: 1.5px;
  background: linear-gradient(135deg, var(--mq-accent), var(--mq-sky));
  opacity: 0.7;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

@keyframes siteMarqueeMove {
  to {
    transform: translateX(-50%);
  }
}

@keyframes siteMarqueePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(125, 211, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0);
  }
}

@keyframes siteMarqueeDrift {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(55%);
    opacity: 1;
  }
}

@keyframes siteMarqueeAccent {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-marquee::before,
  .site-marquee-glow,
  .site-marquee-pulse {
    animation: none;
  }

  .site-marquee-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .site-marquee-track {
    animation: none;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 8px;
  }

  .site-marquee-group:last-child {
    display: none;
  }

  .site-marquee-item {
    white-space: normal;
  }

  .site-marquee-item:hover,
  .site-marquee-item:has(a:hover) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-marquee-inner {
    gap: 10px;
    padding: 8px 0;
  }

  .site-marquee-badge {
    padding: 5px 10px 5px 8px;
  }

  .site-marquee-badge-label {
    font-size: 10px;
  }

  .site-marquee-item {
    font-size: 12px;
    padding: 6px 12px;
  }

  .site-marquee-track {
    animation-duration: 28s;
  }

  .site-marquee-viewport {
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 16px,
      #000 calc(100% - 16px),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 16px,
      #000 calc(100% - 16px),
      transparent 100%
    );
  }
}

@supports not (selector(:has(*))) {
  .site-marquee-item:hover {
    color: var(--mq-accent);
  }
}
