:root{--bg:#050505;--panel:#0c0c0c;--panel2:#121212;--text:#f4f4f1;--muted:#a9a9a5;--lime:#c8ff00;--line:#242424;--radius:22px}
*{box-sizing:border-box}html{background:var(--bg);color-scheme:dark}body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif;min-height:100vh}a{color:inherit;text-decoration:none}button,input{font:inherit}.topbar{height:64px;background:rgba(3,3,3,.80);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;right:0;padding:0 24px;border-bottom:1px solid rgba(255,255,255,.07);z-index:55}.menu-btn{position:absolute;left:24px;top:50%;transform:translateY(-50%);width:34px;height:32px;border:0;background:transparent;padding:3px;cursor:pointer}.menu-btn span{display:block;height:3px;background:#fff;margin:6px 0;border-radius:3px}.brand{display:flex;align-items:center;gap:14px}.brand-mark{display:flex;gap:1px;align-items:center;transform:skew(-10deg)}.brand-mark b{font-size:36px;line-height:1;color:var(--lime);font-family:Arial Black,Impact,sans-serif;letter-spacing:-5px}.brand-name{font-family:Impact,"Arial Narrow",Arial,sans-serif;letter-spacing:6px;font-size:28px;white-space:nowrap}.admin-mini{position:absolute;right:24px;font-size:11px;letter-spacing:2px;color:#777;border:1px solid #333;border-radius:999px;padding:7px 10px}.admin-mini:hover{color:var(--lime);border-color:var(--lime)}
.hero{height:440px;position:relative;overflow:hidden;background:#121212}.hero-collage{position:absolute;inset:-40px;display:grid;grid-template-columns:repeat(8,1fr);grid-auto-rows:120px;gap:6px;transform:perspective(900px) rotateX(20deg) rotateZ(-1deg) scale(1.08);transform-origin:50% 45%;filter:saturate(.82)}.hero-custom-image{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;filter:saturate(.84)}.hero-collage img,.poster-placeholder{width:100%;height:100%;object-fit:cover;border-radius:3px;background:linear-gradient(135deg,#253023,#222,#151515);display:block}.poster-placeholder:nth-child(3n){background:linear-gradient(135deg,#39321e,#20271d,#151515)}.poster-placeholder:nth-child(4n){background:linear-gradient(135deg,#1f2731,#282021,#161616)}.poster-placeholder i{display:block;width:55%;height:8px;background:#70707033;margin:42% auto 0}.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.68) 55%,#090909 100%)}.hero-inner{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);width:min(92%,920px);text-align:center}.hero-kicker{font-size:12px;letter-spacing:4px;color:var(--lime);margin-bottom:8px}.hero h1{margin:0 0 18px;font-size:clamp(28px,4vw,48px);font-weight:500}.search-bar{height:88px;background:#f7f7f7;border-radius:22px;display:flex;align-items:center;overflow:hidden;box-shadow:0 14px 42px #0007}.search-bar input{flex:1;height:100%;border:0;background:transparent;color:#222;font-size:23px;padding:0 28px;outline:0}.search-bar input::placeholder{color:#999}.search-bar button{width:82px;height:100%;border:0;background:transparent;color:#777;font-size:38px;cursor:pointer}.search-bar button:hover{color:#111}
.category-zone{padding:34px 42px 42px;background:radial-gradient(circle at 50% 0,#151515 0,#090909 58%,#050505 100%);border-bottom:1px solid #121212}.tagline{text-align:center;font-size:23px;color:#e8e8e8;margin:0 auto 32px}.category-grid{max-width:980px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);column-gap:24px;row-gap:38px}.category-item{text-align:center;min-width:0;transition:.2s ease}.category-icon{display:flex;align-items:center;justify-content:center;width:82px;height:82px;margin:0 auto 8px;color:#f1f1f1;position:relative}.category-icon::after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:var(--lime);right:8px;bottom:14px;box-shadow:-8px -9px 0 -2px var(--lime)}.category-icon svg{width:78px;height:78px}.category-item:hover{transform:translateY(-4px);color:var(--lime)}.category-item:hover .category-icon{color:var(--lime)}.category-label{display:block;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-count{display:block;font-size:11px;color:#6f6f6f;margin-top:4px}.content-section{max-width:1180px;margin:0 auto;padding:50px 28px 74px}.section-title-row{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px;gap:20px}.section-title-row h2{font-size:30px;margin:0 0 4px}.section-title-row p{margin:0;color:var(--muted)}.text-link{color:var(--lime);font-size:14px}.video-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.video-grid.spaced{margin-top:30px}.video-card{padding:0;border:1px solid #1c1c1c;background:#0c0c0c;color:inherit;text-align:left;border-radius:16px;overflow:hidden;cursor:pointer;transition:.2s ease}.video-card:hover{transform:translateY(-4px);border-color:#394800;box-shadow:0 14px 28px #0007}.thumb{aspect-ratio:16/9;display:block;position:relative;background:#171717;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(0,0,0,.35))}.play{position:absolute;left:14px;bottom:12px;z-index:2;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:#111;font-style:normal;font-size:15px;padding-left:2px}.video-info{display:block;padding:14px 14px 16px}.video-info strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:1.45;min-height:46px}.video-info small{display:block;color:#888;margin-top:9px}.empty-state{border:1px dashed #333;border-radius:18px;padding:42px;text-align:center;color:#999;display:flex;flex-direction:column;gap:8px}.empty-state b{color:#ddd;font-size:22px}.category-hero{max-width:1180px;margin:0 auto;padding:48px 28px 12px;display:flex;align-items:center;gap:24px}.category-hero .big-icon{width:104px;height:104px;border:1px solid #313131;border-radius:24px;display:grid;place-items:center;color:var(--lime);background:#0d0d0d}.category-hero .big-icon svg{width:72px;height:72px}.category-hero h1{font-size:42px;margin:2px 0}.category-hero p,.category-hero span{margin:0;color:#888}.back-link{margin-right:10px;color:#9d9d9d}.search-small{height:62px;max-width:660px;border-radius:16px}.search-small input{font-size:17px}.search-small button{width:64px;font-size:29px}.site-footer{text-align:center;border-top:1px solid #151515;padding:28px;color:#858585;background:#030303}.tiny{font-size:11px;margin-top:6px;color:#555}
.drawer-backdrop{position:fixed;inset:0;background:#000a;z-index:59;opacity:0;pointer-events:none;transition:.2s}.drawer{position:fixed;left:0;top:0;bottom:0;width:min(82vw,360px);background:#0b0b0b;border-right:1px solid #282828;z-index:60;transform:translateX(-103%);transition:.24s ease;padding:24px}.menu-open .drawer{transform:none}.menu-open .drawer-backdrop{opacity:1;pointer-events:auto}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;border-bottom:1px solid #222}.drawer .brand-name{font-size:19px;letter-spacing:4px}.drawer .brand-mark b{font-size:27px}.drawer-close{border:0;background:transparent;color:#aaa;font-size:34px;cursor:pointer}.drawer-nav{display:flex;flex-direction:column;padding-top:18px}.drawer-nav a{padding:13px 4px;border-bottom:1px solid #181818;color:#d8d8d8}.drawer-nav a:hover{color:var(--lime)}
.video-modal{position:fixed;inset:0;background:#000e;z-index:90;display:none;align-items:center;justify-content:center;flex-direction:column;padding:28px}.video-modal.show{display:flex}.video-frame{width:min(1100px,96vw);aspect-ratio:16/9;background:#000;box-shadow:0 18px 80px #000}.video-frame iframe{width:100%;height:100%;border:0}.modal-close{position:fixed;right:24px;top:16px;background:transparent;border:0;color:#fff;font-size:44px;cursor:pointer}.video-modal-title{width:min(1100px,96vw);font-size:17px;padding-top:12px;color:#ddd}
@media(max-width:980px){.video-grid{grid-template-columns:repeat(3,1fr)}.hero-collage{grid-template-columns:repeat(6,1fr)}.admin-mini{display:none}}
@media(max-width:760px){.topbar{height:78px;padding:0 16px}.menu-btn{left:18px;width:32px}.brand-name{font-size:22px;letter-spacing:4px}.brand-mark b{font-size:29px}.hero{height:390px}.hero-collage{grid-template-columns:repeat(5,1fr);grid-auto-rows:94px;inset:-25px}.hero-inner{bottom:24px}.hero-kicker{font-size:10px}.search-bar{height:70px;border-radius:18px}.search-bar input{font-size:18px;padding:0 20px}.search-bar button{width:62px}.category-zone{padding:28px 14px 36px}.tagline{font-size:17px;margin-bottom:27px}.category-grid{grid-template-columns:repeat(4,1fr);gap:27px 8px}.category-icon{width:65px;height:65px}.category-icon svg{width:62px;height:62px}.category-label{font-size:15px}.category-count{font-size:9px}.content-section{padding:38px 16px 58px}.video-grid{grid-template-columns:repeat(2,1fr);gap:13px}.section-title-row h2{font-size:24px}.category-hero{padding:32px 16px 4px;gap:14px;flex-wrap:wrap}.category-hero .big-icon{width:82px;height:82px}.category-hero .big-icon svg{width:58px;height:58px}.category-hero h1{font-size:30px}.back-link{width:100%}}
@media(max-width:470px){.brand-name{font-size:18px;letter-spacing:3px}.hero{height:350px}.hero h1{font-size:25px}.hero-collage{grid-template-columns:repeat(4,1fr)}.search-bar{height:64px}.search-bar input{font-size:16px}.category-grid{grid-template-columns:repeat(3,1fr)}.category-label{font-size:14px}.video-grid{grid-template-columns:1fr}.video-info strong{min-height:auto}.tagline{font-size:16px}}

/* v1.3 - Category > List/Playlist > Videos hierarchy */
.collection-section{padding-top:30px}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:30px}.collection-card{display:block;background:#0d0d0d;border:1px solid #202020;border-radius:18px;overflow:hidden;transition:.2s ease;min-width:0}.collection-card:hover{transform:translateY(-4px);border-color:#536800;box-shadow:0 16px 34px #0008}.collection-thumb{display:block;position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#171717,#0b0b0b);overflow:hidden}.collection-thumb>img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s ease}.collection-card:hover .collection-thumb>img{transform:scale(1.025)}.collection-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 42%,rgba(0,0,0,.52) 100%);pointer-events:none}.collection-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--lime);opacity:.72}.collection-placeholder svg{width:82px;height:82px}.collection-badge{position:absolute;right:12px;bottom:11px;z-index:2;background:#050505dd;border:1px solid #343434;border-radius:999px;padding:7px 10px;color:#e9e9e9;font-size:12px}.collection-info{display:block;padding:16px 17px 18px}.collection-info strong{font-size:18px;line-height:1.42;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:51px}.collection-info small{display:block;color:var(--lime);margin-top:10px;font-size:12px}.playlist-hero{max-width:1180px;margin:0 auto;padding:40px 28px 8px}.breadcrumb-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#777;font-size:13px;margin-bottom:26px}.breadcrumb-row a{color:#999}.breadcrumb-row a:hover{color:var(--lime)}.breadcrumb-row b{color:#d6d6d6;font-weight:500}.playlist-title-wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;border-bottom:1px solid #181818;padding-bottom:24px}.playlist-title-wrap .eyebrow{font-size:12px;letter-spacing:3px;color:var(--lime)}.playlist-title-wrap h1{font-size:42px;line-height:1.18;margin:6px 0 8px}.playlist-title-wrap p{margin:0;color:#888}.back-list-btn{border:1px solid #313131;border-radius:999px;padding:11px 15px;color:#cfcfcf;white-space:nowrap}.back-list-btn:hover{border-color:var(--lime);color:var(--lime)}.playlist-content{padding-top:28px}
@media(max-width:900px){.collection-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.collection-grid{gap:14px}.playlist-hero{padding:28px 16px 4px}.playlist-title-wrap{align-items:flex-start;flex-direction:column}.playlist-title-wrap h1{font-size:31px}.back-list-btn{font-size:13px}.collection-info strong{font-size:16px;min-height:46px}}
@media(max-width:500px){.collection-grid{grid-template-columns:1fr}.collection-info strong{min-height:auto}.collection-card{border-radius:15px}}

/* WHITE FLIX brand logo */
.brand.brand-logo{display:flex;align-items:center;justify-content:center;gap:0}.brand.brand-logo img{display:block;width:auto;height:36px;max-width:min(44vw,242px);object-fit:contain}.drawer .brand.brand-logo img{height:38px;max-width:190px}@media(max-width:760px){.brand.brand-logo img{height:38px;max-width:190px}}@media(max-width:470px){.brand.brand-logo img{height:34px;max-width:170px}}

/* คลิปสั้น - vertical swipe feed */
.clips-page main{min-height:0}.clips-shell{background:#000;min-height:calc(100vh - 104px)}.clips-feed{height:calc(100vh - 158px);overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;background:#000;scrollbar-width:none}.clips-feed::-webkit-scrollbar{display:none}.clip-card{height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;background:#000}.clip-stage{height:100%;max-height:100%;aspect-ratio:9/16;max-width:100vw;position:relative;background:#090909;overflow:hidden}.clip-video,.clip-youtube,.clip-youtube iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}.clip-video{object-fit:cover}.clip-youtube{background:#111 center/cover no-repeat}.clip-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.12) 65%,rgba(0,0,0,.88) 100%)}.clip-copy{position:absolute;z-index:3;left:18px;right:76px;bottom:24px;text-shadow:0 1px 6px #000}.clip-copy h2{font-size:20px;line-height:1.35;margin:7px 0 6px}.clip-copy p{font-size:13px;line-height:1.55;margin:0 0 7px;color:#e2e2e2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.clip-meta{font-size:11px;color:#bdbdbd}.clip-featured{display:inline-flex;font-size:10px;background:var(--lime);color:#111;border-radius:999px;padding:4px 7px;font-weight:700;text-shadow:none}.clip-full-link{display:inline-block;margin-top:10px;border:1px solid #ffffff66;background:#0008;border-radius:999px;padding:8px 12px;font-size:12px}.clip-actions{position:absolute;right:12px;bottom:22px;z-index:4;display:flex;flex-direction:column;gap:12px}.clip-round{width:50px;min-height:50px;border:0;border-radius:50%;background:#101010cc;color:#fff;display:grid;place-items:center;cursor:pointer;font-size:18px;padding:7px}.clip-round span{font-size:9px;line-height:1;margin-top:2px}.clips-empty{min-height:65vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#777}.clips-empty b{font-size:22px;color:#ddd}.webview-mode.clips-page .clips-shell{min-height:100vh}.webview-mode.clips-page .clips-feed{height:calc(100vh - 54px)}
@media(max-width:760px){.clips-shell{min-height:calc(100vh - 78px)}.clips-feed{height:calc(100vh - 132px)}.clip-stage{width:100%;max-width:430px}.clip-copy{bottom:18px}.webview-mode.clips-page .clips-feed{height:calc(100vh - 54px)}}


/* vNext - compact fixed topbar + clip search */
body:not(.webview-mode)>main{padding-top:64px}
.topbar{height:64px;background:rgba(3,3,3,.80);position:fixed;top:0;left:0;right:0;padding:0 24px;z-index:55;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.topbar .brand.brand-logo img{height:36px;max-width:min(42vw,200px)}
.topbar .menu-btn{left:24px;width:32px;height:30px}
.topbar .menu-btn span{height:2px;margin:5px 0}
.clips-page main{padding-bottom:0}
.clips-shell{min-height:calc(100vh - 64px)}
.clips-search-wrap{height:64px;display:flex;align-items:center;justify-content:center;padding:10px 18px;background:#050505;border-bottom:1px solid #171717;position:relative;z-index:6}
.clips-search{width:min(680px,100%);height:44px;display:flex;align-items:center;background:#151515;border:1px solid #333;border-radius:24px;overflow:hidden;transition:border-color .15s,background .15s}
.clips-search:focus-within{border-color:#666;background:#1a1a1a}
.clips-search-icon{width:46px;text-align:center;color:#aaa;font-size:24px;line-height:1;transform:rotate(-18deg)}
.clips-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#fff;font-size:15px;padding:0 8px 0 0}
.clips-search input::placeholder{color:#888}
.clips-search-clear{width:42px;height:100%;border:0;background:transparent;color:#aaa;font-size:25px;cursor:pointer}
.clips-search-clear:hover{color:#fff}
.clips-feed{height:calc(100vh - 128px)}
.clip-card[hidden]{display:none!important}
.clips-no-results{height:calc(100vh - 128px);display:grid;place-items:center;color:#999;font-size:16px;background:#000}
.clips-no-results[hidden]{display:none!important}
.webview-mode.clips-page .clips-shell{min-height:100vh}
.webview-mode.clips-page .clips-feed{height:calc(100vh - 64px)}
.webview-mode.clips-page .clips-no-results{height:calc(100vh - 64px)}
@media(max-width:760px){
  body:not(.webview-mode)>main{padding-top:56px}
  .topbar{height:56px;padding:0 14px}
  .topbar .menu-btn{left:16px;width:29px;height:28px}
  .topbar .brand.brand-logo img{height:30px;max-width:165px}
  .clips-shell{min-height:calc(100vh - 56px)}
  .clips-search-wrap{height:58px;padding:8px 12px}
  .clips-search{height:42px}
  .clips-feed{height:calc(100vh - 114px)}
  .clips-no-results{height:calc(100vh - 114px)}
  .webview-mode.clips-page .clips-feed{height:calc(100vh - 58px)}
  .webview-mode.clips-page .clips-no-results{height:calc(100vh - 58px)}
}
@font-face{font-family:"SukhumvitSet";src:url("fonts/SukhumvitSet-Thin.ttf") format("truetype");font-style:normal;font-weight:100;font-display:swap}@font-face{font-family:"SukhumvitSet";src:url("fonts/SukhumvitSet-Light.ttf") format("truetype");font-style:normal;font-weight:300;font-display:swap}@font-face{font-family:"SukhumvitSet";src:url("fonts/SukhumvitSet-Text.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:"SukhumvitSet";src:url("fonts/SukhumvitSet-Medium.ttf") format("truetype");font-style:normal;font-weight:500;font-display:swap}@font-face{font-family:"SukhumvitSet";src:url("fonts/SukhumvitSet-SemiBold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}@font-face{font-family:"SukhumvitSet";src:url("fonts/SukhumvitSet-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}body{font-family:"SukhumvitSet",Tahoma,"Noto Sans Thai",Arial,sans-serif}.quran-reader-shell{height:calc(100vh - 64px);min-height:600px;background:#f0f2f0}.quran-reader-frame{display:block;width:100%;height:100%;border:0;background:#f0f2f0}.webview-mode .quran-reader-shell{height:100vh}.webview-mode .quran-reader-frame{min-height:100vh}@media(max-width:760px){.quran-reader-shell{height:calc(100vh - 56px)}}

/* v1.7.9 — shared top-bar search, with the original field retained for keyboard accessibility. */
.topbar-search-slot{display:none;min-width:0}
.topbar.has-search{justify-content:flex-start;gap:18px;padding-left:76px}
.topbar.has-search .brand{flex:0 0 auto}
.topbar.has-search .topbar-search-slot{display:block;flex:1;min-width:0;max-width:680px}
.topbar-search-slot .search-bar{width:100%;height:42px;border-radius:15px;box-shadow:0 6px 18px #0006;background:#f7f7f7}
.topbar-search-slot .search-bar input{font-size:15px;padding:0 16px}
.topbar-search-slot .search-bar button{width:48px;font-size:27px}
.topbar-search-slot .clips-search-wrap{height:auto;padding:0;background:transparent;border:0;display:block}
.topbar-search-slot .clips-search{width:100%;height:42px}
.topbar-search-enter{animation:topbar-search-enter .22s cubic-bezier(.2,.8,.2,1)}
.home-search-anchor{display:block;height:0;overflow:hidden}
.clips-page .topbar.has-clips-search + .drawer-backdrop + .drawer{} /* keeps the public selector explicit */
.topbar.has-clips-search~main .clips-shell{min-height:calc(100vh - 64px)}
.topbar.has-clips-search~main .clips-feed{height:calc(100vh - 64px)}
.topbar.has-clips-search~main .clips-no-results{height:calc(100vh - 64px)}
@keyframes topbar-search-enter{from{opacity:.2;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .topbar.has-search{gap:9px;padding-left:52px;padding-right:12px}
  .topbar.has-search .brand.brand-logo img{height:26px;max-width:106px}
  .topbar-search-slot .search-bar,.topbar-search-slot .clips-search{height:38px}
  .topbar-search-slot .search-bar input{font-size:13px;padding:0 11px}
  .topbar-search-slot .search-bar button{width:40px;font-size:23px}
  .topbar-search-slot .clips-search-icon{width:34px;font-size:20px}
  .topbar-search-slot .clips-search input{font-size:13px}
  .topbar-search-slot .clips-search-clear{width:34px;font-size:21px}
  .topbar.has-clips-search~main .clips-shell{min-height:calc(100vh - 56px)}
  .topbar.has-clips-search~main .clips-feed{height:calc(100vh - 56px)}
  .topbar.has-clips-search~main .clips-no-results{height:calc(100vh - 56px)}
}
@media(prefers-reduced-motion:reduce){.topbar-search-enter{animation:none}}

/* v1.8.2: give the category's empty result clear separation from search */
.collection-section > .empty-state{margin-top:28px}

/* v1.8.3: preserve the thumbnail-wall style on mobile with real 16:9 tiles. */
@media(max-width:760px){
  .hero{height:320px}
  .hero-collage{inset:-58px -26px;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(52px,calc(14.0625vw + 5.35px),68px);gap:6px;transform:perspective(900px) rotateX(16deg) rotateZ(-1deg) scale(1.06);transform-origin:50% 48%}
  .hero-collage>:nth-child(n+29){display:none}
  .hero-overlay{background:linear-gradient(180deg,rgba(0,0,0,.38),rgba(0,0,0,.56) 42%,#090909 100%)}
  .hero-inner{bottom:20px;width:min(91%,620px)}
  .hero-kicker{margin-bottom:5px}
  .hero h1{margin:0 0 12px;line-height:1.2}
}
@media(max-width:470px){
  .hero{height:306px}
  .hero-collage{inset:-52px -23px;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(50px,calc(14.0625vw + 5.35px),62px)}
  .hero-inner{bottom:18px}
}

/* v1.8.7 — หน้า 404 ที่เป็นมิตรและใช้ส่วนหัว/เมนูเดียวกับหน้าหลัก */
.not-found-page{min-height:calc(100vh - 190px);display:grid;place-content:center;text-align:center;padding:70px 24px;background:radial-gradient(circle at 50% 18%,#25330b 0,#10140d 30%,#090909 72%)}
.not-found-mark{font-size:clamp(86px,18vw,180px);font-weight:700;line-height:.82;color:var(--lime);text-shadow:0 0 35px #c8f50035}
.not-found-page h1{margin:20px 0 10px;font-size:clamp(27px,4vw,42px)}.not-found-page p:not(.hero-kicker){max-width:560px;margin:0 auto;color:var(--muted);font-size:17px}.not-found-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}

/* v1.8.3: public drawer has its own safe scroll area. */
.drawer{display:flex;flex-direction:column;overflow:hidden}
.drawer-head{flex:0 0 auto}
.drawer-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:6px;padding-bottom:16px;scrollbar-width:thin;scrollbar-color:#677e18 #111}
.drawer-nav::-webkit-scrollbar{width:6px}.drawer-nav::-webkit-scrollbar-thumb{background:#677e18;border-radius:99px}
.drawer-nav a.on{color:var(--lime);box-shadow:inset 3px 0 0 var(--lime);padding-left:12px}

/* v1.8.7 — Hero เลือกภาพแยกตาม PC/มือถือ และหน้าแรกมือถือ 4 หมวดต่อแถว */
.hero-custom-image{display:none;position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.hero-desktop-custom .hero-collage{display:none}.hero-desktop-custom .hero-custom-desktop{display:block}
@media(max-width:760px){
  .hero{height:292px}
  .hero-inner{bottom:12px}
  .hero h1{font-size:clamp(25px,7vw,34px);margin-bottom:9px}
  .hero-kicker{font-size:10px;letter-spacing:.29em}
  .hero-mobile-auto .hero-collage{display:grid!important}
  .hero-mobile-auto .hero-custom-image{display:none!important}
  .hero-mobile-custom .hero-collage{display:none!important}
  .hero-mobile-custom .hero-custom-image{display:none!important}
  .hero-mobile-custom .hero-custom-mobile{display:block!important}
  .category-zone{padding-top:22px}
  .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 6px}
  .category-item{min-width:0;gap:6px}
  .category-icon{width:58px;height:58px}
  .category-label{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.25}
  .category-count{font-size:11px;white-space:nowrap}
}
@media(max-width:470px){
  .hero{height:276px}
  .hero-inner{bottom:10px;width:92%}
  .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 4px}
  .category-icon{width:52px;height:52px}
  .category-label{font-size:12px}.category-count{font-size:10px}
}
