/* models.9minecraft.net — BODY trang chi tiet (08/11/2026)
   Google-inspired Minimalist Floating UI: nen phang, moi khoi la THE NOI bong mem khong vien,
   bo goc 28/16/12, nut vien thuoc, mot mau nhan, phan cap bang co chu + xam.
   Chi nap o trang /m/<slug>/ — khong dung chung voi create (them.css hai sub giong het nhau). */

.mdl { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px;
       align-items: start; margin-top: 16px; }
.mdl-chinh { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mdl-phu { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.mdl .the { margin: 0; border-radius: var(--r-lon); box-shadow: var(--bong); background: var(--the); }
.mdl-ic { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- anh xem truoc ---------- */
.mdl-media { padding: 14px; position: relative; overflow: hidden; }
.mdl-media__nut { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in;
  background: var(--bg); border-radius: 20px; overflow: hidden; }
.mdl-media__nut img { display: block; margin: 0 auto; max-width: 100%; max-height: 560px;
  width: auto; height: auto; object-fit: contain; }
.mdl-media__chan { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex;
  justify-content: space-between; gap: 8px; pointer-events: none; }
.mdl-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 11px;
  border-radius: 999px; background: rgba(32,33,36,.72); color: #fff; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: auto; }
.mdl-pill .mdl-ic { width: 16px; height: 16px; }
.mdl-pill--nut { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; }
.mdl-pill--nut:hover { background: rgba(32,33,36,.9); }

/* ---------- muc luc ---------- */
.mdl-tabs { display: flex; gap: 6px; padding: 6px; background: var(--the); box-shadow: var(--bong);
  border-radius: 999px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 84px; z-index: 5; }
.mdl-tabs::-webkit-scrollbar { display: none; }
.mdl-tabs a { flex: 0 0 auto; padding: 8px 18px; border-radius: 999px; color: var(--xam);
  font-size: 14px; font-weight: 500; white-space: nowrap; min-height: 36px; display: inline-flex;
  align-items: center; }
.mdl-tabs a:hover { background: var(--bg); text-decoration: none; color: var(--chu); }
.mdl-tabs a.on { background: var(--nhan-nen); color: var(--nhan-dam); }
.mdl-the[id], #n9tt-bl { scroll-margin-top: 150px; }

/* ---------- the noi dung ---------- */
.mdl-the { padding: 26px 30px; }
.mdl-the h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--chu);
  letter-spacing: -.01em; }
.mdl-the h2 + h2, .mdl-the ul + h2, .mdl-the ol + h2 { margin-top: 26px; }
.mdl-the p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--chu); }
.mdl-the p:last-child { margin-bottom: 0; }
.mdl-lead { font-size: 17px !important; line-height: 1.6 !important; color: var(--xam) !important;
  margin-bottom: 18px !important; padding-bottom: 18px; border-bottom: 1px solid rgba(127,127,127,.16); }
.mdl-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mdl-dau h2 { margin: 0; }
.mdl-dem { min-width: 28px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--bg);
  color: var(--xam); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center;
  justify-content: center; }

.mdl-ds, .mdl-yt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mdl-ds li, .mdl-yt li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6;
  padding: 12px 16px; border-radius: var(--r-vua); background: var(--bg); }
.mdl-ds b { font-weight: 600; }
.mdl-ds b::after { content: ':'; }
.mdl-ic--ok { color: #188038; margin-top: 3px; }
.mdl-ic--y { color: #e37400; margin-top: 3px; }
.mdl-yt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mdl-yt li { flex-direction: column; gap: 8px; }

/* ---------- gallery ---------- */
.mdl-gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mdl-gl__o { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-anh); overflow: hidden;
  background: var(--bg); cursor: zoom-in; }
.mdl-gl__o img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mdl-gl__o:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.mdl-fq { border-radius: var(--r-vua); background: var(--bg); margin-top: 10px; }
.mdl-fq:first-of-type { margin-top: 0; }
.mdl-fq summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 44px 14px 16px; font-size: 15px; font-weight: 500; position: relative; line-height: 1.5; }
.mdl-fq summary::-webkit-details-marker { display: none; }
.mdl-fq summary::after { content: ''; position: absolute; right: 18px; top: 20px; width: 8px; height: 8px;
  border-right: 2px solid var(--xam); border-bottom: 2px solid var(--xam); transform: rotate(45deg);
  transition: transform .2s; }
.mdl-fq[open] summary::after { transform: rotate(-135deg); top: 24px; }
.mdl-fq summary .mdl-ic { color: var(--nhan); margin-top: 2px; }
.mdl-fq p { padding: 0 18px 16px 46px; margin: 0 !important; color: var(--xam) !important; font-size: 14.5px !important; }

.mdl-the--tags h2 { font-size: 16px; margin-bottom: 10px; }
.mdl-the--tags .chips { margin: 0; }

/* ---------- cot phu ---------- */
.mdl-ben { padding: 20px; }
.mdl-nho { display: block; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .08em;
  text-transform: uppercase; color: var(--xam) !important; margin: 0 0 4px !important; }
.mdl-xam { display: block; color: var(--xam); font-size: 13px; }
.mdl-hd .mdl-nut { display: flex; flex-direction: column; gap: 8px; }
.mdl-hd .nut { width: 100%; justify-content: center; min-height: 44px; font-size: 15px; display: inline-flex;
  align-items: center; gap: 8px; border-radius: 999px; margin: 0; }
.mdl-chia { margin-top: 8px !important; background: var(--bg); color: var(--chu); border: 0; cursor: pointer;
  font: inherit; font-weight: 500; }
.mdl-chia .mdl-ic { width: 17px; height: 17px; }
.mdl-chia.xong { background: var(--nhan-nen); color: var(--nhan-dam); }
.mdl-goiy { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--xam); }

.mdl-tg__dau { display: flex; gap: 14px; align-items: center; }
.mdl-av { width: 48px; height: 48px; border-radius: 50%; background: var(--av); color: #fff; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; }
.mdl-tg__ten { display: block; font-size: 16px; font-weight: 600; color: var(--chu); word-break: break-word; }
.mdl-tg__lk { display: flex; width: 100%; justify-content: center; margin-top: 14px; min-height: 40px;
  align-items: center; border-radius: 999px; }
.mdl-gp { display: flex; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px;
  background: var(--bg); font-size: 12.5px; color: var(--xam); line-height: 1.5; }
.mdl-gp .mdl-ic { width: 16px; height: 16px; margin-top: 1px; }

.mdl-sp h2 { margin-bottom: 8px !important; }
.mdl-sp dl { margin: 0; }
.mdl-sp dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-top: 1px solid rgba(127,127,127,.14); font-size: 13.5px; }
.mdl-sp dl > div:first-child { border-top: 0; }
.mdl-sp dt { color: var(--xam); flex: 0 0 auto; }
.mdl-sp dd { margin: 0; text-align: right; font-weight: 500; color: var(--chu); min-width: 0; }
.mdl-fm { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.mdl-fm span { padding: 2px 9px; border-radius: 999px; background: var(--nhan-nen); color: var(--nhan-dam);
  font-size: 12px; font-weight: 500; }

/* ---------- hop xem anh ---------- */
.mdl-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(15,15,17,.92); display: none;
  align-items: center; justify-content: center; }
.mdl-lb.mo { display: flex; }
.mdl-lb__anh { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain;
  border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.mdl-lb button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: flex;
  align-items: center; justify-content: center; }
.mdl-lb button:hover { background: rgba(255,255,255,.24); }
.mdl-lb button[hidden] { display: none; }
.mdl-lb__x { top: 16px; right: 16px; }
.mdl-lb__l { left: 20px; top: 50%; transform: translateY(-50%); }
.mdl-lb__r { right: 20px; top: 50%; transform: translateY(-50%); }
.mdl-lb__dem { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff;
  font-size: 13px; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px; }
html.mdl-khoa { overflow: hidden; }

/* ---------- man hep ---------- */
@media (max-width: 1080px) {
  .mdl { grid-template-columns: minmax(0, 1fr) 300px; }
  .mdl-yt { grid-template-columns: 1fr; }
  .mdl-yt li { flex-direction: row; }
}
@media (max-width: 900px) {
  .mdl { grid-template-columns: minmax(0, 1fr); }
  .mdl-phu { position: static; }
  /* dien thoai: nut hanh dong ngay duoi anh, truoc noi dung dai */
  .mdl-chinh, .mdl-phu { display: contents; }
  .mdl { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .mdl > * , .mdl-chinh > *, .mdl-phu > * { min-width: 0; max-width: 100%; }
  .mdl-chinh > * { order: 4; }
  .mdl .mdl-chinh > .mdl-media { order: 1; }
  .mdl .mdl-phu > .mdl-hd { order: 2; }
  .mdl .mdl-chinh > .mdl-tabs { order: 3; }
  .mdl .mdl-phu > .mdl-tg { order: 5; }
  .mdl .mdl-phu > .mdl-sp { order: 6; }
  .mdl .mdl-chinh > .mdl-the--tags { order: 7; }
}
@media (max-width: 600px) {
  .mdl-the { padding: 20px 18px; }
  .mdl .the { border-radius: 22px; }
  .mdl-the h2 { font-size: 19px; }
  .mdl-the p, .mdl-ds li, .mdl-yt li { font-size: 14.5px; }
  .mdl-lead { font-size: 16px !important; }
  .mdl-media { padding: 10px; }
  .mdl-media__chan { left: 20px; right: 20px; bottom: 20px; }
  .mdl-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mdl-tabs { top: 70px; }
  .mdl-tabs a { padding: 8px 14px; }
  .mdl-lb__anh { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .mdl-lb__l, .mdl-lb__r { top: auto; bottom: 10px; transform: none; }
}


/* ══ 23/11/2026 BODY 2 — "STUDIO 3D" (xem _body2_mdl_css.py) ══════════════════════════ */
.mdl { --st: #6b4eff; --st2: #b04cf0; --st-nen: #f1edff; --st-chu: #4b2fd6; }
:root[data-theme="dark"] .mdl { --st: #9d8bff; --st2: #d17bff; --st-nen: #2a2447; --st-chu: #c4b8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mdl {
  --st: #9d8bff; --st2: #d17bff; --st-nen: #2a2447; --st-chu: #c4b8ff; } }

/* san khau anh: nen toi + den spot + bong san */
/* ⛔ n9tb.js (sua tuong phan) chi doc background-COLOR, bo qua gradient -> PHAI co mau nen dac
   duoi gradient, khong thi no tuong nen trang va ep chu den len nut/pill. */
.mdl .mdl-media { padding: 0; background:
  radial-gradient(60% 75% at 50% 32%, rgba(157,139,255,.22), transparent 70%),
  radial-gradient(90% 90% at 50% 40%, #343846 0%, #1b1e26 62%, #101217 100%); }
.mdl .mdl-media::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); pointer-events: none; }
.mdl .mdl-media::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 46px; height: 30px;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); pointer-events: none; }
.mdl .mdl-media__nut { background: transparent; border-radius: 0; padding: 34px 34px 70px; position: relative; z-index: 1; }
.mdl .mdl-media__nut img { max-height: 520px; border-radius: 14px;
  box-shadow: 0 28px 60px -18px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); }
.mdl .mdl-media__chan { left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.mdl .mdl-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff !important; }
.mdl .mdl-pill--nut:hover { background: rgba(255,255,255,.24); }

/* muc luc: tab dang chon = gradient tim */
.mdl .mdl-tabs a.on { background: var(--st) linear-gradient(135deg, var(--st), var(--st2)); color: #fff;
  box-shadow: 0 4px 12px -4px var(--st); }
.mdl .mdl-tabs a:hover:not(.on) { color: var(--st-chu); }

/* tieu de muc: dau khoi lap phuong tim */
.mdl .mdl-the > h2, .mdl .mdl-dau h2 { display: flex; align-items: center; gap: 12px; }
.mdl .mdl-the > h2::before, .mdl .mdl-dau h2::before { content: ""; flex: 0 0 auto; width: 11px; height: 11px;
  border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, var(--st), var(--st2)); }
.mdl .mdl-lead { border-bottom: 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--st);
  margin-bottom: 22px !important; color: var(--chu) !important; }

/* What's inside: dong co vach tim ben trai */
.mdl .mdl-ds li { background: var(--bg); border-left: 3px solid var(--st); border-radius: 6px 14px 14px 6px; }
.mdl .mdl-ic--ok { color: var(--st); }
/* Ideas: the trang vien gradient tren */
.mdl .mdl-yt li { background: var(--the); box-shadow: inset 0 0 0 1px rgba(127,127,127,.18);
  border-radius: 14px; position: relative; overflow: hidden; padding-top: 16px; }
.mdl .mdl-yt li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--st), var(--st2)); }
.mdl .mdl-ic--y { color: var(--st2); }
.mdl .mdl-fq summary .mdl-ic { color: var(--st); }
.mdl .mdl-fq[open] { box-shadow: inset 3px 0 0 var(--st); }

/* the tai */
.mdl .mdl-hd::before { content: "Get this model"; display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--xam); }
.mdl .mdl-hd .nut.chinh:not([href^="/editor/"]) { min-height: 52px; font-size: 16px; font-weight: 600; color: #fff !important;
  background: var(--st) linear-gradient(135deg, var(--st), var(--st2)); box-shadow: 0 10px 24px -10px var(--st); border: 0; }
.mdl .mdl-hd .nut.chinh:not([href^="/editor/"]):hover { filter: brightness(1.06); }
.mdl .mdl-hd .nut.chinh[href^="/editor/"] { background: var(--st-nen); color: var(--st-chu) !important;
  box-shadow: inset 0 0 0 1.5px var(--st); }
.mdl .mdl-hd .nut:not(.chinh):not(.mdl-chia) { background: var(--bg); color: var(--chu); box-shadow: none; }
.mdl .mdl-hd .tgbtns { max-width: none !important; margin: 12px 0 0 !important; }

/* tac gia */
.mdl .mdl-av { box-shadow: 0 0 0 3px var(--the), 0 0 0 5px var(--st); }
.mdl .mdl-tg__lk { background: var(--st-nen); color: var(--st-chu); }

/* thong so */
.mdl .mdl-sp dl > div { border-top-style: dashed; }
.mdl .mdl-fm span { background: var(--st-nen); color: var(--st-chu); }

@media (max-width: 600px) {
  .mdl .mdl-media__nut { padding: 18px 14px 58px; }
  .mdl .mdl-media::after { bottom: 40px; }
  .mdl .mdl-media__nut img { max-height: 360px; }
}
.mdl .mdl-media { background-color: #1b1e26; }  /* sau shorthand `background:` — xem chu thich o tren */
/* ══ het 23/11 STUDIO 3D ══ */

/* ══ 24/11/2026 tab "Photo | 3D" + khung xem 3D nhe ══ */
.mdl .mdl-v3d-tab { position: absolute; left: 18px; top: 16px; z-index: 3; display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; background-color: rgba(15,17,22,.62); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mdl .mdl-v3d-tab button { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; background-color: transparent; color: #e8eaed !important; min-height: 32px; }
.mdl .mdl-v3d-tab button:hover:not(.on) { background-color: rgba(255,255,255,.12); }
.mdl .mdl-v3d-tab button.on { background-color: var(--st); background-image: linear-gradient(135deg, var(--st), var(--st2));
  color: #fff !important; box-shadow: 0 4px 12px -4px var(--st); }
.mdl .mdl-v3d { position: relative; z-index: 1; height: min(70vh, 560px); min-height: 320px; cursor: grab; }
.mdl .mdl-v3d:active { cursor: grabbing; }
.mdl .mdl-v3d canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.mdl .mdl-v3d__bao { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #c9ccd3;
  font-size: 14px; pointer-events: none; padding: 0 24px; text-align: center; }
.mdl .mdl-v3d__goi { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #aeb3bd;
  font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.mdl .mdl-v3d.xong .mdl-v3d__goi { opacity: 1; }
.mdl .mdl-media.v3d-on .mdl-media__nut, .mdl .mdl-media.v3d-on .mdl-media__chan,
.mdl .mdl-media.v3d-on .s9b__trong { display: none; }
.mdl .mdl-media.v3d-on::after { display: none; }
@media (max-width: 600px) {
  .mdl .mdl-v3d-tab { left: 12px; top: 12px; }
  .mdl .mdl-v3d { height: 62vh; min-height: 300px; }
}
/* ══ het 24/11 v3d ══ */

