    /* ── LOCAL FONTS ── */
    @font-face {
      font-family: 'Bebas Neue';
      src: url('/acetoon/fonts/bebas-neue.ttf') format('truetype');
      font-weight: 400;
      font-display: swap;
    }

    @font-face {
      font-family: 'Inter';
      src: url('/acetoon/fonts/inter-400.ttf') format('truetype');
      font-weight: 400;
      font-display: swap;
    }

    @font-face {
      font-family: 'Inter';
      src: url('/acetoon/fonts/inter-600.ttf') format('truetype');
      font-weight: 600;
      font-display: swap;
    }

    @font-face {
      font-family: 'Inter';
      src: url('/acetoon/fonts/inter-700.ttf') format('truetype');
      font-weight: 700;
      font-display: swap;
    }

    @font-face {
      font-family: 'Inter';
      src: url('/acetoon/fonts/inter-800.ttf') format('truetype');
      font-weight: 800;
      font-display: swap;
    }

    @font-face {
      font-family: 'Inter';
      src: url('/acetoon/fonts/inter-900.ttf') format('truetype');
      font-weight: 900;
      font-display: swap;
    }

    /* ════════════════════════════════
   DESIGN TOKENS — AceToon palette
   ════════════════════════════════ */
    :root {
      --bg: #0e0e0e;
      --veil: 14, 14, 14;
      --skel1: #191919;
      --skel2: #222;
      --bg2: #141414;
      --bg3: #1c1c1c;
      --bg4: #252525;
      --green: #5CC419;
      --green-lo: rgba(92, 196, 25, .18);
      --green-md: rgba(92, 196, 25, .35);
      --gold: #F5C518;
      --white: #ffffff;
      /* --ghost: triplete RGB para overlays translúcidos sobre superficies
         que cambian con el tema (hover de nav, htags del hero, btn-outline).
         Blanco en dark, casi negro en light. Los overlays sobre fondos
         SIEMPRE oscuros (spotlight, premium, card-shade) siguen en blanco fijo. */
      --ghost: 255, 255, 255;
      --grey: #8a8a8a;
      --muted: #464646;
      --border: #252525;
      --nav-h: 58px;
      --bottom-h: 64px;
      --card-w: 120px;
      --r: 10px;
    }

    /* ═══ TEMA CLARO ═══
       El theme es dark-first: TODO usa los tokens de arriba, así que el tema
       claro es solo este remapeo. --white es el token de TEXTO (nombre
       histórico del diseño) y aquí pasa a casi negro; --veil alimenta los
       degradados del chrome y el hero. Se activa con data-theme="light" en
       <html> (toggle del topnav, persistido en localStorage). */
    html[data-theme="light"] {
      --bg: #f6f6f3;
      --veil: 246, 246, 243;
      --skel1: #e9e9e5;
      --skel2: #f1f1ed;
      --bg2: #ffffff;
      --bg3: #eeeeea;
      --bg4: #e1e1dc;
      --white: #171717;
      --ghost: 23, 23, 23;
      --grey: #575757;
      --muted: #9c9c98;
      --border: #e3e3df;
      --green: #3e8e0f;
      --green-lo: rgba(62, 142, 15, .12);
      --green-md: rgba(62, 142, 15, .28);
    }

    /* ═══ RESET ═══ */
    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--white);
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
      padding-bottom: var(--bottom-h);
      -webkit-font-smoothing: antialiased;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
    }

    img {
      display: block;
    }

    ::-webkit-scrollbar {
      width: 2px;
      height: 2px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--green);
      border-radius: 2px;
    }

    /* ═══ SKELETON ═══ */
    .skel {
      background: linear-gradient(90deg, var(--skel1) 25%, var(--skel2) 50%, var(--skel1) 75%);
      background-size: 200% 100%;
      animation: sk 1.5s infinite;
    }

    @keyframes sk {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    /* ════════════════════
   TOP NAV
   ════════════════════ */
    .topnav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 300;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      background: linear-gradient(to bottom, rgba(var(--veil), .97) 0%, rgba(var(--veil), 0) 100%);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .logo {
      display: flex;
      align-items: center;
    }

    .logo-img {
      height: 55px;
      width: auto;
      display: block;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .nav-btn {
      background: none;
      border: none;
      color: var(--grey);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color .15s, background .15s;
    }

    .nav-btn:hover {
      color: var(--white);
      background: rgba(var(--ghost), .07);
    }

    .nav-btn svg {
      width: 19px;
      height: 19px;
    }

    /* Language toggle button */
    .lang-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 5px 10px;
      margin-left: 4px;
      cursor: pointer;
      transition: border-color .2s, background .2s;
      color: var(--white);
    }

    .lang-btn:hover {
      border-color: var(--green);
      background: var(--bg4);
    }

    .lang-flag {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      line-height: 1;
    }

    .lang-code {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .5px;
    }

    /* ════════════════════
   GENRE TABS (horizontal scroll under nav)
   ════════════════════ */
    .genre-tabs {
      position: sticky;
      top: var(--nav-h);
      z-index: 200;
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding: 0 18px;
      background: rgba(var(--veil), .96);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      scrollbar-width: none;
    }

    .genre-tabs::-webkit-scrollbar {
      display: none;
    }

    .gtab {
      flex-shrink: 0;
      padding: 10px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--grey);
      border-bottom: 2px solid transparent;
      white-space: nowrap;
      cursor: pointer;
      transition: color .2s, border-color .2s;
      letter-spacing: .2px;
    }

    .gtab.active,
    .gtab:hover {
      color: var(--white);
      border-bottom-color: var(--green);
    }

    .gtab.active {
      color: var(--green);
    }

    /* pestañas de género: subrayado y activo con el color del género */
    .gtab.gt-gc.active,
    .gtab.gt-gc:hover {
      border-bottom-color: hsl(var(--gh, 130), 72%, 55%);
    }

    .gtab.gt-gc.active {
      color: hsl(var(--gh, 130), 72%, 64%);
    }

    html[data-theme="light"] .gtab.gt-gc.active {
      color: hsl(var(--gh, 130), 62%, 32%);
    }

    /* ════════════════════
   HERO
   ════════════════════ */
    #hero {
      position: relative;
      width: 100%;
      height: 76vh;
      min-height: 480px;
      max-height: 720px;
      margin-top: var(--nav-h);
      overflow: hidden;
    }

    .hero-img {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center top;
      background-color: var(--bg3);
      transition: opacity .5s ease;
    }

    .hero-img.out {
      opacity: 0;
    }

    .hero-grad {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom,
          rgba(var(--veil), .1) 0%,
          rgba(var(--veil), .05) 30%,
          rgba(var(--veil), .6) 60%,
          rgba(var(--veil), .97) 100%);
      pointer-events: none;
    }

    .hero-grad-l {
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, rgba(var(--veil), .8) 0%, transparent 50%);
      pointer-events: none;
    }

    .hero-content {
      position: absolute;
      bottom: 28px;
      left: 18px;
      right: 18px;
      z-index: 5;
      max-width: 400px;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--green);
      color: #000;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 4px;
      margin-bottom: 10px;
    }

    .hero-eyebrow svg {
      width: 11px;
      height: 11px;
      fill: #000;
    }

    .hero-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 48px;
      line-height: 1;
      letter-spacing: 2px;
      text-shadow: 0 4px 30px rgba(0, 0, 0, .7);
      margin-bottom: 8px;
      transition: opacity .35s;
    }

    .hero-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      color: var(--grey);
      margin-bottom: 10px;
    }

    .hero-meta .score {
      color: var(--gold);
      font-weight: 700;
      font-size: 12px;
    }

    .dot {
      width: 3px;
      height: 3px;
      background: var(--muted);
      border-radius: 50%;
      flex-shrink: 0;
    }

    .hero-tags {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
      margin-bottom: 13px;
    }

    .htag {
      background: rgba(var(--ghost), .07);
      border: 1px solid rgba(var(--ghost), .1);
      font-size: 9px;
      font-weight: 600;
      letter-spacing: .5px;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 20px;
      color: var(--grey);
    }

    /* ── COLOR POR GÉNERO ──
       `.gc` sobre cualquier chip/tag + style="--gh:N" (ace_genre_hue del
       helper PHP: mismo tono para el mismo género en TODO el sitio).
       Fondo suave + borde + texto saturado; L% distinto por tema. */
    .gc.gc {
      --gh: 0;
      color: hsl(var(--gh), 72%, 64%);
      border-color: hsla(var(--gh), 72%, 55%, .38);
      background: hsla(var(--gh), 72%, 50%, .12);
    }

    .gc.gc:hover {
      color: hsl(var(--gh), 78%, 72%);
      border-color: hsla(var(--gh), 78%, 60%, .65);
      background: hsla(var(--gh), 72%, 50%, .2);
    }

    html[data-theme="light"] .gc.gc {
      color: hsl(var(--gh), 65%, 32%);
      border-color: hsla(var(--gh), 55%, 38%, .35);
      background: hsla(var(--gh), 65%, 45%, .1);
    }

    html[data-theme="light"] .gc.gc:hover {
      color: hsl(var(--gh), 70%, 26%);
      border-color: hsla(var(--gh), 60%, 35%, .6);
      background: hsla(var(--gh), 65%, 45%, .18);
    }

    /* Solo texto coloreado (metadatos pequeños, ej. género en las cards) */
    .gc-t.gc-t {
      --gh: 0;
      color: hsl(var(--gh), 60%, 58%);
    }

    html[data-theme="light"] .gc-t.gc-t {
      color: hsl(var(--gh), 60%, 36%);
    }

    /* ── SUGERENCIAS DEL BUSCADOR (dropdown de input[data-suggest]) ── */
    .sgg {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      z-index: 350;
      min-width: 260px;
      max-height: 380px;
      overflow-y: auto;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 6px;
      box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
      scrollbar-width: thin;
    }

    .sgg-it {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 9px;
      border-radius: 8px;
      transition: background .12s;
    }

    .sgg-it:hover,
    .sgg-it.on {
      background: rgba(var(--ghost), .07);
    }

    .sgg-cover {
      width: 30px;
      height: 42px;
      border-radius: 5px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg4);
    }

    .sgg-ava {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--green-lo);
      color: var(--green);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .sgg-ava svg {
      width: 15px;
      height: 15px;
    }

    .sgg-txt {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .sgg-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--white);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sgg-meta {
      font-size: 10px;
      color: var(--grey);
    }

    .sgg-star {
      color: var(--gold);
      font-weight: 700;
    }

    .sgg-head {
      padding: 8px 9px 4px;
      margin-top: 4px;
      border-top: 1px solid var(--border);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--muted);
    }

    .sgg-head:first-child {
      margin-top: 0;
      border-top: none;
    }

    .sgg-empty {
      padding: 12px 10px;
      font-size: 11px;
      color: var(--grey);
    }

    /* en el topnav (input angosto pegado al borde derecho) el panel ancla a
       la derecha con ancho propio para no salirse del viewport */
    .desk-search .sgg {
      left: auto;
      right: 0;
      width: 330px;
    }

    .hero-desc {
      font-size: 12px;
      line-height: 1.7;
      color: var(--grey);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 16px;
      transition: opacity .35s;
    }

    .hero-btns {
      display: flex;
      gap: 8px;
    }

    .btn-primary {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--green);
      /* blanco SIEMPRE (pedido de Sam: el negro sobre verde se veía feo);
         literal porque --white cambia a oscuro en el tema claro */
      color: #fff;
      border: none;
      padding: 11px 20px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .5px;
      text-transform: uppercase;
      transition: all .18s;
      box-shadow: 0 4px 18px var(--green-lo);
    }

    .btn-primary svg {
      width: 13px;
      height: 13px;
      fill: #fff;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 26px var(--green-md);
    }

    .btn-outline {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(var(--ghost), .08);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(var(--ghost), .14);
      color: var(--white);
      padding: 11px 16px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .3px;
      transition: background .18s;
    }

    .btn-outline svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      fill: none;
    }

    .btn-outline:hover {
      background: rgba(var(--ghost), .13);
    }

    .hero-dots {
      display: flex;
      gap: 4px;
      margin-top: 14px;
    }

    .hdot {
      height: 3px;
      border-radius: 2px;
      cursor: pointer;
      background: rgba(var(--ghost), .2);
      transition: all .3s;
    }

    .hdot.on {
      background: var(--green);
      width: 22px;
    }

    .hdot:not(.on) {
      width: 6px;
    }

    /* ════════════════════
   SECTIONS
   ════════════════════ */
    .sec {
      margin-top: 28px;
    }

    .sec-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      margin-bottom: 12px;
    }

    .sec-title {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: -.2px;
    }

    .sec-icon {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      background: var(--bg3);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .sec-icon svg {
      width: 15px;
      height: 15px;
      stroke: var(--green);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .sec-icon.filled svg {
      fill: var(--green);
      stroke: none;
    }

    .see-all {
      display: flex;
      align-items: center;
      gap: 2px;
      font-size: 11px;
      font-weight: 700;
      color: var(--green);
      letter-spacing: .3px;
      cursor: pointer;
      transition: opacity .15s;
    }

    .see-all:hover {
      opacity: .75;
    }

    .see-all svg {
      width: 13px;
      height: 13px;
      stroke: var(--green);
      fill: none;
      stroke-width: 2.5;
    }

    /* ════════════════════
   SCROLL ROW
   ════════════════════ */
    .row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 4px 18px 8px;
      scrollbar-width: none;
      scroll-snap-type: x mandatory;
      /* Sin esto, el snap inicial alinea la 1ª card al borde del scrollport
         ignorando el padding: la fila queda desalineada con su título. */
      scroll-padding-left: 18px;
      -webkit-overflow-scrolling: touch;
    }

    .row::-webkit-scrollbar {
      display: none;
    }

    /* ════════════════════
   MANGA CARD
   ════════════════════ */
    .card {
      flex-shrink: 0;
      width: var(--card-w);
      cursor: pointer;
      scroll-snap-align: start;
      transition: transform .15s;
    }

    .card:active {
      transform: scale(.94);
    }

    .card-img {
      position: relative;
      width: 100%;
      aspect-ratio: 2/3;
      border-radius: var(--r);
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
    }

    .card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .3s, opacity .3s;
    }

    .card:hover .card-img img {
      transform: scale(1.05);
    }

    .card-shade {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 55%;
      background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent);
      pointer-events: none;
    }

    .card-bdg {
      position: absolute;
      top: 6px;
      right: 6px;
      font-size: 7px;
      font-weight: 900;
      letter-spacing: .7px;
      text-transform: uppercase;
      padding: 2px 5px;
      border-radius: 3px;
      line-height: 1.4;
    }

    .bdg-new {
      background: var(--green);
      color: #000;
    }

    .bdg-hot {
      background: #f4a261;
      color: #000;
    }

    .bdg-top {
      background: #fff;
      color: #000;
    }

    .bdg-end {
      background: #6c47ff;
      color: #fff;
    }

    .card-score {
      position: absolute;
      bottom: 5px;
      right: 6px;
      font-size: 9px;
      font-weight: 700;
      color: var(--gold);
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .card-score svg {
      width: 9px;
      height: 9px;
      fill: var(--gold);
    }

    .card-body {
      padding: 5px 1px 0;
    }

    .card-name {
      font-size: 10px;
      font-weight: 700;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .card-sub {
      font-size: 9px;
      color: var(--green);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 600;
    }

    .card-sub span {
      color: var(--muted);
      font-weight: 400;
    }

    /* ════════════════════
   TOP 10 ROW
   ════════════════════ */
    .top10-row {
      display: flex;
      gap: 0;
      overflow-x: auto;
      padding: 8px 18px 10px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .top10-row::-webkit-scrollbar {
      display: none;
    }

    .t10 {
      flex-shrink: 0;
      position: relative;
      width: var(--card-w);
      margin-right: 8px;
      cursor: pointer;
      transition: transform .15s;
    }

    .t10:active {
      transform: scale(.96);
    }

    .t10-img {
      width: 100%;
      aspect-ratio: 2/3;
      border-radius: var(--r);
      overflow: hidden;
      background: var(--bg3);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
      display: block;
    }

    .t10-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity .3s;
    }

    .t10-num {
      position: absolute;
      bottom: 18px;
      right: -6px;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 80px;
      line-height: 1;
      z-index: 5;
      user-select: none;
      pointer-events: none;
    }

    .t10-name {
      font-size: 9px;
      font-weight: 700;
      margin-top: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0 2px;
      color: var(--grey);
    }

    /* ════════════════════
   CHAPTER ROW
   ════════════════════ */
    .ch-row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 4px 18px 8px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .ch-row::-webkit-scrollbar {
      display: none;
    }

    .ch-item {
      flex-shrink: 0;
      width: 195px;
      display: flex;
      gap: 10px;
      align-items: flex-start;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 11px;
      padding: 9px;
      cursor: pointer;
      transition: border-color .2s;
    }

    .ch-item:hover {
      border-color: var(--green);
    }

    .ch-thumb {
      width: 46px;
      height: 62px;
      border-radius: 7px;
      flex-shrink: 0;
      object-fit: cover;
      background: var(--bg3);
      transition: opacity .3s;
    }

    .ch-info {
      flex: 1;
      min-width: 0;
    }

    .ch-title {
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 3px;
    }

    .ch-num {
      font-size: 10px;
      color: var(--green);
      font-weight: 700;
      margin-bottom: 3px;
    }

    .ch-time {
      font-size: 9px;
      color: var(--muted);
    }

    .ch-new {
      display: inline-block;
      background: var(--green);
      color: #000;
      font-size: 7px;
      font-weight: 900;
      letter-spacing: .6px;
      text-transform: uppercase;
      padding: 1px 5px;
      border-radius: 3px;
      margin-top: 4px;
    }

    /* ════════════════════
   PROMO BANNER
   ════════════════════ */
    .promo {
      margin: 28px 18px 0;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      height: 114px;
      cursor: pointer;
      transition: transform .18s;
    }

    .promo:hover {
      transform: scale(1.01);
    }

    .promo-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      filter: blur(3px) brightness(.5);
      transform: scale(1.08);
    }

    .promo-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(var(--veil), .93) 0%, rgba(var(--veil), .2) 100%);
    }

    .promo-body {
      position: relative;
      z-index: 2;
      padding: 0 20px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .promo-label {
      font-size: 8px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--green);
      margin-bottom: 5px;
    }

    .promo-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 30px;
      letter-spacing: 2px;
      line-height: 1;
      margin-bottom: 6px;
    }

    .promo-cta {
      font-size: 10px;
      font-weight: 700;
      color: rgba(var(--ghost), .45);
      text-transform: uppercase;
      letter-spacing: 1px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .promo-cta svg {
      width: 12px;
      height: 12px;
      stroke: rgba(var(--ghost), .45);
      fill: none;
      stroke-width: 2.5;
    }

    /* ════════════════════
   GENRE VISUAL GRID
   ════════════════════ */
    .vis-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 0 18px;
      margin-top: 12px;
    }

    .gpill {
      height: 60px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      overflow: hidden;
      position: relative;
      transition: transform .15s;
      border: 1px solid transparent;
    }

    .gpill:active {
      transform: scale(.96);
    }

    .gpill:hover {
      border-color: var(--green);
    }

    .gpill-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      opacity: .35;
      transition: opacity .25s;
    }

    .gpill:hover .gpill-bg {
      opacity: .55;
    }

    .gpill-overlay {
      position: absolute;
      inset: 0;
    }

    .gpill-label {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .gpill-icon {
      width: 18px;
      height: 18px;
      stroke: var(--white);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .gpill-name {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .4px;
      text-shadow: 0 1px 8px rgba(0, 0, 0, 1);
    }

    /* ════════════════════
   SIDEBAR
   ════════════════════ */
    .sidebar {
      display: none;
    }

    .sb-widget {
      margin-bottom: 26px;
    }

    .sb-widget-title {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      color: var(--green);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .sb-widget-title svg {
      width: 12px;
      height: 12px;
      stroke: var(--green);
      fill: none;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    /* Trending list */
    .sb-trend-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: opacity .15s;
    }

    .sb-trend-item:last-child {
      border-bottom: none;
    }

    .sb-trend-item:hover {
      opacity: .75;
    }

    .sb-rank {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 22px;
      line-height: 1;
      color: var(--muted);
      min-width: 20px;
      text-align: center;
      flex-shrink: 0;
    }

    .sb-rank.top3 {
      color: var(--green);
    }

    .sb-trend-thumb {
      width: 36px;
      height: 50px;
      border-radius: 6px;
      flex-shrink: 0;
      object-fit: cover;
      background: var(--bg3);
    }

    .sb-trend-info {
      flex: 1;
      min-width: 0;
    }

    .sb-trend-title {
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 2px;
    }

    .sb-trend-meta {
      font-size: 9px;
      color: var(--muted);
    }

    .sb-trend-score {
      color: var(--gold);
      font-weight: 700;
    }

    /* Latest updates */
    .sb-upd-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 7px 0;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
    }

    .sb-upd-item:last-child {
      border-bottom: none;
    }

    .sb-upd-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
      flex-shrink: 0;
    }

    .sb-upd-info {
      flex: 1;
      min-width: 0;
    }

    .sb-upd-title {
      font-size: 10px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sb-upd-ch {
      font-size: 9px;
      color: var(--green);
      margin-top: 1px;
    }

    .sb-upd-time {
      font-size: 9px;
      color: var(--muted);
      flex-shrink: 0;
    }

    /* Genre bars */
    .sb-genre-bar {
      margin-bottom: 9px;
    }

    .sb-genre-head {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
    }

    .sb-genre-name {
      font-size: 10px;
      font-weight: 600;
      color: var(--grey);
    }

    .sb-genre-pct {
      font-size: 10px;
      font-weight: 700;
      color: var(--white);
    }

    .sb-bar-track {
      height: 4px;
      background: var(--bg3);
      border-radius: 2px;
      overflow: hidden;
    }

    .sb-bar-fill {
      height: 100%;
      border-radius: 2px;
      width: 0%;
      transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
    }

    /* Weekly spotlight */
    .sb-spot {
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      height: 180px;
      cursor: pointer;
    }

    .sb-spot-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      filter: brightness(.45);
      transition: filter .3s;
      background-color: var(--bg3);
    }

    .sb-spot:hover .sb-spot-bg {
      filter: brightness(.6);
    }

    .sb-spot-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, transparent 55%);
    }

    .sb-spot-body {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 14px;
      z-index: 2;
    }

    .sb-spot-label {
      font-size: 8px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--green);
      margin-bottom: 4px;
    }

    .sb-spot-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 22px;
      letter-spacing: 1.5px;
      line-height: 1;
      margin-bottom: 5px;
    }

    .sb-spot-desc {
      font-size: 9px;
      color: rgba(255, 255, 255, .6);
      line-height: 1.6;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* Premium banner */
    .sb-premium {
      background: linear-gradient(135deg, #0c1e08 0%, #182f0d 50%, #0e1b0a 100%);
      border: 1px solid var(--green-md);
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .sb-premium::before {
      content: '';
      position: absolute;
      top: -28px;
      right: -28px;
      width: 70px;
      height: 70px;
      background: radial-gradient(circle, var(--green-md), transparent 70%);
      pointer-events: none;
    }

    .sb-premium-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--green);
      color: #000;
      font-size: 8px;
      font-weight: 900;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 20px;
      margin-bottom: 9px;
    }

    .sb-premium-badge svg {
      width: 10px;
      height: 10px;
      fill: #000;
      flex-shrink: 0;
    }

    .sb-premium-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 22px;
      letter-spacing: 1px;
      margin-bottom: 4px;
    }

    .sb-premium-text {
      font-size: 10px;
      color: var(--grey);
      line-height: 1.6;
      margin-bottom: 11px;
    }

    .sb-premium-feat {
      display: flex;
      align-items: center;
      gap: 6px;
      text-align: left;
      font-size: 10px;
      color: rgba(255, 255, 255, .7);
      margin-bottom: 5px;
    }

    .sb-premium-feat svg {
      width: 11px;
      height: 11px;
      stroke: var(--green);
      fill: none;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    .sb-premium-feats {
      margin-bottom: 13px;
    }

    .sb-premium-btn {
      display: block;
      width: 100%;
      background: var(--green);
      color: #000;
      border: none;
      padding: 10px;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .5px;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform .15s;
    }

    .sb-premium-btn:hover {
      transform: translateY(-1px);
    }

    .sb-premium-sub {
      font-size: 9px;
      color: var(--muted);
      margin-top: 7px;
    }

    /* Reading challenge */
    .sb-challenge {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
    }

    .sb-challenge-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .sb-challenge-info {
      flex: 1;
      min-width: 0;
      padding-right: 10px;
    }

    .sb-challenge-title {
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 3px;
    }

    .sb-challenge-sub {
      font-size: 9px;
      color: var(--muted);
      line-height: 1.5;
    }

    .sb-ring {
      position: relative;
      width: 54px;
      height: 54px;
      flex-shrink: 0;
    }

    .sb-ring svg {
      transform: rotate(-90deg);
    }

    .sb-ring-label {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .sb-ring-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 18px;
      line-height: 1;
      color: var(--green);
    }

    .sb-ring-of {
      font-size: 8px;
      color: var(--muted);
    }

    .sb-dots-row {
      display: flex;
      gap: 4px;
      margin-top: 2px;
    }

    .sb-dot-block {
      flex: 1;
      height: 5px;
      border-radius: 3px;
      background: var(--bg3);
    }

    .sb-dot-block.done {
      background: var(--green);
    }

    .sb-dot-block.cur {
      background: var(--green);
      opacity: .45;
    }

    /* Quick browse tags */
    .sb-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .sb-tag {
      padding: 4px 11px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 10px;
      font-weight: 700;
      transition: opacity .15s;
      border: 1px solid transparent;
    }

    .sb-tag:hover {
      opacity: .78;
    }

    /* Community stats */
    .sb-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .sb-stat {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 8px;
      text-align: center;
    }

    .sb-stat-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 21px;
      letter-spacing: .5px;
      color: var(--green);
      line-height: 1;
      margin-bottom: 3px;
    }

    .sb-stat-lbl {
      font-size: 8px;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    /* App CTA */
    .sb-app {
      background: linear-gradient(135deg, #0f1d08 0%, #192d0e 100%);
      border: 1px solid var(--green-lo);
      border-radius: 12px;
      padding: 18px;
      text-align: center;
    }

    .sb-app-icon {
      width: 44px;
      height: 44px;
      background: var(--green);
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
    }

    .sb-app-icon svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: #000;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .sb-app-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 20px;
      letter-spacing: 1px;
      margin-bottom: 4px;
    }

    .sb-app-text {
      font-size: 10px;
      color: var(--grey);
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .sb-app-btn {
      display: block;
      background: var(--green);
      color: #000;
      border: none;
      padding: 10px;
      border-radius: 8px;
      width: 100%;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .5px;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform .15s;
    }

    .sb-app-btn:hover {
      transform: translateY(-1px);
    }

    /* ════════════════════
   BOTTOM NAV
   ════════════════════ */
    .bnav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 300;
      height: var(--bottom-h);
      background: rgba(var(--veil), .97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-around;
      padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .bni {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      min-width: 52px;
      padding: 6px;
      border-radius: 10px;
      cursor: pointer;
      transition: background .12s;
    }

    .bni-ico svg {
      width: 20px;
      height: 20px;
      stroke: var(--muted);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke .15s;
    }

    .bni-lbl {
      font-size: 8px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .4px;
      transition: color .15s;
    }

    .bni.active .bni-ico svg {
      stroke: var(--green);
    }

    .bni.active .bni-lbl {
      color: var(--green);
    }

    /* ════════════════════
   FOOTER
   ════════════════════ */
    footer {
      padding: 38px 18px 22px;
      border-top: 1px solid var(--border);
      margin-top: 38px;
      text-align: center;
    }

    .foot-logo {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 5px;
    }

    .foot-logo img {
      height: 48px;
      width: auto;
      display: block;
      filter: drop-shadow(0 2px 12px rgba(92, 196, 25, .25));
    }

    .foot-tag {
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 20px;
    }

    .foot-links {
      display: flex;
      justify-content: center;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .foot-links a {
      font-size: 10px;
      color: var(--muted);
      transition: color .15s;
    }

    .foot-links a:hover {
      color: var(--grey);
    }

    .foot-copy {
      font-size: 10px;
      color: var(--muted);
    }

    /* ════════════════════
   MODAL
   ════════════════════ */
    .modal-bg {
      position: fixed;
      inset: 0;
      z-index: 900;
      background: rgba(0, 0, 0, .84);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s;
    }

    .modal-bg.open {
      opacity: 1;
      pointer-events: all;
    }

    .modal-sheet {
      width: 100%;
      max-width: 480px;
      background: #1a1a1a;
      border-radius: 22px 22px 0 0;
      padding: 12px 22px 40px;
      border: 1px solid var(--border);
      border-bottom: none;
      transform: translateY(100%);
      transition: transform .36s cubic-bezier(.32, .72, 0, 1);
    }

    .modal-bg.open .modal-sheet {
      transform: translateY(0);
    }

    .modal-pull {
      width: 38px;
      height: 4px;
      background: var(--bg4);
      border-radius: 2px;
      margin: 0 auto 20px;
    }

    .modal-ico {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: var(--bg3);
      border: 2px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
    }

    .modal-ico svg {
      width: 26px;
      height: 26px;
      stroke: var(--green);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .modal-h {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 32px;
      letter-spacing: 2px;
      text-align: center;
      margin-bottom: 9px;
    }

    .modal-p {
      font-size: 12px;
      line-height: 1.75;
      color: var(--grey);
      text-align: center;
      margin-bottom: 22px;
    }

    /* ─── Modal 2-step panels ─── */
    .modal-steps {
      overflow: hidden;
      position: relative;
    }

    .modal-step {
      transition: opacity .32s cubic-bezier(.4, 0, .2, 1),
        transform .32s cubic-bezier(.4, 0, .2, 1),
        max-height .38s cubic-bezier(.4, 0, .2, 1);
      max-height: 600px;
      opacity: 1;
      transform: translateY(0);
    }

    .modal-step.hidden {
      max-height: 0;
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
      overflow: hidden;
    }

    .modal-step-2.hidden {
      transform: translateY(12px);
    }

    /* step-2 email label */
    .modal-email-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .8px;
      color: var(--grey);
      margin-bottom: 8px;
      text-align: center;
    }

    /* back link inside step 2 */
    .modal-step2-back {
      background: none;
      border: none;
      color: var(--muted);
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 10px;
      display: block;
      width: 100%;
      text-align: center;
      transition: color .15s;
      padding: 4px;
    }

    .modal-step2-back:hover {
      color: var(--grey);
    }

    /* Email input ─── */
    .modal-email-wrap {
      position: relative;
      margin-bottom: 10px;
    }

    .modal-email {
      width: 100%;
      background: var(--bg3);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 13px 14px;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--white);
      outline: none;
      transition: border-color .2s, box-shadow .2s;
    }

    .modal-email::placeholder {
      color: var(--muted);
    }

    .modal-email:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 3px var(--green-lo);
    }

    .modal-email.err {
      border-color: #e63946;
      animation: shake .35s cubic-bezier(.36, .07, .19, .97);
    }

    @keyframes shake {

      10%,
      90% {
        transform: translateX(-2px);
      }

      20%,
      80% {
        transform: translateX(4px);
      }

      30%,
      50%,
      70% {
        transform: translateX(-4px);
      }

      40%,
      60% {
        transform: translateX(4px);
      }
    }

    /* ─── CTA button ─── */
    .modal-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      background: var(--green);
      color: #000;
      border: none;
      padding: 13px;
      border-radius: 10px;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 9px;
      box-shadow: 0 6px 22px var(--green-lo);
      transition: transform .15s, background .2s, box-shadow .2s;
      cursor: pointer;
      overflow: hidden;
      position: relative;
    }

    .modal-cta:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 10px 28px var(--green-md);
    }

    .modal-cta:disabled {
      cursor: not-allowed;
      opacity: .8;
    }

    /* spinner */
    .modal-cta .cta-spinner {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(0, 0, 0, .25);
      border-top-color: #000;
      border-radius: 50%;
      animation: spin .7s linear infinite;
      flex-shrink: 0;
      display: none;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .modal-cta.loading .cta-spinner {
      display: block;
    }

    .modal-cta.loading .cta-label {
      opacity: .7;
    }

    /* success state */
    .modal-cta.success {
      background: #27ae60;
      box-shadow: 0 6px 22px rgba(39, 174, 96, .3);
      transform: none !important;
    }

    .modal-cta .cta-check {
      display: none;
      width: 16px;
      height: 16px;
      stroke: #000;
      fill: none;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 20;
      stroke-dashoffset: 20;
      transition: stroke-dashoffset .4s ease .1s;
    }

    .modal-cta.success .cta-check {
      display: block;
      stroke-dashoffset: 0;
    }

    .modal-cta.success .cta-spinner {
      display: none;
    }

    /* duplicate / error hint */
    .modal-hint {
      font-size: 11px;
      text-align: center;
      margin-top: -4px;
      margin-bottom: 8px;
      height: 16px;
      transition: opacity .2s;
    }

    .modal-hint.show-dup {
      color: var(--green);
      opacity: 1;
    }

    .modal-hint.show-err {
      color: #e63946;
      opacity: 1;
    }

    .modal-hint:not(.show-dup):not(.show-err) {
      opacity: 0;
    }

    .modal-back {
      display: block;
      width: 100%;
      background: transparent;
      color: var(--grey);
      border: 1px solid var(--border);
      padding: 12px;
      border-radius: 10px;
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: border-color .15s, color .15s;
    }

    .modal-back:hover {
      border-color: var(--grey);
      color: var(--white);
    }

    /* ════════════════════
   DESKTOP NAV ELEMENTS (hidden on mobile)
   ════════════════════ */
    .desk-nav {
      display: none;
    }

    .desk-right {
      display: none;
    }

    .dnl {
      display: inline-flex;
      align-items: center;
      padding: 8px 13px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--grey);
      cursor: pointer;
      white-space: nowrap;
      letter-spacing: .2px;
      transition: color .15s, background .15s;
      position: relative;
    }

    .dnl:hover {
      color: var(--white);
      background: rgba(var(--ghost), .06);
    }

    .dnl.active {
      color: var(--white);
    }

    .dnl.active::after {
      content: '';
      position: absolute;
      bottom: 3px;
      left: 13px;
      right: 13px;
      height: 2px;
      background: var(--green);
      border-radius: 2px;
    }

    /* enlaces de género del nav: subrayado activo con el color del género */
    .dnl.dnl-gc.active::after {
      background: hsl(var(--gh, 130), 72%, 55%);
    }

    .dnl.dnl-gc.active {
      color: hsl(var(--gh, 130), 72%, 68%);
    }

    html[data-theme="light"] .dnl.dnl-gc.active {
      color: hsl(var(--gh, 130), 62%, 30%);
    }

    .desk-search {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 9px;
      padding: 0 13px;
      width: 230px;
      height: 40px;
      transition: width .3s cubic-bezier(.4, 0, .2, 1), border-color .2s;
      cursor: text;
    }

    .desk-search:focus-within {
      border-color: var(--green);
      width: 290px;
      box-shadow: 0 0 0 3px var(--green-lo);
    }

    .desk-search svg {
      width: 16px;
      height: 16px;
      stroke: var(--muted);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
      transition: stroke .2s;
    }

    .desk-search:focus-within svg {
      stroke: var(--green);
    }

    .desk-search input {
      background: none;
      border: none;
      outline: none;
      color: var(--white);
      font-family: inherit;
      font-size: 13px;
      width: 100%;
    }

    .desk-search input::placeholder {
      color: var(--muted);
    }

    /* ════════════════════
   RESPONSIVE — TABLET
   ════════════════════ */
    @media (min-width:640px) {
      :root {
        --card-w: 134px;
      }

      .vis-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    /* ════════════════════
   RESPONSIVE — DESKTOP
   ════════════════════ */
    @media (min-width:900px) {
      :root {
        --card-w: 150px;
        --nav-h: 106px;
      }

      body {
        padding-bottom: 0;
      }

      .bnav {
        display: none;
      }

      /* ── Desktop 3-col nav ── */
      .topnav {
        padding: 0 48px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 32px;
        height: var(--nav-h);
        border-bottom: 1px solid rgba(var(--ghost), .05);
        background: rgba(var(--veil), .97);
      }

      .logo-img {
        height: 90px;
      }

      .desk-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
      }

      .desk-right {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .nav-right {
        display: none;
      }

      .genre-tabs {
        display: none;
      }

      #hero {
        height: 72vh;
        max-height: 780px;
        margin-top: var(--nav-h);
      }

      .hero-title {
        font-size: 58px;
      }

      .hero-content {
        bottom: 50px;
        left: 40px;
      }

      .hero-desc {
        font-size: 13px;
      }

      /* ── Page layout with sidebar ── */
      .page-wrap {
        display: grid;
        /* minmax(0,1fr), no 1fr a secas: 1fr = minmax(auto,1fr) y el min-content
           de las rejillas internas (top10, vis-grid…) inflaba la columna y
           empujaba el sidebar fuera del viewport. */
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
        gap: 0;
      }

      /* La columna de contenido nunca fuerza el ancho del grid. */
      .page-wrap > main {
        min-width: 0;
      }

      .sidebar {
        display: block;
        padding: 28px 24px 28px 20px;
        border-left: 1px solid var(--border);
        position: sticky;
        top: var(--nav-h);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--bg4) transparent;
      }

      .sidebar::-webkit-scrollbar {
        width: 3px;
      }

      .sidebar::-webkit-scrollbar-thumb {
        background: var(--bg4);
        border-radius: 2px;
      }

      .sec-head {
        padding: 0 48px;
      }

      .row {
        padding: 4px 48px 8px;
        gap: 10px;
        scroll-padding-left: 48px;
      }

      .top10-row {
        padding: 8px 48px 10px;
      }

      .ch-row {
        padding: 4px 48px 8px;
      }

      .promo {
        margin: 28px 48px 0;
        height: 140px;
      }

      .promo-title {
        font-size: 36px;
      }

      .vis-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 0 48px;
      }

      .gpill {
        height: 72px;
      }

      footer {
        padding: 50px 48px 30px;
      }

      .foot-links a {
        font-size: 11px;
      }

      .t10-num {
        font-size: 95px;
        bottom: 22px;
        right: -8px;
      }

      /* ── PC modal: centered dialog ── */
      .modal-bg {
        align-items: center;
      }

      .modal-sheet {
        border-radius: 20px;
        max-width: 460px;
        width: 90%;
        border: 1px solid var(--border);
        padding: 36px 32px 32px;
        transform: translateY(16px) scale(0.96);
      }

      .modal-bg.open .modal-sheet {
        transform: translateY(0) scale(1);
      }

      .modal-pull {
        display: none;
      }
    }

    @media (min-width:1280px) {
      :root {
        --card-w: 162px;
      }

      .topnav {
        padding: 0 56px;
      }

      .sec-head {
        padding: 0 56px;
      }

      .row {
        padding: 4px 56px 8px;
        scroll-padding-left: 56px;
      }

      .top10-row {
        padding: 8px 56px 10px;
        scroll-padding-left: 56px;
      }

      .ch-row {
        padding: 4px 56px 8px;
        scroll-padding-left: 56px;
      }

      .promo {
        margin: 28px 56px 0;
      }

      .vis-grid {
        padding: 0 56px;
      }

      footer {
        padding: 50px 56px 30px;
      }

      .sidebar {
        padding: 28px 28px 28px 22px;
      }
    }

    /* ── Sidebar: los CTA son enlaces, no botones (el diseño los traía muertos) ── */
    a.sb-premium-btn,
    a.sb-app-btn {
      text-align: center;
      text-decoration: none;
      line-height: 1.2;
    }

    /* ── Sidebar: seguir leyendo (sustituye al reto de lectura inventado) ── */
    .sb-cont {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg2);
      transition: border-color .18s;
    }

    .sb-cont:hover {
      border-color: var(--green);
    }

    .sb-cont-cover {
      width: 52px;
      height: 73px;
      flex: 0 0 auto;
      object-fit: cover;
      border-radius: 6px;
      background: var(--bg3);
    }

    .sb-cont-body {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sb-cont-title {
      color: var(--white);
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .sb-cont-meta {
      color: var(--green);
      font-size: 11px;
      font-weight: 600;
    }

    /* ── Toggle de tema: luna en oscuro, sol en claro ── */
    .theme-btn .ico-sun { display: none; }
    html[data-theme="light"] .theme-btn .ico-sun { display: block; }
    html[data-theme="light"] .theme-btn .ico-moon { display: none; }
