/* qiisu.com / 永免剧场 SPA 覆盖层 */

body.nav-open {
  overflow: hidden;
}

/* 性能：避免 fixed 背景导致滚动卡顿 */
body.body-tpl-portal.body-tpl-yygk.theme-aurora-indigo {
  background-attachment: scroll !important;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (max-width: 767px) {
  html {
    scroll-behavior: auto;
  }

  .detail-hero__bg {
    filter: blur(10px) brightness(0.45);
  }

  body.body-tpl-portal.body-tpl-yygk .yygk-footer__angle {
    display: none;
  }

  body.body-tpl-portal.body-tpl-yygk.theme-aurora-indigo .yygk-zone--main {
    background-image: none;
  }

  body.body-tpl-portal.body-tpl-yygk.theme-aurora-indigo .yygk-hero__pinstripe,
  body.body-tpl-portal.body-tpl-yygk.theme-aurora-indigo .yygk-hero__glow {
    display: none;
  }
}

@media (hover: none) {
  .ababseo-float:hover {
    transform: none;
  }
}

.app-shell.tpl-yygk {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-outlet {
  flex: 1;
}

/* 页脚商务合作区：修复文字被遮挡、颜色不可见 */
.yygk-footer {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.yygk-footer__col--biz {
  position: relative;
  z-index: 2;
}

.yygk-footer__biz-line,
.yygk-footer__biz-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #c7d2fe;
}

.yygk-footer__biz-note {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.yygk-footer__biz-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(42, 171, 238, 0.14);
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: #e0f2fe;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.yygk-footer__biz-link:hover {
  color: #fff;
  background: rgba(42, 171, 238, 0.24);
  border-color: rgba(42, 171, 238, 0.55);
}

.yygk-footer__biz-ico {
  flex-shrink: 0;
  fill: currentColor;
}

.yygk-footer__biz-link strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.player-error {
  margin: 0;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
}

.yygk-catpage__sort button.is-active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.yygk-catpage__more {
  text-align: center;
  margin: 24px 0;
}

.yygk-catpage__more button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.yygk-genre-strip__a.is-active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.yygk-info-body h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.yygk-info-body p,
.yygk-info-body li {
  color: var(--muted);
  line-height: 1.75;
}

.yygk-info-body a {
  color: var(--gold);
  font-weight: 600;
}

.auth-page.content-shell {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

/* 移动端自适应补强 */
@media (max-width: 767px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left, 12px));
    padding-right: max(12px, env(safe-area-inset-right, 12px));
  }

  .detail-hero__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .detail-hero__cover {
    max-width: 168px;
    margin: 0 auto;
  }

  .detail-hero__body h1 {
    font-size: clamp(20px, 5.5vw, 26px);
    text-align: center;
  }

  .detail-hero__desc {
    text-align: center;
  }

  .detail-tags {
    justify-content: center;
  }

  .detail-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .detail-hero__cta .primary-btn,
  .detail-hero__cta .ghost-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .card-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-panel,
  .page-panel.page-head-panel {
    padding: 16px;
  }

  .yygk-catpage__head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .yygk-catpage__sort {
    flex-wrap: wrap;
    gap: 8px;
  }

  .yygk-catpage__sort button {
    flex: 1 1 calc(33.33% - 8px);
    min-width: 72px;
  }

  .yygk-genre-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .yygk-genre-strip::-webkit-scrollbar {
    display: none;
  }

  .yygk-section__head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yygk-footer__grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .yygk-footer__cols {
    width: 100%;
    flex-direction: column;
    gap: 1.25rem;
  }

  .nj-play-head__h1 {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .nj-play-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nj-play-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .yygk-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .yygk-search-bar button {
    width: 100%;
  }

  .auth-card {
    width: 100%;
    padding: 20px 16px;
  }
}

@media (max-width: 380px) {
  .card-grid--related {
    grid-template-columns: 1fr;
  }

  .yygk-hot-grid {
    grid-template-columns: 1fr;
  }
}

.ababseo-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 12px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #1d8fd0);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(42, 171, 238, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateZ(0);
}

.ababseo-float:hover {
  color: #fff;
}

.ababseo-tg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ababseo-text {
  white-space: nowrap;
}

.app-bootstrap {
  display: grid;
  place-items: center;
  min-height: 70dvh;
  padding: 24px;
  text-align: center;
  background: #0b1027;
  color: #f8fafc;
}

.app-bootstrap__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #4f46e5;
  animation: yygkSpin 0.9s linear infinite;
  margin: 0 auto 14px;
}

.app-bootstrap__msg {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

@keyframes yygkSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .ababseo-float {
    padding: 12px;
    border-radius: 50%;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .ababseo-text {
    display: none;
  }
}
