/* ==========================================================================
   DiCine Directorio de Películas
   Los colores se sobrescriben desde Ajustes (variables --dc-*).
   ========================================================================== */

.dc-root {
	--dc-primary: #e51d22;
	--dc-primary-600: #c0171b;
	--dc-primary-50: #fdf1f1;
	--dc-primary-100: #fbe0e1;
	--dc-primary-200: #f4aeb0;
	--dc-secondary: #005593;
	--dc-secondary-600: #00446f;
	--dc-secondary-50: #f0f6fb;
	--dc-secondary-100: #dbe9f4;
	--dc-secondary-200: #b3d0e6;
	--dc-bg: #ffffff;
	--dc-text: #10263c;
	--dc-muted: #64788c;
	--dc-border: #dbe9f4;
	--dc-surface: #f5f9fc;
	--dc-radius: 14px;
	--dc-speed: 550ms;
	--dc-stagger: 55ms;
	--dc-ease: cubic-bezier(.22, .8, .24, 1);

	box-sizing: border-box;
	color: var(--dc-text);
	line-height: 1.5;
}

.dc-root *,
.dc-root *::before,
.dc-root *::after {
	box-sizing: border-box;
}

.dc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dc-root .dc-i {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.dc-wrap {
	width: 100%;
	scroll-margin-top: var(--dc-scroll-offset, 90px);
}

.dc-notice {
	padding: 12px 16px;
	border-left: 4px solid var(--dc-primary, #e51d22);
	background: #fdf1f1;
}

/* --------------------------------------------------------------------------
   Barra de filtros
   -------------------------------------------------------------------------- */

.dc-toolbar {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 20px;
}

.dc-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dc-root .dc-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 1 340px;
	width: min(100%, 340px);
	min-width: 220px;
	margin: 0;
	color: var(--dc-secondary);
}

.dc-root .dc-search > .dc-i {
	position: absolute;
	left: 13px;
	pointer-events: none;
	opacity: .75;
}

.dc-root .dc-search input[type="search"] {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 38px 0 38px;
	border: 1px solid var(--dc-secondary-100);
	border-radius: 999px;
	background: var(--dc-bg);
	color: var(--dc-text);
	font: inherit;
	font-size: .95rem;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .25s, box-shadow .25s;
}

.dc-root .dc-search input[type="search"]::-webkit-search-cancel-button,
.dc-root .dc-search input[type="search"]::-webkit-search-decoration {
	display: none;
}

.dc-root .dc-search input[type="search"]::placeholder {
	color: var(--dc-muted);
	opacity: 1;
}

.dc-root .dc-search input[type="search"]:hover {
	border-color: var(--dc-secondary-200);
}

.dc-root .dc-search input[type="search"]:focus {
	border-color: var(--dc-secondary);
	box-shadow: 0 0 0 4px var(--dc-secondary-100);
}

.dc-root .dc-search__clear {
	position: absolute;
	right: 8px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dc-secondary-50);
	color: var(--dc-secondary);
	cursor: pointer;
	transition: background .2s, color .2s;
}

.dc-root .dc-search__clear[hidden] {
	display: none;
}

.dc-root .dc-search__clear:hover,
.dc-root .dc-search__clear:focus-visible {
	background: var(--dc-primary);
	color: #fff;
}

.dc-root .dc-search__clear .dc-i {
	width: 16px;
	height: 16px;
}

.dc-root .dc-select {
	position: relative;
	display: block;
	flex: 0 1 200px;
	margin: 0;
}

.dc-root .dc-select select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 42px 0 18px;
	border: 2px solid var(--dc-secondary-100);
	border-radius: 999px;
	background-color: var(--dc-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005593' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	color: var(--dc-text);
	font: inherit;
	font-size: .95rem;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .25s, box-shadow .25s;
}

.dc-root .dc-select select:hover {
	border-color: var(--dc-secondary-200);
}

.dc-root .dc-select select:focus {
	border-color: var(--dc-secondary);
	box-shadow: 0 0 0 4px var(--dc-secondary-100);
}

/* Categorías */
.dc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dc-root .dc-chip {
	position: relative;
	margin: 0;
	padding: 9px 18px;
	border: 2px solid var(--dc-secondary-100);
	border-radius: 999px;
	background: var(--dc-bg);
	color: var(--dc-secondary);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background .25s var(--dc-ease), color .25s, border-color .25s, transform .25s var(--dc-ease);
}

.dc-root .dc-chip:hover {
	background: var(--dc-secondary-50);
	border-color: var(--dc-secondary-200);
	color: var(--dc-secondary);
}

.dc-root .dc-chip:active {
	transform: scale(.96);
}

.dc-root .dc-chip.is-active,
.dc-root .dc-chip.is-active:hover {
	background: var(--dc-primary);
	border-color: var(--dc-primary);
	color: #fff;
}

@media (max-width: 600px) {
	.dc-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -4px;
		padding: 2px 4px 8px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.dc-root .dc-chip {
		flex: none;
	}

	.dc-root .dc-select {
		flex: 1 1 140px;
	}
}

.dc-count {
	margin: 0 0 18px;
	color: var(--dc-muted);
	font-size: .875rem;
	min-height: 1.3em;
}

/* --------------------------------------------------------------------------
   Cuadrícula
   -------------------------------------------------------------------------- */

.dc-grid {
	display: grid;
	grid-template-columns: repeat(var(--dc-cols, 4), minmax(0, 1fr));
	gap: var(--dc-gap, 28px);
	align-items: start;
	min-height: 120px;
	transition: opacity .25s ease;
}

@media (max-width: 991px) {
	.dc-grid {
		grid-template-columns: repeat(var(--dc-cols-md, 3), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.dc-grid {
		grid-template-columns: repeat(var(--dc-cols-sm, 2), minmax(0, 1fr));
		gap: calc(var(--dc-gap, 28px) * .6);
	}
}

.dc-wrap.is-loading .dc-grid {
	opacity: .55;
	pointer-events: none;
}

.dc-wrap.is-loading .dc-grid:has(.dc-skel) {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Tarjeta: el póster es el protagonista
   -------------------------------------------------------------------------- */

 .dc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 1px solid var(--dc-secondary-100);
	border-radius: calc(var(--dc-radius) + 2px);
	background: var(--dc-bg);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
	transition: transform .35s var(--dc-ease), box-shadow .35s var(--dc-ease), border-color .35s ease;
}

.dc-root .dc-card::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--dc-primary), var(--dc-secondary));
	opacity: .9;
	pointer-events: none;
}

.dc-root .dc-card__media {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #090a0c;
	color: inherit;
	aspect-ratio: var(--dc-ratio, 2/3);
	cursor: pointer;
	box-shadow: none;
	transition: filter .35s ease;
	-webkit-tap-highlight-color: transparent;
}

.dc-root .dc-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.02) 42%, rgba(0,0,0,.14) 66%, rgba(0,0,0,.74) 100%);
	pointer-events: none;
}

.dc-root .dc-card__media:hover,
.dc-root .dc-card__media:focus {
	background: #090a0c;
	color: inherit;
}

.dc-root .dc-card__media:focus-visible {
	outline: 3px solid var(--dc-primary);
	outline-offset: 2px;
}

.dc-root img.dc-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	transition: transform .65s var(--dc-ease), filter .65s ease;
}

.dc-noimg {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	color: var(--dc-secondary-200);
	background: radial-gradient(circle at 50% 40%, var(--dc-secondary-100), #090a0c 72%);
}

.dc-noimg .dc-i { width: 42%; height: 42%; stroke-width: 1.2; }

.dc-card__badge {
	position: absolute; top: 12px; left: 12px; z-index: 3;
	max-width: calc(100% - 24px);
	padding: 5px 10px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 5px;
	background: rgba(0,0,0,.58);
	color: #fff;
	font-size: .68rem; font-weight: 700; line-height: 1.25;
	letter-spacing: .06em; text-transform: uppercase;
	text-overflow: ellipsis; white-space: nowrap;
	backdrop-filter: blur(5px);
}

/* Elimina la barra emergente "Ver más" del póster. */
.dc-card__bar { display: none !important; }

.dc-wrap:not(.dc-no-hover) .dc-card:hover {
	border-color: var(--dc-primary);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .08);
	transform: translateY(-4px);
}

.dc-wrap:not(.dc-no-hover) .dc-card:hover .dc-card__img {
	transform: scale(1.035);
	filter: saturate(1.04) contrast(1.03);
}

.dc-wrap:not(.dc-no-hover) .dc-card:hover .dc-card__media::after {
	background: linear-gradient(180deg, rgba(0,0,0,.02) 36%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.80) 100%);
}

@media (hover: none) { .dc-card__bar { display: none !important; } }

.dc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	padding: 13px 14px 16px;
}

.dc-root .dc-card__title {
	display: -webkit-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--dc-text);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.28;
	letter-spacing: -.01em;
	text-transform: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.dc-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dc-tag {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--dc-secondary-50);
	color: var(--dc-secondary-600);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.6;
}

.dc-tag--year {
	background: var(--dc-primary-50);
	color: var(--dc-primary-600);
}

.dc-root .dc-card__dir {
	margin: 0;
	color: var(--dc-muted);
	font-size: .85rem;
	line-height: 1.4;
}

.dc-card__dir span {
	color: var(--dc-text);
	font-weight: 600;
}

.dc-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.dc-root .dc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 9px 18px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--dc-ease), box-shadow .25s;
}

.dc-root .dc-btn:active {
	transform: scale(.97);
}

.dc-root .dc-btn:focus-visible {
	outline: 3px solid var(--dc-secondary);
	outline-offset: 2px;
}

.dc-root .dc-btn--primary {
	background: var(--dc-primary);
	border-color: var(--dc-primary);
	color: #fff;
}

.dc-root .dc-btn--primary:hover,
.dc-root .dc-btn--primary:focus {
	background: var(--dc-primary-600);
	border-color: var(--dc-primary-600);
	color: #fff;
	box-shadow: 0 10px 20px -10px var(--dc-primary);
}

.dc-root .dc-btn--ghost {
	background: transparent;
	border-color: var(--dc-secondary);
	color: var(--dc-secondary);
}

.dc-root .dc-btn--ghost:hover,
.dc-root .dc-btn--ghost:focus {
	background: var(--dc-secondary);
	border-color: var(--dc-secondary);
	color: #fff;
}

.dc-root .dc-btn--lg {
	padding: 13px 26px;
	font-size: .95rem;
}

.dc-card__actions .dc-btn {
	flex: 1 1 auto;
	padding: 8px 14px;
}

.dc-card__actions .dc-btn .dc-i {
	width: 1em;
	height: 1em;
}

/* --------------------------------------------------------------------------
   Paginación
   -------------------------------------------------------------------------- */

.dc-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.dc-pagination:empty {
	display: none;
}

.dc-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.dc-root .dc-page {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	border: 2px solid var(--dc-secondary-100);
	border-radius: 999px;
	background: var(--dc-bg);
	color: var(--dc-secondary);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--dc-ease);
}

.dc-root button.dc-page:hover:not([disabled]) {
	background: var(--dc-secondary-50);
	border-color: var(--dc-secondary-200);
	color: var(--dc-secondary);
}

.dc-root button.dc-page:active:not([disabled]) {
	transform: scale(.94);
}

.dc-root .dc-page.is-current,
.dc-root .dc-page.is-current:hover {
	background: var(--dc-secondary);
	border-color: var(--dc-secondary);
	color: #fff;
	cursor: default;
}

.dc-root .dc-page[disabled] {
	opacity: .4;
	cursor: not-allowed;
}

.dc-root .dc-page--gap {
	min-width: 20px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dc-muted);
	cursor: default;
}

.dc-root .dc-page:focus-visible {
	outline: 3px solid var(--dc-primary);
	outline-offset: 2px;
}

/* Cargar más */
.dc-root .dc-more {
	position: relative;
	padding: 14px 32px;
	font-size: .95rem;
}

.dc-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dcSpin .7s linear infinite;
}

.dc-root .dc-more.is-busy {
	pointer-events: none;
	opacity: .9;
}

.dc-root .dc-more.is-busy .dc-spinner {
	display: inline-block;
}

/* --------------------------------------------------------------------------
   Vacío / esqueleto
   -------------------------------------------------------------------------- */

.dc-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 20px;
	border: 2px dashed var(--dc-secondary-100);
	border-radius: var(--dc-radius);
	background: var(--dc-surface);
	text-align: center;
}

.dc-empty__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--dc-primary-50);
	color: var(--dc-primary);
}

.dc-empty__icon .dc-i {
	width: 34px;
	height: 34px;
}

.dc-root .dc-empty__title {
	margin: 0 0 4px;
	color: var(--dc-secondary);
	font-size: 1.15rem;
	font-weight: 700;
}

.dc-root .dc-empty__text {
	margin: 0 0 18px;
	color: var(--dc-muted);
}

.dc-skel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dc-skel__img,
.dc-skel__line {
	background: linear-gradient(100deg, var(--dc-secondary-100) 30%, var(--dc-secondary-50) 50%, var(--dc-secondary-100) 70%);
	background-size: 220% 100%;
	animation: dcShimmer 1.35s linear infinite;
}

.dc-skel__img {
	border-radius: var(--dc-radius);
	aspect-ratio: var(--dc-ratio, 2/3);
}

.dc-skel__line {
	height: 14px;
	border-radius: 6px;
}

.dc-skel__line--lg {
	width: 82%;
	height: 18px;
}

.dc-skel__line--sm {
	width: 45%;
}

/* --------------------------------------------------------------------------
   Animaciones de entrada (una sola coreografía: filtros y luego pósters)
   -------------------------------------------------------------------------- */

.dc-anim .dc-toolbar .dc-fields {
	animation: dcFadeDown calc(var(--dc-speed) * .9) var(--dc-ease) backwards;
}

.dc-anim .dc-chip {
	animation: dcPop calc(var(--dc-speed) * .8) var(--dc-ease) backwards;
	animation-delay: calc(140ms + var(--i, 0) * 40ms);
}

.dc-anim .dc-count {
	animation: dcFade var(--dc-speed) ease backwards;
	animation-delay: 240ms;
}

.dc-anim.dc-ready .dc-card:not(.is-in) {
	opacity: 0;
}

.dc-anim .dc-card.is-in {
	animation-duration: var(--dc-speed);
	animation-timing-function: var(--dc-ease);
	animation-fill-mode: backwards;
	animation-delay: calc(var(--i, 0) * var(--dc-stagger));
}

.dc-anim--fade-up .dc-card.is-in { animation-name: dcFadeUp; }
.dc-anim--fade .dc-card.is-in    { animation-name: dcFade; }
.dc-anim--zoom .dc-card.is-in    { animation-name: dcZoom; }

.dc-anim .dc-pager,
.dc-anim .dc-more {
	animation: dcFade var(--dc-speed) ease backwards;
}

@keyframes dcFadeUp {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: none; }
}

@keyframes dcFadeDown {
	from { opacity: 0; transform: translateY(-14px); }
	to   { opacity: 1; transform: none; }
}

@keyframes dcFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes dcZoom {
	from { opacity: 0; transform: scale(.9); }
	to   { opacity: 1; transform: none; }
}

@keyframes dcPop {
	from { opacity: 0; transform: translateY(8px) scale(.92); }
	to   { opacity: 1; transform: none; }
}

@keyframes dcShimmer {
	from { background-position: 120% 0; }
	to   { background-position: -120% 0; }
}

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

/* --------------------------------------------------------------------------
   Ficha (ventana emergente)
   -------------------------------------------------------------------------- */

html.dc-lock {
	overflow: hidden;
}

.dc-root.dc-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s ease, visibility 0s linear .3s;
}

.dc-root.dc-modal[hidden] {
	display: none;
}

.dc-root.dc-modal.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity .3s ease;
}

.dc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 28, 52, .68);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.dc-modal__dialog {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 1000px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: hidden;
	border-radius: 22px;
	background: var(--dc-bg);
	color: var(--dc-text);
	box-shadow: 0 40px 90px -20px rgba(0, 20, 50, .7);
	outline: none;
	transform: translateY(34px) scale(.97);
	transition: transform .5s var(--dc-ease);
}

.dc-modal.is-open .dc-modal__dialog {
	transform: none;
}

.dc-modal__dialog::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 3;
	height: 5px;
	background: linear-gradient(90deg, var(--dc-primary) 0 50%, var(--dc-secondary) 50% 100%);
}

.dc-modal__body {
	flex: 1;
	min-width: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--dc-secondary-200) transparent;
}

.dc-root .dc-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dc-bg);
	color: var(--dc-secondary);
	box-shadow: 0 6px 18px -6px rgba(0, 40, 80, .5);
	cursor: pointer;
	transition: background .2s, color .2s, transform .3s var(--dc-ease);
}

.dc-root .dc-modal__close:hover,
.dc-root .dc-modal__close:focus-visible {
	background: var(--dc-primary);
	color: #fff;
	transform: rotate(90deg);
}

.dc-root .dc-modal__close:focus-visible {
	outline: 3px solid var(--dc-secondary);
	outline-offset: 2px;
}

.dc-detail {
	display: grid;
	grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
	gap: 40px;
	padding: 40px;
}

.dc-detail__poster {
	position: sticky;
	top: 0;
	align-self: start;
	margin: 0 12px 12px 0;
}

.dc-detail__poster .dc-noimg {
	position: relative;
	aspect-ratio: 2/3;
	border-radius: 14px;
}

.dc-root img.dc-detail__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
	border-radius: 14px;
	box-shadow: 12px 12px 0 var(--dc-primary-100);
}

.dc-detail__content {
	min-width: 0;
	padding-right: 30px;
}

.dc-detail__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.dc-cat {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--dc-secondary-50);
	color: var(--dc-secondary);
	font-size: .8rem;
	font-weight: 600;
}

.dc-root .dc-detail__title {
	margin: 0 0 6px;
	padding: 0 24px 14px 0;
	position: relative;
	color: var(--dc-secondary);
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-transform: none;
}

.dc-detail__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 5px;
	border-radius: 3px;
	background: var(--dc-primary);
}

.dc-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 22px 0 4px;
}

.dc-facts:empty {
	display: none;
}

.dc-fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 11px 15px;
	border: 1px solid var(--dc-border);
	border-radius: 12px;
	background: var(--dc-surface);
}

.dc-fact--wide {
	grid-column: 1 / -1;
}

.dc-fact__label {
	color: var(--dc-secondary);
	font-size: .78rem;
	font-weight: 700;
}

.dc-fact__value {
	color: var(--dc-text);
	font-size: .97rem;
	font-weight: 500;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.dc-block {
	margin-top: 20px;
	padding: 18px 20px;
	border: 1px solid var(--dc-border);
	border-radius: 14px;
}

.dc-block--award {
	border-color: var(--dc-primary-100);
	background: var(--dc-primary-50);
}

.dc-block--fest {
	border-color: var(--dc-secondary-100);
	background: var(--dc-secondary-50);
}

.dc-root .dc-block__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px;
	padding: 0;
	color: var(--dc-secondary);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.dc-block--award .dc-block__title {
	color: var(--dc-primary-600);
}

.dc-prose {
	max-width: 68ch;
	color: var(--dc-text);
	font-size: .97rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.dc-prose p {
	margin: 0 0 .8em;
}

.dc-prose p:last-child {
	margin-bottom: 0;
}

.dc-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* Entrada escalonada del contenido de la ficha (respuesta a la acción de abrir) */
.dc-modal.is-open .dc-detail__poster,
.dc-modal.is-open .dc-detail__content > * {
	animation: dcFadeUp .55s var(--dc-ease) backwards;
}

.dc-modal.is-open .dc-detail__content > *:nth-child(1) { animation-delay: .12s; }
.dc-modal.is-open .dc-detail__content > *:nth-child(2) { animation-delay: .18s; }
.dc-modal.is-open .dc-detail__content > *:nth-child(3) { animation-delay: .24s; }
.dc-modal.is-open .dc-detail__content > *:nth-child(4) { animation-delay: .30s; }
.dc-modal.is-open .dc-detail__content > *:nth-child(5) { animation-delay: .36s; }
.dc-modal.is-open .dc-detail__content > *:nth-child(n+6) { animation-delay: .42s; }

@media (max-width: 760px) {
	.dc-root.dc-modal {
		align-items: flex-end;
		padding: 0;
	}

	.dc-modal__dialog {
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 22px 22px 0 0;
		transform: translateY(60px);
	}

	.dc-detail {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 30px 20px 28px;
	}

	.dc-detail__poster {
		position: static;
		width: min(58%, 240px);
		margin: 0 auto 8px;
	}

	.dc-root img.dc-detail__img {
		box-shadow: 8px 8px 0 var(--dc-primary-100);
	}

	.dc-detail__content {
		padding-right: 0;
	}

	.dc-root .dc-detail__title {
		padding-right: 0;
	}

	.dc-detail__actions .dc-btn {
		flex: 1 1 100%;
	}

	.dc-root .dc-modal__close {
		top: 14px;
		right: 14px;
	}
}

/* --------------------------------------------------------------------------
   Tráiler en ventana emergente
   -------------------------------------------------------------------------- */

.dc-root.dc-video {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s ease, visibility 0s linear .3s;
}

.dc-root.dc-video[hidden] {
	display: none;
}

.dc-root.dc-video.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity .3s ease;
}

.dc-video__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 14, 28, .88);
}

.dc-video__box {
	position: relative;
	width: 100%;
	max-width: 1000px;
	transform: scale(.94);
	transition: transform .45s var(--dc-ease);
}

.dc-video.is-open .dc-video__box {
	transform: none;
}

.dc-video__frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #000;
	aspect-ratio: 16/9;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}

.dc-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dc-root .dc-video__close {
	position: absolute;
	top: -52px;
	right: 0;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--dc-secondary);
	cursor: pointer;
	transition: background .2s, color .2s, transform .3s var(--dc-ease);
}

.dc-root .dc-video__close:hover,
.dc-root .dc-video__close:focus-visible {
	background: var(--dc-primary);
	color: #fff;
	transform: rotate(90deg);
}

@media (max-width: 600px) {
	.dc-root.dc-video {
		padding: 12px;
	}
}

/* --------------------------------------------------------------------------
   Accesibilidad: reducir movimiento
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dc-root,
	.dc-root *,
	.dc-root *::before,
	.dc-root *::after {
		animation-duration: .001ms !important;
		animation-delay: 0ms !important;
		transition-duration: .001ms !important;
		transition-delay: 0ms !important;
	}
}

/* Animaciones desactivadas desde Ajustes */
.dc-root.dc-no-anim,
.dc-root.dc-no-anim *,
.dc-root.dc-no-anim *::before,
.dc-root.dc-no-anim *::after {
	animation: none !important;
	transition-duration: .001ms !important;
}
