/* ==========================================================================
   24-HD4K — โทนทอง-ดำ เลย์เอาต์เว็บดูหนังคลาสสิก
   หัวเว็บ (โลโก้ | คำโปรย | ค้นหา) + แถบเมนูทอง · สามคอลัมน์ (ปี-เสียง-ประเทศ | หนัง | ประเภท)
   ริบบิ้นเฉียงบนโปสเตอร์ · หัวข้อ Kanit สีทองไล่ระดับ · อันดับเป็นเลขโรมัน
   ========================================================================== */
:root {
	--bg: #0c0b09;
	--s1: #15130f;
	--s2: #1c1914;
	--s3: #26211a;
	--line: #352c1f;
	--line2: #5a4a2c;
	--gold: #d6b25e;
	--gold-hi: #f2da97;
	--gold-lo: #9c7b36;
	--gold-grad: linear-gradient(180deg, #f6e2a4 0%, #d6b25e 48%, #a07f38 100%);
	--gold-bar: linear-gradient(180deg, #e9cd84 0%, #c9a24f 55%, #a5823a 100%);
	--ink: #1b1408;
	--tx: #eee6d4;
	--mt: #a89c84;
	--ruby: #a3362e;
	--fd: 'Kanit', 'Tahoma', sans-serif;
	--fb: 'Kanit', 'Tahoma', sans-serif;
	--gap: 16px;
	--wrap: 1290px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 300 16px/1.7 var(--fb); }
body.lx-lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-hi); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0 0 .5em; font-family: var(--fd); font-weight: 500; line-height: 1.35; color: var(--gold-hi); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
[hidden] { display: none !important; }

.lx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lx-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 16px; background: var(--gold); color: var(--ink); font-weight: 600; }
.lx-skip:focus { top: 12px; }
.lx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.lx-main { min-height: 50vh; padding-bottom: 28px; }
.lx-narrow { max-width: 900px; }
.lx-page { padding-top: 6px; }

/* ---------- ทองไล่ระดับบนตัวอักษร ---------- */
.lx-lead__h1, .lx-head__h1, .lx-title, .lx-top__say, .lx-logo b {
	background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- ปุ่ม ---------- */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--gold-bar); color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.lx-btn:hover { color: var(--ink); filter: brightness(1.08); }
.lx-btn--line { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-lo); }
.lx-btn--line:hover { color: var(--ink); background: var(--gold-bar); box-shadow: none; }
.lx-ibtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 3px; background: var(--s1); color: var(--gold-hi); font-size: 17px; }
.lx-ibtn:hover { border-color: var(--gold); }

/* ==========================================================================
   หัวเว็บ
   ========================================================================== */
.lx-top { position: relative; background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(214, 178, 94, .12), transparent 70%), var(--bg); }
.lx-top__row { display: flex; align-items: center; gap: 22px; min-height: 92px; }
.lx-logo { display: inline-flex; align-items: center; gap: 6px; line-height: 1; flex: none; }
.lx-logo b { font: 600 52px/1 var(--fd); letter-spacing: -.02em; padding: 2px 10px 6px; border: 1px solid var(--gold-lo); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--gold-lo); }
.lx-logo span { display: flex; flex-direction: column; font: 600 17px/1.1 var(--fd); letter-spacing: .28em; color: var(--tx); }
.lx-logo span::after { content: ''; display: block; height: 2px; margin-top: 6px; background: var(--gold-grad); }
.lx-top__say { flex: 1; min-width: 0; margin: 0; font: 600 23px/1.35 var(--fd); text-align: center; }
.lx-find { position: relative; display: flex; flex: 0 0 300px; }
.lx-find input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-right: 0; border-radius: 3px 0 0 3px; background: #f3ecdb; color: #1b1408; }
.lx-find input::placeholder { color: #7b6f58; }
.lx-find__go { width: 46px; height: 40px; border: 0; border-radius: 0 3px 3px 0; background: var(--gold-bar); color: var(--ink); }
.lx-find__out { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; max-height: 70vh; overflow-y: auto; padding: 6px; border: 1px solid var(--gold-lo); background: var(--s1); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.lx-find__i { display: flex; align-items: center; gap: 10px; padding: 6px; border-bottom: 1px dotted var(--line); }
.lx-find__i img, .lx-find__ph { width: 40px; height: 58px; flex: none; object-fit: cover; background: var(--s3); }
.lx-find__i b { display: block; font-weight: 500; line-height: 1.4; }
.lx-find__i small { color: var(--mt); }
.lx-find__all { display: block; padding: 10px 6px 4px; color: var(--gold-hi); font-size: 14px; }
.lx-find__none { margin: 0; padding: 10px; color: var(--mt); font-size: 14px; }
.lx-ibtn--find, .lx-ibtn--menu { display: none; }

/* แถบเมนูทองเต็มความกว้าง */
.lx-nav { background: var(--gold-bar); border-top: 1px solid #f7e6b0; border-bottom: 1px solid #6d5524; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.lx-nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.lx-nav li { position: relative; }
.lx-nav li + li::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #7a5e26; transform: rotate(45deg); }
.lx-nav a { display: block; padding: 12px 20px; color: var(--ink); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.lx-nav a:hover, .lx-nav a.is-on { color: #fff6dc; background: rgba(27, 20, 8, .82); }

/* ==========================================================================
   หัวข้อส่วน / บทนำ
   ========================================================================== */
.lx-lead { padding: 30px 16px 8px; text-align: center; }
.lx-lead__h1 { margin: 0 auto 12px; max-width: 980px; font-size: clamp(24px, 3.1vw, 34px); }
.lx-lead__h1::after { content: '✦'; display: block; margin-top: 6px; font-size: 14px; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.lx-lead__t { max-width: 1060px; margin: 0 auto; color: #d8cfbb; font-size: 15px; }

.lx-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; min-height: 46px; margin: 26px 0 14px; padding: 6px 12px 6px 16px; background: linear-gradient(90deg, #2a2418 0%, var(--s1) 70%); border-left: 4px solid var(--gold); border-bottom: 1px solid var(--line2); }
.lx-bar__t { margin: 0; font-size: 21px; color: var(--gold-hi); flex: 1; min-width: 0; }
.lx-bar--center { justify-content: center; border-left: 0; background: none; border-bottom: 0; }
.lx-bar--center .lx-bar__t { flex: none; display: flex; align-items: center; gap: 16px; font-size: 25px; text-align: center; }
.lx-bar--center .lx-bar__t::before, .lx-bar--center .lx-bar__t::after { content: ''; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lx-bar--center .lx-bar__t::after { transform: scaleX(-1); }
.lx-bar__all { font-size: 14px; color: var(--gold); border-bottom: 1px solid var(--gold-lo); }
.lx-bar__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lx-bar__tabs button { height: 32px; padding: 0 14px; border: 1px solid var(--gold-lo); border-radius: 3px; background: transparent; color: var(--gold-hi); font-size: 14px; }
.lx-bar__tabs button[aria-selected="true"] { background: var(--gold-bar); color: var(--ink); border-color: transparent; font-weight: 600; }
.lx-band__nav { display: flex; gap: 6px; }
.lx-band__nav button { width: 32px; height: 32px; border: 1px solid var(--gold-lo); border-radius: 3px; background: var(--bg); color: var(--gold-hi); }
.lx-band__nav button:hover { background: var(--gold-bar); color: var(--ink); }

.lx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 8px; font-size: 14px; color: var(--mt); }
.lx-crumb a { color: var(--gold); }
.lx-crumb__sep { color: var(--line2); }

.lx-head { margin: 8px 0 6px; padding: 20px 22px; border: 1px solid var(--line2); background: var(--s1); box-shadow: inset 0 0 0 4px var(--s1), inset 0 0 0 5px var(--line); }
.lx-head--center { text-align: center; }
.lx-head__h1 { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 32px); }
.lx-head__h1 small { font-size: .6em; -webkit-text-fill-color: var(--mt); }
.lx-head__t { color: #d8cfbb; font-size: 15px; }
.lx-head__t p:last-child { margin-bottom: 0; }

/* ==========================================================================
   การ์ดหนัง / ตาราง / ชั้นวาง
   ========================================================================== */
.lx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.lx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lx-card { min-width: 0; }
.lx-card__link { display: flex; flex-direction: column; height: 100%; background: var(--s1); border: 1px solid var(--line); transition: border-color .2s; }
.lx-card__link:hover { border-color: var(--gold); color: var(--tx); }
.lx-card__pic { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--s3); }
.lx-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.lx-card__link:hover .lx-card__pic img { transform: scale(1.04); }
.lx-card__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-lo); font-size: 34px; }
.lx-card__sc { position: absolute; top: 6px; left: 6px; padding: 1px 7px; background: rgba(12, 11, 9, .82); color: var(--tx); font-size: 12.5px; font-weight: 600; }
.lx-card__sc i { color: var(--gold); font-size: 11px; }
.lx-ribbon { position: absolute; top: 12px; right: -30px; width: 104px; transform: rotate(45deg); background: var(--gold-bar); color: var(--ink); text-align: center; font: 600 11px/20px var(--fb); letter-spacing: .08em; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.lx-ribbon--zoom { background: linear-gradient(180deg, #c4483e, var(--ruby)); color: #fff2e6; }
.lx-card__strip { display: block; padding: 2px 6px; background: linear-gradient(180deg, #3a3020, #282115); color: var(--gold-hi); font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; margin: 6px 8px 8px; font-size: 14px; line-height: 1.5; text-align: center; }

.lx-band { margin-bottom: 8px; }
.lx-band__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; padding-bottom: 6px; }
.lx-band__track > * { scroll-snap-align: start; }

.lx-sort { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.lx-sort__i { padding: 4px 14px; border: 1px solid var(--line2); border-radius: 3px; font-size: 14px; color: var(--mt); }
.lx-sort__i.is-on, .lx-sort__i:hover { border-color: var(--gold); color: var(--gold-hi); }
.lx-sort__i.is-on { background: rgba(214, 178, 94, .12); }

.lx-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 6px; }
.lx-pager a, .lx-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line2); font-family: var(--fd); font-weight: 600; color: var(--gold-hi); }
.lx-pager .current { background: var(--gold-bar); color: var(--ink); border-color: transparent; }
.lx-pager a:hover { border-color: var(--gold); }

.lx-empty { padding: 40px 16px; text-align: center; color: var(--mt); border: 1px dashed var(--line2); }
.lx-empty__ico { display: block; margin-bottom: 8px; font-size: 32px; color: var(--gold); }

/* ==========================================================================
   สามคอลัมน์ + แถบข้าง
   ========================================================================== */
.lx-3col { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; grid-template-areas: "left main right"; gap: 20px; align-items: start; }
.lx-3col__main { grid-area: main; min-width: 0; }
.lx-side { min-width: 0; }
.lx-side--left { grid-area: left; }
.lx-side--right { grid-area: right; }
.lx-3col > .lx-side { margin-top: 26px; }
.lx-sbox { margin-bottom: 18px; background: var(--s1); border: 1px solid var(--line); }
.lx-sbox__h { margin: 0; padding: 8px 12px; background: var(--gold-bar); color: var(--ink); font: 600 16px/1.4 var(--fd); text-align: center; }
.lx-sbox__list li a { display: block; padding: 7px 12px; border-bottom: 1px dotted var(--line); font-size: 14.5px; color: #d9d0bd; }
.lx-sbox__list li:last-child a { border-bottom: 0; }
.lx-sbox__list li a:hover, .lx-sbox__list li a.is-on { color: var(--gold-hi); background: rgba(214, 178, 94, .08); padding-left: 16px; }
.lx-hot li a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-bottom: 1px dotted var(--line); font-size: 14px; line-height: 1.45; }
.lx-hot li:last-child a { border-bottom: 0; }
.lx-hot b { flex: 0 0 30px; font: 600 15px/1.4 var(--fd); color: var(--gold); }

.lx-chips { display: none; gap: 8px; overflow-x: auto; margin: 10px 0 4px; padding-bottom: 6px; scrollbar-width: none; }
.lx-chips a, .lx-chips__all { flex: none; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--s1); font-size: 14px; white-space: nowrap; }
.lx-chips a.is-on { border-color: var(--gold); color: var(--gold-hi); }
.lx-chips__all { color: var(--gold-hi); }

/* ==========================================================================
   บทความ / ข้อความยาว
   ========================================================================== */
.lx-text { overflow-wrap: anywhere; }
.lx-text a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--gold-lo); text-underline-offset: 3px; }
.lx-text h2 { margin-top: 1.2em; font-size: 22px; }
.lx-text h3 { margin-top: 1em; font-size: 18px; color: var(--gold); }
.lx-text ul, .lx-text ol { margin: 0 0 1em; padding-left: 1.3em; }
.lx-text ul { list-style: none; padding-left: 0; }
.lx-text ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.lx-text ul li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.lx-text ol { list-style: decimal; }
.lx-note { color: var(--mt); }

.lx-outro { margin-top: 34px; }
.lx-intro { padding: 26px 28px; background: var(--s1); border: 1px solid var(--line2); box-shadow: inset 0 0 0 4px var(--s1), inset 0 0 0 5px var(--line); }
.lx-intro__title { text-align: center; font-size: clamp(22px, 2.4vw, 28px); }
.lx-intro__body { color: #d8cfbb; font-size: 15px; }
.lx-essay h2 { font-size: 20px; margin-top: 1.4em; }
.lx-essay h2:first-child { margin-top: 0; }
.lx-essay h3 { font-size: 17px; }
.lx-essay section { margin-bottom: 14px; }
.lx-essay__note { color: var(--mt); font-size: 14px; }
.lx-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.lx-stat div { padding: 10px 14px; border: 1px solid var(--line2); background: var(--s2); }
.lx-stat dt { font-size: 13px; color: var(--mt); }
.lx-stat dd { margin: 0; font: 600 21px/1.3 var(--fd); color: var(--gold-hi); }
.lx-guide__item { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--s2); margin-bottom: 10px; }
.lx-faq__item { margin-bottom: 8px; border: 1px solid var(--line); background: var(--s2); }
.lx-faq__item summary { cursor: pointer; padding: 10px 14px; }
.lx-faq__item p { margin: 0; padding: 0 14px 12px; color: var(--mt); }
.lx-box { margin-bottom: 18px; }
.lx-box__head { margin: 0 0 6px; font-family: var(--fd); font-weight: 600; color: var(--gold-hi); }
.lx-widgets { margin-top: 24px; }

/* ==========================================================================
   หน้าดูหนัง
   ========================================================================== */
.lx-screen { margin-top: 8px; padding: 8px; border: 1px solid var(--gold-lo); background: #000; box-shadow: inset 0 0 0 3px #000, inset 0 0 0 4px var(--line2), 0 20px 50px rgba(0, 0, 0, .6); }
.lx-screen__box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; margin: 0 auto; overflow: hidden; background: #000; }
.lx-screen__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lx-screen__start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 0; border: 0; background: #000; color: var(--tx); }
.lx-screen__cover { position: absolute; inset: 0; background: center 25% / cover no-repeat; opacity: .32; filter: sepia(.35); }
.lx-screen__btn { position: relative; z-index: 1; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--gold-bar); color: var(--ink); font-size: 28px; box-shadow: 0 0 0 6px rgba(12, 11, 9, .7), 0 0 0 7px var(--gold-lo); transition: transform .2s; }
.lx-screen__btn i { margin-left: 5px; }
.lx-screen__start:hover .lx-screen__btn, .lx-yt button:hover .lx-screen__btn { transform: scale(1.06); }
.lx-screen__hint { position: relative; z-index: 1; font-family: var(--fd); font-size: 17px; color: var(--gold-hi); }
.lx-screen__start.is-wait .lx-screen__btn { animation: lx-pulse 1s ease-in-out infinite; }
@keyframes lx-pulse { 50% { opacity: .55; } }
.lx-screen__msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--mt); background: var(--s1); }
.lx-screen__msg i { font-size: 30px; color: var(--gold); }
.lx-screen__err { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 6px 16px; background: var(--ruby); color: #fff; font-size: 14px; }
.lx-screen__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 4px 2px; }
#lx-wide { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--gold-lo); border-radius: 3px; background: transparent; color: var(--gold-hi); font-size: 14px; }
#lx-wide[aria-pressed="true"] { background: var(--gold-bar); color: var(--ink); }
.lx-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.lx-jump a { color: var(--mt); border-bottom: 1px solid transparent; }
.lx-jump a:hover, .lx-jump a.is-on { color: var(--gold-hi); border-bottom-color: var(--gold); }
body.lx-wide .lx-screen { width: 100vw; margin-left: calc(50% - 50vw); }
body.lx-wide .lx-screen__box { max-height: 92vh; }
body.lx-wide .lx-ad { visibility: hidden; }

.lx-ticket { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 22px 0; background: var(--s1); border: 1px solid var(--line2); }
.lx-ticket__pic { padding: 12px; border-right: 2px dashed var(--line2); position: relative; }
.lx-ticket__pic::before, .lx-ticket__pic::after { content: ''; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line2); }
.lx-ticket__pic::before { top: -11px; }
.lx-ticket__pic::after { bottom: -11px; }
.lx-ticket__pic img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--gold-lo); }
.lx-ticket__body { padding: 18px 24px; min-width: 0; }
.lx-title { margin: 0 0 4px; font-size: clamp(23px, 2.6vw, 31px); }
.lx-title__en { margin: 0 0 8px; color: var(--mt); font-size: 15px; }
.lx-ticket__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.lx-tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; background: var(--gold-bar); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lx-tag--zoom { background: var(--ruby); color: #fff2e6; }
.lx-tag--sc { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-lo); }
.lx-tag--plain { background: var(--s3); color: var(--tx); font-weight: 500; }
.lx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.lx-facts div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line2); }
.lx-facts dt { flex: 0 0 96px; color: var(--mt); font-size: 14px; }
.lx-facts dd { margin: 0; min-width: 0; }
.lx-facts a { color: var(--gold-hi); }
.lx-facts small { color: var(--mt); }

.lx-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lx-2col__side .lx-side { margin-top: 0; }
.lx-panel { margin-bottom: 18px; padding: 20px 22px; background: var(--s1); border: 1px solid var(--line); }
.lx-panel--doc { padding: 26px 30px; box-shadow: inset 0 0 0 4px var(--s1), inset 0 0 0 5px var(--line); border-color: var(--line2); }
.lx-panel__h { margin: 0 0 12px; padding-bottom: 8px; font-size: 20px; border-bottom: 1px solid var(--line2); }
.lx-qa { padding: 10px 0; border-top: 1px dotted var(--line); }
.lx-qa:first-of-type { border-top: 0; padding-top: 0; }
.lx-qa h3 { margin: 0 0 4px; font-size: 17px; color: var(--gold); }
.lx-qa p { margin: 0; color: #d8cfbb; }
.lx-qa a { color: var(--gold-hi); }
.lx-ratio { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line2); }
.lx-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lx-yt button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: #000; }
.lx-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.lx-yt .lx-screen__btn { width: 60px; height: 60px; font-size: 20px; }
.lx-cast { display: grid; gap: 0; }
.lx-cast li { padding: 6px 0; border-bottom: 1px dotted var(--line); font-size: 14.5px; }
.lx-cast li:last-child { border-bottom: 0; }
.lx-more { margin-top: 4px; }
.lx-2col__main .lx-more .lx-bar { margin-top: 8px; }

/* ==========================================================================
   หน้าสารบัญ / อันดับ / 404 / ข้อมูลเว็บ
   ========================================================================== */
.lx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.lx-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line2); background: var(--s2); }
.lx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: sepia(.4); transition: opacity .25s; }
.lx-tile:hover img { opacity: .6; }
.lx-tile__body { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(12, 11, 9, .95) 55%); }
.lx-tile strong { display: block; font: 600 20px/1.3 var(--fd); color: var(--gold-hi); }
.lx-tile em { display: block; margin-top: 4px; font-style: normal; font-size: 13.5px; color: #d8cfbb; line-height: 1.5; }
.lx-ix__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lx-ix__list a { display: block; padding: 8px 12px; border: 1px solid var(--line); background: var(--s1); font-size: 14.5px; }
.lx-ix__list a:hover { border-color: var(--gold); }
.lx-ix__more, .lx-info__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

.lx-chart { margin-top: 16px; counter-reset: none; }
.lx-chart li a { display: grid; grid-template-columns: 70px 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px dotted var(--line2); }
.lx-chart li.is-top a { background: linear-gradient(90deg, rgba(214, 178, 94, .14), transparent 60%); border-bottom-color: var(--gold-lo); }
.lx-chart__n { font: 600 22px/1 var(--fd); color: var(--gold); text-align: center; }
.lx-chart img { width: 54px; height: 76px; object-fit: cover; border: 1px solid var(--line2); }
.lx-chart__t strong { display: block; font-weight: 500; }
.lx-chart__t small { color: var(--mt); }
.lx-chart__v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13.5px; color: var(--mt); }

.lx-lost { padding: 40px 16px 20px; text-align: center; }
.lx-lost__n { margin: 0; font: 600 clamp(64px, 12vw, 120px)/1 var(--fd); letter-spacing: .08em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-lost__find { display: flex; gap: 8px; max-width: 520px; margin: 18px auto; }
.lx-lost__find input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line2); background: #f3ecdb; color: #1b1408; }
.lx-contact { padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--s2); }

/* ==========================================================================
   เมนูหมวด (จอเล็ก)
   ========================================================================== */
.lx-shade { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .7); }
.lx-mega { position: fixed; inset: 0 0 0 auto; z-index: 71; width: min(100%, 560px); overflow-y: auto; padding: 0 18px 30px; background: var(--bg); border-left: 1px solid var(--gold-lo); }
.lx-mega__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line2); }
.lx-mega__head .lx-logo b { font-size: 36px; }
.lx-mega__h { margin: 18px 0 6px; font: 600 17px/1.4 var(--fd); color: var(--gold); }
.lx-mega__list a { display: block; padding: 6px 2px; border-bottom: 1px dotted var(--line); font-size: 15px; }
.lx-mega__list a.is-on { color: var(--gold-hi); }
.lx-mega__list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.lx-mega__list--y { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lx-mega__list--y a { border: 1px solid var(--line); text-align: center; }

/* ==========================================================================
   ท้ายเว็บ / ปุ่มขึ้นบน
   ========================================================================== */
.lx-foot { margin-top: 30px; border-top: 1px solid var(--gold-lo); box-shadow: 0 -4px 0 var(--bg), 0 -5px 0 var(--line2); background: var(--s1); }
.lx-foot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 22px 0 6px; font-family: var(--fd); font-weight: 600; font-size: 15.5px; }
.lx-foot__row a { color: var(--gold-hi); }
.lx-foot__row--sm { padding: 6px 0 20px; font-family: var(--fb); font-weight: 400; font-size: 14px; gap: 4px 16px; }
.lx-foot__row--sm a { color: var(--mt); }
.lx-foot__end { background: var(--gold-bar); color: var(--ink); font-size: 13.5px; }
.lx-foot__endin { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 9px; padding-bottom: 9px; }
.lx-foot__info { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.lx-foot__info a { color: var(--ink); font-weight: 600; }
.lx-foot__info a:hover { color: #000; text-decoration: underline; }
.lx-up { position: fixed; z-index: 50; right: 16px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); background: var(--bg); color: var(--gold-hi); font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lx-up.is-on { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   โฆษณา (ช่องว่างไม่แสดง)
   ========================================================================== */
.lx-ad { display: none; text-align: center; }
.lx-ad.is-on { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 16px; }
.lx-ad img { max-width: 100%; height: auto; }
.lx-ad a { display: block; max-width: 100%; }
.lx-screen .lx-ad--player-top.is-on { margin: 0 0 8px; }
.lx-ad--player-header.is-on { margin-top: 12px; margin-bottom: 4px; }
.lx-ad--player-under.is-on { margin-top: 14px; margin-bottom: 0; }
.lx-ad--player-footer.is-on { position: fixed; z-index: 58; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 780px); padding: 6px; margin: 0; background: rgba(12, 11, 9, .96); border-top: 2px solid var(--gold); }
.lx-ad__x { position: absolute; top: -14px; right: 6px; width: 28px; height: 28px; border: 2px solid var(--bg); border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 13px; }
.lx-ad--player-left.is-on, .lx-ad--player-right.is-on { position: fixed; z-index: 57; top: 50%; transform: translateY(-50%); width: 120px; padding: 4px; margin: 0; background: rgba(12, 11, 9, .92); }
.lx-ad--player-left.is-on { left: 4px; }
.lx-ad--player-right.is-on { right: 4px; }
.lx-ad--player-left img, .lx-ad--player-right img { max-height: 62vh; width: auto; }
.lx-ad--player-left .lx-ad__x, .lx-ad--player-right .lx-ad__x { top: -12px; right: -8px; width: 24px; height: 24px; font-size: 11px; }
.lx-ad--player-right .lx-ad__x { right: auto; left: -8px; }

/* ==========================================================================
   ขนาดจอ
   ========================================================================== */
@media (min-width: 1700px) {
	.lx-ad--player-left.is-on, .lx-ad--player-right.is-on { top: 200px; transform: none; width: 140px; background: none; padding: 0; }
}

@media (max-width: 1240px) {
	.lx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.lx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lx-band__track { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
	.lx-3col { grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 16px; }
	.lx-nav a { padding: 11px 14px; font-size: 15px; }
	.lx-top__say { font-size: 20px; }
}

@media (max-width: 1000px) {
	.lx-top__row { min-height: 72px; gap: 10px; }
	.lx-top__say { display: none; }
	.lx-logo { margin-right: auto; }
	.lx-logo b { font-size: 40px; }
	.lx-ibtn--find, .lx-ibtn--menu { display: inline-grid; }
	.lx-find { display: none; position: absolute; z-index: 61; top: 100%; left: 0; right: 0; flex: none; padding: 10px 16px; background: var(--s1); border-bottom: 1px solid var(--gold-lo); }
	.lx-find.is-open { display: flex; }
	.lx-find__out { left: 16px; right: 16px; }
	.lx-nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0; }
	.lx-nav ul::-webkit-scrollbar { display: none; }
	.lx-nav a { padding: 10px 14px; font-size: 14.5px; }
	.lx-3col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "left right"; column-gap: 12px; }
	.lx-3col > .lx-side { margin-top: 8px; }
	.lx-chips { display: flex; }
	.lx-2col { grid-template-columns: minmax(0, 1fr); }
	.lx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lx-band__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
}

@media (max-width: 760px) {
	.lx-grid, .lx-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
	.lx-band__track { grid-auto-columns: calc((100% - 2 * 10px) / 3); gap: 10px; }
	.lx-bar__t { font-size: 18px; }
	.lx-bar--center .lx-bar__t { font-size: 21px; }
	.lx-bar--center .lx-bar__t::before, .lx-bar--center .lx-bar__t::after { width: 30px; }
	.lx-ticket { grid-template-columns: 120px minmax(0, 1fr); }
	.lx-ticket__body { padding: 14px; }
	.lx-facts { grid-template-columns: minmax(0, 1fr); }
	.lx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.lx-chart li a { grid-template-columns: 46px 44px minmax(0, 1fr); }
	.lx-chart img { width: 44px; height: 62px; }
	.lx-chart__v { grid-column: 3; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
	.lx-panel, .lx-panel--doc, .lx-intro { padding: 16px; }
	.lx-head { padding: 16px; }
	.lx-card__title { font-size: 13px; margin: 5px 4px 6px; }
	.lx-ribbon { top: 8px; right: -34px; font-size: 10px; line-height: 17px; }
	.lx-lead { padding-top: 20px; }

	/* แถบข้างบนมือถือ: เต็มความกว้าง เรียงประเภทหนังก่อน รายการกลายเป็นปุ่มแคปซูลตัดบรรทัด (หน้าไม่ยาวเป็นแถวยาว) */
	.lx-3col { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "right" "left"; }
	.lx-3col > .lx-side { margin-top: 0; }
	.lx-side { display: grid; gap: 12px; }
	.lx-sbox { margin-bottom: 0; border: 0; background: none; }
	.lx-sbox__h { margin: 0 0 8px; padding: 6px 12px; text-align: left; font-size: 15px; background: none; color: var(--gold-hi); border-left: 3px solid var(--gold); border-bottom: 1px solid var(--line2); }
	.lx-sbox__list { display: flex; flex-wrap: wrap; gap: 6px; }
	.lx-sbox__list li a, .lx-sbox__list li:last-child a { padding: 4px 11px; border: 1px solid var(--line2); background: var(--s1); font-size: 13.5px; line-height: 1.5; }
	.lx-sbox__list li a:hover, .lx-sbox__list li a.is-on { padding-left: 11px; border-color: var(--gold); }
	.lx-hot { background: var(--s1); border: 1px solid var(--line); }
	.lx-hot li a { padding: 7px 10px; }
	.lx-2col__side .lx-side { margin-top: 4px; }
	/* มือถือ: หน้าแรก = หนังแนะนำ -> หนังเข้าใหม่ล่าสุด -> หนังกระแส -> แถบข้างท้ายหน้า · หน้าหนัง: แถบข้างอยู่ท้ายสุด (display: contents + order) */
	.lx-home { display: flex; flex-direction: column; }
	.lx-home > .lx-3col, .lx-home .lx-3col__main { display: contents; }
	.lx-home > .lx-band { order: 1; }
	.lx-home .lx-list { order: 2; }
	.lx-home .lx-trend { order: 3; }
	.lx-home .lx-side--right { order: 4; margin-top: 26px; }
	.lx-home .lx-side--left { order: 5; margin-top: 12px; }
	.lx-single { display: flex; flex-direction: column; }
	/* หน้าหนัง: เรื่องย่อ -> ตัวอย่าง -> นักแสดง -> ก่อนกดเล่น -> แนวเดียวกัน -> คนดูต่อ -> ประเภทหนัง (ส่วนบนจนถึงการ์ดตั๋ว order 0 ตามเดิม) */
	.lx-single > .lx-2col, .lx-single .lx-2col__main, .lx-single .lx-2col__side { display: contents; }
	.lx-single #plot { order: 1; }
	.lx-single #trailer { order: 2; }
	.lx-single #cast { order: 3; }
	.lx-single #qa { order: 4; }
	.lx-single #more { order: 5; }
	.lx-single > .lx-band { order: 6; }
	.lx-single .lx-side { order: 9; margin-top: 18px; }
	.lx-cast { display: flex; flex-wrap: wrap; gap: 6px; }
	.lx-cast li, .lx-cast li:last-child { padding: 3px 10px; border: 1px solid var(--line); background: var(--s2); font-size: 13.5px; }
}

@media (max-width: 480px) {
	.lx-ticket { grid-template-columns: 1fr; }
	.lx-ticket__pic { border-right: 0; border-bottom: 2px dashed var(--line2); max-width: 220px; margin: 0 auto; }
	.lx-ticket__pic::before, .lx-ticket__pic::after { display: none; }
	.lx-foot__endin { justify-content: center; text-align: center; }
	.lx-mega__list--y { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
