/* AVLOG fresh structure layer — intentionally loaded last to replace legacy component rules. */
:root {
  --av-card-bg: #0c1b14;
  --av-card-green: #16a34a;
  --av-card-green-glow: rgba(22, 163, 74, .22);
  --av-card-purple: #a855f7;
  --av-card-purple-glow: rgba(168, 85, 247, .24);
}

/* Remove artificial blank area below page content. */
html, body { min-height: 0 !important; }
html body.body .main {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 12px !important;
  margin-bottom: 0 !important;
}
html body.body .main > .hub-wrap { padding-bottom: 0 !important; margin-bottom: 0 !important; }
html body.body footer.footer { margin-top: 18px !important; padding-bottom: 18px !important; }
html body.body footer.footer .footer-inner { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Homepage shortcut cards: exact dark-green surface and distinct green/purple rails. */
html body.body.avref26-home .main { width: 100% !important; max-width: none !important; }
html body.body.avref26-home .main > .hub-wrap {
  width: calc(100% - 14px) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut {
  min-height: 174px !important;
  display: flex !important;
  align-items: center !important;
  gap: 17px !important;
  padding: 22px 22px !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
  border-left: 6px solid var(--av-card-green) !important;
  border-radius: 16px !important;
  background: var(--av-card-bg) !important;
  box-shadow: 0 0 0 rgba(0,0,0,0) !important;
  transform: none !important;
  text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut:hover,
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut:focus-visible {
  border-color: rgba(34,197,94,.58) !important;
  border-left-color: #16a34a !important;
  background: #0d2117 !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 0 20px var(--av-card-green-glow), 0 0 38px rgba(22,163,74,.12) !important;
  outline: none !important;
}
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut-random {
  border-left-color: var(--av-card-purple) !important;
  background: var(--av-card-bg) !important;
}
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut-random:hover,
html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut-random:focus-visible {
  border-color: rgba(168,85,247,.62) !important;
  border-left-color: var(--av-card-purple) !important;
  background: #111a19 !important;
  box-shadow: 0 0 0 1px rgba(168,85,247,.14), 0 0 20px var(--av-card-purple-glow), 0 0 38px rgba(168,85,247,.12) !important;
}
html body.body.avref26-home .hub-shortcuts .hub-icon {
  flex: 0 0 60px !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 15px !important;
  background: #0b3823 !important;
  color: #16c784 !important;
  font-size: 25px !important;
}
html body.body.avref26-home .hub-shortcuts .hub-shortcut-random .hub-icon {
  background: #8249d5 !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(130,73,213,.2) !important;
}
html body.body.avref26-home .hub-shortcuts .hub-shortcut h2 {
  margin: 0 0 7px !important;
  color: #f4faf5 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}
html body.body.avref26-home .hub-shortcuts .hub-shortcut p {
  margin: 0 !important;
  color: #b5c7bb !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* AI video tiles: green border is always visible, not hover-dependent. */
html body.body.avref26-home #ai-videos .ai-video-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(34,197,94,.68) !important;
  border-radius: 12px !important;
  background: #0c1d15 !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.06) !important;
}
html body.body.avref26-home #ai-videos .ai-video-card:hover {
  border-color: #4ade80 !important;
  box-shadow: 0 0 16px rgba(34,197,94,.16) !important;
}
html body.body.avref26-home #ai-videos .ai-video-poster { border-radius: 10px 10px 0 0 !important; }
html body.body.avref26-home #ai-videos .ai-video-caption { padding: 9px 11px 11px !important; }

/* No decorative play overlays anywhere on video thumbnails. Keep the thumbnail link clickable. */
html body.body .pic .bofang,
html body.body .pic > i.icon-bofang,
html body.body .ai-video-play,
html body.body .play-related-v2-cover .icon-bofang,
html body.body .play-related-v2-cover > i,
html body.body .pic::after,
html body.body .pic::before,
html body.body .ai-video-poster::after,
html body.body .ai-video-poster::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
html body.body .pic img,
html body.body .ai-video-poster img { filter: none !important; }
html body.body .pic a:hover img,
html body.body .ai-video-card:hover .ai-video-poster img { filter: none !important; }

/* Remove obsolete footer navigation caption and any reserved spacing it created. */
html body.body .footer .footer-note { display: none !important; margin: 0 !important; padding: 0 !important; }

@media (max-width: 1100px) {
  html body.body.avref26-home .hub-shortcuts.avref26-shortcuts { gap: 16px !important; }
  html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut { min-height: 142px !important; padding: 18px !important; }
}
@media (max-width: 767px) {
  html body.body.avref26-home .main > .hub-wrap { width: calc(100% - 20px) !important; padding-left: 0 !important; padding-right: 0 !important; }
  html body.body.avref26-home .hub-shortcuts.avref26-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  html body.body.avref26-home .hub-shortcuts.avref26-shortcuts > a.hub-shortcut {
    min-height: 112px !important;
    gap: 9px !important;
    padding: 12px 10px !important;
    border-left-width: 4px !important;
  }
  html body.body.avref26-home .hub-shortcuts .hub-icon {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 18px !important;
  }
  html body.body.avref26-home .hub-shortcuts .hub-shortcut h2 { font-size: 13px !important; margin-bottom: 4px !important; }
  html body.body.avref26-home .hub-shortcuts .hub-shortcut p { font-size: 10px !important; line-height: 1.4 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.body.avref26-home .hub-shortcuts .hub-shortcut { transition: none !important; }
}
