/* Bayardo v3 · "canal": escenario de estrenos, series como pósters, raíles, ficha de serie. */

:root { --display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif; --gold: #c9a24a; }

/* El canal siempre es oscuro, independientemente del modo elegido. */
.canal {
  --paper: #0f0d0b; --paper-2: #17140f; --paper-3: #221d17; --ink: #f1ece3; --ink-2: #cfc6b8; --muted: #8f8679;
  --line: #2a251f; --line-2: #3a332b; --red: #d0423f; --red-2: #e05a56; --dark: #0a0908; --dark-2: #100e0c; --dark-3: #1b1713;
  background: var(--paper); color: var(--ink); color-scheme: dark;
}
.canal .section__head--canal { border-color: var(--line-2); }
.canal .section__head--canal .h2 { font-family: var(--display); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.canal .section__head--canal .more { color: var(--ink-2); border-color: var(--line-2); }
.canal .section__head--canal .more:hover { color: var(--red); border-color: var(--red); }
.canal .kicker { color: var(--gold); }
.canal .btn--small { border-color: var(--line-2); color: var(--ink); }
.canal .btn--small:hover { border-color: var(--red); }
.h1--display, .h2--display { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.h1--display { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); }
.canal .section { padding: clamp(36px, 5vw, 72px) 0; }
.canal .section + .section { padding-top: 0; }
.canal .support { margin-top: 0; }
.canal .videos, .canal .game-section { margin-top: 0; background: var(--dark-2); padding: clamp(36px, 5vw, 72px) 0 !important; }
.canal .videos + .faces-section, .canal .game-section + .tlstrip { padding-top: clamp(36px, 5vw, 72px) !important; }
.canal .nlhome { background: var(--dark-2); margin-top: 0; }
.canal .nlhome__fig { background: #000; }
.canal .nl__row input { background: var(--dark-3); border-color: var(--line-2); color: #fff; }
.canal .map__land, .map__land { fill: #2c261f; stroke: #4a4238; }
:root[data-theme="light"] .map__land { fill: var(--paper-3); stroke: var(--line-2); }
.canal .map__dot { stroke: var(--paper); }
.canal .datebadge { border-color: var(--ink-2); background: var(--paper-2); }
.canal .tlstrip__bar-el { background: var(--paper-3); border-color: var(--ink-2); }
.canal .tlstrip__c { border-color: var(--line-2); }
.canal .community__list, .canal .community__list li + li, .canal .community__list li:nth-child(n+3) { border-color: var(--line-2); }
.canal .shelf__row img, .canal .cover { box-shadow: 0 10px 30px -12px rgb(0 0 0 / .8); }
@media (min-width: 961px) { .shelf__row--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; } .shelf__row--8 .shelf__title { font-size: .86rem; } }
.canal .teaser__media img, .canal .face img { filter: none; }
.canal .face img { filter: grayscale(1) sepia(.2) contrast(1.05); }
.canal .face a:hover img { filter: none; }
.canal .game__opt, .canal .searchbar input { background: var(--paper-2); }
.canal .pagination .page-numbers { border-color: var(--line-2); }
.canal .pagination .page-numbers.current { background: var(--ink); color: var(--paper); }

/* Badges */
.badge { display: inline-flex; align-items: center; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; background: rgb(255 255 255 / .14); color: #fff; backdrop-filter: blur(6px); }
.badge--new { background: var(--red); color: #fff; }
a.badge:hover { background: rgb(255 255 255 / .28); color: #fff; }

/* Escenario (hero de estrenos) */
.stage { position: relative; height: calc(100svh - 78px); min-height: 520px; max-height: 820px; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; display: grid; }
.stage__slide { grid-area: 1 / 1; display: flex; align-items: flex-end; opacity: 0; transition: opacity 1.1s var(--ease); pointer-events: none; }
.stage__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.stage__art { position: absolute; inset: 0; z-index: -1; }
.stage__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.04); transition: transform 9s linear; }
.stage__slide.is-active .stage__art img { transform: scale(1.14); }
.stage__slide::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgb(10 9 8 / .98) 0%, rgb(10 9 8 / .78) 32%, rgb(10 9 8 / .25) 62%, rgb(10 9 8 / .35) 100%), linear-gradient(90deg, rgb(10 9 8 / .72) 0%, rgb(10 9 8 / .25) 55%, transparent 100%); }
.stage__slide::after { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .08; pointer-events: none; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.stage__in { position: relative; z-index: 1; padding: 96px 0 56px; max-width: min(var(--wrap), 100% - var(--gutter) * 2); }
.stage__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stage__year { font-family: var(--sans); font-size: .76rem; letter-spacing: .08em; color: var(--on-dark-2); }
.stage__title { font-family: var(--display); font-size: clamp(2.6rem, 1.2rem + 4.8vw, 5.4rem); line-height: .92; letter-spacing: .02em; text-transform: uppercase; max-width: 18ch; text-shadow: 0 4px 40px rgb(0 0 0 / .5); text-wrap: balance; }
.stage__title a:hover { color: #fff; }
.stage__dek { font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: var(--on-dark-2); max-width: 58ch; margin: 14px 0 20px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stage__min { font-family: var(--sans); font-size: .78rem; color: var(--on-dark-2); }
.stage__brand { position: absolute; right: var(--gutter); top: 28px; z-index: 2; display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: .76rem; color: var(--on-dark-2); }
.stage__brand strong { display: block; color: #fff; font-weight: 600; font-size: .9rem; }
.stage__brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid rgb(255 255 255 / .35); }
.stage__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.stage__dots button { width: 44px; height: 24px; display: grid; place-content: center; }
.stage__dots span { display: block; width: 36px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .3); overflow: hidden; position: relative; }
.stage__dots [aria-selected="true"] span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotfill var(--auto, 7s) linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .stage__slide.is-active .stage__art img { transform: none; transition: none; } .stage__dots [aria-selected="true"] span::after { animation: none; transform: none; } }
@media (max-width: 760px) {
  .stage { min-height: 480px; max-height: none; }
  .stage__in { padding: 110px 0 48px; }
  .stage__brand { top: 20px; right: auto; left: var(--gutter); }
  .stage__brand img { width: 40px; height: 40px; }
  .stage__title { font-size: clamp(2.2rem, 9.5vw, 3.4rem); }
  .stage__dek { -webkit-line-clamp: 2; }
}

/* Cinta de datos */
.ticker { background: var(--red); color: #fff; overflow: hidden; font-family: var(--display); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.ticker__track { display: flex; width: max-content; gap: 28px; padding: 12px 0; animation: ticker 40s linear infinite; }
.ticker__track i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .6); align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Raíles */
.rail-section { padding: clamp(36px, 5vw, 72px) 0 0 !important; }
.rail-section .section__head { margin-bottom: 18px; }
.rail { position: relative; }
.rail__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 28px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { scroll-snap-align: start; flex: none; }
.rail__btn { position: absolute; top: 0; bottom: 28px; width: 56px; z-index: 2; font-size: 3rem; color: #fff; background: linear-gradient(90deg, var(--paper) 10%, transparent); opacity: 0; transition: opacity .25s; display: none; }
.rail__btn--prev { left: 0; }
.rail__btn--next { right: 0; background: linear-gradient(270deg, var(--paper) 10%, transparent); }
@media (hover: hover) and (min-width: 900px) { .rail__btn { display: block; } .rail:hover .rail__btn { opacity: 1; } .rail__btn[disabled] { opacity: 0 !important; } }
.rail__track--posters > li { width: clamp(170px, 16vw, 230px); }
.rail__track--eps > li { width: clamp(260px, 24vw, 340px); }
.canal .videos__row { width: auto; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }

/* Póster de serie */
.poster { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--dark-3); color: #fff; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s; box-shadow: 0 10px 30px -14px rgb(0 0 0 / .8); }
.poster__art { position: absolute; inset: 0; z-index: -1; background: var(--dark-3); filter: sepia(.25) contrast(1.05); transition: transform .8s var(--ease), filter .5s; }
.poster__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
img.lazy { opacity: 0; transition: opacity .5s var(--ease); background: var(--dark-3); }
img.lazy.is-loaded { opacity: 1; }
.stage__art img.lazy { opacity: 1; }
.poster::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(10 9 8 / .05) 0%, rgb(10 9 8 / .2) 45%, rgb(10 9 8 / .92) 100%); }
.poster__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 16px 14px; display: grid; gap: 4px; }
.poster__word { font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem); line-height: .95; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 18px rgb(0 0 0 / .6); }
.poster__meta { font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #e2b8b0; }
.poster:hover { transform: translateY(-6px) scale(1.02); color: #fff; box-shadow: 0 24px 40px -18px rgb(0 0 0 / .9); }
.poster:hover .poster__art { transform: scale(1.06); filter: none; }
.posters-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; padding-bottom: 96px; }
.posters-grid__tag { font-size: .95rem; color: var(--ink-2); margin-top: 10px; line-height: 1.3; }
@media (max-width: 960px) { .posters-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .posters-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }

/* Tarjeta de estreno */
.ep { display: grid; gap: 10px; }
.ep__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--dark-3); }
.ep__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ep:hover .ep__media img { transform: scale(1.05); }
.ep__media .badge { position: absolute; left: 10px; top: 10px; }
.ep__len { position: absolute; right: 10px; bottom: 10px; font-family: var(--sans); font-size: .7rem; font-weight: 600; padding: 3px 7px; border-radius: 3px; background: rgb(0 0 0 / .75); color: #fff; }
.ep__meta { display: flex; gap: 10px; align-items: center; font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.ep__cat { color: var(--gold); font-weight: 600; }
.ep__year { color: var(--muted); }
.ep__title { font-size: 1.15rem; line-height: 1.2; }
.ep__title a:hover { color: var(--red); }
.eps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
@media (max-width: 960px) { .eps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eps-grid { grid-template-columns: 1fr; } }

/* Ficha de serie */
.show { position: relative; min-height: min(72vh, 680px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.show__art { position: absolute; inset: 0; z-index: -1; background: var(--backdrop) center 25% / cover no-repeat var(--dark); transform: scale(1.04); }
.show::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, var(--paper) 0%, rgb(15 13 11 / .8) 30%, rgb(15 13 11 / .25) 65%, rgb(15 13 11 / .4) 100%), linear-gradient(90deg, rgb(15 13 11 / .7) 0%, transparent 60%); }
.show__in { position: relative; z-index: 1; padding: clamp(100px, 16vw, 160px) 0 clamp(28px, 4vw, 48px); }
.show__title { font-family: var(--display); font-size: clamp(3.2rem, 2rem + 6vw, 7.5rem); line-height: .92; letter-spacing: .02em; text-transform: uppercase; margin: 10px 0 12px; text-shadow: 0 4px 40px rgb(0 0 0 / .5); }
.show__tag { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: var(--on-dark-2); max-width: 56ch; }
.show__stats { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 18px 0 24px; font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.show__stats span + span::before { content: "|"; margin-right: 22px; color: rgb(255 255 255 / .35); }
.show__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  /* En columna: así el cambio de fuente no reparte las líneas de otra forma y la cabecera no salta. */
  .show__stats { flex-direction: column; gap: 6px; }
  .show__stats span + span::before { content: none; margin: 0; }
}
.show__body { padding: clamp(24px, 4vw, 48px) 0 96px; }
.canal .pagehead__count, .canal .pagehead__desc { color: var(--ink-2); }

/* Artículo en estilo canal */
.show--article { min-height: min(78vh, 760px); }
.show__art--img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.show--portrait .show__art--img img { object-position: center 12%; }
.show--article::before { background: linear-gradient(0deg, var(--paper) 0%, rgb(15 13 11 / .85) 28%, rgb(15 13 11 / .3) 60%, rgb(15 13 11 / .45) 100%), linear-gradient(90deg, rgb(15 13 11 / .75) 0%, rgb(15 13 11 / .2) 55%, transparent 100%); }
.show__title--article { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); max-width: 20ch; }
.show--article .stage__badges { margin-bottom: 14px; }
.show--article .stage__year:hover { color: #fff; }
.article__cap { font-family: var(--sans); font-size: .76rem; color: var(--muted); margin-top: 10px; }
.article__layout { padding-top: clamp(20px, 3vw, 40px); }
.article .pager { border-color: var(--line-2); }
.article .related { background: var(--dark-2); }
.eps-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .eps-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eps-grid--4 { grid-template-columns: 1fr; } }
.prose { color: var(--ink); }
.prose p:first-of-type::first-letter { color: var(--red); }
.prose figure.wp-block-image, .prose .wp-block-image { width: auto !important; max-width: 100%; }
/* Caja reservada por width/height (sin salto) y, si es muy alta, se limita y se centra dentro de la caja. */
.prose figure.wp-block-image img, .prose .wp-block-image img, .prose p > img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; object-position: center; margin-inline: auto; border-radius: 6px; }
.prose img.alignleft, .prose img.alignright, .prose .alignleft, .prose .alignright { float: none; margin-inline: auto; }
.prose .wp-block-image.alignwide, .prose .alignfull { margin-inline: 0; width: auto; max-width: 100%; }

/* Anuncios: espacio reservado, etiqueta discreta, nunca pegados ni flotantes */
.ad { display: grid; gap: 6px; margin: clamp(28px, 4vw, 44px) 0; }
.ad__label { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad .adsbygoogle { min-height: 250px; background: var(--paper-2); border-radius: 6px; }
.ad--in-article .adsbygoogle { min-height: 280px; }
.ad--portada { margin: 0 0 clamp(36px, 5vw, 72px); }
.ad--portada .adsbygoogle { min-height: 120px; }
@media (max-width: 760px) { .ad--portada .adsbygoogle { min-height: 250px; } }
.ad:empty { display: none; }

/* Móvil primero: sin desbordes, textos legibles (≥12 px) y zonas de toque cómodas */
.pagehead, .pagehead > *, .searchbar { min-width: 0; }
.searchbar { flex-wrap: wrap; }
.searchbar input { min-width: 0; flex: 1 1 200px; }
.more, .footer__col a, .teaser__meta a, .book__actions .more, .stage__year, .ep__cat, .map__rankbtn, .day__days a, .yt__link, .article__tags a, .pager a .kicker { display: inline-flex; align-items: center; min-height: 32px; }
.footer__col a { min-height: 36px; }
.teaser__meta .kicker { padding: 4px 0; }
@media (max-width: 760px) {
  .kicker, .teaser__foot, .teaser__meta .year, .ep__meta, .poster__meta, .badge, .face__year, .map__n, .community__label, .today__min,
  .ad__label, .nl__legal, .yt__meta, .hero__stats span, .search__hint, .stage__year, .stage__min, .article__byline, .article__cap,
  .tl__decade-label, .xcard__meta, .pagehead__count, .explore__count, .footer__col a span, .copy, .lema, .hero__lema, .tlstrip__count { font-size: .78rem; }
  .more { font-size: .86rem; }
  .yt__link { font-size: .78rem; }
  .ep__meta { gap: 8px; }
  .face__cap { opacity: 1; transform: none; }
}

/* Cabeceras de página en tipografía de cartel, para que todo sea uniforme */
.pagehead .h1 { font-family: var(--display); font-size: clamp(2.8rem, 1.8rem + 4.5vw, 6rem); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.pagehead .kicker { color: var(--gold); }
.section__head { border-color: var(--line-2); }
.section__head .h2 { font-family: var(--display); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.tl__century-title { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tl__century-title span { background: var(--paper); }
.datebadge { background: var(--paper-2); border-color: var(--ink-2); }
.day__title, .map__title, .game__title, .book__title { font-family: var(--serif); }
.footer { border-top: 1px solid var(--line-2); }
.related { background: var(--dark-2); }
.masthead { border-bottom-color: var(--line-2); }
