/* MD Film Room — estilo cercano a MLB Film Room */

.md-fr-page {
	--md-fr-bg: #000;
	--md-fr-surface: #121212;
	--md-fr-elevated: #1a1a1a;
	--md-fr-text: #fff;
	--md-fr-muted: #9ca3af;
	--md-fr-accent: #41b6e6;
	--md-fr-radius: 8px;
	--md-fr-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: var(--md-fr-bg) !important;
	color: var(--md-fr-text);
	font-family: var(--md-fr-font);
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 70vh;
	box-sizing: border-box;
}

.md-fr-page *,
.md-fr *,
.md-fr *::before,
.md-fr *::after {
	box-sizing: border-box;
}

.md-fr {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 64px;
	background: var(--md-fr-bg);
	color: var(--md-fr-text);
	font-family: var(--md-fr-font);
}

.md-fr.md-fr--gallery > .md-fr__filters,
.md-fr.md-fr--gallery > .md-fr__search-banner,
.md-fr.md-fr--gallery > .md-fr__row,
.md-fr.md-fr--player > .md-fr__player-layout,
.md-fr.md-fr--player > .md-fr__topbar + * {
	padding-left: clamp(12px, 2vw, 28px);
	padding-right: clamp(12px, 2vw, 28px);
}

.md-fr.md-fr--player > .md-fr__player-layout {
	padding-top: 16px;
}

.md-fr a {
	color: inherit;
	text-decoration: none;
}

/* —— Top bar (FILM ROOM + search + filters) —— */
.md-fr__topbar {
	display: grid;
	grid-template-columns: minmax(160px, 240px) minmax(280px, 1fr);
	align-items: center;
	gap: 20px 28px;
	margin: 0 0 28px;
	padding: 18px clamp(12px, 2vw, 28px) 20px;
	background: #0c0c0c;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
	/* Sticky limpio: siempre al tope del viewport (sin hueco encima) */
	position: sticky;
	top: 0;
	z-index: 300;
}

body.admin-bar.md-fr-mode .md-fr__topbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.md-fr-mode .md-fr__topbar {
		top: 46px;
	}
}

/* En Film Room el menú sticky del tema no pelea con el topbar */
body.md-fr-mode .main-navigation.aft-sticky-navigation {
	position: relative !important;
	top: auto !important;
	transform: none !important;
}

.md-fr__brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.1;
}

.md-fr__logo {
	font-weight: 800;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.md-fr__logo-sub {
	font-size: 0.72rem;
	color: #9ca3af;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.md-fr__logo-sub span {
	color: #41b6e6;
	font-weight: 650;
}

.md-fr__search-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
}

.md-fr__search {
	display: flex;
	align-items: center;
	flex: 1;
	background: #eceff1;
	border-radius: 999px;
	overflow: hidden;
	min-height: 44px;
}

.md-fr__search input {
	flex: 1;
	border: 0;
	outline: 0;
	padding: 12px 8px 12px 18px;
	font-size: 0.92rem;
	color: #111;
	background: transparent;
}

.md-fr__search input::placeholder {
	color: #6b7280;
}

.md-fr__search button {
	border: 0;
	background: transparent;
	padding: 10px 16px;
	cursor: pointer;
	color: #374151;
	display: grid;
	place-items: center;
}

.md-fr__filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	padding: 10px 14px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.md-fr__filter-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
}

.md-fr__filter-btn svg {
	opacity: 0.9;
}

.md-fr__filter-btn[aria-expanded="true"] {
	color: var(--md-fr-accent);
}

.md-fr__utils {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
}

.md-fr__util {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #e5e7eb;
	font-size: 0.82rem;
	font-weight: 600;
	background: transparent;
	border: 0;
	cursor: default;
	opacity: 0.85;
}

.md-fr__util svg {
	width: 20px;
	height: 20px;
}

/* Category filter chips */
.md-fr__filters {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	margin: -12px 0 24px;
	padding: 12px 0;
}

.md-fr__filters.is-open {
	display: flex;
}

.md-fr__chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: var(--md-fr-elevated);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.md-fr__chip:hover,
.md-fr__chip.is-active {
	background: #fff;
	color: #111;
	border-color: #fff;
}

.md-fr__search-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 22px;
	padding: 12px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.md-fr__search-banner-text {
	margin: 0 !important;
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 650 !important;
}

.md-fr__search-clear {
	color: #41b6e6 !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
}

/* —— Search results grid (hacia abajo) —— */
.md-fr__row--grid .md-fr__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px 16px;
	padding: 4px 0 8px;
}

.md-fr__row--grid .md-fr__card,
.md-fr__row--grid .md-fr__card--normal,
.md-fr__row--grid .md-fr__card--large {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none;
}

.md-fr__row--grid .md-fr__card-title {
	margin-top: 8px;
}

@media (max-width: 640px) {
	.md-fr__row--grid .md-fr__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 10px;
	}
}

/* —— Rows —— */
.md-fr__row {
	margin-bottom: 40px;
	scroll-margin-top: 24px;
}

.md-fr__row.is-hidden {
	display: none;
}

.md-fr__row-head {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 8px 0 18px !important;
	padding: 0 !important;
	min-height: 2rem !important;
	position: relative !important;
	z-index: 2 !important;
}

.md-fr .md-fr__row-title,
.md-fr__row-title,
.md-fr p.md-fr__row-title {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	z-index: 2 !important;
	width: auto !important;
	height: auto !important;
	min-height: 1.4em !important;
	max-height: none !important;
	overflow: visible !important;
	clip: auto !important;
	/* Secciones de contenido: distinto al logo FILM ROOM */
	font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
	font-weight: 650 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	padding: 0 0 0 10px !important;
	border-left: 3px solid var(--md-fr-accent) !important;
	color: #f3f4f6 !important;
	background: transparent !important;
	text-transform: none !important;
	text-indent: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	float: none !important;
}

.md-fr__rail-wrap {
	position: relative;
	margin: 0 -8px;
}

.md-fr__rail-wrap::before,
.md-fr__rail-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 12px;
	width: 48px;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.md-fr__rail-wrap.has-overflow::before {
	left: 0;
	opacity: 1;
	background: linear-gradient(90deg, var(--md-fr-bg), transparent);
}

.md-fr__rail-wrap.has-overflow::after {
	right: 0;
	opacity: 1;
	background: linear-gradient(270deg, var(--md-fr-bg), transparent);
}

.md-fr__rail {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px 48px 8px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x;
	overscroll-behavior-x: contain;
}

.md-fr__rail::-webkit-scrollbar {
	display: none;
}

.md-fr__rail-btn {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #111;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.18),
		0 8px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, background 0.15s ease;
	opacity: 0.96;
}

.md-fr__rail-btn svg {
	display: block;
	width: 28px;
	height: 28px;
}

.md-fr__rail-wrap:not(.has-overflow) .md-fr__rail-btn {
	display: none;
}

.md-fr__rail-btn:hover:not(:disabled) {
	background: #f3f4f6;
	transform: translateY(-50%) scale(1.08);
	box-shadow:
		0 4px 8px rgba(0, 0, 0, 0.22),
		0 12px 28px rgba(0, 0, 0, 0.4);
	opacity: 1;
}

.md-fr__rail-btn:active:not(:disabled) {
	transform: translateY(-50%) scale(0.98);
}

.md-fr__rail-btn:disabled,
.md-fr__rail-btn.is-disabled {
	opacity: 0.28;
	pointer-events: none;
	background: #d1d5db;
	color: #6b7280;
	box-shadow: none;
}

.md-fr__rail-btn--prev {
	left: 6px;
}

.md-fr__rail-btn--next {
	right: 6px;
}

/* —— Cards —— */
.md-fr__card {
	flex: 0 0 auto;
	scroll-snap-align: start;
	position: relative;
	z-index: 1;
}

.md-fr__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
	touch-action: manipulation;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.md-fr__card--large {
	/* ~3 tarjetas a lo ancho de toda la pantalla */
	width: calc((100vw - 64px) / 3);
	min-width: 280px;
	max-width: none;
}

.md-fr__card--normal {
	/* ~5 tarjetas a lo ancho de toda la pantalla */
	width: calc((100vw - 72px) / 5);
	min-width: 160px;
	max-width: none;
}

.md-fr__card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--md-fr-radius);
	overflow: hidden;
	background: #1a1a1a;
}

.md-fr__card--large .md-fr__card-media {
	aspect-ratio: 16 / 9;
}

.md-fr__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.md-fr__card:hover .md-fr__img {
	transform: scale(1.04);
}

.md-fr__img--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1f2937, #0f172a);
}

.md-fr__play,
.md-fr__play-mini {
	position: absolute;
	left: 10px;
	bottom: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	z-index: 2;
	display: grid;
	place-items: center;
	overflow: visible;
	pointer-events: none;
}

.md-fr__play svg,
.md-fr__play-mini svg {
	display: block;
	width: 12px;
	height: 12px;
	margin-left: 2px;
	fill: #111;
	pointer-events: none;
}

.md-fr__play-mini {
	width: 24px;
	height: 24px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.md-fr__play-mini svg {
	width: 10px;
	height: 10px;
}

.md-fr__sidebar-item:hover .md-fr__play-mini {
	opacity: 1;
}

.md-fr__badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 6px;
	border-radius: 3px;
	font-variant-numeric: tabular-nums;
	z-index: 2;
	pointer-events: none;
}

.md-fr__menu {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: default;
	opacity: 0;
	transition: opacity 0.15s ease;
	z-index: 2;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.md-fr__card:hover .md-fr__menu {
	opacity: 0.9;
}

.md-fr__card-overlay {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 28px 12px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 55%);
	z-index: 1;
	pointer-events: none;
}

.md-fr__card-overlay .md-fr__play {
	position: relative;
	left: auto;
	bottom: auto;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}

.md-fr__card-title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 10px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #fff;
}

.md-fr__card--large .md-fr__card-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.md-fr__card-date {
	display: block;
	color: #c4c4c4;
	font-size: 0.75rem;
	margin-top: 4px;
	font-weight: 500;
}

.md-fr__card:hover .md-fr__card-media {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

/* —— Player (single) — proporción tipo MLB Film Room —— */
.md-fr__player-layout {
	display: grid;
	/* Video un poco más chico; sidebar más ancha (~380–420px) */
	grid-template-columns: minmax(0, 1.35fr) minmax(360px, 420px);
	gap: 22px;
	align-items: start;
	max-width: 1600px;
	margin: 0 auto;
}

.md-fr__stage {
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.md-fr__stage::before,
.md-fr__stage::after,
.md-fr__embed::before,
.md-fr__embed::after {
	content: none !important;
	display: none !important;
}

.md-fr__embed {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%; /* 16:9 — patrón clásico, mejor en móvil */
	background: #000;
	overflow: hidden;
	touch-action: auto;
	pointer-events: auto !important;
}

.md-fr__embed iframe,
.md-fr__embed video,
.md-fr__player-frame {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	background: #000;
	z-index: 10 !important;
	pointer-events: auto !important;
	max-width: none !important;
	max-height: none !important;
	touch-action: auto !important;
}

.md-fr__watch-ext {
	margin: 10px 0 0;
	font-size: 0.9rem;
	position: relative;
	z-index: 2;
}

.md-fr__watch-ext a {
	color: #41b6e6 !important;
	text-decoration: underline;
}

.md-fr__missing {
	aspect-ratio: 16 / 9;
	display: grid;
	place-items: center;
	background-size: cover;
	background-position: center;
	color: var(--md-fr-muted);
	padding: 24px;
	text-align: center;
}

.md-fr__info {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
}

.md-fr .md-fr__title,
.md-fr h1.md-fr__title,
.md-fr__title {
	font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
	font-weight: 750 !important;
	margin: 0 0 8px !important;
	line-height: 1.25 !important;
	color: #ffffff !important;
	background: transparent !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-shadow: none !important;
}

.md-fr .md-fr__meta,
.md-fr__meta {
	color: #c4c4c4 !important;
	font-size: 0.92rem;
	margin: 0 0 12px;
}

.md-fr__dot {
	margin: 0 6px;
}

.md-fr .md-fr__desc,
.md-fr__desc,
.md-fr__desc p {
	color: #e5e5e5 !important;
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 72ch;
}

.md-fr__desc p {
	margin: 0 0 0.75em;
}

.md-fr .md-fr__sidebar-title,
.md-fr .md-fr__sidebar-name {
	color: #ffffff !important;
}

.md-fr .md-fr__sidebar-date {
	color: #a3a3a3 !important;
}

.md-fr__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.md-fr__icon-btn {
	background: transparent;
	border: 0;
	color: #e5e5e5;
	cursor: pointer;
	font-size: 0.85rem;
	padding: 6px 8px;
	opacity: 0.9;
}

.md-fr__icon-btn:hover:not(:disabled) {
	color: #fff;
}

.md-fr__icon-btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.md-fr__sidebar-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.md-fr__sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0 4px 0 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	/* Aproxima la altura del player + info */
	max-height: min(82vh, 860px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.md-fr__sidebar-list::-webkit-scrollbar {
	width: 4px;
}

.md-fr__sidebar-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 4px;
}

/* Estilo MLB: carátula ancha arriba, título debajo */
.md-fr__sidebar-item a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}

.md-fr__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background: #1a1a1a;
}

.md-fr__sidebar-item .md-fr__thumb .md-fr__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.md-fr__sidebar-item.is-active .md-fr__thumb {
	outline: 2px solid var(--md-fr-accent);
	outline-offset: 0;
}

.md-fr__sidebar-item:hover .md-fr__thumb {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.md-fr__now {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: var(--md-fr-accent);
	color: #04131a;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 4px 7px;
	border-radius: 3px;
	z-index: 2;
}

.md-fr__sidebar-item .md-fr__badge {
	right: 10px;
	bottom: 10px;
	font-size: 0.72rem;
}

.md-fr__sidebar-item .md-fr__play-mini {
	left: 10px;
	bottom: 10px;
	width: 28px;
	height: 28px;
}

.md-fr__sidebar-meta {
	padding: 0 2px 2px;
}

.md-fr__sidebar-name {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.md-fr__sidebar-date {
	display: block;
	margin-top: 6px;
	color: var(--md-fr-muted);
	font-size: 0.8rem;
}

.md-fr-empty {
	padding: 40px 20px;
	text-align: center;
	color: #666;
}

/* —— Modo app (estilo MLB: página independiente dentro del sitio) —— */
body.md-fr-mode,
body.md-fr-mode #page,
body.md-fr-mode #content,
body.md-fr-mode .site-content {
	background: #000 !important;
	color: #fff;
}

/* Necesario para que position:sticky del topbar funcione */
body.md-fr-mode #page,
body.md-fr-mode #content,
body.md-fr-mode #md-fr-app,
body.md-fr-mode .md-fr-page,
body.md-fr-mode .md-fr--gallery {
	overflow: visible !important;
}

/* Solo el área de contenido a full-bleed — NO el header/nav del sitio */
body.md-fr-mode #content.container,
body.md-fr-mode #content,
body.md-fr-mode #content .container,
body.md-fr-mode #content .af-container,
body.md-fr-mode #content .content-area,
body.md-fr-mode #content .site-content,
body.md-fr-mode #content .section-block-upper,
body.md-fr-mode #content #primary,
body.md-fr-mode #content #main,
body.md-fr-mode #content .entry-content,
body.md-fr-mode #md-fr-app,
.md-fr-page,
.md-fr-page .md-fr {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
}

/* Restaura el container normal del menú (como en el resto del sitio) */
body.md-fr-mode .header-layout-1 .container,
body.md-fr-mode #masthead .container,
body.md-fr-mode #site-navigation .container {
	width: 100% !important;
	max-width: 1215px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	float: none !important;
}

body.md-fr-mode #site-navigation .row {
	margin-left: -15px !important;
	margin-right: -15px !important;
	width: auto !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
}

/* Quitar “marco” del tema: breadcrumbs, título, sidebar, noticias debajo, preloader */
body.md-fr-mode .breadcrumb-trail,
body.md-fr-mode .breadcrumbs,
body.md-fr-mode nav[aria-label="Breadcrumbs"],
body.md-fr-mode .entry-header,
body.md-fr-mode .entry-title,
body.md-fr-mode .page-header,
body.md-fr-mode #secondary,
body.md-fr-mode .sidebar,
body.md-fr-mode aside#secondary,
body.md-fr-mode .widget-area,
body.md-fr-mode .af-breadcrumbs,
body.md-fr-mode .section-block-upper > #secondary,
body.md-fr-mode .af-main-banner-latest-posts,
body.md-fr-mode .af-main-banner-featured-posts,
body.md-fr-mode .promotionspace,
body.md-fr-mode #af-preloader,
body.md-fr-mode #loader-wrapper {
	display: none !important;
}

body.md-fr-mode #md-fr-app,
body.md-fr-mode .md-fr-page--app {
	display: block;
	min-height: calc(100vh - 180px);
	background: #000;
	padding: 0;
	margin: 0;
}

/* Footer compacto: sin widgets de noticias */
body.md-fr-mode .site-footer .widget,
body.md-fr-mode .site-footer .af-main-banner,
body.md-fr-mode .site-footer .aft-footer-nav,
body.md-fr-mode .site-footer .footer-widget-area,
body.md-fr-mode .site-footer .primary-footer,
body.md-fr-mode .site-footer .upper-footer {
	display: none !important;
}

body.md-fr-mode .site-footer {
	background: #0a0a0a !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 12px;
	margin-top: 0;
}

body.md-fr-mode .site-footer .site-info,
body.md-fr-mode .site-footer .copy-right {
	color: #888 !important;
	text-align: center;
	padding: 16px 12px !important;
}

@media (max-width: 1200px) {
	.md-fr__player-layout {
		grid-template-columns: minmax(0, 1.2fr) minmax(300px, 360px);
		gap: 18px;
	}
}

@media (max-width: 1100px) {
	.md-fr__card--large {
		width: calc((100vw - 48px) / 2.4);
	}

	.md-fr__card--normal {
		width: calc((100vw - 56px) / 3.5);
	}
}

@media (max-width: 960px) {
	.md-fr {
		padding: 0 0 48px;
	}

	.md-fr__topbar {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px 12px 16px;
	}

	.md-fr__utils {
		justify-content: flex-start;
	}

	.md-fr__search-wrap {
		max-width: none;
	}

	/* En móvil: swipe para desplazarse; los botones tapaban el click del video */
	.md-fr__rail-btn {
		display: none !important;
	}

	.md-fr__rail-wrap::before,
	.md-fr__rail-wrap::after {
		display: none;
	}

	.md-fr__rail {
		padding: 2px 4px 12px;
	}

	.md-fr__card--large {
		width: calc(100vw - 48px);
		min-width: 260px;
	}

	.md-fr__card--normal {
		width: calc((100vw - 40px) / 1.35);
		min-width: 180px;
	}

	.md-fr__player-layout {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.md-fr__sidebar-list {
		max-height: none;
		gap: 16px;
	}

	.md-fr__sidebar-item a {
		/* En móvil: thumb + texto en fila para no alargar tanto */
		display: grid;
		grid-template-columns: minmax(140px, 42%) 1fr;
		gap: 12px;
		align-items: start;
	}

	.md-fr__info {
		flex-direction: column;
	}

	.md-fr__actions {
		flex-direction: row;
	}

	.md-fr__rail {
		padding: 2px 40px 8px;
	}
}

/* —— Bloque VIDEOS (mismo layout/estilo que historia principal + Tendencias) —— */
.md-vs {
	margin: 20px 0 32px;
	padding: 0;
	background: transparent;
	color: #222;
}

.md-vs__heading.header-after1 {
	margin: 0 0 8px !important;
}

.md-vs__row {
	align-items: flex-start;
}

/* Misma columna que .main-story-wrapper.col-sm-6 */
.md-vs__main {
	margin-bottom: 16px;
}

.md-vs__player {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
}

/* Misma altura que .main-slider .data-bg-slide */
.md-vs__embed {
	position: relative;
	width: 100%;
	height: 425px;
	padding-bottom: 0;
	background: #111;
	overflow: hidden;
	border-radius: 0;
}

.md-vs__embed iframe,
.md-vs__embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.md-vs__embed--empty {
	display: grid;
	place-items: center;
	background-size: cover;
	background-position: center;
	color: #ccc;
}

.md-vs__caption {
	padding: 10px 0 0;
	background: transparent;
	border: 0;
}

.md-vs__caption-title {
	color: #111 !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none !important;
}

.md-vs__caption-title:hover {
	color: #bb1919 !important;
}

/* Columna derecha estilo Tendencias */
.md-vs__side {
	margin-bottom: 16px;
}

.md-vs__more-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.md-vs__more-head .header-after1 {
	margin: 0 !important;
}

.md-vs__all {
	color: #bb1919 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	margin-top: 10px;
	white-space: nowrap;
}

.md-vs__all:hover {
	text-decoration: underline !important;
}

.md-vs__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 425px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.md-vs__item {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 10px;
	align-items: start;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: #111;
}

.md-vs__item-thumb {
	position: relative;
	display: block;
	width: 90px;
	height: 68px;
	overflow: hidden;
	background: #e8e8e8;
	flex-shrink: 0;
}

.md-vs__item-thumb img,
.md-vs__item-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.md-vs__item-ph {
	background: linear-gradient(135deg, #ddd, #f0f0f0);
}

.md-vs__item-dur {
	position: absolute;
	right: 3px;
	bottom: 3px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 4px;
	line-height: 1.2;
}

.md-vs__item-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #222;
}

.md-vs__item:hover .md-vs__item-title,
.md-vs__item.is-active .md-vs__item-title {
	color: #bb1919;
}

.md-vs__item.is-active .md-vs__item-thumb {
	outline: 2px solid #bb1919;
	outline-offset: 0;
}

@media (max-width: 991px) {
	.md-vs__embed {
		height: 360px;
	}

	.md-vs__list {
		max-height: none;
	}
}

@media (max-width: 767px) {
	.md-vs__embed {
		height: 240px;
	}
}
