/*
 * AVLOG 2026-11-13 — coherent component rebuild
 * Loaded after legacy/page stylesheets to neutralize older conflicting rules.
 */
:root {
  --av-panel-bg: #0c1b14;
  --av-green: #16a34a;
  --av-green-bright: #22c55e;
  --av-purple: #a855f7;
}

/* Four homepage shortcut cards */
html body.body .hub-shortcuts .hub-shortcut,
html body.body .hub-wrap .hub-shortcut {
  position: relative !important;
  box-sizing: border-box !important;
  min-height: 126px !important;
  padding: 18px 18px 18px 22px !important;
  border: 1px solid transparent !important;
  border-left: 5px solid var(--av-green) !important;
  border-radius: 16px !important;
  background: var(--av-panel-bg) !important;
  box-shadow: none !important;
  transform: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease !important;
}
html body.body .hub-shortcuts .hub-shortcut:nth-child(-n+3):hover,
html body.body .hub-wrap .hub-shortcut:nth-child(-n+3):hover {
  border-color: var(--av-green-bright) !important;
  border-left-color: var(--av-green-bright) !important;
  background: #102219 !important;
}
html body.body .hub-shortcuts .hub-shortcut-random,
html body.body .hub-wrap .hub-shortcut-random {
  border-left-color: var(--av-purple) !important;
  background: var(--av-panel-bg) !important;
}
html body.body .hub-shortcuts .hub-shortcut-random:hover,
html body.body .hub-wrap .hub-shortcut-random:hover {
  border-color: var(--av-purple) !important;
  border-left-color: var(--av-purple) !important;
  background: #171321 !important;
}
html body.body .hub-shortcut,
html body.body .hub-shortcut:hover,
html body.body .hub-shortcut-random,
html body.body .hub-shortcut-random:hover {
  box-shadow: none !important;
}
html body.body .hub-shortcut .hub-icon {
  flex: 0 0 48px !important;
}

/* AI cards: individual green outline, no colored glow */
html body.body #ai-videos .ai-video-grid { gap: 16px !important; }
html body.body #ai-videos .ai-video-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(34,197,94,.62) !important;
  border-radius: 12px !important;
  background: var(--av-panel-bg) !important;
  box-shadow: none !important;
  transition: border-color .18s ease, background-color .18s ease !important;
}
html body.body #ai-videos .ai-video-card:hover {
  border-color: #4ade80 !important;
  background: #102219 !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}
html body.body #ai-videos .ai-video-caption strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.5 !important;
  min-height: 3em !important;
  max-height: 3em !important;
}

/* Same video-card structure and title treatment on home/type/show/search */
html body.body .home-video-list .category-con .a-con,
html body.body #videos .category-con .a-con {
  align-items: start !important;
}
html body.body .home-video-list .category-con .a-con-inner,
html body.body #videos .category-con .a-con-inner {
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.body .home-video-list .category-con .a-con-inner > .s1,
html body.body #videos .category-con .a-con-inner > .s1 {
  display: block !important;
  min-height: 3em !important;
  max-height: 3em !important;
  margin-top: 8px !important;
  overflow: hidden !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
}
html body.body .home-video-list .category-con .a-con-inner > .s1 a,
html body.body #videos .category-con .a-con-inner > .s1 a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: ellipsis !important;
  line-height: 1.5 !important;
  color: #edf7f0 !important;
}
html body.body .home-video-list .category-con .a-con-inner > .s1 a:hover,
html body.body #videos .category-con .a-con-inner > .s1 a:hover {
  color: #4ade80 !important;
}
html body.body .home-video-list .category-con .a-con-inner > .pic,
html body.body #videos .category-con .a-con-inner > .pic {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  background: #102017 !important;
}
html body.body .home-video-list .category-con .a-con-inner > .pic img,
html body.body #videos .category-con .a-con-inner > .pic img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* One identical play button for every video list and AI card */
html body.body .home-video-list .category-con .a-con-inner > .pic .bofang,
html body.body #videos .category-con .a-con-inner > .pic .bofang,
html body.body #ai-videos .ai-video-play {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 50% !important;
  background: rgba(12,27,20,.78) !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%,-50%) scale(.92) !important;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease !important;
  pointer-events: none !important;
}
html body.body .home-video-list .category-con .a-con-inner > .pic:hover .bofang,
html body.body #videos .category-con .a-con-inner > .pic:hover .bofang,
html body.body #ai-videos .ai-video-card:hover .ai-video-play {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%,-50%) scale(1) !important;
}
html body.body .home-video-list .category-con .a-con-inner > .pic .bofang:before,
html body.body #videos .category-con .a-con-inner > .pic .bofang:before,
html body.body #ai-videos .ai-video-play .iconfont {
  color: #fff !important;
  font-size: inherit !important;
}

/* Desktop header follows page scroll; remove the old rainbow/glow strip */
@media (min-width: 768px) {
  html body.body .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }
}
html body.body .site-header:before,
html body.body .site-header:after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Footer reaches the bottom edge with no decorative top strip or trailing gap */
html, body.body {
  min-height: 100% !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html body.body .footer,
html body.body footer.footer {
  margin-bottom: 0 !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}
html body.body .footer:before,
html body.body .footer:after,
html body.body footer.footer:before,
html body.body footer.footer:after {
  content: none !important;
  display: none !important;
}

/* Responsive details */
@media (max-width: 767px) {
  html body.body .hub-shortcuts .hub-shortcut {
    min-height: 90px !important;
    padding: 12px 10px 12px 13px !important;
    gap: 9px !important;
  }
  html body.body .hub-shortcut .hub-icon {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
  }
  html body.body .home-video-list .category-con .a-con-inner > .s1,
  html body.body #videos .category-con .a-con-inner > .s1 {
    min-height: 2.9em !important;
    max-height: 2.9em !important;
    margin-top: 6px !important;
    font-size: 12px !important;
  }
  html body.body .home-video-list .category-con .a-con-inner > .pic .bofang,
  html body.body #videos .category-con .a-con-inner > .pic .bofang,
  html body.body #ai-videos .ai-video-play {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
  }
}
