/* my365-24.com 补丁 */

a,
button {
  cursor: pointer;
}

header svg {
  flex-shrink: 0;
}

header .relative > svg {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
}

.card-hover img,
.aspect-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video {
  max-width: 100%;
}

.play-page__player video {
  display: block;
  width: 100%;
  margin: 0 auto;
}

/* ── ABABSEO 小飞机装饰（无胶囊、无链接、无游戏元素） ── */

.ababseo-fly {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ababseo-fly__orbit {
  position: relative;
  width: 52px;
  height: 44px;
  animation: ababseo-orbit 4.8s ease-in-out infinite;
}

.ababseo-fly__icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: 8px auto 0;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(251, 146, 60, 0.45)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.25));
  animation: ababseo-tilt 4.8s ease-in-out infinite;
}

.ababseo-fly__wake {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.75) 0%, rgba(251, 146, 60, 0.35) 45%, transparent 72%);
  opacity: 0;
  animation: ababseo-wake 4.8s ease-in-out infinite;
}

.ababseo-fly__wake--1 {
  width: 5px;
  height: 5px;
  left: 8px;
  top: 24px;
  animation-delay: 0.15s;
}

.ababseo-fly__wake--2 {
  width: 4px;
  height: 4px;
  left: 4px;
  top: 28px;
  animation-delay: 0.35s;
}

.ababseo-fly__wake--3 {
  width: 3px;
  height: 3px;
  left: 1px;
  top: 31px;
  animation-delay: 0.55s;
}

.ababseo-fly__brand {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  text-transform: uppercase;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Noto Sans SC', sans-serif;
  background: linear-gradient(100deg, #fde68a 0%, #fb923c 24%, #f472b6 48%, #a78bfa 72%, #fde68a 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(234, 88, 12, 0.35));
  animation: ababseo-brand-shine 5s ease-in-out infinite;
}

@keyframes ababseo-orbit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -14px); }
  50% { transform: translate(18px, -6px); }
  75% { transform: translate(8px, -18px); }
}

@keyframes ababseo-tilt {
  0%, 100% { transform: rotate(-12deg); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-4deg); }
  75% { transform: rotate(14deg); }
}

@keyframes ababseo-wake {
  0%, 18%, 100% { opacity: 0; transform: scale(0.4); }
  28%, 62% { opacity: 0.7; transform: scale(1); }
  72% { opacity: 0; transform: scale(0.6) translate(-4px, 2px); }
}

@keyframes ababseo-brand-shine {
  0%, 100% { background-position: 0% 50%; opacity: 0.92; }
  50% { background-position: 100% 50%; opacity: 1; }
}

@media (max-width: 640px) {
  .ababseo-fly__orbit {
    width: 46px;
    height: 40px;
  }

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

  .ababseo-fly__brand {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    padding-left: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-fly__orbit,
  .ababseo-fly__icon,
  .ababseo-fly__wake,
  .ababseo-fly__brand {
    animation: none;
  }
}

@media (max-width: 768px) {
  .safe-top {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .mobile-nav-panel {
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (hover: none) {
  .card-play-overlay {
    background-color: rgba(0, 0, 0, 0.15) !important;
  }

  .card-play-icon {
    opacity: 0.85 !important;
  }
}

@media (max-width: 480px) {
  .tuy-card__meta,
  .card-hover .absolute.bottom-0 .flex {
    gap: 0.35rem;
    font-size: 0.7rem;
  }

  .ababseo-fly {
    transform: scale(0.9);
    transform-origin: left bottom;
  }
}

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