/*
 * NEXORA template skin
 * Scope: factory/templates/nexora
 * Visual language: high-contrast black / white / graphite, flat and lightweight.
 * No external dependencies and no changes to global_v4.css.
 */

:root {
  --nx-primary: #151515;
  --nx-primary-strong: #000000;
  --nx-primary-soft: #eeeeee;
  --nx-accent: #3a3a3a;
  --nx-accent-strong: #222222;
  --nx-accent-soft: #f0f0f0;
  --nx-night: #111111;
  --nx-night-2: #242424;
  --nx-bg: #f3f3f3;
  --nx-surface: #ffffff;
  --nx-surface-soft: #f7f7f7;
  --nx-text: #111111;
  --nx-text-2: #444444;
  --nx-muted: #777777;
  --nx-border: #dedede;
  --nx-border-strong: #c8c8c8;
  --nx-danger: #222222;
  --nx-warning: #555555;
  --nx-shadow-sm: none;
  --nx-shadow-md: none;
  --nx-shadow-lg: none;
  --nx-r-sm: 4px;
  --nx-r-md: 6px;
  --nx-r-lg: 8px;
  --nx-r-xl: 10px;
  --nx-space-1: 6px;
  --nx-space-2: 10px;
  --nx-space-3: 14px;
  --nx-space-4: 18px;
  --nx-space-5: 24px;
  --nx-space-6: 32px;
}

html { box-sizing: border-box; max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: inherit; }
body.theme-nexora {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--nx-bg) !important;
  color: var(--nx-text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.theme-nexora img,
body.theme-nexora video,
body.theme-nexora iframe { max-width: 100%; }
body.theme-nexora a { color: inherit; }
body.theme-nexora button,
body.theme-nexora input,
body.theme-nexora select { font: inherit; }
body.theme-nexora .container {
  width: min(1320px, calc(100% - 32px)) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.theme-nexora .nexora-main { padding-top: 18px !important; padding-bottom: 34px !important; }
body.theme-nexora .mobile-only { display: none !important; }
body.theme-nexora .pc-only { display: flex !important; }
body.theme-nexora .nexora-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nx-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Header */
body.theme-nexora .site-header.nexora-header,
body.theme-nexora .site-header {
  background: var(--nx-night) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(23,23,23,.16) !important;
  padding: 0 !important;
  position: relative;
  z-index: 100;
}
body.theme-nexora .header-main-container {
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 10px 0 !important;
}
body.theme-nexora .header-logo-row { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; }
body.theme-nexora .logo-main { display: flex; align-items: center; min-width: 0; }
body.theme-nexora .logo-main img {
  display: block;
  width: auto !important;
  max-width: 196px !important;
  height: 42px !important;
  object-fit: contain;
  object-position: left center;
}
body.theme-nexora .header-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
body.theme-nexora .header-nav-list.pc-only {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(10px, 1.35vw, 22px) !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  list-style: none;
}
body.theme-nexora .header-nav-list.pc-only > .nav-item { flex: 0 0 auto !important; margin: 0 !important; }
body.theme-nexora .header-nav-list.pc-only > .nav-item > a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px;
  padding: 7px 2px !important;
  color: #e4e4e4 !important;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  text-decoration: none;
  white-space: nowrap !important;
  transition: color .18s ease, background .18s ease;
}
body.theme-nexora .header-nav-list.pc-only > .nav-item > a:hover,
body.theme-nexora .header-nav-list.pc-only > .nav-item > a:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
}
body.theme-nexora .header-tools { flex: 0 0 auto; }
body.theme-nexora .nav-orange-btn,
body.theme-nexora .home-path-button {
  border: 1px solid rgba(255,255,255,.16) !important;
  background: linear-gradient(135deg, var(--nx-primary), #7f7f7f) !important;
  color: #fff !important;
  border-radius: 11px !important;
  min-height: 40px;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  box-shadow: 0 7px 18px rgba(102,102,102,.26) !important;
  white-space: nowrap !important;
}
body.theme-nexora .nav-orange-btn:hover,
body.theme-nexora .home-path-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.theme-nexora .legacy-home-icon { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 5px; }

/* Mobile drawer */
body.theme-nexora .drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8,8,8,.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
body.theme-nexora .drawer-overlay.active { opacity: 1; visibility: visible; }
body.theme-nexora .side-drawer {
  position: fixed;
  z-index: 1110;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 334px);
  max-width: 334px;
  overflow-y: auto;
  background: #fff;
  transform: translateX(-104%);
  transition: transform .24s ease;
  box-shadow: 24px 0 60px rgba(23,23,23,.28);
}
body.theme-nexora .side-drawer.active { transform: translateX(0); }
body.theme-nexora .drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 18px 18px;
  background: var(--nx-night);
  color: #fff;
}
body.theme-nexora .drawer-kicker { display: block; color: #dadada; font-size: 10px; font-weight: 900; letter-spacing: .18em; margin-bottom: 5px; }
body.theme-nexora .drawer-header h3 { margin: 0; font-size: 18px; }
body.theme-nexora #drawer-close-btn {
  width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.09); color: #fff; cursor: pointer;
}
body.theme-nexora .drawer-body { padding: 14px; }
body.theme-nexora .drawer-group { border: 1px solid var(--nx-border); border-radius: 13px; background: #fff; padding: 12px; margin-bottom: 10px; }
body.theme-nexora .drawer-group-title { color: var(--nx-text); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
body.theme-nexora .drawer-group-content { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
body.theme-nexora .drawer-group-content a { min-width: 0; padding: 8px 9px; border-radius: 9px; background: var(--nx-surface-soft); color: var(--nx-text-2); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }

/* Shared hero/ad zones */
body.theme-nexora .nexora-hero-stack { display: grid; gap: 12px; margin-bottom: 12px; }
body.theme-nexora .nexora-hero-stack.compact { margin-bottom: 10px; }
body.theme-nexora .nexora-banner-zone,
body.theme-nexora .v1-bnr-box {
  overflow: hidden;
  border-radius: var(--nx-r-lg) !important;
}
body.theme-nexora .v1-bnr-box img,
body.theme-nexora .promo-top-box img { display: block; width: 100% !important; border-radius: var(--nx-r-lg) !important; }
body.theme-nexora .nexora-quick-zone,
body.theme-nexora .v1-ico-box {
  margin-top: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-r-lg);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-sm);
}
body.theme-nexora .v1-ico-box ul,
body.theme-nexora .v1-quick-wrap {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0,1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.theme-nexora .v1-ico-box li,
body.theme-nexora .v1-item-li { min-width: 0; }
body.theme-nexora .v1-ico-box .v1-item-a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0;
  color: var(--nx-text-2) !important;
  text-decoration: none;
}
body.theme-nexora .v1-ico-box img,
body.theme-nexora .promo-icon-box {
  width: 56px !important;
  height: 56px !important;
  max-width: 100%;
  object-fit: cover;
  border-radius: 16px !important;
  box-shadow: none !important;
  border: 1px solid rgba(23,23,23,.06);
}
body.theme-nexora .v1-ico-box .v1-item-t {
  width: 100% !important;
  min-width: 0;
  color: var(--nx-text-2) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
body.theme-nexora .v1-ico-box .v1-item-a:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,23,23,.09) !important; }

/* Promoted / friend links */
body.theme-nexora .top-promoted-container { margin: 10px 0 0; }
body.theme-nexora .top-links-grid,
body.theme-nexora .links-grid {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0,1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.theme-nexora .top-links-grid li,
body.theme-nexora .links-grid li {
  min-width: 0;
  margin: 0 !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  transition: border-color .16s ease, transform .16s ease;
}
body.theme-nexora .top-links-grid li:hover,
body.theme-nexora .links-grid li:hover { background: #fff !important; border-color: #cacaca !important; transform: translateY(-1px); }
body.theme-nexora .top-links-grid li a,
body.theme-nexora .links-grid li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0;
  padding: 7px 8px !important;
  color: var(--nx-text-2) !important;
  font-size: 12px !important;
  text-decoration: none;
}
body.theme-nexora .top-links-grid li a img,
body.theme-nexora .links-grid li a img { width: 16px !important; height: 16px !important; flex: 0 0 16px; object-fit: contain; border-radius: 3px; }
body.theme-nexora .top-links-grid .link-name,
body.theme-nexora .links-grid .link-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Discovery/search */
body.theme-nexora .nexora-discovery-stack { display: grid; gap: 10px; margin-bottom: 16px; }
body.theme-nexora .search-section.nexora-discovery,
body.theme-nexora .search-section {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: var(--nx-r-lg);
  background: linear-gradient(135deg, #1a1a1a 0%, #262626 58%, #363636 100%);
  box-shadow: var(--nx-shadow-md);
}
body.theme-nexora .nexora-discovery-head {
  display: grid;
  grid-template-columns: minmax(220px,.65fr) minmax(360px,1.35fr);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
}
body.theme-nexora .nexora-discovery-copy { display: grid; gap: 4px; min-width: 0; color: #fff; }
body.theme-nexora .nexora-discovery-copy .nexora-eyebrow { color: #cfcfcf; }
body.theme-nexora .nexora-discovery-copy strong { font-size: clamp(17px,1.5vw,22px); line-height: 1.3; }
body.theme-nexora .search-form {
  min-width: 0;
  display: flex !important;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: none !important;
}
body.theme-nexora .search-form input[type="text"] {
  width: 0;
  min-width: 0;
  flex: 1 1 auto;
  border: 0 !important;
  outline: 0;
  padding: 13px 15px !important;
  background: transparent;
  color: var(--nx-text);
  font-size: 14px !important;
}
body.theme-nexora .search-form button {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border: 0 !important;
  background: var(--nx-primary) !important;
  color: #fff !important;
  padding: 0 20px !important;
  font-size: 13px !important;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
body.theme-nexora .search-form button svg { width: 16px !important; height: 16px !important; fill: #fff !important; }
body.theme-nexora .tags-section.nexora-tag-deck,
body.theme-nexora .tags-section {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-r-lg) !important;
  background: var(--nx-surface) !important;
  box-shadow: var(--nx-shadow-sm);
}
body.theme-nexora .tag-group { padding: 5px 0 !important; }
body.theme-nexora .tag-list { display: flex !important; flex-wrap: wrap !important; align-items: center; gap: 7px 8px !important; }
body.theme-nexora .tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 9px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 999px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
  font-size: 12px !important;
  line-height: 1.2;
  text-decoration: none;
}
body.theme-nexora .tag-list a:hover { border-color: #c3c3c3 !important; background: var(--nx-primary-soft) !important; color: var(--nx-primary-strong) !important; }
body.theme-nexora .tag-list .tag-group-title-item {
  border: 0 !important;
  background: transparent !important;
  color: var(--nx-text) !important;
  padding-left: 0 !important;
  font-weight: 850 !important;
}
body.theme-nexora .tag-cloud-entry-btn { border-color: #d4d4d4 !important; background: var(--nx-accent-soft) !important; color: var(--nx-accent-strong) !important; font-weight: 800; }
body.theme-nexora .toggle-tags-btn {
  min-height: 29px;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 5px 11px !important;
  background: var(--nx-night) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 750;
}
body.theme-nexora .tags-section #tag-groups-wrapper .tag-group ~ .tag-group { border-top-color: var(--nx-border) !important; }

/* Cached resource lines (detail pages / shared) */
body.theme-nexora .global-resource-lines-wrap { margin: 12px 0 14px; }
body.theme-nexora .resource-lines-section,
body.theme-nexora .resource-lines-box,
body.theme-nexora [class*="resource-lines"] {
  border-color: var(--nx-border) !important;
}
body.theme-nexora .resource-lines-section {
  margin: 0 !important;
  padding: 15px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-r-lg) !important;
  background: var(--nx-surface) !important;
  box-shadow: var(--nx-shadow-sm) !important;
}
body.theme-nexora .resource-lines-section h2,
body.theme-nexora .resource-lines-section h3,
body.theme-nexora .resource-lines-title { color: var(--nx-text) !important; border-color: var(--nx-border) !important; }
body.theme-nexora .resource-lines-section a,
body.theme-nexora .resource-line-item a,
body.theme-nexora .resource-lines-grid a {
  color: var(--nx-primary-strong) !important;
  border-color: #d5d5d5 !important;
  background: #f8f8f8 !important;
  border-radius: 10px !important;
}
body.theme-nexora .resource-lines-section a:hover,
body.theme-nexora .resource-line-item a:hover,
body.theme-nexora .resource-lines-grid a:hover { color: #fff !important; background: var(--nx-primary) !important; border-color: var(--nx-primary) !important; }

/* Page headings */
body.theme-nexora .nexora-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 12px;
  padding: 0 2px;
}
body.theme-nexora .nexora-page-heading h1,
body.theme-nexora .nexora-page-heading h2 { margin: 4px 0 0; color: var(--nx-text); font-size: clamp(22px,2vw,30px); line-height: 1.2; }

/* Sections: home */
body.theme-nexora .nexora-home-stream { display: grid; gap: 18px; }
body.theme-nexora .nexora-section,
body.theme-nexora .rankings-section,
body.theme-nexora .featured-topics-section,
body.theme-nexora .gallery-section {
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--nx-border) !important;
  border-top: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-r-lg) !important;
  background: var(--nx-surface) !important;
  box-shadow: var(--nx-shadow-sm) !important;
}
body.theme-nexora .nexora-section-head,
body.theme-nexora .rankings-header,
body.theme-nexora .section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 12px !important;
  margin: 0 0 14px !important;
}
body.theme-nexora .nexora-section-head h2,
body.theme-nexora .rankings-header h2,
body.theme-nexora .section-header h2 { margin: 0 !important; color: var(--nx-text) !important; font-size: 19px !important; line-height: 1.3; }
body.theme-nexora .rankings-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 6px;
  border: 0 !important;
  margin: 0 0 15px !important;
  padding: 5px !important;
  border-radius: 13px;
  background: #f2f2f2;
}
body.theme-nexora .rankings-tabs li {
  min-width: 0 !important;
  padding: 9px 7px !important;
  border-radius: 9px;
  color: var(--nx-text-2) !important;
  font-size: 13px;
  font-weight: 750 !important;
  text-align: center;
  cursor: pointer;
}
body.theme-nexora .rankings-tabs li::after { display: none !important; }
body.theme-nexora .rankings-tabs li.active { background: #fff; color: var(--nx-primary-strong) !important; box-shadow: 0 2px 10px rgba(23,23,23,.08); }
body.theme-nexora .rankings-content-wrapper { padding-top: 0 !important; }
body.theme-nexora .ranking-content { min-width: 0; }
body.theme-nexora .ranking-grid,
body.theme-nexora .recommendation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 14px;
}
body.theme-nexora .ranking-item,
body.theme-nexora .nexora-ranking-card,
body.theme-nexora .rec-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nx-border);
  border-radius: 13px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.theme-nexora .ranking-item:hover,
body.theme-nexora .nexora-ranking-card:hover,
body.theme-nexora .rec-item:hover { transform: translateY(-2px); border-color: #cfcfcf; box-shadow: var(--nx-shadow-sm); }
body.theme-nexora .ranking-item img,
body.theme-nexora .nexora-ranking-card img,
body.theme-nexora .rec-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
body.theme-nexora .ranking-item-title,
body.theme-nexora .nexora-ranking-title,
body.theme-nexora .rec-title { color: var(--nx-text) !important; font-weight: 700; }
body.theme-nexora .topics-grid { display: grid !important; grid-template-columns: repeat(8, minmax(0,1fr)) !important; gap: 14px !important; }
body.theme-nexora .topic-item,
body.theme-nexora .nexora-topic-card { position: relative; min-width: 0; overflow: hidden; border-radius: 14px !important; background: var(--nx-night); }
body.theme-nexora .topic-item img,
body.theme-nexora .nexora-topic-card img { width: 100% !important; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .22s ease; }
body.theme-nexora .topic-item:hover img,
body.theme-nexora .nexora-topic-card:hover img { transform: scale(1.025); }
body.theme-nexora .topic-item a,
body.theme-nexora .nexora-topic-card a { text-decoration: none; }
body.theme-nexora .topic-name,
body.theme-nexora .nexora-topic-name { color: var(--nx-text) !important; }
body.theme-nexora .gallery-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0,1fr)) !important; gap: 14px !important; }
body.theme-nexora .gallery-item,
body.theme-nexora .nexora-gallery-card { min-width: 0; overflow: hidden; border: 1px solid var(--nx-border); border-radius: 14px !important; background: #fff; }
body.theme-nexora .gallery-item img,
body.theme-nexora .nexora-gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* Category filters */
body.theme-nexora .nexora-filter-stack { display: grid; gap: 10px; margin-bottom: 12px; }
body.theme-nexora .sub-category-filter,
body.theme-nexora .child-category-section,
body.theme-nexora .multi-select-filters {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-r-lg) !important;
  background: #fff !important;
  box-shadow: var(--nx-shadow-sm);
}
body.theme-nexora .sub-category-filter a,
body.theme-nexora .child-category-section a,
body.theme-nexora .category-child-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 3px 4px 3px 0;
  padding: 6px 11px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 999px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
  text-decoration: none;
}
body.theme-nexora .sub-category-filter a:hover,
body.theme-nexora .child-category-section a:hover { border-color: #cfcfcf !important; color: var(--nx-primary-strong) !important; background: var(--nx-primary-soft) !important; }
body.theme-nexora .filter-group {
  display: grid !important;
  grid-template-columns: 86px minmax(0,1fr) auto;
  align-items: start !important;
  gap: 10px !important;
  min-width: 0;
  padding: 9px 0 !important;
  border-bottom: 1px dashed var(--nx-border) !important;
  float: none !important;
  width: 100% !important;
}
body.theme-nexora .filter-group:last-child { border-bottom: 0 !important; }
body.theme-nexora .filter-group-title,
body.theme-nexora .filter-title {
  margin: 0 !important;
  padding: 6px 0 !important;
  color: var(--nx-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.5;
  float: none !important;
  width: auto !important;
}
body.theme-nexora .nexora-filter-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  min-width: 0;
  max-height: 34px;
  overflow: hidden;
}
body.theme-nexora .filter-group.is-expanded .nexora-filter-options { max-height: none; }
body.theme-nexora .filter-tag {
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 9px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
  font-size: 12px !important;
  line-height: 18px !important;
  white-space: nowrap;
  cursor: pointer;
}
body.theme-nexora .filter-tag.active,
body.theme-nexora .filter-tag:hover { border-color: var(--nx-primary) !important; background: var(--nx-primary-soft) !important; color: var(--nx-primary-strong) !important; }
body.theme-nexora .filter-expand-btn {
  float: none !important;
  width: auto !important;
  min-width: 58px;
  height: 32px !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--nx-text-2) !important;
  font-size: 12px !important;
  white-space: nowrap;
  cursor: pointer;
}

/* segmented controls */
body.theme-nexora .nexora-search-controls { display: grid; gap: 9px; margin-bottom: 12px; }
body.theme-nexora .sort-tabs,
body.theme-nexora .type-tabs,
body.theme-nexora .nexora-segmented {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: var(--nx-shadow-sm);
}
body.theme-nexora .sort-tabs > *,
body.theme-nexora .type-tabs > *,
body.theme-nexora .nexora-segmented > * {
  flex: 0 0 auto;
  min-height: 34px;
  margin: 0 !important;
  padding: 7px 13px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--nx-text-2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  cursor: pointer;
}
body.theme-nexora .sort-tabs > .active,
body.theme-nexora .type-tabs > .active,
body.theme-nexora .nexora-segmented > .active { background: var(--nx-night) !important; color: #fff !important; }

/* Category/search result grids */
body.theme-nexora .nexora-results-shell,
body.theme-nexora .search-results-container { min-width: 0; }
body.theme-nexora .content-grid,
body.theme-nexora .results-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 15px !important;
  min-width: 0;
}
body.theme-nexora .content-item,
body.theme-nexora .result-item {
  min-width: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.theme-nexora .content-item:hover,
body.theme-nexora .result-item:hover { transform: translateY(-2px); border-color: #cfcfcf !important; box-shadow: var(--nx-shadow-sm) !important; }
body.theme-nexora .content-item-cover,
body.theme-nexora .result-item-cover { display: block; width: 100% !important; aspect-ratio: 16/10; object-fit: cover; background: #ededed; }
body.theme-nexora .content-item-title,
body.theme-nexora .result-item .info { padding: 10px 11px 12px !important; }
body.theme-nexora .content-item-title,
body.theme-nexora .result-item .info h3,
body.theme-nexora .result-item .info .title { color: var(--nx-text) !important; font-size: 14px !important; font-weight: 750 !important; line-height: 1.45; }
body.theme-nexora .result-item .meta { color: var(--nx-muted) !important; font-size: 12px !important; }
body.theme-nexora .a-type,
body.theme-nexora [class*="badge-"] {
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(23,23,23,.82) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
body.theme-nexora .type-video .a-type,
body.theme-nexora .content-item-video .a-type { background: rgba(102,102,102,.93) !important; }
body.theme-nexora .type-magnet .a-type,
body.theme-nexora .content-item-magnet .a-type { background: rgba(127,127,127,.93) !important; }
body.theme-nexora .type-novel .a-type,
body.theme-nexora .content-item-novel .a-type { background: rgba(95,95,95,.93) !important; }
body.theme-nexora .pagination-container,
body.theme-nexora .image-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}
body.theme-nexora .pagination-container a,
body.theme-nexora .pagination-container button,
body.theme-nexora .image-pagination a,
body.theme-nexora .image-pagination button {
  min-width: 36px;
  min-height: 36px;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--nx-text-2) !important;
}
body.theme-nexora .pagination-container .active,
body.theme-nexora .image-pagination .active { border-color: var(--nx-primary) !important; background: var(--nx-primary) !important; color: #fff !important; }
body.theme-nexora .status-message,
body.theme-nexora #status-container { color: var(--nx-muted) !important; text-align: center; }

/* Detail page shared */
body.theme-nexora.detail-shell .nexora-main,
body.theme-nexora .detail-page-container,
body.theme-nexora .magnet-content-container,
body.theme-nexora .novel-layout-container,
body.theme-nexora .gallery-layout-container { min-width: 0; }
body.theme-nexora .detail-page-container {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 330px !important;
  align-items: start;
  gap: 18px !important;
  margin-top: 14px !important;
}
body.theme-nexora .main-content-area,
body.theme-nexora .sidebar-area,
body.theme-nexora .main-column,
body.theme-nexora .sidebar-column { min-width: 0; }
body.theme-nexora .video-info-block,
body.theme-nexora .image-tags-section,
body.theme-nexora .related-videos-block,
body.theme-nexora .content-box,
body.theme-nexora .details-sidebar,
body.theme-nexora .magnet-trending-box,
body.theme-nexora .recommendation-section,
body.theme-nexora .chapter-box,
body.theme-nexora .gallery-info-bar,
body.theme-nexora .gallery-tags-bar,
body.theme-nexora .audio-player-box,
body.theme-nexora .audio-playlist-box,
body.theme-nexora .text-catalog-box {
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-r-lg) !important;
  background: #fff !important;
  box-shadow: var(--nx-shadow-sm) !important;
}
body.theme-nexora .video-player-container {
  overflow: hidden;
  border-radius: var(--nx-r-lg) !important;
  background: #080808 !important;
  box-shadow: var(--nx-shadow-md);
}
body.theme-nexora .video-player-container video,
body.theme-nexora #videoPlayer { display: block; width: 100% !important; background: #080808; }
body.theme-nexora .player-overlay { border-radius: var(--nx-r-lg); }
body.theme-nexora .video-info-block { margin-top: 14px !important; padding: 16px !important; }
body.theme-nexora .video-info-block h1,
body.theme-nexora .magnet-content-container h1,
body.theme-nexora .novel-layout-container h1,
body.theme-nexora .gallery-layout-container h1 { color: var(--nx-text) !important; line-height: 1.35; overflow-wrap: anywhere; }
body.theme-nexora .meta-info,
body.theme-nexora .detail-item { color: var(--nx-text-2) !important; }
body.theme-nexora .category-breadcrumb a { color: var(--nx-primary-strong) !important; }
body.theme-nexora .video-tags-display,
body.theme-nexora .tags-container,
body.theme-nexora .gallery-tags-bar { display: flex; flex-wrap: wrap; gap: 7px; }
body.theme-nexora .video-tags-display a,
body.theme-nexora .tags-container a,
body.theme-nexora .gallery-tags-bar a,
body.theme-nexora .gallery-tags-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  margin: 0 !important;
  padding: 5px 9px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 999px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
  text-decoration: none;
}
body.theme-nexora .video-actions-group { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
body.theme-nexora .action-btn,
body.theme-nexora .btn-v-down,
body.theme-nexora .scroll-to-btn,
body.theme-nexora .download-ctrl-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  max-width: 100%;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 9px 13px !important;
  background: var(--nx-primary) !important;
  color: #fff !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body.theme-nexora .matched-magnet-download { background: var(--nx-accent) !important; }
body.theme-nexora .image-tags-grid,
body.theme-nexora .related-videos-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 12px !important;
}
body.theme-nexora .image-tag-card,
body.theme-nexora .related-video-cover-container { overflow: hidden; border-radius: 12px !important; background: #f2f2f2; }
body.theme-nexora .image-tag-card__image,
body.theme-nexora .related-video-cover { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
body.theme-nexora .image-tag-card__text,
body.theme-nexora .related-video-info { padding: 9px !important; }
body.theme-nexora .sidebar-area { display: grid; gap: 14px; }
body.theme-nexora .related-videos-block { padding: 14px !important; }
body.theme-nexora .related-videos-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
body.theme-nexora .related-video-title { color: var(--nx-text) !important; font-size: 12px !important; line-height: 1.4; }
body.theme-nexora .related-video-meta { color: var(--nx-muted) !important; font-size: 11px !important; }
body.theme-nexora .overlay-cards { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px !important; }
body.theme-nexora .overlay-card { border-radius: 12px !important; overflow: hidden; background: rgba(23,23,23,.82) !important; }

/* Player lower ad */
body.theme-nexora #box-v1-special { margin: 10px 0 0 !important; border-radius: 12px !important; overflow: hidden; }
body.theme-nexora #box-v1-special a { max-width: 100%; overflow-wrap: anywhere; }

/* Magnet detail */
body.theme-nexora .magnet-content-container { display: grid; gap: 16px; margin-top: 14px !important; }
body.theme-nexora .top-content-layout {
  display: grid !important;
  grid-template-columns: minmax(220px, 310px) minmax(0,1fr) !important;
  align-items: start;
  gap: 18px !important;
}
body.theme-nexora .cover-column,
body.theme-nexora .details-sidebar { min-width: 0; }
body.theme-nexora .cover-column img { display: block; width: 100%; border-radius: var(--nx-r-lg) !important; aspect-ratio: 3/4; object-fit: cover; }
body.theme-nexora .details-sidebar { padding: 18px !important; }
body.theme-nexora .magnet-trending-box { padding: 14px !important; }
body.theme-nexora .magnet-trending-box .m-link { color: var(--nx-primary-strong) !important; }
body.theme-nexora .preview-gallery { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px !important; }
body.theme-nexora .preview-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
body.theme-nexora .magnet-box { padding: 16px !important; border: 1px solid var(--nx-border) !important; border-radius: var(--nx-r-lg) !important; background: #fff !important; box-shadow: var(--nx-shadow-sm); }
body.theme-nexora .magnet-list { display: grid; gap: 8px; }
body.theme-nexora .magnet-list .item {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  min-width: 0;
  padding: 10px 11px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 11px !important;
  background: var(--nx-surface-soft) !important;
}
body.theme-nexora .magnet-list .link { flex: 1 1 auto; min-width: 0; color: var(--nx-text-2) !important; overflow-wrap: anywhere; word-break: break-all; }
body.theme-nexora .copy-btn { flex: 0 0 auto; border: 0 !important; border-radius: 8px !important; background: var(--nx-night) !important; color: #fff !important; padding: 7px 10px !important; }
body.theme-nexora .recommendation-section { padding: 16px !important; }
body.theme-nexora .dual-rank-board { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px !important; }
body.theme-nexora .recommendation-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
body.theme-nexora .rec-item { text-decoration: none; }
body.theme-nexora .rec-title { display: block; padding: 9px; font-size: 12px; line-height: 1.4; }

/* Novel detail */
body.theme-nexora .novel-layout-container {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 330px !important;
  gap: 18px !important;
  align-items: start;
  margin-top: 14px !important;
}
body.theme-nexora .content-wrapper { min-width: 0; }
body.theme-nexora .audio-player-box,
body.theme-nexora .audio-playlist-box,
body.theme-nexora .text-catalog-box,
body.theme-nexora .novel-layout-container .content-box { padding: 16px !important; margin-bottom: 14px !important; }
body.theme-nexora .novel-audio-box-transparent { background: linear-gradient(145deg, #1b1b1b, #292929) !important; color: #fff !important; border-radius: 14px !important; padding: 14px !important; }
body.theme-nexora .novel-audio-box-transparent .cover-image { width: 112px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; }
body.theme-nexora .novel-audio-player { width: 100%; max-width: 100%; }
body.theme-nexora .playlist-header,
body.theme-nexora .catalog-header { color: var(--nx-text) !important; border-color: var(--nx-border) !important; }
body.theme-nexora .playlist-items,
body.theme-nexora .catalog-list { display: grid; gap: 7px; }
body.theme-nexora .playlist-item,
body.theme-nexora .catalog-item {
  min-width: 0;
  border: 1px solid var(--nx-border) !important;
  border-radius: 10px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
}
body.theme-nexora .playlist-item.active,
body.theme-nexora .catalog-item.active { border-color: #c7c7c7 !important; background: var(--nx-primary-soft) !important; color: var(--nx-primary-strong) !important; }
body.theme-nexora .main-content { color: var(--nx-text-2) !important; line-height: 1.85 !important; overflow-wrap: anywhere; }
body.theme-nexora .main-content img { height: auto; border-radius: 12px; }
body.theme-nexora .sidebar-column { display: grid; gap: 14px; }
body.theme-nexora .sidebar-column .recommendation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

/* Gallery / comic detail */
body.theme-nexora .gallery-layout-container { display: grid; gap: 14px; margin-top: 14px !important; }
body.theme-nexora .gallery-info-bar,
body.theme-nexora .gallery-tags-bar { padding: 15px !important; }
body.theme-nexora .gallery-marquee-box,
body.theme-nexora #marquee-box { overflow: hidden; border-radius: 12px; }
body.theme-nexora .chapter-box { padding: 15px !important; }
body.theme-nexora .chapter-list { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; }
body.theme-nexora .chapter-item {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 9px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
}
body.theme-nexora .chapter-item.active { border-color: var(--nx-primary) !important; background: var(--nx-primary) !important; color: #fff !important; }
body.theme-nexora .gallery-images,
body.theme-nexora #gallery-images-container,
body.theme-nexora #waterfall-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  min-width: 0;
}
body.theme-nexora .gallery-layout-container:not(.is-comic) .gallery-item,
body.theme-nexora .gallery-images .gallery-item { overflow: hidden; border: 0 !important; border-radius: 14px !important; background: #ececec !important; }
body.theme-nexora .gallery-images .gallery-item img,
body.theme-nexora #gallery-images-container .gallery-item img,
body.theme-nexora #waterfall-grid .gallery-item img { display: block; width: 100% !important; height: auto; min-height: 0; border-radius: 14px; cursor: zoom-in; }
body.theme-nexora .gallery-layout-container.mode-comic .gallery-images,
body.theme-nexora .gallery-layout-container.mode-comic #gallery-images-container { grid-template-columns: minmax(0, 860px); justify-content: center; }
body.theme-nexora .comic-page { width: 100%; height: auto !important; object-fit: contain !important; border-radius: 8px !important; }

/* Tags page */
body.theme-nexora .tags-card {
  margin-top: 14px;
  padding: 20px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-r-lg) !important;
  background: #fff !important;
  box-shadow: var(--nx-shadow-sm);
}
body.theme-nexora .tags-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
body.theme-nexora .tag-cloud-wrap { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
body.theme-nexora .tag-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 34px;
  margin: 0 !important;
  padding: 7px 11px !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: 999px !important;
  background: var(--nx-surface-soft) !important;
  color: var(--nx-text-2) !important;
  text-decoration: none;
}
body.theme-nexora .tag-pill:hover { border-color: var(--nx-primary) !important; background: var(--nx-primary-soft) !important; color: var(--nx-primary-strong) !important; }

/* Waterfall/loading */
body.theme-nexora #waterfall-grid { margin-top: 14px; }
body.theme-nexora #waterfall-trigger { min-height: 1px; }

/* Lightbox / download modal */
body.theme-nexora .lightbox,
body.theme-nexora .media-modal-overlay {
  background: rgba(6,6,6,.90) !important;
}
body.theme-nexora .lightbox-content,
body.theme-nexora .media-modal-content { border-radius: 14px !important; }
body.theme-nexora .media-modal-content { border: 1px solid var(--nx-border) !important; background: #fff !important; color: var(--nx-text) !important; }
body.theme-nexora .media-progress-inner,
body.theme-nexora .media-progress-bar { background: var(--nx-primary) !important; }

/* Floating navigation */
body.theme-nexora .floating-toolbar {
  position: fixed;
  right: 16px !important;
  bottom: 18px !important;
  z-index: 990;
  display: grid !important;
  gap: 8px !important;
}
body.theme-nexora .floating-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
  background: var(--nx-night) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(23,23,23,.18) !important;
}
body.theme-nexora .floating-btn:hover { background: var(--nx-primary) !important; }

/* Footer */
body.theme-nexora .site-footer.nexora-footer,
body.theme-nexora .site-footer {
  margin-top: 28px !important;
  padding: 26px 0 16px !important;
  border: 0 !important;
  background: var(--nx-night) !important;
  color: #d4d4d4 !important;
}
body.theme-nexora .nexora-footer .links-grid,
body.theme-nexora .site-footer .links-grid { margin-bottom: 16px !important; }
body.theme-nexora .nexora-footer .links-grid li,
body.theme-nexora .site-footer .links-grid li { border-color: rgba(255,255,255,.09) !important; background: rgba(255,255,255,.045) !important; }
body.theme-nexora .nexora-footer .links-grid li:hover,
body.theme-nexora .site-footer .links-grid li:hover { border-color: rgba(218,218,218,.42) !important; background: rgba(255,255,255,.07) !important; }
body.theme-nexora .nexora-footer .links-grid a,
body.theme-nexora .site-footer .links-grid a { color: #e0e0e0 !important; }
body.theme-nexora .footer-dynamic-box,
body.theme-nexora .footer-content { color: #a5a5a5 !important; font-size: 12px !important; line-height: 1.7; text-align: center; }
body.theme-nexora .footer-content a { color: #c3c3c3 !important; }
body.theme-nexora .nexora-perf { margin-top: 10px; color: #7e7e7e; font-size: 11px; text-align: center; }
body.theme-nexora .nexora-perf b { color: #a9a9a9; }

/* Home-modal and common modal */
body.theme-nexora #home-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8,8,8,.70) !important;
}
body.theme-nexora #home-modal .modal-content,
body.theme-nexora #home-modal [class*="modal-"] { max-width: min(560px,100%); }
body.theme-nexora #js-dynamic-modal-body { overflow-wrap: anywhere; }
body.theme-nexora #js-dynamic-modal-body a { color: var(--nx-primary-strong); }

/* Desktop sizing */
@media (min-width: 1440px) {
  body.theme-nexora .container { width: min(1380px, calc(100% - 56px)) !important; max-width: 1380px !important; }
  body.theme-nexora .content-grid,
  body.theme-nexora .results-grid { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
  body.theme-nexora .topics-grid { grid-template-columns: repeat(10,minmax(0,1fr)) !important; }
  body.theme-nexora .gallery-grid { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
}

@media (max-width: 1180px) {
  body.theme-nexora .header-main-container { gap: 12px !important; }
  body.theme-nexora .logo-main img { max-width: 156px !important; height: 38px !important; }
  body.theme-nexora .header-nav-list.pc-only { gap: 7px !important; }
  body.theme-nexora .header-nav-list.pc-only > .nav-item > a { font-size: 12px !important; padding-left: 1px !important; padding-right: 1px !important; }
  body.theme-nexora .nav-orange-btn { padding: 8px 9px !important; font-size: 12px !important; }
  body.theme-nexora .v1-ico-box ul,
  body.theme-nexora .v1-quick-wrap { grid-template-columns: repeat(8,minmax(0,1fr)) !important; }
  body.theme-nexora .content-grid,
  body.theme-nexora .results-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  body.theme-nexora .topics-grid { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
  body.theme-nexora .gallery-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  body.theme-nexora .recommendation-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 1024px) {
  body.theme-nexora .container { width: calc(100% - 24px) !important; }
  body.theme-nexora .header-main-container { min-height: 64px !important; }
  body.theme-nexora .logo-main img { max-width: 136px !important; }
  body.theme-nexora .header-nav-list.pc-only { gap: 4px !important; }
  body.theme-nexora .header-nav-list.pc-only > .nav-item > a { font-size: 11px !important; }
  body.theme-nexora .nav-orange-btn { font-size: 11px !important; }
  body.theme-nexora .detail-page-container,
  body.theme-nexora .novel-layout-container { grid-template-columns: minmax(0,1fr) 290px !important; }
  body.theme-nexora .ranking-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 768px) {
  body.theme-nexora .mobile-only { display: flex !important; }
  body.theme-nexora .pc-only { display: none !important; }
  body.theme-nexora .container { width: calc(100% - 20px) !important; max-width: none !important; }
  body.theme-nexora .nexora-main { padding-top: 10px !important; padding-bottom: 24px !important; }
  body.theme-nexora .site-header { box-shadow: 0 7px 18px rgba(23,23,23,.18) !important; }
  body.theme-nexora .header-main-container {
    min-height: 56px !important;
    padding: 8px 0 !important;
    gap: 8px !important;
    justify-content: space-between;
  }
  body.theme-nexora .header-logo-row { width: 100%; justify-content: space-between; gap: 8px; }
  body.theme-nexora .mobile-drawer-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px; flex: 0 0 38px;
    border: 1px solid rgba(255,255,255,.13); border-radius: 10px;
    background: rgba(255,255,255,.06); color: #fff;
  }
  body.theme-nexora .logo-main { flex: 1 1 auto; justify-content: center; min-width: 0; }
  body.theme-nexora .logo-main img { max-width: 148px !important; height: 35px !important; }
  body.theme-nexora .header-tools-mobile { flex: 0 0 auto; }
  body.theme-nexora .home-path-button { min-height: 36px; padding: 7px 9px !important; font-size: 11px !important; }
  body.theme-nexora .home-path-button .button-text { display: none; }
  body.theme-nexora .home-path-button .legacy-home-icon { width: 15px; height: 15px; margin: 0; }
  body.theme-nexora .header-nav {
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 0 8px !important;
    overflow: visible !important;
  }
  body.theme-nexora .header-main-container { flex-wrap: wrap; }
  body.theme-nexora .header-nav-list.mobile-only {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }
  body.theme-nexora .header-nav-list.mobile-only li { min-width: 0 !important; }
  body.theme-nexora .header-nav-list.mobile-only li a {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    padding: 7px 3px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.055);
    color: #e4e4e4 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.theme-nexora .nexora-hero-stack { gap: 8px; margin-bottom: 8px; }
  body.theme-nexora .v1-ico-box { padding: 10px !important; border-radius: 14px; }
  body.theme-nexora .v1-ico-box ul,
  body.theme-nexora .v1-quick-wrap { grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 8px 6px !important; }
  body.theme-nexora .v1-ico-box img,
  body.theme-nexora .promo-icon-box { width: 48px !important; height: 48px !important; border-radius: 13px !important; }
  body.theme-nexora .v1-ico-box .v1-item-t { font-size: 11px !important; }
  body.theme-nexora .top-links-grid,
  body.theme-nexora .links-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 6px !important; }
  body.theme-nexora .nexora-discovery-head { grid-template-columns: minmax(0,1fr); gap: 11px; padding: 15px; }
  body.theme-nexora .nexora-discovery-copy strong { font-size: 17px; }
  body.theme-nexora .search-form input[type="text"] { padding: 11px 12px !important; font-size: 13px !important; }
  body.theme-nexora .search-form button { min-height: 42px; padding: 0 13px !important; font-size: 12px !important; }
  body.theme-nexora .tags-section { padding: 11px !important; border-radius: 14px !important; }
  body.theme-nexora .nexora-page-heading { margin-top: 14px; align-items: flex-start; }
  body.theme-nexora .nexora-page-heading h1,
  body.theme-nexora .nexora-page-heading h2 { font-size: 22px; }
  body.theme-nexora .nexora-section,
  body.theme-nexora .rankings-section,
  body.theme-nexora .featured-topics-section,
  body.theme-nexora .gallery-section { padding: 13px !important; border-radius: 15px !important; }
  body.theme-nexora .rankings-tabs { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; padding: 4px !important; }
  body.theme-nexora .rankings-tabs li { padding: 8px 2px !important; font-size: 11px !important; }
  body.theme-nexora .rankings-tabs li .desktop-name { display: none !important; }
  body.theme-nexora .rankings-tabs li .mobile-name { display: block !important; }
  body.theme-nexora .ranking-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  body.theme-nexora .topics-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 9px !important; }
  body.theme-nexora .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 9px !important; }
  body.theme-nexora .filter-group { grid-template-columns: 66px minmax(0,1fr) auto; gap: 7px !important; }
  body.theme-nexora .multi-select-filters { padding: 10px !important; }
  body.theme-nexora .filter-tag { padding-left: 8px !important; padding-right: 8px !important; }
  body.theme-nexora .sort-tabs,
  body.theme-nexora .type-tabs { overflow: visible !important; }
  body.theme-nexora .sort-tabs > *,
  body.theme-nexora .type-tabs > * { min-height: 32px; padding: 6px 10px !important; font-size: 12px !important; }
  body.theme-nexora .content-grid,
  body.theme-nexora .results-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 9px !important; }
  body.theme-nexora .detail-page-container,
  body.theme-nexora .novel-layout-container { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  body.theme-nexora .video-info-block,
  body.theme-nexora .image-tags-section,
  body.theme-nexora .related-videos-block,
  body.theme-nexora .content-box,
  body.theme-nexora .details-sidebar,
  body.theme-nexora .magnet-trending-box,
  body.theme-nexora .recommendation-section,
  body.theme-nexora .chapter-box,
  body.theme-nexora .gallery-info-bar,
  body.theme-nexora .gallery-tags-bar { border-radius: 14px !important; }
  body.theme-nexora .image-tags-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 9px !important; }
  body.theme-nexora .related-videos-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.theme-nexora .top-content-layout { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  body.theme-nexora .cover-column { max-width: 420px; margin: 0 auto; width: 100%; }
  body.theme-nexora .preview-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.theme-nexora .dual-rank-board { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  body.theme-nexora .recommendation-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  body.theme-nexora .sidebar-column .recommendation-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.theme-nexora .gallery-images,
  body.theme-nexora #gallery-images-container,
  body.theme-nexora #waterfall-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.theme-nexora .floating-toolbar { right: 10px !important; bottom: 12px !important; }
  body.theme-nexora .floating-btn { width: 40px !important; height: 40px !important; }
  body.theme-nexora .site-footer { margin-top: 20px !important; padding-top: 20px !important; }
}

@media (max-width: 480px) {
  body.theme-nexora .container { width: calc(100% - 16px) !important; }
  body.theme-nexora .logo-main img { max-width: 132px !important; }
  body.theme-nexora .v1-ico-box ul,
  body.theme-nexora .v1-quick-wrap { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  body.theme-nexora .top-links-grid,
  body.theme-nexora .links-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body.theme-nexora .search-form button span { display: none; }
  body.theme-nexora .search-form button { width: 46px; padding: 0 !important; }
  body.theme-nexora .search-form button svg { width: 17px !important; height: 17px !important; }
  body.theme-nexora .nexora-discovery-copy strong { font-size: 16px; }
  body.theme-nexora .topics-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body.theme-nexora .ranking-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.theme-nexora .filter-group { grid-template-columns: 54px minmax(0,1fr) auto; gap: 5px !important; }
  body.theme-nexora .filter-group-title,
  body.theme-nexora .filter-title { font-size: 12px !important; }
  body.theme-nexora .filter-expand-btn { min-width: 50px; padding-left: 6px !important; padding-right: 6px !important; }
  body.theme-nexora .recommendation-grid,
  body.theme-nexora .sidebar-column .recommendation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.theme-nexora .preview-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.theme-nexora .magnet-list .item { align-items: flex-start; flex-direction: column; }
  body.theme-nexora .magnet-list .copy-btn { align-self: flex-end; }
  body.theme-nexora .overlay-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.theme-nexora .video-actions-group > * { flex: 1 1 calc(50% - 4px); min-width: 0; }
}

/* Explicit narrow-device safety targets requested by template brief. */
@media (max-width: 390px) {
  body.theme-nexora .container { width: calc(100% - 14px) !important; }
  body.theme-nexora .header-main-container { gap: 6px !important; }
  body.theme-nexora .logo-main img { max-width: 122px !important; height: 32px !important; }
  body.theme-nexora .mobile-drawer-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  body.theme-nexora .home-path-button { min-height: 34px; min-width: 36px; padding: 7px !important; }
  body.theme-nexora .header-nav-list.mobile-only { gap: 4px !important; }
  body.theme-nexora .header-nav-list.mobile-only li a { font-size: 11px !important; padding: 7px 1px !important; }
  body.theme-nexora .v1-ico-box { padding: 9px 7px !important; }
  body.theme-nexora .v1-ico-box img,
  body.theme-nexora .promo-icon-box { width: 46px !important; height: 46px !important; }
  body.theme-nexora .top-links-grid,
  body.theme-nexora .links-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.theme-nexora .nexora-discovery-head { padding: 13px 11px; }
  body.theme-nexora .tags-section { padding: 9px !important; }
  body.theme-nexora .tag-list { gap: 6px !important; }
  body.theme-nexora .filter-group { grid-template-columns: 48px minmax(0,1fr) auto; }
  body.theme-nexora .filter-tag { font-size: 11px !important; padding-left: 7px !important; padding-right: 7px !important; }
  body.theme-nexora .filter-expand-btn { min-width: 44px; font-size: 11px !important; }
  body.theme-nexora .content-grid,
  body.theme-nexora .results-grid { gap: 8px !important; }
  body.theme-nexora .content-item-title,
  body.theme-nexora .result-item .info { padding: 8px 9px 10px !important; }
  body.theme-nexora .content-item-title,
  body.theme-nexora .result-item .info h3,
  body.theme-nexora .result-item .info .title { font-size: 13px !important; }
  body.theme-nexora .image-tags-grid,
  body.theme-nexora .related-videos-grid { gap: 7px !important; }
  body.theme-nexora .gallery-images,
  body.theme-nexora #gallery-images-container,
  body.theme-nexora #waterfall-grid { gap: 6px; }
  body.theme-nexora .floating-toolbar { right: 7px !important; bottom: 9px !important; }
}

@media (max-width: 360px) {
  body.theme-nexora .container { width: calc(100% - 12px) !important; }
  body.theme-nexora .logo-main img { max-width: 112px !important; }
  body.theme-nexora .header-nav-list.mobile-only li a { font-size: 10.5px !important; }
  body.theme-nexora .v1-ico-box ul,
  body.theme-nexora .v1-quick-wrap { gap: 7px 4px !important; }
  body.theme-nexora .v1-ico-box img,
  body.theme-nexora .promo-icon-box { width: 44px !important; height: 44px !important; }
  body.theme-nexora .search-form input[type="text"] { padding-left: 10px !important; padding-right: 8px !important; }
  body.theme-nexora .rankings-tabs li { font-size: 10px !important; }
  body.theme-nexora .filter-group { grid-template-columns: 44px minmax(0,1fr) auto; }
  body.theme-nexora .filter-group-title,
  body.theme-nexora .filter-title { font-size: 11px !important; }
  body.theme-nexora .filter-expand-btn { min-width: 42px; padding-left: 4px !important; padding-right: 4px !important; }
  body.theme-nexora .video-actions-group > * { flex-basis: 100%; }
  body.theme-nexora .magnet-list .item { padding: 9px !important; }
  body.theme-nexora .chapter-item { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Late compatibility overrides for legacy page-local rules. */
body.theme-nexora .filter-expand-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
}
body.theme-nexora .magnet-trending-box,
body.theme-nexora #marquee-box,
body.theme-nexora .gallery-marquee-box {
  min-width: 0;
  max-width: 100%;
}
body.theme-nexora .magnet-trending-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
body.theme-nexora .magnet-trending-box .m-link,
body.theme-nexora #marquee-link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 390px) {
  body.theme-nexora .gallery-marquee-box,
  body.theme-nexora #marquee-box { white-space: normal !important; }
  body.theme-nexora .gallery-marquee-box > span,
  body.theme-nexora #marquee-box > span { white-space: normal !important; }
}


/* =====================================================================
 * NEXORA V2 refinement — 2026-09-16
 * Goals: black/white/graphite palette, flat rendering, exact home grids,
 * robust category filters, natural detail layouts, no glass/blur effects.
 * ===================================================================== */
body.theme-nexora,
body.theme-nexora * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Flat visual system: no expensive glass/shadow stack, no multicolor gradients. */
body.theme-nexora .site-header,
body.theme-nexora .site-footer,
body.theme-nexora .search-section,
body.theme-nexora .novel-audio-box-transparent,
body.theme-nexora .nav-orange-btn,
body.theme-nexora .home-path-button,
body.theme-nexora .action-btn,
body.theme-nexora .btn-v-down,
body.theme-nexora .scroll-to-btn,
body.theme-nexora .matched-magnet-download,
body.theme-nexora .download-ctrl-btn { background-image: none !important; }
body.theme-nexora .site-header { background:#111 !important; box-shadow:none !important; border-bottom:1px solid #2b2b2b !important; }
body.theme-nexora .site-footer { background:#111 !important; box-shadow:none !important; }
body.theme-nexora .search-section { background:#171717 !important; box-shadow:none !important; }
body.theme-nexora .nav-orange-btn,
body.theme-nexora .home-path-button,
body.theme-nexora .search-form button,
body.theme-nexora .action-btn,
body.theme-nexora .btn-v-down,
body.theme-nexora .scroll-to-btn,
body.theme-nexora .matched-magnet-download,
body.theme-nexora .download-ctrl-btn,
body.theme-nexora .copy-btn { background:#111 !important; color:#fff !important; box-shadow:none !important; }
body.theme-nexora .nexora-eyebrow { color:#777 !important; letter-spacing:.10em; }
body.theme-nexora .drawer-kicker { color:#cfcfcf !important; }
body.theme-nexora .nexora-discovery-copy .nexora-eyebrow { color:#bdbdbd !important; }
body.theme-nexora .nexora-discovery-copy strong { color:#fff !important; }
body.theme-nexora .tag-cloud-entry-btn,
body.theme-nexora .tag-list a,
body.theme-nexora .filter-tag,
body.theme-nexora .chapter-item,
body.theme-nexora .playlist-item,
body.theme-nexora .catalog-item { background:#f4f4f4 !important; color:#333 !important; border-color:#d9d9d9 !important; }
body.theme-nexora .tag-list a:hover,
body.theme-nexora .filter-tag:hover,
body.theme-nexora .tag-pill:hover,
body.theme-nexora .playlist-item.active,
body.theme-nexora .catalog-item.active { background:#ececec !important; color:#000 !important; border-color:#999 !important; }
body.theme-nexora .filter-tag.active,
body.theme-nexora .sort-tabs > .active,
body.theme-nexora .type-tabs > .active,
body.theme-nexora .nexora-segmented > .active,
body.theme-nexora .chapter-item.active,
body.theme-nexora .pagination-container .active,
body.theme-nexora .image-pagination .active { background:#111 !important; color:#fff !important; border-color:#111 !important; }
body.theme-nexora .resource-lines-section a,
body.theme-nexora .resource-line-item a,
body.theme-nexora .resource-lines-grid a { background:#fff !important; color:#222 !important; border-color:#cfcfcf !important; }
body.theme-nexora .resource-lines-section a:hover,
body.theme-nexora .resource-line-item a:hover,
body.theme-nexora .resource-lines-grid a:hover { background:#111 !important; color:#fff !important; border-color:#111 !important; }
body.theme-nexora .category-breadcrumb a,
body.theme-nexora .magnet-trending-box .m-link,
body.theme-nexora #marquee-link,
body.theme-nexora .details-sidebar a { color:#222 !important; }
body.theme-nexora .a-type,
body.theme-nexora [class*="badge-"],
body.theme-nexora .type-video .a-type,
body.theme-nexora .content-item-video .a-type,
body.theme-nexora .type-magnet .a-type,
body.theme-nexora .content-item-magnet .a-type,
body.theme-nexora .type-novel .a-type,
body.theme-nexora .content-item-novel .a-type { background:#2b2b2b !important; color:#fff !important; }
body.theme-nexora .video-tags-display a,
body.theme-nexora .tags-container a,
body.theme-nexora .gallery-tags-bar a,
body.theme-nexora .gallery-tags-bar span,
body.theme-nexora [class^="tag-color-"],
body.theme-nexora [class*=" tag-color-"] { background:#f5f5f5 !important; border-color:#d7d7d7 !important; color:#333 !important; }
body.theme-nexora .recommendation-section h3,
body.theme-nexora .recommendation-section h3[style],
body.theme-nexora .content-box h3,
body.theme-nexora .chapter-header { color:#111 !important; border-left-color:#111 !important; }
body.theme-nexora .recommendation-section[style] { border-top-color:#d8d8d8 !important; }
body.theme-nexora .dual-rank-board .rec-item > div[style*="position:absolute"],
body.theme-nexora .card-badge { background:#111 !important; color:#fff !important; border-color:#111 !important; box-shadow:none !important; }

/* Reduce paint/compositor work. */
body.theme-nexora .content-item,
body.theme-nexora .result-item,
body.theme-nexora .ranking-item,
body.theme-nexora .rec-item,
body.theme-nexora .topic-item,
body.theme-nexora .gallery-item,
body.theme-nexora .image-tag-card,
body.theme-nexora .top-links-grid li,
body.theme-nexora .links-grid li { box-shadow:none !important; transition:none !important; transform:none !important; }
body.theme-nexora .content-item:hover,
body.theme-nexora .result-item:hover,
body.theme-nexora .ranking-item:hover,
body.theme-nexora .rec-item:hover,
body.theme-nexora .topic-item:hover,
body.theme-nexora .gallery-item:hover { transform:none !important; box-shadow:none !important; border-color:#9f9f9f !important; }
body.theme-nexora .content-item-cover img,
body.theme-nexora .result-item-cover img,
body.theme-nexora .topic-item img,
body.theme-nexora .image-tag-card img { transition:none !important; transform:none !important; }

/* Top icon ads: desktop exactly 15 per row; mobile exactly 5. */
@media (min-width:769px) {
  body.theme-nexora .v1-ico-box ul,
  body.theme-nexora .v1-quick-wrap { grid-template-columns:repeat(15,minmax(0,1fr)) !important; gap:8px !important; }
  body.theme-nexora .v1-ico-box img,
  body.theme-nexora .promo-icon-box { width:48px !important; height:48px !important; border-radius:6px !important; }
}
@media (max-width:768px) {
  body.theme-nexora .v1-ico-box ul,
  body.theme-nexora .v1-quick-wrap { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:8px 5px !important; }
  body.theme-nexora .v1-ico-box { padding:10px 8px !important; }
  body.theme-nexora .v1-ico-box img,
  body.theme-nexora .promo-icon-box { width:48px !important; height:48px !important; border-radius:6px !important; }
  body.theme-nexora .v1-ico-box .v1-item-t { font-size:11px !important; }
}
@media (max-width:360px) {
  body.theme-nexora .v1-ico-box img,
  body.theme-nexora .promo-icon-box { width:44px !important; height:44px !important; }
}

/* Home: ranking 5 x 2 on desktop; only real tabs consume width. */
body.theme-nexora .rankings-header,
body.theme-nexora .rankings-section .section-header { align-items:center !important; flex-wrap:wrap !important; }
body.theme-nexora .rankings-tabs {
  display:flex !important;
  grid-template-columns:none !important;
  width:auto !important;
  max-width:100% !important;
  flex:0 0 auto !important;
  gap:6px !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
}
body.theme-nexora .rankings-tabs li {
  flex:0 0 auto !important;
  min-width:82px !important;
  padding:8px 13px !important;
  border:1px solid #d6d6d6 !important;
  background:#f5f5f5 !important;
  color:#333 !important;
  border-radius:4px !important;
  box-shadow:none !important;
}
body.theme-nexora .rankings-tabs li.active { background:#111 !important; color:#fff !important; border-color:#111 !important; }
@media (min-width:769px) {
  body.theme-nexora .ranking-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:12px !important; }
}
@media (max-width:768px) {
  body.theme-nexora .ranking-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px !important; }
  body.theme-nexora .rankings-tabs { width:100% !important; }
  body.theme-nexora .rankings-tabs li { min-width:0 !important; flex:1 1 0 !important; }
}

/* Featured topics: desktop 9 per row; mobile remains 3. */
@media (min-width:769px) {
  body.theme-nexora .topics-grid { grid-template-columns:repeat(9,minmax(0,1fr)) !important; gap:10px !important; }
}
@media (max-width:768px) {
  body.theme-nexora .topics-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:8px !important; }
}
body.theme-nexora .topic-item,
body.theme-nexora .nexora-topic-card { border:1px solid #d8d8d8 !important; border-radius:5px !important; background:#fff !important; }
body.theme-nexora .topic-item img,
body.theme-nexora .nexora-topic-card img { border-radius:0 !important; }
body.theme-nexora .topic-item span,
body.theme-nexora .nexora-topic-card span { display:block; padding:7px 6px; font-size:12px; font-weight:600; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#222; }

/* Exclusive recommendation: new flat editorial banner cards, visually distinct from topics/ranking. */
body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:12px !important; }
body.theme-nexora .nexora-gallery-picks .gallery-item,
body.theme-nexora .nexora-gallery-picks .nexora-gallery-card {
  position:relative;
  border:1px solid #d7d7d7 !important;
  border-radius:5px !important;
  background:#f7f7f7 !important;
  overflow:hidden !important;
}
body.theme-nexora .nexora-gallery-picks .gallery-item img,
body.theme-nexora .nexora-gallery-picks .nexora-gallery-card img { aspect-ratio:16/9 !important; width:100% !important; height:auto !important; object-fit:cover !important; }
body.theme-nexora .nexora-gallery-picks .gallery-item-tag,
body.theme-nexora .nexora-gallery-picks .gallery-item span { display:block; min-width:0; padding:9px 10px !important; background:#fff !important; color:#222 !important; font-size:13px !important; font-weight:700 !important; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:768px) {
  body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
}

/* Compact page heading; remove decorative layout that crowded narrow screens. */
body.theme-nexora .nexora-page-heading {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:3px !important;
  align-items:start !important;
  margin:16px 0 10px !important;
  padding:0 !important;
}
body.theme-nexora .nexora-page-heading .nexora-eyebrow { display:none !important; }
body.theme-nexora .nexora-page-heading h1,
body.theme-nexora .nexora-page-heading h2 { margin:0 !important; font-size:21px !important; line-height:1.3 !important; }
body.theme-nexora .nexora-page-heading p { margin:0 !important; color:#777 !important; font-size:13px !important; line-height:1.45 !important; }

/* Category filters: no float/absolute hacks; rows never collide. */
body.theme-nexora .multi-select-filters { padding:10px 14px !important; overflow:hidden !important; }
body.theme-nexora .nexora-filter-label { padding:2px 0 9px; font-size:15px; font-weight:800; color:#111; border-bottom:1px solid #e2e2e2; margin-bottom:2px; }
body.theme-nexora .filter-group {
  position:relative !important;
  display:grid !important;
  grid-template-columns:76px minmax(0,1fr) auto !important;
  grid-template-areas:"title options expand" !important;
  gap:8px !important;
  align-items:start !important;
  width:100% !important;
  max-height:none !important;
  overflow:visible !important;
  padding:10px 0 !important;
  border-bottom:1px solid #e6e6e6 !important;
}
body.theme-nexora .filter-group::before,
body.theme-nexora .filter-group::after { display:none !important; content:none !important; }
body.theme-nexora .filter-group-title,
body.theme-nexora .filter-title {
  grid-area:title !important;
  float:none !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:6px 0 !important;
  font-size:13px !important;
  line-height:20px !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
body.theme-nexora .nexora-filter-options {
  grid-area:options !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  gap:6px !important;
  min-width:0 !important;
  max-height:34px !important;
  overflow:hidden !important;
}
body.theme-nexora .filter-group.is-expanded .nexora-filter-options { max-height:none !important; }
body.theme-nexora .filter-tag {
  float:none !important;
  display:inline-flex !important;
  align-items:center !important;
  width:auto !important;
  height:30px !important;
  min-height:30px !important;
  margin:0 !important;
  padding:5px 9px !important;
  border-radius:4px !important;
  font-size:12px !important;
  line-height:18px !important;
  white-space:nowrap !important;
}
body.theme-nexora .filter-expand-btn {
  grid-area:expand !important;
  position:static !important;
  float:none !important;
  width:auto !important;
  height:30px !important;
  min-width:54px !important;
  margin:0 !important;
  padding:5px 8px !important;
  border:1px solid #d5d5d5 !important;
  border-radius:4px !important;
  background:#fff !important;
  color:#444 !important;
  font-size:12px !important;
  line-height:18px !important;
}
body.theme-nexora .child-category-filters,
body.theme-nexora .sub-category-filter,
body.theme-nexora .child-category-section { align-items:flex-start !important; gap:10px !important; border-radius:6px !important; box-shadow:none !important; }
@media (max-width:768px) {
  body.theme-nexora .multi-select-filters { padding:8px 10px !important; }
  body.theme-nexora .filter-group {
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:"title expand" "options options" !important;
    gap:6px 8px !important;
    padding:9px 0 !important;
  }
  body.theme-nexora .filter-group-title,
  body.theme-nexora .filter-title { padding:3px 0 !important; font-size:13px !important; line-height:22px !important; }
  body.theme-nexora .nexora-filter-options { max-height:66px !important; gap:6px 5px !important; }
  body.theme-nexora .filter-tag { height:28px !important; min-height:28px !important; padding:4px 8px !important; font-size:12px !important; }
  body.theme-nexora .filter-expand-btn { height:28px !important; min-width:50px !important; padding:4px 7px !important; }
}
@media (max-width:390px) {
  body.theme-nexora .filter-tag { padding-left:7px !important; padding-right:7px !important; font-size:11.5px !important; }
}

/* Category/search resource titles: force stable two-line truncation, including long unbroken strings. */
body.theme-nexora .content-item-title,
body.theme-nexora .result-item .info h3,
body.theme-nexora .result-item .info .title {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:break-all !important;
  overflow-wrap:anywhere !important;
  line-height:1.4 !important;
  max-height:2.8em !important;
  min-height:2.8em !important;
}
body.theme-nexora .content-item-title { margin:8px 10px 10px !important; padding:0 !important; }
body.theme-nexora .result-item .info h3 { margin:0 0 8px !important; }

/* Video detail: image tags become compact media chips instead of square tiles. */
body.theme-nexora .image-tags-section { padding:14px !important; }
body.theme-nexora .image-tags-section h2,
body.theme-nexora .image-tags-section h3 { margin:0 0 10px !important; color:#111 !important; font-size:16px !important; }
body.theme-nexora .image-tags-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:8px !important; }
body.theme-nexora .image-tag-card {
  display:grid !important;
  grid-template-columns:52px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  min-width:0 !important;
  padding:6px !important;
  border:1px solid #d9d9d9 !important;
  border-radius:5px !important;
  background:#f7f7f7 !important;
  color:#222 !important;
}
body.theme-nexora .image-tag-card__image { width:52px !important; height:52px !important; aspect-ratio:1/1 !important; object-fit:cover !important; border-radius:4px !important; }
body.theme-nexora .image-tag-card__text { min-width:0 !important; padding:0 !important; font-size:12px !important; font-weight:700 !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
@media (max-width:768px) {
  body.theme-nexora .image-tags-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
  body.theme-nexora .image-tag-card { grid-template-columns:46px minmax(0,1fr) !important; gap:7px !important; }
  body.theme-nexora .image-tag-card__image { width:46px !important; height:46px !important; }
}

/* Magnet detail: keep real cover ratio; wide media panel + compact metadata sidebar. */
body.theme-nexora .magnet-content-container { display:block !important; padding:18px !important; border:1px solid #d9d9d9 !important; border-radius:7px !important; background:#fff !important; }
body.theme-nexora .magnet-content-container > h1 { margin:0 0 15px !important; padding:0 0 12px !important; border-bottom:1px solid #e3e3e3 !important; font-size:18px !important; text-align:left !important; }
body.theme-nexora .top-content-layout {
  display:grid !important;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr) !important;
  align-items:start !important;
  gap:18px !important;
}
body.theme-nexora .cover-column { width:100% !important; max-width:none !important; margin:0 !important; }
body.theme-nexora .cover-column img { width:100% !important; height:auto !important; max-height:620px !important; aspect-ratio:auto !important; object-fit:contain !important; object-position:center top !important; border:1px solid #d8d8d8 !important; border-radius:5px !important; background:#f3f3f3 !important; }
body.theme-nexora .details-sidebar { width:100% !important; min-width:0 !important; padding:14px !important; border:1px solid #d9d9d9 !important; border-radius:5px !important; background:#fafafa !important; }
body.theme-nexora .details-sidebar .detail-item { display:grid !important; grid-template-columns:58px minmax(0,1fr) !important; gap:8px !important; align-items:start !important; padding:9px 0 !important; margin:0 !important; border-bottom:1px solid #e7e7e7 !important; }
body.theme-nexora .details-sidebar .detail-item:last-child { border-bottom:0 !important; }
body.theme-nexora .details-sidebar .detail-item strong { margin:0 !important; color:#666 !important; font-size:12px !important; font-weight:700 !important; }
body.theme-nexora .details-sidebar .detail-item span { min-width:0 !important; color:#222 !important; overflow-wrap:anywhere !important; }
body.theme-nexora .details-sidebar .tags-container { grid-column:1/-1 !important; }
body.theme-nexora .magnet-trending-box { margin:10px 0 !important; padding:8px 10px !important; border:1px solid #dedede !important; border-left:3px solid #555 !important; border-radius:4px !important; background:#f4f4f4 !important; }
body.theme-nexora .preview-gallery { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:8px !important; }
body.theme-nexora .preview-gallery img { aspect-ratio:4/3 !important; border-radius:4px !important; }
@media (max-width:768px) {
  body.theme-nexora .magnet-content-container { padding:12px !important; }
  body.theme-nexora .top-content-layout { grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }
  body.theme-nexora .cover-column { max-width:none !important; }
  body.theme-nexora .cover-column img { max-height:none !important; }
  body.theme-nexora .preview-gallery { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

/* Novel detail: container stacks normally; only content-wrapper owns the desktop columns. */
body.theme-nexora .novel-layout-container {
  display:block !important;
  margin-top:14px !important;
  padding:18px !important;
  border:1px solid #d9d9d9 !important;
  border-radius:7px !important;
  background:#fff !important;
}
body.theme-nexora .novel-layout-container > h1 { margin:0 0 16px !important; padding:0 0 13px !important; border-bottom:1px solid #e2e2e2 !important; font-size:22px !important; line-height:1.4 !important; text-align:left !important; }
body.theme-nexora .novel-layout-container .content-wrapper {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 310px !important;
  gap:18px !important;
  align-items:start !important;
  min-width:0 !important;
}
body.theme-nexora .novel-layout-container .main-column,
body.theme-nexora .novel-layout-container .sidebar-column { min-width:0 !important; width:auto !important; }
body.theme-nexora .novel-layout-container .sidebar-column { display:block !important; }
body.theme-nexora .novel-layout-container .main-column > .cover-image { width:min(280px,100%) !important; max-width:280px !important; margin:0 auto 16px !important; aspect-ratio:3/4 !important; object-fit:cover !important; border:1px solid #d8d8d8 !important; border-radius:5px !important; }
body.theme-nexora .novel-audio-box-transparent { background:#1b1b1b !important; color:#fff !important; border-radius:5px !important; }
body.theme-nexora .novel-audio-box-transparent .cover-image { width:120px !important; max-width:120px !important; border-radius:4px !important; }
body.theme-nexora .text-catalog-box,
body.theme-nexora .audio-player-box,
body.theme-nexora .audio-playlist-box,
body.theme-nexora .novel-layout-container .content-box { border-radius:5px !important; box-shadow:none !important; }
body.theme-nexora .main-content { font-size:15px !important; line-height:1.9 !important; color:#222 !important; }
@media (max-width:768px) {
  body.theme-nexora .novel-layout-container { padding:12px !important; }
  body.theme-nexora .novel-layout-container > h1 { font-size:19px !important; }
  body.theme-nexora .novel-layout-container .content-wrapper { grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }
  body.theme-nexora .novel-layout-container .sidebar-column { order:-1 !important; }
}

/* Gallery/photo/comic detail: clean metadata header and predictable image geometry. */
body.theme-nexora .gallery-layout-container {
  display:block !important;
  margin-top:14px !important;
  padding:18px !important;
  border:1px solid #d9d9d9 !important;
  border-radius:7px !important;
  background:#fff !important;
}
body.theme-nexora .gallery-layout-container > h1 { margin:0 0 14px !important; padding:0 0 12px !important; border-bottom:1px solid #e3e3e3 !important; font-size:22px !important; line-height:1.4 !important; text-align:left !important; }
body.theme-nexora .gallery-info-bar { display:flex !important; flex-wrap:wrap !important; justify-content:flex-start !important; gap:8px 22px !important; margin:0 0 10px !important; padding:10px 12px !important; border:1px solid #dedede !important; border-radius:4px !important; background:#f7f7f7 !important; }
body.theme-nexora .gallery-tags-bar { margin:0 0 10px !important; padding:10px 12px !important; border:1px solid #dedede !important; border-radius:4px !important; background:#fff !important; }
body.theme-nexora .gallery-marquee-box,
body.theme-nexora #marquee-box { border-radius:4px !important; background:#f4f4f4 !important; border-left-color:#555 !important; }
body.theme-nexora .gallery-layout-container.mode-gallery .gallery-images,
body.theme-nexora .gallery-layout-container.mode-gallery #gallery-images-container { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:10px !important; margin-top:14px !important; }
body.theme-nexora .gallery-layout-container.mode-gallery .gallery-item { width:100% !important; aspect-ratio:3/4 !important; overflow:hidden !important; border:1px solid #dedede !important; border-radius:4px !important; background:#f1f1f1 !important; }
body.theme-nexora .gallery-layout-container.mode-gallery .gallery-item img { display:block !important; width:100% !important; height:100% !important; min-height:0 !important; object-fit:cover !important; border-radius:0 !important; transform:none !important; box-shadow:none !important; }
body.theme-nexora .gallery-layout-container.mode-comic .gallery-images,
body.theme-nexora .gallery-layout-container.mode-comic #gallery-images-container { display:grid !important; grid-template-columns:minmax(0,900px) !important; justify-content:center !important; gap:8px !important; margin-top:12px !important; }
body.theme-nexora .gallery-layout-container.mode-comic .gallery-item { aspect-ratio:auto !important; border:0 !important; border-radius:0 !important; background:transparent !important; }
body.theme-nexora .gallery-layout-container.mode-comic .gallery-item img { width:100% !important; height:auto !important; object-fit:contain !important; border-radius:0 !important; }
@media (max-width:768px) {
  body.theme-nexora .gallery-layout-container { padding:12px !important; }
  body.theme-nexora .gallery-layout-container > h1 { font-size:19px !important; }
  body.theme-nexora .gallery-layout-container.mode-gallery .gallery-images,
  body.theme-nexora .gallery-layout-container.mode-gallery #gallery-images-container { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
  body.theme-nexora .gallery-info-bar { gap:7px 14px !important; }
}

/* Footer + friend links remain site-scoped; styling is neutral and flat. */
body.theme-nexora .friend-links-section { border-color:#333 !important; box-shadow:none !important; }
body.theme-nexora .btn-apply-link { background:#fff !important; color:#111 !important; border:1px solid #555 !important; border-radius:4px !important; }
body.theme-nexora .site-footer .links-grid li { background:#1a1a1a !important; border-color:#333 !important; }
body.theme-nexora .site-footer .links-grid li:hover { background:#222 !important; border-color:#555 !important; }
body.theme-nexora .nexora-perf { color:#777 !important; }


/* V2.1 hard grayscale + late inline-style neutralization. */
body.theme-nexora { color-scheme:light; }
body.theme-nexora *,
body.theme-nexora *::before,
body.theme-nexora *::after { text-shadow:none !important; }
body.theme-nexora .nexora-main *,
body.theme-nexora .site-header *,
body.theme-nexora .site-footer * { box-shadow:none !important; }
body.theme-nexora .filter-all-link,
body.theme-nexora .child-category-filters .filter-all-link,
body.theme-nexora .child-links-wrapper a:hover,
body.theme-nexora .tag-pill:hover,
body.theme-nexora .catalog-item:hover,
body.theme-nexora .playlist-item:hover { color:#111 !important; }
body.theme-nexora .toggle-tags-btn,
body.theme-nexora .resource-lines-toggle,
body.theme-nexora .modal-action-btn,
body.theme-nexora .visit-btn,
body.theme-nexora .pagination-container button,
body.theme-nexora .image-pagination a,
body.theme-nexora .image-pagination button { border-color:#bdbdbd !important; background:#fff !important; color:#222 !important; }
body.theme-nexora .toggle-tags-btn:hover,
body.theme-nexora .resource-lines-toggle:hover,
body.theme-nexora .modal-action-btn:hover,
body.theme-nexora .visit-btn:hover,
body.theme-nexora .pagination-container button:hover,
body.theme-nexora .image-pagination a:hover,
body.theme-nexora .image-pagination button:hover { border-color:#111 !important; background:#111 !important; color:#fff !important; }
/* render_resource_lines_cached_html() injects a later <style> with legacy orange !important rules;
   these selectors intentionally carry higher specificity so the template stays grayscale. */
body.theme-nexora .global-resource-lines-wrap .resource-lines-section { background:#fff !important; box-shadow:none !important; border:1px solid #dcdcdc !important; }
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .resource-lines-head h2 { color:#111 !important; }
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .resource-lines-toggle { border-color:#bdbdbd !important; color:#333 !important; background:#fff !important; }
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .resource-lines-toggle:hover { border-color:#111 !important; color:#fff !important; background:#111 !important; }
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a { border-color:#cfcfcf !important; color:#222 !important; background:#fff !important; }
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:hover { border-color:#111 !important; color:#fff !important; background:#111 !important; }
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid .desktop-name,
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid .mobile-name { color:inherit !important; }
body.theme-nexora .recommendation-section h3[style],
body.theme-nexora .dual-rank-board .recommendation-section h3[style] { color:#111 !important; border-left-color:#111 !important; }
body.theme-nexora .dual-rank-board .recommendation-section[style] { border-top-color:#d5d5d5 !important; }
body.theme-nexora .dual-rank-board .rec-item > div[style*="background:"] { background:#111 !important; color:#fff !important; box-shadow:none !important; }
body.theme-nexora .magnet-trending-box[style],
body.theme-nexora .gallery-marquee-box[style],
body.theme-nexora #marquee-box[style] { background:#f4f4f4 !important; border-left-color:#555 !important; }
body.theme-nexora .magnet-trending-box [style*="color:"],
body.theme-nexora .gallery-marquee-box [style*="color:"],
body.theme-nexora #marquee-box [style*="color:"] { color:#444 !important; }
body.theme-nexora .tags-section .tag-list a[style] { color:#333 !important; }
body.theme-nexora .floating-btn { background:#111 !important; color:#fff !important; box-shadow:none !important; }
body.theme-nexora .floating-btn:hover { background:#2b2b2b !important; color:#fff !important; transform:none !important; }
body.theme-nexora .lightbox-prev:hover,
body.theme-nexora .lightbox-next:hover { background:rgba(255,255,255,.14) !important; }
/* Keep initial rendering cheap: no glass, blur, filters or decorative transforms. */
body.theme-nexora .nexora-main :not(img):not(video),
body.theme-nexora .site-header :not(img),
body.theme-nexora .site-footer :not(img) { filter:none !important; }
/* Video-detail legacy color neutralization. */
body.theme-nexora a#box-v1-special { background:#222 !important; color:#fff !important; border:1px solid #3b3b3b !important; box-shadow:none !important; }
body.theme-nexora .playback-tips,
body.theme-nexora .trending-banner { background:#f4f4f4 !important; color:#444 !important; border-color:#d5d5d5 !important; border-left-color:#555 !important; box-shadow:none !important; }
body.theme-nexora .trending-text-link { color:#222 !important; }
body.theme-nexora .btn-m-img,
body.theme-nexora .btn-m-link,
body.theme-nexora .btn-v-down,
body.theme-nexora .matched-magnet-download { background:#111 !important; background-image:none !important; color:#fff !important; }
body.theme-nexora .badge-top,
body.theme-nexora .badge-normal { background:#111 !important; background-image:none !important; color:#fff !important; border-color:#111 !important; }
body.theme-nexora .related-videos-block h2 { background:#111 !important; color:#fff !important; }
body.theme-nexora .category-breadcrumb a { color:#222 !important; }
body.theme-nexora .show-all-btn { background:#efefef !important; color:#333 !important; }
/* Category child navigation: same stable grid language as the condition filters. */
body.theme-nexora .child-category-filters.nexora-filter-card {
  display:grid !important;
  grid-template-columns:76px auto minmax(0,1fr) !important;
  grid-template-areas:"label all links" !important;
  align-items:start !important;
  gap:8px 10px !important;
  padding:10px 14px !important;
  background:#fff !important;
  border:1px solid #dcdcdc !important;
}
body.theme-nexora .child-category-filters .nexora-filter-label { grid-area:label !important; margin:0 !important; padding:6px 0 !important; border:0 !important; font-size:13px !important; }
body.theme-nexora .child-category-filters .filter-all-link { grid-area:all !important; display:inline-flex !important; align-items:center !important; height:30px !important; padding:5px 10px !important; border:1px solid #111 !important; border-radius:4px !important; background:#111 !important; color:#fff !important; font-size:12px !important; line-height:18px !important; text-decoration:none !important; }
body.theme-nexora .child-category-filters .child-links-wrapper { grid-area:links !important; display:flex !important; flex-wrap:wrap !important; gap:6px !important; min-width:0 !important; }
body.theme-nexora .child-category-filters .child-links-wrapper a { display:inline-flex !important; align-items:center !important; min-height:30px !important; padding:5px 9px !important; border:1px solid #d5d5d5 !important; border-radius:4px !important; background:#f5f5f5 !important; color:#333 !important; font-size:12px !important; line-height:18px !important; text-decoration:none !important; }
body.theme-nexora .child-category-filters .child-links-wrapper a:hover { border-color:#999 !important; background:#ececec !important; color:#111 !important; }
@media (max-width:768px) {
  body.theme-nexora .child-category-filters.nexora-filter-card { grid-template-columns:minmax(0,1fr) auto !important; grid-template-areas:"label all" "links links" !important; padding:8px 10px !important; }
  body.theme-nexora .child-category-filters .nexora-filter-label { padding:3px 0 !important; line-height:22px !important; }
  body.theme-nexora .child-category-filters .filter-all-link { height:28px !important; padding:4px 9px !important; }
  body.theme-nexora .child-category-filters .child-links-wrapper { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:6px 5px !important; }
  body.theme-nexora .child-category-filters .child-links-wrapper a { justify-content:center !important; min-width:0 !important; min-height:28px !important; padding:4px 4px !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
}
/* Remaining legacy accents are deliberately neutralized so no page falls back to orange/blue/red UI chrome. */
body.theme-nexora .magnet-box h3 a,
body.theme-nexora .gallery-info-bar a,
body.theme-nexora .novel-icon-orange,
body.theme-nexora #media-status,
body.theme-nexora #media-percent { color:#222 !important; }
body.theme-nexora #media-status-box > div[style] { color:#222 !important; }
body.theme-nexora .media-progress-bar { background:#111 !important; background-image:none !important; }
body.theme-nexora .modal-error,
body.theme-nexora .status-message { color:#555 !important; }


/* V3.0 feedback pass: compact grayscale UI, navigation repair and mobile filter discipline. */
body.theme-nexora {
  --primary-color:#111111;
  --text-color:#222222;
  --border-color:#d8d8d8;
  --bg-color:#ffffff;
  --body-bg-color:#f3f3f3;
  --light-bg-color:#f6f6f6;
  --tag-bg-color:#efefef;
}
body.theme-nexora .nexora-eyebrow { display:none !important; }

/* PC child categories: strictly vertical, flat grayscale, no orange hover from global_v4. */
@media (min-width:769px) {
  body.theme-nexora .nav-item.has-dropdown { position:relative !important; }
  body.theme-nexora .header-nav-list.pc-only > .nav-item.has-dropdown > a { padding-bottom:7px !important; margin-bottom:0 !important; }
  body.theme-nexora .dropdown-menu.pc-only,
  body.theme-nexora .nav-item.has-dropdown .dropdown-menu {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:2px !important;
    min-width:168px !important;
    width:max-content !important;
    max-width:240px !important;
    padding:6px !important;
    border:1px solid #3a3a3a !important;
    border-radius:4px !important;
    background:#151515 !important;
    box-shadow:none !important;
    transform:translateX(-50%) translateY(6px) !important;
  }
  body.theme-nexora .dropdown-menu::before { display:none !important; content:none !important; }
  body.theme-nexora .nav-item.has-dropdown:hover .dropdown-menu { transform:translateX(-50%) translateY(4px) !important; }
  body.theme-nexora .dropdown-menu a {
    display:block !important;
    width:100% !important;
    padding:8px 10px !important;
    border:0 !important;
    border-radius:2px !important;
    background:#151515 !important;
    color:#eeeeee !important;
    font-size:13px !important;
    line-height:1.25 !important;
    text-align:left !important;
    transform:none !important;
  }
  body.theme-nexora .dropdown-menu a:hover,
  body.theme-nexora .dropdown-menu a:focus-visible { background:#eeeeee !important; color:#111111 !important; }
}

/* Header buttons are simple black/white controls, no gradient/filter movement. */
body.theme-nexora .nav-orange-btn,
body.theme-nexora .home-path-button { background:#ffffff !important; color:#111111 !important; border:1px solid #cfcfcf !important; border-radius:4px !important; box-shadow:none !important; }
body.theme-nexora .nav-orange-btn:hover,
body.theme-nexora .home-path-button:hover { background:#e9e9e9 !important; color:#000 !important; transform:none !important; filter:none !important; }

/* Mobile header: black from edge to edge; only the seven short labels are visible in one row. */
@media (max-width:768px) {
  body.theme-nexora .site-header,
  body.theme-nexora .header-main-container,
  body.theme-nexora .header-logo-row { background:#111111 !important; }
  body.theme-nexora .header-logo-row { border-bottom:1px solid #2a2a2a !important; padding:6px 0 !important; }
  body.theme-nexora .header-nav-list.pc-only,
  body.theme-nexora .dropdown-menu.pc-only { display:none !important; }
  body.theme-nexora .header-nav-list.mobile-only {
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:2px !important;
  }
  body.theme-nexora .header-nav-list.mobile-only li a { padding:7px 1px !important; border-radius:2px !important; background:#1b1b1b !important; color:#f3f3f3 !important; font-size:11px !important; }
  body.theme-nexora .mobile-drawer-toggle { border-color:#3b3b3b !important; border-radius:4px !important; background:#1a1a1a !important; color:#fff !important; }
  body.theme-nexora .home-path-button { background:#1a1a1a !important; color:#fff !important; border-color:#3b3b3b !important; }
}
@media (max-width:390px) { body.theme-nexora .header-nav-list.mobile-only li a { font-size:10.5px !important; letter-spacing:-.02em; } }
@media (max-width:360px) { body.theme-nexora .header-nav-list.mobile-only li a { font-size:10px !important; padding-left:0 !important; padding-right:0 !important; } }

/* Drawer: remove the old black title slab; categories get the full drawer width. */
body.theme-nexora .side-drawer { background:#fff !important; box-shadow:none !important; border-right:1px solid #d5d5d5 !important; }
body.theme-nexora .drawer-header { display:none !important; }
body.theme-nexora .drawer-close-floating,
body.theme-nexora #drawer-close-btn.drawer-close-floating {
  position:absolute !important; top:8px !important; right:8px !important; z-index:2 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  width:34px !important; height:34px !important; border:1px solid #d0d0d0 !important; border-radius:4px !important;
  background:#fff !important; color:#111 !important;
}
body.theme-nexora .drawer-body { padding:50px 10px 10px !important; }
body.theme-nexora .drawer-group { padding:8px !important; margin-bottom:6px !important; border-radius:4px !important; }
body.theme-nexora .drawer-group-title { margin-bottom:6px !important; padding-bottom:5px !important; border-bottom:1px solid #e3e3e3 !important; color:#111 !important; }
body.theme-nexora .drawer-group-content { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:5px !important; }
body.theme-nexora .drawer-group-content a,
body.theme-nexora .drawer-group-content a:hover,
body.theme-nexora .drawer-group-content a:active { padding:7px 5px !important; border:1px solid #dedede !important; border-radius:3px !important; background:#f5f5f5 !important; color:#222 !important; }

/* Compact vertical rhythm: sections are separated by a thin visual seam rather than large empty bands. */
body.theme-nexora .nexora-main { padding-top:4px !important; padding-bottom:12px !important; }
body.theme-nexora .nexora-hero-stack { gap:3px !important; margin-bottom:3px !important; }
body.theme-nexora .nexora-quick-zone,
body.theme-nexora .v1-ico-box { padding-top:8px !important; padding-bottom:8px !important; border-radius:4px !important; }
body.theme-nexora .top-promoted-container { margin:3px 0 0 !important; }
body.theme-nexora .nexora-discovery-stack { gap:3px !important; margin-bottom:3px !important; }
body.theme-nexora .nexora-home-stream { gap:3px !important; }
body.theme-nexora .global-resource-lines-wrap { margin:3px 0 !important; }
body.theme-nexora .nexora-filter-stack { gap:3px !important; margin-bottom:3px !important; }
body.theme-nexora .rankings-section,
body.theme-nexora .featured-topics-section,
body.theme-nexora .gallery-section,
body.theme-nexora .nexora-section { border-radius:4px !important; }

/* One search language everywhere: same two-column structure and the same grayscale shell. */
body.theme-nexora .search-section.nexora-discovery,
body.theme-nexora .search-section { background:#171717 !important; border:1px solid #2f2f2f !important; border-radius:4px !important; box-shadow:none !important; }
body.theme-nexora .nexora-discovery-head { padding:12px 14px !important; gap:14px !important; }
body.theme-nexora .nexora-discovery-copy { color:#fff !important; }
body.theme-nexora .nexora-discovery-copy strong { font-size:16px !important; }
body.theme-nexora .search-form { border:1px solid #d6d6d6 !important; border-radius:3px !important; background:#fff !important; }
body.theme-nexora .search-form button { background:#111 !important; color:#fff !important; }
@media (max-width:768px) {
  body.theme-nexora .nexora-discovery-head { grid-template-columns:minmax(0,1fr) !important; gap:7px !important; padding:9px !important; }
  body.theme-nexora .nexora-discovery-copy strong { font-size:14px !important; }
}

/* Ranking title icon and text share the same baseline/center line. */
body.theme-nexora .nexora-heading-group { display:flex !important; align-items:center !important; min-width:0 !important; }
body.theme-nexora .rankings-header h2,
body.theme-nexora .rankings-section .section-header h2 { display:flex !important; align-items:center !important; gap:7px !important; line-height:24px !important; }
body.theme-nexora .ranking-icon { display:block !important; width:22px !important; height:22px !important; flex:0 0 22px !important; margin:0 !important; vertical-align:middle !important; fill:currentColor !important; }
body.theme-nexora .section-title span { background:#fff !important; }
body.theme-nexora .section-title::before { background:#d9d9d9 !important; height:1px !important; }

/* Release-page modal: flat black/white address list, generous tap targets, no glass or colored bullets. */
body.theme-nexora #home-modal { background:rgba(0,0,0,.72) !important; }
body.theme-nexora #home-modal .modal-content {
  width:min(520px,calc(100vw - 24px)) !important; max-width:520px !important; padding:0 !important;
  overflow:hidden !important; border:1px solid #444 !important; border-radius:6px !important; background:#fff !important; color:#111 !important; box-shadow:none !important;
}
body.theme-nexora #home-modal .modal-content > .modal-close-btn {
  top:9px !important; right:9px !important; width:32px !important; height:32px !important; border:1px solid #d2d2d2 !important; border-radius:4px !important;
  background:#fff !important; color:#111 !important; line-height:28px !important;
}
body.theme-nexora .nexora-modal-heading { padding:14px 50px 12px 14px !important; border-bottom:1px solid #dedede !important; background:#151515 !important; color:#fff !important; }
body.theme-nexora .nexora-modal-heading strong { display:block; font-size:16px !important; line-height:1.3 !important; }
body.theme-nexora .nexora-modal-heading span { display:block; margin-top:3px; color:#bdbdbd !important; font-size:12px !important; }
body.theme-nexora #js-dynamic-modal-body { padding:10px !important; max-height:min(62vh,500px) !important; overflow:auto !important; }
body.theme-nexora .modal-item { display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; align-items:center !important; gap:8px !important; margin:0 0 6px !important; padding:9px !important; border:1px solid #dedede !important; border-radius:4px !important; background:#f7f7f7 !important; }
body.theme-nexora .modal-item-label { min-width:0 !important; display:flex !important; align-items:center !important; gap:7px !important; color:#222 !important; }
body.theme-nexora .modal-bullet { color:#111 !important; font-size:8px !important; }
body.theme-nexora .modal-item-text { min-width:0 !important; overflow-wrap:anywhere !important; }
body.theme-nexora .modal-buttons { display:flex !important; gap:5px !important; }
body.theme-nexora .modal-action-btn { min-height:32px !important; padding:6px 10px !important; border:1px solid #bbb !important; border-radius:3px !important; background:#fff !important; color:#111 !important; }
body.theme-nexora .modal-action-btn:hover { border-color:#111 !important; background:#111 !important; color:#fff !important; }
body.theme-nexora .modal-footer { padding:8px 10px !important; border-top:1px solid #dedede !important; background:#f5f5f5 !important; }
body.theme-nexora .modal-footer .bottom-close-btn { position:static !important; width:100% !important; min-height:34px !important; border:1px solid #cfcfcf !important; border-radius:3px !important; background:#fff !important; color:#111 !important; }
@media (max-width:480px) {
  body.theme-nexora .modal-item { grid-template-columns:minmax(0,1fr) !important; }
  body.theme-nexora .modal-buttons { justify-content:flex-end !important; }
}

/* Mobile condition filters: title + one line of options + More are always on one row. */
@media (max-width:768px) {
  body.theme-nexora .multi-select-filters { padding:7px 8px !important; }
  body.theme-nexora .filter-group {
    grid-template-columns:44px minmax(0,1fr) 48px !important;
    grid-template-areas:"title options expand" !important;
    align-items:start !important;
    gap:5px !important;
    padding:7px 0 !important;
  }
  body.theme-nexora .filter-group-title,
  body.theme-nexora .filter-title { padding:3px 0 !important; line-height:22px !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
  body.theme-nexora .nexora-filter-options { align-items:flex-start !important; flex-wrap:wrap !important; gap:5px !important; max-height:28px !important; overflow:hidden !important; }
  body.theme-nexora .filter-group.is-expanded .nexora-filter-options { max-height:none !important; overflow:visible !important; }
  body.theme-nexora .filter-tag { height:28px !important; min-height:28px !important; padding:4px 7px !important; }
  body.theme-nexora .filter-expand-btn { height:28px !important; min-width:48px !important; padding:4px 4px !important; white-space:nowrap !important; }
}
@media (max-width:390px) {
  body.theme-nexora .filter-group { grid-template-columns:40px minmax(0,1fr) 44px !important; gap:4px !important; }
  body.theme-nexora .filter-group-title,
  body.theme-nexora .filter-title,
  body.theme-nexora .filter-tag,
  body.theme-nexora .filter-expand-btn { font-size:11px !important; }
  body.theme-nexora .filter-tag { padding-left:6px !important; padding-right:6px !important; }
  body.theme-nexora .filter-expand-btn { min-width:44px !important; }
}

/* Friend links: clean Chinese-only header and minimal gap. */
body.theme-nexora .friend-links-section { margin-top:3px !important; border-radius:4px !important; }
body.theme-nexora .friend-links-header { min-height:40px !important; padding:8px 10px !important; }
body.theme-nexora .friend-links-header h2 { margin:0 !important; font-size:16px !important; }

/* V3.1 final interaction/performance trim. */
body.theme-nexora .dropdown-menu a,
body.theme-nexora .filter-tag,
body.theme-nexora .filter-expand-btn,
body.theme-nexora .modal-action-btn,
body.theme-nexora .nav-orange-btn,
body.theme-nexora .home-path-button { transition:none !important; }
body.theme-nexora .nexora-main { padding-top:2px !important; }
body.theme-nexora .nexora-hero-stack,
body.theme-nexora .nexora-discovery-stack,
body.theme-nexora .nexora-home-stream,
body.theme-nexora .nexora-filter-stack { gap:2px !important; margin-bottom:2px !important; }
body.theme-nexora .global-resource-lines-wrap { margin:2px 0 !important; }
/* Drawer must not inherit the generic mobile-only flex display. */
@media (max-width:768px) {
  body.theme-nexora .side-drawer.mobile-only { display:block !important; }
  body.theme-nexora .drawer-body { width:100% !important; min-width:0 !important; box-sizing:border-box !important; }
}
/* V3 final: dropdown opens immediately; avoids residual transition and keeps submenu interaction crisp. */
body.theme-nexora .dropdown-menu { transition:none !important; }

/* =====================================================================
 * NEXORA V4 refinement — 2026-09-17
 * User-requested fixes: release URL handling, strict grayscale resource
 * lines, new topic/recommendation language, lighter resource typography,
 * tighter category/search controls and detail recommendation stability.
 * ===================================================================== */

/* More-hot-searches must read as the primary reveal control. */
body.theme-nexora .tags-section .toggle-tags-btn,
body.theme-nexora #tag-groups-wrapper .toggle-tags-btn {
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
  font-weight:600 !important;
}
body.theme-nexora .tags-section .toggle-tags-btn:hover,
body.theme-nexora #tag-groups-wrapper .toggle-tags-btn:hover {
  background:#2a2a2a !important;
  color:#fff !important;
  border-color:#2a2a2a !important;
}

/* Cached resource-lines HTML includes legacy orange declarations. Override it at higher specificity. */
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a,
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:visited {
  background:#fff !important;
  border-color:#bfbfbf !important;
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
}
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:hover,
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:active {
  background:#111 !important;
  border-color:#111 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid .desktop-name,
body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid .mobile-name {
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
}
@media (min-width:769px) {
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .resource-lines-toggle {
    font-size:13px !important;
  }
}
@media (max-width:768px) {
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:visited {
    background:#fff !important;
    border-color:#aaa !important;
    color:#111 !important;
    -webkit-text-fill-color:#111 !important;
  }
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid .mobile-name {
    color:#111 !important;
    -webkit-text-fill-color:#111 !important;
  }
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:hover .mobile-name,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:active .mobile-name {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
}

/* Featured topics: circular monochrome discovery tokens, no longer card/poster clones. */
body.theme-nexora .nexora-topics .topics-grid { align-items:start !important; }
body.theme-nexora .nexora-topics .topic-item,
body.theme-nexora .nexora-topics .nexora-topic-card {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:7px !important;
  padding:2px 1px 5px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  overflow:visible !important;
  text-decoration:none !important;
}
body.theme-nexora .nexora-topics .topic-item img,
body.theme-nexora .nexora-topics .nexora-topic-card img {
  width:min(100%,92px) !important;
  aspect-ratio:1/1 !important;
  height:auto !important;
  border:2px solid #111 !important;
  border-radius:50% !important;
  object-fit:cover !important;
  filter:none !important;
  transform:none !important;
}
body.theme-nexora .nexora-topics .topic-item span,
body.theme-nexora .nexora-topics .nexora-topic-card span {
  width:100% !important;
  padding:0 3px !important;
  border:0 !important;
  background:transparent !important;
  color:#111 !important;
  font-size:12px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
@media (max-width:768px) {
  body.theme-nexora .nexora-topics .topic-item img,
  body.theme-nexora .nexora-topics .nexora-topic-card img { width:min(100%,82px) !important; }
}

/* Exclusive recommendations: numbered editorial strips with a black caption rail. */
body.theme-nexora .nexora-gallery-picks .gallery-grid {
  counter-reset:nexora-exclusive;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:9px !important;
}
body.theme-nexora .nexora-gallery-picks .gallery-item,
body.theme-nexora .nexora-gallery-picks .nexora-wide-card {
  counter-increment:nexora-exclusive;
  position:relative !important;
  display:block !important;
  min-width:0 !important;
  border:1px solid #111 !important;
  border-radius:0 !important;
  background:#111 !important;
  overflow:hidden !important;
  text-decoration:none !important;
}
body.theme-nexora .nexora-gallery-picks .gallery-item::before,
body.theme-nexora .nexora-gallery-picks .nexora-wide-card::before {
  content:counter(nexora-exclusive, decimal-leading-zero);
  position:absolute;
  top:7px;
  left:7px;
  z-index:2;
  min-width:27px;
  padding:3px 5px;
  border:1px solid #fff;
  background:#111;
  color:#fff;
  font-size:10px;
  line-height:1.2;
  text-align:center;
}
body.theme-nexora .nexora-gallery-picks .gallery-item img,
body.theme-nexora .nexora-gallery-picks .nexora-wide-card img {
  display:block !important;
  width:100% !important;
  aspect-ratio:16/9 !important;
  height:auto !important;
  object-fit:cover !important;
  filter:none !important;
}
body.theme-nexora .nexora-gallery-picks .gallery-item-tag,
body.theme-nexora .nexora-gallery-picks .gallery-item span {
  display:block !important;
  min-width:0 !important;
  padding:8px 9px !important;
  border-top:1px solid #333 !important;
  background:#111 !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
@media (max-width:768px) {
  body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:6px !important; }
}

/* Resource/content titles use normal weight everywhere; section headings stay independent. */
body.theme-nexora .ranking-item-title,
body.theme-nexora .nexora-ranking-title,
body.theme-nexora .rec-title,
body.theme-nexora .content-item-title,
body.theme-nexora .result-item .info h3,
body.theme-nexora .result-item .info .title,
body.theme-nexora .related-video-title,
body.theme-nexora .overlay-card-title,
body.theme-nexora .gallery-item-tag,
body.theme-nexora .topic-item span,
body.theme-nexora .nexora-topic-card span {
  font-weight:400 !important;
}

/* Friend links become a clear white panel so the heading can be true black. */
body.theme-nexora .site-footer .friend-links-section,
body.theme-nexora .nexora-footer .friend-links-section {
  padding:8px 10px 10px !important;
  border:1px solid #d7d7d7 !important;
  background:#fff !important;
  color:#111 !important;
}
body.theme-nexora .site-footer .friend-links-header h2,
body.theme-nexora .nexora-footer .friend-links-header h2 { color:#000 !important; font-weight:700 !important; }
body.theme-nexora .site-footer .friend-links-section .btn-apply-link { background:#111 !important; color:#fff !important; border-color:#111 !important; }
body.theme-nexora .site-footer .friend-links-section .links-grid li {
  background:#f6f6f6 !important;
  border-color:#d9d9d9 !important;
}
body.theme-nexora .site-footer .friend-links-section .links-grid li:hover { background:#eee !important; border-color:#aaa !important; }
body.theme-nexora .site-footer .friend-links-section .links-grid a { color:#222 !important; }

/* Category/search controls: full-width sort pair and compact stacking. */
body.theme-nexora.page-category .sort-tabs,
body.theme-nexora.page-search .sort-tabs {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  width:100% !important;
  gap:3px !important;
  margin:2px 0 !important;
  padding:3px !important;
}
body.theme-nexora.page-category .sort-tabs button,
body.theme-nexora.page-search .sort-tabs button { width:100% !important; min-width:0 !important; }
body.theme-nexora.page-search .nexora-search-controls { display:grid !important; gap:2px !important; margin:2px 0 !important; }
body.theme-nexora.page-search .search-results-container,
body.theme-nexora.page-category .search-results-container { margin-top:2px !important; }
@media (max-width:768px) {
  body.theme-nexora.page-search .type-tabs {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:4px !important;
    width:100% !important;
    margin:0 !important;
    padding:3px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  body.theme-nexora.page-search .type-tabs::-webkit-scrollbar { display:none !important; }
  body.theme-nexora.page-search .type-tabs button {
    flex:0 0 auto !important;
    width:auto !important;
    min-width:max-content !important;
    white-space:nowrap !important;
  }
}

/* Expanded mobile filters: keep first row compact, then let overflow tags use the full row width. */
@media (max-width:768px) {
  body.theme-nexora .filter-group.is-expanded { grid-template-rows:auto auto !important; }
  body.theme-nexora .filter-group.is-expanded .nexora-filter-options {
    grid-area:options !important;
    max-height:28px !important;
    overflow:hidden !important;
  }
  body.theme-nexora .nexora-filter-overflow {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    display:flex !important;
    flex-wrap:wrap !important;
    gap:5px !important;
    min-width:0 !important;
    margin:0 !important;
    padding:1px 0 0 !important;
  }
  body.theme-nexora .nexora-filter-overflow .filter-tag { flex:0 0 auto !important; }
}

/* Video image tags: full-image monochrome tiles with a black caption rail. */
body.theme-nexora .image-tags-section { padding:10px !important; }
body.theme-nexora .image-tags-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:7px !important; }
body.theme-nexora .image-tag-card {
  display:block !important;
  min-width:0 !important;
  padding:0 !important;
  border:1px solid #111 !important;
  border-radius:0 !important;
  background:#111 !important;
  overflow:hidden !important;
}
body.theme-nexora .image-tag-card__image {
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:cover !important;
  filter:none !important;
}
body.theme-nexora .image-tag-card__text {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  padding:7px 8px !important;
  background:#111 !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
@media (max-width:768px) {
  body.theme-nexora .image-tags-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:6px !important; }
}

/* Detail recommendation titles: exact two-line clamp without cutting the second baseline. */
body.theme-nexora .related-video-title,
body.theme-nexora .rec-title {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:break-all !important;
  overflow-wrap:anywhere !important;
  line-height:1.45 !important;
  height:auto !important;
  max-height:2.9em !important;
  min-height:2.9em !important;
}
body.theme-nexora .related-video-info { min-height:0 !important; height:auto !important; }

/* Magnet links: compact viewport, truncated visual text, full value still copied by the existing button. */
body.theme-nexora #magnet-links-section .magnet-list {
  max-height:360px !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  padding-right:2px !important;
}
body.theme-nexora #magnet-links-section .magnet-list .item {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
}
body.theme-nexora #magnet-links-section .magnet-list .link {
  display:block !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
body.theme-nexora .magnet-content-container .scroll-to-btn,
body.theme-nexora .novel-layout-container .scroll-to-btn {
  background:#111 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:1px solid #111 !important;
}
body.theme-nexora .magnet-content-container .scroll-to-btn:hover,
body.theme-nexora .novel-layout-container .scroll-to-btn:hover { background:#2a2a2a !important; color:#fff !important; }
@media (max-width:768px) {
  body.theme-nexora #magnet-links-section .magnet-list { max-height:300px !important; }
  body.theme-nexora #magnet-links-section .magnet-list .item { grid-template-columns:minmax(0,1fr) auto !important; }
  body.theme-nexora #magnet-links-section .magnet-list .copy-btn { align-self:center !important; }
}

/* Gallery and novel recommendation payloads currently contain four items: size the desktop grid for four, not five. */
@media (min-width:769px) {
  body.theme-nexora .recommendation-grid.rec-videos,
  body.theme-nexora .recommendation-grid.rec-magnets,
  body.theme-nexora .recommendation-grid.rec-novels,
  body.theme-nexora #guochan-videos-rec .recommendation-grid,
  body.theme-nexora #meitu-rec .recommendation-grid,
  body.theme-nexora #manga-rec .recommendation-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}
@media (max-width:768px) {
  body.theme-nexora .recommendation-grid.rec-videos,
  body.theme-nexora .recommendation-grid.rec-magnets,
  body.theme-nexora .recommendation-grid.rec-novels,
  body.theme-nexora #guochan-videos-rec .recommendation-grid,
  body.theme-nexora #meitu-rec .recommendation-grid,
  body.theme-nexora #manga-rec .recommendation-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:768px) {
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .resource-lines-toggle { font-size:12px !important; }
}
/* Resource-line grayscale fallback for pages where the renderer is not wrapped by global-resource-lines-wrap. */
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a,
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:visited {
  background:#fff !important; border-color:#bfbfbf !important; color:#111 !important; -webkit-text-fill-color:#111 !important;
}
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:hover,
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:active {
  background:#111 !important; border-color:#111 !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
}
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid .desktop-name,
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid .mobile-name { color:inherit !important; -webkit-text-fill-color:currentColor !important; }
@media (min-width:769px) {
  body.theme-nexora .resource-lines-section.category-nav-section .resource-lines-toggle { font-size:13px !important; }
}
@media (max-width:768px) {
  body.theme-nexora .resource-lines-section.category-nav-section .resource-lines-toggle { font-size:12px !important; }
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid .mobile-name { color:#111 !important; -webkit-text-fill-color:#111 !important; }
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:hover .mobile-name,
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:active .mobile-name { color:#fff !important; -webkit-text-fill-color:#fff !important; }
}

/* NEXORA V5 — warm neutral visual system and final layout corrections. */
:root {
  --nx-primary:#4a4037; --nx-primary-strong:#2f2a25; --nx-primary-soft:#eee8df;
  --nx-accent:#6b5b4b; --nx-accent-strong:#4f4338; --nx-accent-soft:#f1ebe4;
  --nx-night:#2d2925; --nx-night-2:#3b342e; --nx-bg:#f3efe9; --nx-surface:#fffdf9;
  --nx-surface-soft:#f7f2ec; --nx-text:#292622; --nx-text-2:#4c4741; --nx-muted:#756e67;
  --nx-border:#ddd4ca; --nx-border-strong:#c9beb2; --nx-danger:#4a4037; --nx-warning:#6b5b4b;
}
body.theme-nexora { background:#f3efe9 !important; color:#292622 !important; }
body.theme-nexora .site-header.nexora-header, body.theme-nexora .site-header { background:#2d2925 !important; color:#fff !important; box-shadow:none !important; }
body.theme-nexora .nav-orange-btn, body.theme-nexora .home-path-button { background:#4a4037 !important; border-color:#61554a !important; color:#fff !important; box-shadow:none !important; }
body.theme-nexora .nav-orange-btn:hover, body.theme-nexora .home-path-button:hover { background:#5a4d41 !important; filter:none !important; transform:none !important; }
body.theme-nexora .search-section.nexora-discovery, body.theme-nexora .search-section { background:#3a332d !important; box-shadow:none !important; }
body.theme-nexora .search-form { background:#fffdf9 !important; border-color:#cfc4b8 !important; }
body.theme-nexora .search-form input[type="text"] { color:#292622 !important; }
body.theme-nexora .search-form button { background:#4a4037 !important; color:#fff !important; }
body.theme-nexora .search-form button:hover { background:#2f2a25 !important; }
body.theme-nexora .tags-section, body.theme-nexora .nexora-section, body.theme-nexora .rankings-section, body.theme-nexora .featured-topics-section, body.theme-nexora .gallery-section, body.theme-nexora .tags-card, body.theme-nexora .v1-ico-box, body.theme-nexora .nexora-quick-zone, body.theme-nexora .resource-lines-section.category-nav-section { background:#fffdf9 !important; border-color:#ddd4ca !important; box-shadow:none !important; }
body.theme-nexora .section-title span, body.theme-nexora .nexora-section-title span { background:#fffdf9 !important; color:#2f2a25 !important; }
body.theme-nexora .section-title::before { background:#d6ccc1 !important; }
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a, body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:visited, body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a { background:#fffdf9 !important; border-color:#cfc4b8 !important; color:#3f3933 !important; -webkit-text-fill-color:#3f3933 !important; }
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:hover, body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:hover { background:#4a4037 !important; border-color:#4a4037 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; }
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid .mobile-name { color:#3f3933 !important; -webkit-text-fill-color:#3f3933 !important; }
body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:hover .mobile-name { color:#fff !important; -webkit-text-fill-color:#fff !important; }
body.theme-nexora .resource-lines-section.category-nav-section .resource-lines-toggle { background:#fffdf9 !important; border-color:#bfb3a7 !important; color:#4a4037 !important; }
body.theme-nexora .resource-lines-section.category-nav-section .resource-lines-toggle:hover { background:#4a4037 !important; color:#fff !important; border-color:#4a4037 !important; }
@media (min-width:769px) { body.theme-nexora .nexora-topics .topics-grid { grid-template-columns:repeat(12,minmax(0,1fr)) !important; gap:10px !important; } }
body.theme-nexora .nexora-topics .topic-item, body.theme-nexora .nexora-topics .nexora-topic-card { gap:6px !important; padding:2px 0 5px !important; }
body.theme-nexora .nexora-topics .topic-item img, body.theme-nexora .nexora-topics .nexora-topic-card img { width:min(100%,76px) !important; aspect-ratio:1/1 !important; margin:0 auto !important; border:1px solid #cfc4b8 !important; background:#f2ece5 !important; }
body.theme-nexora .nexora-topics .topic-item span, body.theme-nexora .nexora-topics .nexora-topic-card span { display:block !important; width:100% !important; max-width:100% !important; padding:0 2px !important; color:#332e29 !important; font-size:12px !important; font-weight:400 !important; line-height:1.35 !important; text-align:center !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
@media (max-width:768px) { body.theme-nexora .nexora-topics .topics-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; } body.theme-nexora .nexora-topics .topic-item img, body.theme-nexora .nexora-topics .nexora-topic-card img { width:min(100%,82px) !important; } }
body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:8px !important; }
body.theme-nexora .nexora-gallery-picks .gallery-item::before, body.theme-nexora .nexora-gallery-picks .nexora-wide-card::before { display:none !important; content:none !important; }
body.theme-nexora .nexora-gallery-picks .gallery-item, body.theme-nexora .nexora-gallery-picks .nexora-wide-card { border:1px solid #d8cec3 !important; border-radius:8px !important; background:#fffdf9 !important; }
body.theme-nexora .nexora-gallery-picks .gallery-item img, body.theme-nexora .nexora-gallery-picks .nexora-wide-card img { aspect-ratio:16/9 !important; border-radius:7px 7px 0 0 !important; }
body.theme-nexora .nexora-gallery-picks .gallery-item-tag, body.theme-nexora .nexora-gallery-picks .gallery-item span { border-top:1px solid #e1d8cf !important; background:#fffdf9 !important; color:#332e29 !important; font-weight:400 !important; }
body.theme-nexora .ranking-item-title, body.theme-nexora .nexora-ranking-title, body.theme-nexora .rec-title, body.theme-nexora .content-item-title, body.theme-nexora .result-item .info h3, body.theme-nexora .result-item .info .title, body.theme-nexora .related-video-title, body.theme-nexora .overlay-card-title, body.theme-nexora .gallery-item-tag, body.theme-nexora .topic-item span, body.theme-nexora .nexora-topic-card span { font-weight:400 !important; }
body.theme-nexora .rec-title, body.theme-nexora .related-video-title { display:-webkit-box !important; -webkit-box-orient:vertical !important; -webkit-line-clamp:2 !important; overflow:hidden !important; text-overflow:ellipsis !important; max-height:2.9em !important; min-height:2.9em !important; word-break:break-all !important; overflow-wrap:anywhere !important; }
body.theme-nexora .top-promoted-container { display:block !important; margin:2px 0 0 !important; padding:0 !important; min-height:0 !important; }
body.theme-nexora .top-promoted-container:empty { display:none !important; }
body.theme-nexora .top-links-grid { grid-template-columns:repeat(8,minmax(0,1fr)) !important; gap:6px !important; padding:0 !important; }
body.theme-nexora .top-links-grid li { background:#fffdf9 !important; border-color:#ddd4ca !important; border-radius:6px !important; }
body.theme-nexora .top-links-grid li a { color:#403a34 !important; font-weight:400 !important; }
body.theme-nexora .site-footer .friend-links-section { background:#fffdf9 !important; border-color:#d8cec3 !important; }
body.theme-nexora .site-footer .friend-links-section .links-grid { grid-template-columns:repeat(8,minmax(0,1fr)) !important; gap:6px !important; }
body.theme-nexora .site-footer .friend-links-header h2 { color:#2f2a25 !important; }
body.theme-nexora .site-footer .friend-links-section .links-grid li { background:#f7f2ec !important; border-color:#ddd4ca !important; }
body.theme-nexora .site-footer .friend-links-section .links-grid a { color:#403a34 !important; }
body.theme-nexora .site-footer .friend-links-section .link-name, body.theme-nexora .top-links-grid .link-name { min-width:0 !important; max-width:5.5em !important; overflow:hidden !important; white-space:nowrap !important; text-overflow:ellipsis !important; }
@media (max-width:768px) { body.theme-nexora .top-links-grid, body.theme-nexora .site-footer .friend-links-section .links-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:5px !important; } body.theme-nexora .site-footer .friend-links-section .link-name, body.theme-nexora .top-links-grid .link-name { max-width:5em !important; } }
body.theme-nexora #home-modal .modal-content { background:#fffdf9 !important; border:1px solid #d8cec3 !important; box-shadow:none !important; }
body.theme-nexora .nexora-modal-heading { background:#3a332d !important; border-bottom-color:#51473e !important; color:#fff !important; }
body.theme-nexora .modal-item { background:#f7f2ec !important; border-color:#ddd4ca !important; }
body.theme-nexora .modal-action-btn { background:#fffdf9 !important; color:#403a34 !important; border-color:#cbbfb3 !important; }
body.theme-nexora .modal-action-btn:hover { background:#4a4037 !important; border-color:#4a4037 !important; color:#fff !important; }
body.theme-nexora .video-info-block .category-breadcrumb { margin-top:0 !important; padding-top:0 !important; line-height:1.35 !important; align-items:flex-start !important; }
body.theme-nexora .video-info-block .category-breadcrumb a { line-height:1.3 !important; }
body.theme-nexora .image-tags-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:7px !important; }
body.theme-nexora .image-tag-card { display:flex !important; align-items:center !important; gap:7px !important; min-height:42px !important; padding:5px !important; border:1px solid #d8cec3 !important; border-radius:7px !important; background:#f7f2ec !important; }
body.theme-nexora .image-tag-card__image { width:34px !important; height:34px !important; aspect-ratio:1/1 !important; flex:0 0 34px !important; border-radius:5px !important; object-fit:cover !important; }
body.theme-nexora .image-tag-card__text { padding:0 !important; background:transparent !important; color:#403a34 !important; font-size:12px !important; font-weight:400 !important; line-height:1.3 !important; }
@media (max-width:768px) { body.theme-nexora .image-tags-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:6px !important; } body.theme-nexora .image-tag-card { min-height:40px !important; } body.theme-nexora .image-tag-card__image { width:30px !important; height:30px !important; flex-basis:30px !important; } }
@media (min-width:769px) { body.theme-nexora .recommendation-grid.rec-videos, body.theme-nexora .recommendation-grid.rec-magnets, body.theme-nexora .recommendation-grid.rec-novels, body.theme-nexora #guochan-videos-rec .recommendation-grid, body.theme-nexora #meitu-rec .recommendation-grid, body.theme-nexora #manga-rec .recommendation-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; } }
body.theme-nexora #magnet-links-section .magnet-list { max-height:300px !important; overflow-y:auto !important; }
body.theme-nexora #magnet-links-section .magnet-list .link { display:block !important; min-width:0 !important; max-width:100% !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; word-break:normal !important; overflow-wrap:normal !important; color:#403a34 !important; }
body.theme-nexora .magnet-content-container .scroll-to-btn, body.theme-nexora .novel-layout-container .scroll-to-btn { background:#4a4037 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; border-color:#4a4037 !important; }
body.theme-nexora .magnet-content-container .scroll-to-btn:hover, body.theme-nexora .novel-layout-container .scroll-to-btn:hover { background:#2f2a25 !important; color:#fff !important; }
body.theme-nexora .image-pagination { display:flex !important; justify-content:center !important; align-items:center !important; text-align:center !important; width:100% !important; }
body.theme-nexora .image-pagination > * { float:none !important; margin-left:0 !important; margin-right:0 !important; }
body.theme-nexora .image-pagination ul, body.theme-nexora .image-pagination .pagination { display:flex !important; justify-content:center !important; align-items:center !important; width:100% !important; padding:0 !important; margin:0 auto !important; }
body.theme-nexora .image-pagination a, body.theme-nexora .image-pagination button { text-align:center !important; }
body.theme-nexora .nexora-main { padding-top:6px !important; padding-bottom:22px !important; }
body.theme-nexora .nexora-hero-stack, body.theme-nexora .nexora-discovery-stack, body.theme-nexora .nexora-home-stream { gap:2px !important; margin-bottom:2px !important; }
body.theme-nexora .nexora-hero-stack .nexora-banner-zone, body.theme-nexora .nexora-hero-stack .nexora-quick-zone, body.theme-nexora .nexora-hero-stack .top-promoted-container { margin-top:0 !important; margin-bottom:0 !important; }
body.theme-nexora .nexora-home-stream > * { margin-top:2px !important; margin-bottom:0 !important; }
@media (max-width:480px) { body.theme-nexora .top-links-grid, body.theme-nexora .site-footer .friend-links-section .links-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; } body.theme-nexora .nexora-topics .topics-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; } body.theme-nexora .container { width:calc(100% - 14px) !important; } }
/* No saturated legacy accent leakage. */
body.theme-nexora .tag-color-1, body.theme-nexora .tag-color-2, body.theme-nexora .tag-color-3, body.theme-nexora .tag-color-4, body.theme-nexora .tag-color-5, body.theme-nexora .tag-color-6, body.theme-nexora .tag-color-7, body.theme-nexora .tag-color-8 { background:#f7f2ec !important; border-color:#d8cec3 !important; color:#403a34 !important; }

/* Final V5 details. */
body.theme-nexora .toggle-tags-btn { background:#2f2a25 !important; color:#fff !important; border-color:#2f2a25 !important; }
body.theme-nexora .toggle-tags-btn:hover { background:#4a4037 !important; color:#fff !important; border-color:#4a4037 !important; }
@media (min-width:769px) {
  body.theme-nexora .dual-rank-board .recommendation-grid,
  body.theme-nexora #guochan-videos-rec .recommendation-grid,
  body.theme-nexora #meitu-rec .recommendation-grid,
  body.theme-nexora #manga-rec .recommendation-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
body.theme-nexora .novel-audio-box-transparent { background:#40372f !important; }
body.theme-nexora .novel-audio-box-transparent a,
body.theme-nexora .novel-audio-box-transparent button { color:#fff !important; -webkit-text-fill-color:#fff !important; }

/* NEXORA V6 — final user corrections. */
/* Topic titles must sit completely below the circular image. */
body.theme-nexora .nexora-topics .topic-item,
body.theme-nexora .nexora-topics .nexora-topic-card { position:relative !important; }
body.theme-nexora .nexora-topics .topic-item span,
body.theme-nexora .nexora-topics .nexora-topic-card span {
  position:static !important;
  inset:auto !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:1.4em !important;
  margin:0 !important;
  padding:0 2px !important;
  background:transparent !important;
  color:#332e29 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1.35 !important;
}
@media (min-width:769px) {
  body.theme-nexora .nexora-topics .topics-grid { grid-template-columns:repeat(12,minmax(0,1fr)) !important; }
}
@media (max-width:768px) {
  body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

/* Station picks: keep the mobile two-column layout. */
body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
@media (max-width:768px) {
  body.theme-nexora .nexora-gallery-picks .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

/* Friend links: desktop can use the full available label width; mobile truncates after about five CJK characters. */
body.theme-nexora .top-links-grid .link-name,
body.theme-nexora .site-footer .friend-links-section .link-name {
  min-width:0 !important;
  max-width:none !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
@media (max-width:768px) {
  body.theme-nexora .top-links-grid .link-name,
  body.theme-nexora .site-footer .friend-links-section .link-name { max-width:5em !important; }
}

/* Ensure the top friend-link strip is visible once the shared friend-link loader fills the footer. */
body.theme-nexora .top-promoted-container { min-height:0 !important; }
body.theme-nexora .top-promoted-container:not(:empty) { display:block !important; }

/* Image tags: large visual cards, not tiny icon rows. */
body.theme-nexora .image-tags-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
}
body.theme-nexora .image-tag-card {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #d8cec3 !important;
  border-radius:8px !important;
  background:#fffdf9 !important;
  color:#332e29 !important;
  text-decoration:none !important;
}
body.theme-nexora .image-tag-card__image {
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/10 !important;
  flex:none !important;
  border-radius:0 !important;
  object-fit:cover !important;
}
body.theme-nexora .image-tag-card__text {
  display:block !important;
  min-width:0 !important;
  padding:8px 9px !important;
  background:#fffdf9 !important;
  color:#403a34 !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
@media (max-width:768px) {
  body.theme-nexora .image-tags-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
  body.theme-nexora .image-tag-card__text { padding:7px 8px !important; font-size:12px !important; }
}

/* Every detail recommendation/title card: exactly two visible lines on desktop and mobile. */
body.theme-nexora.detail-shell .rec-title,
body.theme-nexora.detail-shell .ranking-item-title,
body.theme-nexora.detail-shell .nexora-ranking-title,
body.theme-nexora.detail-shell .related-video-title,
body.theme-nexora.detail-shell .overlay-card-title,
body.theme-nexora.detail-shell .gallery-item-tag,
body.theme-nexora.detail-shell .rec-item .rec-title {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  height:auto !important;
  min-height:2.8em !important;
  max-height:2.8em !important;
  margin:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  word-break:break-all !important;
  overflow-wrap:anywhere !important;
  font-weight:400 !important;
  line-height:1.4 !important;
}

/* Detail pages use the same warm neutral system instead of legacy black/gray blocks. */
body.theme-nexora.detail-shell .detail-page-container,
body.theme-nexora.detail-shell .main-content-area,
body.theme-nexora.detail-shell .recommendation-section,
body.theme-nexora.detail-shell .magnet-box,
body.theme-nexora.detail-shell .magnet-trending-box,
body.theme-nexora.detail-shell .novel-layout-container .content-box,
body.theme-nexora.detail-shell .audio-player-box,
body.theme-nexora.detail-shell .audio-playlist-box,
body.theme-nexora.detail-shell .text-catalog-box,
body.theme-nexora.detail-shell .gallery-info-bar,
body.theme-nexora.detail-shell .gallery-tags-bar,
body.theme-nexora.detail-shell .chapter-box {
  background:#fffdf9 !important;
  color:#332e29 !important;
  border-color:#d8cec3 !important;
  box-shadow:none !important;
}
body.theme-nexora.detail-shell .recommendation-section h3,
body.theme-nexora.detail-shell .playlist-header,
body.theme-nexora.detail-shell .catalog-header,
body.theme-nexora.detail-shell .chapter-header,
body.theme-nexora.detail-shell h1,
body.theme-nexora.detail-shell h2,
body.theme-nexora.detail-shell h3,
body.theme-nexora.detail-shell h4,
body.theme-nexora.detail-shell .detail-item,
body.theme-nexora.detail-shell .category-breadcrumb,
body.theme-nexora.detail-shell .category-breadcrumb .label {
  color:#332e29 !important;
}
body.theme-nexora.detail-shell .category-breadcrumb a,
body.theme-nexora.detail-shell .tags-container a,
body.theme-nexora.detail-shell .gallery-tags-bar a,
body.theme-nexora.detail-shell .gallery-tags-bar span,
body.theme-nexora.detail-shell .magnet-trending-box .m-link {
  color:#5a4b3f !important;
  -webkit-text-fill-color:#5a4b3f !important;
}
body.theme-nexora.detail-shell .action-btn,
body.theme-nexora.detail-shell .btn-v-down,
body.theme-nexora.detail-shell .matched-magnet-download,
body.theme-nexora.detail-shell .download-ctrl-btn,
body.theme-nexora.detail-shell .scroll-to-btn,
body.theme-nexora.detail-shell .copy-btn,
body.theme-nexora.detail-shell .floating-btn {
  background:#4a4037 !important;
  border-color:#4a4037 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:none !important;
}
body.theme-nexora.detail-shell .action-btn:hover,
body.theme-nexora.detail-shell .btn-v-down:hover,
body.theme-nexora.detail-shell .matched-magnet-download:hover,
body.theme-nexora.detail-shell .download-ctrl-btn:hover,
body.theme-nexora.detail-shell .scroll-to-btn:hover,
body.theme-nexora.detail-shell .copy-btn:hover { background:#5a4d41 !important; color:#fff !important; }
body.theme-nexora.detail-shell .rec-item a,
body.theme-nexora.detail-shell .ranking-item,
body.theme-nexora.detail-shell .nexora-ranking-card,
body.theme-nexora.detail-shell .related-video-cover-container,
body.theme-nexora.detail-shell .magnet-list .item,
body.theme-nexora.detail-shell .playlist-item,
body.theme-nexora.detail-shell .catalog-item {
  background:#f7f2ec !important;
  border-color:#d8cec3 !important;
  color:#403a34 !important;
}
body.theme-nexora.detail-shell .rec-item .rec-title,
body.theme-nexora.detail-shell .ranking-item-title,
body.theme-nexora.detail-shell .nexora-ranking-title,
body.theme-nexora.detail-shell .related-video-title,
body.theme-nexora.detail-shell .overlay-card-title,
body.theme-nexora.detail-shell .gallery-item-tag { color:#403a34 !important; }
body.theme-nexora.detail-shell .magnet-list .link { color:#5a4b3f !important; -webkit-text-fill-color:#5a4b3f !important; }
body.theme-nexora.detail-shell .novel-audio-box-transparent {
  background:#5a4b3f !important;
  color:#fff !important;
  border:1px solid #4a4037 !important;
}

/* Preserve the actual video player black, but keep everything around it warm. */
body.theme-nexora.detail-shell .video-player-container { background:#171412 !important; }

/* Pagination is centered and uses the warm palette. */
body.theme-nexora.detail-shell .image-pagination,
body.theme-nexora.detail-shell .image-pagination ul,
body.theme-nexora.detail-shell .image-pagination .pagination { justify-content:center !important; text-align:center !important; }
body.theme-nexora.detail-shell .image-pagination a,
body.theme-nexora.detail-shell .image-pagination button,
body.theme-nexora.detail-shell .image-pagination span {
  color:#403a34 !important;
  border-color:#d8cec3 !important;
  background:#fffdf9 !important;
}
body.theme-nexora.detail-shell .image-pagination .active,
body.theme-nexora.detail-shell .image-pagination a.active,
body.theme-nexora.detail-shell .image-pagination button.active { background:#4a4037 !important; color:#fff !important; border-color:#4a4037 !important; }

/* Remove remaining legacy black text/boxes from detail-page inline styles where the element is not the player. */
body.theme-nexora.detail-shell .video-info-block [style*="background:#111"],
body.theme-nexora.detail-shell .video-info-block [style*="background: #111"] {
  background:#4a4037 !important;
  color:#fff !important;
}

/* Keep the current site's logo explicit on the tag page/header. */
body.theme-nexora.page-tags .logo-main img { object-fit:contain !important; }


/* NEXORA V7 — final detail readability + mobile friend-link corrections. */
/* Mobile friend links: icon + up to five CJK characters; desktop keeps full labels. */
@media (max-width:768px) {
  body.theme-nexora .top-links-grid,
  body.theme-nexora.site-footer .friend-links-section .links-grid,
  body.theme-nexora .site-footer .friend-links-section .links-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:5px !important;
  }
  body.theme-nexora .top-links-grid li a,
  body.theme-nexora .site-footer .friend-links-section .links-grid li a {
    gap:3px !important;
    padding:5px 3px !important;
    font-size:12px !important;
    line-height:1.2 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }
  body.theme-nexora .top-links-grid li a img,
  body.theme-nexora .site-footer .friend-links-section .links-grid li a img {
    width:16px !important;
    height:16px !important;
    flex:0 0 16px !important;
    margin-right:0 !important;
  }
  body.theme-nexora .top-links-grid .link-name,
  body.theme-nexora .site-footer .friend-links-section .link-name {
    display:block !important;
    flex:0 1 auto !important;
    width:60px !important;
    max-width:60px !important;
    min-width:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
  }
}

/* Detail recommendation titles: hard two-line box on both desktop and mobile. */
body.theme-nexora.detail-shell .recommendation-section .recommendation-grid .rec-item .rec-title,
body.theme-nexora.detail-shell .dual-rank-board .rec-item .rec-title,
body.theme-nexora.detail-shell #waterfall-grid .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;
  padding:8px 9px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  word-break:break-all !important;
  overflow-wrap:anywhere !important;
  line-height:1.4 !important;
  font-size:13px !important;
  font-weight:400 !important;
  color:#403a34 !important;
}
@media (max-width:768px) {
  body.theme-nexora.detail-shell .recommendation-section .recommendation-grid .rec-item .rec-title,
  body.theme-nexora.detail-shell .dual-rank-board .rec-item .rec-title,
  body.theme-nexora.detail-shell #waterfall-grid .rec-item .rec-title {
    height:2.8em !important;
    min-height:2.8em !important;
    max-height:2.8em !important;
    font-size:12px !important;
    padding:7px 8px !important;
  }
}

/* Video sidebar headings must remain readable regardless of configured legacy inline styles. */
body.theme-nexora.detail-shell .video-sidebar-heading {
  margin:0 !important;
  padding:11px 14px !important;
  background:#4a4037 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:0 !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
}

/* Warm recommendation headings across magnet / novel / gallery details. */
body.theme-nexora.detail-shell .detail-recommendation-heading {
  margin:0 0 14px !important;
  padding:0 0 8px 10px !important;
  border-left:3px solid #8a7868 !important;
  border-bottom:1px solid #e1d8cf !important;
  color:#403a34 !important;
  -webkit-text-fill-color:#403a34 !important;
  background:transparent !important;
  font-size:16px !important;
  font-weight:600 !important;
  line-height:1.35 !important;
}

/* Novel audio area: warm neutral frame, while the native player stays visually contained. */
body.theme-nexora.detail-shell .novel-audio-box-transparent {
  background:#eee6dd !important;
  border:1px solid #d8cec3 !important;
  border-radius:8px !important;
  padding:8px !important;
  color:#403a34 !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .cover-image {
  border-radius:6px !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent audio {
  width:100% !important;
  margin:8px 0 0 !important;
  accent-color:#6b5b4b !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .audio-playlist-box {
  margin-top:8px !important;
  background:#fffdf9 !important;
  border:1px solid #d8cec3 !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-header {
  background:#4a4037 !important;
  border-bottom:1px solid #5a4d41 !important;
  color:#fff !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-header h4 {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:600 !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item {
  background:#fffdf9 !important;
  color:#403a34 !important;
  border-bottom:1px solid #eee5dc !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item:hover,
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item.active {
  background:#f4ede5 !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item .p-index,
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item .p-title,
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item .p-status {
  color:#403a34 !important;
  -webkit-text-fill-color:#403a34 !important;
}
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item.active .p-title,
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-item.active .p-status {
  color:#6b5b4b !important;
  -webkit-text-fill-color:#6b5b4b !important;
}


/* NEXORA V8 — footer friend-link parity + reliable two-line detail titles. */
/* The clamped title itself has no padding: padding on a -webkit-line-clamp box can expose a third line. */
body.theme-nexora.detail-shell .recommendation-section .recommendation-grid .rec-item .rec-title,
body.theme-nexora.detail-shell .dual-rank-board .rec-item .rec-title,
body.theme-nexora.detail-shell #waterfall-grid .rec-item .rec-title {
  display:-webkit-box !important;
  display:box !important;
  -webkit-box-orient:vertical !important;
  box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  height:2.8em !important;
  min-height:2.8em !important;
  max-height:2.8em !important;
  padding:0 !important;
  margin:8px 9px 9px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  word-break:break-all !important;
  overflow-wrap:anywhere !important;
  line-height:1.4 !important;
  font-size:13px !important;
  font-weight:400 !important;
  color:#403a34 !important;
}
@media (max-width:768px) {
  body.theme-nexora.detail-shell .recommendation-section .recommendation-grid .rec-item .rec-title,
  body.theme-nexora.detail-shell .dual-rank-board .rec-item .rec-title,
  body.theme-nexora.detail-shell #waterfall-grid .rec-item .rec-title {
    height:2.8em !important;
    min-height:2.8em !important;
    max-height:2.8em !important;
    margin:7px 8px 8px !important;
    padding:0 !important;
    font-size:12px !important;
  }
}

/* Footer friend links use the same usable card width as the top strip on phones. */
@media (max-width:768px) {
  body.theme-nexora .site-footer .friend-links-section,
  body.theme-nexora .nexora-footer .friend-links-section {
    padding:8px 0 10px !important;
  }
  body.theme-nexora .site-footer .friend-links-header,
  body.theme-nexora .nexora-footer .friend-links-header {
    padding:8px 10px !important;
  }
  body.theme-nexora .site-footer .friend-links-section .links-grid,
  body.theme-nexora .nexora-footer .friend-links-section .links-grid {
    width:100% !important;
    padding:0 2px !important;
    margin:0 !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:5px !important;
    box-sizing:border-box !important;
  }
  body.theme-nexora .site-footer .friend-links-section .links-grid li a,
  body.theme-nexora .nexora-footer .friend-links-section .links-grid li a {
    justify-content:flex-start !important;
    gap:2px !important;
    padding:5px 3px !important;
    min-width:0 !important;
    overflow:hidden !important;
  }
  body.theme-nexora .site-footer .friend-links-section .links-grid li a img,
  body.theme-nexora .nexora-footer .friend-links-section .links-grid li a img {
    margin-right:0 !important;
    width:16px !important;
    height:16px !important;
    flex:0 0 16px !important;
  }
  body.theme-nexora .site-footer .friend-links-section .link-name,
  body.theme-nexora .nexora-footer .friend-links-section .link-name {
    display:block !important;
    flex:1 1 auto !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
  }
}
/* V8 mobile footer cards: reserve enough width for the 16px icon plus five CJK characters. */
@media (max-width:768px) {
  body.theme-nexora .site-footer .friend-links-section .links-grid li a,
  body.theme-nexora .nexora-footer .friend-links-section .links-grid li a {
    justify-content:center !important;
    gap:1px !important;
    padding:5px 1px !important;
  }
  body.theme-nexora .site-footer .friend-links-section .link-name,
  body.theme-nexora .nexora-footer .friend-links-section .link-name {
    flex:0 1 auto !important;
    width:auto !important;
    max-width:5em !important;
  }
}


/* NEXORA V9 — desktop title clamping is purely visual; home ranking captions get a clean text rail. */
/* Detail titles keep their complete source text. Clamp only when the rendered card actually exceeds two lines. */
body.theme-nexora.detail-shell .recommendation-section .recommendation-grid .rec-item .rec-title,
body.theme-nexora.detail-shell .dual-rank-board .rec-item .rec-title,
body.theme-nexora.detail-shell #waterfall-grid .rec-item .rec-title {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  height:auto !important;
  min-height:2.8em !important;
  max-height:2.8em !important;
  padding:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}

/* Home popular ranking: keep glyphs away from card edges and avoid clipping descenders/bottom strokes. */
body.theme-nexora .rankings-section .nexora-ranking-caption {
  min-width:0 !important;
  padding:8px 9px 10px !important;
  border-top:1px solid #e5ddd4 !important;
  background:#fffdf9 !important;
  box-sizing:border-box !important;
}
body.theme-nexora .rankings-section .ranking-item-title {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  margin:0 !important;
  padding:0 !important;
  height:auto !important;
  min-height:3em !important;
  max-height:3em !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  color:#332e29 !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.5 !important;
}
@media (max-width:768px) {
  body.theme-nexora .rankings-section .nexora-ranking-caption { padding:7px 8px 9px !important; }
  body.theme-nexora .rankings-section .ranking-item-title {
    min-height:3em !important;
    max-height:3em !important;
    font-size:12px !important;
    line-height:1.5 !important;
  }
}
body.theme-nexora .rankings-section .nexora-media-card {
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
}


/* NEXORA V10 — softer warm controls, runtime site scoping, compact video image tags. */
body.theme-nexora {
  --primary-color:#8a7563;
  --text-color:#3f3730;
  --border-color:#ded2c6;
  --bg-color:#fffdf9;
  --body-bg-color:#f4efe9;
  --light-bg-color:#f7f1ea;
  --tag-bg-color:#efe6dc;
  --nx-control:#8a7563;
  --nx-control-hover:#786351;
  --nx-control-soft:#efe6dc;
  --nx-control-soft-2:#f7f1ea;
  --nx-control-border:#ccbbaa;
  --nx-control-text:#fffaf5;
}

/* Header/nav: replace near-black chrome with a calmer warm taupe. */
body.theme-nexora .site-header.nexora-header,
body.theme-nexora .site-header {
  background:#62564b !important;
  border-bottom:1px solid #75685c !important;
}
body.theme-nexora .header-nav-list.pc-only > .nav-item > a {
  color:#fffaf5 !important;
  -webkit-text-fill-color:#fffaf5 !important;
  font-weight:500 !important;
}
body.theme-nexora .header-nav-list.pc-only > .nav-item > a:hover,
body.theme-nexora .header-nav-list.pc-only > .nav-item > a:focus-visible {
  background:#75685c !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora .nav-orange-btn,
body.theme-nexora .home-path-button {
  background:#8a7563 !important;
  border-color:#a18d7a !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:none !important;
}
body.theme-nexora .nav-orange-btn:hover,
body.theme-nexora .nav-orange-btn:focus-visible,
body.theme-nexora .home-path-button:hover,
body.theme-nexora .home-path-button:focus-visible {
  background:#786351 !important;
  border-color:#786351 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  transform:none !important;
  filter:none !important;
}
@media (min-width:769px) {
  body.theme-nexora .dropdown-menu.pc-only,
  body.theme-nexora .nav-item.has-dropdown .dropdown-menu {
    background:#fffaf4 !important;
    border-color:#d8cabc !important;
  }
  body.theme-nexora .dropdown-menu a {
    background:#fffaf4 !important;
    color:#4b4037 !important;
    -webkit-text-fill-color:#4b4037 !important;
    font-weight:400 !important;
  }
  body.theme-nexora .dropdown-menu a:hover,
  body.theme-nexora .dropdown-menu a:focus-visible {
    background:#eee3d8 !important;
    color:#3e342c !important;
    -webkit-text-fill-color:#3e342c !important;
  }
}

/* Frequently-used primary controls: warm muted brown instead of black. */
body.theme-nexora .tags-section .toggle-tags-btn,
body.theme-nexora #tag-groups-wrapper .toggle-tags-btn,
body.theme-nexora .toggle-tags-btn,
body.theme-nexora .btn-apply-link {
  background:var(--nx-control) !important;
  border-color:var(--nx-control) !important;
  color:var(--nx-control-text) !important;
  -webkit-text-fill-color:var(--nx-control-text) !important;
}
body.theme-nexora .tags-section .toggle-tags-btn:hover,
body.theme-nexora #tag-groups-wrapper .toggle-tags-btn:hover,
body.theme-nexora .toggle-tags-btn:hover,
body.theme-nexora .btn-apply-link:hover {
  background:var(--nx-control-hover) !important;
  border-color:var(--nx-control-hover) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora .rankings-tabs li {
  background:#f5eee7 !important;
  border-color:#ddcfc2 !important;
  color:#5a4c40 !important;
}
body.theme-nexora .rankings-tabs li.active {
  background:var(--nx-control) !important;
  border-color:var(--nx-control) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* Search/category controls: no hard black selected states. */
body.theme-nexora.page-search .type-tabs,
body.theme-nexora.page-search .sort-tabs,
body.theme-nexora.page-category .sort-tabs,
body.theme-nexora.page-category .multi-select-filters,
body.theme-nexora.page-category .child-category-filters {
  background:#fffaf5 !important;
  border-color:#dfd2c5 !important;
}
body.theme-nexora.page-search .type-tabs > *,
body.theme-nexora.page-search .sort-tabs > *,
body.theme-nexora.page-category .sort-tabs > * {
  color:#54483e !important;
}
body.theme-nexora.page-search .type-tabs > .active,
body.theme-nexora.page-search .sort-tabs > .active,
body.theme-nexora.page-category .sort-tabs > .active,
body.theme-nexora.page-search .pagination-container .active,
body.theme-nexora.page-category .pagination-container .active {
  background:var(--nx-control) !important;
  border-color:var(--nx-control) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora.page-search .pagination-container button:hover,
body.theme-nexora.page-category .pagination-container button:hover {
  background:var(--nx-control-soft) !important;
  border-color:var(--nx-control-border) !important;
  color:#5a4c40 !important;
}
body.theme-nexora.page-category .nexora-filter-label,
body.theme-nexora.page-category .filter-group-title {
  color:#51463d !important;
}
body.theme-nexora.page-category .filter-tag {
  background:#f7f1ea !important;
  border-color:#ded2c6 !important;
  color:#5b5047 !important;
}
body.theme-nexora.page-category .filter-tag:hover,
body.theme-nexora.page-category .filter-tag.active {
  background:#e8ddd2 !important;
  border-color:#c4b09e !important;
  color:#493d34 !important;
  -webkit-text-fill-color:#493d34 !important;
  font-weight:500 !important;
}
body.theme-nexora.page-category .filter-expand-btn {
  background:#f0e6dc !important;
  border-color:#d4c4b5 !important;
  color:#5a4b40 !important;
}
body.theme-nexora.page-category .filter-expand-btn:hover {
  background:#e5d7ca !important;
  color:#4b3f36 !important;
}
body.theme-nexora.page-category .child-category-filters .filter-all-link {
  background:var(--nx-control) !important;
  border-color:var(--nx-control) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora.page-category .child-category-filters .child-links-wrapper a {
  background:#f6efe8 !important;
  border-color:#dccfc3 !important;
  color:#584b40 !important;
}
body.theme-nexora.page-category .child-category-filters .child-links-wrapper a:hover {
  background:#e9ddd2 !important;
  border-color:#c7b5a5 !important;
  color:#45392f !important;
}
body.theme-nexora.page-search .a-type,
body.theme-nexora.page-search .type-video .a-type,
body.theme-nexora.page-search .type-magnet .a-type,
body.theme-nexora.page-search .type-novel .a-type,
body.theme-nexora.page-search .type-gallery .a-type {
  background:#927b66 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:500 !important;
}

/* Softer player text-ad rail. */
body.theme-nexora.detail-shell a#box-v1-special {
  background:#eadfd4 !important;
  background-image:none !important;
  border:1px solid #d3c2b3 !important;
  border-radius:6px !important;
  color:#5b493c !important;
  -webkit-text-fill-color:#5b493c !important;
  box-shadow:none !important;
  padding:6px 14px !important;
  font-weight:500 !important;
}
body.theme-nexora.detail-shell a#box-v1-special:hover {
  background:#e2d3c6 !important;
  color:#493a30 !important;
  -webkit-text-fill-color:#493a30 !important;
  opacity:1 !important;
}

/* Video image tags: desktop uses one compact 8-card row, so the block no longer towers over the related-magnet sidebar. */
@media (min-width:781px) {
  body.theme-nexora.detail-shell .image-tags-section {
    margin-top:8px !important;
    padding:8px !important;
  }
  body.theme-nexora.detail-shell .image-tags-grid {
    grid-template-columns:repeat(8,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  body.theme-nexora.detail-shell .image-tag-card {
    min-height:0 !important;
    border-radius:7px !important;
  }
  body.theme-nexora.detail-shell .image-tag-card__image {
    width:100% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    object-fit:cover !important;
    object-position:center 34% !important;
  }
  body.theme-nexora.detail-shell .image-tag-card__text {
    min-height:25px !important;
    padding:4px 5px 5px !important;
    font-size:12px !important;
    line-height:16px !important;
  }
}
/* V10 specificity follow-ups. */
body.theme-nexora .site-footer .friend-links-section .btn-apply-link,
body.theme-nexora .nexora-footer .friend-links-section .btn-apply-link {
  background:var(--nx-control) !important;
  border-color:var(--nx-control) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora .site-footer .friend-links-section .btn-apply-link:hover,
body.theme-nexora .nexora-footer .friend-links-section .btn-apply-link:hover {
  background:var(--nx-control-hover) !important;
  border-color:var(--nx-control-hover) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora.page-category .a-type,
body.theme-nexora.page-category .type-video .a-type,
body.theme-nexora.page-category .type-magnet .a-type,
body.theme-nexora.page-category .type-novel .a-type,
body.theme-nexora.page-category .type-gallery .a-type {
  background:#927b66 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:500 !important;
}
/* V10 final warm-tone pass: avoid near-black bars that remain from legacy detail/header styles. */
body.theme-nexora .site-header.nexora-header,
body.theme-nexora .site-header {
  background:#75685c !important;
  border-bottom-color:#88786a !important;
}
body.theme-nexora .site-header.nexora-header .header-nav-list.pc-only > .nav-item > a:hover,
body.theme-nexora .site-header.nexora-header .header-nav-list.pc-only > .nav-item > a:focus-visible,
body.theme-nexora .site-header .header-nav-list.pc-only > .nav-item > a:hover,
body.theme-nexora .site-header .header-nav-list.pc-only > .nav-item > a:focus-visible {
  background-color:#8a7563 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora.detail-shell .video-sidebar-heading,
body.theme-nexora.detail-shell .novel-audio-box-transparent .playlist-header {
  background:#8a7563 !important;
  border-color:#a18d7a !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* NEXORA V11 — mobile warm-tone parity + cross-page control consistency. */
@media (max-width:768px) {
  /* Mobile header and short category buttons use the same softened palette as desktop. */
  body.theme-nexora .site-header.nexora-header,
  body.theme-nexora .site-header {
    background:#75685c !important;
    border-bottom-color:#88786a !important;
  }
  body.theme-nexora .header-nav {
    background:#75685c !important;
    border-color:#75685c !important;
  }
  body.theme-nexora .header-nav-list.mobile-only {
    background:#75685c !important;
  }
  body.theme-nexora .header-nav-list.mobile-only > li > a,
  body.theme-nexora .header-nav-list.mobile-only > .nav-item > a {
    background:#857465 !important;
    border:1px solid #9a8776 !important;
    color:#fffaf5 !important;
    -webkit-text-fill-color:#fffaf5 !important;
    box-shadow:none !important;
  }
  body.theme-nexora .header-nav-list.mobile-only > li > a:hover,
  body.theme-nexora .header-nav-list.mobile-only > li > a:focus-visible,
  body.theme-nexora .header-nav-list.mobile-only > li > a:active {
    background:#927d6b !important;
    border-color:#a58f7b !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  body.theme-nexora .home-path-button,
  body.theme-nexora .nav-orange-btn {
    background:#8a7563 !important;
    border-color:#a18d7a !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }

  /* Drawer follows the same warm visual language instead of the old black/gray mobile skin. */
  body.theme-nexora .side-drawer {
    background:#f8f2eb !important;
    border-right:1px solid #d7c9bc !important;
  }
  body.theme-nexora .drawer-close-floating {
    background:#8a7563 !important;
    border-color:#8a7563 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  body.theme-nexora .drawer-group {
    background:#fffaf5 !important;
    border-color:#ded2c6 !important;
  }
  body.theme-nexora .drawer-group-title {
    color:#4d4137 !important;
    border-bottom-color:#e5d9ce !important;
  }
  body.theme-nexora .drawer-group-content a,
  body.theme-nexora .drawer-group-content a:hover,
  body.theme-nexora .drawer-group-content a:active {
    background:#f3ebe3 !important;
    border-color:#ddcfc2 !important;
    color:#54483e !important;
    -webkit-text-fill-color:#54483e !important;
  }

  /* More hot searches / apply-link / home ranking tabs. */
  body.theme-nexora .tags-section .toggle-tags-btn,
  body.theme-nexora #tag-groups-wrapper .toggle-tags-btn,
  body.theme-nexora .toggle-tags-btn,
  body.theme-nexora .btn-apply-link,
  body.theme-nexora .site-footer .friend-links-section .btn-apply-link,
  body.theme-nexora .nexora-footer .friend-links-section .btn-apply-link {
    background:#8a7563 !important;
    border-color:#8a7563 !important;
    color:#fffaf5 !important;
    -webkit-text-fill-color:#fffaf5 !important;
  }
  body.theme-nexora .rankings-tabs li {
    background:#f4ece4 !important;
    border-color:#ddcfc2 !important;
    color:#5a4c40 !important;
    -webkit-text-fill-color:#5a4c40 !important;
  }
  body.theme-nexora .rankings-tabs li.active {
    background:#8a7563 !important;
    border-color:#8a7563 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }

  /* Search/category segmented controls and pagination. */
  body.theme-nexora.page-search .type-tabs,
  body.theme-nexora.page-search .sort-tabs,
  body.theme-nexora.page-category .sort-tabs,
  body.theme-nexora.page-category .multi-select-filters,
  body.theme-nexora.page-category .child-category-filters {
    background:#fffaf5 !important;
    border-color:#dfd2c5 !important;
  }
  body.theme-nexora.page-search .type-tabs button,
  body.theme-nexora.page-search .sort-tabs button,
  body.theme-nexora.page-category .sort-tabs button {
    background:#f7f1ea !important;
    border-color:#e0d4c8 !important;
    color:#574a3f !important;
    -webkit-text-fill-color:#574a3f !important;
  }
  body.theme-nexora.page-search .type-tabs button.active,
  body.theme-nexora.page-search .sort-tabs button.active,
  body.theme-nexora.page-category .sort-tabs button.active,
  body.theme-nexora.page-search .pagination-container button.active,
  body.theme-nexora.page-category .pagination-container button.active {
    background:#8a7563 !important;
    border-color:#8a7563 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    box-shadow:none !important;
  }
  body.theme-nexora.page-search .pagination-container button,
  body.theme-nexora.page-category .pagination-container button {
    background:#fffaf5 !important;
    border-color:#d9ccbf !important;
    color:#55493f !important;
    -webkit-text-fill-color:#55493f !important;
  }

  /* Category filters: selected state is warm and clear, not near-black. */
  body.theme-nexora.page-category .filter-tag {
    background:#f5eee7 !important;
    border:1px solid #dfd2c6 !important;
    color:#5a4d42 !important;
    -webkit-text-fill-color:#5a4d42 !important;
  }
  body.theme-nexora.page-category .filter-tag.active,
  body.theme-nexora.page-category .filter-tag:hover {
    background:#e4d7ca !important;
    border-color:#c9b5a3 !important;
    color:#473a31 !important;
    -webkit-text-fill-color:#473a31 !important;
  }
  body.theme-nexora.page-category .filter-expand-btn {
    background:#eadfd4 !important;
    border:1px solid #d4c3b3 !important;
    color:#59493d !important;
    -webkit-text-fill-color:#59493d !important;
  }
  body.theme-nexora.page-category .child-category-filters .filter-all-link {
    background:#8a7563 !important;
    border-color:#8a7563 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  body.theme-nexora.page-category .child-category-filters .child-links-wrapper a {
    background:#f5eee7 !important;
    border-color:#dccfc3 !important;
    color:#584b40 !important;
    -webkit-text-fill-color:#584b40 !important;
  }

  /* Resource type badges and player text ad use the same muted warm palette. */
  body.theme-nexora.page-search .a-type,
  body.theme-nexora.page-category .a-type,
  body.theme-nexora.page-search .type-video .a-type,
  body.theme-nexora.page-search .type-magnet .a-type,
  body.theme-nexora.page-search .type-novel .a-type,
  body.theme-nexora.page-search .type-gallery .a-type,
  body.theme-nexora.page-category .type-video .a-type,
  body.theme-nexora.page-category .type-magnet .a-type,
  body.theme-nexora.page-category .type-novel .a-type,
  body.theme-nexora.page-category .type-gallery .a-type {
    background:#927b66 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  body.theme-nexora.detail-shell a#box-v1-special {
    background:#eadfd4 !important;
    border-color:#d3c2b3 !important;
    color:#5b493c !important;
    -webkit-text-fill-color:#5b493c !important;
  }

  /* Resource line buttons: remove the old dark/black mobile active skin. */
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a {
    background:#fffaf5 !important;
    border-color:#d4c5b7 !important;
    color:#51453b !important;
    -webkit-text-fill-color:#51453b !important;
  }
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid .mobile-name,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid .mobile-name {
    color:#51453b !important;
    -webkit-text-fill-color:#51453b !important;
  }
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:hover,
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:active,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:hover,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:active {
    background:#8a7563 !important;
    border-color:#8a7563 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:hover .mobile-name,
  body.theme-nexora .resource-lines-section.category-nav-section .category-nav-grid a:active .mobile-name,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:hover .mobile-name,
  body.theme-nexora .global-resource-lines-wrap .resource-lines-section .category-nav-grid a:active .mobile-name {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
}

/* NEXORA V12 — soften search/footer and fully override legacy mobile black header. */
body.theme-nexora {
  --nx-v12-header:#8b7766;
  --nx-v12-header-2:#9b8572;
  --nx-v12-header-btn:#a78f7b;
  --nx-v12-header-border:#baa592;
  --nx-v12-search-bg:#eadfd4;
  --nx-v12-search-border:#d2c1b2;
  --nx-v12-accent:#9a806a;
  --nx-v12-accent-hover:#866d59;
  --nx-v12-footer:#e8ddd2;
  --nx-v12-panel:#fffaf5;
  --nx-v12-soft:#f5ece3;
  --nx-v12-text:#51453b;
  --nx-v12-muted:#74675c;
}

/* Search block: lighter, warmer, and lower contrast than the old dark slab. */
body.theme-nexora .search-section.nexora-discovery,
body.theme-nexora .search-section {
  background:var(--nx-v12-search-bg) !important;
  border:1px solid var(--nx-v12-search-border) !important;
  box-shadow:none !important;
}
body.theme-nexora .nexora-discovery-copy,
body.theme-nexora .nexora-discovery-copy strong,
body.theme-nexora .nexora-discovery-copy .nexora-eyebrow {
  color:var(--nx-v12-text) !important;
  -webkit-text-fill-color:var(--nx-v12-text) !important;
}
body.theme-nexora .search-form {
  background:#fffdf9 !important;
  border:1px solid #cdbbab !important;
  box-shadow:none !important;
}
body.theme-nexora .search-form input[type="text"] {
  color:#443a32 !important;
  -webkit-text-fill-color:#443a32 !important;
}
body.theme-nexora .search-form input[type="text"]::placeholder {
  color:#948577 !important;
  opacity:1 !important;
}
body.theme-nexora .search-form button {
  background:var(--nx-v12-accent) !important;
  border-color:var(--nx-v12-accent) !important;
  color:#fffaf5 !important;
  -webkit-text-fill-color:#fffaf5 !important;
  font-weight:600 !important;
}
body.theme-nexora .search-form button:hover,
body.theme-nexora .search-form button:focus-visible,
body.theme-nexora .search-form button:active {
  background:var(--nx-v12-accent-hover) !important;
  border-color:var(--nx-v12-accent-hover) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* Footer: warm light background, compact separation from the section above. */
body.theme-nexora .site-footer.nexora-footer,
body.theme-nexora .site-footer,
body.theme-nexora .nexora-footer {
  margin-top:2px !important;
  padding:3px 0 10px !important;
  border-top:1px solid #d4c5b7 !important;
  background:var(--nx-v12-footer) !important;
  color:var(--nx-v12-text) !important;
  box-shadow:none !important;
}
body.theme-nexora .site-footer .container,
body.theme-nexora .nexora-footer .container {
  padding-top:0 !important;
}
body.theme-nexora .site-footer .friend-links-section,
body.theme-nexora .nexora-footer .friend-links-section,
body.theme-nexora .friend-links-section.nexora-friend-links {
  margin-top:0 !important;
  background:var(--nx-v12-panel) !important;
  border:1px solid #d8c9bb !important;
  color:var(--nx-v12-text) !important;
  box-shadow:none !important;
}
body.theme-nexora .site-footer .friend-links-header h2,
body.theme-nexora .nexora-footer .friend-links-header h2 {
  color:#4c4037 !important;
  -webkit-text-fill-color:#4c4037 !important;
}
body.theme-nexora .site-footer .friend-links-section .links-grid li,
body.theme-nexora .nexora-footer .friend-links-section .links-grid li {
  background:#fffdf9 !important;
  border-color:#ddd4ca !important;
}
body.theme-nexora .site-footer .friend-links-section .links-grid li:hover,
body.theme-nexora .nexora-footer .friend-links-section .links-grid li:hover {
  background:#fff !important;
  border-color:#cacaca !important;
}
body.theme-nexora .site-footer .friend-links-section .links-grid a,
body.theme-nexora .nexora-footer .friend-links-section .links-grid a {
  color:#54483e !important;
  -webkit-text-fill-color:#54483e !important;
}
body.theme-nexora .site-footer .friend-links-section .btn-apply-link,
body.theme-nexora .nexora-footer .friend-links-section .btn-apply-link {
  background:var(--nx-v12-accent) !important;
  border-color:var(--nx-v12-accent) !important;
  color:#fffaf5 !important;
  -webkit-text-fill-color:#fffaf5 !important;
}
body.theme-nexora .site-footer .friend-links-section .btn-apply-link:hover,
body.theme-nexora .nexora-footer .friend-links-section .btn-apply-link:hover {
  background:var(--nx-v12-accent-hover) !important;
  border-color:var(--nx-v12-accent-hover) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.theme-nexora .footer-dynamic-box,
body.theme-nexora .footer-content,
body.theme-nexora .footer-content a,
body.theme-nexora .nexora-perf,
body.theme-nexora .nexora-perf b {
  color:var(--nx-v12-muted) !important;
  -webkit-text-fill-color:var(--nx-v12-muted) !important;
}

/* Mobile header: override the legacy #111/#1b1b1b rules on every nested header layer. */
@media (max-width:768px) {
  body.theme-nexora .site-header.nexora-header,
  body.theme-nexora .site-header,
  body.theme-nexora .site-header .header-main-container,
  body.theme-nexora .site-header .header-logo-row,
  body.theme-nexora .nexora-header .header-main-container,
  body.theme-nexora .nexora-header .header-logo-row {
    background:var(--nx-v12-header) !important;
    border-color:#9f8a77 !important;
    box-shadow:none !important;
  }
  body.theme-nexora .site-header .header-logo-row,
  body.theme-nexora .nexora-header .header-logo-row {
    border-bottom:1px solid rgba(255,250,245,.20) !important;
  }
  body.theme-nexora .site-header .header-nav,
  body.theme-nexora .nexora-header .header-nav,
  body.theme-nexora .site-header .header-nav-list.mobile-only,
  body.theme-nexora .nexora-header .header-nav-list.mobile-only {
    background:var(--nx-v12-header-2) !important;
    border-color:var(--nx-v12-header-border) !important;
    box-shadow:none !important;
  }
  body.theme-nexora .site-header .header-nav-list.mobile-only > li > a,
  body.theme-nexora .nexora-header .header-nav-list.mobile-only > li > a,
  body.theme-nexora .site-header .header-nav-list.mobile-only > .nav-item > a,
  body.theme-nexora .nexora-header .header-nav-list.mobile-only > .nav-item > a {
    background:var(--nx-v12-header-btn) !important;
    border:1px solid #c2ad9a !important;
    color:#fffaf5 !important;
    -webkit-text-fill-color:#fffaf5 !important;
    box-shadow:none !important;
  }
  body.theme-nexora .site-header .header-nav-list.mobile-only > li > a:hover,
  body.theme-nexora .site-header .header-nav-list.mobile-only > li > a:focus-visible,
  body.theme-nexora .site-header .header-nav-list.mobile-only > li > a:active,
  body.theme-nexora .nexora-header .header-nav-list.mobile-only > li > a:hover,
  body.theme-nexora .nexora-header .header-nav-list.mobile-only > li > a:focus-visible,
  body.theme-nexora .nexora-header .header-nav-list.mobile-only > li > a:active {
    background:#b49a83 !important;
    border-color:#ccb8a6 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  body.theme-nexora .site-header .mobile-drawer-toggle,
  body.theme-nexora .nexora-header .mobile-drawer-toggle,
  body.theme-nexora .site-header .home-path-button,
  body.theme-nexora .nexora-header .home-path-button {
    background:#a68e7a !important;
    border:1px solid #c5b09d !important;
    color:#fffaf5 !important;
    -webkit-text-fill-color:#fffaf5 !important;
    box-shadow:none !important;
  }
  body.theme-nexora .site-header .mobile-drawer-toggle:hover,
  body.theme-nexora .site-header .mobile-drawer-toggle:active,
  body.theme-nexora .site-header .home-path-button:hover,
  body.theme-nexora .site-header .home-path-button:active {
    background:#967d69 !important;
    border-color:#bda590 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }

  /* Keep the same light search/footer palette on phones; do not fall back to old mobile black skins. */
  body.theme-nexora .search-section.nexora-discovery,
  body.theme-nexora .search-section {
    background:#eee3d8 !important;
    border-color:#d6c6b8 !important;
  }
  body.theme-nexora .site-footer.nexora-footer,
  body.theme-nexora .site-footer,
  body.theme-nexora .nexora-footer {
    margin-top:2px !important;
    padding-top:3px !important;
    background:#e8ddd2 !important;
    border-top:1px solid #d4c5b7 !important;
  }
}
