/* Mô phỏng khoa học (/cong-cu/mo-phong). Tệp nạp ở mọi trang → mọi lớp có tiền tố mp-. */
.chinh:has(> .mp) { max-width: 1480px; }
.mp-dau { margin-bottom: 12px; }
.mp-dau h1 { margin: 0 0 4px; }
.mp-dau .phu { margin: 0; max-width: 60rem; }
.mp-dau--xem { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mp-ve { margin: 0 0 2px; }
.mp-mt { margin: 6px 0 0; }
.mp-luoi { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mp-luoi { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mp-luoi { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1360px) { .mp-luoi { grid-template-columns: repeat(4, 1fr); } }
.mp-o { position: relative; margin: 0; display: flex; flex-direction: column; }
.mp-o:hover { border-color: var(--c-vien); }
.mp-o h2 { font-size: 1.05rem; margin: 0 0 6px; }
.mp-o__lk { color: var(--c-dam); text-decoration: none; }
.mp-o__lk::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.mp-o__lk:focus-visible { outline: none; }
.mp-o__lk:focus-visible::after { outline: 3px solid color-mix(in srgb, var(--c) 55%, #fff); outline-offset: 2px; }
.mp-o__nhan { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.mp-o__mt { margin: 0 0 6px; font-size: .9375rem; color: var(--chu); flex: 1; }
.mp-o__mb { margin: 0; }
.mp-mon--vat-li { background: var(--c-nhat); color: var(--c-dam); }
.mp-mon--hoa-hoc { background: var(--nhan-nhat); color: var(--nhan-dam); }
.mp-mon--sinh-hoc { background: var(--xanh-la-nhat); color: var(--xanh-la); }
.mp-mon--toan { background: #f1ebf8; color: #5b2f8c; }
.mp-khung { position: relative; width: 100%; height: min(calc(100vh - 130px), 62.5vw); min-height: 320px; background: #000; border-radius: var(--r); overflow: hidden; }
.mp-khung:fullscreen { height: 100vh; border-radius: 0; }
.mp-if { display: block; width: 100%; height: 100%; border: 0; }
.mp-nguon { margin: 10px 0 0; color: var(--phu); }
@media (max-width: 640px) {
  .mp-khung { height: 72vh; }
}
