/* ============ Kệ sách SuperBook (màn hình đầu tiên) ============
   Tờ giấy trắng ngà, dãy gáy sách vô tận đứng trên kệ; cuốn đang chọn xoay ra cho thấy bìa.
   Màu nhấn --accent đổi theo màu vải bìa của cuốn đang chọn (shelf.js setActive). */
.shelf-root {
  --paper: #edebe6;
  --sheet: #f4f2ed;
  --ink: #141414;
  --muted: #6d6a63;
  --accent: #1f3d5c;
  --rule: rgba(20, 20, 20, .9);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --H: min(46vh, 31vw);
  /* Be Vietnam Pro vẽ riêng cho tiếng Việt: dấu chồng (Ệ, Ữ…) cân hơn ở cỡ chữ nhỏ in hoa */
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --serif: "Newsreader", "Noto Serif", Georgia, serif;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper); color: var(--ink);
  overflow: hidden; user-select: none; -webkit-user-select: none;
  -webkit-font-smoothing: antialiased; font-family: var(--sans);
}
.shelf-root[hidden] { display: none; }
body.on-shelf { overflow: hidden; }
.sb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* nhãn chữ in hoa nhỏ + khung 1px như thẻ trong catalogue in */
/* line-height 1.5: chữ in hoa tiếng Việt có dấu chồng cao (Ạ, Ữ, Ệ…) — thấp hơn thì khung che overflow:hidden
   (dòng chú thích trượt, .mk ở trang chi tiết) cắt mất dấu */
.shelf-root .lbl { font: 600 10.5px/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.shelf-root .box {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px;
  border: 1px solid var(--rule); color: var(--ink); background: none; text-decoration: none; white-space: nowrap;
}
.shelf-root button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

/* ---------- Thanh trên ---------- */
.sb-top {
  position: fixed; top: 0; left: 0; right: 0; height: 84px; padding: 0 32px; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.sb-top > :first-child { justify-self: start; }
.sb-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
/* ô tài khoản (js/account/badge.js): chưa đăng nhập = khung "Đăng nhập"; đã đăng nhập = tên + menu nhỏ */
.sb-acc { position: relative; }
.sb-acc .box { cursor: pointer; gap: 7px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.sb-acc .box:hover, .sb-acc.open .box { background: var(--ink); color: var(--paper); }
.sb-acc .av { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: 7.5px; letter-spacing: 0; overflow: hidden; }
.sb-acc .av img { width: 100%; height: 100%; object-fit: cover; }
.sb-acc .nm { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
/* menu tài khoản: tấm kính (cùng kiểu nút kính của kệ), mục chọn là viên kính nhỏ sáng lên khi rê chuột */
.sb-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; z-index: 10;
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28) 55%, rgba(255, 252, 244, .38));
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-edge); border-radius: 18px;
  box-shadow: 0 24px 50px -16px rgba(50, 38, 18, .32), 0 2px 6px rgba(50, 38, 18, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3);
  transform-origin: top right; transform: translateY(-6px) scale(.96); clip-path: inset(0 0 100% 0 round 18px); visibility: hidden;
  transition: transform .3s var(--ease), clip-path .3s var(--ease), visibility 0s .3s;
}
.sb-acc.open .sb-menu {
  transform: none; clip-path: inset(-40px -40px -60px -40px round 18px); visibility: visible;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1.2), clip-path .35s var(--ease), visibility 0s;
}
.sb-menu .em {
  padding: 8px 12px 10px; margin-bottom: 4px; color: var(--muted); font: 500 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 1px 0 rgba(20, 20, 20, .07);
}
.shelf-root .sb-menu a, .shelf-root .sb-menu button {
  display: block; width: 100%; padding: 9px 12px; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer;
  font: 600 10.5px/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 12px; background: none;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.shelf-root .sb-menu a:hover, .shelf-root .sb-menu button:hover {
  background: var(--glass-bg); border-color: rgba(255, 255, 255, .9); color: var(--ink);
  box-shadow: 0 6px 16px rgba(50, 38, 18, .12), inset 0 1px 0 #fff; transform: translateX(2px);
}
.shelf-root .sb-menu a:active, .shelf-root .sb-menu button:active { transform: scale(.97); box-shadow: inset 0 2px 6px rgba(50, 38, 18, .14); }
@media (max-width: 720px) { .sb-career { display: none; } }
.sb-logo { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--accent); transition: color .6s var(--ease); }
.sb-logo .l1 { font: italic 700 24px/1 "Noto Serif", Georgia, serif; letter-spacing: .01em; }
.sb-logo .l2 { font: 600 9px/1 var(--sans); letter-spacing: .34em; padding-left: .34em; }

/* ---------- Thẻ nhóm môn ---------- */
.sb-tabs {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 5;
  top: calc(50% - var(--H) / 2 - 86px); display: flex;
}
.sb-tabs button {
  position: relative; z-index: 1; height: 23px; padding: 0 11px; margin-left: -1px;
  border: 1px solid var(--rule); white-space: nowrap; transition: color .45s var(--ease);
}
.sb-tabs button:first-of-type { margin-left: 0; }
.sb-tabs button.on { color: #fff; }
.sb-tabs .ind {
  position: absolute; top: 0; left: 0; height: 23px; width: 0; background: var(--accent);
  transition: width .6s var(--ease), transform .6s var(--ease), background-color .6s var(--ease);
}

/* ---------- Kệ (sân khấu 3D) ---------- */
.sb-shelf {
  position: fixed; left: 0; right: 0; top: calc(50% - var(--H) / 2 - 40px); height: calc(var(--H) + 80px);
  perspective: 2200px; perspective-origin: 50% 50%; touch-action: pan-y;
}
.sb-shelf .stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
/* tấm ván kệ: sách đứng thẳng trên mép ván */
.sb-plank {
  position: absolute; left: -2%; right: -2%; top: calc(50% + var(--H) / 2 - 1px); height: calc(var(--H) * .05);
  background: linear-gradient(#a27e57, #8a6845 38%, #6f5236);
  box-shadow: 0 calc(var(--H) * .05) calc(var(--H) * .06) calc(var(--H) * -.03) rgba(40, 28, 14, .45), inset 0 1px 0 rgba(255, 240, 215, .35);
}
.sb-plank::after { /* bóng sách đổ xuống mặt ván */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(rgba(30, 20, 10, .35), rgba(30, 20, 10, 0));
}
.tape { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.tape > div {
  position: absolute; top: calc(var(--h) / -2); height: var(--h);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px; overflow: hidden;
}
.tape > div > svg { display: block; width: 100%; height: 100%; }
.tape > div::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
.tape .sp { width: var(--ws); left: calc(var(--ws) / -2); transform: translateZ(calc(var(--d) / 2)); }
.tape .cv {
  width: var(--d); left: calc(var(--d) / -2); transform: rotateY(90deg) translateZ(calc(var(--ws) / 2));
  box-shadow: 0 30px 60px -28px rgba(20, 16, 10, .55); border-radius: 2px 4px 4px 2px;
}

/* ---------- Chú thích ---------- */
.sb-cap {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(50% + var(--H) / 2 + 30px); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 9px; pointer-events: none;
}
.sb-cap .m { position: relative; overflow: hidden; width: min(92vw, 760px); text-align: center; }
.sb-cap .m > span { display: block; }
/* tên môn dùng đúng phông tựa "Sách Xưa" trên bìa của môn (--tf* do shelf.js setActive đặt) */
.sb-cap .t { font: var(--tf-st, normal) var(--tf-w, 400) 34px/1.15 var(--tf, ''), var(--serif); }
.sb-cap .s { color: var(--accent); font-weight: 500; transition: color .6s var(--ease); }
.sb-cap .y { font: 500 11px/1.2 var(--sans); letter-spacing: .08em; }

/* ---------- Mũi tên ---------- */
.sb-arrow { position: fixed; top: calc(50% + var(--H) / 2 + 40px); width: 44px; height: 44px; display: grid; place-items: center; z-index: 6; }
.sb-arrow.prev { left: 20px; }
.sb-arrow.next { right: 20px; }

/* ---------- Chân trang ---------- */
.sb-foot { position: fixed; left: 32px; right: 32px; bottom: 26px; display: flex; justify-content: space-between; z-index: 5; }

/* ---------- Vân giấy phủ lên mọi thứ (trừ tờ chi tiết) ---------- */
.sb-grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .38 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Trang chi tiết ---------- */
.sb-detail { position: fixed; inset: 0; z-index: 60; background: var(--sheet); visibility: hidden; overflow: hidden; }
.sb-close { position: absolute; top: 31px; left: 32px; z-index: 2; }
.dt-logo { position: absolute; top: 0; left: 0; right: 0; height: 84px; justify-content: center; }
.dt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; height: 100%; box-sizing: border-box;
  padding: 110px 6vw 56px 7vw; align-items: center;
}
.dt-text { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.dt-text .mk { overflow: hidden; padding-bottom: 2px; }
.dt-text .mk[hidden] { display: none; }
.dt-sub { color: var(--accent); }
.dt-title { margin: 0; font: var(--tf-st, normal) var(--tf-w, 400) clamp(44px, 5.4vw, 84px)/1.08 var(--tf, ''), var(--serif); }
.dt-meta { color: var(--muted); }
.dt-syn { margin: 0; font: 400 17px/1.5 var(--serif); max-width: 42ch; }
.dt-ch { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; counter-reset: ch; font: 500 12.5px/1.9 var(--sans); }
.dt-ch li { counter-increment: ch; break-inside: avoid; }
.dt-ch li::before { content: counter(ch, decimal-leading-zero) ' '; color: var(--accent); font-weight: 600; letter-spacing: .05em; margin-right: 6px; }
.dt-credit { margin: 0; font: italic 400 15px/1.45 var(--serif); color: var(--muted); }
.dt-go { height: 44px !important; padding: 0 20px !important; margin-top: 10px; border-color: var(--accent) !important; color: var(--accent) !important; }
.dt-go:not(:disabled):hover { background: var(--accent); color: #fff !important; }
.dt-go:disabled { opacity: .55; border-style: dashed !important; }
.dt-go.busy { pointer-events: none; }
/* giá + nút mua ở trang chi tiết */
.dt-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; padding-bottom: 4px; }
.dt-price .pr { font: 700 32px/1.4 "Noto Serif", Georgia, serif; color: var(--accent); }
.dt-price .st { color: var(--muted); }
.dt-price.owned .pr { font-size: 20px; color: #3f7a4c; }
.dt-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.shelf-root .dt-acts .dt-buy { /* độ ưu tiên cao hơn mục "Kiểu kính" phía dưới (nền kính trắng) */
  height: 44px; padding: 0 22px; margin-top: 10px; border-radius: 999px; position: relative; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), var(--accent);
  border-color: rgba(255, 255, 255, .55) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.shelf-root .dt-acts .dt-buy:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 4px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .55); }
.shelf-root .dt-buy[hidden] { display: none; }
.dt-buy.busy { pointer-events: none; opacity: .75; }
.dt-note { margin: 4px 0 0; color: #b2452f; font-size: 13.5px; }
.dt-note[hidden] { display: none; }
.dt-text .mk:has(.dt-acts) { padding: 14px 24px 26px; margin: -14px -24px -26px; }
.dt-poster { height: min(100%, 78vh); aspect-ratio: 600 / 794; justify-self: center; }
.dt-poster svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 24px 40px rgba(20, 16, 10, .28)); }

/* ---------- Con trỏ riêng (chỉ chuột) ---------- */
.sb-cursor { display: none; }
@media (pointer: fine) {
  .shelf-root, .shelf-root * { cursor: none !important; }
  .sb-cursor {
    display: block; position: fixed; left: 0; top: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px;
    z-index: 100; pointer-events: none;
  }
  .sb-cursor .ring {
    position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
    transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
  }
  .sb-cursor .dot {
    position: absolute; left: 26px; top: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
    transition: transform .4s var(--ease);
  }
  .sb-cursor .lab {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff;
    font: 600 10px/1.25 var(--sans); letter-spacing: .1em; transform: scale(0); transition: transform .45s var(--ease);
  }
  .sb-cursor.spine .ring { transform: scale(.72); }
  .sb-cursor.btn .ring { transform: scale(.55); }
  .sb-cursor.btn .dot { transform: scale(0); }
  .sb-cursor.open .ring { transform: scale(1.75); background: var(--accent); border-color: var(--accent); }
  .sb-cursor.open .dot { transform: scale(0); }
  .sb-cursor.open .lab { transform: scale(1); }
}

/* ============ Kiểu kính (glass) — giống giao diện trong sách (style.css "Giao diện kính mờ") ============
   Kính: nền trắng trong suốt hai lớp + viền sáng + bóng; rê chuột = nổi lên, vệt sáng lướt qua, đốm sáng theo con trỏ
   (--mx/--my do shelf.js ghi); ấn = lún + gợn sáng (.glass-ripple). Nền tờ giấy có quầng màu theo --accent để kính "ăn" màu. */
.shelf-root::before {
  content: ''; position: fixed; inset: -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 30% at 50% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(30% 26% at 12% 88%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(30% 26% at 88% 86%, rgba(217, 164, 65, .12), transparent 70%);
  transition: background .8s var(--ease);
}
.shelf-root {
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .18) 48%, rgba(255, 255, 255, .08) 52%),
    linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 250, 238, .2));
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: 0 8px 24px rgba(50, 38, 18, .14), 0 1px 2px rgba(50, 38, 18, .12),
    inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25);
}
.shelf-root :is(.box, .sb-arrow, .sb-tabs) {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-edge) !important; box-shadow: var(--glass-shadow);
  overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .8, .3, 1.2), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.sb-top .box, .dt-go { position: relative; } /* mũi tên, thẻ nhóm (fixed) và nút đóng (absolute) giữ nguyên */
.shelf-root .box { height: 26px; padding: 0 12px; border-radius: 999px; }
.sb-arrow { border-radius: 50%; color: var(--ink); }
.sb-tabs { border-radius: 999px; padding: 3px; }
.sb-tabs button { border: 0; height: 24px; padding: 0 13px; margin: 0; border-radius: 999px; transition: color .45s var(--ease), background .2s; }
.sb-tabs button:not(.on):hover { background: rgba(255, 255, 255, .55); }
.sb-tabs .ind {
  top: 3px; height: 24px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), var(--accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
}
/* vệt sáng chéo lướt qua khi rê chuột */
.shelf-root :is(.box, .sb-arrow)::before, .sb-tabs button::before {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.shelf-root :is(.box, .sb-arrow):hover::before, .sb-tabs button:hover::before { animation: glass-sheen .75s ease-out; }
/* đốm sáng theo con trỏ */
.shelf-root :is(.box, .sb-arrow, .sb-tabs)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .7), transparent 65%);
  opacity: 0; transition: opacity .25s;
}
.shelf-root :is(.box, .sb-arrow, .sb-tabs):hover::after { opacity: 1; }
.shelf-root :is(.box, .sb-arrow):hover {
  transform: translateY(-2px); border-color: #fff !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.9); backdrop-filter: blur(20px) saturate(1.9);
  box-shadow: 0 12px 28px rgba(50, 38, 18, .2), 0 0 0 4px rgba(255, 255, 255, .25), inset 0 1px 0 #fff;
}
.sb-tabs:hover { box-shadow: 0 12px 28px rgba(50, 38, 18, .18), inset 0 1px 0 #fff; }
.shelf-root :is(.box, .sb-arrow, .sb-tabs button):active,
.shelf-root :is(.box, .sb-arrow, .sb-tabs button).glass-press {
  transform: translateY(1px) scale(.95); transition-duration: .08s;
  box-shadow: 0 2px 8px rgba(50, 38, 18, .18), inset 0 2px 7px rgba(50, 38, 18, .14), inset 0 -1px 0 #fff;
}
.sb-tabs button.glass-press, .sb-tabs button:active { box-shadow: none; }
/* nút ở trang chi tiết: KHÔNG backdrop-filter — nằm trong khung che đang trượt (transform + overflow:hidden),
   Chrome vẽ vùng làm mờ thành hình chữ nhật quanh nút (vùng sáng vuông xấu); nền giấy trơn nên làm mờ cũng vô ích */
.dt-go, .dt-go:hover { border-radius: 999px; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* khung che (.mk overflow:hidden) quanh nút phải rộng hơn nút, nếu không bóng đổ bị cắt thành khung vuông */
.dt-text .mk:has(.dt-go) { padding: 14px 24px 26px; margin: -14px -24px -26px; }
.dt-go:not(:disabled):hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--accent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* --- Mặt kính trên bìa sách: đốm phản chiếu theo con trỏ (--gx/--gy/--gl do shelf.js) + vệt sáng lướt khi sách xoay ra --- */
.tape .cv::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--gl, 0); border-radius: inherit;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .55), rgba(255, 255, 255, .14) 26%, transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .1) 100%);
  mix-blend-mode: screen;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.tape .cv .sheen, .dt-poster .sheen {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  mix-blend-mode: screen; transform: translateX(-130%) skewX(-18deg);
}
.dt-poster { position: relative; }
.dt-poster::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .38), rgba(255, 255, 255, .08) 26%, transparent 50%);
  mix-blend-mode: screen;
}
.dt-poster:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shelf-root *::before { animation: none !important; } }

/* ---------- Điện thoại ---------- */
@media (max-width: 767px) {
  .shelf-root { --H: min(60vw, 40svh); }
  .sb-top { height: 64px; padding: 0 16px; }
  .sb-logo .l1 { font-size: 19px; }
  .sb-logo .l2 { font-size: 7.5px; }
  .shelf-root .lbl { font-size: 9px; }
  .sb-career { display: none; }
  .sb-tabs { top: calc(50% - var(--H) / 2 - 70px); max-width: calc(100vw - 24px); }
  .sb-tabs button { padding: 0 4px; font-size: 8px; letter-spacing: .05em; }
  .sb-cap .t { font-size: 24px; }
  .sb-arrow.prev { left: 6px; }
  .sb-arrow.next { right: 6px; }
  .sb-foot { left: 16px; right: 16px; bottom: 18px; }
  .sb-hint { display: none; }
  .sb-detail { overflow-y: auto; }
  .dt-grid { grid-template-columns: 1fr; height: auto; padding: 84px 22px 40px; gap: 24px; }
  .dt-poster { order: -1; height: 46svh; }
  .dt-title { font-size: 42px; }
  .dt-syn { font-size: 16px; }
  .sb-close { top: 21px; left: 16px; }
  .dt-logo { height: 64px; }
}
