/* MingXX Media Library - visual layer only */

:root {
  --mx-bg: #100b12;
  --mx-bg-soft: rgba(255, 248, 239, 0.08);
  --mx-card: rgba(255, 248, 239, 0.96);
  --mx-card-dark: rgba(24, 15, 22, 0.88);
  --mx-ink: #241821;
  --mx-muted: rgba(36, 24, 33, 0.64);
  --mx-line: rgba(36, 24, 33, 0.13);
  --mx-wine: #b3283d;
  --mx-coral: #ef7a5b;
  --mx-gold: #f4c56e;
  --mx-violet: #7c5cff;
  --mx-radius-xl: 28px;
  --mx-radius-lg: 20px;
  --mx-radius-md: 14px;
  --mx-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --mx-shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body.mingxx-media-library {
  color: var(--mx-ink);
  background:
    radial-gradient(circle at 7% 5%, rgba(239, 122, 91, .22), transparent 28vw),
    radial-gradient(circle at 93% 15%, rgba(124, 92, 255, .16), transparent 30vw),
    linear-gradient(135deg, #fff1dd 0%, #f4eadc 43%, #ead7c2 100%);
  background-attachment: fixed;
}

body.mingxx-media-library:is(.dark, [data-theme="dark"]),
body.mingxx-media-library.dark-mode {
  color: #fff3e6;
  background:
    radial-gradient(circle at 10% 0%, rgba(179, 40, 61, .32), transparent 34vw),
    radial-gradient(circle at 90% 10%, rgba(124, 92, 255, .22), transparent 32vw),
    linear-gradient(135deg, #100b12 0%, #171017 55%, #080609 100%);
  background-attachment: fixed;
}

body.mingxx-media-library::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(36,24,33,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,24,33,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

body.mingxx-media-library a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Header / masthead */
body.mingxx-media-library .site-header,
body.mingxx-media-library header,
body.mingxx-media-library .yuki-site-header,
body.mingxx-media-library .yuki-header {
  backdrop-filter: blur(18px);
}

body.mingxx-media-library .yuki-header-row,
body.mingxx-media-library .yuki-header-row-inner,
body.mingxx-media-library .site-header .container,
body.mingxx-media-library .site-header .yuki-container {
  border-color: rgba(36, 24, 33, .1) !important;
}

body.mingxx-media-library .site-branding,
body.mingxx-media-library .yuki-logo {
  position: relative;
}

body.mingxx-media-library .site-title,
body.mingxx-media-library .site-title a,
body.mingxx-media-library .yuki-site-title,
body.mingxx-media-library .yuki-site-title a {
  letter-spacing: -.04em;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #241821 0%, #b3283d 52%, #ef7a5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-decoration: none !important;
}

body.mingxx-media-library .site-description,
body.mingxx-media-library .yuki-site-tagline {
  color: rgba(36, 24, 33, .58) !important;
  letter-spacing: .09em;
}

body.mingxx-media-library.dark .site-title,
body.mingxx-media-library.dark .site-title a,
body.mingxx-media-library.dark-mode .site-title,
body.mingxx-media-library.dark-mode .site-title a,
body.mingxx-media-library[data-theme="dark"] .site-title,
body.mingxx-media-library[data-theme="dark"] .site-title a {
  background: linear-gradient(135deg, #fff3e6 0%, #ff6f91 54%, #f4c56e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.mingxx-media-library .menu a,
body.mingxx-media-library nav a,
body.mingxx-media-library .yuki-menu a {
  border-radius: 999px;
  transition: color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.mingxx-media-library .yuki-menu > li > a,
body.mingxx-media-library .primary-menu > li > a,
body.mingxx-media-library .menu > li > a,
body.mingxx-media-library nav .menu-item > a {
  padding: .62rem .9rem !important;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(36,24,33,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  color: rgba(36,24,33,.84) !important;
  font-weight: 750;
}

body.mingxx-media-library .yuki-menu > li > a:hover,
body.mingxx-media-library .primary-menu > li > a:hover,
body.mingxx-media-library .menu > li > a:hover,
body.mingxx-media-library nav .menu-item > a:hover {
  transform: translateY(-1px);
  color: #fff !important;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  box-shadow: 0 12px 28px rgba(179,40,61,.24);
}

/* Search */
body.mingxx-media-library input[type="search"],
body.mingxx-media-library .search-field {
  border-radius: 999px !important;
  border: 1px solid rgba(36,24,33,.14) !important;
  background: rgba(255,255,255,.7) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.mingxx-media-library .search-submit,
body.mingxx-media-library button[type="submit"] {
  border-radius: 999px !important;
}

/* General layout */
body.mingxx-media-library .yuki-container,
body.mingxx-media-library .container,
body.mingxx-media-library .site-content,
body.mingxx-media-library .content-area {
  max-width: 1180px;
}

body.mingxx-media-library .site-main,
body.mingxx-media-library main {
  position: relative;
}

body.mingxx-media-library .archive-title,
body.mingxx-media-library .page-title,
body.mingxx-media-library .entry-header .entry-title,
body.mingxx-media-library .single .entry-title,
body.mingxx-media-library h1.entry-title {
  letter-spacing: -.04em;
}

/* Archive cards */
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .post-card,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-wrapper {
  border-radius: var(--mx-radius-xl) !important;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-article,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,248,239,.96)),
    var(--mx-card) !important;
  border: 1px solid rgba(36,24,33,.12) !important;
  box-shadow: var(--mx-shadow) !important;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post:hover,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-article:hover,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card:hover {
  transform: translateY(-5px);
  border-color: rgba(179,40,61,.38) !important;
  box-shadow: 0 32px 82px rgba(36, 24, 33, .24) !important;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post::before,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card::before {
  content: attr(data-mingxx-badge);
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(36,24,33,.76);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post[data-mingxx-type="audio"]::before,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card[data-mingxx-type="audio"]::before {
  background: linear-gradient(135deg, #7c5cff, #b3283d);
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post[data-mingxx-type="photo"]::before,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card[data-mingxx-type="photo"]::before {
  background: linear-gradient(135deg, #ef7a5b, #f4c56e);
  color: #21151e;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post[data-mingxx-type="novel"]::before,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card[data-mingxx-type="novel"]::before {
  background: linear-gradient(135deg, #241821, #b3283d);
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post::after,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% -20%;
  height: 160px;
  background: radial-gradient(circle, rgba(179,40,61,.14), transparent 65%);
  pointer-events: none;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-title,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-title a,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) h2 a,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) h3 a {
  color: var(--mx-ink) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-title a:hover,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) h2 a:hover {
  color: var(--mx-wine) !important;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-meta,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .post-meta,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-taxonomies,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .cat-links,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .posted-on {
  color: rgba(36,24,33,.54) !important;
  font-size: 12px !important;
  letter-spacing: .04em;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-excerpt,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-summary,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) p {
  color: rgba(36,24,33,.68);
  line-height: 1.72;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) img {
  border-radius: 22px;
  object-fit: cover;
}

body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .post-thumbnail,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .entry-thumbnail,
body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .wp-post-image {
  overflow: hidden;
}

/* External / friend links displayed as serious buttons */
body.mingxx-media-library .wp-block-buttons,
body.mingxx-media-library .wp-block-group:has(.wp-block-button) {
  gap: 12px;
}

body.mingxx-media-library .wp-block-button__link,
body.mingxx-media-library .button,
body.mingxx-media-library .page-numbers,
body.mingxx-media-library .post-page-numbers,
body.mingxx-media-library input[type="submit"] {
  border-radius: 999px !important;
  font-weight: 850 !important;
  letter-spacing: .03em;
  border: 1px solid rgba(36,24,33,.12) !important;
  box-shadow: 0 12px 30px rgba(36,24,33,.12);
}

body.mingxx-media-library .page-numbers,
body.mingxx-media-library .post-page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 4px;
  padding: 0 12px;
  background: rgba(255,255,255,.64);
  color: var(--mx-ink);
  text-decoration: none;
}

body.mingxx-media-library .page-numbers.current,
body.mingxx-media-library .post-page-numbers.current,
body.mingxx-media-library .page-numbers:hover,
body.mingxx-media-library .post-page-numbers:hover {
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  color: #fff !important;
}

/* Single reading page */
body.mingxx-media-library.single .site-main,
body.mingxx-media-library.page .site-main {
  max-width: 980px;
  margin-inline: auto;
}

body.mingxx-media-library.single article.post,
body.mingxx-media-library.page article.page,
body.mingxx-media-library.single .yuki-card,
body.mingxx-media-library.page .yuki-card {
  background: rgba(255, 248, 239, .94) !important;
  border: 1px solid rgba(36,24,33,.12) !important;
  border-radius: 32px !important;
  box-shadow: var(--mx-shadow) !important;
  overflow: hidden;
}

body.mingxx-media-library.single .entry-header,
body.mingxx-media-library.page .entry-header {
  text-align: left;
}

body.mingxx-media-library.single h1.entry-title,
body.mingxx-media-library.page h1.entry-title {
  max-width: 880px;
  color: var(--mx-ink) !important;
  font-size: clamp(30px, 4.4vw, 56px) !important;
  line-height: .98 !important;
  margin-bottom: 18px !important;
}

body.mingxx-media-library.single .entry-content,
body.mingxx-media-library.page .entry-content {
  color: rgba(36,24,33,.9);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.98;
}

body.mingxx-media-library.single .entry-content p,
body.mingxx-media-library.single .entry-content li,
body.mingxx-media-library.page .entry-content p,
body.mingxx-media-library.page .entry-content li {
  line-height: 2.02;
}

/* Some imported long-form content uses headings as paragraphs. Make it readable, not shouty. */
body.mingxx-media-library.single .entry-content h2,
body.mingxx-media-library.single .entry-content h3,
body.mingxx-media-library.single .entry-content h4 {
  font-size: clamp(17px, 1.25vw, 20px) !important;
  line-height: 2.05 !important;
  font-weight: 520 !important;
  letter-spacing: .005em;
  margin: 1.05em 0 !important;
  padding: 0 0 0 18px;
  border-left: 4px solid rgba(179,40,61,.45);
  color: rgba(36,24,33,.9) !important;
}

body.mingxx-media-library.single .entry-content a,
body.mingxx-media-library.page .entry-content a {
  color: var(--mx-wine);
  font-weight: 700;
}

body.mingxx-media-library.single .entry-content img,
body.mingxx-media-library.page .entry-content img {
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(36,24,33,.18);
}

body.mingxx-media-library .wp-block-gallery,
body.mingxx-media-library .gallery {
  gap: 12px !important;
}

body.mingxx-media-library.single .wp-block-gallery,
body.mingxx-media-library.single .gallery,
body.mingxx-media-library.page .wp-block-gallery,
body.mingxx-media-library.page .gallery {
  padding: 12px;
  border: 1px solid rgba(36,24,33,.10);
  border-radius: 28px;
  background: rgba(255,255,255,.38);
}

body.mingxx-media-library .wp-block-gallery figure,
body.mingxx-media-library .gallery-item {
  overflow: hidden;
  border-radius: 18px;
}

/* Related / prev-next */
body.mingxx-media-library .post-navigation,
body.mingxx-media-library .nav-links,
body.mingxx-media-library .related-posts,
body.mingxx-media-library .yuki-related-posts {
  border-radius: 26px;
}

body.mingxx-media-library .related-posts,
body.mingxx-media-library .yuki-related-posts {
  padding: 22px;
  background: rgba(255, 248, 239, .74);
  border: 1px solid rgba(36,24,33,.1);
}

/* Audio player - custom plugin and native fallback */
body.mingxx-media-library .bpMp3Player,
body.mingxx-media-library .bpmp-native-fallback,
body.mingxx-media-library audio {
  max-width: 100%;
}

body.mingxx-media-library .bpMp3Player,
body.mingxx-media-library .bpmp-native-fallback {
  position: relative;
  border-radius: 28px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 0%, rgba(244,197,110,.24), transparent 34%),
    linear-gradient(135deg, #21151e, #3b1724 60%, #111018) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 30px 82px rgba(0,0,0,.32) !important;
  color: #fff3e6 !important;
}

body.mingxx-media-library .bpMp3Player::before,
body.mingxx-media-library .bpmp-native-fallback::before {
  content: "AUDIO";
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,243,230,.82);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

body.mingxx-media-library .bpMp3Player .title,
body.mingxx-media-library .bpMp3Player #title,
body.mingxx-media-library .bpMp3Player .artist,
body.mingxx-media-library .bpMp3Player #artist {
  color: #fff3e6 !important;
}

body.mingxx-media-library .bpMp3Player .progress,
body.mingxx-media-library .bpMp3Player #progressContainer {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.18) !important;
}

body.mingxx-media-library .bpMp3Player .progressFill,
body.mingxx-media-library .bpMp3Player #progress {
  border-radius: inherit !important;
  background: linear-gradient(90deg, var(--mx-gold), #ff6f91) !important;
}

body.mingxx-media-library .bpMp3Player .playPause {
  background: linear-gradient(135deg, var(--mx-gold), #ff6f91) !important;
  color: #21151e !important;
  box-shadow: 0 14px 32px rgba(255,111,145,.28) !important;
}

body.mingxx-media-library .bpmp-native-fallback {
  display: none;
  padding: 22px;
  margin: 22px 0;
}

body.mingxx-media-library .bpmp-native-fallback.is-visible {
  display: block;
}

body.mingxx-media-library .bpmp-native-fallback__title {
  margin: 0 88px 12px 0;
  color: #fff3e6;
  font-size: 18px;
  font-weight: 900;
}

body.mingxx-media-library .bpmp-native-fallback__track {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

body.mingxx-media-library .bpmp-native-fallback__track-title {
  color: rgba(255,243,230,.88);
  font-size: 13px;
  font-weight: 800;
}

body.mingxx-media-library .bpmp-native-fallback audio {
  width: 100%;
  height: 42px;
  border-radius: 999px;
}

/* Footer */
body.mingxx-media-library .site-footer,
body.mingxx-media-library footer,
body.mingxx-media-library .yuki-footer {
  color: rgba(36,24,33,.68) !important;
}

/* Dark compatibility */
body.mingxx-media-library.dark :is(.archive, .blog, .home, .search-results) article.post,
body.mingxx-media-library.dark :is(.archive, .blog, .home, .search-results) .yuki-card,
body.mingxx-media-library.dark-mode :is(.archive, .blog, .home, .search-results) article.post,
body.mingxx-media-library.dark-mode :is(.archive, .blog, .home, .search-results) .yuki-card,
body.mingxx-media-library[data-theme="dark"] :is(.archive, .blog, .home, .search-results) article.post,
body.mingxx-media-library[data-theme="dark"] :is(.archive, .blog, .home, .search-results) .yuki-card {
  background: linear-gradient(180deg, rgba(35,23,33,.94), rgba(18,12,18,.96)) !important;
  border-color: rgba(255,243,230,.12) !important;
  box-shadow: var(--mx-shadow-dark) !important;
}

body.mingxx-media-library.dark :is(.archive, .blog, .home, .search-results) .entry-title,
body.mingxx-media-library.dark :is(.archive, .blog, .home, .search-results) .entry-title a,
body.mingxx-media-library.dark-mode :is(.archive, .blog, .home, .search-results) .entry-title,
body.mingxx-media-library.dark-mode :is(.archive, .blog, .home, .search-results) .entry-title a,
body.mingxx-media-library[data-theme="dark"] :is(.archive, .blog, .home, .search-results) .entry-title,
body.mingxx-media-library[data-theme="dark"] :is(.archive, .blog, .home, .search-results) .entry-title a {
  color: #fff3e6 !important;
}

body.mingxx-media-library.dark :is(.archive, .blog, .home, .search-results) .entry-summary,
body.mingxx-media-library.dark :is(.archive, .blog, .home, .search-results) p,
body.mingxx-media-library.dark-mode :is(.archive, .blog, .home, .search-results) .entry-summary,
body.mingxx-media-library.dark-mode :is(.archive, .blog, .home, .search-results) p,
body.mingxx-media-library[data-theme="dark"] :is(.archive, .blog, .home, .search-results) .entry-summary,
body.mingxx-media-library[data-theme="dark"] :is(.archive, .blog, .home, .search-results) p {
  color: rgba(255,243,230,.68);
}

body.mingxx-media-library.dark.single article.post,
body.mingxx-media-library.dark.page article.page,
body.mingxx-media-library.dark-mode.single article.post,
body.mingxx-media-library.dark-mode.page article.page,
body.mingxx-media-library[data-theme="dark"].single article.post,
body.mingxx-media-library[data-theme="dark"].page article.page {
  background: rgba(24,15,22,.92) !important;
  border-color: rgba(255,243,230,.12) !important;
}

body.mingxx-media-library.dark.single .entry-content,
body.mingxx-media-library.dark.single .entry-content h2,
body.mingxx-media-library.dark.single .entry-content h3,
body.mingxx-media-library.dark.single .entry-content h4,
body.mingxx-media-library.dark h1.entry-title,
body.mingxx-media-library.dark-mode.single .entry-content,
body.mingxx-media-library.dark-mode.single .entry-content h2,
body.mingxx-media-library.dark-mode.single .entry-content h3,
body.mingxx-media-library.dark-mode.single .entry-content h4,
body.mingxx-media-library.dark-mode h1.entry-title,
body.mingxx-media-library[data-theme="dark"].single .entry-content,
body.mingxx-media-library[data-theme="dark"].single .entry-content h2,
body.mingxx-media-library[data-theme="dark"].single .entry-content h3,
body.mingxx-media-library[data-theme="dark"].single .entry-content h4,
body.mingxx-media-library[data-theme="dark"] h1.entry-title {
  color: rgba(255,243,230,.9) !important;
}

/* Mobile */
@media (max-width: 768px) {
  body.mingxx-media-library {
    background-size: auto;
  }

  body.mingxx-media-library .site-title,
  body.mingxx-media-library .site-title a,
  body.mingxx-media-library .yuki-site-title,
  body.mingxx-media-library .yuki-site-title a {
    font-size: 24px !important;
  }

  body.mingxx-media-library .yuki-menu,
  body.mingxx-media-library .menu {
    gap: 8px;
  }

  body.mingxx-media-library .yuki-menu > li > a,
  body.mingxx-media-library .primary-menu > li > a,
  body.mingxx-media-library .menu > li > a,
  body.mingxx-media-library nav .menu-item > a {
    padding: .54rem .7rem !important;
    font-size: 13px !important;
  }

  body.mingxx-media-library :is(.archive, .blog, .home, .search-results) article.post,
  body.mingxx-media-library :is(.archive, .blog, .home, .search-results) .yuki-card {
    border-radius: 24px !important;
  }

  body.mingxx-media-library.single article.post,
  body.mingxx-media-library.page article.page {
    border-radius: 24px !important;
  }

  body.mingxx-media-library.single .entry-content h2,
  body.mingxx-media-library.single .entry-content h3,
  body.mingxx-media-library.single .entry-content h4 {
    padding-left: 13px;
    border-left-width: 3px;
  }
}

@supports not selector(:has(*)) {
  body.mingxx-media-library .wp-block-group {
    border-radius: var(--mx-radius-lg);
  }
}

/* -------------------------------------------------------------------------
   MingXX 1.1 custom homepage: separate novel / photo / audio presentation
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
}

body.mingxx-media-library .mingxx-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
  overflow: hidden;
  color: #fff3e6;
  background:
    radial-gradient(circle at 8% 8%, rgba(244,197,110,.34), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(255,111,145,.22), transparent 28%),
    linear-gradient(135deg, #20131a 0%, #3a1625 56%, #100b12 100%);
  box-shadow: 0 28px 85px rgba(36, 24, 33, .28);
}

body.mingxx-media-library .mingxx-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,243,230,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,243,230,.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

body.mingxx-media-library .mingxx-home-hero__copy,
body.mingxx-media-library .mingxx-home-hero__panel {
  position: relative;
  z-index: 1;
}

body.mingxx-media-library .mingxx-home-hero__eyebrow,
body.mingxx-media-library .mingxx-home-section__head span,
body.mingxx-media-library .mingxx-friend-panel__head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 243, 230, .76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.mingxx-media-library .mingxx-home-hero h1 {
  margin: 10px 0 12px;
  color: #fff3e6;
  font-size: clamp(34px, 6vw, 70px);
  line-height: .92;
  letter-spacing: -.065em;
}

body.mingxx-media-library .mingxx-home-hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 243, 230, .78);
  font-size: 16px;
  line-height: 1.8;
}

body.mingxx-media-library .mingxx-home-hero__panel {
  display: grid;
  gap: 12px;
  align-content: center;
}

body.mingxx-media-library .mingxx-home-hero__panel span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  color: #fff3e6;
  font-weight: 950;
  letter-spacing: .04em;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

body.mingxx-media-library .mingxx-home-hero__panel span::after {
  content: "→";
  opacity: .62;
}

body.mingxx-media-library .mingxx-friend-panel {
  margin: 22px 0;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 248, 239, .72);
  border: 1px solid rgba(36, 24, 33, .1);
  box-shadow: 0 18px 50px rgba(36,24,33,.12);
  backdrop-filter: blur(14px);
}

body.mingxx-media-library .mingxx-friend-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body.mingxx-media-library .mingxx-friend-panel__head span {
  color: rgba(36,24,33,.78);
}

body.mingxx-media-library .mingxx-friend-panel__head em {
  color: rgba(36,24,33,.44);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.mingxx-media-library .mingxx-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.mingxx-media-library .mingxx-friend-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #241821 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,248,239,.62));
  border: 1px solid rgba(36,24,33,.16);
  box-shadow: 0 10px 24px rgba(36,24,33,.11), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

body.mingxx-media-library .mingxx-friend-link:hover {
  transform: translateY(-2px);
  color: #fff !important;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  box-shadow: 0 16px 34px rgba(179,40,61,.24);
}

body.mingxx-media-library .mingxx-home-section {
  margin-top: 26px;
}

body.mingxx-media-library .mingxx-home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin: 0 0 18px;
}

body.mingxx-media-library .mingxx-home-section__head span {
  color: rgba(36,24,33,.56);
}

body.mingxx-media-library .mingxx-home-section__head h2 {
  margin: 4px 0 0;
  color: var(--mx-ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.055em;
}

body.mingxx-media-library .mingxx-home-section__head p {
  max-width: 430px;
  margin: 0;
  color: rgba(36,24,33,.58);
  line-height: 1.7;
  font-size: 14px;
}

body.mingxx-media-library .mingxx-home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body.mingxx-media-library .mingxx-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  grid-column: span 4;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,248,239,.92);
  border: 1px solid rgba(36,24,33,.12);
  box-shadow: 0 20px 58px rgba(36,24,33,.14);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.mingxx-media-library .mingxx-home-card:hover {
  transform: translateY(-5px);
  border-color: rgba(179,40,61,.32);
  box-shadow: 0 30px 78px rgba(36,24,33,.21);
}

body.mingxx-media-library .mingxx-home-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.mingxx-media-library .mingxx-home-card__body,
body.mingxx-media-library .mingxx-home-card__photo,
body.mingxx-media-library .mingxx-home-card__paper,
body.mingxx-media-library .mingxx-home-card__audio-visual {
  position: relative;
  z-index: 2;
}

body.mingxx-media-library .mingxx-home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

body.mingxx-media-library .mingxx-home-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

body.mingxx-media-library .mingxx-home-card__meta span,
body.mingxx-media-library .mingxx-home-card__meta em,
body.mingxx-media-library .mingxx-home-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: .05em;
}

body.mingxx-media-library .mingxx-home-card__meta span {
  color: #fff;
  background: #241821;
}

body.mingxx-media-library .mingxx-home-card__meta em {
  color: rgba(36,24,33,.68);
  background: rgba(36,24,33,.07);
}

body.mingxx-media-library .mingxx-home-card__title {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

body.mingxx-media-library .mingxx-home-card__title a {
  color: var(--mx-ink) !important;
  text-decoration: none !important;
}

body.mingxx-media-library .mingxx-home-card__excerpt {
  margin: 12px 0 18px;
  color: rgba(36,24,33,.66);
  font-size: 14px;
  line-height: 1.75;
}

body.mingxx-media-library .mingxx-home-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  box-shadow: 0 14px 28px rgba(179,40,61,.18);
}

body.mingxx-media-library .mingxx-home-card--novel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,248,239,.96));
}

body.mingxx-media-library .mingxx-home-card__paper {
  margin: 18px 18px 0;
  padding: 22px 18px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(179,40,61,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36,24,33,.08) 1px, transparent 1px),
    rgba(255,255,255,.62);
  background-size: 22px 22px;
  border: 1px solid rgba(36,24,33,.10);
}

body.mingxx-media-library .mingxx-home-card__paper span {
  display: block;
  height: 9px;
  margin: 0 0 11px;
  border-radius: 999px;
  background: rgba(36,24,33,.12);
}

body.mingxx-media-library .mingxx-home-card__paper span:nth-child(2) { width: 82%; }
body.mingxx-media-library .mingxx-home-card__paper span:nth-child(3) { width: 58%; margin-bottom: 0; }

body.mingxx-media-library .mingxx-home-card--photo {
  background: #171017;
  color: #fff3e6;
}

body.mingxx-media-library .mingxx-home-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #21151e, #3b1724);
}

body.mingxx-media-library .mingxx-home-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform .32s ease;
}

body.mingxx-media-library .mingxx-home-card--photo:hover .mingxx-home-card__photo img {
  transform: scale(1.035);
}

body.mingxx-media-library .mingxx-home-card__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
}

body.mingxx-media-library .mingxx-home-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  color: #21151e;
  background: rgba(244,197,110,.92);
}

body.mingxx-media-library .mingxx-home-card__photo-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255,243,230,.68);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2em;
}

body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__body {
  background: linear-gradient(180deg, #171017, #100b12);
}

body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__title a,
body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__excerpt {
  color: #fff3e6 !important;
}

body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__excerpt {
  opacity: .7;
}

body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__meta span {
  color: #21151e;
  background: #f4c56e;
}

body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__meta em {
  color: rgba(255,243,230,.72);
  background: rgba(255,255,255,.1);
}

body.mingxx-media-library .mingxx-home-card--audio {
  background:
    radial-gradient(circle at 18% 0%, rgba(124,92,255,.22), transparent 34%),
    linear-gradient(135deg, #20131a, #311425 58%, #100b12);
  color: #fff3e6;
}

body.mingxx-media-library .mingxx-home-card__audio-visual {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 168px;
  margin: 18px 18px 0;
  padding: 24px 18px 42px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 15%, rgba(244,197,110,.24), transparent 28%),
    rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

body.mingxx-media-library .mingxx-home-card__audio-visual span {
  flex: 1;
  min-width: 8px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #f4c56e, #ff6f91);
  box-shadow: 0 12px 28px rgba(255,111,145,.18);
}

body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(1) { height: 42px; }
body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(2) { height: 84px; }
body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(3) { height: 62px; }
body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(4) { height: 112px; }
body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(5) { height: 72px; }
body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(6) { height: 96px; }
body.mingxx-media-library .mingxx-home-card__audio-visual span:nth-child(7) { height: 50px; }

body.mingxx-media-library .mingxx-home-card__audio-visual b {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255,243,230,.58);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__title a,
body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__excerpt {
  color: #fff3e6 !important;
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__excerpt {
  opacity: .72;
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__meta span {
  background: linear-gradient(135deg, #7c5cff, #ff6f91);
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__meta em {
  color: rgba(255,243,230,.72);
  background: rgba(255,255,255,.1);
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__button {
  color: #21151e;
  background: linear-gradient(135deg, #f4c56e, #ff6f91);
}

body.mingxx-media-library .mingxx-home-pagination {
  margin: 30px 0 0;
  text-align: center;
}

body.mingxx-media-library .mingxx-home-empty {
  padding: 36px;
  border-radius: 24px;
  background: rgba(255,248,239,.74);
  border: 1px solid rgba(36,24,33,.1);
  text-align: center;
  color: rgba(36,24,33,.64);
  font-weight: 800;
}

body.mingxx-media-library.dark .mingxx-friend-panel,
body.mingxx-media-library.dark-mode .mingxx-friend-panel,
body.mingxx-media-library[data-theme="dark"] .mingxx-friend-panel {
  background: rgba(24,15,22,.78);
  border-color: rgba(255,243,230,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

body.mingxx-media-library.dark .mingxx-friend-panel__head span,
body.mingxx-media-library.dark-mode .mingxx-friend-panel__head span,
body.mingxx-media-library[data-theme="dark"] .mingxx-friend-panel__head span,
body.mingxx-media-library.dark .mingxx-home-section__head h2,
body.mingxx-media-library.dark-mode .mingxx-home-section__head h2,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-section__head h2 {
  color: #fff3e6;
}

body.mingxx-media-library.dark .mingxx-friend-panel__head em,
body.mingxx-media-library.dark-mode .mingxx-friend-panel__head em,
body.mingxx-media-library[data-theme="dark"] .mingxx-friend-panel__head em,
body.mingxx-media-library.dark .mingxx-home-section__head p,
body.mingxx-media-library.dark-mode .mingxx-home-section__head p,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-section__head p,
body.mingxx-media-library.dark .mingxx-home-section__head span,
body.mingxx-media-library.dark-mode .mingxx-home-section__head span,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-section__head span {
  color: rgba(255,243,230,.62);
}

body.mingxx-media-library.dark .mingxx-home-card--novel,
body.mingxx-media-library.dark-mode .mingxx-home-card--novel,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-card--novel {
  background: linear-gradient(180deg, rgba(35,23,33,.94), rgba(18,12,18,.96));
  border-color: rgba(255,243,230,.12);
}

body.mingxx-media-library.dark .mingxx-home-card--novel .mingxx-home-card__title a,
body.mingxx-media-library.dark-mode .mingxx-home-card--novel .mingxx-home-card__title a,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-card--novel .mingxx-home-card__title a {
  color: #fff3e6 !important;
}

body.mingxx-media-library.dark .mingxx-home-card--novel .mingxx-home-card__excerpt,
body.mingxx-media-library.dark-mode .mingxx-home-card--novel .mingxx-home-card__excerpt,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-card--novel .mingxx-home-card__excerpt {
  color: rgba(255,243,230,.66);
}

body.mingxx-media-library.dark .mingxx-home-card__paper,
body.mingxx-media-library.dark-mode .mingxx-home-card__paper,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-card__paper {
  background:
    linear-gradient(90deg, rgba(255,243,230,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,243,230,.08) 1px, transparent 1px),
    rgba(255,255,255,.06);
  border-color: rgba(255,243,230,.12);
}

@media (max-width: 1024px) {
  body.mingxx-media-library .mingxx-home-card {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-shell {
    width: min(100% - 22px, 1180px);
    margin-top: 18px;
  }

  body.mingxx-media-library .mingxx-home-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 28px;
  }

  body.mingxx-media-library .mingxx-home-hero__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.mingxx-media-library .mingxx-home-hero__panel span {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.mingxx-media-library .mingxx-home-hero__panel span::after {
    display: none;
  }

  body.mingxx-media-library .mingxx-home-section__head {
    display: block;
  }

  body.mingxx-media-library .mingxx-home-section__head p {
    margin-top: 10px;
  }

  body.mingxx-media-library .mingxx-home-grid {
    gap: 14px;
  }

  body.mingxx-media-library .mingxx-home-card {
    grid-column: span 12;
    border-radius: 24px;
  }

  body.mingxx-media-library .mingxx-home-card__photo {
    aspect-ratio: 16 / 11;
  }

  body.mingxx-media-library .mingxx-home-card__audio-visual {
    min-height: 132px;
  }

  body.mingxx-media-library .mingxx-friend-panel {
    padding: 14px;
    border-radius: 22px;
  }

  body.mingxx-media-library .mingxx-friend-link {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* -------------------------------------------------------------------------
   MingXX 1.2 homepage polish: no marketing hero, cleaner user-facing cards
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-shell {
  margin-top: 22px;
}

body.mingxx-media-library .mingxx-home-hero {
  display: none !important;
}

body.mingxx-media-library .mingxx-home-section {
  margin-top: 22px;
}

body.mingxx-media-library .mingxx-home-section__head {
  margin-bottom: 16px;
}

body.mingxx-media-library .mingxx-home-section__head h1,
body.mingxx-media-library .mingxx-home-section__head h2 {
  margin: 4px 0 0;
  color: var(--mx-ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.055em;
}

body.mingxx-media-library .mingxx-home-card {
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(36,24,33,.12);
}

body.mingxx-media-library .mingxx-home-card__book,
body.mingxx-media-library .mingxx-home-card__audio-cover {
  position: relative;
  z-index: 2;
}

body.mingxx-media-library .mingxx-home-card--novel {
  background:
    radial-gradient(circle at 84% 0%, rgba(244,197,110,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,248,239,.98));
}

body.mingxx-media-library .mingxx-home-card__book {
  min-height: 188px;
  margin: 18px 18px 0;
  padding: 22px 22px 20px 34px;
  display: flex;
  align-items: stretch;
  border-radius: 16px 24px 24px 16px;
  overflow: hidden;
  color: #fff7eb;
  background:
    radial-gradient(circle at 86% 14%, rgba(244,197,110,.34), transparent 28%),
    linear-gradient(135deg, #6b2133 0%, #2a1420 58%, #130b10 100%);
  box-shadow: 0 20px 42px rgba(36,24,33,.24), inset 0 1px 0 rgba(255,255,255,.16);
}

body.mingxx-media-library .mingxx-home-card__book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.22), transparent),
    repeating-linear-gradient(180deg, rgba(255,255,255,.13) 0 1px, transparent 1px 9px);
  border-right: 1px solid rgba(255,255,255,.18);
}

body.mingxx-media-library .mingxx-home-card__book::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}

body.mingxx-media-library .mingxx-home-card__book i {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 50px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #f4c56e, #ef7a5b);
  box-shadow: 0 12px 24px rgba(239,122,91,.24);
}

body.mingxx-media-library .mingxx-home-card__book div {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

body.mingxx-media-library .mingxx-home-card__book span,
body.mingxx-media-library .mingxx-home-card__book em {
  color: rgba(255,247,235,.66);
  font-size: 11px;
  font-weight: 950;
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.mingxx-media-library .mingxx-home-card__book strong {
  max-width: 88%;
  color: #fff7eb;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.06em;
  text-shadow: 0 10px 28px rgba(0,0,0,.28);
}

body.mingxx-media-library .mingxx-home-card--novel .mingxx-home-card__body {
  padding-top: 16px;
}

body.mingxx-media-library .mingxx-home-card--photo {
  background: #171017;
}

body.mingxx-media-library .mingxx-home-card__photo {
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 0;
}

body.mingxx-media-library .mingxx-home-card--photo .mingxx-home-card__body {
  padding-top: 16px;
}

body.mingxx-media-library .mingxx-home-card--audio {
  background:
    radial-gradient(circle at 18% 0%, rgba(124,92,255,.28), transparent 35%),
    radial-gradient(circle at 82% 18%, rgba(244,197,110,.20), transparent 26%),
    linear-gradient(135deg, #171427, #271025 58%, #0d0910);
}

body.mingxx-media-library .mingxx-home-card__audio-cover {
  min-height: 188px;
  margin: 18px 18px 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: 26px;
  overflow: hidden;
  color: #fff7eb;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 20px 45px rgba(0,0,0,.18);
}

body.mingxx-media-library .mingxx-home-card__audio-cover::after {
  content: "";
  position: absolute;
  inset: auto -40px -62px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

body.mingxx-media-library .mingxx-home-card__audio-disc {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff7eb 0 9px, #221523 10px 15px, transparent 16px),
    conic-gradient(from 20deg, #f4c56e, #ff6f91, #7c5cff, #f4c56e);
  box-shadow: 0 18px 36px rgba(0,0,0,.26);
}

body.mingxx-media-library .mingxx-home-card__audio-disc i {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.10);
}

body.mingxx-media-library .mingxx-home-card__audio-wave {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 76px;
}

body.mingxx-media-library .mingxx-home-card__audio-wave span {
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4c56e, #ff6f91);
  box-shadow: 0 10px 22px rgba(255,111,145,.18);
}

body.mingxx-media-library .mingxx-home-card__audio-wave span:nth-child(1) { height: 34px; }
body.mingxx-media-library .mingxx-home-card__audio-wave span:nth-child(2) { height: 62px; }
body.mingxx-media-library .mingxx-home-card__audio-wave span:nth-child(3) { height: 44px; }
body.mingxx-media-library .mingxx-home-card__audio-wave span:nth-child(4) { height: 76px; }
body.mingxx-media-library .mingxx-home-card__audio-wave span:nth-child(5) { height: 38px; }

body.mingxx-media-library .mingxx-home-card__audio-cover strong {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  color: #fff7eb;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.055em;
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__body {
  padding-top: 16px;
}

body.mingxx-media-library .mingxx-home-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.mingxx-media-library.dark .mingxx-home-section__head h1,
body.mingxx-media-library.dark-mode .mingxx-home-section__head h1,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-section__head h1 {
  color: #fff3e6;
}

body.mingxx-media-library.dark .mingxx-home-card__book,
body.mingxx-media-library.dark-mode .mingxx-home-card__book,
body.mingxx-media-library[data-theme="dark"] .mingxx-home-card__book {
  background:
    radial-gradient(circle at 86% 14%, rgba(244,197,110,.28), transparent 28%),
    linear-gradient(135deg, #7a2540 0%, #2a1420 62%, #0c070b 100%);
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-card__book,
  body.mingxx-media-library .mingxx-home-card__audio-cover {
    min-height: 154px;
    margin: 14px 14px 0;
  }

  body.mingxx-media-library .mingxx-home-card__photo {
    aspect-ratio: 4 / 3;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover {
    grid-template-columns: 82px 1fr;
    padding: 18px;
  }

  body.mingxx-media-library .mingxx-home-card__audio-disc {
    width: 82px;
    height: 82px;
  }

  body.mingxx-media-library .mingxx-home-card__book strong,
  body.mingxx-media-library .mingxx-home-card__audio-cover strong {
    font-size: 24px;
  }
}


/* -------------------------------------------------------------------------
   MingXX 1.3: managed top friend buttons + banner, no old loose top ads
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-legacy-hidden {
  display: none !important;
}

body.mingxx-media-library .mingxx-friend-panel {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.mingxx-media-library .mingxx-friend-panel__head {
  display: none !important;
}

body.mingxx-media-library .mingxx-friend-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 16px;
}

body.mingxx-media-library .mingxx-friend-link {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .01em;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  box-shadow: 0 12px 26px rgba(36,24,33,.12), inset 0 -2px 0 rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
}

body.mingxx-media-library .mingxx-friend-link--green { background: linear-gradient(180deg, #53bd5a, #3fa747); }
body.mingxx-media-library .mingxx-friend-link--orange,
body.mingxx-media-library .mingxx-friend-link--red { background: linear-gradient(180deg, #ff6535, #ff4b22); }
body.mingxx-media-library .mingxx-friend-link--blue { background: linear-gradient(180deg, #2ca5f5, #2298e3); }
body.mingxx-media-library .mingxx-friend-link--purple { background: linear-gradient(180deg, #b32ac7, #9e22b6); }
body.mingxx-media-library .mingxx-friend-link--dark { background: linear-gradient(180deg, #3b2a34, #1f151d); }

body.mingxx-media-library .mingxx-friend-link:hover {
  transform: translateY(-2px);
  color: #fff !important;
  filter: brightness(1.04) saturate(1.08);
  box-shadow: 0 18px 34px rgba(36,24,33,.18), inset 0 -2px 0 rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.22);
}

body.mingxx-media-library .mingxx-friend-banners {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body.mingxx-media-library .mingxx-friend-banner {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,248,239,.58);
  box-shadow: 0 16px 40px rgba(36,24,33,.12);
}

body.mingxx-media-library .mingxx-friend-banner img,
body.mingxx-media-library .mingxx-friend-banner--html img {
  display: block;
  width: 100%;
  max-height: 128px;
  object-fit: cover;
  border-radius: 16px !important;
}

body.mingxx-media-library .mingxx-home-card--novel .mingxx-home-card__title,
body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__title {
  display: none !important;
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__body {
  min-height: 116px;
}

@media (max-width: 1024px) {
  body.mingxx-media-library .mingxx-friend-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-shell {
    width: min(100% - 22px, 1180px);
    margin-top: 18px;
  }

  body.mingxx-media-library .mingxx-friend-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.mingxx-media-library .mingxx-friend-link {
    min-height: 44px;
    padding: 0 8px;
    font-size: 13px;
  }

  body.mingxx-media-library .mingxx-friend-banner img,
  body.mingxx-media-library .mingxx-friend-banner--html img {
    max-height: 88px;
  }
}


/* -------------------------------------------------------------------------
   MingXX 1.4: fix homepage card click area
   The visible cover/body sits above the old overlay link in v1.3, so clicks
   landed on non-link elements. Keep the whole card as one real link.
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-card {
  cursor: pointer;
}

body.mingxx-media-library .mingxx-home-card .mingxx-home-card__link {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 60 !important;
  cursor: pointer;
}

body.mingxx-media-library .mingxx-home-card__body,
body.mingxx-media-library .mingxx-home-card__photo,
body.mingxx-media-library .mingxx-home-card__book,
body.mingxx-media-library .mingxx-home-card__audio-cover,
body.mingxx-media-library .mingxx-home-card__paper,
body.mingxx-media-library .mingxx-home-card__audio-visual {
  pointer-events: none !important;
}

/* -------------------------------------------------------------------------
   MingXX 1.5: novel grouping, generated covers, chapter index, reader tools
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-card--novel-group .mingxx-home-card__button {
  background: linear-gradient(135deg, #2f5f4f, #b3283d);
}

body.mingxx-media-library .mingxx-home-card__book--1 {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 214, 123, .36), transparent 28%),
    linear-gradient(135deg, #214b55 0%, #15242b 56%, #0d1117 100%);
}
body.mingxx-media-library .mingxx-home-card__book--2 {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, .25), transparent 28%),
    linear-gradient(135deg, #74402a 0%, #3a1820 56%, #14090d 100%);
}
body.mingxx-media-library .mingxx-home-card__book--3 {
  background:
    radial-gradient(circle at 84% 12%, rgba(244, 197, 110, .30), transparent 28%),
    linear-gradient(135deg, #4b356f 0%, #251734 56%, #100912 100%);
}
body.mingxx-media-library .mingxx-home-card__book--4 {
  background:
    radial-gradient(circle at 84% 12%, rgba(180, 230, 170, .28), transparent 28%),
    linear-gradient(135deg, #285542 0%, #182b22 56%, #0c130f 100%);
}

body.mingxx-media-library .mingxx-novel-index-shell,
body.mingxx-media-library .mingxx-single-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 34px auto 74px;
}

body.mingxx-media-library .mingxx-novel-index-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 34px;
  background: rgba(255, 248, 239, .76);
  border: 1px solid rgba(36, 24, 33, .1);
  box-shadow: 0 24px 70px rgba(36, 24, 33, .14);
  backdrop-filter: blur(14px);
}

body.mingxx-media-library .mingxx-novel-index-hero .mingxx-home-card__book {
  margin: 0;
  min-height: 260px;
}

body.mingxx-media-library .mingxx-novel-index-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 8px;
}

body.mingxx-media-library .mingxx-novel-index-hero__body span,
body.mingxx-media-library .mingxx-reader-header span,
body.mingxx-media-library .mingxx-single-header span {
  color: rgba(36, 24, 33, .52);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.mingxx-media-library .mingxx-novel-index-hero__body h1 {
  margin: 10px 0 14px;
  color: var(--mx-ink);
  font-size: clamp(34px, 6vw, 64px);
  line-height: .96;
  letter-spacing: -.06em;
}

body.mingxx-media-library .mingxx-novel-index-hero__body p {
  margin: 0;
  color: rgba(36,24,33,.62);
  font-size: 15px;
  line-height: 1.8;
}

body.mingxx-media-library .mingxx-chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.mingxx-media-library .mingxx-chapter-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--mx-ink) !important;
  text-decoration: none !important;
  background: rgba(255,248,239,.86);
  border: 1px solid rgba(36,24,33,.1);
  box-shadow: 0 12px 30px rgba(36,24,33,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.mingxx-media-library .mingxx-chapter-item:hover {
  transform: translateY(-2px);
  border-color: rgba(179,40,61,.28);
  box-shadow: 0 18px 42px rgba(36,24,33,.14);
}

body.mingxx-media-library .mingxx-chapter-item span,
body.mingxx-media-library .mingxx-chapter-item em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

body.mingxx-media-library .mingxx-chapter-item span {
  color: #fff;
  background: #241821;
}

body.mingxx-media-library .mingxx-chapter-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 850;
}

body.mingxx-media-library .mingxx-chapter-item em {
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
}

body.mingxx-media-library .mingxx-reader-article {
  --mx-reader-font-size: 19px;
  --mx-reader-line-height: 1.95;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 34px;
  color: #243126;
  background:
    linear-gradient(90deg, rgba(47, 95, 79, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 95, 79, .045) 1px, transparent 1px),
    #eef5df;
  background-size: 32px 32px;
  border: 1px solid rgba(47, 95, 79, .16);
  box-shadow: 0 24px 70px rgba(36, 24, 33, .14);
}

body.mingxx-media-library .mingxx-reader-topline {
  margin: 0 0 14px;
}

body.mingxx-media-library .mingxx-reader-topline a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #2f5f4f !important;
  background: rgba(47, 95, 79, .09);
  text-decoration: none !important;
  font-weight: 850;
}

body.mingxx-media-library .mingxx-reader-header h1,
body.mingxx-media-library .mingxx-single-header h1 {
  margin: 8px 0 20px;
  color: inherit;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

body.mingxx-media-library .mingxx-reader-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(238, 245, 223, .86);
  border: 1px solid rgba(47, 95, 79, .15);
  backdrop-filter: blur(12px);
}

body.mingxx-media-library .mingxx-reader-toolbar button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #2f5f4f;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

body.mingxx-media-library .mingxx-reader-toolbar button:hover {
  background: #b3283d;
}

body.mingxx-media-library .mingxx-reader-content {
  font-size: var(--mx-reader-font-size);
  line-height: var(--mx-reader-line-height);
  letter-spacing: .02em;
}

body.mingxx-media-library .mingxx-reader-content p {
  margin: 0 0 1.15em;
}

body.mingxx-media-library .mingxx-reader-content .mingxx-text-watermark,
body.mingxx-media-library .mingxx-reader-content p:has(> .mingxx-text-watermark) {
  color: rgba(47, 95, 79, .58);
}

body.mingxx-media-library .mingxx-single-standard {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 34px;
  background: rgba(255,248,239,.86);
  border: 1px solid rgba(36, 24, 33, .1);
  box-shadow: 0 24px 70px rgba(36, 24, 33, .14);
}

body.mingxx-media-library .mingxx-single-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(36,24,33,.16);
}

body.mingxx-media-library .mingxx-single-content audio {
  width: 100%;
  margin: 18px 0;
}

body.mingxx-media-library.dark .mingxx-novel-index-hero,
body.mingxx-media-library.dark-mode .mingxx-novel-index-hero,
body.mingxx-media-library[data-theme="dark"] .mingxx-novel-index-hero,
body.mingxx-media-library.dark .mingxx-single-standard,
body.mingxx-media-library.dark-mode .mingxx-single-standard,
body.mingxx-media-library[data-theme="dark"] .mingxx-single-standard {
  color: #fff3e6;
  background: rgba(24,15,22,.82);
  border-color: rgba(255,243,230,.12);
}

body.mingxx-media-library.dark .mingxx-novel-index-hero__body h1,
body.mingxx-media-library.dark-mode .mingxx-novel-index-hero__body h1,
body.mingxx-media-library[data-theme="dark"] .mingxx-novel-index-hero__body h1,
body.mingxx-media-library.dark .mingxx-novel-index-hero__body span,
body.mingxx-media-library.dark-mode .mingxx-novel-index-hero__body span,
body.mingxx-media-library[data-theme="dark"] .mingxx-novel-index-hero__body span {
  color: #fff3e6;
}

body.mingxx-media-library.dark .mingxx-novel-index-hero__body p,
body.mingxx-media-library.dark-mode .mingxx-novel-index-hero__body p,
body.mingxx-media-library[data-theme="dark"] .mingxx-novel-index-hero__body p {
  color: rgba(255,243,230,.64);
}

body.mingxx-media-library.dark .mingxx-chapter-item,
body.mingxx-media-library.dark-mode .mingxx-chapter-item,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-item {
  color: #fff3e6 !important;
  background: rgba(24,15,22,.82);
  border-color: rgba(255,243,230,.12);
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-novel-index-shell,
  body.mingxx-media-library .mingxx-single-shell {
    width: min(100% - 22px, 1080px);
    margin-top: 18px;
  }

  body.mingxx-media-library .mingxx-novel-index-hero {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 26px;
  }

  body.mingxx-media-library .mingxx-novel-index-hero .mingxx-home-card__book {
    min-height: 178px;
  }

  body.mingxx-media-library .mingxx-chapter-list {
    grid-template-columns: 1fr;
  }

  body.mingxx-media-library .mingxx-chapter-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  body.mingxx-media-library .mingxx-reader-article,
  body.mingxx-media-library .mingxx-single-standard {
    padding: 20px 16px;
    border-radius: 24px;
  }

  body.mingxx-media-library .mingxx-reader-content {
    font-size: calc(var(--mx-reader-font-size) - 1px);
  }
}

/* MingXX 1.6: stronger reader controls fallback. */
body.mingxx-media-library .mingxx-reader-content,
body.mingxx-media-library .mingxx-reader-content p,
body.mingxx-media-library .mingxx-reader-content div,
body.mingxx-media-library .mingxx-reader-content span {
  line-height: var(--mx-reader-line-height) !important;
}
body.mingxx-media-library .mingxx-reader-content p,
body.mingxx-media-library .mingxx-reader-content div,
body.mingxx-media-library .mingxx-reader-content span {
  font-size: inherit !important;
}

/* MingXX 1.7: previous / next chapter buttons on novel reader pages. */
body.mingxx-media-library .mingxx-chapter-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 20px 0 26px;
}

body.mingxx-media-library .mingxx-chapter-nav--bottom {
  margin-top: 34px;
  margin-bottom: 0;
}

body.mingxx-media-library .mingxx-chapter-nav__btn,
body.mingxx-media-library .mingxx-chapter-nav__catalog {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  text-decoration: none !important;
  border: 1px solid rgba(47, 95, 79, .16);
  background: rgba(255, 255, 255, .45);
  color: #243126 !important;
  box-shadow: 0 10px 24px rgba(47, 95, 79, .08);
}

body.mingxx-media-library .mingxx-chapter-nav__btn {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  overflow: hidden;
}

body.mingxx-media-library .mingxx-chapter-nav__btn--next {
  align-items: flex-end;
  text-align: right;
}

body.mingxx-media-library .mingxx-chapter-nav__btn span {
  color: #2f5f4f;
  font-size: 13px;
  font-weight: 900;
}

body.mingxx-media-library .mingxx-chapter-nav__btn strong {
  width: 100%;
  margin-top: 4px;
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mingxx-media-library .mingxx-chapter-nav__catalog {
  width: 74px;
  flex-direction: column;
  font-size: 14px;
  font-weight: 950;
  color: #fff !important;
  background: #2f5f4f;
  border-color: transparent;
}

body.mingxx-media-library .mingxx-chapter-nav__catalog em {
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  opacity: .82;
}

body.mingxx-media-library .mingxx-chapter-nav__btn:not(.mingxx-chapter-nav__btn--disabled):hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .74);
  border-color: rgba(47, 95, 79, .32);
}

body.mingxx-media-library .mingxx-chapter-nav__catalog:hover {
  background: #b3283d;
}

body.mingxx-media-library .mingxx-chapter-nav__btn--disabled {
  opacity: .55;
  cursor: default;
}

body.mingxx-media-library.dark .mingxx-chapter-nav__btn,
body.mingxx-media-library.dark-mode .mingxx-chapter-nav__btn,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-nav__btn {
  color: #fff3e6 !important;
  background: rgba(255, 243, 230, .08);
  border-color: rgba(255, 243, 230, .14);
}

body.mingxx-media-library.dark .mingxx-chapter-nav__btn span,
body.mingxx-media-library.dark-mode .mingxx-chapter-nav__btn span,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-nav__btn span {
  color: #ffc06a;
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-chapter-nav {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body.mingxx-media-library .mingxx-chapter-nav__catalog {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-height: 46px;
  }

  body.mingxx-media-library .mingxx-chapter-nav__btn {
    min-height: 62px;
    padding: 10px 12px;
  }

  body.mingxx-media-library .mingxx-chapter-nav__btn strong {
    font-size: 13px;
  }
}


/* -------------------------------------------------------------------------
   MingXX 1.9: unified vertical cards + safer novel counts
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.mingxx-media-library .mingxx-home-card {
  grid-column: auto !important;
  min-width: 0;
  border-radius: 22px !important;
}

body.mingxx-media-library .mingxx-home-card__photo,
body.mingxx-media-library .mingxx-home-card__book,
body.mingxx-media-library .mingxx-home-card__audio-cover {
  width: 100%;
  aspect-ratio: 3 / 4 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body.mingxx-media-library .mingxx-home-card__book {
  padding: 24px 20px 20px 34px !important;
}

body.mingxx-media-library .mingxx-home-card__book div {
  width: 100%;
}

body.mingxx-media-library .mingxx-home-card__book strong,
body.mingxx-media-library .mingxx-home-card__audio-cover strong {
  font-size: clamp(21px, 2vw, 31px) !important;
}

body.mingxx-media-library .mingxx-home-card__book em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #2a1420 !important;
  background: rgba(255,247,235,.86);
  letter-spacing: .06em !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px !important;
}

body.mingxx-media-library .mingxx-home-card__audio-disc {
  width: 42% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
}

body.mingxx-media-library .mingxx-home-card__audio-wave {
  width: 100%;
  height: 86px;
  justify-content: center;
}

body.mingxx-media-library .mingxx-home-card__body {
  padding: 14px !important;
}

body.mingxx-media-library .mingxx-home-card__meta {
  margin-bottom: 8px !important;
}

body.mingxx-media-library .mingxx-home-card__button {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

@media (max-width: 1024px) {
  body.mingxx-media-library .mingxx-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.mingxx-media-library .mingxx-home-card {
    border-radius: 16px !important;
  }

  body.mingxx-media-library .mingxx-home-card__book {
    padding: 18px 12px 14px 26px !important;
  }

  body.mingxx-media-library .mingxx-home-card__book::before {
    width: 20px !important;
  }

  body.mingxx-media-library .mingxx-home-card__book i {
    top: 12px !important;
    right: 12px !important;
    width: 24px !important;
    height: 36px !important;
  }

  body.mingxx-media-library .mingxx-home-card__book span,
  body.mingxx-media-library .mingxx-home-card__book em {
    font-size: 10px !important;
  }

  body.mingxx-media-library .mingxx-home-card__book strong,
  body.mingxx-media-library .mingxx-home-card__audio-cover strong {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover {
    padding: 14px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-wave {
    height: 58px !important;
    gap: 5px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-wave span {
    width: 6px !important;
  }

  body.mingxx-media-library .mingxx-home-card__body {
    padding: 10px !important;
  }

  body.mingxx-media-library .mingxx-home-card__meta span,
  body.mingxx-media-library .mingxx-home-card__meta em {
    min-height: 22px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }

  body.mingxx-media-library .mingxx-home-card__excerpt {
    margin: 8px 0 12px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.mingxx-media-library .mingxx-home-card__title {
    font-size: 15px !important;
  }

  body.mingxx-media-library .mingxx-home-card__button {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}


/* -------------------------------------------------------------------------
   MingXX 2.0: richer novel/audio cover art direction
   Slight late-night / mature editorial mood, no explicit imagery.
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-card--novel {
  background:
    radial-gradient(circle at 84% 0%, rgba(255,198,132,.26), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(146,39,73,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,247,238,.98));
}

body.mingxx-media-library .mingxx-home-card__book {
  position: relative;
  isolation: isolate;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,208,114,.34), transparent 26%),
    radial-gradient(circle at 14% 78%, rgba(255,120,149,.16), transparent 30%),
    linear-gradient(145deg, #7d1736 0%, #451126 44%, #1c0d18 100%) !important;
  box-shadow: 0 18px 42px rgba(40,10,22,.34), inset 0 1px 0 rgba(255,255,255,.10), inset 0 -24px 48px rgba(0,0,0,.16) !important;
}

body.mingxx-media-library .mingxx-home-card__book::before {
  width: 34px !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.34), rgba(255,255,255,.05)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.12) 0 1px, transparent 1px 9px) !important;
  border-right: 1px solid rgba(255,255,255,.16) !important;
}

body.mingxx-media-library .mingxx-home-card__book::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 115% 14%, rgba(255,255,255,.17), transparent 22%),
    radial-gradient(circle at 85% 118%, rgba(255,255,255,.09), transparent 18%),
    linear-gradient(120deg, transparent 28%, rgba(255,255,255,.06) 42%, transparent 55%);
  opacity: .9;
}

body.mingxx-media-library .mingxx-home-card__book i {
  top: 16px !important;
  right: 16px !important;
  width: 42px !important;
  height: 58px !important;
  border-radius: 0 0 999px 999px !important;
  background: linear-gradient(180deg, #ffd27a, #ff8f68) !important;
  box-shadow: 0 14px 28px rgba(255,143,104,.32) !important;
}

body.mingxx-media-library .mingxx-home-card__book div {
  position: relative;
  z-index: 1;
  justify-content: center !important;
  gap: 14px !important;
}

body.mingxx-media-library .mingxx-home-card__book span {
  display: inline-flex;
  width: max-content;
  padding: 0 10px;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  color: rgba(255,245,234,.92) !important;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  letter-spacing: .14em !important;
}

body.mingxx-media-library .mingxx-home-card__book strong {
  max-width: 100% !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.06em !important;
  text-shadow: 0 12px 28px rgba(0,0,0,.32), 0 2px 0 rgba(255,255,255,.06) !important;
}

body.mingxx-media-library .mingxx-home-card__book em {
  align-self: flex-start;
  min-height: 30px !important;
  padding: 0 12px !important;
  color: #3d1322 !important;
  background: linear-gradient(180deg, rgba(255,246,232,.98), rgba(255,227,190,.90)) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  letter-spacing: .05em !important;
}

/* audio cover: center title and refine visual mood */
body.mingxx-media-library .mingxx-home-card--audio {
  background:
    radial-gradient(circle at 16% 0%, rgba(124,92,255,.30), transparent 34%),
    radial-gradient(circle at 85% 16%, rgba(255,180,115,.18), transparent 25%),
    linear-gradient(145deg, #1b1324, #30132a 56%, #100b12);
}

body.mingxx-media-library .mingxx-home-card__audio-cover {
  position: relative;
  isolation: isolate;
  display: block !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 14%, rgba(255,210,122,.12), transparent 25%),
    linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 22px 48px rgba(0,0,0,.24) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover::before {
  content: "AUDIO";
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  color: rgba(255,245,235,.86);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.10);
}

body.mingxx-media-library .mingxx-home-card__audio-cover::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -26px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0));
}

body.mingxx-media-library .mingxx-home-card__audio-disc {
  position: absolute !important;
  top: 16px;
  right: 16px;
  width: 68px !important;
  box-shadow: 0 16px 30px rgba(0,0,0,.28) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-wave {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 56px !important;
  z-index: 1;
  opacity: .96;
}

body.mingxx-media-library .mingxx-home-card__audio-wave span {
  width: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffd27a, #ff6f91) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover strong {
  position: absolute !important;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: calc(100% - 34px);
  margin: 0;
  text-align: center;
  transform: translate(-50%, -50%);
  font-size: clamp(26px, 2.8vw, 36px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.05em !important;
  text-shadow: 0 14px 28px rgba(0,0,0,.34);
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__body {
  min-height: 96px;
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-card__book strong {
    font-size: 23px !important;
    line-height: 1.04 !important;
  }

  body.mingxx-media-library .mingxx-home-card__book span {
    min-height: 22px;
    padding: 0 8px;
    font-size: 9px !important;
    letter-spacing: .12em !important;
  }

  body.mingxx-media-library .mingxx-home-card__book em {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover::before {
    top: 10px;
    left: 10px;
    min-height: 20px;
    padding: 0 8px;
    font-size: 8px;
  }

  body.mingxx-media-library .mingxx-home-card__audio-disc {
    top: 10px;
    right: 10px;
    width: 52px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover strong {
    width: calc(100% - 24px);
    font-size: 22px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-wave {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 44px !important;
  }
}

/* -------------------------------------------------------------------------
   MingXX 2.0: premium vertical cover redesign for novel/audio cards
   - Keep all cards vertical: desktop 4 columns, mobile 2 columns
   - Bigger novel cover title + visible chapter count
   - Audio title centered on cover, no homepage player
   - Visual direction: warm velvet / neon / subtle mature magazine mood
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-card {
  isolation: isolate;
  overflow: hidden !important;
  background: #fff8ef;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

body.mingxx-media-library .mingxx-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(36,24,33,.18) !important;
}

body.mingxx-media-library .mingxx-home-card__book,
body.mingxx-media-library .mingxx-home-card__audio-cover {
  aspect-ratio: 3 / 4 !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* 小说封面：标题更大，整体更像成熟向书封，不再像普通占位图 */
body.mingxx-media-library .mingxx-home-card__book {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 34px 24px 30px 38px !important;
  color: #fff5e6 !important;
  text-align: center;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,205,122,.36), transparent 24%),
    radial-gradient(circle at 18% 88%, rgba(255,96,139,.23), transparent 30%),
    linear-gradient(145deg, #7b2037 0%, #321421 48%, #10070d 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -80px 120px rgba(0,0,0,.16) !important;
}

body.mingxx-media-library .mingxx-home-card__book::before {
  width: 31px !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.34), rgba(255,255,255,.05), transparent),
    repeating-linear-gradient(180deg, rgba(255,246,232,.18) 0 1px, transparent 1px 10px) !important;
  border-right: 1px solid rgba(255,244,226,.22) !important;
}

body.mingxx-media-library .mingxx-home-card__book::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.10) 29%, transparent 43%),
    radial-gradient(ellipse at 50% 105%, rgba(255,218,160,.17), transparent 46%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 12px) !important;
  pointer-events: none;
}

body.mingxx-media-library .mingxx-home-card__book i {
  top: 18px !important;
  right: 18px !important;
  width: 34px !important;
  height: 54px !important;
  border-radius: 0 0 18px 18px !important;
  background: linear-gradient(180deg, #ffd58a, #ff7a93) !important;
  box-shadow: 0 16px 28px rgba(255,100,139,.28) !important;
}

body.mingxx-media-library .mingxx-home-card__book div {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 100% !important;
  gap: 18px !important;
}

body.mingxx-media-library .mingxx-home-card__book span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: rgba(255,247,235,.76) !important;
  background: rgba(255,255,255,.10) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

body.mingxx-media-library .mingxx-home-card__book strong {
  display: block !important;
  max-width: 100% !important;
  color: #fff7eb !important;
  font-size: clamp(31px, 3.2vw, 48px) !important;
  font-weight: 1000 !important;
  line-height: .98 !important;
  letter-spacing: -.075em !important;
  text-shadow: 0 12px 30px rgba(0,0,0,.36), 0 1px 0 rgba(255,255,255,.12) !important;
  word-break: break-word !important;
}

body.mingxx-media-library .mingxx-home-card__book em {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: #321421 !important;
  background: rgba(255,246,232,.90) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.18) !important;
}

body.mingxx-media-library .mingxx-home-card__book--0 {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,213,138,.36), transparent 24%),
    radial-gradient(circle at 17% 88%, rgba(255,112,146,.24), transparent 31%),
    linear-gradient(145deg, #7c203d 0%, #371522 50%, #10070d 100%) !important;
}

body.mingxx-media-library .mingxx-home-card__book--1 {
  background:
    radial-gradient(circle at 24% 15%, rgba(255,213,138,.28), transparent 25%),
    radial-gradient(circle at 85% 82%, rgba(177,89,255,.27), transparent 32%),
    linear-gradient(145deg, #52255f 0%, #21142c 52%, #0b0712 100%) !important;
}

body.mingxx-media-library .mingxx-home-card__book--2 {
  background:
    radial-gradient(circle at 75% 16%, rgba(255,198,120,.32), transparent 25%),
    radial-gradient(circle at 20% 88%, rgba(255,88,103,.22), transparent 32%),
    linear-gradient(145deg, #8a2c28 0%, #381818 52%, #100907 100%) !important;
}

body.mingxx-media-library .mingxx-home-card__book--3 {
  background:
    radial-gradient(circle at 78% 14%, rgba(255,213,138,.30), transparent 25%),
    radial-gradient(circle at 18% 84%, rgba(88,199,255,.20), transparent 34%),
    linear-gradient(145deg, #17495b 0%, #171f34 50%, #080a12 100%) !important;
}

body.mingxx-media-library .mingxx-home-card__book--4 {
  background:
    radial-gradient(circle at 82% 14%, rgba(255,219,152,.35), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(255,92,148,.20), transparent 32%),
    linear-gradient(145deg, #6f3b18 0%, #321d15 52%, #100905 100%) !important;
}

/* 音频封面：标题绝对居中，视觉变成夜色电台/声音专辑风 */
body.mingxx-media-library .mingxx-home-card__audio-cover {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  color: #fff6e8 !important;
  text-align: center !important;
  background:
    radial-gradient(circle at 18% 15%, rgba(255,213,138,.30), transparent 23%),
    radial-gradient(circle at 82% 82%, rgba(255,96,146,.24), transparent 30%),
    linear-gradient(145deg, #11152b 0%, #281127 47%, #09060d 100%) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -90px 130px rgba(0,0,0,.18) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(118deg, transparent 0 29%, rgba(255,255,255,.10) 30%, transparent 45%),
    radial-gradient(ellipse at 50% 48%, rgba(255,255,255,.12), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 12px) !important;
  pointer-events: none;
}

body.mingxx-media-library .mingxx-home-card__audio-cover::after {
  content: "FM" !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  border-radius: 999px !important;
  padding: 5px 8px !important;
  color: rgba(255,246,232,.70) !important;
  background: rgba(255,255,255,.10) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .16em !important;
}

body.mingxx-media-library .mingxx-home-card__audio-disc {
  position: absolute !important;
  left: 18px !important;
  top: 18px !important;
  width: 74px !important;
  height: 74px !important;
  opacity: .92 !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at center, #fff6e8 0 7px, #201020 8px 13px, transparent 14px),
    conic-gradient(from 20deg, #ffd58a, #ff6f91, #7c5cff, #58c7ff, #ffd58a) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-disc i {
  inset: 13px !important;
  border-color: rgba(255,255,255,.25) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-wave {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 1 !important;
  height: 54px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  opacity: .72 !important;
}

body.mingxx-media-library .mingxx-home-card__audio-wave span {
  width: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffd58a, #ff6f91) !important;
  box-shadow: 0 10px 24px rgba(255,111,145,.20) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover strong {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  width: 100% !important;
  max-width: 92% !important;
  margin: auto !important;
  color: #fff7eb !important;
  font-size: clamp(25px, 2.65vw, 38px) !important;
  font-weight: 1000 !important;
  line-height: 1.02 !important;
  letter-spacing: -.07em !important;
  text-align: center !important;
  text-shadow: 0 14px 34px rgba(0,0,0,.50), 0 1px 0 rgba(255,255,255,.10) !important;
  word-break: break-word !important;
}

body.mingxx-media-library .mingxx-home-card--audio .mingxx-home-card__button {
  background: linear-gradient(135deg, #ffd58a, #ff6f91) !important;
  color: #29101f !important;
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-card__book {
    padding: 25px 14px 22px 27px !important;
  }

  body.mingxx-media-library .mingxx-home-card__book strong {
    font-size: clamp(23px, 7vw, 32px) !important;
    line-height: 1.02 !important;
  }

  body.mingxx-media-library .mingxx-home-card__book em {
    min-height: 26px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover {
    padding: 15px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-disc {
    left: 12px !important;
    top: 12px !important;
    width: 52px !important;
    height: 52px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover::after {
    top: 12px !important;
    right: 12px !important;
    font-size: 9px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover strong {
    max-width: 96% !important;
    font-size: clamp(21px, 6.4vw, 28px) !important;
    line-height: 1.04 !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-wave {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    height: 38px !important;
    gap: 5px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-wave span {
    width: 5px !important;
  }
}


/* -------------------------------------------------------------------------
   MingXX 2.1: cleaner premium vertical covers
   - Audio title is truly centered in the cover.
   - Remove noisy waveform/grid lines from audio cover.
   - Refine novel cover hierarchy so the book title is larger and calmer.
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-home-card__audio-cover {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
  text-align: center !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background:
    radial-gradient(circle at 22% 16%, rgba(255,211,146,.24), transparent 30%),
    radial-gradient(circle at 82% 83%, rgba(183,82,255,.20), transparent 34%),
    linear-gradient(150deg, #130b18 0%, #251023 48%, #08060b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -70px 120px rgba(0,0,0,.22),
    0 18px 42px rgba(30,12,24,.18) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover::before {
  content: "" !important;
  position: absolute !important;
  inset: 18px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,246,232,.12), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)) !important;
  border: 1px solid rgba(255,246,232,.10) !important;
  pointer-events: none !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover::after {
  content: "AUDIO" !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  color: rgba(255,246,232,.72) !important;
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .14em !important;
}

body.mingxx-media-library .mingxx-home-card__audio-disc {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 78% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  opacity: .18 !important;
  z-index: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at center, rgba(255,246,232,.86) 0 7px, rgba(19,11,24,.78) 8px 17px, transparent 18px),
    conic-gradient(from 35deg, rgba(255,213,138,.75), rgba(255,111,145,.52), rgba(124,92,255,.54), rgba(88,199,255,.38), rgba(255,213,138,.75)) !important;
  filter: blur(.2px) saturate(1.08) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-disc i {
  inset: 17% !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: inset 0 0 0 18px rgba(0,0,0,.10) !important;
}

body.mingxx-media-library .mingxx-home-card__audio-wave {
  display: none !important;
}

body.mingxx-media-library .mingxx-home-card__audio-cover strong {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 4 !important;
  display: block !important;
  width: 82% !important;
  max-width: 82% !important;
  margin: 0 !important;
  color: #fff7eb !important;
  font-size: clamp(27px, 2.8vw, 41px) !important;
  font-weight: 1000 !important;
  line-height: 1.04 !important;
  letter-spacing: -.055em !important;
  text-align: center !important;
  text-wrap: balance;
  text-shadow: 0 14px 34px rgba(0,0,0,.54), 0 1px 0 rgba(255,255,255,.12) !important;
}

body.mingxx-media-library .mingxx-home-card__book {
  background:
    radial-gradient(circle at 78% 14%, rgba(255,219,152,.26), transparent 27%),
    radial-gradient(circle at 22% 88%, rgba(255,96,146,.16), transparent 34%),
    linear-gradient(150deg, #642033 0%, #2a111d 52%, #0c060a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -80px 120px rgba(0,0,0,.16),
    0 18px 42px rgba(36,24,33,.22) !important;
}

body.mingxx-media-library .mingxx-home-card__book::after {
  right: -44px !important;
  bottom: -52px !important;
  width: 150px !important;
  height: 150px !important;
  background: rgba(255,247,235,.075) !important;
}

body.mingxx-media-library .mingxx-home-card__book strong {
  max-width: 94% !important;
  font-size: clamp(34px, 3.5vw, 54px) !important;
  line-height: .98 !important;
  letter-spacing: -.07em !important;
}

body.mingxx-media-library .mingxx-home-card__book em {
  min-height: 32px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  background: rgba(255,247,235,.88) !important;
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-home-card__audio-cover::before {
    inset: 12px !important;
    border-radius: 18px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover::after {
    top: 10px !important;
    right: 10px !important;
    padding: 4px 7px !important;
    font-size: 8px !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-disc {
    width: 88% !important;
  }

  body.mingxx-media-library .mingxx-home-card__audio-cover strong {
    width: 86% !important;
    max-width: 86% !important;
    font-size: clamp(22px, 7vw, 32px) !important;
    line-height: 1.04 !important;
  }

  body.mingxx-media-library .mingxx-home-card__book strong {
    font-size: clamp(27px, 8vw, 38px) !important;
    line-height: 1.0 !important;
  }
}


/* -------------------------------------------------------------------------
   MingXX 2.3: VIP, chapter range navigation, cleaner chapter titles
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-chapter-range-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,248,239,.72);
  border: 1px solid rgba(36,24,33,.10);
  box-shadow: 0 14px 40px rgba(36,24,33,.08);
}

body.mingxx-media-library .mingxx-chapter-range-nav__btn,
body.mingxx-media-library .mingxx-chapter-range-nav__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
}

body.mingxx-media-library .mingxx-chapter-range-nav__btn {
  color: #3a2430 !important;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(36,24,33,.10);
}

body.mingxx-media-library .mingxx-chapter-range-nav__btn:hover,
body.mingxx-media-library .mingxx-chapter-range-nav__btn.is-current {
  color: #fff !important;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(179,40,61,.18);
}

body.mingxx-media-library .mingxx-chapter-range-nav__ellipsis {
  color: rgba(36,24,33,.48);
  padding-inline: 4px;
}

body.mingxx-media-library .mingxx-chapter-item.is-vip {
  border-color: rgba(244,197,110,.5);
  background:
    radial-gradient(circle at 92% 12%, rgba(244,197,110,.18), transparent 26%),
    rgba(255,248,239,.86);
}

body.mingxx-media-library .mingxx-chapter-item.is-vip em {
  color: #2a1420;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
}

body.mingxx-media-library .mingxx-vip-lock {
  max-width: 680px;
  margin: 28px auto;
  padding: 34px 24px;
  border-radius: 28px;
  text-align: center;
  color: #fff7eb;
  background:
    radial-gradient(circle at 18% 0%, rgba(244,197,110,.20), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(124,92,255,.18), transparent 30%),
    linear-gradient(135deg, #26111e, #120b11 72%);
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.12);
}

body.mingxx-media-library .mingxx-vip-lock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #2a1420;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
  font-weight: 950;
  letter-spacing: .12em;
}

body.mingxx-media-library .mingxx-vip-lock h2 {
  margin: 0 0 10px;
  color: #fff7eb;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

body.mingxx-media-library .mingxx-vip-lock p {
  margin: 0 auto 20px;
  max-width: 480px;
  color: rgba(255,247,235,.76);
  font-size: 15px;
  line-height: 1.8;
}

body.mingxx-media-library .mingxx-vip-lock small {
  display: block;
  margin-top: 12px;
  color: rgba(255,247,235,.58);
}

body.mingxx-media-library .mingxx-vip-lock__button,
body.mingxx-media-library .mingxx-vip-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #2a1420 !important;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(239,122,91,.22);
}

body.mingxx-media-library .mingxx-vip-page {
  width: min(100% - 32px, 880px);
  margin: 40px auto;
}

body.mingxx-media-library .mingxx-vip-card {
  padding: clamp(30px, 6vw, 58px);
  border-radius: 34px;
  color: #fff7eb;
  text-align: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(244,197,110,.18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(255,111,145,.20), transparent 30%),
    linear-gradient(135deg, #2a1420, #110b10 70%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 90px rgba(0,0,0,.24);
}

body.mingxx-media-library .mingxx-vip-card > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #2a1420;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
  font-weight: 950;
  letter-spacing: .16em;
}

body.mingxx-media-library .mingxx-vip-card h1 {
  margin: 16px 0 12px;
  color: #fff7eb;
  font-size: clamp(34px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -.07em;
}

body.mingxx-media-library .mingxx-vip-card p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: rgba(255,247,235,.74);
  line-height: 1.8;
}

body.mingxx-media-library .mingxx-vip-price {
  margin: 18px auto 24px;
}

body.mingxx-media-library .mingxx-vip-price strong {
  color: #f4c56e;
  font-size: clamp(38px, 8vw, 72px);
  letter-spacing: -.08em;
}

body.mingxx-media-library .mingxx-vip-price em {
  color: rgba(255,247,235,.62);
  font-style: normal;
  font-weight: 800;
}

body.mingxx-media-library .mingxx-vip-card form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

body.mingxx-media-library .mingxx-vip-pay--wechat {
  color: #fff !important;
  background: linear-gradient(135deg, #17b45d, #0b8f49);
}

body.mingxx-media-library .mingxx-vip-pay--ghost {
  color: #fff7eb !important;
  background: rgba(255,255,255,.12);
  box-shadow: none;
}

body.mingxx-media-library .mingxx-vip-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 10px 0 18px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255,247,235,.82);
  background: rgba(255,255,255,.10);
  font-weight: 800;
}

body.mingxx-media-library.dark .mingxx-chapter-range-nav,
body.mingxx-media-library.dark-mode .mingxx-chapter-range-nav,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-range-nav {
  background: rgba(24,15,22,.76);
  border-color: rgba(255,243,230,.12);
}

body.mingxx-media-library.dark .mingxx-chapter-range-nav__btn,
body.mingxx-media-library.dark-mode .mingxx-chapter-range-nav__btn,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-range-nav__btn {
  color: #fff3e6 !important;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-chapter-range-nav {
    gap: 8px;
    padding: 10px;
    margin: 12px 0 16px;
  }

  body.mingxx-media-library .mingxx-chapter-range-nav__btn,
  body.mingxx-media-library .mingxx-chapter-range-nav__ellipsis {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  body.mingxx-media-library .mingxx-vip-page {
    width: min(100% - 22px, 880px);
    margin: 22px auto;
  }

  body.mingxx-media-library .mingxx-vip-card,
  body.mingxx-media-library .mingxx-vip-lock {
    border-radius: 22px;
    padding: 26px 16px;
  }

  body.mingxx-media-library .mingxx-vip-card form {
    flex-direction: column;
  }

  body.mingxx-media-library .mingxx-vip-pay,
  body.mingxx-media-library .mingxx-vip-lock__button {
    width: 100%;
  }
}


/* -------------------------------------------------------------------------
   MingXX 2.4: smarter chapter ranges + mixed free/login/VIP access labels
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-chapter-range-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,248,239,.72);
  border: 1px solid rgba(36,24,33,.10);
  box-shadow: 0 14px 40px rgba(36,24,33,.08);
}

body.mingxx-media-library .mingxx-chapter-range-nav__btn,
body.mingxx-media-library .mingxx-chapter-range-nav__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
}

body.mingxx-media-library .mingxx-chapter-range-nav__btn {
  color: #3a2430 !important;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(36,24,33,.10);
}

body.mingxx-media-library .mingxx-chapter-range-nav__btn:hover,
body.mingxx-media-library .mingxx-chapter-range-nav__btn.is-current {
  color: #fff !important;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(179,40,61,.18);
}

body.mingxx-media-library .mingxx-chapter-range-nav__ellipsis {
  color: rgba(36,24,33,.48);
  padding-inline: 4px;
}

body.mingxx-media-library .mingxx-chapter-item.is-login {
  border-color: rgba(124,92,255,.36);
  background:
    radial-gradient(circle at 92% 12%, rgba(124,92,255,.13), transparent 26%),
    rgba(255,248,239,.86);
}

body.mingxx-media-library .mingxx-chapter-item.is-login em {
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #b3283d);
}

body.mingxx-media-library .mingxx-chapter-item.is-vip {
  border-color: rgba(244,197,110,.5);
  background:
    radial-gradient(circle at 92% 12%, rgba(244,197,110,.18), transparent 26%),
    rgba(255,248,239,.86);
}

body.mingxx-media-library .mingxx-chapter-item.is-vip em {
  color: #2a1420;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
}

body.mingxx-media-library.dark .mingxx-chapter-range-nav,
body.mingxx-media-library.dark-mode .mingxx-chapter-range-nav,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-range-nav {
  background: rgba(24,15,22,.76);
  border-color: rgba(255,243,230,.12);
}

body.mingxx-media-library.dark .mingxx-chapter-range-nav__btn,
body.mingxx-media-library.dark-mode .mingxx-chapter-range-nav__btn,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-range-nav__btn {
  color: #fff3e6 !important;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-chapter-range-nav {
    gap: 8px;
    padding: 10px;
    margin: 12px 0 16px;
  }

  body.mingxx-media-library .mingxx-chapter-range-nav__btn,
  body.mingxx-media-library .mingxx-chapter-range-nav__ellipsis {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }
}


/* -------------------------------------------------------------------------
   MingXX 2.5: front-end auth page + better chapter selector tools
   ------------------------------------------------------------------------- */
body.mingxx-media-library .mingxx-auth-page {
  width: min(100% - 32px, 760px);
  margin: 42px auto;
}

body.mingxx-media-library .mingxx-auth-card {
  padding: clamp(26px, 6vw, 52px);
  border-radius: 32px;
  color: #fff7eb;
  background:
    radial-gradient(circle at 12% 0%, rgba(244,197,110,.16), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(255,111,145,.18), transparent 30%),
    linear-gradient(135deg, #2a1420, #110b10 70%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 90px rgba(0,0,0,.24);
}

body.mingxx-media-library .mingxx-auth-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

body.mingxx-media-library .mingxx-auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 76px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255,247,235,.72) !important;
  text-decoration: none !important;
  font-weight: 900;
}

body.mingxx-media-library .mingxx-auth-tabs a.is-current {
  color: #2a1420 !important;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
}

body.mingxx-media-library .mingxx-auth-card > span {
  color: rgba(244,197,110,.92);
  font-weight: 950;
  letter-spacing: .18em;
  font-size: 12px;
}

body.mingxx-media-library .mingxx-auth-card h1 {
  margin: 10px 0 22px;
  color: #fff7eb;
  font-size: clamp(34px, 7vw, 62px);
  line-height: .98;
  letter-spacing: -.07em;
}

body.mingxx-media-library .mingxx-auth-card p {
  color: rgba(255,247,235,.72);
}

body.mingxx-media-library .mingxx-auth-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff7eb;
  background: rgba(179,40,61,.35);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
}

body.mingxx-media-library .mingxx-auth-form {
  display: grid;
  gap: 14px;
}

body.mingxx-media-library .mingxx-auth-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,247,235,.78);
  font-weight: 900;
}

body.mingxx-media-library .mingxx-auth-form input[type="text"],
body.mingxx-media-library .mingxx-auth-form input[type="email"],
body.mingxx-media-library .mingxx-auth-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff7eb;
  background: rgba(255,255,255,.08);
  outline: none;
}

body.mingxx-media-library .mingxx-auth-form input:focus {
  border-color: rgba(244,197,110,.72);
  box-shadow: 0 0 0 4px rgba(244,197,110,.10);
}

body.mingxx-media-library .mingxx-auth-remember {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

body.mingxx-media-library .mingxx-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #2a1420 !important;
  background: linear-gradient(135deg, #f4c56e, #ef7a5b);
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(239,122,91,.22);
}

body.mingxx-media-library .mingxx-auth-switch {
  margin: 4px 0 0;
  text-align: center;
}

body.mingxx-media-library .mingxx-auth-switch a {
  color: #f4c56e !important;
  font-weight: 950;
  text-decoration: none !important;
}

body.mingxx-media-library .mingxx-chapter-range-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}

body.mingxx-media-library .mingxx-chapter-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.mingxx-media-library .mingxx-chapter-jump label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(36,24,33,.72);
  background: rgba(255,248,239,.72);
  border: 1px solid rgba(36,24,33,.10);
  font-size: 13px;
  font-weight: 900;
}

body.mingxx-media-library .mingxx-chapter-jump input {
  width: 88px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255,255,255,.88);
}

body.mingxx-media-library .mingxx-chapter-jump button,
body.mingxx-media-library .mingxx-chapter-show-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--mx-wine), var(--mx-coral));
  font-size: 13px;
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
}

body.mingxx-media-library .mingxx-chapter-show-all {
  background: linear-gradient(135deg, #7c5cff, #b3283d);
}

body.mingxx-media-library .mingxx-chapter-range-nav.is-show-all {
  max-height: 260px;
  overflow: auto;
  align-content: flex-start;
}

body.mingxx-media-library.dark .mingxx-chapter-jump label,
body.mingxx-media-library.dark-mode .mingxx-chapter-jump label,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-jump label {
  color: rgba(255,243,230,.76);
  background: rgba(24,15,22,.76);
  border-color: rgba(255,243,230,.12);
}

body.mingxx-media-library.dark .mingxx-chapter-jump input,
body.mingxx-media-library.dark-mode .mingxx-chapter-jump input,
body.mingxx-media-library[data-theme="dark"] .mingxx-chapter-jump input {
  color: #fff3e6;
  background: rgba(255,255,255,.10);
}

@media (max-width: 760px) {
  body.mingxx-media-library .mingxx-auth-page {
    width: min(100% - 22px, 760px);
    margin: 22px auto;
  }

  body.mingxx-media-library .mingxx-auth-card {
    border-radius: 22px;
    padding: 24px 16px;
  }

  body.mingxx-media-library .mingxx-auth-submit {
    width: 100%;
  }

  body.mingxx-media-library .mingxx-chapter-range-tools {
    align-items: stretch;
    flex-direction: column;
  }

  body.mingxx-media-library .mingxx-chapter-jump,
  body.mingxx-media-library .mingxx-chapter-jump label,
  body.mingxx-media-library .mingxx-chapter-jump button,
  body.mingxx-media-library .mingxx-chapter-show-all {
    width: 100%;
  }

  body.mingxx-media-library .mingxx-chapter-jump label {
    justify-content: center;
  }

  body.mingxx-media-library .mingxx-chapter-range-nav.is-show-all {
    max-height: 220px;
  }
}
