/* cinema.css — ชั้นภาพยนตร์ที่หน้ารอง (ask · guide · report) ใช้ร่วมกัน · โหลดหลัง <style> ของหน้า
   ฉากหลัง: แสงอุ่นมุมบนขวา / แสงเย็นมุมล่างซ้าย · ขอบมืด · เกรนฟิล์ม · ฟ้าดาวจาก cinema_sky.js (<canvas id="sky">)
   .kd-rim = กระจกขอบแสงสองโทนแบบหน้าแรก (ไม่ใช้ ::before/::after จึงใส่กับกล่องที่ใช้ pseudo อยู่แล้วได้) */
:root {
  /* TIMELESS — ชุดสีเดียวกับหน้าแรก (static/index.html): เที่ยงคืน · งาช้าง · แชมเปญ · เงินแสงจันทร์ · ตัวหนังสือ ≥ 7:1 */
  --kd-sky: #c3cbdb; --kd-sky-hi: #e3e7ef; --kd-lilac: #c3cbdb; --kd-peach: #e6cf9e; --kd-sun: #d8b878; --kd-gold-hi: #ecd6a6;
  --kd-ease: cubic-bezier(.16,1,.3,1);
  --kd-pane: linear-gradient(180deg, rgba(16,17,26,.7), rgba(8,9,15,.82));
  --kd-rim: linear-gradient(160deg, rgba(241,237,228,.24), rgba(241,237,228,.05) 45%, rgba(216,184,120,.22));
  --kd-lift: inset 0 1px 0 rgba(255,255,255,.06), 0 26px 70px -24px rgba(0,0,0,.85), 0 8px 22px -12px rgba(0,0,0,.55);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(216,184,120,.09), transparent 70%),
    radial-gradient(55% 50% at 0% 100%, rgba(195,203,219,.09), transparent 70%),
    radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.6)); }
html::after { content: ""; position: fixed; inset: -120px; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/180px 180px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { html::after { animation: kd-grain .9s steps(6) infinite; } }
@keyframes kd-grain { 0%{transform:translate(0,0)} 20%{transform:translate(-38px,22px)} 40%{transform:translate(26px,-41px)} 60%{transform:translate(-17px,-23px)} 80%{transform:translate(44px,31px)} 100%{transform:translate(0,0)} }

.kd-rim { border: 1px solid transparent !important; background: var(--kd-pane) padding-box, var(--kd-rim) border-box !important; box-shadow: var(--kd-lift);
  -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35); }
.kd-rim.kd-warm { background: linear-gradient(180deg, rgba(40,28,22,.55), rgba(10,8,16,.84)) padding-box, var(--kd-rim) border-box !important; }

/* ปุ่มหลักโทนอุ่น · โฟกัสคีย์บอร์ดเห็นชัด */
.kd-cta { background: linear-gradient(180deg, rgba(216,184,120,.18), rgba(216,184,120,.07)) padding-box, var(--kd-rim) border-box !important;
  border: 1px solid transparent !important; color: var(--kd-gold-hi) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px -16px rgba(216,184,120,.55) !important; }
.kd-cta:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 44px -16px rgba(216,184,120,.75) !important; }
:where(a, button, [role="button"], textarea, input):focus-visible { outline: 2px solid rgba(216,184,120,.55); outline-offset: 2px; }

/* หัวข้อภาษาไทย: ไม่ยืดระยะตัวอักษรแบบภาษาอังกฤษ (ยืดแล้วสระ/วรรณยุกต์แยกจากพยัญชนะ อ่านยาก) */
.kd-th { font-family: 'Noto Sans Thai Looped', system-ui, sans-serif !important; letter-spacing: .01em !important; text-transform: none !important; }

@media (prefers-reduced-motion: reduce) { html::after { animation: none; } }
