:root { --bg:#0b0b10; --card:#171722; --line:#262636; --text:#f2f2f7; --mute:#9a9ab0; --accent:#dc2626; --gold:#f59e0b; }
* { box-sizing: border-box; }

html, body, * { scrollbar-width:none; -ms-overflow-style:none; }
*::-webkit-scrollbar, html::-webkit-scrollbar { display:none; width:0; height:0; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: "Bai Jamjuree", system-ui, "Segoe UI", sans-serif; background:var(--bg); color:var(--text); }
button { font:inherit; cursor:pointer; }

.nav { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:20px; padding:14px 24px; background:rgba(11,11,16,.88); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.logo { font-weight:800; font-size:1.25rem; }
.logo span { background:linear-gradient(90deg,#f59e0b,#dc2626); -webkit-background-clip:text; background-clip:text; color:transparent; }
.menu { display:flex; gap:4px; }
.menu a { color:var(--mute); text-decoration:none; padding:8px 12px; border-radius:8px; font-size:.92rem; }
.menu a:hover { color:var(--text); background:var(--card); }
.nav input { margin-left:auto; width:260px; max-width:100%; padding:10px 16px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--text); outline:none; }
.nav input:focus { border-color:var(--accent); }

.hero { position:relative; height:560px; overflow:hidden; display:flex; align-items:flex-end; padding:48px 24px 56px; transition:background .6s; }
.hero-bg { position:absolute; inset:0; overflow:hidden; }
.hero-bg[hidden] { display:none; }
.hero-bg .hb-blur { display:none; position:absolute; inset:-40px; background:center/cover no-repeat; filter:blur(36px) brightness(.5); }
.hero-bg .hb-pic { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-bg.contain .hb-blur { display:block; }
.hero-bg.contain .hb-pic { left:auto; right:max(24px, calc((100% - 1560px) / 2 + 24px)); width:auto; max-width:48%; object-fit:contain; object-position:right center; border-radius:10px; }
@media (max-width:700px) { .hero-bg.contain .hb-pic { right:16px; max-width:42%; height:auto; max-height:100%; top:0; bottom:auto; object-position:right top; border-radius:0 0 10px 10px; } }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,var(--bg) 4%,rgba(11,11,16,.15) 75%); }
.hero-inner { position:relative; z-index:1; max-width:640px; }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.18); font-size:.75rem; margin-bottom:12px; }
.hero h2 { font-size:clamp(2rem,5vw,3.2rem); line-height:1.15; margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero .meta { color:#e5e5e5; font-size:.9rem; margin-bottom:10px; display:flex; gap:12px; flex-wrap:wrap; }
.hero .meta b { color:var(--gold); }
.hero p { color:#ddd; line-height:1.6; margin:0 0 20px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:1100px) { .hero { height:480px; } }
.btns { display:flex; gap:10px; flex-wrap:wrap; }
.btn { border:0; padding:12px 24px; border-radius:999px; font-weight:600; background:#fff; color:#111; }
.btn:hover { background:#e5e5e5; }
.btn.ghost { background:rgba(255,255,255,.18); color:#fff; }
.btn.ghost:hover { background:rgba(255,255,255,.3); }
.dots { position:absolute; z-index:2; right:24px; bottom:24px; display:flex; gap:8px; }
.dots button { width:10px; height:10px; border-radius:50%; border:0; background:rgba(255,255,255,.35); padding:0; }
.dots button.on { background:#fff; width:26px; border-radius:6px; }


.section { padding:24px; max-width:1560px; margin:0 auto; }
.sec-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:14px; gap:12px; }
.sec-head h3 { margin:0; font-size:1.25rem; }
.sec-head p { margin:2px 0 0; color:var(--mute); font-size:.85rem; }
.arrows { display:flex; gap:6px; }
.arrows button { display:grid; place-items:center; width:36px; height:36px; padding:0; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:#d8d6d0; transition:background .18s, border-color .18s, color .18s, transform .12s, opacity .18s; }
.arrows button:hover:not(:disabled) { background:linear-gradient(135deg,#f59e0b,#dc2626); border-color:transparent; color:#fff; }
.arrows button:active:not(:disabled) { transform:scale(.92); }
.arrows button:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.arrows button:disabled { opacity:.3; cursor:default; }

.row { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px; scrollbar-width:none; }
.row::-webkit-scrollbar { display:none; }
.row .card { flex:0 0 190px; min-width:0; scroll-snap-align:start; }
.grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px 18px; }
@media (max-width:1100px) { .grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:800px) { .grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.card { position:relative; cursor:pointer; transition:transform .2s; }
.card:hover { transform:translateY(-6px); }
.poster { position:relative; aspect-ratio:2/3; border-radius:12px; overflow:hidden; display:flex; align-items:flex-end; padding:12px; background-size:cover; background-position:center; }
.poster::after { content:none; }
.poster .ptitle { position:relative; z-index:1; font-weight:700; font-size:.95rem; line-height:1.25; text-shadow:0 1px 4px rgba(0,0,0,.6); }
.card:hover .poster { box-shadow:0 12px 30px rgba(220,38,38,.3); }
.rate { position:absolute; z-index:2; top:8px; left:8px; padding:3px 8px; font-size:.72rem; border-radius:6px; background:rgba(0,0,0,.6); color:var(--gold); font-weight:600; }
.new { position:absolute; z-index:2; top:8px; right:8px; padding:3px 7px; font-size:.68rem; border-radius:6px; background:var(--accent); font-weight:700; }
.cinfo { padding:8px 2px 0; }
.cinfo h4 { margin:0 0 3px; font-size:.92rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cinfo p { margin:0; font-size:.78rem; color:var(--mute); }

.empty { color:var(--mute); padding:30px 0; }


.footer { margin-top:60px; padding:64px 0 32px; background:#0b0b11; border-top:1px solid rgba(255,255,255,.08); color:#b9b5ae; font:15px/24px "Bai Jamjuree", system-ui, sans-serif; }
.f-shell { width:min(1560px,100%); margin:0 auto; padding:0 24px 48px; }
.f-grid { display:grid; grid-template-columns:328fr 211fr 375fr 211fr 211fr; gap:36px; }
.f-about { display:flex; flex-direction:column; }
.f-brand { display:flex; margin-bottom:14px; text-decoration:none; color:#f2f0ec; }
.f-brand .logo { font:800 28px/1.2 "Bai Jamjuree", system-ui, sans-serif; }
.f-tagline { margin:0; max-width:280px; font:13.5px/21.6px Verdana, Geneva, sans-serif; color:#8e8a83; }
.f-contact { margin-top:14px; font-size:13px; line-height:1.65; color:rgba(255,255,255,.75); }
.f-contact > div { margin-bottom:4px; }
.f-contact strong { font-weight:700; }
.f-contact a { color:rgba(255,255,255,.75); }
.f-contact a.hl { color:#ffc247; font-weight:700; text-decoration:none; }
.f-contact a.ul { text-decoration:underline; }
.f-contact a:not(.hl):not(.ul) { text-decoration:none; }
.f-col h4 { margin:0 0 18px; font:700 16px/29px "Bai Jamjuree", system-ui, sans-serif; color:#f2f0ec; }
.f-links { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:13.5px; line-height:21.6px; }
.f-genre-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
.f-links a { color:#b9b5ae; text-decoration:none; }
.f-links a:hover { color:#fff; }
.f-links a.strong { font-weight:700; }
.f-bottom { width:min(1560px,100%); margin:0 auto; padding:12px 24px 14px; border-top:1px solid rgba(255,255,255,.06); }

.f-copy { position:relative; margin:0 auto; max-width:960px; padding:8px 24px; text-align:center; font-size:14px; line-height:1.5; color:#f0ede6;
  border:1.5px solid transparent; border-radius:16px;
  background:linear-gradient(#12121a, #12121a) padding-box, linear-gradient(120deg, #f59e0b, #dc2626, #7c3aed) border-box;
  box-shadow:0 0 26px rgba(245,158,11,.14), 0 6px 20px rgba(0,0,0,.35); }
.f-copy .yr { color:#ffc247; font-weight:700; }
@media (min-width:1200px) { .f-copy { width:fit-content; max-width:100%; white-space:nowrap; padding:8px 32px; } }
@media (max-width:900px) { .f-grid { grid-template-columns:1fr 1fr; } .f-about { grid-column:1 / -1; } }
.section { scroll-margin-top:70px; }

@media (min-width:1100px) {
  .nav { padding-left:max(24px, calc((100% - 1560px) / 2 + 24px)); padding-right:max(24px, calc((100% - 1560px) / 2 + 24px)); }
  .hero { padding-left:max(24px, calc((100% - 1560px) / 2 + 24px)); }
  .dots { right:max(24px, calc((100% - 1560px) / 2 + 24px)); }
}

/* ===== Mobile ===== */
@media (max-width:700px) {
  .nav { padding:10px 8px 10px 16px; gap:12px; flex-wrap:nowrap; }
  .logo { font-size:1.15rem; }
  .menu { display:none; }
  .nav input { margin:0; flex:1; min-width:0; width:auto; font-size:16px; padding:9px 14px; }

  .hero { height:260px; padding:20px 16px 34px; }
  .hero h2 { font-size:1.4rem; margin-bottom:6px; }
  .hero .meta { font-size:.8rem; margin-bottom:12px; gap:8px; }
  .hero p, .badge { display:none; }
  .btn { padding:11px 20px; min-height:44px; }
  .dots { right:16px; bottom:14px; }

  .extra { display:none; }

  .section { padding:16px; }
  .sec-head h3 { font-size:1.1rem; }
  .arrows { display:none; }
  .row { margin-right:-16px; padding-right:16px; gap:12px; }
  .row .card { flex-basis:138px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; }

  .footer { padding:8px 0 0; margin-top:16px; }
  .f-bottom { margin-top:0; border-top:0; padding:6px 16px 12px; }

}

@media (hover:none) {
  .card:hover { transform:none; }
  .card:hover .poster { box-shadow:none; }
}

.d-hero { position:relative; min-height:420px; display:flex; align-items:flex-end; padding:24px max(24px, calc((100% - 1560px) / 2 + 24px)) 48px; }
.d-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,var(--bg) 3%,rgba(11,11,16,.2) 85%); }
.d-hero > * { position:relative; z-index:1; }
.d-hero > .hero-bg { position:absolute; z-index:0; }
.d-back { position:absolute; top:20px; left:max(24px, calc((100% - 1560px) / 2 + 24px)); z-index:2; padding:7px 14px; border:1px solid rgba(255,255,255,.4); border-radius:999px; background:rgba(0,0,0,.3); color:#fff; text-decoration:none; font-size:.85rem; }
.d-back:hover { background:rgba(255,255,255,.15); }
@media (min-width:701px) { .d-back { display:none; } }
.d-hero-in { max-width:720px; }
.d-badges { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:12px; font-size:.85rem; color:#ddd; }
.d-tag { padding:4px 10px; border-radius:6px; background:#ffc247; color:#111; font-weight:800; font-size:.72rem; }
.d-hero h1 { margin:0 0 12px; font:800 clamp(2rem,4.5vw,3.2rem)/1.1 "Bai Jamjuree", system-ui, sans-serif; }
.d-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:20px; font-size:.9rem; }
.d-meta b { color:var(--gold); }
.d-meta i { font-style:normal; font-size:.75rem; padding:2px 8px; border:1px solid rgba(255,255,255,.35); border-radius:5px; }
.d-btns { display:flex; flex-wrap:wrap; gap:10px; }
.btn.gold { background:#ffc247; color:#111; }
.btn.gold:hover { background:#ffd06b; }
.btn.outline { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.4); }
.btn.outline:hover { background:rgba(255,255,255,.12); }

.d-body { width:min(1560px,100%); margin:0 auto; padding:32px 24px 0; display:grid; grid-template-columns:minmax(0,1.85fr) minmax(0,1fr); gap:24px; align-items:start; }
.d-main { display:grid; gap:24px; min-width:0; }
.d-player { position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.d-player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.d-player video { position:absolute; inset:0; width:100%; height:100%; background:#000; }
.d-player video::cue { color:#fff; font-family:"Bai Jamjuree", system-ui, sans-serif; font-weight:600; font-size:1px; line-height:1; }
.d-player::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,.25); pointer-events:none; }
.d-player:has(iframe)::after, .d-player:has(video)::after { display:none; }
.d-playbtn { position:relative; z-index:1; width:72px; height:72px; border-radius:50%; border:0; background:rgba(255,255,255,.88); color:#111; font-size:1.7rem; padding-left:5px; }
.d-ptitle { position:absolute; z-index:1; top:14px; left:16px; right:16px; text-align:center; font-weight:700; text-shadow:0 1px 6px rgba(0,0,0,.7); }
.d-card { padding:22px 24px; background:#12121a; border:1px solid var(--line); border-radius:14px; }
.d-card h2, .d-card h3 { margin:0 0 14px; font-size:1.15rem; }
.d-card p { margin:0; line-height:1.8; color:#d6d6e2; }
.d-info dl { margin:0; display:grid; grid-template-columns:104px 1fr; gap:12px 14px; font-size:.9rem; }
.d-info dt { color:var(--mute); }
.d-info dd { margin:0; color:#fff; }
.d-info dd.hl { color:#ffc247; font-weight:700; }
.d-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.d-tags button { padding:6px 14px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--text); font-size:.85rem; }
.d-tags button:hover { border-color:var(--accent); }
.d-similar { margin-top:16px; }

@media (max-width:900px) { .d-body { grid-template-columns:minmax(0,1fr); } }
@media (max-width:700px) {
  .d-hero { min-height:0; padding:64px 16px 20px; }
  .d-back { top:14px; left:16px; }
  .d-hero h1 { font-size:1.6rem; margin-bottom:8px; }
  .d-meta { margin-bottom:14px; }
  .d-btns .btn { flex:1; min-height:44px; padding-inline:12px; }
  .d-body { padding:16px 16px 0; gap:16px; }
  .d-main { gap:16px; }
  .d-card { padding:18px 16px; }
  .d-info dl { grid-template-columns:96px 1fr; }
  .d-playbtn { width:56px; height:56px; font-size:1.3rem; }
  .d-ptitle { font-size:.85rem; }
  .d-similar .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 10px; }
  .d-similar .cinfo h4 { font-size:.8rem; }
  .d-similar .cinfo p, .d-similar .rate { font-size:.68rem; }
  .d-similar .ptitle { display:none; }
}

a.card { display:block; color:inherit; text-decoration:none; }
a.logo { color:var(--text); text-decoration:none; }
a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.seo-fallback { position:absolute; left:-9999px; top:0; width:1px; height:1px; overflow:hidden; }
.sec-head h1 { margin:0; font-size:1.5rem; }
.d-orig { margin:-6px 0 10px; color:#cfcfdc; font-size:.95rem; }

.prose { color:#d6d6e2; line-height:1.85; }
.prose > :first-child { margin-top:0; }
.prose > :last-child { margin-bottom:0; }
.prose p { margin:0 0 1em; }
.prose h2, .prose h3, .prose h4 { color:#fff; margin:1.4em 0 .6em; line-height:1.3; }
.prose a { color:#ffc247; }
.prose img { max-width:100%; border-radius:10px; margin:.6em 0; }
.prose ul, .prose ol { margin:0 0 1em; padding-left:1.4em; }
.prose blockquote { margin:1em 0; padding:.4em 1em; border-left:3px solid var(--accent); color:#c9c9d6; background:#12121a; border-radius:0 8px 8px 0; }
.prose code { background:#1c1c28; padding:2px 6px; border-radius:5px; font-size:.9em; }
.prose hr { border:0; border-top:1px solid var(--line); margin:1.6em 0; }

img.a-hero { width:100%; border-radius:14px; margin:0 0 22px; }
.crumbs { color:var(--mute); font-size:.85rem; }
.crumbs a { color:var(--mute); text-decoration:none; }
.crumbs a:hover { color:#fff; }
.tag-pill { padding:6px 14px; border-radius:999px; border:1px solid var(--line); font-size:.85rem; }
.nf { text-align:center; padding:80px 24px; }
.nf h1 { margin:0 0 10px; }
.nf p { color:var(--mute); }

.d-player.d-pc:not(:fullscreen) { aspect-ratio:16/9 !important; width:100% !important; max-width:1920px; max-height:none !important; margin-inline:auto !important; }
.d-player.d-pc { background:#000 !important; }
.d-player.d-pc video { inset:auto; top:0; bottom:0; left:50%; transform:translateX(-50%); height:100%; width:auto; aspect-ratio:3/4; }
.d-player:not(.d-pc):fullscreen, .d-player.fs-fake { background:#000 !important; }
.d-player:not(.d-pc):fullscreen video, .d-player.fs-fake video { inset:auto; top:50%; left:50%; transform:translate(-50%,-50%); height:auto; aspect-ratio:var(--pr,3/4); width:min(100%, calc(100dvh * var(--prn,.75))); }
.d-player:fullscreen, .d-player.fs-fake { width:100% !important; height:100% !important; max-height:none !important; aspect-ratio:auto !important; border-radius:0; border:0; background:#000; }

.d-bar { position:absolute; left:0; right:0; bottom:0; z-index:3; padding:26px 12px 6px; background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0)); opacity:0; pointer-events:none; transition:opacity .25s; }
.d-player.ui .d-bar { opacity:1; pointer-events:auto; }
.d-player:has(video):not(.ui) { cursor:none; }
.d-prog { -webkit-appearance:none; appearance:none; display:block; width:100%; height:16px; margin:0; background:transparent; cursor:pointer; }
.d-prog::-webkit-slider-runnable-track { height:3px; border-radius:2px; background:linear-gradient(to right, #ef4444 var(--p,0%), rgba(255,255,255,.3) var(--p,0%)); }
.d-prog::-moz-range-track { height:3px; border-radius:2px; background:rgba(255,255,255,.3); }
.d-prog::-moz-range-progress { height:3px; border-radius:2px; background:#ef4444; }
.d-prog::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; margin-top:-4.5px; border-radius:50%; background:#ef4444; border:0; }
.d-prog::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:#ef4444; border:0; }
.d-row { display:flex; align-items:center; gap:4px; color:#fff; margin-top:2px; }
.d-b { border:0; background:none; color:#fff; min-width:40px; height:42px; padding:0 5px; border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.d-b:hover { background:rgba(255,255,255,.14); }
.d-b svg { display:block; }
.d-time { font-size:14px; margin-left:8px; white-space:nowrap; font-variant-numeric:tabular-nums; letter-spacing:.2px; }
.d-sp { flex:1; }
.d-menu { position:absolute; right:12px; bottom:62px; min-width:170px; max-height:min(300px, 45vh); overflow:auto; padding:6px; border-radius:10px; background:rgba(20,20,28,.96); border:1px solid rgba(255,255,255,.12); display:grid; gap:2px; }
.d-menu[hidden] { display:none; }
.d-menu button { text-align:left; border:0; background:none; color:#fff; padding:8px 10px; border-radius:6px; font-size:13px; cursor:pointer; }
.d-menu button:hover { background:rgba(255,255,255,.12); }
.d-menu button.on { color:#fbbf24; font-weight:700; }
.d-mh { padding:6px 10px 2px; font-size:11px; color:#9ca3af; text-transform:uppercase; letter-spacing:.5px; }
@media (max-width:480px) { .d-b { min-width:34px; padding:0 3px; } .d-time { font-size:12px; margin-left:4px; } .d-b svg { transform:scale(.88); } }

.genre-btn, .genre-menu { display:none; }
@media (max-width:700px) {
  .genre-btn { position:relative; display:flex; align-items:center; justify-content:center; flex:0 0 auto; width:42px; height:42px; padding:0; border-radius:12px; border:1px solid rgba(255,255,255,.14); background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); color:var(--text); box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.35); -webkit-tap-highlight-color:transparent; transition:background .2s, border-color .2s, transform .12s, box-shadow .2s; }
  .genre-btn:active { transform:scale(.94); }
  .genre-btn:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }

  .gb-bars { position:relative; width:18px; height:14px; }
  .gb-bars i { position:absolute; left:0; height:2px; border-radius:2px; background:currentColor; transition:transform .25s ease, opacity .2s ease, width .25s ease, top .25s ease; }
  .gb-bars i:nth-child(1) { top:0; width:18px; }
  .gb-bars i:nth-child(2) { top:6px; width:18px; }
  .gb-bars i:nth-child(3) { top:12px; width:18px; }
  .genre-btn[aria-expanded="true"] { background:linear-gradient(180deg, var(--accent), #b91c1c); border-color:transparent; color:#fff; box-shadow:0 4px 14px rgba(220,38,38,.45); }
  .genre-btn[aria-expanded="true"] .gb-bars i:nth-child(1) { top:6px; width:18px; transform:rotate(45deg); }
  .genre-btn[aria-expanded="true"] .gb-bars i:nth-child(2) { opacity:0; width:0; }
  .genre-btn[aria-expanded="true"] .gb-bars i:nth-child(3) { top:6px; width:18px; transform:rotate(-45deg); }

  .genre-btn.filtered::after { content:""; position:absolute; top:-3px; right:-3px; width:10px; height:10px; border-radius:50%; background:var(--gold); border:2px solid var(--bg); }
  .genre-menu { position:absolute; top:calc(100% + 6px); left:12px; right:12px; z-index:40; max-height:min(70vh, 460px); overflow-y:auto; padding:14px; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(15,15,22,.98); backdrop-filter:blur(14px); box-shadow:0 18px 40px rgba(0,0,0,.6); }
  .genre-menu:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; gap:8px; animation:gm-in .18s ease-out; }
  @keyframes gm-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
  .genre-menu h4 { grid-column:1 / -1; margin:0 0 4px; font-size:.75rem; color:var(--mute); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
  .genre-menu button { padding:11px 12px; text-align:left; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.03); color:var(--text); font-size:.95rem; min-height:44px; transition:background .15s, border-color .15s; }
  .genre-menu button:active { background:rgba(255,255,255,.1); }
  .genre-menu button.on { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:700; }
}
@media (prefers-reduced-motion:reduce) { .gb-bars i, .genre-btn, .genre-menu { transition:none !important; animation:none !important; } }

body:not(.ready) .footer { display:none !important; }

.ad-slot { display:grid; gap:12px; padding:16px 24px 0; max-width:1560px; margin:0 auto; justify-items:center; }
.d-main .ad-slot { padding:0; margin:0 0 16px; }
.ad { position:relative; max-width:100%; line-height:0; }
.ad img { display:block; max-width:100%; height:auto; border-radius:10px; border:1px solid var(--line); background:#000; }
.ad a { display:block; }
.ad-tag { position:absolute; top:6px; left:6px; padding:1px 6px; font-size:10px; line-height:1.5; border-radius:4px; background:rgba(0,0,0,.6); color:#d4d4e0; pointer-events:none; }
.d-main .ad-slot.ad-grid6 { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; justify-items:stretch; margin:10px 0 16px; }
.ad-slot.ad-gridtop { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; justify-items:stretch; padding:16px 24px 0; max-width:1200px; }
.ad-grid6 .ad { width:100%; }
.ad-grid6 .ad { border:1.5px solid transparent; border-radius:6px; overflow:hidden;
  background:linear-gradient(#12121a, #12121a) padding-box, linear-gradient(120deg, #f59e0b, #dc2626, #7c3aed) border-box;
  box-shadow:0 0 26px rgba(245,158,11,.14), 0 6px 20px rgba(0,0,0,.35); }
.ad-grid6 .ad img { width:100%; aspect-ratio:728 / 90; object-fit:cover; border:0; border-radius:0; }
.ad-grid6 .ad-tag { top:6px; left:auto; right:6px; }
.ad-mobile { display:none; }
@media (max-width:700px) { .ad-slot.ad-gridtop { grid-template-columns:minmax(0, 1fr); padding:10px 10px 0; } .d-main .ad-slot.ad-grid6 { grid-template-columns:minmax(0, 1fr); } .ad-slot { padding:12px 16px 0; } .ad-pc { display:none; } .ad-mobile { display:block; } }

.ad-float { position:fixed; left:50%; bottom:0; transform:translateX(-50%); width:min(1200px, calc(100vw - 16px)); z-index:60; }
.ad-float-body { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:5px; padding:6px 6px 0; background:rgba(10,10,15,.97); border:1px solid rgba(255,255,255,.16); border-bottom:0; border-radius:12px 12px 0 0; box-shadow:0 -8px 28px rgba(0,0,0,.55); overflow:hidden; }
.ad-float .ad-slot { display:contents; padding:0; }

.ad-float .ad { width:100%; border:1.5px solid transparent; border-radius:6px; overflow:hidden;
  background:linear-gradient(#12121a, #12121a) padding-box, linear-gradient(120deg, #f59e0b, #dc2626, #7c3aed) border-box;
  box-shadow:0 0 26px rgba(245,158,11,.14), 0 6px 20px rgba(0,0,0,.35); }
.ad-float .ad img { width:100%; aspect-ratio:728 / 90; object-fit:cover; border:0; border-radius:0; }
.ad-float .ad-tag { top:6px; left:auto; right:6px; }

.ad-toggle { position:absolute; left:14px; bottom:100%; display:flex; align-items:center; gap:9px; height:32px; padding:0 14px 0 8px; font:700 12.5px/1 "Bai Jamjuree", system-ui, sans-serif; letter-spacing:.02em; color:#fff; white-space:nowrap; background:linear-gradient(180deg, #ef4444 0%, #b91c1c 100%); border:1px solid rgba(255,255,255,.22); border-bottom:0; border-radius:12px 12px 0 0; box-shadow:0 -6px 18px rgba(220,38,38,.45), inset 0 1px 0 rgba(255,255,255,.3); cursor:pointer; -webkit-tap-highlight-color:transparent; transition:transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.ad-toggle:hover { filter:brightness(1.12); transform:translateY(-2px); box-shadow:0 -8px 22px rgba(239,68,68,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.ad-toggle:active { transform:translateY(0) scale(.97); }
.ad-toggle:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.ad-toggle .at-ico { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.ad-toggle .at-ico svg { transition:transform .3s ease; }
.ad-float.closed .ad-toggle .at-ico svg { transform:rotate(180deg); }
.ad-toggle .at-count { display:grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#fff; color:#b91c1c; font-size:11px; }

.ad-float.closed .ad-toggle { border-radius:12px 12px 0 0; }
.ad-float.closed .ad-toggle::before { content:""; position:absolute; top:-3px; right:-3px; width:9px; height:9px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 0 rgba(245,158,11,.7); animation:at-pulse 1.8s ease-out infinite; }
@keyframes at-pulse { 0% { box-shadow:0 0 0 0 rgba(245,158,11,.7); } 70%,100% { box-shadow:0 0 0 10px rgba(245,158,11,0); } }
@media (prefers-reduced-motion:reduce) { .ad-toggle, .ad-toggle .at-ico svg { transition:none; } .ad-float.closed .ad-toggle::before { animation:none; } }
.ad-float.closed .ad-float-body { display:none; }
body:not(.ready) .ad-float { display:none; }
@media (max-width:700px) {
  .ad-float { width:100vw; }
  .ad-float-body { grid-template-columns:minmax(0, 1fr); gap:2px; padding:2px 10px 0; border-width:0; border-radius:0; }
  .ad-float .ad { border-width:1px; }
  .ad-float .ad-tag { display:none; }
  .ad-toggle { left:10px; height:30px; font-size:12px; }
}


@media (max-width:700px) {
  .f-shell { display:block; padding:22px 16px 4px; border-top:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.025), transparent 160px); }
  .f-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 16px; }
  .f-about { grid-column:1 / -1; }
  .f-brand { margin-bottom:8px; }
  .f-brand .logo { font-size:26px; line-height:1.1; }
  .f-tagline { max-width:none; font-size:13px; line-height:1.6; }
  .f-contact { display:grid; gap:8px; margin-top:16px; font-size:12.5px; line-height:1.55; color:#9a9ab0; }
  .f-contact > div { display:flex; gap:8px; align-items:flex-start; margin:0; }
  .f-contact > div::before { content:""; flex:0 0 16px; height:16px; margin-top:2px; background:#f59e0b; -webkit-mask:var(--ico) center / contain no-repeat; mask:var(--ico) center / contain no-repeat; }
  .f-contact .ci { display:none; }
  .f-contact > div:nth-child(1) { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
  .f-contact > div:nth-child(3) { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
  .f-contact > div:nth-child(4) { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
  .f-contact > div:nth-child(6) { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 4 3 11l6 2 2 6 3-4 5 3z'/%3E%3C/svg%3E"); }
  .f-contact > div:nth-child(2), .f-contact > div:nth-child(5) { display:none; }
  .f-contact strong { color:#f2f2f7; font-weight:600; }
  .f-contact a.hl, .f-contact a.ul { color:#ffc247; font-weight:600; text-decoration:none; }
  .f-about + .f-col { grid-column:1 / -1; grid-row:2; }
  .f-about + .f-col + .f-col { grid-column:1 / -1; grid-row:3; }
  .f-about + .f-col + .f-col + .f-col { grid-column:1 / -1; grid-row:4; }
  .f-about + .f-col .f-links, .f-about + .f-col + .f-col + .f-col .f-links { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 16px; }
  .f-col h4 { margin:20px 0 8px; font-size:15px; line-height:1.2; }
  .f-links { gap:0; }
  .f-links a { display:flex; align-items:center; min-height:40px; }
  .f-genre-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 16px; }
  .f-bottom { padding:6px 16px 12px; }
  .f-copy { padding:8px 14px; font-size:13px; line-height:1.55; border-radius:14px; }
}

@media (min-width:701px) {
  .menu { gap:2px; }
  .menu a { position:relative; display:inline-flex; align-items:center; gap:8px; padding:9px 14px; font-weight:500; letter-spacing:.01em; transition:color .15s, background .15s; }
  .menu a::before { content:""; width:16px; height:16px; flex:0 0 16px; background:currentColor; opacity:.75; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; transition:opacity .15s, color .15s; }
  .menu a::after { content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px; border-radius:2px; background:linear-gradient(90deg,#f59e0b,#dc2626); transform:scaleX(0); transform-origin:left; transition:transform .2s; }
  .menu a:hover { background:rgba(255,255,255,.05); }
  .menu a:hover::before { opacity:1; color:#ffc247; }
  .menu a:hover::after { transform:scaleX(1); }
  .menu a[href="/#top10"] { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6M18 9h1.5a2.5 2.5 0 0 0 0-5H18M4 22h16M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E"); }
  .menu a[href="/#new"] { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
  .menu a[href="/#hot"] { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E"); }
  .menu a[href="/#quick"] { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
  .menu a[href="/#long"] { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.18'/%3E%3Cpath d='M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5'/%3E%3C/svg%3E"); }
  .menu a[href="/tat-ca-phim"] { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
  .nav input { width:280px; padding:10px 16px 10px 40px; background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center/16px; }
}

.ad-top { max-width:1200px; margin:0 auto; padding:14px 24px 0; }
.ad-top .ad-toggle { position:static; border-radius:12px; border-bottom:1px solid rgba(255,255,255,.22); box-shadow:0 4px 14px rgba(220,38,38,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.ad-top .ad-toggle:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(239,68,68,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.ad-top .ad-toggle { position:relative; left:auto; bottom:auto; }
.ad-top.closed .ad-toggle .at-ico svg { transform:rotate(180deg); }
.ad-top.closed .ad-toggle::before { content:""; position:absolute; top:-3px; right:-3px; width:9px; height:9px; border-radius:50%; background:var(--gold); animation:at-pulse 1.8s ease-out infinite; }
.ad-top.closed .ad-top-body { display:none; }
.ad-top .ad-slot.ad-gridtop { padding:8px 0 0; max-width:none; }
@media (min-width:701px) {
  .ad-top { display:flex; align-items:flex-start; gap:5px; }
  .ad-top .ad-toggle { flex:0 0 auto; }
  .ad-top .ad-top-body { flex:1 1 auto; min-width:0; }
  .ad-top .ad-slot.ad-gridtop { padding:0; }
}
@media (max-width:700px) { .ad-top { padding:10px 10px 0; } .ad-top .ad-toggle { height:30px; font-size:12px; } .ad-top .ad-slot.ad-gridtop { padding:6px 0 0; } }

.ad-top .ad-toggle { display:none !important; }

.logo-img { display:block; height:34px; width:auto; max-width:220px; }
.f-brand .logo-img { height:38px; max-width:240px; }
@media (max-width:700px) { .logo-img { height:28px; max-width:170px; } .f-brand .logo-img { height:32px; } }

.cinfo p { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cinfo .cmeta { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cinfo .cviews { display:inline-flex; align-items:center; gap:4px; flex:0 0 auto; color:var(--mute); font-variant-numeric:tabular-nums; }
.cinfo .cviews svg { opacity:.85; }

.poster::before { content:var(--wm, ""); position:absolute; left:50%; top:42%; z-index:1; transform:translate(-50%,-50%) rotate(-24deg); font:800 1.3rem/1 system-ui,sans-serif; letter-spacing:.06em; white-space:nowrap; color:rgba(255,255,255,.2); text-shadow:0 1px 3px rgba(0,0,0,.25); pointer-events:none; }

.pol-back { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(5,5,9,.72); backdrop-filter:blur(4px); }
.pol-box { width:min(760px,100%); max-height:min(86vh,900px); display:flex; flex-direction:column; border-radius:16px; background:#12121a; border:1px solid rgba(255,255,255,.12); box-shadow:0 24px 80px rgba(0,0,0,.6); overflow:hidden; }
.pol-box header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 22px; border-bottom:1px solid rgba(255,255,255,.08); }
.pol-box h2 { margin:0; font-size:1.25rem; }
.pol-x { display:grid; place-items:center; width:34px; height:34px; padding:0; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); color:var(--text); }
.pol-x:hover { background:linear-gradient(135deg,#f59e0b,#dc2626); border-color:transparent; }
.pol-body { padding:20px 24px 26px; overflow-y:auto; line-height:1.75; color:#d8d6d0; }
.pol-body h2, .pol-body h3 { margin:18px 0 8px; color:#fff; font-size:1.05rem; }
.pol-body p { margin:0 0 12px; }
.pol-body ul { margin:0 0 12px; padding-left:22px; }
@media (max-width:700px) { .pol-back { padding:0; align-items:flex-end; } .pol-box { width:100%; max-height:90vh; border-radius:16px 16px 0 0; } .pol-box header { padding:14px 16px; } .pol-body { padding:16px 16px 24px; } }

button, input, textarea, select { font-family:inherit; }
.hero .meta { flex-wrap:nowrap; align-items:center; white-space:nowrap; }
.hero .meta > * { flex:0 0 auto; line-height:1.4; }
.hero .meta > span:nth-child(3) { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.d-player.fs-fake { position:fixed !important; inset:0; z-index:9999; margin:0 !important; }
html.fs-lock, html.fs-lock body { overflow:hidden; }
.sub-ov { position:absolute; z-index:2; pointer-events:none; overflow:hidden; }
.sub-box { position:absolute; left:50%; transform:translateX(-50%); text-align:center; line-height:1.3; font-weight:600; color:#fff; font-family:"Bai Jamjuree", system-ui, sans-serif; }
.sub-box span { display:block; width:fit-content; max-width:100%; margin:0 auto; padding:0 6px; background:rgba(0,0,0,.72); }

.all-page { padding-top:28px; }
.all-page h1 { font-size:1.5rem; margin:0; }
.all-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.pager { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:28px 0 8px; }
.pager a { min-width:40px; height:40px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; background:var(--card); color:var(--mute); text-decoration:none; font-weight:600; }
.pager a:hover { color:var(--text); }
.pager a.on { background:linear-gradient(90deg,#f59e0b,#dc2626); color:#fff; }
@media (max-width:700px) { .all-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .all-page { padding-top:18px; } }

.see-all { margin-left:auto; align-self:flex-end; flex:0 0 auto; display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px; border-radius:999px; background:var(--card); color:var(--text); text-decoration:none; font-size:.88rem; font-weight:600; white-space:nowrap; }
.see-all:hover { background:linear-gradient(90deg,#f59e0b,#dc2626); color:#fff; }

.d-player, .d-player * { -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; }
.d-player, .d-player video { outline:none; -webkit-user-select:none; user-select:none; }
.d-player:focus, .d-player:focus-visible, .d-player video:focus { outline:none; }
