/* ==========================================================================
       MODO OSCURO HMCDRS — Medianoche #101726 + Acentos Ameiro limpios
       ========================================================================== */
    html.site-dark {
      color-scheme: dark;

      /* Acentos vivos y bien diferenciados */
      --brand-primary: #8b74f6;
      --brand-primary-hover: #a08cff;
      --brand-primary-soft: rgba(139, 116, 246, 0.16);
      --brand-pink-new: #fb7195;
      --brand-pink-soft: rgba(251, 113, 149, 0.16);
      --brand-sky-accent: #38bdf8;
      --brand-green-live: #34d399;
      --brand-gold: #fbbf24;

      /* Escala de superficies coherente con #101726 */
      --dark-recessed: #0b111e;       /* Hundido: inputs, pestañas, caps leídos */
      --dark-bg: #101726;             /* Base del body */
      --surface-white: #162033;       /* Tarjetas principales */
      --dark-surface-2: #1c2840;      /* Tarjetas internas y filas */
      --dark-surface-3: #243352;      /* Hover y elementos elevados */
      --surface-glass: rgba(22, 32, 51, 0.88);

      /* Tipografía */
      --text-main: #f1f5ff;
      --text-muted: #94a3c2;
      --text-light: #6e7f9f;

      /* Bordes y sombras */
      --border-soft: rgba(148, 175, 224, 0.13);
      --divider-dashed: rgba(148, 175, 224, 0.18);
      --shadow-card: 0 12px 30px rgba(4, 9, 22, 0.42);
      --shadow-card-hover: 0 18px 38px rgba(4, 9, 22, 0.56);
    }

    html.site-dark body {
      background: #101726;
      color: var(--text-main);
    }

    html.site-dark ::-webkit-scrollbar-track { background: #0c121f; }
    html.site-dark ::-webkit-scrollbar-thumb { background: #2b3b5c; }
    html.site-dark ::-webkit-scrollbar-thumb:hover { background: #8b74f6; }

    /* ==========================================================================
       HEADER OSCURO — tintes lavanda/azul humo, discretos y en armonía con #101726.
       El glass sigue activándose SOLO al hacer scroll (comportamiento original).
       ========================================================================== */
    html.site-dark .ameiro-navbar {
      background: linear-gradient(95deg, #202b3c 0%, #2a293e 50%, #203346 100%);
      border-bottom-color: rgba(165, 179, 216, 0.11);
      box-shadow: 0 3px 18px rgba(4, 9, 22, 0.20);
    }
    html.site-dark .ameiro-navbar.is-scrolled {
      background: linear-gradient(95deg, rgba(25, 35, 51, 0.78) 0%, rgba(38, 35, 55, 0.79) 50%, rgba(24, 43, 59, 0.78) 100%);
      border-bottom-color: rgba(166, 181, 223, 0.16);
      box-shadow: 0 7px 26px rgba(3, 8, 22, 0.31);
      /* El blur lo aplica la regla .ameiro-navbar.is-scrolled del modo claro. */
    }
    html.site-dark #globalHeader .font-rounded {
      color: #f3f4ff;
      text-shadow: 0 2px 8px rgba(4, 9, 22, 0.15);
    }
    html.site-dark #globalHeader nav button { color: rgba(239, 241, 255, 0.91); }
    html.site-dark #globalHeader nav button:hover {
      background: rgba(214, 198, 246, 0.10);
      color: #f7efff;
    }
    html.site-dark #globalHeader #openFavoritesBtn,
    html.site-dark #globalHeader #mobileMenuBtn,
    html.site-dark #globalHeader #mobileSearchToggle {
      background: rgba(230, 234, 255, 0.075);
      color: #e9edfb;
    }
    html.site-dark #globalHeader #openFavoritesBtn:hover,
    html.site-dark #globalHeader #mobileMenuBtn:hover,
    html.site-dark #globalHeader #mobileSearchToggle:hover {
      background: rgba(214, 198, 246, 0.16);
      color: #f9edff;
    }
    html.site-dark #searchContainer > div {
      background: rgba(9, 17, 31, 0.27) !important;
      border: 1px solid rgba(165, 179, 216, 0.12);
      color: #eef1fc !important;
    }
    html.site-dark #searchContainer > div:hover {
      background: rgba(13, 23, 39, 0.38) !important;
    }
    html.site-dark #searchContainer > div:focus-within {
      background: #1b2638 !important;
      border-color: rgba(188, 176, 235, 0.48);
      color: #eef1fc !important;
    }
    html.site-dark #desktopSearchInput::placeholder {
      color: rgba(207, 215, 236, 0.73);
    }
    html.site-dark .site-theme-toggle {
      background: rgba(230, 234, 255, 0.075);
      border-color: rgba(165, 179, 216, 0.15);
      color: #d6c8f5;
    }
    html.site-dark .site-theme-toggle:hover {
      background: rgba(214, 198, 246, 0.16);
    }

    /* ==========================================================================
       TARJETAS PRINCIPALES, BOTONES Y ESTANTERÍAS
       ========================================================================== */
    html.site-dark .ameiro-card {
      background: #162033;
      border-color: rgba(148, 175, 224, 0.13);
      box-shadow: var(--shadow-card);
    }
    html.site-dark .ameiro-card-hover:hover {
      border-color: rgba(139, 116, 246, 0.42);
      box-shadow: var(--shadow-card-hover);
    }
    html.site-dark .ameiro-section-title {
      color: #e8eeff;
      text-shadow: none;
    }
    html.site-dark .ameiro-divider { border-top-color: rgba(148, 175, 224, 0.18); }

    /* Botones: filtro activo en blanco hielo y CTA en lavanda vibrante */
    html.site-dark .btn-pill-soft {
      background: #1d2942;
      color: #cbd5ee;
      border-color: rgba(148, 175, 224, 0.18);
    }
    html.site-dark .btn-pill-soft:hover {
      background: #273757;
      color: #ffffff;
      border-color: rgba(148, 175, 224, 0.34);
    }
    html.site-dark .btn-pill-soft.active {
      background: #f1f5ff;
      color: #101726;
      border-color: #f1f5ff;
      box-shadow: 0 4px 14px rgba(241, 245, 255, 0.16);
    }
    html.site-dark .btn-pill-lilac {
      background: #8b74f6;
      color: #ffffff;
      box-shadow: 0 5px 16px rgba(139, 116, 246, 0.34);
    }
    html.site-dark .btn-pill-lilac:hover {
      background: #9f8bff;
      box-shadow: 0 7px 20px rgba(139, 116, 246, 0.46);
    }

    /* Estanterías de Mangas y Novelas */
    html.site-dark .sidebar-shelf { border-color: rgba(148, 175, 224, 0.14); }
    html.site-dark .sidebar-shelf-heading {
      background: linear-gradient(108deg, rgba(139, 116, 246, 0.14) 0%, #1a263d 55%, rgba(56, 189, 248, 0.12) 100%);
      border-bottom-color: rgba(148, 175, 224, 0.15);
    }
    html.site-dark .sidebar-shelf-icon {
      background: #121a2c;
      border: 1px solid rgba(148, 175, 224, 0.18);
    }
    html.site-dark .sidebar-shelf-more {
      background: #1e2c47;
      border-color: rgba(148, 175, 224, 0.22);
      color: #dbe4ff;
    }
    html.site-dark .sidebar-shelf-more:hover {
      background: #f1f5ff;
      border-color: #f1f5ff;
      color: #101726;
    }

    /* Portadas, badges flotantes y títulos */
    html.site-dark .poster-cover-main {
      background: #1c2840;
      border-color: rgba(148, 175, 224, 0.18);
      box-shadow: 0 10px 24px rgba(4, 9, 22, 0.44);
    }
    html.site-dark .poster-work-title { color: #f1f5ff; }
    html.site-dark .poster-work-title:hover { color: #b7a6ff; }
    html.site-dark .poster-work-author { color: #8c9dbe; }
    html.site-dark .poster-cover-type {
      background: rgba(16, 23, 38, 0.86);
      backdrop-filter: blur(6px);
      color: #f1f5ff;
      border: 1px solid rgba(148, 175, 224, 0.2);
    }
    html.site-dark .poster-cover-rating {
      background: rgba(16, 23, 38, 0.86);
      backdrop-filter: blur(6px);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.25);
    }
    html.site-dark .new-work-cover {
      background: #1c2840;
      border-color: rgba(148, 175, 224, 0.18);
    }

    /* Popups flotantes en hover */
    html.site-dark .poster-hover-panel,
    html.site-dark .new-work-popup {
      background: #1a263d;
      border-color: rgba(148, 175, 224, 0.24);
      box-shadow: 0 20px 48px rgba(3, 8, 20, 0.68);
    }
    html.site-dark .poster-hover-panel::before,
    html.site-dark .new-work-popup::before {
      background: linear-gradient(90deg, #fb7195, #8b74f6, #38bdf8);
    }
    html.site-dark .poster-hover-panel h3,
    html.site-dark .new-work-popup h3,
    html.site-dark .poster-hover-panel [class~="text-[#52436f]"],
    html.site-dark .new-work-popup [class~="text-[#52436f]"] { color: #ffffff !important; }
    html.site-dark .poster-hover-panel [class~="text-[#968aad]"],
    html.site-dark .poster-hover-panel [class~="text-[#645979]"],
    html.site-dark .new-work-popup [class~="text-[#968aad]"],
    html.site-dark .new-work-popup [class~="text-[#645979]"] { color: #a7b5d1 !important; }
    html.site-dark .poster-hover-panel [class~="bg-[#f3edff]"],
    html.site-dark .new-work-popup [class~="bg-[#f3edff]"] {
      background: rgba(139, 116, 246, 0.18) !important;
      border: 1px solid rgba(139, 116, 246, 0.3);
    }
    html.site-dark .poster-hover-panel [class~="text-[#836ec2]"],
    html.site-dark .new-work-popup [class~="text-[#836ec2]"] { color: #c4b5fd !important; }

    /* Hero, gotas decorativas y bordes blancos suavizados */
    html.site-dark #appRoot.public-screen [class~="border-white/90"],
    html.site-dark #appRoot.public-screen [class~="border-white"] {
      border-color: rgba(148, 175, 224, 0.2) !important;
    }
    html.site-dark #appRoot.public-screen svg path[fill="white"][fill-opacity="0.7"] {
      fill-opacity: 0.14;
    }

    /* Ficha de obra y recomendaciones */
    html.site-dark .detail-surface,
    html.site-dark .detail-recommendation { box-shadow: none !important; }
    html.site-dark .detail-recommendation {
      background: #162033;
      border-color: rgba(148, 175, 224, 0.15);
    }
    html.site-dark .detail-recommendation:hover {
      background: #1f2d47;
      border-color: rgba(139, 116, 246, 0.48);
    }

    /* Dock móvil inferior y menú */
    html.site-dark .mobile-site-dock:not(.hidden) {
      background: rgba(16, 23, 38, 0.94);
      border-top-color: rgba(148, 175, 224, 0.18);
      box-shadow: 0 -6px 24px rgba(4, 9, 22, 0.5);
    }
    html.site-dark .mobile-dock-link { color: #94a3c2; }
    html.site-dark .mobile-dock-link.active {
      background: rgba(139, 116, 246, 0.18);
      color: #c4b5fd;
    }
    html.site-dark #mobileNavDrawer {
      background: rgba(20, 30, 48, 0.98);
      border-top-color: rgba(148, 175, 224, 0.18);
    }
    html.site-dark #mobileNavDrawer [class~="text-[#6a58a8]"] { color: #e8eeff !important; }
    html.site-dark #mobileNavDrawer button:hover { background: #243352 !important; color: #ffffff !important; }

    /* Buscador desplegable, modales y toasts */
    html.site-dark #searchResultsDropdown,
    html.site-dark #modalDialog {
      background: #162033;
      border-color: rgba(148, 175, 224, 0.22);
      color: #f1f5ff;
    }
    html.site-dark #searchResultsList > * {
      border-color: rgba(148, 175, 224, 0.1) !important;
    }
    html.site-dark #searchResultsDropdown [class~="bg-[#faf8ff]"],
    html.site-dark #searchResultsDropdown [class~="bg-white"],
    html.site-dark #modalDialog [class~="bg-white"],
    html.site-dark #modalDialog [class~="bg-[#faf8ff]"] { background: #1d2a42 !important; }
    html.site-dark #searchResultsDropdown button:hover { background: #243452 !important; }
    html.site-dark #searchResultsDropdown [class~="bg-[#f1ebff]"] { background: rgba(139, 116, 246, 0.18) !important; }
    html.site-dark #searchResultsDropdown [class~="text-[#846bd4]"] { color: #c4b5fd !important; }
    html.site-dark #searchResultsDropdown [class~="text-[#4a4458]"],
    html.site-dark #modalDialog [class~="text-[#4a4458]"],
    html.site-dark #modalDialog [class~="text-[#534870]"] { color: #f1f5ff !important; }
    html.site-dark #modalDialog [class~="text-[#6e59b3]"] { color: #ffffff !important; }
    html.site-dark #modalDialog [class~="border-[#eee8ff]"],
    html.site-dark #modalDialog [class~="border-[#e6dffc]"] { border-color: rgba(148, 175, 224, 0.14) !important; }
    html.site-dark #modalDialog [class~="border-[#f8d7e7]"] { border-color: rgba(251, 113, 149, 0.36) !important; }
    html.site-dark #modalDialog [class~="hover:bg-[#ffe8f3]"]:hover { background: rgba(251, 113, 149, 0.22) !important; }
    html.site-dark #modalDialog > div:first-child {
      background: linear-gradient(90deg, #4b42a6 0%, #5c50bf 52%, #3a60ab 100%);
      border-color: rgba(255, 255, 255, 0.14);
    }
    html.site-dark #modalBackdrop { background: rgba(6, 10, 22, 0.78); }
    html.site-dark #toastContainer > div {
      background: #1c2840;
      color: #f1f5ff;
      border-color: rgba(139, 116, 246, 0.34);
    }

    /* ==========================================================================
       FOOTER OSCURO — onda mate y vidrio tintado sutil (lavanda, azul pizarra).
       ========================================================================== */
    html.site-dark #globalFooter { color: #e9edfb; }
    html.site-dark #globalFooter svg path { fill-opacity: 0.93; }
    html.site-dark #footerWaveGrad stop:nth-child(1) { stop-color: #202c3e; }
    html.site-dark #footerWaveGrad stop:nth-child(2) { stop-color: #2c293f; }
    html.site-dark #footerWaveGrad stop:nth-child(3) { stop-color: #203548; }
    html.site-dark #globalFooter > div:nth-child(2) {
      background: linear-gradient(95deg, rgba(32, 44, 62, 0.94) 0%, rgba(44, 41, 63, 0.94) 48%, rgba(32, 53, 72, 0.94) 100%);
      border-top: 1px solid rgba(188, 198, 231, 0.08);
      backdrop-filter: blur(14px) saturate(1.08);
      -webkit-backdrop-filter: blur(14px) saturate(1.08);
    }
    html.site-dark #globalFooter > div:nth-child(2) .font-rounded { color: #f3f4ff; }
    html.site-dark #globalFooter > div:nth-child(2) p { color: #cbd4e6; }
    html.site-dark #globalFooter > div:last-child {
      background: #0e1725;
      color: #96a7c2;
      border-top: 1px solid rgba(148, 175, 224, 0.12);
    }

    /* ==========================================================================
       SUPERFICIES Y ACENTOS SEMÁNTICOS EN VISTAS PÚBLICAS (Lectores intactos)
       ========================================================================== */

    /* Botones de capítulo sin leer y bloques elevados */
    html.site-dark #appRoot.public-screen [class~="bg-white"],
    html.site-dark #appRoot.public-screen [class~="bg-white/90"],
    html.site-dark #appRoot.public-screen [class~="bg-white/95"],
    html.site-dark #appRoot.public-screen [class~="bg-white/88"],
    html.site-dark #appRoot.public-screen [class~="bg-white/92"] {
      background-color: #212f4a !important;
    }

    /* Tarjetas internas (Actualizaciones, Novedades, Créditos) */
    html.site-dark #appRoot.public-screen [class~="bg-[#fcfbff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#faf8ff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f7f3ff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f7f4ff]"] {
      background-color: #1b273e !important;
    }
    html.site-dark #appRoot.public-screen article[class~="bg-[#fcfbff]"]:hover,
    html.site-dark #appRoot.public-screen article[class~="bg-[#faf8ff]"]:hover,
    html.site-dark #appRoot.public-screen div[class~="hover:bg-[#f7f3ff]"]:hover,
    html.site-dark #appRoot.public-screen div[class~="hover:bg-[#f7f4ff]"]:hover,
    html.site-dark #appRoot.public-screen button[class~="hover:bg-[#f5f1ff]"]:hover {
      background-color: #233250 !important;
    }

    /* Capítulos ya leídos (hundidos respecto a #101726) */
    html.site-dark #appRoot.public-screen [class~="bg-[#f4f2fa]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#e9e4f8]"] {
      background-color: #11192a !important;
    }

    /* Píldoras de formato / género (lavanda translúcido) */
    html.site-dark #appRoot.public-screen [class~="bg-[#f1ebff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f2edff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f2ecff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f3edff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f3efff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f4efff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f4f0ff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#f6f2ff]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#e5dcff]"] {
      background-color: rgba(139, 116, 246, 0.17) !important;
    }

    /* Contenedores de pestañas (oscuro hundido) vs chips de género en tarjetas */
    html.site-dark #appRoot.public-screen div[class~="bg-[#f5f1ff]"] {
      background-color: #0e1524 !important;
    }
    html.site-dark #appRoot.public-screen button[class~="bg-[#f5f1ff]"] {
      background-color: #202e4a !important;
    }
    html.site-dark #appRoot.public-screen [class~="bg-[#a992ee]"] {
      background-color: #8b74f6 !important;
      color: #ffffff !important;
    }

    /* Badges coral sakura (Finalizado, Favoritos) */
    html.site-dark #appRoot.public-screen [class~="bg-[#ffe8f3]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#fff0f7]"],
    html.site-dark #appRoot.public-screen [class~="bg-[#fff0f6]"] {
      background-color: rgba(251, 113, 149, 0.17) !important;
    }

    /* Badges esmeralda ("En emisión") y celeste ("✓ Leído") */
    html.site-dark #appRoot.public-screen [class~="bg-[#e6f5ff]"] {
      background-color: rgba(52, 211, 153, 0.15) !important;
    }
    html.site-dark #appRoot.public-screen [class~="bg-[#eef7ff]"] {
      background-color: rgba(56, 189, 248, 0.15) !important;
    }

    /* Gradientes suaves de iconos y píldoras */
    html.site-dark #appRoot.public-screen [class~="from-[#f3edff]"],
    html.site-dark #appRoot.public-screen [class~="from-[#f6f2ff]"] {
      --tw-gradient-from: rgba(139, 116, 246, 0.2) !important;
      --tw-gradient-to: rgba(139, 116, 246, 0) !important;
    }
    html.site-dark #appRoot.public-screen [class~="from-[#ffe7f1]"] {
      --tw-gradient-from: rgba(251, 113, 149, 0.24) !important;
      --tw-gradient-to: rgba(251, 113, 149, 0) !important;
    }
    html.site-dark #appRoot.public-screen [class~="to-[#ebf7ff]"],
    html.site-dark #appRoot.public-screen [class~="to-[#eef8ff]"],
    html.site-dark #appRoot.public-screen [class~="to-[#e8e0ff]"] {
      --tw-gradient-to: rgba(56, 189, 248, 0.18) !important;
    }

    /* Tipografía base */
    html.site-dark #appRoot.public-screen [class*="text-[#3"],
    html.site-dark #appRoot.public-screen [class*="text-[#4"],
    html.site-dark #appRoot.public-screen [class*="text-[#5"],
    html.site-dark #appRoot.public-screen [class*="text-[#6"] { color: #f1f5ff !important; }

    html.site-dark #appRoot.public-screen [class*="text-[#8"],
    html.site-dark #appRoot.public-screen [class*="text-[#9"],
    html.site-dark #appRoot.public-screen [class*="text-[#a"] { color: #94a3c2 !important; }

    /* Acentos de texto (siempre después de la base) */
    /* Lavanda luminoso: formatos, enlaces, géneros, badge del hero */
    html.site-dark #appRoot.public-screen [class~="text-[#6d5ea3]"],
    html.site-dark #appRoot.public-screen [class~="text-[#6e59b3]"],
    html.site-dark #appRoot.public-screen [class~="text-[#765ac7]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7664b5]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7766b0]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7865b8]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7c61cf]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7c66c4]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7c6cb0]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7f65d4]"],
    html.site-dark #appRoot.public-screen [class~="text-[#8067d4]"],
    html.site-dark #appRoot.public-screen [class~="text-[#836ec2]"],
    html.site-dark #appRoot.public-screen [class~="text-[#846bd4]"],
    html.site-dark #appRoot.public-screen [class~="text-[#8e74e5]"],
    html.site-dark #appRoot.public-screen [class~="text-[#8e78d4]"],
    html.site-dark #appRoot.public-screen [class~="text-[#8f74e5]"],
    html.site-dark #appRoot.public-screen [class~="text-[#907ec9]"],
    html.site-dark #appRoot.public-screen [class~="text-[#9483c9]"] {
      color: #c0b0ff !important;
    }

    /* Verde esmeralda: "En emisión" */
    html.site-dark #appRoot.public-screen [class~="text-[#4b8fd4]"],
    html.site-dark #appRoot.public-screen [class~="text-[#5b9de0]"] {
      color: #34d399 !important;
    }

    /* Celeste: "✓ Leído" e icono de Novedades */
    html.site-dark #appRoot.public-screen [class~="text-[#5e96cf]"],
    html.site-dark #appRoot.public-screen [class~="text-[#7ec8f8]"] {
      color: #38bdf8 !important;
    }

    /* Rosa coral vivo: NEW, Finalizado, Favoritos y destacados */
    html.site-dark #appRoot.public-screen [class~="text-[#c46eb0]"],
    html.site-dark #appRoot.public-screen [class~="text-[#d94d8c]"],
    html.site-dark #appRoot.public-screen [class~="text-[#e63e87]"],
    html.site-dark #appRoot.public-screen [class~="text-[#e95595]"],
    html.site-dark #appRoot.public-screen [class~="text-[#eb619c]"],
    html.site-dark #appRoot.public-screen [class~="text-[#f7599c]"] {
      color: #fb7195 !important;
    }

    /* Dorado cálido: calificaciones ★ */
    html.site-dark #appRoot.public-screen [class~="text-[#e4a63a]"],
    html.site-dark #appRoot.public-screen [class~="text-[#f2a33c]"] {
      color: #fbbf24 !important;
    }

    /* Hover violeta limpio en botones de capítulo y chips */
    html.site-dark #appRoot.public-screen button[class~="hover:bg-[#a992ee]"]:hover {
      background-color: #8b74f6 !important;
      border-color: #8b74f6 !important;
      color: #ffffff !important;
    }

    /* Bordes sutiles armonizados con #101726 */
    html.site-dark #appRoot.public-screen [class~="border-[#e7e0fc]"],
    html.site-dark #appRoot.public-screen [class~="border-[#ece6ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e7dfff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#ebe4ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e2d9fc]"],
    html.site-dark #appRoot.public-screen [class~="border-[#f2ecff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#f0ebff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#eee8ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#f1ecff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#dfd7fa]"],
    html.site-dark #appRoot.public-screen [class~="border-[#dfd6fc]"],
    html.site-dark #appRoot.public-screen [class~="border-[#d8cefa]"],
    html.site-dark #appRoot.public-screen [class~="border-[#ded5ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#eae3ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#eee8fb]"],
    html.site-dark #appRoot.public-screen [class~="border-[#f3eeff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#efeaff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#ede6ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e8e0ff]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e3dbfc]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e5ddfc]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e6dffc]"],
    html.site-dark #appRoot.public-screen [class~="border-[#e3d9ff]"] {
      border-color: rgba(148, 175, 224, 0.14) !important;
    }

    /* ==========================================================================
       LISTADO DE CAPÍTULOS DE LAS FICHAS (Sobre base #101726)
       ========================================================================== */
    html.site-dark #appRoot.public-screen #chapterListContainer {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-top: 4px;
    }

    /* Cada capítulo en fila-tarjeta independiente (anula divide-[#f3eeff]) */
    html.site-dark #appRoot.public-screen #chapterListContainer > div {
      margin-left: 0 !important;
      margin-right: 0 !important;
      padding: 12px 14px !important;
      border: 1px solid rgba(148, 175, 224, 0.14) !important;
      border-top-width: 1px !important;
      border-radius: 14px;
      background-color: #1c2840 !important;
      transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div:hover {
      background-color: #243352 !important;
      border-color: rgba(139, 116, 246, 0.55) !important;
      transform: translateX(3px);
    }

    /* Número de capítulo SIN leer */
    html.site-dark #appRoot.public-screen #chapterListContainer > div [class~="bg-[#f1ebff]"] {
      background-color: rgba(139, 116, 246, 0.2) !important;
      color: #c8baff !important;
      border: 1px solid rgba(139, 116, 246, 0.38);
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div:hover [class~="text-[#443d57]"] {
      color: #d7ccff !important;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div [class~="text-[#a197ba]"] {
      color: #8495b8 !important;
    }

    /* Botón "Leer" */
    html.site-dark #appRoot.public-screen #chapterListContainer > div > span:last-child {
      background-color: #253454 !important;
      border: 1px solid rgba(139, 116, 246, 0.38) !important;
      color: #c8baff !important;
      transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div:hover > span:last-child {
      background-color: #8b74f6 !important;
      border-color: #8b74f6 !important;
      color: #ffffff !important;
      box-shadow: 0 4px 12px rgba(139, 116, 246, 0.38);
    }

    /* Capítulos YA LEÍDOS */
    html.site-dark #appRoot.public-screen #chapterListContainer > div:has([class~="bg-[#e9e4f8]"]) {
      background-color: #11192a !important;
      border-color: rgba(148, 175, 224, 0.08) !important;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div:has([class~="bg-[#e9e4f8]"]):hover {
      background-color: #1b273e !important;
      border-color: rgba(139, 116, 246, 0.36) !important;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div [class~="bg-[#e9e4f8]"] {
      background-color: #1c273d !important;
      color: #7485a8 !important;
      border: 1px solid rgba(148, 175, 224, 0.12);
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div [class~="text-[#8e85a8]"] {
      color: #7f90b2 !important;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div:has([class~="bg-[#e9e4f8]"]) > span:last-child {
      background-color: #182236 !important;
      border-color: rgba(148, 175, 224, 0.14) !important;
      color: #8c9dbe !important;
    }
    html.site-dark #appRoot.public-screen #chapterListContainer > div:has([class~="bg-[#e9e4f8]"]):hover > span:last-child {
      background-color: #8b74f6 !important;
      border-color: #8b74f6 !important;
      color: #ffffff !important;
    }

    /* Píldora "✓ Leído" */
    html.site-dark #appRoot.public-screen #chapterListContainer [class~="bg-[#eef7ff]"] {
      background-color: rgba(56, 189, 248, 0.15) !important;
      color: #38bdf8 !important;
      border: 1px solid rgba(56, 189, 248, 0.3);
    }

    /* ==========================================================================
       INPUTS, SELECTS Y ETIQUETAS DEL DIRECTORIO
       ========================================================================== */
    html.site-dark #appRoot.public-screen input:not([type="range"]),
    html.site-dark #appRoot.public-screen select,
    html.site-dark #searchResultsDropdown input {
      background: #0e1524 !important;
      border-color: rgba(148, 175, 224, 0.2) !important;
      color: #f1f5ff !important;
    }
    html.site-dark #appRoot.public-screen input:not([type="range"]):focus,
    html.site-dark #appRoot.public-screen select:focus {
      border-color: #8b74f6 !important;
      background: #131c30 !important;
    }
    html.site-dark #appRoot.public-screen input::placeholder,
    html.site-dark #searchResultsDropdown input::placeholder {
      color: #6e7f9f !important;
    }
    html.site-dark #appRoot.public-screen .tag-chip {
      background: #1d2942;
      border-color: rgba(148, 175, 224, 0.18);
      color: #cbd5ee;
    }
    html.site-dark #appRoot.public-screen .tag-chip:hover {
      background: #273757;
      border-color: rgba(148, 175, 224, 0.34);
      color: #ffffff;
    }
    html.site-dark #appRoot.public-screen .tag-chip.active {
      background: #8b74f6;
      border-color: #8b74f6;
      color: #ffffff;
      box-shadow: 0 3px 12px rgba(139, 116, 246, 0.36);
    }


    @media (prefers-reduced-motion:reduce) { .poster-cover-main svg, .poster-cover-main img, .poster-hover-panel { transition:none; } }

  

    /* HMCDRS ACTU 1.1 — superposición nocturna sobre la portada del banner. */
    html.site-dark .hero-stage { background:#101726 !important; }
    html.site-dark .hero-cover-backdrop::after {
      background:linear-gradient(90deg,
        rgba(10,16,29,.96) 0%,
        rgba(14,21,36,.91) 30%,
        rgba(16,24,42,.75) 67%,
        rgba(25,24,43,.54) 100%);
    }
    html.site-dark .hero-stage-copy,
    html.site-dark .hero-stage-title { color:#f6f4ff !important; }
    html.site-dark .hero-stage-jp { color:#d6cfea !important; }
    html.site-dark .hero-stage-description { color:#e1dbea !important; }
    html.site-dark .hero-stage-genre {
      background:rgba(26,37,59,.62) !important;
      color:#e9dcff !important;
      border:1px solid rgba(170,149,233,.23);
    }
    html.site-dark .hero-stage-secondary {
      background:rgba(24,35,56,.58) !important;
      color:#eee9ff !important;
      border-color:rgba(170,149,233,.27) !important;
    }
    html.site-dark .hero-stage-secondary:hover { background:rgba(50,55,87,.80) !important; }
    @media (max-width:639px) {
      html.site-dark .hero-cover-backdrop::after {
        background:linear-gradient(90deg,rgba(10,16,29,.97),rgba(14,21,36,.86) 67%,rgba(25,24,43,.66));
      }
    }


    /* HMCDRS v6.3.3: desplegable del buscador opaco en modo oscuro.
       Solo apariencia: no altera resultados, acciones ni modo claro. */
    html.site-dark #globalHeader #searchResultsDropdown {
      background: #171c2a !important;
      background-color: #171c2a !important;
      background-image: none !important;
      border-color: rgba(181, 166, 226, 0.22) !important;
      color: #eef0fa !important;
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    html.site-dark #globalHeader #searchResultsList {
      background: #171c2a !important;
      background-color: #171c2a !important;
    }
    html.site-dark #globalHeader #searchResultsList > * {
      border-color: rgba(181, 166, 226, 0.12) !important;
    }
