/* 186701.com 模板补丁 — 移动端与 ABABSEO */

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

body {
  overflow-x: hidden;
}

/* 区块标题 — 图标与文字间距（与 186701 一致） */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-heading__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.section-heading__title svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #c084fc;
}

/* 播放器 */
.video-frame--play .video-el,
.video-frame--play video {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin: 0 auto;
}

/* 分类筛选 — 手机端横向滚动 */
.filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-row .filter-chip {
  flex: 0 0 auto;
}

/* 卡片 — 触控设备禁用 hover 缩放 */
@media (hover: none) {
  .group:hover {
    transform: none !important;
  }

  .group .group-hover\:scale-110 {
    transform: none !important;
  }
}

/* 页脚版权区换行 */
@media (max-width: 480px) {
  footer .border-t p {
    font-size: 0.8125rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }
}

/* ── ABABSEO · 版权区装饰（TG + 品牌，无链接、无胶囊） ── */

.ababseo-inline {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.ababseo-inline__fly {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  animation: ababseo-inline-fly 5s ease-in-out infinite;
}

.ababseo-inline__trail {
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  width: 36px;
  height: 1px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2) 40%, rgba(56, 189, 248, 0.55) 100%);
  transform: rotate(-12deg);
  transform-origin: right center;
  opacity: 0.7;
  animation: ababseo-inline-trail 5s ease-in-out infinite;
}

.ababseo-inline__tg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.4));
  animation: ababseo-inline-tg 5s ease-in-out infinite;
}

.ababseo-inline__brand {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.125rem, 3.2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  line-height: 1;
  background: linear-gradient(135deg, #c4b5fd 0%, #e879f9 45%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.25));
}

@keyframes ababseo-inline-fly {
  0%, 100% { transform: translate(0, 4px) rotate(-2deg); }
  25% { transform: translate(6px, -10px) rotate(3deg); }
  50% { transform: translate(-4px, -16px) rotate(-1deg); }
  75% { transform: translate(8px, -8px) rotate(2deg); }
}

@keyframes ababseo-inline-tg {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.06); }
}

@keyframes ababseo-inline-trail {
  0%, 100% { opacity: 0.35; width: 20px; }
  50% { opacity: 0.85; width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-inline__fly,
  .ababseo-inline__tg,
  .ababseo-inline__trail {
    animation: none;
  }

  .ababseo-inline__fly {
    transform: translateY(-4px);
  }
}

@media (max-width: 480px) {
  .ababseo-inline {
    margin-top: 0.75rem;
  }

  .ababseo-inline__tg {
    width: 24px;
    height: 24px;
  }

  .ababseo-inline__brand {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }
}

@media print {
  .ababseo-inline {
    display: none !important;
  }
}
