/* DimeMasTV: estilos neutros que funcionan con cualquier tema, claro u oscuro. */
.dmtv-wrap { max-width: 520px; margin: 0 auto; padding: 0 12px; }
.dmtv-meta { font-size: .9rem; opacity: .75; margin: 0 0 .5rem; }

.dmtv-stage {
	position: relative;
	aspect-ratio: 9 / 16;
	width: min(100%, calc(80vh * 9 / 16));
	margin: 0 auto;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
}
.dmtv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.dmtv-locked { background-size: cover; background-position: center; }
.dmtv-locked::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.dmtv-locked-inner {
	position: relative; z-index: 1; height: 100%;
	display: flex; flex-direction: column; justify-content: center; gap: .9rem;
	padding: 1.25rem; color: #fff; text-align: center;
}
.dmtv-locked-inner h2 { color: #fff; font-size: 1.25rem; margin: 0; }
.dmtv-chosen { margin: 0; }
.dmtv-login a { color: #fff; text-decoration: underline; }

.dmtv-offers { display: flex; flex-direction: column; gap: .6rem; }

.dmtv-btn {
	display: flex; justify-content: space-between; align-items: center; gap: .75rem;
	padding: .8rem 1rem; border-radius: 10px; border: 2px solid currentColor;
	text-decoration: none; font-weight: 600; color: inherit; background: transparent;
	cursor: pointer; line-height: 1.2;
}
.dmtv-btn:hover, .dmtv-btn:focus-visible { filter: brightness(1.1); }
.dmtv-btn-primary { background: #c2410c; border-color: #c2410c; color: #fff; }
.dmtv-locked .dmtv-btn { color: #fff; }
.dmtv-price { font-weight: 700; white-space: nowrap; }

.dmtv-nav { display: flex; justify-content: space-between; gap: .6rem; margin: 1rem 0 .25rem; }
.dmtv-nav .dmtv-btn { flex: 1; justify-content: center; }
.dmtv-next:not(.is-ready) { opacity: .85; }

.dmtv-decision {
	margin: 1rem 0; padding: 1.1rem; border-radius: 14px;
	border: 2px solid #c2410c; background: rgba(194, 65, 12, .08);
}
.dmtv-decision[hidden] { display: none; }
.dmtv-decision-title { font-size: 1.15rem; margin: 0 0 .8rem; text-align: center; }
.dmtv-options { display: grid; gap: .6rem; }
.dmtv-choice {
	padding: .9rem 1rem; border-radius: 10px; border: 2px solid #c2410c;
	background: #c2410c; color: #fff; font-weight: 600; font-size: 1rem;
	cursor: pointer; text-align: center;
}
.dmtv-choice:nth-child(2) { background: transparent; color: inherit; }
.dmtv-choice:disabled { opacity: .55; cursor: wait; }
.dmtv-choice.is-current { box-shadow: 0 0 0 3px rgba(194, 65, 12, .35); }
.dmtv-tag { display: block; font-size: .75rem; font-weight: 500; opacity: .85; margin-top: .2rem; }

.dmtv-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.dmtv-switch-wrap { text-align: center; font-size: .9rem; }
.dmtv-msg { text-align: center; min-height: 1.4em; font-size: .9rem; }
.dmtv-notice { padding: 1rem; border: 1px dashed currentColor; border-radius: 10px; text-align: center; }

.dmtv-grid { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .5rem; }
.dmtv-cell {
	display: flex; align-items: center; justify-content: center; height: 48px;
	border-radius: 8px; border: 2px solid #c2410c; font-weight: 700; text-decoration: none; color: inherit;
}
.dmtv-cell.is-locked { opacity: .5; border-style: dashed; }
.dmtv-cell.is-pending { border-style: dotted; opacity: .5; }
.dmtv-legend { font-size: .85rem; opacity: .75; }

.dmtv-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.dmtv-card { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit; }
.dmtv-poster { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: rgba(128,128,128,.25); }
.dmtv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.dmtv-poster-empty { display: flex; height: 100%; align-items: center; justify-content: center; padding: .75rem; text-align: center; font-weight: 700; }
.dmtv-card-title { font-weight: 700; line-height: 1.2; }
.dmtv-card-text { font-size: .85rem; opacity: .75; }
.dmtv-card:hover .dmtv-poster, .dmtv-card:focus-visible .dmtv-poster { outline: 3px solid #c2410c; }

.dmtv-rail { margin: 1.75rem 0; }
.dmtv-rail-title { font-size: 1.25rem; margin: 0 0 .75rem; }
.dmtv-rail-title a { color: inherit; text-decoration: none; }
.dmtv-rail-track { display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dmtv-rail-track .dmtv-card { flex: 0 0 150px; scroll-snap-align: start; }
@media (min-width: 700px) { .dmtv-rail-track .dmtv-card { flex-basis: 190px; } }

.dmtv-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.dmtv-chip { padding: .25rem .8rem; border: 1px solid currentColor; border-radius: 999px; font-size: .85rem; text-decoration: none; }
.dmtv-h { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.dmtv-start { display: inline-flex; min-width: 220px; justify-content: center; }
.dmtv-trailer { margin: 0 0 .5rem; }
.dmtv-chars { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dmtv-chars li { padding: .7rem .9rem; border: 1px solid rgba(128,128,128,.4); border-radius: 10px; }
.dmtv-chars strong { display: block; }
.dmtv-chars span { display: block; font-size: .92rem; opacity: .8; margin-top: .15rem; }
.dmtv-empty { opacity: .8; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ======================================================================
 * Diseño v1.2: fondo negro con contraste amarillo (acciones), azul neón
 * (títulos de desbloqueo) y rojo (etiquetas). Inspirado en las plataformas
 * de microdramas: portada destacada, filas deslizables y tarjetas 3:4.
 * ====================================================================== */
:root {
	--dmtv-yellow: #ffd21f;
	--dmtv-blue: #1ad8ff;
	--dmtv-red: #ff3b4e;
}

/* Botones: el principal es amarillo con texto negro (contraste alto). */
.dmtv-btn-primary { background: var(--dmtv-yellow); border-color: var(--dmtv-yellow); color: #000; }
.dmtv-btn-primary:hover, .dmtv-btn-primary:focus-visible { filter: brightness(1.08); color: #000; }
.dmtv-locked .dmtv-btn-primary { color: #000; }
.dmtv-btn { min-height: 44px; }
.dmtv-btn-ghost { background: transparent; }

/* Tarjetas 3:4 como en las plataformas de referencia. */
.dmtv-poster { position: relative; aspect-ratio: 3 / 4; }
.dmtv-card:hover .dmtv-poster, .dmtv-card:focus-visible .dmtv-poster { outline: 3px solid var(--dmtv-yellow); }
.dmtv-badges { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.dmtv-badge { font-size: .68rem; font-weight: 800; letter-spacing: .03em; padding: 2px 7px; border-radius: 4px; line-height: 1.4; }
.dmtv-badge-new { background: var(--dmtv-red); color: #fff; }
.dmtv-badge-free { background: var(--dmtv-yellow); color: #000; }

/* Filas deslizables con título y línea de acento. */
.dmtv-rail-title { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .55rem; }
.dmtv-rail-title::before { content: ""; width: 4px; height: 1.1em; background: var(--dmtv-yellow); border-radius: 2px; }

/* Categorías como chips. */
.dmtv-filters { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem; margin: 0 0 .5rem; -webkit-overflow-scrolling: touch; }
.dmtv-filter { flex: 0 0 auto; padding: .45rem 1rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; color: inherit; }
.dmtv-filter.is-active { background: var(--dmtv-yellow); border-color: var(--dmtv-yellow); color: #000; }
.dmtv-chip { border-color: rgba(255,255,255,.4); }

/* Portada destacada: el afiche de fondo, degradado a negro y texto abajo. */
.dmtv-hero {
	position: relative; overflow: hidden; border-radius: 16px; margin: 0 0 1.5rem;
	min-height: 440px; display: flex; align-items: flex-end;
	background: #0a0a0f var(--dmtv-hero-img, none) center top / cover no-repeat;
}
.dmtv-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 8%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.1) 100%); }
.dmtv-hero-inner { position: relative; z-index: 1; padding: 1.25rem; width: 100%; max-width: 640px; }
.dmtv-hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .6rem; }
.dmtv-hero-tags span { font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; }
.dmtv-hero-title { font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.05; margin: 0 0 .5rem; color: #fff; }
.dmtv-hero-text { margin: 0 0 1rem; color: #e6e6ee; max-width: 52ch; }
.dmtv-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.dmtv-hero-actions .dmtv-btn { justify-content: center; }
@media (min-width: 800px) { .dmtv-hero { min-height: 520px; } .dmtv-hero-inner { padding: 2.5rem; } }

/* DESBLOQUEA TODA LA HISTORIA: azul neón sobre negro. */
.dmtv-unlock-title {
	color: var(--dmtv-blue); text-transform: uppercase; font-weight: 900; letter-spacing: .02em;
	line-height: 1.05; font-size: clamp(1.5rem, 5.5vw, 2.4rem); margin: 0;
	text-shadow: 0 0 14px rgba(26,216,255,.55), 0 0 32px rgba(26,216,255,.25);
}
.dmtv-locked-inner .dmtv-unlock-title { color: var(--dmtv-blue); font-size: clamp(1.35rem, 6vw, 1.9rem); }
.dmtv-unlock {
	margin: 2rem 0; padding: 1.75rem 1.25rem; text-align: center; background: #000;
	border: 1px solid rgba(26,216,255,.45); border-radius: 16px;
	box-shadow: 0 0 0 1px rgba(26,216,255,.15), 0 0 28px rgba(26,216,255,.12);
}
.dmtv-unlock p { max-width: 52ch; margin-left: auto; margin-right: auto; color: #e6e6ee; }
.dmtv-unlock .dmtv-btn { display: inline-flex; justify-content: center; min-width: 220px; }
.dmtv-locked::before { background: rgba(0,0,0,.82); }
.dmtv-price { font-weight: 800; }
.dmtv-offers .dmtv-btn:not(.dmtv-btn-primary) { border-color: var(--dmtv-blue); color: var(--dmtv-blue); }

/* Decisiones: mismo lenguaje de color. */
.dmtv-decision { border-color: var(--dmtv-blue); background: rgba(26,216,255,.07); }
.dmtv-choice { background: var(--dmtv-yellow); border-color: var(--dmtv-yellow); color: #000; }
.dmtv-choice:nth-child(2) { background: transparent; border-color: var(--dmtv-blue); color: var(--dmtv-blue); }
.dmtv-choice.is-current { box-shadow: 0 0 0 3px rgba(255,210,31,.35); }

/* Cuadrícula de episodios. */
.dmtv-cell { border-color: var(--dmtv-yellow); }
.dmtv-cell.is-open:hover { background: var(--dmtv-yellow); color: #000; }


/* Corrige el color de los enlaces del tema oscuro sobre botones y tarjetas. */
body.dmtv-dark .dmtv-btn-primary, body.dmtv-dark .dmtv-btn-primary:hover, body.dmtv-dark .dmtv-btn-primary:focus-visible,
body.dmtv-dark .dmtv-locked .dmtv-btn-primary, body.dmtv-dark .dmtv-choice, body.dmtv-dark .dmtv-filter.is-active { color: #000; }
body.dmtv-dark .dmtv-btn:not(.dmtv-btn-primary) { color: #fff; border-color: var(--dmtv-blue); }
body.dmtv-dark .dmtv-card, body.dmtv-dark .dmtv-card:hover { color: #fff; text-decoration: none; }
body.dmtv-dark .dmtv-filter:not(.is-active) { color: #fff; }
body.dmtv-dark .dmtv-choice:nth-child(2) { color: var(--dmtv-blue); background: transparent; }
body.dmtv-dark .dmtv-cell { color: #fff; }
body.dmtv-dark .dmtv-cell.is-open:hover { color: #000; }
body.home .wp-block-post-title, body.page-id-20 .wp-block-post-title { display: none; }

/* ======================================================================
 * v1.3: páginas internas (Precios, Ayuda) y cuenta de WooCommerce.
 * ====================================================================== */
.dmtv-page { max-width: 960px; margin: 0 auto; }
.dmtv-page-hero { text-align: center; padding: 2rem 1rem 1.5rem; }
.dmtv-page-hero h2 { margin: 0 0 .75rem; }
.dmtv-page-hero p { margin: 0 auto; max-width: 56ch; color: #d6d6e0; }
.dmtv-kicker { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #000; background: var(--dmtv-yellow); padding: .2rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.dmtv-section-title { font-size: 1.15rem; font-weight: 800; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .55rem; }
.dmtv-section-title::before { content: ""; width: 4px; height: 1.1em; background: var(--dmtv-yellow); border-radius: 2px; }

.dmtv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; counter-reset: s; }
.dmtv-steps li { counter-increment: s; background: #101014; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1rem 1rem 1rem 3.4rem; position: relative; }
.dmtv-steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--dmtv-yellow); color: #000; font-weight: 900; display: grid; place-items: center; }
.dmtv-steps strong { display: block; margin-bottom: .15rem; }
.dmtv-steps span { color: #c4c4d0; font-size: .95rem; }

.dmtv-plans { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.dmtv-plan { background: #101014; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dmtv-plan h3 { margin: 0; font-size: 1.05rem; }
.dmtv-plan small { display: block; color: #b5b5c3; margin-top: .15rem; }
.dmtv-plan-price { font-size: 1.5rem; font-weight: 900; color: #fff; white-space: nowrap; }
.dmtv-plan-free { border-color: rgba(255,210,31,.5); }
.dmtv-plan-free .dmtv-plan-price { color: var(--dmtv-yellow); }
.dmtv-plan-best { position: relative; border: 2px solid var(--dmtv-blue); background: #000; box-shadow: 0 0 22px rgba(26,216,255,.22); flex-direction: column; align-items: flex-start; padding: 1.4rem 1.25rem; }
.dmtv-plan-best .dmtv-plan-tag { position: absolute; top: -.8rem; right: 1rem; background: var(--dmtv-red); color: #fff; font-size: .72rem; font-weight: 800; padding: .2rem .7rem; border-radius: 999px; letter-spacing: .05em; }
.dmtv-plan-best h3 { color: var(--dmtv-blue); text-transform: uppercase; font-size: 1.3rem; text-shadow: 0 0 12px rgba(26,216,255,.5); }
.dmtv-plan-best .dmtv-plan-price { font-size: 2.2rem; }
.dmtv-plan-best s { color: #9a9aa8; font-size: 1.05rem; font-weight: 600; margin-left: .4rem; }
.dmtv-plan-best .dmtv-btn { width: 100%; justify-content: center; }
@media (min-width: 700px) { .dmtv-steps { grid-template-columns: repeat(3, 1fr); } .dmtv-plans { grid-template-columns: 1fr 1fr; } .dmtv-plan-free, .dmtv-plan-best { grid-column: 1 / -1; } }

.dmtv-faq details { background: #101014; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; margin: 0 0 .6rem; }
.dmtv-faq summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.dmtv-faq summary::-webkit-details-marker { display: none; }
.dmtv-faq summary::after { content: "+"; color: var(--dmtv-yellow); font-size: 1.4rem; line-height: 1; }
.dmtv-faq details[open] summary::after { content: "–"; }
.dmtv-faq details[open] { border-color: rgba(255,210,31,.5); }
.dmtv-faq details p { margin: 0; padding: 0 1.1rem 1rem; color: #cfcfda; }

.dmtv-contact { text-align: center; margin: 2rem 0; padding: 1.5rem 1.25rem; background: #000; border: 1px solid rgba(26,216,255,.45); border-radius: 16px; box-shadow: 0 0 24px rgba(26,216,255,.12); }
.dmtv-contact h3 { margin: 0 0 .4rem; color: var(--dmtv-blue); text-transform: uppercase; }
.dmtv-contact p { margin: 0 0 1rem; color: #d6d6e0; }

/* Cuenta, carrito y pago de WooCommerce en negro. */
body.dmtv-dark .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; gap: .5rem; overflow-x: auto; }
body.dmtv-dark .woocommerce-MyAccount-navigation li a { display: block; white-space: nowrap; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; color: #fff; }
body.dmtv-dark .woocommerce-MyAccount-navigation li.is-active a { background: var(--dmtv-yellow); border-color: var(--dmtv-yellow); color: #000; }
@media (min-width: 800px) { body.dmtv-dark .woocommerce-MyAccount-navigation { float: left; width: 24%; } body.dmtv-dark .woocommerce-MyAccount-navigation ul { flex-direction: column; } body.dmtv-dark .woocommerce-MyAccount-content { float: right; width: 72%; } }
body.dmtv-dark .woocommerce-MyAccount-content, body.dmtv-dark .woocommerce form.login, body.dmtv-dark .woocommerce form.register, body.dmtv-dark .woocommerce-form-login { color: #e6e6ee; }
body.dmtv-dark .woocommerce form.login, body.dmtv-dark .woocommerce form.register { border-radius: 14px; padding: 1.25rem; }
body.dmtv-dark .woocommerce table.shop_table, body.dmtv-dark .woocommerce table.shop_table td, body.dmtv-dark .woocommerce table.shop_table th { border-color: rgba(255,255,255,.14); }
body.dmtv-dark .woocommerce-orders-table a.button, body.dmtv-dark .woocommerce a.button { background: var(--dmtv-yellow); color: #000; border-radius: 8px; font-weight: 800; }
body.dmtv-dark .wc-block-components-totals-wrapper, body.dmtv-dark .wc-block-cart, body.dmtv-dark .wc-block-checkout, body.dmtv-dark .wc-block-components-product-name, body.dmtv-dark .wc-block-components-text-input label, body.dmtv-dark .wc-block-components-checkbox label { color: #e6e6ee; }
body.dmtv-dark .wc-block-components-button:not(.is-link), body.dmtv-dark .wc-block-cart__submit-button, body.dmtv-dark .wc-block-components-checkout-place-order-button { background: var(--dmtv-yellow); color: #000; border: 0; font-weight: 800; border-radius: 10px; }
body.dmtv-dark .wc-block-components-text-input input, body.dmtv-dark .wc-block-components-form .wc-block-components-text-input input { background: #101014; color: #fff; border-color: rgba(255,255,255,.28); }
body.dmtv-dark .wc-block-components-text-input label { color: #b5b5c3; }
body.dmtv-dark .wc-block-components-radio-control-accordion-option, body.dmtv-dark .wc-block-components-radio-control__option { color: #e6e6ee; }

/* Oculta la línea "Escrito por … en" de la plantilla en series y episodios. */
body.single-dmtv_episode main .wp-block-group.has-small-font-size.is-layout-flex,
body.single-dmtv_series main .wp-block-group.has-small-font-size.is-layout-flex { display: none; }

/* ======================================================================
 * v1.4: Me gusta (corazón), franja «Próximamente» y avisos.
 * ====================================================================== */
.dmtv-card-wrap { position: relative; }
.dmtv-rail-track .dmtv-card-wrap { flex: 0 0 150px; scroll-snap-align: start; }
@media (min-width: 700px) { .dmtv-rail-track .dmtv-card-wrap { flex-basis: 190px; } }
.dmtv-rail-track .dmtv-card { flex: 1 1 auto; }

.dmtv-like { position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); cursor: pointer; display: grid; place-items: center; }
.dmtv-like svg { fill: transparent; stroke: #fff; stroke-width: 2; transition: transform .15s, fill .15s, stroke .15s; }
.dmtv-like:hover svg, .dmtv-like:focus-visible svg { transform: scale(1.15); }
.dmtv-like:focus-visible { outline: 2px solid var(--dmtv-yellow); }
.dmtv-like.is-liked svg { fill: var(--dmtv-red); stroke: var(--dmtv-red); }
.dmtv-hero .dmtv-like { top: 14px; right: 14px; z-index: 4; }
.dmtv-series-actions { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.dmtv-series-actions .dmtv-like { position: static; border: 1px solid rgba(255,255,255,.3); }
.dmtv-like-label { font-weight: 700; font-size: .9rem; color: #d6d6e0; }

/* Franja «Próximamente»: va debajo del afiche, nunca encima de la imagen. */
.dmtv-soon { display: block; background: var(--dmtv-yellow); color: #000; font-weight: 900; font-size: .72rem; letter-spacing: .1em; text-align: center; padding: .3rem .5rem; border-radius: 6px; text-transform: uppercase; }
.dmtv-soon-inline { display: inline-block; align-self: center; font-size: .8rem; padding: .5rem .9rem; }
.dmtv-soon-bar { margin: 0 0 1rem; font-size: .85rem; padding: .55rem 1rem; }

.dmtv-notice { background: #000; border: 1px solid var(--dmtv-blue); color: #d6f7ff; border-radius: 12px; padding: .9rem 1rem; margin: 0 0 1rem; font-weight: 600; }
.dmtv-empty { color: #cfcfda; }
body.dmtv-dark .dmtv-soon { color: #000; }

body.dmtv-account-home .woocommerce-MyAccount-content > p:not(.dmtv-empty) { display: none; }

/* Icono de casa junto al nombre del sitio (lleva al inicio). */
header .wp-block-site-title a { display: inline-flex; align-items: center; gap: .4em; }
header .wp-block-site-title a::before {
	content: ""; width: 1.05em; height: 1.05em; flex: 0 0 auto; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sinopsis de la serie y galería de imágenes. */
.dmtv-synopsis { max-width: 62ch; font-size: 1.1rem; line-height: 1.65; color: #e6e6ee; margin: 0 0 1.25rem; }
.dmtv-synopsis p:first-child { font-size: 1.25rem; font-weight: 700; color: #fff; }
.dmtv-gallery { list-style: none; margin: 0 0 1.25rem; padding: 0 0 .5rem; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; }
.dmtv-gallery li { flex: 0 0 70%; max-width: 320px; scroll-snap-align: start; margin: 0; }
.dmtv-gallery img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* Episodios bloqueados: candado y borde gris para distinguirlos a simple vista. */
.dmtv-cell { position: relative; }
body.dmtv-dark .dmtv-cell.is-locked { opacity: 1; border-style: solid; border-color: rgba(255,255,255,.22); color: #8a8a98; background: #0a0a0e; }
.dmtv-cell.is-locked::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; background: #8a8a98;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v12h14V9h-2zm-8 0V7a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v12h14V9h-2zm-8 0V7a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Ficha de la serie: afiche vertical completo (pensado para móvil), sin recorte horizontal. */
body.single-dmtv_series .wp-block-post-featured-image { max-width: 380px; margin: 0 auto 1.5rem; }
body.single-dmtv_series .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 3 / 4 !important; object-fit: cover !important; object-position: top center; border-radius: 16px; display: block; }
body.single-dmtv_series .dmtv-synopsis, body.single-dmtv_series .dmtv-series { margin-left: auto; margin-right: auto; }

/* Portada del inicio en móvil: afiche vertical casi completo (proporción 3:4), con el texto sobre la parte baja. */
@media (max-width: 699px) {
	.dmtv-hero { min-height: min(133vw, 640px); background-position: center top; border-radius: 14px; }
	.dmtv-hero::before { background: linear-gradient(to top, #000 4%, rgba(0,0,0,.78) 32%, rgba(0,0,0,0) 62%); }
	.dmtv-hero-inner { padding: 1rem; }
	.dmtv-hero-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .8rem; }
	.dmtv-hero-actions .dmtv-btn { flex: 1 1 140px; }
}

/* Menos espacio entre la cabecera y el contenido en el inicio y las páginas. */
body.home main.wp-block-group, body.page main.wp-block-group { margin-top: 0 !important; }
body.home main > .wp-block-group, body.page main > .wp-block-group { padding-top: .75rem !important; }
body.home .entry-content, body.page .entry-content { margin-top: 0 !important; }

/* ======================================================================
 * v1.6: series cortas (12 capítulos, dos tramas, serie completa).
 * ====================================================================== */
.dmtv-chip-info { background: var(--dmtv-yellow); border-color: var(--dmtv-yellow); color: #000; font-weight: 800; }
.dmtv-decision-short .dmtv-options { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.dmtv-decision-short .dmtv-choice, .dmtv-decision-short .dmtv-buy { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; min-height: 64px; justify-content: center; }
.dmtv-decision-short .dmtv-buy { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
.dmtv-decision-short .dmtv-buy > span:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.dmtv-path { font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--dmtv-blue); }
.dmtv-choice .dmtv-path { color: #000; opacity: .7; }
.dmtv-choice:nth-child(2) .dmtv-path { color: var(--dmtv-blue); opacity: 1; }
.dmtv-offers-pass { margin-top: .8rem; }
.dmtv-offers-pass .dmtv-btn { width: 100%; justify-content: space-between; }
.dmtv-upsell { text-align: center; margin: 1.5rem 0; padding: 1.5rem 1.25rem; background: #000; border: 1px solid rgba(26,216,255,.45); border-radius: 16px; box-shadow: 0 0 24px rgba(26,216,255,.12); }
.dmtv-upsell p { color: #d6d6e0; }
.dmtv-upsell .dmtv-offers { display: grid; gap: .6rem; }

/* Opciones de trama con imagen y texto explicativo. */
.dmtv-decision-short .dmtv-options { grid-template-columns: 1fr 1fr; align-items: stretch; gap: .75rem; }
.dmtv-opt { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.dmtv-opt-img { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: #101014; }
.dmtv-opt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmtv-opt-text { margin: 0; font-size: .9rem; line-height: 1.4; color: #e6e6ee; flex: 1 1 auto; }
.dmtv-opt .dmtv-choice, .dmtv-opt .dmtv-buy { width: 100%; font-size: .9rem; }
.dmtv-decision-short .dmtv-opt .dmtv-buy { flex-direction: column; align-items: flex-start; gap: .25rem; }

/* Ajustes de caja para que nada se salga del panel en pantallas angostas. */
.dmtv-decision-short, .dmtv-decision-short * { box-sizing: border-box; }
.dmtv-opt { min-width: 0; }
.dmtv-opt .dmtv-btn, .dmtv-opt .dmtv-choice { width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: .7rem .75rem; }
.dmtv-opt-text { overflow-wrap: anywhere; }
.dmtv-offers-pass .dmtv-btn { width: 100%; max-width: 100%; margin: 0; }
