/* =========================================================================
   Course and bundle pages (loaded on product pages only)
   ========================================================================= */

.mx-crumbs { padding-block: 22px 8px; }
.mx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9375rem; color: var(--mx-ink-3); }
.mx-crumbs li + li::before { content: "\203A"; margin-inline-end: 8px; color: var(--mx-ink-3); }
.mx-crumbs a { color: var(--mx-ink-2); text-decoration: none; }
.mx-crumbs a:hover { text-decoration: underline; }
.mx-crumbs [aria-current] { color: var(--mx-ink); font-weight: 600; }

.mx-course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 64px); align-items: start; padding-bottom: var(--mx-section); }
.mx-course-body { display: flex; flex-direction: column; gap: clamp(44px, 5vw, 72px); min-width: 0; }
.mx-course-head { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.mx-course-title { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.mx-course-title.mx-lines .mx-line { padding-bottom: .12em; }
.mx-course-sub { margin: 0; font-size: var(--mx-t-lead); color: var(--mx-ink-2); }
.mx-course-sub a { color: var(--mx-ink); font-weight: 700; text-decoration-color: var(--mx-brand); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.mx-course-facts { margin: 14px 0 0; display: flex; flex-wrap: wrap; background: var(--mx-surface); border-radius: var(--mx-radius-lg); }
.mx-course-facts > div { flex: 1 1 120px; padding: 16px 20px; display: flex; flex-direction: column-reverse; }
.mx-course-facts > div + div { box-shadow: inset -1px 0 0 var(--mx-tone); }
.mx-course-facts dt { font-size: .875rem; color: var(--mx-ink-2); }
.mx-course-facts dd { margin: 0; font-size: 1.875rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mx-course-facts dd.mx-facts-word { font-size: 1.25rem; padding-top: 6px; }

.mx-player { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--mx-header-h) + 20px); }
.mx-player-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--mx-ink); border-radius: var(--mx-radius-lg); overflow: hidden; }
.mx-player-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--mx-blue); cursor: pointer; display: block; }
.mx-player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity 400ms ease, transform 900ms var(--mx-ease-soft); }
.mx-player-poster::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(13, 39, 66, .88), rgba(13, 39, 66, 0)); }
.mx-player-cta { z-index: 1; position: absolute; inset-inline-start: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); display: flex; align-items: center; gap: 14px; color: #fff; text-align: right; }
.mx-player-cta strong { display: block; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 800; }
.mx-player-cta small { display: block; color: var(--mx-blue-ink); font-size: .9375rem; }
.mx-player-dot { width: clamp(56px, 6vw, 76px); height: clamp(56px, 6vw, 76px); border-radius: 50%; background: var(--mx-brand); color: var(--mx-on-brand); display: grid; place-items: center; flex: none; transition: transform var(--mx-t-ui) var(--mx-ease-out); }
.mx-player-dot .mx-i { width: 40%; height: 40%; }
.mx-player-poster:active .mx-player-dot { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .mx-player-poster:hover img { opacity: .78; transform: scale(1.02); } .mx-player-poster:hover .mx-player-dot { transform: scale(1.06); } }
.mx-player-media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.mx-player-frame.is-playing { animation: mx-fade-in 280ms ease both; }
@keyframes mx-fade-in { from { opacity: .4; } }
.mx-player-now { margin: 0; color: var(--mx-ink-2); font-weight: 600; min-height: 1.5em; }

.mx-h3 { font-size: var(--mx-t-h3); font-weight: 800; letter-spacing: -.015em; line-height: 1.25; margin: 0; }
.mx-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mx-block-head p { margin: 0; color: var(--mx-ink-2); }
.mx-resume { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 14px 18px; border: 0; border-radius: var(--mx-radius-lg); background: var(--mx-ink); color: var(--mx-surface); font-weight: 700; text-align: right; cursor: pointer; transition: transform var(--mx-t-press) var(--mx-ease-out); }
.mx-resume .mx-i { color: var(--mx-brand); }
.mx-resume:active { transform: scale(.99); }

.mx-lessons { list-style: none; margin: 0; padding: 0; background: var(--mx-surface); border-radius: var(--mx-radius-lg); overflow: hidden; }
.mx-lessons li + li { box-shadow: inset 0 1px 0 var(--mx-tone); }
.mx-lesson { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 15px 20px; border: 0; background: transparent; text-align: right; font-size: 1.0625rem; color: var(--mx-ink-2); }
.mx-lesson.is-open { cursor: pointer; color: var(--mx-ink); transition: background-color var(--mx-t-hover) ease; }
.mx-lesson.is-open .mx-lesson-name { font-weight: 700; }
.mx-lesson[aria-current] { background: var(--mx-brand-soft); }
.mx-lesson-n { font-weight: 800; color: var(--mx-ink-3); font-variant-numeric: tabular-nums; }
.mx-lesson[aria-current] .mx-lesson-n { color: var(--mx-ink); }
.mx-lesson-state { color: var(--mx-ink-3); display: inline-flex; }
.mx-lesson.is-open .mx-lesson-state { color: var(--mx-ink); }
.mx-lesson-state .mx-i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .mx-lesson.is-open:hover { background: var(--mx-paper); } }
.mx-tag { font-size: .8125rem; font-weight: 800; background: var(--mx-brand); color: var(--mx-on-brand); padding: 3px 8px; border-radius: 3px; }
.mx-syllabus-note { display: flex; align-items: center; gap: 8px; color: var(--mx-ink-2); margin: 14px 0 0; }
.mx-syllabus-note .mx-i { width: 18px; height: 18px; }

.mx-prose { max-width: 68ch; color: var(--mx-ink); }
.mx-prose p { margin: 0 0 1em; line-height: 1.75; }
.mx-about .mx-h3 { margin-bottom: 14px; }

.mx-teacher-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: start; background: var(--mx-surface); border-radius: var(--mx-radius-lg); padding: 24px; }
.mx-teacher-photo { width: 140px; aspect-ratio: 4 / 5; border-radius: var(--mx-radius); overflow: hidden; background: var(--mx-tone); display: grid; }
.mx-teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mx-teacher-photo .mx-initials { display: grid; font-size: 2.25rem; }
.mx-teacher-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mx-teacher-kicker { margin: 0; color: var(--mx-ink-3); font-size: .9375rem; }
.mx-teacher-text .mx-h3 a { text-decoration: none; }
.mx-teacher-role { margin: 0; font-weight: 600; color: var(--mx-ink-2); }
.mx-teacher-about { margin: 6px 0 8px; color: var(--mx-ink-2); max-width: 60ch; }

.mx-reviews ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.mx-reviews li { background: var(--mx-surface); border-radius: var(--mx-radius-lg); padding: 20px 22px; }
.mx-stars { display: flex; gap: 2px; margin: 0 0 8px; color: var(--mx-tone-2); }
.mx-stars .on { color: var(--mx-brand); }
.mx-stars .mx-i { width: 18px; height: 18px; fill: currentColor; }
.mx-reviews blockquote { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.6; }
.mx-review-by { margin: 0; color: var(--mx-ink-3); font-size: .9375rem; }

.mx-faq { display: grid; gap: 8px; margin-top: 14px; }
.mx-acc { background: var(--mx-surface); border-radius: var(--mx-radius-lg); }
.mx-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.mx-acc summary::-webkit-details-marker { display: none; }
.mx-acc summary .mx-i { transition: transform var(--mx-t-ui) var(--mx-ease-out); flex: none; }
.mx-acc[open] summary .mx-i { transform: rotate(180deg); }
.mx-acc-body > div { padding: 0 22px 20px; color: var(--mx-ink-2); }
.mx-acc-body p { margin: 0; line-height: 1.7; }
@supports (interpolate-size: allow-keywords) {
	.mx-acc { interpolate-size: allow-keywords; }
	.mx-acc::details-content { height: 0; overflow: clip; transition: height 300ms var(--mx-ease-out), content-visibility 300ms allow-discrete; }
	.mx-acc[open]::details-content { height: auto; }
}

.mx-review-form form { display: grid; gap: 14px; max-width: 560px; margin-top: 12px; }
.mx-review-form > p { margin: 4px 0 0; color: var(--mx-ink-2); }
.mx-field { display: grid; gap: 6px; font-weight: 600; }
.mx-field input, .mx-field textarea { font: inherit; font-weight: 400; color: var(--mx-ink); background: var(--mx-surface); border: 1.5px solid var(--mx-line); border-radius: var(--mx-radius); padding: 12px 14px; min-height: 48px; }
.mx-field input:focus, .mx-field textarea:focus { outline: none; border-color: var(--mx-ink); }
.mx-rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.mx-rate legend { font-weight: 600; margin-bottom: 6px; width: 100%; }
.mx-rate input { position: absolute; opacity: 0; }
.mx-rate label { cursor: pointer; color: var(--mx-tone-2); }
.mx-rate label .mx-i { width: 30px; height: 30px; fill: currentColor; }
.mx-rate input:checked ~ label, .mx-rate label:hover, .mx-rate label:hover ~ label { color: var(--mx-brand); }
.mx-rate input:focus-visible + label { outline: 3px solid var(--mx-focus); }
.mx-form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }

.mx-buy { position: sticky; top: calc(var(--mx-header-h) + 20px); }
.mx-buy-card { background: var(--mx-surface); border-radius: var(--mx-radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 0 0 1px var(--mx-tone); }
.mx-buy-price { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.mx-buy-price > .mx-price { font-size: 2.375rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.mx-buy-price s { color: var(--mx-ink-3); font-size: 1.125rem; }
.mx-buy-save { margin: -4px 0 4px; font-weight: 800; color: #6B4500; background: var(--mx-brand-soft); align-self: flex-start; padding: 4px 10px; border-radius: 3px; font-size: .9375rem; }
.mx-btn-block { width: 100%; }
.mx-btn-lg { min-height: 56px; font-size: 1.125rem; }
.mx-buy-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9875rem; color: var(--mx-ink-2); }
.mx-buy-list li { display: flex; gap: 8px; align-items: flex-start; }
.mx-buy-list .mx-i { width: 18px; height: 18px; color: var(--mx-ok); margin-top: 3px; }
.mx-buy-bundle { display: block; margin-top: 6px; padding: 14px 16px; border-radius: var(--mx-radius); background: var(--mx-tone); text-decoration: none; transition: background-color var(--mx-t-hover) ease; }
.mx-buy-bundle span { display: block; font-weight: 700; }
.mx-buy-bundle small { color: var(--mx-ink-2); }
@media (hover: hover) and (pointer: fine) { .mx-buy-bundle:hover { background: var(--mx-tone-2); } }
.mx-buy-help { margin: 4px 0 0; font-size: .9375rem; color: var(--mx-ink-2); }
.mx-buy-help a { font-weight: 700; }
.mx-buy-owned { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 1.375rem; font-weight: 900; }
.mx-buy-owned .mx-i { color: var(--mx-ok); }
.mx-buy-note { margin: 0; color: var(--mx-ink-2); }
.mx-buy-expired { margin: 0; padding: 12px 14px; border-radius: var(--mx-radius); background: #FDECEA; color: #7A1A12; font-weight: 600; }

.mx-related { padding-block: 0 var(--mx-section); }
.mx-related .mx-h3 { margin-bottom: 10px; }

.mx-buybar {
	position: fixed; inset-inline: 0; bottom: 0; z-index: var(--mx-z-float);
	display: none; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	background: var(--mx-surface); box-shadow: 0 -1px 0 var(--mx-line), 0 -10px 30px -12px rgba(16, 24, 31, .25);
	transform: translateY(110%); transition: transform 320ms var(--mx-ease-drawer);
}
.mx-buybar.is-on { transform: none; }
.mx-buybar-price { display: flex; align-items: baseline; gap: 8px; }
.mx-buybar-price > .mx-price { font-size: 1.5rem; font-weight: 900; }
.mx-buybar-price s { color: var(--mx-ink-3); font-size: .9375rem; }
.mx-buybar .mx-btn { min-width: 140px; }

@media (max-width: 980px) {
	.mx-course-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
	.mx-course-body { display: contents; }
	.mx-course-head { order: -3; }
	.mx-player { order: -2; }
	.mx-buy { position: static; order: -1; }
	.mx-buybar { display: flex; }
	body.mx-view-course .mx-wa, body.mx-view-bundle .mx-wa { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
	.mx-course-facts > div { flex-basis: 45%; padding: 14px 16px; }
	.mx-teacher-card { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px; }
	.mx-teacher-photo { width: 88px; }
	.mx-lesson { padding: 14px 16px; grid-template-columns: 30px minmax(0, 1fr) auto; }
	.mx-buy-card { padding: 20px; }
}

/* bundle */
.mx-rows-1 { grid-template-columns: minmax(0, 1fr); background: var(--mx-surface); border-radius: var(--mx-radius-lg); padding: 4px 20px; }
.mx-rows-1 .mx-row:last-child > a { box-shadow: none; }
.mx-bundle-sum { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: flex-end; justify-content: flex-end; }
.mx-bundle-sum dt { font-size: .875rem; color: var(--mx-ink-3); font-weight: 600; }
.mx-bundle-sum dd { margin: 0; font-size: 1.75rem; font-weight: 900; }
.mx-bundle-sum s { color: var(--mx-ink-3); font-weight: 600; font-size: 1.25rem; }
.mx-bundle-sum-save dd { color: #6B4500; background: var(--mx-brand-soft); padding: 2px 10px; border-radius: 3px; }
.mx-buy-info { background: var(--mx-tone); color: var(--mx-ink); }
.mx-buy-multi { margin: 6px 0 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--mx-radius); background: var(--mx-brand-soft); color: #4A3000; font-size: .9375rem; line-height: 1.5; }
.mx-buy-multi .mx-i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #6B4500; }

/* Bundle page (16.10): the included courses light up one after another (an amber rule runs along
   each row), then the sum reads out and the saving lands — after the last course, not before. */
@media (prefers-reduced-motion: no-preference) {
	.js .mx-bundle-inc > li { position: relative; transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
	.js .mx-bundle-inc > li::after {
		content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--mx-brand);
		transform: scaleX(0); transform-origin: right; pointer-events: none;
	}
	.js .mx-bundle-inc.is-in > li::after { animation: mx-bundle-rule 700ms var(--mx-ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 350ms); }
	.js .mx-bundle-sum[data-reveal] .mx-bundle-sum-save dd { transform: scale(.6); opacity: 0; }
	.js .mx-bundle-sum[data-reveal].is-in .mx-bundle-sum-save dd { animation: mx-bundle-land 520ms cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(var(--n, 3) * 90ms + 500ms); }
}
@keyframes mx-bundle-rule { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mx-bundle-land { to { transform: none; opacity: 1; } }

/* End of the free sample (sales idea 11): over the player, real next lessons + price + buy. */
.mx-sample-end {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px;
	padding: clamp(16px, 4vw, 40px); background: rgba(13, 39, 66, .94); color: #fff; text-align: start;
}
.mx-sample-end-k { margin: 0; font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 900; outline: none; }
.mx-sample-end-t { margin: 0; color: #CFE0F0; }
.mx-sample-end-list { margin: 0; padding-inline-start: 1.4em; color: #fff; font-weight: 600; line-height: 1.5; }
.mx-sample-end-list li::marker { color: var(--mx-brand); font-weight: 800; }
.mx-sample-end-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mx-sample-end .mx-btn.mx-btn-line { color: #fff !important; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
@media (max-width: 560px) {
	.mx-player-frame:has(.mx-sample-end) { aspect-ratio: auto; }
	.mx-player-frame:has(.mx-sample-end) .mx-player-media { display: none; }
	.mx-sample-end { position: relative; inset: auto; gap: 6px; padding: 20px 16px; }
	.mx-sample-end-buy .mx-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) { .mx-sample-end { animation: mx-fade-in 280ms ease both; } }

/* Exam-prep topic list (sales idea 9): the real lesson list printed as a checklist. */
.mx-print-btn {
	min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
	color: var(--mx-ink); font: inherit; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--mx-line, #cfd8e3);
}
.mx-print-btn:hover { box-shadow: inset 0 0 0 2px var(--mx-brand); }
.mx-print-only { display: none; }
@media print {
	html.mx-printing-topics body * { visibility: hidden; }
	html.mx-printing-topics .mx-syllabus, html.mx-printing-topics .mx-syllabus * { visibility: visible; }
	html.mx-printing-topics body *:not(:has(.mx-syllabus)):not(.mx-syllabus):not(.mx-syllabus *) { display: none !important; }
	html.mx-printing-topics body, html.mx-printing-topics body *:has(.mx-syllabus) { margin: 0 !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }
	html.mx-printing-topics .mx-syllabus { margin: 0; padding: 0; }
	html.mx-printing-topics .mx-lesson-name { font-weight: 400; }
	html.mx-printing-topics .mx-block-head, html.mx-printing-topics .mx-resume, html.mx-printing-topics .mx-lesson-state { display: none; }
	html.mx-printing-topics .mx-print-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14pt; }
	html.mx-printing-topics .mx-print-head span { font-size: 10pt; color: #444; }
	html.mx-printing-topics .mx-lessons li { opacity: 1 !important; transform: none !important; break-inside: avoid; }
	html.mx-printing-topics .mx-lesson { display: flex; gap: 10px; align-items: center; padding: 6px 0; border: 0; border-bottom: 1px solid #bbb; background: none; color: #000; box-shadow: none; }
	html.mx-printing-topics .mx-lesson::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid #000; border-radius: 2px; }
}

/* Course page cover drawn live (per-subject drawing): members draw, then loads, then labels. */
.mx-player-poster .mx-cover-live { position: absolute; inset: 0; display: block; transition: transform 900ms var(--mx-ease-soft); }
.mx-player-poster .mx-cover-live svg { display: block; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .mx-player-poster:hover .mx-cover-live { transform: scale(1.02); } }
@media (prefers-reduced-motion: no-preference) {
	.mx-cover-live .dw, .mx-cover-live .da { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mx-cover-draw 1100ms var(--mx-ease-in-out) 150ms forwards; }
	.mx-cover-live .da { opacity: 0; animation: mx-cover-draw 600ms var(--mx-ease-in-out) 1050ms forwards, mx-cover-fade 1ms linear 1050ms forwards; }
	.mx-cover-live .df, .mx-cover-live .dl { opacity: 0; animation: mx-cover-fade 400ms ease 1350ms forwards; }
}
@keyframes mx-cover-draw { to { stroke-dashoffset: 0; } }
@keyframes mx-cover-fade { to { opacity: 1; } }

/* Course page: matching tools from the engineering lab */
.mx-course-lab { margin: clamp(28px, 4vw, 44px) 0; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--mx-radius-lg); background: var(--mx-blue); color: #EAF1F8; }
.mx-course-lab .mx-h3 { color: #fff; margin: 0 0 6px; }
.mx-course-lab > p { margin: 0 0 14px; color: #C9D6E3; }
.mx-course-lab ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mx-course-lab a { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: var(--mx-radius); background: rgba(234, 241, 248, .08); color: #fff; text-decoration: none; transition: background var(--mx-t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .mx-course-lab a:hover { background: rgba(234, 241, 248, .16); } }
.mx-course-lab .mx-tools-ico { width: 56px; height: 42px; flex: none; background: #EAF1F8; color: var(--mx-ink); }
.mx-course-lab span { display: grid; gap: 2px; }
.mx-course-lab small { color: #C9D6E3; font-size: .8125rem; line-height: 1.4; }
.mx-rv-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: .9375rem; } .mx-rv-sum .mx-stars { margin: 0; }

/* one active viewer (mx/view-lease.php): the message over the player */
.mx-lease-msg { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; background: rgba(13, 39, 66, .94); color: #fff; text-align: center; }
.mx-lease-msg p { margin: 0; max-width: 34ch; font-size: 1.0625rem; line-height: 1.6; }
.mx-lease-msg a { color: var(--mx-brand); }

/* our own full screen (signed-in viewers): the frame with the watermark goes full screen, not the bare iframe */
.mx-fs-btn { position: absolute; z-index: 6; inset-block-end: 10px; inset-inline-start: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; background: rgba(13, 39, 66, .78); color: #fff; cursor: pointer; opacity: .85; transition: opacity var(--mx-t-hover); }
.mx-fs-btn:hover, .mx-fs-btn:focus-visible { opacity: 1; }
.mx-fs-btn svg { width: 22px; height: 22px; }
.mx-player-frame:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.mx-player-frame:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.mx-player-frame:fullscreen .mx-player-media, .mx-player-frame:-webkit-full-screen .mx-player-media { width: 100%; height: 100%; }
.mx-player-frame.is-pseudo-fs { position: fixed; inset: 0; z-index: 9999; aspect-ratio: auto; border-radius: 0; background: #000; }
.mx-player-frame.is-pseudo-fs .mx-player-media { width: 100%; height: 100%; }
html.mx-noscroll { overflow: hidden; }

/* buy box: one upgrade in view, the rest in one panel (18.10) */
.mx-buy-more { margin: 14px 0 0; border-top: 1px solid var(--mx-line); padding-top: 10px; }
.mx-buy-more summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.mx-buy-more[open] summary { margin-bottom: 8px; }
.mx-buy-rule { margin: 10px 0 0; font-size: .875rem; color: var(--mx-ink-2); }

/* course pass (mx/degree-pass.php) */
.mx-pass-pick { display: grid; gap: 8px; }
.mx-pass-left { margin: 0; text-align: center; font-weight: 700; color: var(--mx-ink-2); }
.mx-pass-confirm { display: grid; gap: 8px; padding: 12px; border-radius: var(--mx-radius); background: var(--mx-tone); }
.mx-pass-confirm p { margin: 0; font-size: .9375rem; }
.mx-pass-msg { margin: 0; font-weight: 700; min-height: 1.2em; }
