/* Inner pages — match homepage dark shell (atm.css tokens) */

.atm-main.atm-page {
  padding-top: 8px;
  padding-bottom: 48px;
  min-width: 0;
}

.atm-page-hero {
  position: relative;
  margin-top: 12px;
  margin-bottom: 28px;
  padding: 36px 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(110deg, #07090e 0%, #0c1422 48%, #15253a 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.atm-page-hero h1,
.atm-page-hero .display {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}

.atm-page-hero p,
.atm-page-hero .lead {
  margin: 12px 0 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(185, 194, 214, 0.95);
}

.atm-breadcrumbs,
.breadcrumbs {
  display: block;
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(150, 158, 176, 0.95);
}

.atm-breadcrumbs ol,
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atm-breadcrumbs li,
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.atm-breadcrumbs li:not(:last-child)::after,
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}

.atm-breadcrumbs a,
.breadcrumbs a {
  color: rgba(185, 194, 214, 0.95);
}

.atm-breadcrumbs a:hover,
.breadcrumbs a:hover {
  color: #fff;
}

.atm-breadcrumbs [aria-current="page"],
.breadcrumbs [aria-current="page"] {
  color: #fff;
}

/* ---------- Kill light page shells ---------- */

.page-shell,
.dl-page,
.fx-page,
.dl-page,
.faq-page,
.gd-page,
.ts-page,
.fx-modules,
.fx-related,
.fx-cases,
.fx-partners,
.fx-showcase,
.dl-section,
.faq-section,
.gd-section,
.ts-section {
  background: transparent !important;
  color: inherit;
}

/* Heroes keep their own gradients in dedicated rules below */
.faq-hero,
.gd-hero,
.ts-hero,
.dl-hero {
  color: #fff;
}

.fx-page,
.dl-page,
.faq-page,
.gd-page,
.ts-page {
  --fx-ink: #f2f4f8;
  --fx-blue: #335cff;
  --dl-mid: #335cff;
  --dl-deep: #1e3a8a;
  --dl-sky: #5b8cff;
  padding-bottom: 0;
}

.fx-wrap,
.dl-wrap,
.page-shell {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Features ---------- */

.fx-hero {
  min-height: 280px !important;
  margin-top: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.fx-hero-cta,
.fx-contact a.mail,
.dl-cta,
.btn-brand {
  background: linear-gradient(135deg, #5b8cff 0%, #335cff 48%, #2a4de6 100%) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(51, 92, 255, 0.35);
  border: 0 !important;
}

.fx-hero-cta:hover,
.fx-contact a.mail:hover,
.btn-brand:hover {
  filter: brightness(1.06);
}

.fx-showcase,
.fx-modules,
.fx-cases,
.fx-partners,
.fx-related {
  padding-top: 40px;
  padding-bottom: 44px;
}

.fx-modules {
  background: transparent !important;
  text-align: center;
}

.fx-modules h2,
.fx-cases h2,
.fx-partners h2,
.fx-related h2,
.fx-slide-title,
.fx-mod h3,
.fx-case h3,
.dl-section h2,
.dl-section h3,
.faq-page h1,
.faq-page h2,
.gd-page h1,
.gd-page h2,
.ts-page h1,
.ts-page h2,
.page-shell h1,
.page-shell h2,
.page-shell .display {
  color: #fff !important;
}

.fx-modules h2 {
  margin: 0 auto !important;
  max-width: 28ch;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.fx-mod p,
.fx-case p,
.fx-related p,
.dl-section p,
.faq-page p,
.gd-page p,
.ts-page p,
.page-shell p,
.page-shell .lead {
  color: rgba(185, 194, 214, 0.95) !important;
}

.fx-mod-rail {
  position: relative;
  margin: 32px auto 0 !important;
  max-width: 1100px !important;
  padding: 0 48px !important;
}

.fx-mod-track {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  flex-wrap: unset !important;
}

.fx-mod,
.fx-case,
.fx-related a,
.dl-card,
.dl-platform,
.faq-item,
.gd-card,
.ts-card,
.page-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  color: #e8ebf2 !important;
  box-shadow: none !important;
}

.fx-showcase {
  background: transparent !important;
}

.fx-slide-art {
  margin: 22px auto 0 !important;
  max-width: min(960px, 94vw) !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
}

.fx-slide-art img {
  width: 100% !important;
  max-width: 920px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  background: #fff !important;
  border-radius: 0 !important;
}

.fx-logo-grid {
  margin: 28px auto 0 !important;
  width: min(1100px, 100%) !important;
  max-width: 1100px !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
}

.fx-logo-grid figure {
  margin: 0 !important;
  aspect-ratio: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16% !important;
  box-sizing: border-box !important;
  /* Soft plate so black/color logos stay readable on dark UI */
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.98), rgba(236, 240, 248, 0.96) 70%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.fx-logo-grid figure:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.45) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32) !important;
}

.fx-logo-grid img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  background: transparent !important;
  /* Collapse baked-in white JPEG backgrounds into the soft plate */
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .fx-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .fx-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

.fx-mod {
  flex: none !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0 !important;
  text-align: center !important;
  padding: 22px 16px 20px !important;
  box-sizing: border-box !important;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.fx-mod-icon {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 4px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(120, 170, 255, 0.22), transparent 60%),
    rgba(51, 92, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.22);
}

.fx-mod-icon img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(51, 92, 255, 0.25));
}

.fx-mod h3 {
  margin: 16px 0 0 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
}

.fx-mod p {
  margin: 10px auto 0 !important;
  max-width: none !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

.fx-related a:hover,
.fx-mod:hover,
.dl-card:hover,
.gd-card:hover {
  border-color: rgba(91, 140, 255, 0.5) !important;
  background: rgba(51, 92, 255, 0.1) !important;
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35) !important;
}

.fx-mod-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fx-mod-prev { left: 0 !important; }
.fx-mod-next { right: 0 !important; }

.fx-mod-nav:hover {
  background: rgba(51, 92, 255, 0.28) !important;
  border-color: rgba(91, 140, 255, 0.55) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.fx-mod-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 22px !important;
}

.fx-mod-dots button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.fx-contact {
  border-radius: 20px;
  margin-top: 12px;
}

.fx-case-pager button,
.fx-mod-nav,
.fx-showcase-dots button {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.fx-showcase-dots button.is-on,
.fx-mod-dots button.is-on {
  width: 18px !important;
  background: #335cff !important;
  border-color: #335cff !important;
}

.fx-cases {
  background: transparent !important;
}

.fx-case-list,
.fx-case-list.is-grid {
  margin: 28px auto 0 !important;
  max-width: 1100px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  text-align: left !important;
}

.fx-case {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 22px 20px !important;
  text-align: left !important;
  min-height: 140px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.fx-case:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.45) !important;
  background: rgba(51, 92, 255, 0.1) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3) !important;
}

.fx-case-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c8d8ff;
  background:
    radial-gradient(circle at 30% 25%, rgba(140, 180, 255, 0.28), transparent 62%),
    rgba(51, 92, 255, 0.16);
  border: 1px solid rgba(91, 140, 255, 0.28);
}

.fx-case-body {
  min-width: 0;
}

.fx-case-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ec0ff;
  background: rgba(51, 92, 255, 0.14);
  border: 1px solid rgba(91, 140, 255, 0.22);
}

.fx-case h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  color: #fff !important;
}

.fx-case p {
  margin: 8px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: rgba(185, 194, 214, 0.95) !important;
}

.fx-case-pager[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .fx-case-list,
  .fx-case-list.is-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 960px) {
  .fx-mod-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fx-mod-rail {
    padding: 0 44px !important;
  }
}

@media (max-width: 560px) {
  .fx-mod-track {
    grid-template-columns: 1fr !important;
  }

  .fx-modules h2 {
    max-width: none;
  }
}

/* ---------- Download ---------- */

.dl-page {
  background: transparent !important;
}

.dl-hero {
  margin-top: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(91, 140, 255, 0.28), transparent 55%),
    linear-gradient(145deg, #0a1220 0%, #12203a 45%, #0b1630 100%) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.dl-hero::before {
  opacity: 0.35;
}

.dl-hero::after {
  background: #05070a !important;
}

.dl-cta {
  background: linear-gradient(135deg, #5b8cff 0%, #335cff 48%, #2a4de6 100%) !important;
  color: #fff !important;
}

.dl-section,
.dl-split,
.dl-panel,
.dl-related {
  margin-top: 28px;
  padding: 28px !important;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02) !important;
}

.dl-section-head h2,
.dl-plat-title,
.dl-eyebrow + h2 {
  color: #fff !important;
}

.dl-section-head p,
.dl-plat-sub,
.dl-eyebrow {
  color: rgba(185, 194, 214, 0.95) !important;
}

.dl-plat {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e8ebf2 !important;
  box-shadow: none !important;
}

.dl-plat:hover {
  border-color: rgba(51, 92, 255, 0.45) !important;
  background: rgba(51, 92, 255, 0.1) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.dl-plat.is-primary {
  background: linear-gradient(145deg, #335cff, #2a4de6) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.dl-plat-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #9db0ff !important;
}

.dl-plat-title,
.dl-plat-go {
  color: #fff !important;
}

.dl-plat:not(.is-primary) .dl-plat-go {
  color: #9db0ff !important;
}

.dl-facts,
.dl-grid,
.dl-two {
  color: #e8ebf2;
}

.dl-fact,
.dl-check li,
.dl-related a,
.dl-version,
.dl-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8ebf2 !important;
}

.dl-hash,
.dl-meta,
.dl-note,
.dl-code,
code,
pre {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7dde8 !important;
  border-radius: 10px;
}

.dl-timeline,
.dl-check,
.dl-card,
.dl-fact {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8ebf2 !important;
}

/* ---------- Audiobooks — match homepage dark Atmosphere ---------- */

.atm-main.atm-page:has(.ab-page),
.atm-main.atm-page:has(.ab-inner) {
  padding-top: 8px;
  padding-bottom: 40px;
}

.ab-page {
  background: transparent !important;
  color: var(--atm-ink, #fff);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 0 24px !important;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

.ab-inner {
  width: min(100%, var(--atm-max, 1180px)) !important;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  color: inherit;
}

.ab-top {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  align-items: stretch;
}

.ab-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(14, 17, 26, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  height: 100%;
  align-content: stretch;
}

.ab-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 76px;
  aspect-ratio: 1;
  gap: 6px;
  padding: 8px 4px;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(180, 190, 210, 0.95) !important;
  box-shadow: none !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.ab-cat:hover,
.ab-cat.is-on {
  color: #fff !important;
  background: rgba(51, 92, 255, 0.16) !important;
  border-color: rgba(91, 140, 255, 0.35) !important;
  transform: translateY(-1px);
}

.ab-cat-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #7ea2ff;
}

.ab-cat.is-on .ab-cat-icon,
.ab-cat:hover .ab-cat-icon {
  color: #9ec0ff;
}

.ab-cat-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-cat-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  padding: 0 2px;
  word-break: break-word;
}

.ab-banner {
  position: relative;
  border-radius: 18px !important;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    linear-gradient(135deg, rgba(51, 92, 255, 0.2), transparent 50%),
    #121722;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  margin-top: 0 !important;
}

.ab-banner img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.ab-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ab-banner-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.ab-banner-dots span.is-on {
  background: #fff;
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.6);
}


.ab-sec {
  margin-bottom: 36px;
}

.ab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.ab-head h2,
.ab-rank h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(170, 178, 196, 0.95) !important;
}

.ab-head h2 span {
  color: #5b9fff !important;
  font-weight: 700;
}

.ab-more {
  color: rgba(150, 158, 176, 0.95) !important;
  font-size: 13px;
  font-weight: 500;
}

.ab-more:hover {
  color: #9db0ff !important;
}

.ab-daily {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.ab-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
}

.ab-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Official KuGou-style audiobook tile */
.ab-card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(232, 236, 245, 0.96) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
}

.ab-card:hover {
  color: #fff !important;
  background: transparent !important;
  transform: none;
}

.ab-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #121722;
  margin: 0;
  border: 0;
  box-shadow: none;
  line-height: 0;
}

.ab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit;
  transition: transform 0.35s ease;
}

.ab-card:hover .ab-thumb img {
  transform: scale(1.03);
}

.ab-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.ab-plays {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.ab-plays::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #fff;
  margin-right: 1px;
}

.ab-badge {
  position: absolute;
  left: 0;
  top: 8px;
  z-index: 2;
  background: linear-gradient(135deg, #f0c36a 0%, #e0a84a 45%, #c98a2e 100%);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px 5px 7px;
  border-radius: 0 5px 5px 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.02em;
}

.ab-badge.done,
.ab-badge.serial {
  background: rgba(40, 44, 56, 0.78);
  font-weight: 650;
  backdrop-filter: blur(4px);
}

.ab-title {
  margin: 0;
  padding: 0 1px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(228, 232, 242, 0.96) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-card:hover .ab-title {
  color: #fff !important;
}

.ab-rank-n {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ab-rank-n.n1 { background: #f0b429; }
.ab-rank-n.n2 { background: #e08a3c; }
.ab-rank-n.n3 { background: #6aa0ff; }

.ab-rank-plays {
  position: absolute;
  left: 5px;
  bottom: 4px;
  z-index: 1;
  color: #fff !important;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ab-rank-title,
.ab-chart-hit-title,
.ab-chart-row-title {
  font-size: 13px;
  line-height: 1.4;
  color: inherit !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-rank {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 17, 26, 0.7);
  box-shadow: none;
}

.ab-rank h3 {
  margin: 0 0 12px;
  font-size: 16px !important;
  color: #5b9fff !important;
}

.ab-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ab-rank-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  color: rgba(210, 218, 235, 0.95) !important;
  min-width: 0;
  transition: color 0.2s ease;
}

.ab-rank-item:visited {
  color: rgba(210, 218, 235, 0.95) !important;
}

.ab-rank-item:hover {
  color: #fff !important;
}

.ab-rank-item.plain {
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.ab-rank-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #121722;
  border: 0;
  flex-shrink: 0;
  line-height: 0;
}

.ab-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.ab-rank-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.ab-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0;
}

.ab-chart-col h3 {
  margin: 0 0 14px;
  font-size: 18px !important;
  font-weight: 700;
  color: #9ec4ff !important;
  letter-spacing: -0.01em;
}

.ab-chart-top {
  background:
    linear-gradient(165deg, rgba(51, 92, 255, 0.12), transparent 55%),
    rgba(18, 22, 34, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px !important;
  padding: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.ab-chart-hit {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  color: rgba(230, 236, 255, 0.96) !important;
  min-width: 0;
}

.ab-chart-hit:hover,
.ab-chart-row:hover {
  color: #fff !important;
}

.ab-chart-cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #121722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.ab-chart-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-chart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-chart-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.ab-chart-list li:last-child {
  border-bottom: 0 !important;
}

.ab-chart-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px 2px;
  color: rgba(190, 200, 220, 0.95) !important;
  font-size: 13px;
  min-width: 0;
}

.ab-chart-num {
  color: rgba(140, 150, 170, 0.95);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ab-chart-row-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-page a:not(.atm-btn):not(.atm-nav-link) {
  text-decoration: none;
}

@media (max-width: 960px) {
  .ab-top {
    grid-template-columns: 1fr;
  }

  .ab-cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    height: auto;
  }

  .ab-daily {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-split {
    grid-template-columns: 1fr;
  }

  .ab-grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-charts {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .ab-daily {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- FAQ / Guides / Trust ---------- */

.faq-page,
.gd-page,
.ts-page,
.atm-page {
  background: transparent !important;
  color: #e8ebf2;
}

.faq-hero,
.gd-hero,
.ts-hero {
  margin-top: 12px;
  padding: 36px 40px !important;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(110deg, #07090e 0%, #0c1422 48%, #15253a 100%) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.faq-hero::before,
.gd-hero::before,
.ts-hero::before {
  opacity: 0.45;
}

.faq-hero::after,
.gd-hero::after,
.ts-hero::after,
.dl-hero::after {
  /* Drop light wave leftover from old white page theme */
  display: none !important;
}

.faq-toolbar,
.gd-toolbar,
.ts-toolbar {
  background: transparent !important;
}

.faq-search,
.gd-search,
.ts-search,
.faq-page input[type="search"],
.faq-page input[type="text"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.faq-search input,
.gd-search input {
  color: #fff !important;
  background: transparent !important;
}

.faq-search input::placeholder {
  color: rgba(150, 158, 176, 0.9) !important;
}

.faq-chip,
.gd-chip,
.ts-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(185, 194, 214, 0.95) !important;
}

.faq-chip.is-on,
.faq-chip.is-active,
.gd-chip.is-on,
.ts-chip.is-on {
  background: #335cff !important;
  border-color: #335cff !important;
  color: #fff !important;
}

/* Kill leftover light section washes */
.gd-section,
.gd-section.is-tint,
.gd-section.is-soft,
.gd-related,
.faq-section,
.faq-related,
.ts-section,
.ts-related,
.fx-related {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #e8ebf2 !important;
}

.gd-section h2,
.gd-card h2,
.gd-card h3,
.gd-related h2,
.faq-section h2,
.ts-section h2,
.ts-section h3,
.fx-related h2 {
  color: #fff !important;
}

.gd-lead,
.gd-section p,
.gd-card p,
.gd-note,
.gd-eyebrow,
.faq-section p,
.ts-section p {
  color: rgba(185, 194, 214, 0.95) !important;
}

.gd-eyebrow {
  color: #9db0ff !important;
}

/* Guides TOC — dark glass cards (was white-on-white) */
.gd-toc {
  margin-top: 8px !important;
}

.gd-toc a {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8ebf2 !important;
  box-shadow: none !important;
}

.gd-toc a:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  background: rgba(51, 92, 255, 0.1) !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.gd-toc-n {
  color: #9db0ff !important;
}

.gd-toc strong {
  color: #fff !important;
}

.gd-toc span {
  color: rgba(160, 170, 190, 0.95) !important;
}

.faq-page .acc-item,
.faq-item,
.gd-card,
.ts-card,
.faq-block,
.gd-block,
.ts-block,
.gd-page .acc-item,
.ts-page .card,
.gd-related-grid a,
.faq-related a,
.ts-related a,
.fx-related a {
  margin-top: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  color: #e8ebf2 !important;
  box-shadow: none !important;
}

.gd-related-grid a,
.faq-related a,
.ts-related a,
.fx-related a {
  margin-top: 0 !important;
  color: #fff !important;
  font-weight: 600;
}

.gd-related-grid a:hover,
.faq-related a:hover,
.ts-related a:hover,
.fx-related a:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  background: rgba(51, 92, 255, 0.1) !important;
  color: #fff !important;
}

.faq-item h3,
.gd-card h3,
.ts-card h3,
.faq-page .acc-item summary,
.faq-page .acc-item button {
  color: #fff !important;
}

.faq-quick {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.faq-item a,
.gd-card a,
.ts-card a,
.gd-steps a,
.dl-section a:not(.btn-brand):not(.dl-cta),
.page-shell a:not(.btn-brand) {
  color: #9db0ff;
}

.faq-item a:hover,
.gd-card a:hover,
.ts-card a:hover,
.gd-steps a:hover {
  color: #fff;
}

.faq-count {
  background: rgba(51, 92, 255, 0.2) !important;
  color: #9db0ff !important;
}

.faq-num {
  background: rgba(51, 92, 255, 0.16) !important;
  border: 1px solid rgba(91, 140, 255, 0.28) !important;
  color: #9db0ff !important;
  box-shadow: none !important;
}

.faq-page .acc-item.open .faq-num,
.faq-page .acc-item:hover .faq-num {
  background: linear-gradient(145deg, #5b8cff, #335cff) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.faq-chev {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #9db0ff !important;
}

.faq-page .acc-item.open .faq-chev {
  background: rgba(51, 92, 255, 0.22) !important;
  color: #fff !important;
}

.faq-page .acc-panel-inner,
.faq-page .acc-panel {
  color: rgba(185, 194, 214, 0.95) !important;
}

.faq-page .acc-panel-inner code,
.faq-page .acc-panel code {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7dde8 !important;
}

.faq-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(185, 194, 214, 0.95) !important;
}

.faq-chip:hover {
  color: #fff !important;
  border-color: rgba(91, 140, 255, 0.45) !important;
}

/* Guides steps — avoid grid splitting text/link into overlapping cells */
.gd-steps {
  position: relative;
}

.gd-steps::before {
  background: linear-gradient(180deg, #335cff, rgba(91, 140, 255, 0.15)) !important;
}

.gd-steps li {
  display: block !important;
  position: relative !important;
  padding: 0 0 18px 56px !important;
  color: rgba(210, 216, 230, 0.96) !important;
  line-height: 1.55 !important;
  font-size: 15px !important;
}

.gd-steps li:last-child {
  padding-bottom: 0 !important;
}

.gd-steps li::before {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(145deg, #5b8cff, #335cff) !important;
  box-shadow: 0 8px 18px rgba(51, 92, 255, 0.28) !important;
  color: #fff !important;
  z-index: 1;
}

.gd-banner,
.gd-banner figcaption {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(185, 194, 214, 0.95) !important;
  box-shadow: none !important;
}

.gd-cta,
.gd-prac-cta {
  background: linear-gradient(135deg, #5b8cff 0%, #335cff 48%, #2a4de6 100%) !important;
  color: #fff !important;
}

.gd-cta-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.breadcrumbs,
.breadcrumbs a,
.gd-hero-crumb,
.faq-hero .breadcrumbs,
.ts-hero .breadcrumbs {
  color: rgba(185, 194, 214, 0.9) !important;
}

.breadcrumbs a:hover {
  color: #fff !important;
}

/* Trust / FAQ / Download inline white section leftovers */
.ts-section[style],
.dl-section[style],
.gd-section[style],
.faq-section[style] {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.ts-card,
.ts-panel,
.ts-block,
.ts-callout {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8ebf2 !important;
}

.ts-cta {
  background: linear-gradient(135deg, #5b8cff 0%, #335cff 48%, #2a4de6 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(51, 92, 255, 0.35) !important;
}

.ts-cta::after {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%
  ) !important;
}

.ts-cta:hover {
  filter: brightness(1.06);
}

.ts-cta-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.ts-nav-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8ebf2 !important;
  box-shadow: none !important;
}

.ts-nav-card:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  background: rgba(51, 92, 255, 0.1) !important;
  color: #fff !important;
}

.ts-nav-card span,
.ts-nav-card:hover span {
  color: rgba(160, 170, 190, 0.95) !important;
}

.ts-panel:hover {
  border-color: rgba(91, 140, 255, 0.4) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.ts-copy {
  background: rgba(51, 92, 255, 0.16) !important;
  border: 1px solid rgba(91, 140, 255, 0.28) !important;
  color: #9db0ff !important;
}

.ts-copy:hover {
  background: rgba(51, 92, 255, 0.28) !important;
  color: #fff !important;
}

.ts-malware .ts-panel {
  background: rgba(255, 255, 255, 0.03) !important;
}

.ts-malware {
  align-items: start !important;
}

.ts-banner {
  margin: 0 !important;
  width: 100% !important;
  align-self: start !important;
  background: linear-gradient(180deg, #0a66fb 0%, #4da3ff 55%, #8ec8fe 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
}

.ts-banner .chrome {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

.ts-banner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* Shared browser-chrome preview frames */
.chrome {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a66fb 0%, #4da3ff 55%, #8ec8fe 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  text-align: left;
}

.chrome-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(6, 10, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #febc2e; }
.chrome-dot:nth-child(3) { background: #28c840; }

.chrome img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  background: transparent;
}

.ts-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(220, 226, 240, 0.95) !important;
}

.ts-list li::before,
.ts-check li::before {
  background: #335cff !important;
  color: #fff !important;
  border-color: transparent !important;
}

.ts-hash,
.ts-code,
.ts-meta code {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #d7dde8 !important;
}

.ts-related {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.ts-related a {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.fx-contact {
  border-radius: 20px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.fx-related {
  padding: 36px 0 48px !important;
}

/* ---------- 404 ---------- */

.atm-page .content {
  margin-top: 24px;
  padding: 48px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(110deg, #07090e 0%, #0c1422 48%, #15253a 100%);
  text-align: center;
}

.atm-page .eyebrow {
  color: #5b8cff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.atm-page .display {
  color: #fff;
  margin: 12px 0;
}

.atm-page .content p {
  color: rgba(185, 194, 214, 0.95);
}

/* ---------- Misc light leftovers ---------- */

.fx-page h1,
.fx-page h2,
.fx-page h3,
.dl-page h1,
.dl-page h2,
.dl-page h3 {
  color: #fff;
}

table,
.atm-compare,
.dl-table {
  color: #e8ebf2;
}

table th,
table td,
.dl-table th,
.dl-table td {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

table th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
}

@media (max-width: 720px) {
  .atm-page-hero,
  .faq-hero,
  .gd-hero,
  .ts-hero,
  .dl-hero,
  .fx-hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-radius: 16px;
  }
}
