/* 1101111.com 模板补丁 — 移动端、静态页、ABABSEO */

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

body {
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 播放器 */
.video-frame--nj-play .video-el,
.video-frame--nj-play video {
  display: block;
  width: 100%;
  max-height: min(70vh, 56vw);
  margin: 0 auto;
  background: #000;
}

/* 页脚版权区 */
.yzz-site-footer__bar {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 静态页 / 404 / 错误页 */
.static-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: var(--fs-sm, 0.875rem);
}

.static-prose {
  line-height: var(--leading-relaxed, 1.7);
  color: var(--muted, #64748b);
}

.static-prose h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--text, #0f172a);
}

.static-prose h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text, #0f172a);
}

.static-prose p {
  margin: 0 0 1rem;
}

.static-faq-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.static-faq-item:last-of-type {
  border-bottom: none;
}

.static-meta {
  margin-top: 1rem !important;
  font-size: var(--fs-sm, 0.875rem);
  opacity: 0.85;
}

.not-found-wrap,
.error-boundary-wrap {
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.not-found-code {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold, #0d9488);
  opacity: 0.85;
}

.not-found-wrap h1,
.error-boundary-wrap h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 4vw, 1.375rem);
}

.not-found-desc,
.error-boundary-desc {
  margin: 0 0 1.5rem;
  color: var(--muted, #64748b);
  font-size: var(--fs-sm, 0.875rem);
}

.error-boundary-pre {
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.5;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 触控设备：禁用 hover 缩放 */
@media (hover: none) {
  .yzz-film-card.card-hover:hover,
  .tuy-card:hover,
  .yzz-cat-tile:hover {
    transform: none !important;
  }

  .yzz-film-card__media img,
  .tuy-card__media img {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .yzz-site-header__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .yzz-site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .yzz-site-header__search input {
    min-width: 0;
  }

  .yzz-film-grid {
    gap: 0.75rem;
  }

  .yzz-category-page__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .yzz-sort-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .yzz-sort-tabs::-webkit-scrollbar {
    display: none;
  }

  .result-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .result-row__play {
    width: 100%;
    text-align: center;
  }

  .nj-play-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .detail-hero__inner {
    flex-direction: column;
  }

  .detail-info-grid--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .yzz-hero__chips {
    justify-content: center;
  }

  .yzz-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yzz-site-footer__grid {
    gap: 1.5rem;
  }

  .static-prose,
  .not-found-wrap,
  .error-boundary-wrap {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ── ABABSEO · 版权区装饰（TG + 文字飞动，无胶囊、无链接） ── */

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

.ababseo-inline__fly {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  text-decoration: none;
  animation: ababseo-inline-fly 4.2s ease-in-out infinite;
  will-change: transform;
}

.ababseo-inline__tg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.45));
}

.ababseo-inline__brand {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  padding: 0;
  margin: 0;
  line-height: 1;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: transparent;
  background-image: linear-gradient(135deg, #fbbf24 0%, #22d3ee 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.25));
}

@keyframes ababseo-inline-fly {
  0%, 100% {
    transform: translate(0, 6px) rotate(-3deg);
  }
  20% {
    transform: translate(10px, -14px) rotate(4deg);
  }
  45% {
    transform: translate(-8px, -22px) rotate(-2deg);
  }
  70% {
    transform: translate(12px, -10px) rotate(3deg);
  }
  90% {
    transform: translate(-4px, -4px) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-inline__fly {
    animation: none;
    transform: translateY(-6px);
  }
}

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

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

  .ababseo-inline__brand {
    letter-spacing: 0.18em;
  }
}

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