/* ===== โหมดกลางวัน: ส่วนที่บังคับเอง (การแปลงสีอัตโนมัติอยู่ที่ js/66-day-mode.js) ===== */
#dayb{display:inline-flex;align-items:center;justify-content:center;min-width:38px;cursor:pointer}
#dayb svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
html.day{color-scheme:light;background:#f1eee7}
html.day.sr-boot{background:#f1eee7!important}
html.day body{background:#f1eee7!important;color-scheme:light!important}
html.day-sw *,html.day-sw *::before,html.day-sw *::after{transition:none!important}
/* แถบเมนูของเรื่อง + แถบบน: พื้นเดียวกับหน้า */
html.day .subbar{background:rgba(241,238,231,.95)!important;box-shadow:none!important}
html.day .topbar{background:rgba(250,248,244,.97)!important}
/* กล่องที่คงหน้าตากลางคืนทั้งใบ (จอทีวีหน้าแรก) */
html.day .hc,html.day .hc *{color-scheme:dark!important}
html.day .hc::before,html.day .hc::after,html.day .hc *::before,html.day .hc *::after{color-scheme:dark!important}
/* ปุ่มสลับกลางวัน/กลางคืนเพิ่มมาอีกปุ่ม → หน้าแรกให้ช่องค้นหาสั้นลง แถบบนจะได้อยู่แถวเดียว */
@media(min-width:861px) and (max-width:1439px){body[data-pg=home] .topbar{column-gap:7px}.topbar #hq{min-width:108px;flex-basis:108px}.topbar:not(.nav-c) .mnav button{padding-left:8px;padding-right:8px}.topbar #dayb{padding-left:10px;padding-right:10px;min-width:36px}}
html.day .au-lk{color:#8a5a00!important}
/* ปุ่มกระดิ่ง (สีเขียนไว้ใน style="") */
html.day #aiSndBtn{background:#fffefb!important;border-color:rgba(62,46,24,.2)!important;color:#3a332a!important;opacity:.9!important}
html.day .night-isle,html.day .night-isle *{color-scheme:dark!important}
html.day [style*="color:#ff8a80"]{color:#b3261e!important}
/* ป้ายเล็กบนปุ่มแดง */
html.day #p-ai-board [data-bdact="flowall"] .aibh{color-scheme:dark!important}
/* มือถือ: ปุ่มสลับอยู่ข้างปุ่ม "เมนู" */
@media(max-width:640px){html body .topbar #dayb{order:2;flex:none;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;margin:0}}
/* หน้าแรก: โปสเตอร์ + เมนูตัวอย่าง (css/153-home-media.css) — ภาพ/วิดีโอ/หน้าต่างดูเต็มจอ คงโทนมืดเดิม */
html.day .hads{box-shadow:0 10px 28px rgba(60,40,20,.18)}
html.day .hads.empty{border-color:rgba(0,0,0,.18)}
html.day .htabs{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.08)}
html.day .htabs button[aria-selected=true]{color:#1a1009}
html.day .hx-chips button{border-color:rgba(0,0,0,.15)}
html.day .hx-chips button[aria-pressed=true]{background:#1d1d1d;color:#fff}
html.day .hx-c{box-shadow:0 6px 18px rgba(60,40,20,.18)}
html.day .hx-c,html.day .hx-c *,html.day .hxl,html.day .hxl *,html.day .hads,html.day .hads *,html.day .hads *::before{color-scheme:dark!important}
html.day .hx-em{border-color:rgba(0,0,0,.18)}
/* หน้าแรก: การ์ดเรื่อง (css/155-home-strip.css) — ภาพปกคงโทนเดิม · กล่องชื่อเรื่องเป็นการ์ดขาว */
html.day .scard{background:#fff;border-color:rgba(0,0,0,.09);box-shadow:0 4px 14px rgba(60,40,20,.1);color-scheme:light}
html.day .scard .sc-t{color:#1f1a15}
html.day .scard .sc-d{color:#7d7064}
html.day .scard:hover{box-shadow:0 12px 26px rgba(60,40,20,.16);border-color:rgba(245,154,35,.7)}
html.day .scard.sel{border-color:#f59a23;box-shadow:0 0 0 2px #f59a23,0 10px 24px rgba(60,40,20,.14)}
html.day .scard .sc-th,html.day .scard .sc-th *,html.day .scard .sc-th::after,html.day .scard .sc-th *::before{color-scheme:dark!important}
html.day .scard.add{background:transparent;border-color:rgba(210,120,10,.5);box-shadow:none}
html.day .scard.add .sc-th{background:rgba(245,154,35,.1)}
html.day .scard.add .sc-t{color:#b86800}
html.day .ss-nav{background:rgba(255,255,255,.95);color:#222;border-color:rgba(0,0,0,.12);box-shadow:0 6px 18px rgba(0,0,0,.15)}
