    /* Nuevos estrenos: tarjetas editoriales, estrellita original y ficha flotante */
    .new-work-item { position: relative; isolation: isolate; }
    .new-work-item:hover, .new-work-item:focus-within { z-index: 35; }
    .new-work-cover { overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 13px; background: #fff; }
    .new-work-popup {
      position: absolute;
      left: 50%; top: 34%; width: min(300px, 82vw);
      z-index: 40; opacity: 0; visibility: hidden;
      transform: translate(-50%, 12px) scale(.97);
      background: linear-gradient(155deg, #fff 0%, #fbf8ff 65%, #f0f8ff 100%);
      border: 1px solid #e4d9ff;
      box-shadow: 0 17px 44px rgba(87,70,142,.24);
      border-radius: 18px; padding: 16px;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }
    @media (hover:hover) and (pointer:fine) {
      .new-work-item:hover .new-work-popup, .new-work-item:focus-within .new-work-popup {
        opacity: 1; visibility: visible;
        transform: translate(-50%, 0) scale(1);
        pointer-events: auto;
      }
    }
    .new-work-popup::before { content: ''; position:absolute; top:0; left:15px; right:15px; height:3px; border-radius:99px; background: linear-gradient(90deg,#f7599c,#b8a1ee,#7ec8f8); }

    /* Fichas sin elevación ni sombra artificial */
    .detail-surface, .detail-surface:hover, .detail-recommendation, .detail-recommendation:hover {
      box-shadow: none !important;
      transform: none !important;
    }
    .detail-surface { border-color: rgba(169,146,238,.2); }
    .detail-recommendation { background: rgba(255,255,255,.94); border: 1px solid rgba(169,146,238,.2); border-radius: 15px; transition: border-color .18s ease, background .18s ease; }
    .detail-recommendation:hover { background: #fbf9ff; border-color: #b5a0ed; }
    .detail-cover { box-shadow: none !important; transform: none !important; transition: none !important; }

    /* Navegación inferior real para móviles; el lector sigue inmersivo. */
    .mobile-site-dock { display: none; }
    @media (max-width: 767px) {
      body:has(.mobile-site-dock:not(.hidden)) #globalFooter { padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)); }
      .mobile-site-dock:not(.hidden) {
        display: block; position: fixed; left: 0; right: 0; bottom: 0;
        z-index: 42; padding: 7px 10px calc(7px + env(safe-area-inset-bottom,0px));
        background: rgba(248,245,255,.92);
        border-top: 1px solid rgba(177,157,232,.34);
        box-shadow: 0 -5px 22px rgba(92,76,137,.10);
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
      }
      .mobile-dock-inner { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; max-width:560px; margin:auto; }
      .mobile-dock-link { display:flex; flex-direction:column; gap:3px; align-items:center; justify-content:center; min-height:49px; border-radius:12px; color:#8474b3; font-family:'Quicksand',sans-serif; font-size:9px; font-weight:700; transition:color .18s ease, background .18s ease; }
      .mobile-dock-link svg { width:19px; height:19px; stroke-width:1.9; }
      .mobile-dock-link.active { color:#df4e93; background:rgba(255,231,242,.88); }
    }

    /* Series y novelas en la columna principal: portadas editoriales amplias. */
    .sidebar-shelf { border:1px solid rgba(255,255,255,.9); }
    .sidebar-shelf-heading {
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      padding:19px 22px 17px;
      background:linear-gradient(108deg,rgba(255,238,248,.9),rgba(242,237,255,.77) 60%,rgba(231,248,255,.8));
      border-bottom:1px solid #eee8fb;
    }
    .sidebar-shelf-icon { display:flex; align-items:center; justify-content:center; width:35px; height:35px; flex:0 0 35px; font-size:21px; border-radius:12px; background:rgba(255,255,255,.86); }
    .sidebar-shelf-more { flex:0 0 auto; border-radius:99px; border:1px solid #e6dbfc; background:#fff; color:#876ec2; padding:7px 13px; font-size:11px; font-family:'Quicksand',sans-serif; font-weight:700; transition:background .2s,color .2s; }
    .sidebar-shelf-more:hover { background:#f8f2ff; color:#df5594; }

    .poster-shelf-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; padding:20px; }
    @media (min-width:650px) { .poster-shelf-grid--manga { grid-template-columns:repeat(3,minmax(0,1fr)); } }
    @media (min-width:650px) { .poster-shelf-grid--novel { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; } }
    @media (max-width:420px) { .poster-shelf-grid { padding:15px; gap:18px 12px; } .sidebar-shelf-heading { padding:15px; } }
    .poster-work { min-width:0; display:flex; flex-direction:column; position:relative; }
    .poster-cover-wrap { position:relative; width:100%; aspect-ratio:2/3; border-radius:14px; }
    .poster-cover-main { position:relative; display:block; width:100%; height:100%; overflow:hidden; border-radius:14px; background:#f0eaff; border:1px solid rgba(188,169,226,.3); box-shadow:0 5px 13px rgba(87,71,129,.09); cursor:pointer; }
    .poster-cover-main svg, .poster-cover-main img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
    @media (hover:hover) and (pointer:fine) { .poster-work:hover .poster-cover-main svg, .poster-work:hover .poster-cover-main img { transform:scale(1.025); } }
    .poster-work .badge-new-star { width:52px; height:52px; top:-14px; left:-14px; z-index:9; }
    @media (min-width:640px) { .poster-work .badge-new-star { width:58px; height:58px; top:-16px; left:-16px; } }
    .poster-cover-type { position:absolute; bottom:10px; left:10px; z-index:3; padding:5px 10px; border-radius:99px; background:rgba(255,255,255,.91); color:#7660ac; font:700 10px 'Quicksand',sans-serif; letter-spacing:.02em; pointer-events:none; }
    .poster-cover-rating { position:absolute; bottom:10px; right:10px; z-index:3; padding:5px 9px; border-radius:99px; background:rgba(35,29,59,.79); color:#ffdd89; font:700 10px 'Quicksand',sans-serif; pointer-events:none; }
    .poster-hover-panel {
      position:absolute; left:50%; top:32%; width:min(300px,82vw); z-index:40;
      opacity:0; visibility:hidden; transform:translate(-50%,12px) scale(.97);
      background:linear-gradient(155deg,#fff 0%,#fbf8ff 65%,#f0f8ff 100%);
      border:1px solid #e4d9ff; border-radius:18px; padding:16px;
      box-shadow:0 17px 44px rgba(87,70,142,.24); pointer-events:none;
      transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
    }
    .poster-hover-panel::before { content:''; position:absolute; top:0; left:15px; right:15px; height:3px; border-radius:99px; background:linear-gradient(90deg,#f7599c,#b8a1ee,#7ec8f8); }
    @media (hover:hover) and (pointer:fine) {
      .poster-work:hover .poster-hover-panel, .poster-work:focus-within .poster-hover-panel {
        opacity:1; visibility:visible; transform:translate(-50%,0) scale(1); pointer-events:auto;
      }
    }
    .poster-work-info { min-width:0; padding:12px 2px 2px; }
    .poster-work-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; width:100%; text-align:left; font:700 14px/1.4 'Quicksand','M PLUS Rounded 1c',sans-serif; min-height:39px; color:#4a405f; cursor:pointer; }
    .poster-work-title:hover { color:#d65e9a; }
    .poster-work-author { margin-top:5px; font:500 11px/1.35 'Quicksand',sans-serif; color:#9389aa; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
    @media (max-width:420px) { .poster-work-title { font-size:12px; min-height:34px; } .poster-cover-type, .poster-cover-rating { font-size:9px; padding:4px 6px; } .poster-work .badge-new-star { width:46px; height:46px; top:-12px; left:-12px; } }

    /* Conmutador de apariencia, accesible desde el header, junto al corazón. */
    .theme-icon-sun { display:none; }
    html.site-dark .theme-icon-sun { display:block; }
    html.site-dark .theme-icon-moon { display:none; }
    .site-theme-toggle { border:1px solid transparent; }
    .site-theme-toggle:focus-visible { outline:2px solid white; outline-offset:2px; }



    /* =====================================================================
       HMCDRS ACTU 1.1 — Hero con portada difuminada y títulos limitados
       Solo afecta al banner del inicio. La portada lateral sigue intacta.
       ===================================================================== */
    /* ACTU 1.2: sin sombra exterior, ni en claro ni en oscuro. */
    .hero-stage { isolation:isolate; box-shadow:none !important; }
    .hero-cover-backdrop { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
    .hero-cover-media { position:absolute; inset:-7%; overflow:hidden; }
    .hero-cover-media > img,
    .hero-cover-media > svg {
      display:block; width:100%; height:100%; object-fit:cover;
      filter:blur(4px) saturate(.93); opacity:.98;
    }
    .hero-cover-backdrop::after {
      content:''; position:absolute; inset:0;
      background:linear-gradient(90deg,
        rgba(245,245,255,.96) 0%,
        rgba(242,241,252,.87) 29%,
        rgba(234,237,251,.69) 62%,
        rgba(245,225,239,.48) 100%);
    }
    .hero-stage-copy { width:min(56%, 550px); max-width:min(56%, 550px); min-width:0; }
    /* ACTU 1.2: una sola linea, sin empujar el contenido ni el pie del banner. */
    .hero-stage-title {
      display:block; width:100%; min-width:0; max-width:100%;
      white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
      -webkit-line-clamp:unset; max-height:none; line-height:1.24;
    }
    .hero-stage-jp { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .hero-stage-description {
      display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
      overflow:hidden; max-width:100%;
    }
    .hero-stage-genres { max-width:100%; max-height:25px; overflow:hidden; }
    /* En claro, texto oscuro sobre la portada iluminada. */
    html:not(.site-dark) .hero-stage-copy { color:#39324b !important; }
    html:not(.site-dark) .hero-stage-title { color:#3b3153 !important; text-shadow:none !important; }
    html:not(.site-dark) .hero-stage-jp { color:#6b6283 !important; }
    html:not(.site-dark) .hero-stage-description { color:#514965 !important; }
    html:not(.site-dark) .hero-stage-genre {
      color:#514566 !important; background:rgba(255,255,255,.50) !important;
      border:1px solid rgba(103,84,148,.16);
    }
    html:not(.site-dark) .hero-stage-secondary {
      background:rgba(255,255,255,.54) !important;
      color:#614a94 !important; border-color:rgba(91,76,139,.22) !important;
    }
    html:not(.site-dark) .hero-stage-secondary:hover { background:rgba(255,255,255,.84) !important; }
    @media (max-width:639px) {
      .hero-stage-copy { width:100%; max-width:100%; }
      .hero-stage-title { font-size:clamp(19px,5.5vw,25px); }
      .hero-cover-backdrop::after {
        background:linear-gradient(90deg,rgba(245,245,255,.96),rgba(245,241,253,.79) 67%,rgba(245,225,239,.60));
      }
    }


    /* ACTU 1.3 — Navegacion del slider contrastada en modo claro.
       Modo oscuro sin cambios; los nombres se preservan al actualizar el slide. */
    html:not(.site-dark) .hero-stage .hero-nav-arrow {
      background: rgba(61,51,92,.68) !important;
      color: #fff !important;
      border: 1px solid rgba(255,255,255,.20);
      box-shadow: none !important;
    }
    html:not(.site-dark) .hero-stage .hero-nav-arrow:hover,
    html:not(.site-dark) .hero-stage .hero-nav-arrow:focus-visible {
      background: rgba(73,56,115,.87) !important;
      color: #fff !important;
    }
    html:not(.site-dark) .hero-stage .hero-nav-dots {
      background: rgba(61,51,92,.48) !important;
      border: 1px solid rgba(255,255,255,.13);
    }
    html:not(.site-dark) .hero-stage .hero-nav-dot {
      background: rgba(244,237,255,.51) !important;
    }
    html:not(.site-dark) .hero-stage .hero-nav-dot.w-6 {
      background: #fff !important;
    }
    html:not(.site-dark) .hero-stage .hero-nav-dot:not(.w-6):hover {
      background: rgba(255,255,255,.85) !important;
    }
