/* Página «Estrenos de anime de esta semana» (/estrenos-semana · /en/premieres-this-week), generada por gen-premieres.mjs.
   Extiende legal.css con el estilo neutro de la portada: fondo #121212, superficies #181818, texto en grises
   y el naranja #FF2A3B solo en acciones (botón y enlace de salto). Sin scripts. */
body.premieres { background: #121212; color: #e5e5e5; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: rgba(255, 255, 255, .08); touch-action: manipulation; }
body.premieres p, body.premieres li { color: #d4d4d4; }
body.premieres .muted { color: #b3b3b3; }
body.premieres a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .18em; transition: text-decoration-color .15s ease; }
body.premieres a:hover { color: #fff; text-decoration-color: #fff; }
body.premieres a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
body.premieres nav.site-nav a { color: #b3b3b3; }
body.premieres nav.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
body.premieres nav.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
body.premieres .crumbs, body.premieres .crumbs a { color: #8a8a8a; }
body.premieres footer.site { color: #8a8a8a; border-top-color: rgba(255, 255, 255, .08); }
body.premieres footer.site a { color: #b3b3b3; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .55rem 1rem; border-radius: .6rem; background: #FF2A3B; color: #121212 !important; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

body.premieres h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-top: 1.25rem; text-wrap: balance; }
body.premieres h2 { font-size: 1.3rem; letter-spacing: -.01em; margin-top: 2.75rem; text-wrap: balance; scroll-margin-top: 1rem; }
.dek { margin: .6rem 0 0; font-size: 1.05rem; font-weight: 600; color: #fff !important; font-variant-numeric: tabular-nums; }
.updated { margin: .2rem 0 1.25rem; font-variant-numeric: tabular-nums; }
body.premieres p.lead { color: #e5e5e5; }

/* Selector de días: 7 columnas que caben en un móvil, sin desplazamiento horizontal */
.days { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.days li { margin: 0; }
.days a { display: grid; justify-items: center; gap: .05rem; padding: .55rem .2rem; border-radius: 10px; background: #181818; text-decoration: none; transition: background-color .15s ease; }
.days a:hover { background: #222; }
.days .wd { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #b3b3b3; }
.days .dn { font-size: 1.3rem; font-weight: 800; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.days .nc { font-size: .7rem; color: #8a8a8a; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Series nuevas */
.pcards { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem .9rem; }
.pcards li { margin: 0; min-width: 0; }
.pcards a { display: block; text-decoration: none; }
.pc-img { display: block; overflow: hidden; border-radius: 10px; background: #181818; }
.pc-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.pcards a:hover .pc-img img { transform: scale(1.04); }
.pc-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: .5rem; font-size: .9rem; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.pc-m { display: block; margin-top: .15rem; font-size: .78rem; color: #b3b3b3; font-variant-numeric: tabular-nums; }

/* Calendario día a día */
.day { margin-top: 1.75rem; content-visibility: auto; contain-intrinsic-size: auto 560px; }
.day h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; scroll-margin-top: 1rem; text-wrap: balance; }
.day h3 .n { flex: none; font-size: .8rem; font-weight: 500; color: #8a8a8a; font-variant-numeric: tabular-nums; }
ol.eps { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
ol.eps li { margin: 0; }
.ep { display: grid; grid-template-columns: 3rem 2.75rem minmax(0, 1fr); align-items: center; gap: .8rem; padding: .5rem .8rem .5rem .7rem; border-radius: 10px; background: #181818; text-decoration: none; transition: background-color .15s ease; }
.ep:hover { background: #202020; }
.ep time { font-size: .95rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ep img { display: block; width: 2.75rem; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: #242424; }
.ep-x { min-width: 0; }
.ep-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.ep-m { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.45; color: #b3b3b3; }
.badge { display: inline-block; padding: .05rem .4rem; border-radius: 6px; font-size: .72rem; font-weight: 700; line-height: 1.35; vertical-align: .05em; }
.badge.new { background: rgba(16, 185, 129, .18); color: #6ee7b7; }
.badge.end { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.day .empty { margin: 0; padding: .75rem 1rem; border-radius: 10px; background: #181818; color: #b3b3b3; font-size: .92rem; }

/* Llamada a la acción: superficie neutra; el naranja, solo en el botón */
body.premieres .cta-box { background: #181818; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
body.premieres .cta-box h2 { margin-top: 0; }
body.premieres .cta-box .btn { background: #FF2A3B; color: #121212; border-radius: 10px; transition: background-color .15s ease; }
body.premieres .cta-box .btn:hover { background: #ff6d24; color: #121212; }
body.premieres .cta-box .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (min-width: 640px) {
  .ep { grid-template-columns: 3.5rem 3rem minmax(0, 1fr); padding: .55rem 1rem .55rem .9rem; }
  .ep img { width: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.premieres a, .days a, .ep, .pc-img img, body.premieres .cta-box .btn { transition: none; }
  .pcards a:hover .pc-img img { transform: none; }
}

/* REDISEÑO 2026-10-20 — alineado con el sistema común: botones en píldora, etiquetas en minúscula y sin filetes */
body.premieres .cta-box .btn { border-radius: 999px; }
body.premieres h1 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.days .wd { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.day h3 { border-bottom: 0; padding-bottom: .25rem; }

/* Estrenos con el estilo limpio de toda la web: negro profundo, filas sin caja, superficie al pasar el ratón */
body.premieres { background: #050505; }
.days a { background: #141414; }
.days a:hover { background: #1b1b1b; }
.ep { background: transparent; }
.ep:hover { background: #141414; }
.pc-img { border-radius: 14px; }
.day .empty { background: #141414; }
body.premieres .cta-box { background: #141414; border-radius: 20px; }

/* Estrenos a la altura del resto: página más ancha, titular grande, episodios en dos columnas, nada por debajo de 13 px y entrada animada */
body.premieres header.site, body.premieres nav.site-nav, body.premieres main, body.premieres footer.site { max-width: 66rem; }
body.premieres h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: .95; letter-spacing: -.05em; margin-top: 2.5rem; }
.dek { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.days .wd, .days .nc, .ep-m, .pc-m, .badge, body.premieres .muted, body.premieres .crumbs { font-size: .84rem; }
.pcards { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.6rem 1.2rem; }
.pc-t { font-size: 1rem; }
@media (min-width: 900px) { ol.eps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.2rem; } .ep img { width: 3.6rem; } .ep { grid-template-columns: 3.8rem 3.6rem minmax(0, 1fr); } }
body.premieres .cta-box { border: 0; }
body.premieres h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.035em; }
@keyframes pRise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes pFade { from { opacity: 0; } to { opacity: 1; } }
body.premieres main > h1, body.premieres main > .dek, body.premieres main > .updated, .days li, .pcards li { animation: pRise 600ms cubic-bezier(.22,1,.36,1) backwards; }
body.premieres main > .dek { animation-delay: 80ms; } body.premieres main > .updated { animation-delay: 140ms; }
.days li:nth-child(1) { animation-delay: 160ms; } .days li:nth-child(2) { animation-delay: 200ms; } .days li:nth-child(3) { animation-delay: 240ms; } .days li:nth-child(4) { animation-delay: 280ms; } .days li:nth-child(5) { animation-delay: 320ms; } .days li:nth-child(6) { animation-delay: 360ms; } .days li:nth-child(7) { animation-delay: 400ms; }
.pcards li:nth-child(2) { animation-delay: 60ms; } .pcards li:nth-child(3) { animation-delay: 120ms; } .pcards li:nth-child(4) { animation-delay: 180ms; } .pcards li:nth-child(n+5) { animation-delay: 240ms; }
@supports (animation-timeline: view()) { .day h3, ol.eps li { animation: pRise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; } }
@media (prefers-reduced-motion: reduce) { body.premieres main > h1, body.premieres main > .dek, body.premieres main > .updated, .days li, .pcards li, .day h3, ol.eps li { animation-name: pFade; } }
/* Ronda 2: los episodios de hoy con portada grande, la serie nueva junto a su título, lectura a 70 caracteres y sin revelados en las listas largas */
@supports (animation-timeline: view()) { .day h3, ol.eps li { animation: none; } }
body.premieres p.lead { max-width: 70ch; font-size: 1.1rem; }
#calendario { margin-top: 5rem; }
#calendario + .day .ep { grid-template-columns: 4rem 7.5rem minmax(0, 1fr); padding: .7rem 1rem; }
#calendario + .day .ep img { width: 7.5rem; border-radius: 10px; }
#calendario + .day .ep-t { font-size: 1.1rem; }
@media (min-width: 900px) {
  section[aria-labelledby="nuevas"] { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: start; }
  section[aria-labelledby="nuevas"] > h2, section[aria-labelledby="nuevas"] > p { grid-column: 1; }
  section[aria-labelledby="nuevas"] > .pcards { grid-column: 2; grid-row: 1 / span 3; margin-top: 2.75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
}
body.premieres .crumbs * { font-size: inherit; }

/* ===== DARK EDITORIAL (2026-10-21): estrenos con el sistema de DESIGN.md ===== */
.days a { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
body.premieres main h2 { margin-top: 5.5rem; }
.days a:hover { background: rgba(255,255,255,.07); border-color: var(--line-hover); }
.days .wd, .days .nc { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.days .dn { color: var(--ink); }
.ep { border: 1px solid transparent; border-radius: 16px; } .ep:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.ep time, .ep-m, .pc-m, .badge, .day h3 .n { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ep time { color: var(--ink); }
.ep img, .pc-img { border: 1px solid var(--line); }
.badge { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 2px 7px; }
.badge.new { color: var(--crimson); border-color: rgba(255,42,59,.4); background: rgba(255,42,59,.1); }
.day .empty { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); }
body.premieres .cta-box { background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--hl); }
