.mxro3-home,
.mxro3-archive,
.mxro3-single {
	--mxro3-accent: var(--cm-color-1, #207daf);
	--mxro3-text: var(--cm-color-6, #20242a);
	--mxro3-muted: var(--cm-color-7, #717780);
	width: min(100% - 32px, 1200px);
	margin-inline: auto;
	padding-block: 32px 56px;
	color: var(--mxro3-text);
}

body.home .cm-primary > .cm-page-header {
	display: none;
}

.mxro3-hero {
	padding: clamp(28px, 6vw, 68px);
	border-radius: 18px;
	background: linear-gradient(125deg, #10283f, #207daf);
	color: #fff;
}

.mxro3-hero h1 {
	margin: 0 0 12px;
	color: inherit;
	font-size: clamp(32px, 5vw, 54px);
}

.mxro3-hero p {
	max-width: 700px;
}

.mxro3-hero__eyebrow {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mxro3-search {
	display: flex;
	gap: 8px;
	max-width: 700px;
	margin-top: 24px;
}

.mxro3-search input {
	min-width: 0;
	flex: 1;
	padding: 12px 16px;
	border: 0;
	border-radius: 8px;
}

.mxro3-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 0;
	border-radius: 7px;
	background: var(--mxro3-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.mxro3-hero .mxro3-button {
	background: #f4b942;
	color: #17212b;
}

.mxro3-button:hover,
.mxro3-button:focus {
	filter: brightness(0.92);
	color: #fff;
}

.mxro3-shortcuts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 40px;
}

.mxro3-shortcuts a {
	padding: 10px 16px;
	border: 1px solid #e4e8ee;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
}

.mxro3-shortcuts a:hover,
.mxro3-shortcuts a:focus {
	border-color: var(--mxro3-accent);
	color: var(--mxro3-accent);
}

.mxro3-home-section {
	margin-top: 40px;
}

.mxro3-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.mxro3-section-heading h2 {
	margin: 0;
}

.mxro3-section-heading > a {
	color: var(--mxro3-accent);
	font-weight: 700;
	text-decoration: none;
}

.mxro3-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.mxro3-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e8ebef;
	border-radius: 10px;
	background: #fff;
}

.mxro3-grid > .mxro3-card {
	float: none;
	grid-column: auto !important;
	grid-row: auto;
	width: auto;
	max-width: none;
}

.mxro3-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e9edf2;
}

.mxro3-card__image img,
.mxro3-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxro3-card__placeholder {
	background: linear-gradient(135deg, #202a39, #45617b);
}

.mxro3-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	transform: translate(-50%, -50%);
}

.mxro3-card__play::after {
	position: absolute;
	top: 50%;
	left: 53%;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid #fff;
	content: "";
	transform: translate(-40%, -50%);
}

.mxro3-card__body {
	padding: 14px;
}

.mxro3-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.4;
}

.mxro3-card__title a {
	color: inherit;
	text-decoration: none;
}

.mxro3-card__title a:hover,
.mxro3-card__title a:focus {
	color: var(--mxro3-accent);
}

.mxro3-card__meta,
.mxro3-card__excerpt {
	margin: 0 0 10px;
	color: var(--mxro3-muted);
	font-size: 14px;
}

.mxro3-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	color: var(--mxro3-muted);
	font-size: 13px;
}

.mxro3-button--small {
	padding: 7px 11px;
	font-size: 13px;
}

.mxro3-download-form {
	display: inline-flex;
	margin: 0;
}

.mxro3-archive__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.mxro3-archive__header h1 {
	margin: 0;
}

.mxro3-archive__pagination {
	margin-top: 30px;
}

.mxro3-single__header {
	max-width: 900px;
	margin: 0 auto 24px;
}

.mxro3-single__header h1 {
	margin: 0 0 10px;
}

.mxro3-single__meta {
	color: var(--mxro3-muted);
}

.mxro3-video-player {
	max-width: 1000px;
	margin: 0 auto 24px;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.mxro3-video-player video {
	display: block;
	width: 100%;
	max-height: 75vh;
}

.mxro3-single__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	max-width: 1000px;
	margin: 18px auto 28px;
}

.mxro3-single__content {
	max-width: 900px;
	margin: 0 auto;
}

.mxro3-video-watch {
	background: #090b0e;
	color: #f3f4f6;
}

.mxro3-video-watch #cm-content {
	background: #090b0e;
}

.mxro3-video-watch #cm-header,
.mxro3-video-watch .cm-header-1,
.mxro3-video-watch .cm-primary-nav,
.mxro3-video-watch #cm-primary-nav,
.mxro3-video-watch .cm-footer,
.mxro3-video-watch #cm-footer {
	background-color: #090b0e;
	color: #f3f4f6;
}

.mxro3-video-watch .cm-primary-nav a,
.mxro3-video-watch #cm-primary-nav a,
.mxro3-video-watch .cm-footer a,
.mxro3-video-watch #cm-footer a {
	color: #f3f4f6;
}

.mxro3-watch,
.mxro3-video-library {
	width: min(1600px, calc(100vw - 32px));
	margin: 0 auto;
	padding: 20px 0 52px;
	color: #f3f4f6;
}

.mxro3-watch {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.mxro3-watch__topbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr) minmax(0, 1fr);
	align-items: center;
	gap: 22px;
	margin-bottom: 22px;
}

.mxro3-watch__sections {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	grid-column: 3;
}

.mxro3-watch__sections a,
.mxro3-video-library__categories a {
	padding: 9px 14px;
	border-radius: 999px;
	background: #1b1d21;
	color: #e6e7e9;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.mxro3-watch__sections a.is-active,
.mxro3-watch__sections a:hover,
.mxro3-video-library__categories a.is-active {
	background: #f3f4f6;
	color: #111318;
}

.mxro3-watch__search {
	display: flex;
	grid-column: 2;
	grid-row: 1;
	overflow: hidden;
	border: 1px solid #33363d;
	border-radius: 999px;
	background: #111318;
}

.mxro3-watch__search input {
	width: 100%;
	min-width: 0;
	padding: 10px 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #f3f4f6;
}

.mxro3-watch__search button {
	min-width: 54px;
	border: 0;
	border-inline-start: 1px solid #33363d;
	background: #22252b;
	color: #f3f4f6;
	font-size: 22px;
	cursor: pointer;
}

.mxro3-watch__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(350px, 1.1fr);
	align-items: start;
	gap: 24px;
}

.mxro3-watch__layout.has-ad-rail {
	grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1.75fr) minmax(350px, 1.1fr);
}

.mxro3-watch__ad-rail {
	display: grid;
	gap: 18px;
}

.mxro3-watch__ad-rail .widget {
	overflow: hidden;
	border-radius: 10px;
}

.mxro3-watch__ad-rail img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mxro3-watch__player {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: #000;
}

.mxro3-watch__player video,
.mxro3-watch__player > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mxro3-watch__player > p {
	position: absolute;
	inset: auto 12px 12px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
}

.mxro3-watch__no-video {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #c4c7cd;
}

.mxro3-watch__details {
	margin: 14px 0 0;
}

.mxro3-watch__details h1 {
	margin: 0 0 14px;
	color: #f7f7f8;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.4;
}

.mxro3-watch__channel-row,
.mxro3-watch__channel,
.mxro3-watch__toolbar,
.mxro3-watch__actions {
	display: flex;
	align-items: center;
}

.mxro3-watch__channel-row,
.mxro3-watch__toolbar {
	justify-content: space-between;
	gap: 14px;
}

.mxro3-watch__channel {
	gap: 12px;
	color: #f3f4f6;
	text-decoration: none;
}

.mxro3-watch__channel img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
}

.mxro3-watch__channel span {
	display: grid;
	gap: 3px;
}

.mxro3-watch__channel small,
.mxro3-watch__stats,
.mxro3-watch__download-total {
	color: #aeb3bd;
	font-size: 13px;
}

.mxro3-watch__subscribe {
	padding: 10px 18px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111318;
	font-weight: 700;
	text-decoration: none;
}

.mxro3-watch__toolbar {
	flex-wrap: wrap;
	margin: 16px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #292c32;
}

.mxro3-watch__stats,
.mxro3-watch__actions {
	flex-wrap: wrap;
	gap: 10px;
}

.mxro3-watch__action,
.mxro3-watch__download-total {
	padding: 9px 13px;
	border: 0;
	border-radius: 999px;
	background: #202329;
	color: #f3f4f6;
	font: inherit;
	text-decoration: none;
}

.mxro3-watch__action {
	cursor: pointer;
}

.mxro3-watch__download-button {
	padding: 9px 13px;
	border-radius: 999px;
	background: #202329;
	color: #f3f4f6;
}

.mxro3-watch__description {
	padding: 14px 18px;
	border-radius: 12px;
	background: #1b1e23;
	color: #dedfe3;
}

.mxro3-watch__description-meta {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
}

.mxro3-watch__description-content > :last-child {
	margin-bottom: 0;
}

.mxro3-watch__description-content a {
	color: #7cc8ff;
}

.mxro3-watch__comments {
	margin-top: 26px;
}

.mxro3-watch__comments,
.mxro3-watch__comments h2,
.mxro3-watch__comments h3,
.mxro3-watch__comments label {
	color: #f3f4f6;
}

.mxro3-watch__comments input,
.mxro3-watch__comments textarea {
	border: 1px solid #3a3d44;
	border-radius: 8px;
	background: #111318;
	color: #f3f4f6;
}

.mxro3-watch__comments a {
	color: #8acaff;
}

.mxro3-watch__filters,
.mxro3-video-library__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.mxro3-watch__filters span {
	padding: 7px 12px;
	border-radius: 999px;
	background: #202329;
	color: #e7e8eb;
	font-size: 13px;
}

.mxro3-watch__filters span.is-active {
	background: #f3f4f6;
	color: #111318;
}

.mxro3-watch__recommendation-list {
	display: grid;
	gap: 12px;
}

.mxro3-watch-card {
	display: grid;
	grid-template-columns: minmax(140px, 0.95fr) minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	min-width: 0;
}

.mxro3-watch-card__thumbnail {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background: #202329;
}

.mxro3-watch-card__thumbnail img,
.mxro3-watch-card__thumbnail .mxro3-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxro3-card__duration {
	position: absolute;
	inset-inline-end: 6px;
	bottom: 6px;
	padding: 3px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.mxro3-watch-card__info {
	min-width: 0;
}

.mxro3-watch-card__info h2 {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 7px;
	color: #f3f4f6;
	font-size: 15px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mxro3-watch-card__info h2 a {
	color: inherit;
	text-decoration: none;
}

.mxro3-watch-card__author,
.mxro3-watch-card__info p {
	display: block;
	overflow: hidden;
	margin: 0 0 5px;
	color: #aeb3bd;
	font-size: 12px;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mxro3-watch__empty {
	color: #aeb3bd;
}

.mxro3-watch__more {
	margin-top: 40px;
}

.mxro3-watch__more h2 {
	margin-bottom: 18px;
	color: #f3f4f6;
}

.mxro3-watch__more-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.mxro3-video-watch .mxro3-card {
	border-color: #282b31;
	background: #15171b;
	color: #f3f4f6;
}

.mxro3-video-watch .mxro3-card__image {
	aspect-ratio: 16 / 9;
}

.mxro3-video-watch .mxro3-card__title a,
.mxro3-video-watch .mxro3-card__footer {
	color: #f3f4f6;
}

.mxro3-video-watch .mxro3-card__footer {
	flex-wrap: wrap;
}

.mxro3-video-watch .mxro3-download-form .mxro3-button {
	padding: 7px 10px;
}

.mxro3-video-library {
	color: #f3f4f6;
}

.mxro3-video-library__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 22px;
}

.mxro3-video-library__header p {
	margin: 0 0 6px;
	color: #aeb3bd;
}

.mxro3-video-library__header h1 {
	margin: 0;
	color: #f3f4f6;
}

.mxro3-video-library__categories {
	margin-bottom: 24px;
}

.mxro3-video-library__grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px 16px;
}

.mxro3-video-library .mxro3-card {
	border-color: #282b31;
	background: #15171b;
	color: #f3f4f6;
}

.mxro3-video-library .mxro3-card__title a,
.mxro3-video-library .mxro3-card__footer {
	color: #f3f4f6;
}

.mxro3-video-library .mxro3-card__image {
	aspect-ratio: 16 / 9;
}

.mxro3-video-library .mxro3-archive__pagination a {
	color: #f3f4f6;
}

.mxro3-empty {
	padding: 36px 16px;
	text-align: center;
}

@media (max-width: 1400px) {
	.mxro3-watch__layout {
		grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
	}

	.mxro3-watch__ad-rail {
		display: none;
	}

	.mxro3-watch__more-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.mxro3-video-library__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.mxro3-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mxro3-watch__layout {
		grid-template-columns: 1fr;
	}

	.mxro3-watch__topbar {
		grid-template-columns: 1fr;
	}

	.mxro3-watch__sections,
	.mxro3-watch__search {
		grid-column: 1;
		grid-row: auto;
	}

	.mxro3-watch__recommendations {
		margin-top: 12px;
	}

	.mxro3-watch__more-grid,
	.mxro3-video-library__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.mxro3-home,
	.mxro3-archive,
	.mxro3-single {
		width: min(100% - 24px, 1200px);
	}

	.mxro3-grid {
		grid-template-columns: 1fr;
	}

	.mxro3-watch__channel-row,
	.mxro3-watch__toolbar,
	.mxro3-video-library__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.mxro3-watch-card {
		grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1fr);
	}

	.mxro3-watch__more-grid,
	.mxro3-video-library__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mxro3-archive__header {
		align-items: stretch;
		flex-direction: column;
	}

	.mxro3-search {
		flex-wrap: wrap;
	}

	.mxro3-search input {
		flex-basis: 100%;
	}
}
