/* =========================================================
   บล็อกหน้าแรก + ธีมที่โครงหน้าต่างกัน (2026-11-16)
   <html data-layout="stream|grid|reels|magazine|mosaic"> มาจากธีม (layouts.js)
   บล็อกทุกชนิดใช้ได้ทุกธีม — ธีมแค่เปลี่ยนหน้าตาของบล็อกและโครงรวม
   ========================================================= */

/* ---------- บล็อกพื้นฐาน (ทุกธีม) ---------- */
.blk.bg-surface, .blk.bg-accent, .blk.bg-tint { margin: 0 var(--gutter) 30px; border-radius: var(--radius); padding: 18px 0 4px; }
.blk.bg-surface { background: var(--surface); }
.blk.bg-tint { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.blk.bg-accent { background: var(--accent); color: var(--on-accent); }
.blk.bg-accent .row-h a, .blk.bg-accent .card .s { color: inherit; opacity: .8; }
.blk[class*="bg-"] .row-h, .blk[class*="bg-"] .rail, .blk[class*="bg-"] .bgrid, .blk[class*="bg-"] .chips.wrap, .blk[class*="bg-"] .ptiles, .blk[class*="bg-"] .blk-text, .blk[class*="bg-"] .slist { padding-left: 18px; padding-right: 18px; }
.blk.pad-s > .row, .blk.pad-s > section { margin-bottom: 12px; }
.blk.pad-l { padding-top: 26px; padding-bottom: 26px; }

.bgrid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 22px var(--card-gap); padding: 8px var(--gutter) 6px; }
.slist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; padding: 6px var(--gutter); }
.sitem { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 10px; border-radius: var(--radius); background: var(--surface); transition: background .2s; }
.sitem:hover { background: var(--surface2); }
.sitem img { width: 84px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--card-radius); }
.sitem .kicker { font-size: .74rem; margin-bottom: 4px; color: var(--muted); }
.sitem b { display: block; font-weight: 600; line-height: 1.35; }
.sitem p { margin: 4px 0 0; font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding: 6px var(--gutter); }
.feat-lead { position: relative; display: grid; grid-template-columns: minmax(150px, 42%) 1fr; gap: 22px; align-items: end; padding: 22px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.feat-lead img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--card-radius); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.feat-cap h3 { margin: 6px 0 10px; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.15; font-weight: var(--title-weight); }
.feat-cap p { margin: 0 0 18px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.feat-cap .kicker { color: var(--muted); font-size: .82rem; margin: 0; }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: f; }
.feat-list li { counter-increment: f; border-bottom: 1px solid var(--border); }
.feat-list a { display: grid; grid-template-columns: 2.2em 64px 1fr; gap: 12px; align-items: center; padding: 12px 0; }
.feat-list a::before { content: counter(f, decimal-leading-zero); font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.feat-list img { width: 64px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--card-radius); }
.feat-list b { display: block; line-height: 1.3; font-weight: 600; }
.feat-list span { font-size: .78rem; color: var(--muted); }
.feat-list p { display: none; }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 250px); gap: 12px; padding: 6px var(--gutter); }
.mosaic .tile:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic.n1 .tile:first-child { grid-column: 1 / -1; }
.mosaic.n2 .tile, .mosaic.n3 .tile:not(:first-child) { grid-column: span 2; }
.mosaic.n6 .tile:nth-child(6), .mosaic.n7 .tile:nth-child(n+6) { grid-column: span 2; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); isolation: isolate; }
.tile-bg { position: absolute; inset: -30px; background: var(--img) center / cover; filter: blur(22px) brightness(.55) saturate(1.3); z-index: -1; }
.tile img { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; width: auto; aspect-ratio: 3/4; object-fit: cover; transition: transform .45s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, transparent 80%); }
.tile-cap { position: absolute; z-index: 1; left: 0; bottom: 0; top: 0; width: 62%; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; }
.tile-cap .kicker { font-size: .72rem; margin-bottom: 6px; }
.tile-cap b { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile:first-child .tile-cap b { font-size: clamp(1.2rem, 2.2vw, 2rem); }
.tile-cap em { font-style: normal; font-size: .86rem; opacity: .85; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.reels { position: relative; }
.reel-track { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; }
.reel-track::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4%; padding: calc(var(--header-h) + 20px) 8% 40px; overflow: hidden; isolation: isolate; }
.reel-bg { position: absolute; inset: -60px; background: var(--img) center / cover; filter: blur(40px) brightness(.4) saturate(1.4); z-index: -1; }
.reel-poster { justify-self: end; position: relative; height: min(78svh, 760px); aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #000; }
.reel-poster img { width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 1.7rem; backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.reel-poster:hover .reel-play { transform: scale(1.08); background: var(--accent); color: var(--on-accent); }
.reel-info { max-width: 520px; color: #fff; }
.reel-info h2 { margin: 6px 0 12px; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.12; font-weight: var(--title-weight); }
.reel-info p { margin: 0 0 22px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.reel-n { position: absolute; right: 22px; top: calc(var(--header-h) + 16px); font-size: .8rem; opacity: .7; color: #fff; }
.reel-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.7); pointer-events: none; animation: reel-hint 2.4s ease-in-out infinite; }
@keyframes reel-hint { 50% { transform: translateY(5px); opacity: .45; } }

.blk-text { padding: 0 var(--gutter); }
.blk-text h2 { margin: 0 0 8px; font-size: var(--row-title); font-weight: 600; }
.blk-text .txt { color: var(--muted); max-width: 72ch; }
.blk-text.center { text-align: center; }
.blk-text.center .txt { margin: 0 auto; }
.blk-banner { padding: 0 var(--gutter); }
.blk-banner img { width: 100%; height: auto; border-radius: var(--radius); }
.blk-spacer.s { height: 10px; } .blk-spacer.m { height: 30px; } .blk-spacer.l { height: 70px; }

@media (max-width: 960px) {
  .feat { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .mosaic .tile:first-child, .mosaic.n2 .tile, .mosaic.n3 .tile:not(:first-child) { grid-column: 1 / -1; grid-row: span 1; }
  .mosaic .tile:first-child { grid-row: span 2; }
  .mosaic.n6 .tile:nth-child(6), .mosaic.n7 .tile:nth-child(n+6) { grid-column: span 1; }
}
@media (orientation: portrait) and (max-width: 960px) {
  .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  [data-cards="landscape"] .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slist { grid-template-columns: 1fr; }
  .feat-lead { grid-template-columns: 1fr; padding: 0; background: none; gap: 14px; }
  .feat-lead img { width: min(64vw, 320px); margin: 0 auto; }
  .reel-track, .reel { height: calc(100svh - 62px - env(safe-area-inset-bottom)); }
  .reel { grid-template-columns: 1fr; padding: 0; align-items: end; }
  .reel-poster { position: absolute; inset: 0; height: auto; width: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .reel-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.35) 100%); }
  .reel-play { z-index: 1; width: 62px; height: 62px; font-size: 1.4rem; }
  .reel-info { position: relative; z-index: 2; padding: 0 18px 48px; pointer-events: none; }
  .reel-info .actions { pointer-events: auto; }
  .reel-info h2 { font-size: 1.55rem; }
  .reel-info p { -webkit-line-clamp: 2; font-size: .9rem; margin-bottom: 14px; }
  .reel-n { z-index: 2; right: 14px; }
  .tile-cap { width: 100%; padding: 12px; }
  .tile img { width: 100%; }
  .tile::after { background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 60%); }
  .tile:not(:first-child) .tile-cap .kicker { display: none; }
  .tile-cap b { font-size: .88rem; }
}

/* =========================================================
   8) สมุดภาพ (paper / layout grid) — พื้นสว่าง หมวดหมู่เป็นแถบข้างซ้าย ตารางปกแน่น
   ========================================================= */
[data-theme="paper"] {
  color-scheme: light;
  --bg: #f3f4f6; --bg2: #ffffff; --surface: #ffffff; --surface2: #e8ebf0; --text: #15171c; --muted: #5d6470;
  --accent: #1f4fd8; --accent2: #1a43b8; --on-accent: #fff; --border: rgba(21,23,28,.12);
  --font: 'Noto Sans Thai', system-ui, sans-serif;
  --radius: 10px; --card-radius: 6px; --btn-radius: 8px; --chip-radius: 8px;
  --header-bg: #fff; --header-solid: #fff;
  --btn-pri-bg: #1f4fd8; --btn-pri-fg: #fff; --btn-sec-bg: #e8ebf0; --btn-sec-fg: #15171c;
  --card-hover: translateY(-3px); --title-weight: 700; --row-title: 1.15rem;
  --shadow: 0 6px 18px rgba(21,23,28,.08);
}
[data-theme="paper"] #top { box-shadow: 0 1px 0 var(--border); }
[data-theme="paper"] body:not(.no-hero) #app { padding-top: var(--header-h); }
[data-theme="paper"] .logo-text { color: var(--text); font-weight: 800; letter-spacing: -.03em; }
[data-theme="paper"] .poster { box-shadow: 0 1px 2px rgba(21,23,28,.12), 0 6px 16px rgba(21,23,28,.08); }
[data-theme="paper"] .card .t { font-weight: 600; }
[data-theme="paper"] .kicker, [data-theme="paper"] .detail .desc { color: var(--muted); }
[data-theme="paper"] .badge.sub { background: #15171c; color: #fff; }
[data-theme="paper"] .badge.out { color: var(--text); }
[data-theme="paper"] .row-h { border-bottom: 2px solid var(--text); padding-bottom: 8px; margin: 0 var(--gutter) 12px; padding-left: 0; padding-right: 0; }
[data-theme="paper"] .row-h h2 { font-weight: 800; }
[data-theme="paper"] .rail-btn { background: rgba(255,255,255,.92); color: var(--text); box-shadow: var(--shadow); }
[data-theme="paper"] .ptile { background: #fff; color: var(--text); box-shadow: var(--shadow); }
[data-theme="paper"] .sitem, [data-theme="paper"] .feat-lead { box-shadow: var(--shadow); }
[data-theme="paper"] .detail-bg { filter: blur(50px) brightness(1.15) saturate(.8); opacity: .45; }
[data-theme="paper"] .detail-bg::after { background: linear-gradient(0deg, var(--bg) 10%, transparent 70%); }
[data-theme="paper"] .detail-poster { box-shadow: 0 18px 40px rgba(21,23,28,.25); border: 6px solid #fff; }
[data-theme="paper"] .side { background: #fff; }
[data-theme="paper"] .sk { background: linear-gradient(90deg, #e6e8ec 0%, #f1f3f6 50%, #e6e8ec 100%); background-size: 200% 100%; }
@media (min-width: 961px) {
  /* หมวดหมู่ (บล็อกแรก) = แถบข้างซ้ายติดจอ · บล็อกอื่นอยู่คอลัมน์ขวา */
  [data-layout="grid"] .rows:has(> .blk[data-bt="genres"]:first-child) { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; padding-left: var(--gutter); padding-top: 22px; }
  [data-layout="grid"] .rows:has(> .blk[data-bt="genres"]:first-child) > * { grid-column: 2; min-width: 0; }
  [data-layout="grid"] .rows:has(> .blk[data-bt="genres"]:first-child) > .blk[data-bt="genres"]:first-child { grid-column: 1; grid-row: 1 / span 60; }
  [data-layout="grid"] .rows:has(> .blk[data-bt="genres"]:first-child) > * > section, [data-layout="grid"] .rows:has(> .blk[data-bt="genres"]:first-child) .row-h { --gutter: 0px; }
  [data-layout="grid"] .rows > .blk[data-bt="genres"]:first-child .blk-genres { position: sticky; top: calc(var(--header-h) + 16px); }
  [data-layout="grid"] .rows > .blk[data-bt="genres"]:first-child .row-h { margin: 0 0 8px; }
  [data-layout="grid"] .rows > .blk[data-bt="genres"]:first-child .chips.wrap { flex-direction: column; gap: 2px; padding: 0; overflow: visible; }
  [data-layout="grid"] .rows > .blk[data-bt="genres"]:first-child .chip { justify-content: space-between; background: none; border: 0; border-radius: 6px; padding: 7px 10px; }
  [data-layout="grid"] .rows > .blk[data-bt="genres"]:first-child .chip:hover { background: var(--surface); color: var(--accent); }
}

/* =========================================================
   9) ฟีดแนวตั้ง (reel / layout reels) — เปิดมาเป็นฟีดเต็มจอเลื่อนลงทีละเรื่อง แบบแอปคลิปสั้น
   ========================================================= */
[data-theme="reel"] {
  --bg: #050507; --bg2: #0d0d12; --surface: #17171f; --surface2: #24242f; --muted: #9a9aab;
  --accent: #ff2e63; --accent2: #ff5c86; --on-accent: #fff;
  --font: 'Kanit', system-ui, sans-serif;
  --radius: 16px; --card-radius: 14px; --btn-radius: 999px;
  --header-bg: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0));
  --header-solid: rgba(5,5,7,.96);
  --btn-pri-bg: #ff2e63; --btn-pri-fg: #fff; --btn-sec-bg: rgba(255,255,255,.16);
  --card-hover: scale(1.04); --title-weight: 700;
}
[data-theme="reel"] .logo-text { color: #fff; font-weight: 800; }
[data-theme="reel"] .logo-text::first-letter { color: var(--accent); }
[data-theme="reel"] .poster { aspect-ratio: 9/16; }
[data-theme="reel"] .row-h h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: middle; box-shadow: 0 0 12px var(--accent); }
[data-theme="reel"] .chip { background: rgba(255,255,255,.07); border-color: transparent; }
[data-theme="reel"] .ptile { background: linear-gradient(160deg, #2a0f1b, #0d0d12); }
[data-theme="reel"] .reels + .rows { padding-top: 22px; }
[data-theme="reel"] .detail-in { grid-template-columns: minmax(200px, 330px) 1fr; }
[data-theme="reel"] .detail-poster { aspect-ratio: 9/16; border-radius: 20px; }
[data-theme="reel"] .stage { background: radial-gradient(ellipse at center, #1a0a12 0%, #000 70%); }
[data-theme="reel"] .stage-inner { border-radius: 18px; overflow: hidden; }

/* =========================================================
   10) นิตยสาร (editorial / layout magazine) — หัวเรื่องตัวมีเชิง เรื่องเด่นพร้อมรายการลำดับ เส้นคั่นบางแบบหน้าหนังสือ
   ========================================================= */
[data-theme="editorial"] {
  --bg: #24101a; --bg2: #1c0c14; --surface: #321a26; --surface2: #432534; --text: #f6efe6; --muted: #c4b3a6;
  --accent: #e2b562; --accent2: #c99a45; --on-accent: #24101a; --border: rgba(246,239,230,.14);
  --font: 'Sarabun', system-ui, sans-serif; --serif: 'Noto Serif Thai', Georgia, serif;
  --radius: 2px; --card-radius: 2px; --btn-radius: 2px; --chip-radius: 2px;
  --header-bg: #24101a; --header-solid: #24101a;
  --btn-pri-bg: #e2b562; --btn-pri-fg: #24101a; --btn-sec-bg: transparent; --btn-sec-fg: #f6efe6;
  --card-hover: translateY(-2px); --title-weight: 700; --row-title: 1.6rem;
}
[data-theme="editorial"] #top { border-bottom: 1px solid var(--border); }
[data-theme="editorial"] body:not(.no-hero) #app { padding-top: var(--header-h); }
[data-theme="editorial"] .logo-text { font-family: var(--serif); color: var(--text); font-weight: 800; letter-spacing: -.01em; }
[data-theme="editorial"] h1, [data-theme="editorial"] h2, [data-theme="editorial"] h3, [data-theme="editorial"] .feat-list b, [data-theme="editorial"] .sitem b, [data-theme="editorial"] .card .t { font-family: var(--serif); }
[data-theme="editorial"] .btn.sec { border: 1px solid var(--border); backdrop-filter: none; }
[data-theme="editorial"] .row-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 14px; }
[data-theme="editorial"] .row-h::after { content: ""; grid-column: 2; grid-row: 1; height: 1px; background: var(--border); }
[data-theme="editorial"] .row-h a { grid-column: 3; color: var(--accent); }
[data-theme="editorial"] .row-h h2 { font-weight: 700; }
[data-theme="editorial"] .poster { box-shadow: none; outline: 1px solid var(--border); outline-offset: 4px; }
[data-theme="editorial"] .rail { gap: 18px; padding-top: 12px; }
[data-theme="editorial"] .card .t { font-weight: 600; font-size: .95rem; }
[data-theme="editorial"] .feat-lead { background: none; padding: 0 28px 0 0; border-right: 1px solid var(--border); border-radius: 0; }
[data-theme="editorial"] .feat-cap h3 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
[data-theme="editorial"] .feat-list a::before { font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
[data-theme="editorial"] .sitem { background: none; border-top: 1px solid var(--border); border-radius: 0; padding: 14px 0; }
[data-theme="editorial"] .slist { column-gap: 28px; row-gap: 0; }
[data-theme="editorial"] .chip { background: none; border-color: var(--border); }
[data-theme="editorial"] .chip small { color: var(--accent); opacity: 1; }
[data-theme="editorial"] .ptile { background: var(--surface); border: 1px solid var(--border); }
[data-theme="editorial"] .detail-bg { display: none; }
[data-theme="editorial"] .detail-in { grid-template-columns: 1fr minmax(220px, 340px); align-items: center; padding-top: calc(var(--header-h) + 50px); border-bottom: 1px solid var(--border); }
[data-theme="editorial"] .detail-in > .detail-poster { order: 2; }
[data-theme="editorial"] .detail h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
[data-theme="editorial"] .detail .desc { font-size: 1.06rem; line-height: 1.8; color: var(--muted); }
[data-theme="editorial"] .side { background: var(--bg2); }
[data-theme="editorial"] .side h1 { font-size: 1.6rem; }
@media (orientation: portrait) and (max-width: 960px) {
  [data-theme="editorial"] .detail-in { grid-template-columns: 1fr; }
  [data-theme="editorial"] .detail-in > .detail-poster { order: 0; }
  [data-theme="editorial"] .feat-lead { border: 0; padding: 0; }
  [data-theme="editorial"] { --row-title: 1.3rem; }
}

/* =========================================================
   11) ป๊อป (pop / layout mosaic) — กระเบื้องเรื่องเด่นหลายขนาด สีสด ขอบหนาเงาแข็ง
   ========================================================= */
[data-theme="pop"] {
  --bg: #1b1464; --bg2: #160f52; --surface: #2a2380; --surface2: #3a3299; --muted: #c9c5f2;
  --accent: #ff7a59; --accent2: #ffb238; --on-accent: #1b1464; --border: rgba(255,255,255,.18);
  --font: 'Mitr', system-ui, sans-serif;
  --radius: 22px; --card-radius: 16px; --btn-radius: 14px; --chip-radius: 999px;
  --header-bg: #1b1464; --header-solid: #1b1464;
  --btn-pri-bg: #ffb238; --btn-pri-fg: #1b1464; --btn-sec-bg: #fff; --btn-sec-fg: #1b1464;
  --card-hover: translate(-3px, -3px); --title-weight: 600;
  --pop-shadow: 5px 5px 0 #0c0838;
}
[data-theme="pop"] body:not(.no-hero) #app { padding-top: var(--header-h); }
[data-theme="pop"] .blk-mosaic { padding-top: 16px; }
[data-theme="pop"] .logo-text { color: #ffb238; font-weight: 700; }
[data-theme="pop"] .btn { box-shadow: var(--pop-shadow); border: 2px solid #0c0838; }
[data-theme="pop"] .btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #0c0838; }
[data-theme="pop"] .poster, [data-theme="pop"] .tile, [data-theme="pop"] .ptile, [data-theme="pop"] .sitem, [data-theme="pop"] .feat-lead { border: 2px solid #0c0838; box-shadow: var(--pop-shadow); }
[data-theme="pop"] .card:hover .poster { box-shadow: 8px 8px 0 #ff7a59; }
[data-theme="pop"] .tile:nth-child(3n+2) .tile-bg { filter: blur(22px) brightness(.5) hue-rotate(40deg); }
[data-theme="pop"] .row-h h2 { display: inline-block; background: #ff7a59; color: #1b1464; padding: 2px 14px; border-radius: 999px; transform: rotate(-1.5deg); font-weight: 600; }
[data-theme="pop"] .chip { background: #fff; color: #1b1464; border: 2px solid #0c0838; font-weight: 500; }
[data-theme="pop"] .chip:nth-child(4n+2) { background: #ffb238; }
[data-theme="pop"] .chip:nth-child(4n+3) { background: #ff7a59; }
[data-theme="pop"] .chip:nth-child(4n) { background: #7ee0c3; }
[data-theme="pop"] .chip small { color: #1b1464; opacity: .7; }
[data-theme="pop"] .ptile { background: #2a2380; }
[data-theme="pop"] .detail-bg { filter: blur(40px) brightness(.5) saturate(1.6) hue-rotate(-20deg); }
[data-theme="pop"] .detail-poster { border: 3px solid #0c0838; box-shadow: 10px 10px 0 #ff7a59; border-radius: 22px; }
[data-theme="pop"] .stage-inner { border: 3px solid #0c0838; border-radius: 20px; overflow: hidden; box-shadow: 8px 8px 0 #ff7a59; }
[data-theme="pop"] .stage { background: #120d47; }
[data-theme="pop"] .side { background: var(--bg2); }
@media (orientation: portrait) and (max-width: 960px) {
  [data-theme="pop"] { --pop-shadow: 3px 3px 0 #0c0838; }
  [data-theme="pop"] .stage-inner { border: 0; border-radius: 0; box-shadow: none; }
}

/* แก้หลังดูภาพจริง */
body.no-hero #app > .rows { padding-top: 22px; }
[data-theme="paper"] .search { background: #eef0f4; }
[data-theme="paper"] .search input { color: var(--text); }
[data-theme="paper"] .card.rank .num { -webkit-text-stroke: 3px rgba(21,23,28,.55); }
[data-theme="paper"] .dd-menu, [data-theme="paper"] #drawer { background: #fff; color: var(--text); }
[data-theme="paper"] #bottom-nav { background: rgba(255,255,255,.97); border-top: 1px solid var(--border); }
