/* Aurora template: independent visual system. Loaded only by factory/templates/aurora. */
:root {
  --primary-color: #0f766e;
  --aurora-primary: #0f766e;
  --aurora-primary-strong: #115e59;
  --aurora-secondary: #6d28d9;
  --aurora-accent: #d97706;
  --aurora-ink: #12202f;
  --aurora-muted: #607086;
  --aurora-soft: #eef5f4;
  --aurora-violet-soft: #f3efff;
  --aurora-card: #ffffff;
  --aurora-canvas: #edf2f5;
  --aurora-border: #d7e2e5;
  --aurora-border-strong: #bdcdd1;
  --aurora-shadow-sm: 0 1px 3px rgba(18, 32, 47, .08);
  --aurora-shadow-md: 0 4px 12px rgba(18, 32, 47, .12);
  --aurora-radius-sm: 10px;
  --aurora-radius-md: 16px;
  --aurora-radius-lg: 24px;
  --text-color: var(--aurora-ink);
  --border-color: var(--aurora-border);
  --bg-color: var(--aurora-card);
  --body-bg-color: var(--aurora-canvas);
  --light-bg-color: #f4f8f8;
  --tag-bg-color: #e8f1f0;
}

html { overflow-x: clip; }
body.theme-aurora {
  min-width: 0;
  overflow-x: clip;
  color: var(--aurora-ink);
  background: var(--aurora-canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
}
body.theme-aurora * { min-width: 0; }
body.theme-aurora a { color: inherit; }
body.theme-aurora a:hover { color: var(--aurora-primary); }
body.theme-aurora button,
body.theme-aurora input { font: inherit; }
body.theme-aurora img { max-width: 100%; }
body.theme-aurora .container {
  width: min(100% - 32px, 1280px);
  max-width: 1280px !important;
  padding-left: 0;
  padding-right: 0;
}
body.theme-aurora main.container { padding-top: 14px; }

/* Header: dark command bar + navigation rail */
body.theme-aurora .site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(12, 28, 39, .96);
  color: #fff;
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
body.theme-aurora .header-main-container {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}
body.theme-aurora .header-logo-row { display: contents; }
body.theme-aurora .logo-main {
  display: inline-flex;
  align-items: center;
  min-width: 128px;
  max-width: 210px;
  height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
body.theme-aurora .logo-main img {
  display: block;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}
body.theme-aurora .header-nav { align-self: stretch; display: flex; align-items: center; overflow: hidden; }
body.theme-aurora .header-nav-list.pc-only {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}
body.theme-aurora .header-nav-list .nav-item { position: relative; flex: 0 0 auto; }
body.theme-aurora .header-nav-list .nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 11px;
  color: #dbe8ec;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
body.theme-aurora .header-nav-list .nav-item > a:hover,
body.theme-aurora .header-nav-list .nav-item:focus-within > a {
  color: #fff;
  background: rgba(20,184,166,.18);
}
body.theme-aurora .dropdown-menu {
  top: calc(100% - 6px);
  min-width: 172px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #142936;
  box-shadow: var(--aurora-shadow-md);
}
body.theme-aurora .dropdown-menu a {
  display: block;
  padding: 9px 11px;
  color: #dbe8ec;
  border-radius: 8px;
  font-size: 13px;
}
body.theme-aurora .dropdown-menu a:hover { color: #fff; background: rgba(20,184,166,.16); }
body.theme-aurora .header-tools { display: flex; align-items: center; }
body.theme-aurora .nav-orange-btn,
body.theme-aurora .home-path-button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: var(--aurora-primary) !important;
  box-shadow: none !important;
  padding: 0 16px !important;
  font-weight: 750 !important;
  transform: none !important;
}
body.theme-aurora .nav-orange-btn:hover,
body.theme-aurora .home-path-button:hover { background: var(--aurora-primary-strong) !important; transform: none !important; }

body.theme-aurora .mobile-drawer-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
}
body.theme-aurora .drawer-overlay { background: rgba(4,13,20,.62); }
body.theme-aurora .side-drawer {
  width: min(88vw, 340px);
  background: #10232f;
  color: #e7f0f3;
  box-shadow: 4px 0 14px rgba(0,0,0,.18);
}
body.theme-aurora .drawer-header {
  min-height: 68px;
  padding: 0 18px;
  background: #0b1c27;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
body.theme-aurora .drawer-header h3 { margin: 0; font-size: 17px; }
body.theme-aurora .drawer-header button {
  width: 38px; height: 38px; border: 0; border-radius: 10px;
  color: #fff; background: rgba(255,255,255,.08);
}
body.theme-aurora .drawer-body { padding: 12px; }
body.theme-aurora .drawer-group {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
body.theme-aurora .drawer-group-title { color: #72ded1 !important; font-weight: 800; margin-bottom: 9px; }
body.theme-aurora .drawer-group-content { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
body.theme-aurora .drawer-group-content a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #dcebee;
  background: rgba(255,255,255,.05);
  font-size: 13px;
}

/* Shared card shell */
body.theme-aurora .rankings-section,
body.theme-aurora .featured-topics-section,
body.theme-aurora .gallery-section,
body.theme-aurora .friend-links-section,
body.theme-aurora .category-nav-section,
body.theme-aurora .tags-card,
body.theme-aurora .main-content-area,
body.theme-aurora .magnet-content-container,
body.theme-aurora .novel-layout-container,
body.theme-aurora .gallery-layout-container,
body.theme-aurora .content-box,
body.theme-aurora .recommendation-section,
body.theme-aurora .related-videos-block,
body.theme-aurora .image-tags-section,
body.theme-aurora .magnet-trending-box {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid var(--aurora-border) !important;
  border-radius: var(--aurora-radius-md) !important;
  box-shadow: var(--aurora-shadow-sm) !important;
}

/* Ads and promoted links */
body.theme-aurora .v1-bnr-box { margin-top: 0; }
body.theme-aurora .v1-bnr-box > .v1-bnr-box,
body.theme-aurora .v1-bnr-box img {
  border-radius: var(--aurora-radius-md) !important;
  overflow: hidden;
}
body.theme-aurora .v1-ico-box {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: var(--aurora-radius-md);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--aurora-border);
  box-shadow: var(--aurora-shadow-sm);
}
body.theme-aurora .v1-ico-box ul { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 12px; }
body.theme-aurora .v1-ico-box img {
  width: 56px; height: 56px;
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid var(--aurora-border);
}
body.theme-aurora .v1-ico-box .v1-item-a {
  padding: 8px 5px;
  border-radius: 14px;
}
body.theme-aurora .v1-ico-box .v1-item-a:hover { background: var(--aurora-soft); }
body.theme-aurora .top-promoted-container { margin-top: 12px; }
body.theme-aurora .top-links-grid,
body.theme-aurora .links-grid {
  background: transparent !important;
  border: 0 !important;
  gap: 8px !important;
}
body.theme-aurora .top-links-grid { grid-template-columns: repeat(8,minmax(0,1fr)) !important; }
body.theme-aurora .links-grid { grid-template-columns: repeat(8,minmax(0,1fr)) !important; padding: 14px !important; }
body.theme-aurora .top-links-grid li,
body.theme-aurora .links-grid li {
  border: 1px solid var(--aurora-border) !important;
  border-radius: 10px;
  background: rgba(255,255,255,.86);
}
body.theme-aurora .top-links-grid li a,
body.theme-aurora .links-grid li a { min-height: 40px; padding: 7px 9px !important; }
body.theme-aurora .top-links-grid li a .link-name,
body.theme-aurora .links-grid li a .link-name { color: var(--aurora-ink) !important; font-size: 12px !important; }

/* Search and discovery */
body.theme-aurora .search-section {
  padding: 0;
  margin-top: 12px;
  border-radius: var(--aurora-radius-md) var(--aurora-radius-md) 0 0;
  background: #102c39;
  border: 1px solid #183c49;
  border-bottom: 0;
}
body.theme-aurora .search-section::before {
  content: "全站聚合检索";
  display: block;
  padding: 16px 18px 8px;
  color: #b9d5db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
body.theme-aurora .search-form {
  width: auto;
  margin: 0 16px 16px;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
body.theme-aurora .search-form input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  color: var(--aurora-ink);
  font-size: 16px;
  background: transparent;
}
body.theme-aurora .search-form button {
  min-width: 154px;
  justify-content: center;
  padding: 0 22px;
  border-radius: 12px;
  margin: 5px;
  background: var(--aurora-primary);
  font-size: 15px;
  white-space: nowrap;
}
body.theme-aurora .tags-section {
  margin: 0 0 12px;
  padding: 12px 16px 14px;
  border-radius: 0 0 var(--aurora-radius-md) var(--aurora-radius-md);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--aurora-border);
  border-top: 0;
  box-shadow: var(--aurora-shadow-sm);
}
body.theme-aurora .tag-group { padding: 5px 0; }
body.theme-aurora .tag-list { gap: 7px; }
body.theme-aurora .tag-list .tag-group-title-item {
  width: 82px;
  margin: 0;
  color: var(--aurora-muted);
  font-size: 13px;
  letter-spacing: .04em;
}
body.theme-aurora .tag-list li:not(.tag-group-title-item):not(.toggle-button-item) a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #324556;
  background: #f0f5f5;
  border: 1px solid transparent;
  font-size: 13px;
}
body.theme-aurora .tag-list li:not(.tag-group-title-item):not(.toggle-button-item) a:hover {
  color: var(--aurora-primary);
  border-color: #a7d6d1;
  background: #e7f5f3;
}
body.theme-aurora .toggle-tags-btn {
  min-height: 30px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--aurora-violet-soft);
  color: var(--aurora-secondary);
  border: 1px solid #d8cdfa;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

/* Resource lines, including helper-injected !important rules */
body.theme-aurora .global-resource-lines-wrap { margin: 0 0 12px; }
body.theme-aurora .resource-lines-section {
  margin-top: 0 !important;
  padding: 15px 16px !important;
  border-radius: var(--aurora-radius-md) !important;
  border: 1px solid var(--aurora-border) !important;
  background: #f8fbfb !important;
  box-shadow: var(--aurora-shadow-sm) !important;
}
body.theme-aurora .resource-lines-head { margin-bottom: 12px !important; }
body.theme-aurora .resource-lines-head h2 { color: var(--aurora-ink) !important; font-size: 17px !important; }
body.theme-aurora .resource-lines-toggle {
  border: 1px solid #b8d3d0 !important;
  color: var(--aurora-primary) !important;
  background: #fff !important;
  border-radius: 999px !important;
}
body.theme-aurora .resource-lines-section .category-nav-grid { gap: 9px !important; }
body.theme-aurora .resource-lines-section .category-nav-grid a {
  min-height: 42px !important;
  border: 1px solid #c5d9d7 !important;
  border-radius: 11px !important;
  color: var(--aurora-primary) !important;
  background: #fff !important;
  font-weight: 750 !important;
}
body.theme-aurora .resource-lines-section .category-nav-grid a:hover { background: #eaf6f4 !important; }

/* Section headings */
body.theme-aurora .section-title {
  justify-content: flex-start;
  margin: 0 0 16px !important;
  text-align: left;
}
body.theme-aurora .section-title::before { display: none; }
body.theme-aurora .section-title span {
  padding: 0;
  background: transparent;
  color: var(--aurora-ink);
  font-size: 20px;
}
body.theme-aurora .section-title span::before,
body.theme-aurora .rankings-section .section-header h2::before,
body.theme-aurora .friend-links-header h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: -4px;
  background: var(--aurora-primary);
}

/* Homepage */
body.theme-aurora .rankings-section,
body.theme-aurora .featured-topics-section,
body.theme-aurora .gallery-section { margin-top: 12px; padding: 20px; }
body.theme-aurora .rankings-section .section-header {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px !important;
}
body.theme-aurora .rankings-section .section-header h2 { font-size: 20px; white-space: nowrap; }
body.theme-aurora .ranking-icon { display: none; }
body.theme-aurora .capsule-tabs {
  justify-self: end;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border-radius: 12px;
  background: #edf3f4;
  border: 1px solid var(--aurora-border);
  scrollbar-width: none;
}
body.theme-aurora .capsule-tabs::-webkit-scrollbar { display: none; }
body.theme-aurora .capsule-tabs li {
  padding: 7px 15px;
  border-radius: 9px;
  color: var(--aurora-muted);
  font-size: 13px;
}
body.theme-aurora .capsule-tabs li.active {
  color: #fff !important;
  background: var(--aurora-ink) !important;
  box-shadow: none !important;
}
body.theme-aurora .rankings-content-wrapper { padding-top: 0; }
body.theme-aurora .ranking-grid { gap: 14px; }
body.theme-aurora .ranking-grid.grid-video,
body.theme-aurora .ranking-grid.grid-magnet { grid-template-columns: repeat(5,minmax(0,1fr)); }
body.theme-aurora .ranking-grid.grid-novel { grid-template-columns: repeat(6,minmax(0,1fr)); }
body.theme-aurora .ranking-grid.grid-gallery { grid-template-columns: repeat(5,minmax(0,1fr)); }
body.theme-aurora .ranking-item a,
body.theme-aurora .content-item,
body.theme-aurora .result-item,
body.theme-aurora .rec-item,
body.theme-aurora .related-video-info,
body.theme-aurora .recommendation-grid > a,
body.theme-aurora .recommendation-grid > div {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--aurora-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: none;
}
body.theme-aurora .ranking-item a:hover,
body.theme-aurora .content-item:hover,
body.theme-aurora .result-item:hover,
body.theme-aurora .rec-item:hover {
  transform: none !important;
  border-color: #9cc9c4 !important;
  box-shadow: none !important;
}
body.theme-aurora .ranking-item-cover,
body.theme-aurora .content-item-cover,
body.theme-aurora .result-item-cover { border-radius: 0 !important; }
body.theme-aurora .ranking-item-title,
body.theme-aurora .content-item-title { margin: 0; padding: 10px 11px 12px; height: auto; min-height: 52px; font-size: 13px; line-height: 1.45; }
body.theme-aurora .topics-grid { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 12px; }
body.theme-aurora .topic-item { border-radius: 18px; box-shadow: none; border: 1px solid var(--aurora-border); }
body.theme-aurora .topic-item:hover { transform: none; border-color: #9cc9c4; box-shadow: none; }
body.theme-aurora .topic-item span { padding: 28px 7px 9px; font-weight: 750; }
body.theme-aurora .gallery-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
body.theme-aurora .gallery-item { position: relative; border-radius: 16px; box-shadow: none; border: 1px solid var(--aurora-border); }
body.theme-aurora .gallery-item:hover { transform: none; border-color: #9cc9c4; box-shadow: none; }
body.theme-aurora .gallery-item-tag { padding: 10px 12px; background: #fff; color: var(--aurora-ink); font-weight: 750; }

/* Category filters */
body.theme-aurora .child-category-filters,
body.theme-aurora .multi-select-filters {
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid var(--aurora-border);
  border-radius: var(--aurora-radius-md);
  background: rgba(255,255,255,.96);
  box-shadow: var(--aurora-shadow-sm);
}
body.theme-aurora .child-category-filters { align-items: flex-start; gap: 12px; }
body.theme-aurora .child-category-filters .filter-all-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  color: #fff;
  background: var(--aurora-primary);
  border-radius: 10px;
  font-size: 13px;
}
body.theme-aurora .child-links-wrapper { gap: 8px; }
body.theme-aurora .child-links-wrapper a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: #f1f5f5;
  color: #415465;
  font-size: 13px;
}
body.theme-aurora .filter-group {
  min-height: 48px;
  padding: 7px 88px 7px 84px;
  border-bottom: 1px solid #e8eff0;
}
body.theme-aurora .filter-group-title {
  position: absolute;
  left: 0;
  top: 12px;
  width: 76px;
  margin: 0;
  color: var(--aurora-muted);
  font-size: 13px;
}
body.theme-aurora .filter-tag {
  min-height: 32px;
  margin: 2px 4px 2px 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f1f5f5;
  color: #405365;
  font-size: 13px;
}
body.theme-aurora .filter-tag:hover { transform: none; border-color: #b8d8d4; }
body.theme-aurora .filter-tag.active {
  color: #fff !important;
  background: var(--aurora-primary) !important;
  border-color: var(--aurora-primary) !important;
}
body.theme-aurora .filter-expand-btn {
  right: 0;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c9d9dc;
  border-radius: 9px;
  color: var(--aurora-primary);
  background: #fff;
  font-size: 12px;
}
body.theme-aurora .sort-tabs,
body.theme-aurora .type-tabs {
  margin-top: 12px;
  padding: 6px;
  border: 1px solid var(--aurora-border);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--aurora-shadow-sm);
}
body.theme-aurora .sort-tabs button,
body.theme-aurora .type-tabs button {
  min-height: 40px;
  border-radius: 10px;
  color: var(--aurora-muted);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 750;
}
body.theme-aurora .sort-tabs button.active,
body.theme-aurora .type-tabs button.active {
  color: #fff;
  background: var(--aurora-ink);
  border-color: var(--aurora-ink);
  box-shadow: none;
}
body.theme-aurora .search-results-container { padding-top: 14px; }
body.theme-aurora .content-grid,
body.theme-aurora .results-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
body.theme-aurora .result-item .info { padding: 11px 12px 12px; }
body.theme-aurora .result-item h3 { font-size: 13px; min-height: 38px; margin-bottom: 8px; }
body.theme-aurora .result-item .meta .a-type {
  border-radius: 999px;
  padding: 3px 8px;
  background: #e9f3f2;
  color: var(--aurora-primary);
}
body.theme-aurora .pagination-container { flex-wrap: wrap; gap: 7px; }
body.theme-aurora .pagination-container button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--aurora-border);
  border-radius: 10px;
  background: #fff;
}
body.theme-aurora .pagination-container button.active { color: #fff; background: var(--aurora-primary); border-color: var(--aurora-primary); }
body.theme-aurora .status-message { padding: 54px 15px; color: var(--aurora-muted); }

/* Tags page */
body.theme-aurora .tags-card { padding: 22px !important; margin-top: 12px !important; }
body.theme-aurora .tags-header {
  align-items: flex-end;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--aurora-border);
}
body.theme-aurora .tags-header h1 { font-size: 22px; }
body.theme-aurora .tag-cloud-wrap { justify-content: flex-start; gap: 9px; }
body.theme-aurora .tag-pill {
  flex: 0 1 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid var(--aurora-border);
  background: #f5f8f8 !important;
  color: #34495b;
}
body.theme-aurora .tag-pill:hover { color: var(--aurora-primary); background: #eaf6f4 !important; border-color: #acd2cd; }

/* Detail page layout */
body.theme-aurora .detail-page-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px !important;
  margin-top: 12px !important;
}
body.theme-aurora .main-content-area { padding: 20px !important; }
body.theme-aurora .sidebar-area { min-width: 0 !important; }
body.theme-aurora h1 {
  color: var(--aurora-ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.theme-aurora .main-content-area > h1,
body.theme-aurora .magnet-content-container > h1,
body.theme-aurora .novel-layout-container > h1,
body.theme-aurora .gallery-layout-container > h1 {
  margin: 0 0 10px !important;
  font-size: clamp(20px, 2.2vw, 28px) !important;
  font-weight: 850 !important;
  letter-spacing: -.02em;
}
body.theme-aurora .meta-info,
body.theme-aurora .gallery-info-bar {
  color: var(--aurora-muted) !important;
  border-color: var(--aurora-border) !important;
}
body.theme-aurora .video-player-container {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #05090d;
}
body.theme-aurora a#box-v1-special,
body.theme-aurora .v1-notice-bar {
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 0 0 14px 14px !important;
  background: var(--aurora-secondary) !important;
  box-shadow: none !important;
}
body.theme-aurora .btn-v-down,
body.theme-aurora .btn-media-save,
body.theme-aurora .btn-gallery-download,
body.theme-aurora .action-btn,
body.theme-aurora .download-ctrl-btn {
  border-radius: 12px !important;
  background: var(--aurora-primary) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.theme-aurora .category-breadcrumb {
  padding: 12px 14px;
  border: 1px solid var(--aurora-border) !important;
  border-radius: 11px;
  background: #f7faf9;
}
body.theme-aurora .category-breadcrumb a { color: var(--aurora-primary) !important; }
body.theme-aurora .video-tags-display,
body.theme-aurora .gallery-tags-bar,
body.theme-aurora .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-color: var(--aurora-border) !important;
}
body.theme-aurora .video-tags-display a,
body.theme-aurora .gallery-tags-bar a,
body.theme-aurora .tags-container a {
  padding: 5px 11px !important;
  border: 1px solid #bad5d2 !important;
  border-radius: 999px !important;
  color: var(--aurora-primary) !important;
  background: #f1f8f7 !important;
}
body.theme-aurora .sidebar-area > *,
body.theme-aurora .details-sidebar > *,
body.theme-aurora .sidebar-column > * {
  border-radius: 14px !important;
}
body.theme-aurora .sidebar-area h2,
body.theme-aurora .recommendation-section h2,
body.theme-aurora .related-videos-block h2,
body.theme-aurora .image-tags-section h2,
body.theme-aurora .magnet-trending-box h2 {
  color: var(--aurora-ink) !important;
}
body.theme-aurora .image-tags-grid,
body.theme-aurora .recommendation-grid,
body.theme-aurora .related-videos-grid,
body.theme-aurora .rec-videos,
body.theme-aurora .overlay-cards { gap: 12px !important; }
body.theme-aurora .image-tag-card,
body.theme-aurora .overlay-card {
  overflow: hidden;
  border: 1px solid var(--aurora-border);
  border-radius: 12px;
  background: #fff;
}
body.theme-aurora .image-tag-card__text,
body.theme-aurora .overlay-card-title { padding: 8px 9px; }
body.theme-aurora .player-overlay { background: rgba(2,9,14,.82) !important; }
body.theme-aurora .player-overlay .overlay-cards {
  width: min(92%, 680px);
  margin-inline: auto;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}
body.theme-aurora .player-overlay .overlay-card { max-height: min(31vh, 190px); }
body.theme-aurora .player-overlay .overlay-card-img { aspect-ratio: 16/9; object-fit: cover; }
body.theme-aurora .player-overlay .overlay-card-title { font-size: 12px; line-height: 1.35; }

/* Magnet */
body.theme-aurora .magnet-content-container { padding: 22px !important; margin-top: 12px !important; }
body.theme-aurora .top-content-layout { gap: 20px !important; }
body.theme-aurora .cover-column,
body.theme-aurora .details-sidebar,
body.theme-aurora .magnet-box,
body.theme-aurora .preview-gallery {
  border-radius: 14px !important;
  border-color: var(--aurora-border) !important;
}
body.theme-aurora .cover-image { border-radius: 14px !important; }
body.theme-aurora .detail-item { border-color: #e7eeee !important; }
body.theme-aurora .magnet-list li,
body.theme-aurora .m-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.theme-aurora .magnet-list li {
  border: 1px solid var(--aurora-border) !important;
  border-radius: 11px !important;
  background: #f8fbfb !important;
}

/* Novel */
body.theme-aurora .novel-layout-container { padding: 22px !important; margin-top: 12px !important; }
body.theme-aurora .novel-audio-box-transparent,
body.theme-aurora .audio-playlist-box,
body.theme-aurora .text-catalog-box,
body.theme-aurora .content-wrapper {
  border: 1px solid var(--aurora-border) !important;
  border-radius: 14px !important;
  background: #f8fbfb !important;
}
body.theme-aurora .playlist-item,
body.theme-aurora .catalog-item { border-color: var(--aurora-border) !important; }
body.theme-aurora .playlist-item.active { background: #e8f6f4 !important; color: var(--aurora-primary) !important; }
body.theme-aurora .main-content { font-size: 17px; line-height: 2; }

/* Gallery/comic */
body.theme-aurora .gallery-layout-container { padding: 22px !important; margin-top: 12px !important; }
body.theme-aurora .gallery-info-bar {
  padding: 12px 14px !important;
  border: 1px solid var(--aurora-border) !important;
  border-radius: 11px;
  background: #f7faf9;
}
body.theme-aurora .gallery-marquee-box {
  border-left-color: var(--aurora-secondary) !important;
  background: var(--aurora-violet-soft) !important;
}
body.theme-aurora .chapter-box { border: 1px solid var(--aurora-border); border-radius: 14px; overflow: hidden; }
body.theme-aurora .chapter-header { background: #f0f5f5 !important; color: var(--aurora-ink) !important; }
body.theme-aurora .chapter-item { border-radius: 9px !important; }
body.theme-aurora .chapter-item.active { background: var(--aurora-primary) !important; color: #fff !important; }
body.theme-aurora .gallery-images { gap: 12px !important; }
body.theme-aurora .gallery-images img,
body.theme-aurora .comic-page { border-radius: 12px; box-shadow: none; }
body.theme-aurora .floating-btn {
  border-radius: 14px !important;
  background: #102c39 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Footer, modal */
body.theme-aurora .site-footer { margin-top: 18px; padding-bottom: 18px; }
body.theme-aurora .friend-links-section { overflow: hidden; }
body.theme-aurora .friend-links-header {
  padding: 14px 16px !important;
  background: #f4f8f8 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--aurora-border) !important;
}
body.theme-aurora .friend-links-header h2 { font-size: 17px !important; }
body.theme-aurora .btn-apply-link {
  padding: 7px 13px !important;
  border-radius: 999px !important;
  background: var(--aurora-ink) !important;
}
body.theme-aurora .footer-dynamic-box { margin-top: 10px; border-radius: 14px; background: rgba(255,255,255,.7); }
body.theme-aurora .footer-content { color: var(--aurora-muted) !important; }
body.theme-aurora .modal-overlay { background: rgba(4,13,20,.7); }
body.theme-aurora .modal-content { border-radius: 20px; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
body.theme-aurora .modal-item { gap: 12px; }
body.theme-aurora .modal-bullet { color: var(--aurora-primary); }
body.theme-aurora .visit-btn { background: var(--aurora-primary); }
body.theme-aurora .bottom-close-btn { background: var(--aurora-ink); }

@media (max-width: 1180px) {
  body.theme-aurora .header-main-container { gap: 12px; }
  body.theme-aurora .header-nav-list .nav-item > a { padding-inline: 8px; font-size: 13px; }
  body.theme-aurora .nav-orange-btn { padding-inline: 12px !important; }
  body.theme-aurora .v1-ico-box ul { grid-template-columns: repeat(10,minmax(0,1fr)); }
  body.theme-aurora .topics-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  body.theme-aurora .ranking-grid.grid-video,
  body.theme-aurora .ranking-grid.grid-magnet,
  body.theme-aurora .ranking-grid.grid-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 992px) {
  body.theme-aurora .container { width: min(100% - 24px, 960px); }
  body.theme-aurora .pc-only { display: none !important; }
  body.theme-aurora .mobile-only { display: flex !important; }
  body.theme-aurora .header-main-container {
    min-height: auto;
    grid-template-columns: 44px minmax(0,1fr) auto;
    grid-template-rows: 62px 42px;
    gap: 0 10px;
  }
  body.theme-aurora .header-logo-row { display: contents; }
  body.theme-aurora .mobile-drawer-toggle { grid-column: 1; grid-row: 1; }
  body.theme-aurora .logo-main { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; width: min(190px, 100%); }
  body.theme-aurora .header-tools-mobile { grid-column: 3; grid-row: 1; }
  body.theme-aurora .header-tools-mobile .home-path-button { min-width: 42px; padding-inline: 10px !important; }
  body.theme-aurora .header-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; border-top: 1px solid rgba(255,255,255,.08); }
  body.theme-aurora .header-nav-list.mobile-only {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 2px;
  }
  body.theme-aurora .header-nav-list .nav-item > a { justify-content: center; min-height: 40px; padding: 0 4px; font-size: 12px; }
  body.theme-aurora .v1-ico-box ul { grid-template-columns: repeat(8,minmax(0,1fr)); }
  body.theme-aurora .detail-page-container { grid-template-columns: 1fr; }
  body.theme-aurora .sidebar-area { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body.theme-aurora .content-grid,
  body.theme-aurora .results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.theme-aurora .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 768px) {
  body.theme-aurora { font-size: 15px; }
  body.theme-aurora .container { width: min(100% - 16px, 720px); }
  body.theme-aurora main.container { padding-top: 8px; }
  body.theme-aurora .site-header { position: relative; }
  body.theme-aurora .header-main-container { grid-template-columns: 40px minmax(0,1fr) 52px; grid-template-rows: 58px 40px; }
  body.theme-aurora .logo-main { height: 42px; padding: 6px 10px; }
  body.theme-aurora .mobile-drawer-toggle { width: 38px; height: 38px; }
  body.theme-aurora .home-path-button .button-text { display: none; }
  body.theme-aurora .header-nav-list .nav-item > a { font-size: 11.5px; }
  body.theme-aurora .v1-ico-box { padding: 10px 8px; }
  body.theme-aurora .v1-ico-box ul { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px 4px; }
  body.theme-aurora .v1-ico-box img { width: 46px; height: 46px; border-radius: 13px; }
  body.theme-aurora .v1-ico-box .v1-item-t { font-size: 11px; }
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 6px !important; }
  body.theme-aurora .search-section::before { padding: 13px 12px 7px; }
  body.theme-aurora .search-form { margin: 0 10px 11px; min-height: 48px; border-radius: 11px; }
  body.theme-aurora .search-form input[type="text"] { padding: 0 12px; font-size: 14px; }
  body.theme-aurora .search-form button { min-width: 110px; padding: 0 12px; font-size: 13px; margin: 4px; border-radius: 9px; }
  body.theme-aurora .search-form button svg { width: 16px; height: 16px; }
  body.theme-aurora .tags-section { padding: 10px 11px 12px; }
  body.theme-aurora .tag-list { gap: 6px 5px; }
  body.theme-aurora .tag-list .tag-group-title-item { width: 100%; font-size: 12px; }
  body.theme-aurora .tag-list li:not(.tag-group-title-item):not(.toggle-button-item) a { min-height: 28px; padding: 3px 8px; font-size: 12px; }
  body.theme-aurora .resource-lines-section { padding: 12px 10px !important; }
  body.theme-aurora .resource-lines-section .category-nav-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 7px !important; }
  body.theme-aurora .resource-lines-section .category-nav-grid a { min-height: 38px !important; padding: 6px 3px !important; border-radius: 9px !important; }
  body.theme-aurora .rankings-section,
  body.theme-aurora .featured-topics-section,
  body.theme-aurora .gallery-section { padding: 14px; }
  body.theme-aurora .rankings-section .section-header { grid-template-columns: 1fr; gap: 10px; }
  body.theme-aurora .capsule-tabs { justify-self: stretch; width: 100%; }
  body.theme-aurora .capsule-tabs li { flex: 0 0 auto; padding: 6px 11px; }
  body.theme-aurora .ranking-grid.grid-video,
  body.theme-aurora .ranking-grid.grid-magnet,
  body.theme-aurora .ranking-grid.grid-novel,
  body.theme-aurora .ranking-grid.grid-gallery,
  body.theme-aurora .content-grid,
  body.theme-aurora .results-grid,
  body.theme-aurora .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 9px; }
  body.theme-aurora .topics-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  body.theme-aurora .ranking-item-title,
  body.theme-aurora .content-item-title { padding: 8px 9px 10px; min-height: 48px; font-size: 12.5px; }
  body.theme-aurora .child-category-filters { display: block; padding: 12px; }
  body.theme-aurora .child-category-filters .filter-all-link { margin-bottom: 9px; }
  body.theme-aurora .child-links-wrapper { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
  body.theme-aurora .child-links-wrapper a { justify-content: center; padding: 0 5px; font-size: 12px; }
  body.theme-aurora .multi-select-filters { padding: 8px 10px; }
  /*
   * Mobile filter rows deliberately use the original float flow:
   * the title and expand-button reserve space only on row one, while
   * expanded tags wrap across the entire available width on later rows.
   */
  body.theme-aurora .filter-group {
    position: relative;
    display: block !important;
    min-height: 0;
    max-height: 40px;
    padding: 6px 0 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  body.theme-aurora .filter-group.is-expanded {
    max-height: none;
    padding-bottom: 6px !important;
    overflow: visible;
  }
  body.theme-aurora .filter-group::before {
    content: "";
    display: block;
    float: right;
    width: 52px;
    height: 32px;
  }
  body.theme-aurora .filter-group::after {
    content: "";
    display: table;
    clear: both;
  }
  body.theme-aurora .filter-group-title {
    position: static;
    float: left !important;
    display: block !important;
    width: auto;
    height: 28px !important;
    line-height: 28px !important;
    margin: 2px 4px 2px 0 !important;
    padding: 0 !important;
    color: #53677a;
    font-size: 13px;
    white-space: nowrap;
  }
  body.theme-aurora .filter-tag {
    float: left !important;
    display: block !important;
    width: auto;
    max-width: 100%;
    height: 28px !important;
    min-height: 28px;
    line-height: 26px !important;
    padding: 0 7px !important;
    margin: 2px 3px 2px 0 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: #f1f5f5 !important;
    color: #405365 !important;
    font-size: 13px;
    white-space: nowrap;
  }
  body.theme-aurora .filter-tag.active {
    color: #fff !important;
    background: var(--aurora-primary) !important;
  }
  body.theme-aurora .filter-expand-btn {
    position: absolute;
    top: 8px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 28px !important;
    min-height: 28px;
    line-height: 26px !important;
    padding: 0 5px !important;
    margin: 0 !important;
    border: 1px solid #c9d9dc !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--aurora-primary) !important;
    font-size: 12px;
    z-index: 10;
  }
  body.theme-aurora .type-tabs { overflow-x: auto; white-space: nowrap; }
  body.theme-aurora .type-tabs button { flex: 0 0 auto; min-width: 78px; }
  body.theme-aurora .sort-tabs button { min-height: 38px; }
  body.theme-aurora .main-content-area,
  body.theme-aurora .magnet-content-container,
  body.theme-aurora .novel-layout-container,
  body.theme-aurora .gallery-layout-container { padding: 14px !important; }
  body.theme-aurora .sidebar-area { grid-template-columns: 1fr; }
  body.theme-aurora .video-actions-group { display: grid !important; grid-template-columns: 1fr; gap: 9px !important; }
  body.theme-aurora .player-overlay { align-items: center !important; overflow-y: auto; padding: 12px 8px; }
  body.theme-aurora .player-overlay .overlay-cards {
    width: min(96%, 520px);
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  body.theme-aurora .player-overlay .overlay-card { max-height: 118px; }
  body.theme-aurora .player-overlay .overlay-card-img { height: 66px; }
  body.theme-aurora .player-overlay .overlay-card-title { padding: 5px 6px; font-size: 10.5px; -webkit-line-clamp: 1; }
  body.theme-aurora .top-content-layout { display: grid !important; grid-template-columns: 1fr !important; }
  body.theme-aurora .cover-column { max-width: 420px; width: 100%; margin-inline: auto; }
  body.theme-aurora .gallery-info-bar { grid-template-columns: 1fr !important; }
  body.theme-aurora .chapter-list { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body.theme-aurora .gallery-images { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.theme-aurora .mode-comic .gallery-images { grid-template-columns: 1fr !important; }
  body.theme-aurora .modal-content { width: calc(100% - 24px); }
  body.theme-aurora .modal-item { align-items: flex-start; }
}

@media (max-width: 420px) {
  body.theme-aurora .container { width: calc(100% - 12px); }
  body.theme-aurora .header-main-container { grid-template-columns: 38px minmax(0,1fr) 44px; gap: 0 6px; }
  body.theme-aurora .header-nav-list .nav-item > a { font-size: 10.5px; padding-inline: 2px; }
  body.theme-aurora .logo-main { width: min(160px,100%); }
  body.theme-aurora .search-form button { min-width: 92px; padding-inline: 8px; }
  body.theme-aurora .search-form button svg { display: none; }
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body.theme-aurora .topics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.theme-aurora .child-links-wrapper { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.theme-aurora .pagination-container button { min-width: 36px; min-height: 36px; padding-inline: 9px; font-size: 12px; }
  body.theme-aurora .chapter-list { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.theme-aurora .modal-item { flex-direction: column; }
  body.theme-aurora .modal-buttons { width: 100%; justify-content: flex-end; }
}
body.theme-aurora .aurora-section-note { margin: -10px 0 16px; color: var(--aurora-muted); font-size: 13px; }
body.theme-aurora .aurora-card-type {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 7px; border-radius: 999px;
  color: #fff; background: rgba(8,24,34,.74); font-size: 10px; line-height: 1.2; text-transform: uppercase;
}
body.theme-aurora .aurora-gallery-media { overflow: hidden; aspect-ratio: 546/298; background: var(--light-bg-color); }
body.theme-aurora .aurora-gallery-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.theme-aurora .aurora-empty-state,
body.theme-aurora .aurora-modal-loading,
body.theme-aurora .aurora-modal-error { padding: 32px 18px; text-align: center; color: var(--aurora-muted); }
body.theme-aurora .aurora-modal-error { color: #b42318; }
body.theme-aurora .modal-header p { margin: 6px 0 0; color: var(--aurora-muted); font-size: 13px; }
body.theme-aurora .header-tools { gap: 8px; }

/* Player recommendation overlays must never expand the mobile viewport. */
body.theme-aurora .video-player-container,
body.theme-aurora .player-wrapper,
body.theme-aurora .player-overlay,
body.theme-aurora #player-pause-overlay,
body.theme-aurora #player-ended-overlay {
  max-width: 100%;
  overflow: hidden;
}
body.theme-aurora .player-overlay .overlay-cards {
  display: grid !important;
  max-width: 100%;
}
body.theme-aurora .player-overlay .overlay-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body.theme-aurora .player-overlay .overlay-card-img,
body.theme-aurora .player-overlay .overlay-card-title {
  min-width: 0;
  max-width: 100%;
}


/* =========================================================
   Aurora 1.1: lightweight rendering + corrected responsive UI
   ========================================================= */
body.theme-aurora {
  background: var(--aurora-canvas);
}
body.theme-aurora .site-header,
body.theme-aurora .v1-ico-box,
body.theme-aurora .rankings-section,
body.theme-aurora .featured-topics-section,
body.theme-aurora .gallery-section,
body.theme-aurora .friend-links-section,
body.theme-aurora .category-nav-section,
body.theme-aurora .tags-card,
body.theme-aurora .main-content-area,
body.theme-aurora .magnet-content-container,
body.theme-aurora .novel-layout-container,
body.theme-aurora .gallery-layout-container,
body.theme-aurora .content-box,
body.theme-aurora .recommendation-section,
body.theme-aurora .related-videos-block,
body.theme-aurora .image-tags-section,
body.theme-aurora .magnet-trending-box {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.theme-aurora .drawer-overlay,
body.theme-aurora .player-overlay,
body.theme-aurora .modal-overlay,
body.theme-aurora .aurora-card-type {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.theme-aurora .ranking-item a,
body.theme-aurora .content-item,
body.theme-aurora .result-item,
body.theme-aurora .rec-item,
body.theme-aurora .topic-item,
body.theme-aurora .gallery-item,
body.theme-aurora .v1-ico-box img,
body.theme-aurora .v1-ico-box .v1-item-t,
body.theme-aurora .header-nav-list a,
body.theme-aurora .modal-action-btn {
  transition: none !important;
}
body.theme-aurora .ranking-item a:hover,
body.theme-aurora .content-item:hover,
body.theme-aurora .result-item:hover,
body.theme-aurora .rec-item:hover,
body.theme-aurora .topic-item:hover,
body.theme-aurora .gallery-item:hover,
body.theme-aurora .v1-ico-box .v1-item-a:hover img {
  transform: none !important;
}

/* Icon ads: the runtime script replaces #box-v1-icon's parent UL contents. */
body.theme-aurora .v1-ico-box > ul.v1-quick-wrap {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)) !important;
  align-items: start;
  justify-content: center;
  gap: 12px 8px !important;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.theme-aurora .v1-ico-box > ul.v1-quick-wrap > li {
  display: block !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.theme-aurora .v1-ico-box .v1-item-a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-height: 82px;
  padding: 6px 3px;
  background: transparent !important;
}
body.theme-aurora .v1-ico-box .v1-item-t {
  display: block;
  width: 100%;
  color: var(--aurora-ink) !important;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Balanced content counts: 12 topics = 6x2; 6 editor picks = 3x2. */
body.theme-aurora .topics-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
body.theme-aurora .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Symmetric colored divider on both sides of section titles. */
body.theme-aurora .featured-topics-section .section-title,
body.theme-aurora .gallery-section .section-title {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 10px !important;
}
body.theme-aurora .featured-topics-section .section-title::before,
body.theme-aurora .featured-topics-section .section-title::after,
body.theme-aurora .gallery-section .section-title::before,
body.theme-aurora .gallery-section .section-title::after {
  content: "";
  display: block !important;
  position: static;
  width: 100%;
  height: 2px;
  background: var(--aurora-primary);
  border-radius: 2px;
}
body.theme-aurora .featured-topics-section .section-title span::before,
body.theme-aurora .gallery-section .section-title span::before {
  display: none;
}
body.theme-aurora .featured-topics-section .section-title span,
body.theme-aurora .gallery-section .section-title span {
  white-space: nowrap;
}

/* Publication modal: compact, clear and touch friendly without blur. */
body.theme-aurora .modal-overlay {
  padding: 16px;
  background: rgba(4, 13, 20, .72) !important;
}
body.theme-aurora .modal-content {
  position: relative;
  width: min(100%, 520px);
  max-height: min(82vh, 720px);
  overflow: hidden;
  border: 1px solid var(--aurora-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
body.theme-aurora .modal-header {
  padding: 22px 56px 17px 22px;
  text-align: left;
  background: #eef7f6;
  border-bottom: 1px solid var(--aurora-border);
}
body.theme-aurora .modal-header h2 {
  margin: 0;
  color: var(--aurora-ink);
  font-size: 20px;
  line-height: 1.3;
}
body.theme-aurora .modal-header p {
  margin: 5px 0 0;
  color: var(--aurora-muted);
  font-size: 13px;
}
body.theme-aurora .modal-content > .modal-close-btn {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd8da;
  border-radius: 10px;
  color: #516476;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}
body.theme-aurora .modal-body {
  max-height: 56vh;
  overflow-y: auto;
  padding: 8px 20px;
  background: #fff;
}
body.theme-aurora .modal-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 12px;
  min-height: 68px;
  padding: 13px 2px;
  border: 0 !important;
  border-bottom: 1px solid #e8eff0 !important;
  background: #fff !important;
}
body.theme-aurora .modal-item:last-child { border-bottom: 0 !important; }
body.theme-aurora .modal-item-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  color: var(--aurora-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
body.theme-aurora .modal-bullet {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  overflow: hidden;
  color: transparent !important;
  border-radius: 50%;
  background: var(--aurora-primary);
}
body.theme-aurora .modal-item-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.theme-aurora .modal-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: auto !important;
}
body.theme-aurora .modal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
body.theme-aurora .copy-btn {
  color: #385064 !important;
  border: 1px solid #c8d6da !important;
  background: #f6f9fa !important;
}
body.theme-aurora .visit-btn {
  color: #fff !important;
  border: 1px solid var(--aurora-primary) !important;
  background: var(--aurora-primary) !important;
}
body.theme-aurora .modal-item-email {
  margin: 10px 0;
  padding: 14px !important;
  border: 1px solid #f2d2a4 !important;
  border-radius: 12px;
  background: #fff9ef !important;
}
body.theme-aurora .modal-footer {
  padding: 12px 20px 16px;
  background: #f6f9fa;
  border-top: 1px solid var(--aurora-border);
}
body.theme-aurora .bottom-close-btn {
  min-width: 112px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--aurora-ink) !important;
}

@media (max-width: 992px) {
  /* Do not make every .mobile-only element flex; drawer must remain a block. */
  body.theme-aurora .mobile-only { display: block !important; }
  body.theme-aurora .mobile-drawer-toggle,
  body.theme-aurora .header-tools-mobile { display: flex !important; }
  body.theme-aurora .drawer-overlay.mobile-only,
  body.theme-aurora .side-drawer.mobile-only { display: block !important; }

  body.theme-aurora .header-main-container {
    display: grid !important;
    padding: 0 !important;
  }
  body.theme-aurora .header-logo-row {
    display: contents !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
  }
  body.theme-aurora .logo-main {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  body.theme-aurora .header-nav {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.theme-aurora .header-nav-list.mobile-only {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100%;
    margin: 0 !important;
    padding: 3px 0 5px !important;
    gap: 4px !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 3px 2px !important;
    color: #dce9ed !important;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.055) !important;
    font-size: 11.5px !important;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  body.theme-aurora .drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99998 !important;
    margin: 0 !important;
    background: rgba(4,13,20,.68) !important;
  }
  body.theme-aurora .side-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 99999 !important;
    width: min(86vw, 320px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-102%);
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.theme-aurora .side-drawer.active { transform: translateX(0) !important; }
  body.theme-aurora .drawer-header,
  body.theme-aurora .drawer-body { width: 100%; }
  body.theme-aurora .drawer-body { display: block !important; padding: 12px !important; }
  body.theme-aurora .drawer-group-content { width: 100%; }

  body.theme-aurora .topics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  body.theme-aurora .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body.theme-aurora .topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.theme-aurora .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.theme-aurora .v1-ico-box > ul.v1-quick-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 9px 3px !important;
  }
  body.theme-aurora .v1-ico-box .v1-item-a { min-height: 72px; padding-inline: 1px; }
  body.theme-aurora .v1-ico-box img { width: 44px; height: 44px; }
  body.theme-aurora .v1-ico-box .v1-item-t { font-size: 10.5px; }
}

@media (max-width: 420px) {
  body.theme-aurora .header-main-container {
    grid-template-columns: 38px minmax(0, 1fr) 44px !important;
    grid-template-rows: 56px auto !important;
    gap: 0 6px !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a {
    min-height: 36px;
    font-size: 10.5px !important;
  }
  body.theme-aurora .modal-overlay { padding: 10px; }
  body.theme-aurora .modal-content { width: 100% !important; border-radius: 15px !important; }
  body.theme-aurora .modal-header { padding: 18px 50px 14px 16px; }
  body.theme-aurora .modal-header h2 { font-size: 18px; }
  body.theme-aurora .modal-body { padding: 6px 14px; }
  body.theme-aurora .modal-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 64px;
    gap: 8px;
    padding: 11px 0;
  }
  body.theme-aurora .modal-item-label { font-size: 13px; gap: 7px; }
  body.theme-aurora .modal-buttons { gap: 5px; }
  body.theme-aurora .modal-action-btn { min-width: 46px; min-height: 36px; padding: 0 9px; font-size: 12px; }
  body.theme-aurora .modal-item-email { margin: 8px 0; padding: 11px !important; }
  body.theme-aurora .modal-footer { padding: 10px 14px 14px; }
}

/* Reset legacy absolute-position modal rules so the dialog sizes to its content. */
body.theme-aurora .modal-overlay {
  align-items: center;
  justify-content: center;
}
body.theme-aurora .modal-content {
  flex: 0 1 520px;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  height: auto !important;
}
body.theme-aurora .drawer-overlay,
body.theme-aurora .side-drawer {
  transition: none !important;
}
body.theme-aurora a,
body.theme-aurora button,
body.theme-aurora img {
  transition: none !important;
}
body.theme-aurora .ranking-item a:hover img,
body.theme-aurora .content-item:hover img,
body.theme-aurora .result-item:hover img,
body.theme-aurora .topic-item:hover img,
body.theme-aurora .gallery-item:hover img {
  transform: none !important;
}

/* =========================================================
   Aurora 1.2: site routing, compact mobile UI and filter fixes
   ========================================================= */

/* Search: light, compact and responsive. */
body.theme-aurora .aurora-discovery-panel { margin-top: 8px; }
body.theme-aurora .search-section {
  margin: 0;
  padding: 9px;
  border: 1px solid var(--aurora-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--aurora-shadow-sm);
}
body.theme-aurora .search-section::before { display: none !important; content: none !important; }
body.theme-aurora .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.theme-aurora .search-input-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid #b9cccf;
  border-radius: 11px;
  background: #f5f9f9;
}
body.theme-aurora .search-input-shell > i {
  flex: 0 0 auto;
  color: var(--aurora-primary);
  font-size: 15px;
}
body.theme-aurora .search-form .search-input-shell input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 0 0 11px;
  border: 0;
  outline: 0;
  color: var(--aurora-ink);
  background: transparent;
  font-size: 15px;
}
body.theme-aurora .search-form .search-input-shell input[type="text"]::placeholder { color: #83939f; }
body.theme-aurora .search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--aurora-primary);
  border-radius: 11px;
  color: #fff;
  background: var(--aurora-primary);
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}
body.theme-aurora .search-form button:hover { background: var(--aurora-primary-strong); }
body.theme-aurora .search-form button i { color: inherit; font-size: 12px; }
body.theme-aurora .tags-section {
  margin: 5px 0 12px;
  padding: 10px 14px 12px;
  border: 1px solid var(--aurora-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--aurora-shadow-sm);
}

/* Hot-search controls follow the teal template palette. */
body.theme-aurora .toggle-tags-btn {
  color: var(--aurora-primary) !important;
  background: #e9f5f3 !important;
  border: 1px solid #a9d2cd !important;
  box-shadow: none !important;
}
body.theme-aurora .toggle-tags-btn:hover {
  color: #fff !important;
  background: var(--aurora-primary) !important;
  transform: none !important;
}

/* Helper-generated resource lines contain later inline CSS; these selectors intentionally
   use higher specificity so mobile labels cannot fall back to the legacy orange. */
html body.theme-aurora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a,
html body.theme-aurora .resource-lines-section .category-nav-grid a {
  color: var(--aurora-primary) !important;
  border-color: #aacdc9 !important;
  background: #fff !important;
}
html body.theme-aurora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a .desktop-name,
html body.theme-aurora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a .mobile-name,
html body.theme-aurora .resource-lines-section .category-nav-grid a .desktop-name,
html body.theme-aurora .resource-lines-section .category-nav-grid a .mobile-name {
  color: var(--aurora-primary) !important;
}
html body.theme-aurora .global-resource-lines-wrap .resource-lines-section .resource-lines-toggle,
html body.theme-aurora .resource-lines-section .resource-lines-toggle {
  color: var(--aurora-primary) !important;
  border-color: #aacdc9 !important;
  background: #fff !important;
}

/* Drawer starts with Resource Library; close control sits in that first title row. */
body.theme-aurora .side-drawer .drawer-body { padding-top: 12px !important; }
body.theme-aurora .drawer-group-primary { margin-top: 0 !important; }
body.theme-aurora .drawer-group-primary .drawer-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 9px;
  padding-bottom: 8px;
}
body.theme-aurora .drawer-group-primary #drawer-close-btn {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 18px;
  line-height: 1;
}

/* Desktop icon ads: exactly 15 compact slots per row. */
@media (min-width: 993px) {
  body.theme-aurora .v1-ico-box { padding: 10px 9px; }
  body.theme-aurora .v1-ico-box > ul.v1-quick-wrap {
    grid-template-columns: repeat(15, minmax(0, 1fr)) !important;
    gap: 7px 3px !important;
  }
  body.theme-aurora .v1-ico-box .v1-item-a {
    min-height: 74px;
    gap: 5px;
    padding: 4px 1px;
  }
  body.theme-aurora .v1-ico-box img { width: 46px; height: 46px; border-radius: 12px; }
  body.theme-aurora .v1-ico-box .v1-item-t {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 992px) {
  /* High-contrast mobile category buttons. */
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a {
    color: #fff !important;
    background: #173744 !important;
    border-color: #365765 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:active,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:hover {
    color: #fff !important;
    background: var(--aurora-primary) !important;
  }

  /* Mobile filter wrapping is defined in the max-width:768px rules above. */
}

@media (max-width: 768px) {
  body.theme-aurora main.container { padding-top: 3px; }
  body.theme-aurora .v1-bnr-box { margin-top: 0; padding-left: 0 !important; padding-right: 0 !important; }
  body.theme-aurora .v1-ico-box {
    margin: 2px 0 0;
    padding: 4px 2px 3px;
    border-radius: 9px;
    box-shadow: none;
  }
  body.theme-aurora .v1-ico-box > ul.v1-quick-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px 2px !important;
  }
  body.theme-aurora .v1-ico-box .v1-item-a { min-height: 68px; gap: 4px; padding: 2px 1px; }
  body.theme-aurora .top-promoted-container { margin-top: 2px; padding: 0 !important; }
  body.theme-aurora .aurora-discovery-panel { margin-top: 2px; }
  body.theme-aurora .search-section { margin-top: 2px; padding: 5px; border-radius: 10px; box-shadow: none; }
  body.theme-aurora .search-form { gap: 5px; min-height: 44px; }
  body.theme-aurora .search-input-shell { padding: 0 10px; border-radius: 9px; }
  body.theme-aurora .search-form .search-input-shell input[type="text"] {
    height: 42px;
    padding-left: 8px;
    font-size: 13.5px;
  }
  body.theme-aurora .search-form button {
    min-width: 76px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13px;
  }
  body.theme-aurora .search-submit-arrow { display: none; }
  body.theme-aurora .tags-section { margin-top: 3px; padding: 8px 10px 10px; border-radius: 10px; box-shadow: none; }

  /* Four complete friend links per row: 16px icon + five CJK characters fit at 360px. */
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.theme-aurora .top-links-grid li,
  body.theme-aurora .links-grid li { border: 1px solid var(--aurora-border) !important; }
  body.theme-aurora .top-links-grid li a,
  body.theme-aurora .links-grid li a {
    min-height: 34px;
    padding: 5px 2px !important;
    overflow: hidden;
  }
  body.theme-aurora .top-links-grid li a img,
  body.theme-aurora .links-grid li a img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
  }
  body.theme-aurora .top-links-grid li a .link-name,
  body.theme-aurora .links-grid li a .link-name {
    min-width: 0;
    font-size: 11px !important;
    line-height: 1.2;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 420px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a { font-size: 11px !important; }
  body.theme-aurora .search-form button { min-width: 70px; padding-inline: 8px; }
  body.theme-aurora .search-input-shell > i { font-size: 13px; }
}

/* =========================================================
   Aurora v1.4 targeted refinements
   ========================================================= */

/* Ranking capsules must not inherit global_v4.css underline pseudo-elements. */
body.theme-aurora .rankings-tabs.capsule-tabs {
  border-bottom: 1px solid var(--aurora-border) !important;
}
body.theme-aurora .rankings-tabs.capsule-tabs li::before,
body.theme-aurora .rankings-tabs.capsule-tabs li::after,
body.theme-aurora .rankings-tabs.capsule-tabs li.active::before,
body.theme-aurora .rankings-tabs.capsule-tabs li.active::after {
  content: none !important;
  display: none !important;
}

/* Keep home/category resource titles inside a strict two-line box. */
body.theme-aurora .ranking-item > a,
body.theme-aurora .ranking-item > a.aurora-media-card,
body.theme-aurora .content-item > a {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
body.theme-aurora .ranking-item-title,
body.theme-aurora .content-item-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  box-sizing: border-box !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  margin: 0 !important;
  padding: 10px 11px 12px !important;
  overflow: hidden !important;
  color: var(--aurora-ink) !important;
  font-size: 13px !important;
  line-height: 19px !important;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-overflow: ellipsis !important;
}

/* Detail action labels remain readable over the primary button background. */
body.theme-aurora a.scroll-to-btn,
body.theme-aurora a.scroll-to-btn:link,
body.theme-aurora a.scroll-to-btn:visited,
body.theme-aurora a.scroll-to-btn:hover,
body.theme-aurora a.scroll-to-btn:active,
body.theme-aurora a.scroll-to-btn:focus {
  color: #fff !important;
}

@media (max-width: 768px) {
  /* Ranking title and its two switches share one compact row. */
  body.theme-aurora .rankings-section .section-header {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  body.theme-aurora .rankings-section .section-header h2 {
    flex: 0 1 auto;
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
  }
  body.theme-aurora .rankings-section .capsule-tabs {
    display: inline-flex;
    flex: 0 0 auto;
    justify-self: auto;
    width: auto;
    max-width: none;
    padding: 3px;
    overflow: visible;
    border-radius: 10px;
  }
  body.theme-aurora .rankings-section .capsule-tabs li {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.2;
  }

  /* The mobile address button contains icon only; remove the hidden label's old gap. */
  body.theme-aurora .header-tools-mobile .home-path-button {
    display: grid !important;
    place-items: center !important;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    gap: 0 !important;
  }
  body.theme-aurora .header-tools-mobile .home-path-button .legacy-home-icon,
  body.theme-aurora .header-tools-mobile .home-path-button svg {
    display: block;
    margin: 0 !important;
  }

  body.theme-aurora .ranking-item-title,
  body.theme-aurora .content-item-title,
  body.theme-aurora.page-cat-dongtu .content-item-title {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 8px 9px 10px !important;
    font-size: 12.5px !important;
    line-height: 18px !important;
  }
}
/* =========================================================
   Aurora v1.5: home/category title truncation fix
   ========================================================= */

/*
 * 多行截断元素本身不能带上下 padding，
 * 否则第三行文字可能从 padding 区域露出。
 * 卡片留白改用 margin，卡片总高度保持不变。
 */
body.theme-aurora .ranking-item-title,
body.theme-aurora .content-item-title,
body.theme-aurora.page-cat-dongtu .content-item-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2;

  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;

  margin: 10px 11px 12px !important;
  padding: 0 !important;

  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: ellipsis !important;

  color: var(--aurora-ink) !important;
  font-size: 13px !important;
  line-height: 19px !important;

  word-break: break-all !important;
  overflow-wrap: anywhere !important;

  box-sizing: border-box !important;
  flex: 0 0 38px !important;
}

/* 防止标题内部链接继承块级高度或内边距 */
body.theme-aurora .ranking-item-title > a,
body.theme-aurora .content-item-title > a,
body.theme-aurora.page-cat-dongtu .content-item-title > a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
  word-break: inherit !important;
  overflow-wrap: inherit !important;
}

/* 卡片和链接容器禁止标题内容溢出 */
body.theme-aurora .ranking-item,
body.theme-aurora .ranking-item > a,
body.theme-aurora .ranking-item > a.aurora-media-card,
body.theme-aurora .content-item,
body.theme-aurora .content-item > a {
  min-width: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  body.theme-aurora .ranking-item-title,
  body.theme-aurora .content-item-title,
  body.theme-aurora.page-cat-dongtu .content-item-title {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;

    margin: 8px 9px 10px !important;
    padding: 0 !important;

    font-size: 12.5px !important;
    line-height: 18px !important;
    flex: 0 0 36px !important;
  }
}

/* =========================================================
   Aurora 漫画阅读修复
   仅作用于 mode-comic / comic-page，不影响普通美图
   ========================================================= */
body.theme-aurora .gallery-layout-container.mode-comic .gallery-images {
  display: block !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 25px auto 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body.theme-aurora .gallery-layout-container.mode-comic .gallery-item.comic-page {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transform: none !important;
}

body.theme-aurora .gallery-layout-container.mode-comic .gallery-item.comic-page img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.theme-aurora .gallery-layout-container.mode-comic .gallery-item.comic-page:hover,
body.theme-aurora .gallery-layout-container.mode-comic .gallery-item.comic-page:hover img {
  transform: none !important;
  box-shadow: none !important;
}



/* ===== Release 1.6.0: requested Aurora corrections ===== */
/* Desktop: cancel the global dropdown anchor negative margin and allow the flyout to escape the nav rail. */
@media (min-width: 993px) {
  body.theme-aurora .header-nav {
    overflow: visible !important;
  }
  body.theme-aurora .header-nav-list.pc-only .nav-item.has-dropdown > a {
    margin-bottom: 0 !important;
    min-height: 40px !important;
  }
  body.theme-aurora .header-nav-list.pc-only .nav-item.has-dropdown .dropdown-menu {
    z-index: 10020 !important;
  }
}

/* Mobile: seven actual nav items must stay on one row; use the Aurora teal palette. */
@media (max-width: 992px) {
  body.theme-aurora .header-nav-list.mobile-only {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 4px 0 6px !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a {
    min-height: 32px !important;
    padding: 3px 1px !important;
    color: #e9fffb !important;
    background: rgba(15, 118, 110, .26) !important;
    border-color: rgba(45, 212, 191, .30) !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:hover,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:focus {
    color: #fff !important;
    background: rgba(15, 118, 110, .52) !important;
    border-color: rgba(94, 234, 212, .58) !important;
  }

  /* The drawer button exists in both Aurora headers; force its visibility in the mobile grid. */
  body.theme-aurora .mobile-drawer-toggle.mobile-only {
    display: grid !important;
    place-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 20 !important;
    color: #ecfffb !important;
    background: rgba(15, 118, 110, .62) !important;
    border-color: rgba(94, 234, 212, .42) !important;
  }
  body.theme-aurora .mobile-drawer-toggle .fa-bars {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }
}

/* Friend links: three columns give an icon + six CJK characters enough room at phone widths. */
@media (max-width: 768px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  body.theme-aurora .top-links-grid li a,
  body.theme-aurora .links-grid li a {
    min-height: 36px !important;
    padding: 5px 5px !important;
  }
  body.theme-aurora .top-links-grid li a .link-name,
  body.theme-aurora .links-grid li a .link-name {
    max-width: 6.5em !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (max-width: 420px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Homepage ranking badge: ordinal, not the literal "video/videos" type label. */
body.theme-aurora .aurora-rank-number {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: rgba(17,94,89,.92) !important;
  box-shadow: 0 4px 10px rgba(6,45,42,.22) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
}
body.theme-aurora .ranking-item:nth-child(1) .aurora-rank-number {
  background: #b86b08 !important;
}
body.theme-aurora .ranking-item:nth-child(2) .aurora-rank-number,
body.theme-aurora .ranking-item:nth-child(3) .aurora-rank-number {
  background: var(--aurora-primary) !important;
}

/* Video detail: replace the purple notice/ad strip and make section heading contrast calm and consistent. */
body.theme-aurora a#box-v1-special,
body.theme-aurora .v1-notice-bar {
  color: #f4fffd !important;
  background: var(--aurora-primary-strong) !important;
  border-color: rgba(255,255,255,.10) !important;
}
body.theme-aurora .sidebar-area h2,
body.theme-aurora .related-videos-block h2,
body.theme-aurora .magnet-trending-box h2 {
  color: var(--aurora-primary-strong) !important;
  background: #edf7f5 !important;
  border-color: #c7e4df !important;
  text-shadow: none !important;
}

/* Magnet/novel recommendation titles: enforce the same two-line clamp even against inline height rules. */
body.theme-aurora .recommendation-section .rec-item .rec-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  height: 2.8em !important;
  min-height: 2.8em !important;
  max-height: 2.8em !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-all !important;
  box-sizing: content-box !important;
}


/* =========================================================
   Aurora v1.7.0: 2026-09-13 second-pass corrections
   ========================================================= */

/* Desktop dropdown: remove the white rotated square from global_v4.css. */
body.theme-aurora .dropdown-menu::before {
  content: none !important;
  display: none !important;
}

/* Keep the dropdown fully in the Aurora dark/teal palette and make hover text readable. */
@media (min-width: 769px) {
  body.theme-aurora .header-nav {
    overflow: visible !important;
  }
  body.theme-aurora .header-nav-list.pc-only .nav-item.has-dropdown > a {
    margin-bottom: 0 !important;
    min-height: 40px !important;
  }
  body.theme-aurora .header-nav-list.pc-only .nav-item.has-dropdown .dropdown-menu {
    z-index: 10020 !important;
    background: #142936 !important;
  }
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu a {
    color: #dbe8ec !important;
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(255,255,255,.06) !important;
    transform: none !important;
  }
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu a:hover,
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu a:focus {
    color: #fff !important;
    background: var(--aurora-primary) !important;
    border-color: var(--aurora-primary) !important;
    transform: none !important;
  }
}

/* Mobile nav and drawer button use exactly the same main color as the Search button. */
@media (max-width: 768px) {
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a,
  body.theme-aurora .mobile-drawer-toggle.mobile-only {
    color: #fff !important;
    background: var(--aurora-primary) !important;
    border-color: var(--aurora-primary) !important;
    box-shadow: none !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:hover,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:focus,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:active,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:hover,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:focus,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:active {
    color: #fff !important;
    background: var(--aurora-primary-strong) !important;
    border-color: var(--aurora-primary-strong) !important;
  }
}

/* Friend links: desktop 8 per row; phone 4 per row; icon + at most five CJK characters. */
@media (min-width: 769px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
  }
  body.theme-aurora .top-links-grid li a,
  body.theme-aurora .links-grid li a {
    min-height: 34px !important;
    padding: 5px 2px !important;
    overflow: hidden !important;
  }
  body.theme-aurora .top-links-grid li a img,
  body.theme-aurora .links-grid li a img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 3px !important;
    flex: 0 0 16px !important;
  }
  body.theme-aurora .top-links-grid li a .link-name,
  body.theme-aurora .links-grid li a .link-name {
    min-width: 0 !important;
    width: auto !important;
    max-width: 5em !important;
    flex: 0 1 auto !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (max-width: 420px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Local-only ranking badges: #1 crown, #2/#3 medal, the rest compact number chips. */
body.theme-aurora .aurora-rank-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 4 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
body.theme-aurora .aurora-rank-badge.is-crown {
  width: 34px !important;
  height: 31px !important;
  border: 1px solid rgba(255,255,255,.70) !important;
  border-radius: 10px !important;
  color: #fff7cf !important;
  background: linear-gradient(145deg, rgba(132,78,3,.96), rgba(211,145,29,.96)) !important;
  box-shadow: 0 5px 12px rgba(87,51,0,.30), inset 0 1px 0 rgba(255,255,255,.24) !important;
}
body.theme-aurora .aurora-rank-badge.is-crown svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  filter: drop-shadow(0 1px 1px rgba(85,44,0,.35));
}
body.theme-aurora .aurora-rank-crown-num {
  position: absolute !important;
  right: -4px !important;
  bottom: -5px !important;
  display: grid !important;
  place-items: center !important;
  width: 15px !important;
  height: 15px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 50% !important;
  color: #6b4100 !important;
  background: #fff3bd !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
body.theme-aurora .aurora-rank-badge.is-medal {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow: 0 5px 12px rgba(5,35,33,.24), inset 0 1px 0 rgba(255,255,255,.34) !important;
}
body.theme-aurora .aurora-rank-badge.is-medal::before,
body.theme-aurora .aurora-rank-badge.is-medal::after {
  content: '' !important;
  position: absolute !important;
  bottom: -7px !important;
  width: 8px !important;
  height: 11px !important;
  z-index: -1 !important;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 50% 75%, 24% 100%) !important;
}
body.theme-aurora .aurora-rank-badge.is-medal::before { left: 5px !important; }
body.theme-aurora .aurora-rank-badge.is-medal::after { right: 5px !important; }
body.theme-aurora .aurora-rank-badge.rank-2 {
  color: #42505b !important;
  background: linear-gradient(145deg, #f8fbfd, #aab8c2) !important;
}
body.theme-aurora .aurora-rank-badge.rank-2::before,
body.theme-aurora .aurora-rank-badge.rank-2::after { background: #8e9ba5 !important; }
body.theme-aurora .aurora-rank-badge.rank-3 {
  color: #fff7ee !important;
  background: linear-gradient(145deg, #d79661, #8b4e28) !important;
}
body.theme-aurora .aurora-rank-badge.rank-3::before,
body.theme-aurora .aurora-rank-badge.rank-3::after { background: #8b4e28 !important; }
body.theme-aurora .aurora-rank-medal-num {
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.22) !important;
}
body.theme-aurora .aurora-rank-badge.is-number {
  min-width: 27px !important;
  height: 27px !important;
  padding: 0 6px !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 9px !important;
  color: #edfffc !important;
  background: rgba(17,94,89,.92) !important;
  box-shadow: 0 4px 10px rgba(6,45,42,.22) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

/* Detail cards: padding on a -webkit-line-clamp element can reveal line 3.
   Put spacing in margin instead, and make the clamp box exactly two line-heights. */
body.theme-aurora .recommendation-section .rec-item .rec-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2;
  margin: 8px 10px 10px !important;
  padding: 0 !important;
  height: 2.8em !important;
  min-height: 2.8em !important;
  max-height: 2.8em !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

/* =========================================================
   Aurora v1.8.0 — code-verified refinements
   This block intentionally comes last so it wins against
   earlier Aurora rules and template-local normal declarations.
   ========================================================= */

/* 1) Desktop dropdown: retain V2 fixes exactly. */
@media (min-width: 993px) {
  body.theme-aurora .header-nav {
    overflow: visible !important;
  }
  body.theme-aurora .header-nav-list.pc-only .nav-item.has-dropdown > a {
    margin-bottom: 0 !important;
    min-height: 40px !important;
  }
  body.theme-aurora .header-nav-list.pc-only .nav-item.has-dropdown .dropdown-menu {
    z-index: 10020 !important;
    background: #142936 !important;
  }
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu::before {
    content: none !important;
    display: none !important;
  }
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu a {
    color: #dbe8ec !important;
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(255,255,255,.06) !important;
    transform: none !important;
  }
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu a:hover,
  body.theme-aurora .header-nav-list.pc-only .dropdown-menu a:focus {
    color: #fff !important;
    background: var(--aurora-primary) !important;
    border-color: var(--aurora-primary) !important;
    transform: none !important;
  }
}

/* 2) Mobile nav: seven buttons on one row; transparent buttons with only a teal outline.
      Drawer has no background/border; only the bars use the Aurora teal accent. */
@media (max-width: 992px) {
  body.theme-aurora .header-nav-list.mobile-only {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 4px 0 6px !important;
  }
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:hover,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:focus,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:active {
    min-height: 32px !important;
    padding: 3px 1px !important;
    color: #e9fffb !important;
    background: transparent !important;
    border: 1px solid rgba(45, 212, 191, .68) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-shadow: none !important;
  }
  body.theme-aurora .mobile-drawer-toggle.mobile-only,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:hover,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:focus,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:active {
    display: grid !important;
    place-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 20 !important;
    color: #2dd4bf !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  body.theme-aurora .mobile-drawer-toggle .fa-bars {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #2dd4bf !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }
}

/* 3) Friend links: desktop 8/row; mobile 4/row; icon + at most five CJK characters. */
@media (min-width: 769px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  body.theme-aurora .top-links-grid,
  body.theme-aurora .links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
  }
  body.theme-aurora .top-links-grid li a,
  body.theme-aurora .links-grid li a {
    min-height: 34px !important;
    padding: 5px 2px !important;
    overflow: hidden !important;
  }
  body.theme-aurora .top-links-grid li a img,
  body.theme-aurora .links-grid li a img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 3px !important;
    flex: 0 0 16px !important;
  }
  body.theme-aurora .top-links-grid li a .link-name,
  body.theme-aurora .links-grid li a .link-name {
    min-width: 0 !important;
    width: auto !important;
    max-width: 5em !important;
    flex: 0 1 auto !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* 4) Homepage ranking: derive real 1..N from the DOM order; no generator variable and no remote icon.
      1/2/3 are matching gold/silver/bronze medals; 4+ are neutral translucent chips. */
body.theme-aurora .ranking-grid {
  counter-reset: aurora-home-rank;
}
body.theme-aurora .ranking-grid > .ranking-item {
  counter-increment: aurora-home-rank;
}
body.theme-aurora .ranking-item-cover {
  position: relative !important;
}
body.theme-aurora .ranking-item-cover::before {
  content: counter(aurora-home-rank) !important;
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 5 !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  min-width: 27px !important;
  height: 27px !important;
  padding: 0 6px !important;
  border: 1px solid rgba(255,255,255,.48) !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: rgba(10, 17, 23, .46) !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.18) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  pointer-events: none !important;
}
body.theme-aurora .ranking-item-cover::after {
  content: none !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(-n+3) .ranking-item-cover::before {
  width: 31px !important;
  min-width: 31px !important;
  height: 31px !important;
  padding: 0 !important;
  border-width: 2px !important;
  border-radius: 50% !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.24) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.24), inset 0 1px 1px rgba(255,255,255,.55) !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(-n+3) .ranking-item-cover::after {
  content: "" !important;
  position: absolute !important;
  top: 31px !important;
  left: 14px !important;
  z-index: 4 !important;
  width: 19px !important;
  height: 11px !important;
  clip-path: polygon(0 0, 42% 0, 50% 100%, 58% 0, 100% 0, 77% 100%, 50% 72%, 23% 100%) !important;
  pointer-events: none !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(1) .ranking-item-cover::before {
  color: #6d4700 !important;
  border-color: #fff1a8 !important;
  background: radial-gradient(circle at 35% 30%, #fff6b7 0 10%, #f9d95b 36%, #d89a0b 72%, #a66c00 100%) !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(1) .ranking-item-cover::after {
  background: #d89a0b !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(2) .ranking-item-cover::before {
  color: #46515a !important;
  border-color: #f7fbfd !important;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 10%, #dde5ea 38%, #a9b4bc 74%, #7f8b94 100%) !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(2) .ranking-item-cover::after {
  background: #a9b4bc !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(3) .ranking-item-cover::before {
  color: #fff7ef !important;
  border-color: #f0bd95 !important;
  background: radial-gradient(circle at 35% 30%, #f1bd92 0 10%, #c77a45 40%, #9a542c 74%, #6f371d 100%) !important;
}
body.theme-aurora .ranking-grid > .ranking-item:nth-child(3) .ranking-item-cover::after {
  background: #a95f34 !important;
}

/* 5) Selected Topics / Editor Picks: force the title text itself onto the exact center line. */
body.theme-aurora .featured-topics-section .section-title,
body.theme-aurora .gallery-section .section-title {
  width: 100% !important;
  text-align: center !important;
}
body.theme-aurora .featured-topics-section .section-title > span,
body.theme-aurora .gallery-section .section-title > span {
  justify-self: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}

/* 6) The actual "展开更多" button in 全网资源线路 is .resource-lines-toggle. */
body.theme-aurora .resource-lines-section .resource-lines-toggle,
body.theme-aurora .resource-lines-toggle {
  font-size: 13px !important;
}

/* 7) Video detail image-tag cards: round image; label is INSIDE the image at the bottom. */
body.theme-aurora .image-tags-grid .image-tag-card {
  position: relative !important;
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--aurora-border) !important;
  border-radius: 50% !important;
  background: #dce9e7 !important;
  box-shadow: none !important;
}
body.theme-aurora .image-tags-grid .image-tag-card:hover {
  transform: none !important;
  border-color: #8fbdb7 !important;
  box-shadow: none !important;
}
body.theme-aurora .image-tags-grid .image-tag-card__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
body.theme-aurora .image-tags-grid .image-tag-card__text {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 15px 4px 5px !important;
  overflow: hidden !important;
  color: #fff !important;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.72)) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.70) !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* 8) Novel detail: only the first four metadata rows (作者/分类/更新/浏览) move inward. */
body.theme-aurora .novel-layout-container .details-sidebar > .detail-item:nth-child(-n+4) {
  padding-left: 18px !important;
  padding-right: 8px !important;
}
@media (max-width: 768px) {
  body.theme-aurora .novel-layout-container .details-sidebar > .detail-item:nth-child(-n+4) {
    padding-left: 12px !important;
  }
}

/* 9) Gallery detail: replace the remaining purple marquee with Aurora teal. */
body.theme-aurora .gallery-layout-container .gallery-marquee-box {
  border-left-color: var(--aurora-primary) !important;
  background: #edf7f5 !important;
}
body.theme-aurora .gallery-layout-container .gallery-marquee-box #marquee-link {
  color: var(--aurora-primary) !important;
}

/* 10) Category/search 最新/热门 tabs: Aurora teal instead of ink/black. */
body.theme-aurora .sort-tabs button {
  color: var(--aurora-primary-strong) !important;
}
body.theme-aurora .sort-tabs button.active {
  color: #fff !important;
  background: var(--aurora-primary) !important;
  border-color: var(--aurora-primary) !important;
  box-shadow: none !important;
}
body.theme-aurora .sort-tabs button:not(.active):hover,
body.theme-aurora .sort-tabs button:not(.active):focus {
  color: var(--aurora-primary-strong) !important;
  background: #eaf6f4 !important;
}

/* 11) Apply-friend-link button: Aurora teal across Aurora pages. */
body.theme-aurora .btn-apply-link,
body.theme-aurora .btn-apply-link:visited {
  color: #fff !important;
  background: var(--aurora-primary) !important;
  border-color: var(--aurora-primary) !important;
}
body.theme-aurora .btn-apply-link:hover,
body.theme-aurora .btn-apply-link:focus {
  color: #fff !important;
  background: var(--aurora-primary-strong) !important;
  border-color: var(--aurora-primary-strong) !important;
}

/* =========================================================
   Aurora v1.9.0 — final alignment + mobile outline correction
   Code-verified against title-style-2 and the actual search button color.
   ========================================================= */

/* Selected Topics / Editor Picks:
   global_v4.css gives .title-style-2 > span display:flex;width:100%
   and creates its own span::before/span::after lines. Reset those legacy
   pieces so the center grid owns both divider lines and the text sits on
   the exact center axis. Center the explanatory note as well. */
body.theme-aurora .featured-topics-section .section-title,
body.theme-aurora .gallery-section .section-title {
  display: grid !important;
  grid-template-columns: minmax(24px, 1fr) max-content minmax(24px, 1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
  text-align: center !important;
}
body.theme-aurora .featured-topics-section .section-title > span,
body.theme-aurora .gallery-section .section-title > span {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  justify-self: center !important;
  text-align: center !important;
  background: transparent !important;
}
body.theme-aurora .featured-topics-section .section-title > span::before,
body.theme-aurora .featured-topics-section .section-title > span::after,
body.theme-aurora .gallery-section .section-title > span::before,
body.theme-aurora .gallery-section .section-title > span::after {
  content: none !important;
  display: none !important;
}
body.theme-aurora .featured-topics-section .aurora-section-note,
body.theme-aurora .gallery-section .aurora-section-note {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: -4px auto 16px !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Mobile header:
   transparent category buttons, but both label and outline use the exact
   same --aurora-primary value as .search-form button (#0f766e).
   Drawer remains background-free; only its bars carry the same color. */
@media (max-width: 992px) {
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:hover,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:focus,
  body.theme-aurora .header-nav-list.mobile-only .nav-item > a:active {
    color: var(--aurora-primary) !important;
    background: transparent !important;
    border-color: var(--aurora-primary) !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  body.theme-aurora .mobile-drawer-toggle.mobile-only,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:hover,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:focus,
  body.theme-aurora .mobile-drawer-toggle.mobile-only:active {
    color: var(--aurora-primary) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  body.theme-aurora .mobile-drawer-toggle .fa-bars {
    color: var(--aurora-primary) !important;
    opacity: 1 !important;
  }
}

