/* 小视频模板 — ABABSEO + 移动端自适应 + 全局补充 */

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

#root {
  overflow-x: hidden;
}

@media (max-width: 639px) {
  .szxj-hero-title {
    font-size: 1.625rem !important;
    line-height: 1.25 !important;
  }

  .szxj-hero-actions a {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.875rem;
  }
}

.szxj-filter-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.szxj-filter-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .szxj-filter-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 479px) {
  .szxj-video-actions {
    width: 100%;
  }

  .szxj-video-actions button {
    flex: 1;
    justify-content: center;
  }

  footer form.flex {
    flex-direction: column;
  }

  footer form.flex button {
    width: 100%;
  }
}

nav.fixed {
  padding-top: env(safe-area-inset-top, 0);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
  .szxj-filter-scroll button {
    flex-shrink: 0;
    min-height: 40px;
  }
}

/* ABABSEO 页脚标识 */

@keyframes ababseo-fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-14deg);
  }
  30% {
    transform: translate(10px, -7px) rotate(-8deg);
  }
  60% {
    transform: translate(20px, -4px) rotate(-4deg);
  }
  80% {
    transform: translate(12px, -8px) rotate(-10deg);
  }
}

@keyframes ababseo-trail {
  0% {
    opacity: 0;
    transform: translateX(12px) scaleX(0.25);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-52px) scaleX(1.35);
  }
}

@keyframes ababseo-shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 200% center;
  }
}

@keyframes ababseo-sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  40%,
  60% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.ababseo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
  overflow: visible;
  user-select: none;
  pointer-events: none;
}

.ababseo-mark__scene {
  position: relative;
  width: 3.75rem;
  height: 2rem;
  flex-shrink: 0;
}

.ababseo-mark__plane {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -11px;
  color: #d4a574;
  animation: ababseo-fly 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.55)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.ababseo-mark__plane svg {
  display: block;
}

.ababseo-mark__trail {
  position: absolute;
  left: -2px;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: -1px;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}

.ababseo-mark__trail i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2) 15%, rgba(255, 255, 255, 0.85) 50%, #d4a574);
  box-shadow: 0 0 6px rgba(212, 165, 116, 0.45);
  animation: ababseo-trail 1.5s ease-out infinite;
}

.ababseo-mark__trail i:nth-child(1) {
  width: 30px;
  animation-delay: 0s;
}

.ababseo-mark__trail i:nth-child(2) {
  width: 22px;
  animation-delay: 0.1s;
  opacity: 0.88;
}

.ababseo-mark__trail i:nth-child(3) {
  width: 16px;
  animation-delay: 0.2s;
  opacity: 0.72;
}

.ababseo-mark__trail i:nth-child(4) {
  width: 11px;
  height: 1.5px;
  animation-delay: 0.3s;
  opacity: 0.55;
}

.ababseo-mark__trail i:nth-child(5) {
  width: 7px;
  height: 1px;
  animation-delay: 0.4s;
  opacity: 0.38;
}

.ababseo-mark__spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d4a574;
  box-shadow: 0 0 6px #d4a574;
  animation: ababseo-sparkle 2.4s ease-in-out infinite;
}

.ababseo-mark__spark--1 {
  left: 8px;
  top: 2px;
  animation-delay: 0.3s;
}

.ababseo-mark__spark--2 {
  left: 18px;
  bottom: 4px;
  animation-delay: 1.1s;
}

.ababseo-mark__word {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(100deg, #666 0%, #d4a574 22%, #fff 48%, #c99d5e 72%, #666 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ababseo-shimmer 5s ease-in-out infinite;
}

@media (max-width: 400px) {
  .ababseo-mark {
    gap: 10px;
  }

  .ababseo-mark__scene {
    width: 3.25rem;
  }

  .ababseo-mark__word {
    font-size: 0.8rem;
    letter-spacing: 0.26em;
  }
}
