/* weiyisai.com / 影视天堂 SPA 覆盖层 */
body.nav-open {
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.delay-1000 {
  animation-delay: 1s;
}

.delay-2000 {
  animation-delay: 2s;
}

video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.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;
}

.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: #0f172a;
  color: #f8fafc;
}

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

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

@keyframes weiyiSpin {
  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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-pulse {
    animation: none;
  }
}

/* ── 播放页布局（不依赖 Tailwind 工具类） ── */
.watch-page {
  min-height: 100%;
  padding-bottom: 3rem;
}

.watch-page__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

@media (min-width: 640px) {
  .watch-page__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .watch-page__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.watch-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: #c084fc;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.watch-page__back svg {
  width: 1rem;
  height: 1rem;
}

.watch-page__back:hover {
  color: #d8b4fe;
}

.watch-page__error {
  margin: 0.75rem 0 0;
  text-align: center;
  color: #f87171;
  font-size: 0.875rem;
}

.watch-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .watch-page__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.watch-page__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.watch-page__aside {
  min-width: 0;
}

@media (min-width: 1024px) {
  .watch-page__aside {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
  }

  .watch-page__aside::-webkit-scrollbar {
    width: 4px;
  }

  .watch-page__aside::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 4px;
  }
}

.watch-player-section {
  max-width: 100%;
}

.watch-ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  font-size: 0.8125rem;
  text-align: center;
}

.watch-video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.2),
    0 20px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(124, 58, 237, 0.35);
}

.watch-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  vertical-align: top;
  background: #000;
}

.watch-info__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .watch-info__title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .watch-info__title {
    font-size: 2.25rem;
  }
}

.watch-info__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.watch-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #d1d5db;
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.4);
}

.watch-stat svg {
  width: 1rem;
  height: 1rem;
}

.watch-stat--score {
  color: #facc15;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.25);
}

.watch-info__genre {
  margin: 0;
  color: #d8b4fe;
  font-size: 0.875rem;
  font-weight: 500;
}

.watch-panel {
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .watch-panel {
    padding: 1.5rem 1.75rem;
  }
}

.watch-panel__title {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.watch-panel__title::before {
  content: '';
  width: 4px;
  height: 1rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #a855f7, #ec4899);
}

.watch-panel__text {
  margin: 0;
  color: #d1d5db;
  font-size: 0.9375rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .watch-panel__text {
    font-size: 1rem;
  }
}

.watch-panel__actors {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
  color: #6b7280;
  font-size: 0.875rem;
}

.watch-panel__actors span {
  color: #9ca3af;
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.watch-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.watch-tag:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(168, 85, 247, 0.5);
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.watch-random-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.watch-random-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.watch-aside__title {
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid #a855f7;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

.watch-related-list {
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.watch-related-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.watch-related-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 65, 81, 0.4);
  transition: background 0.2s;
}

.watch-related-item:last-child {
  border-bottom: none;
}

.watch-related-item:hover {
  background: rgba(124, 58, 237, 0.1);
}

.watch-related-item__thumb {
  flex-shrink: 0;
  width: 6rem;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
}

@media (min-width: 640px) {
  .watch-related-item__thumb {
    width: 7rem;
  }
}

.watch-related-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.watch-related-item:hover .watch-related-item__img {
  transform: scale(1.05);
}

.watch-related-item__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.watch-related-item__title {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.watch-related-item:hover .watch-related-item__title {
  color: #c084fc;
}

.watch-related-item__meta {
  margin: 0.35rem 0 0;
  color: #9ca3af;
  font-size: 0.75rem;
}

.watch-related-item__score {
  color: #facc15;
  font-weight: 600;
}

.watch-related-item__dot {
  margin: 0 0.25rem;
  color: #4b5563;
}
