/* STON — Cinematic Interactive Kiosk theme (customer pages).
   Layered on top of ston.css. "โรงภาพยนตร์แห่งความรู้": night-purple hall, neon edges, gold tickets. */
body.cinema {
  --obsidian: #0d0a1f;
  --obsidian-2: rgba(30, 20, 66, 0.72);
  --obsidian-3: rgba(46, 30, 96, 0.8);
  --forest: #3b2a7a;
  --forest-2: #5b3fd0;
  --ivory: #f3eefc;
  --ivory-dim: #c9bfe6;
  --ivory-mute: #9a8fc0;
  --gold: #ffc94a;
  --gold-2: #ffe08a;
  --neon: #b56cff;
  --neon-2: #7c4dff;
  --line: rgba(190, 150, 255, 0.22);
  --glow: 0 0 0 1px rgba(190, 150, 255, 0.35), 0 0 24px rgba(150, 90, 255, 0.35);
  --glow-gold: 0 0 0 1px rgba(255, 201, 74, 0.7), 0 0 28px rgba(255, 190, 60, 0.45);
  background: radial-gradient(ellipse at 50% -10%, #3a1f8f 0%, #170d3d 45%, #0b0819 100%) fixed;
  color: var(--ivory);
}

/* animated background layers */
.cine-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.cine-bg canvas { width: 100%; height: 100%; display: block; }
.cine-bg .orb { position: absolute; border-radius: 50%; animation: cine-drift 26s ease-in-out infinite alternate; }
.cine-bg .orb.a { width: 70vw; height: 70vw; left: -25vw; top: -25vw; background: radial-gradient(circle, rgba(106, 44, 255, 0.55), rgba(106, 44, 255, 0) 65%); }
.cine-bg .orb.b { width: 60vw; height: 60vw; right: -22vw; top: 10vh; background: radial-gradient(circle, rgba(192, 60, 255, 0.42), rgba(192, 60, 255, 0) 65%); animation-duration: 32s; }
.cine-bg .orb.c { width: 50vw; height: 50vw; left: 25vw; bottom: -25vw; background: radial-gradient(circle, rgba(255, 159, 46, 0.22), rgba(255, 159, 46, 0) 65%); animation-duration: 38s; }
.cine-bg .rays { position: absolute; inset: -20% -10% auto; height: 70vh; background: conic-gradient(from 180deg at 50% 0%, transparent 0 40%, rgba(255, 220, 140, 0.09) 44%, transparent 47%, rgba(200, 140, 255, 0.08) 52%, transparent 55%, rgba(255, 220, 140, 0.07) 59%, transparent 62% 100%); animation: cine-sweep 14s ease-in-out infinite alternate; }
@keyframes cine-drift { to { transform: translate(6vw, 4vh) scale(1.12); } }
@keyframes cine-sweep { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .cine-bg .orb, .cine-bg .rays { animation: none; } }

/* header as theatre marquee */
body.cinema .site-header { background: rgba(13, 8, 35, 0.78); border-bottom: 1px solid var(--line); box-shadow: 0 6px 30px rgba(80, 30, 180, 0.25); }
body.cinema .brand { color: var(--gold); text-shadow: 0 0 14px rgba(255, 201, 74, 0.5); }
body.cinema .nav a { color: var(--ivory-dim); }
body.cinema .nav a:hover, body.cinema .nav a[aria-current="page"] { color: var(--gold); }
body.cinema .nav a.btn, body.cinema .nav a.btn:hover { color: #2a1600; }
@media (max-width: 760px) { body.cinema .nav { background: #160d3a; } }
body.cinema .env-banner { background: linear-gradient(90deg, #4a2bb3, #7a2fd6); }

/* glass panels */
body.cinema .card, .glass {
  background: linear-gradient(160deg, rgba(60, 38, 140, 0.55), rgba(24, 14, 60, 0.75));
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--glow); backdrop-filter: blur(8px);
}
body.cinema .card.forest { background: linear-gradient(160deg, rgba(110, 60, 230, 0.6), rgba(40, 20, 100, 0.8)); }
body.cinema .notice { background: rgba(255, 201, 74, 0.08); border-color: rgba(255, 201, 74, 0.45); border-radius: 14px; }
body.cinema .notice.warn { background: rgba(255, 120, 120, 0.08); border-color: rgba(255, 140, 140, 0.5); }
body.cinema section.block { border-bottom: none; }

/* buttons: gold kiosk keys */
body.cinema .btn {
  background: linear-gradient(180deg, #ffe08a, #ffb72e); border: 0; color: #2a1600; box-shadow: var(--glow-gold);
  border-radius: 999px; transition: transform 0.15s, box-shadow 0.15s;
}
body.cinema .btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 220, 120, 0.9), 0 0 38px rgba(255, 190, 60, 0.6); color: #2a1600; }
body.cinema .btn.ghost { background: rgba(120, 70, 255, 0.18); color: var(--ivory); box-shadow: var(--glow); }
body.cinema .btn.ghost:hover { background: rgba(140, 90, 255, 0.32); color: #fff; }
body.cinema .btn.neon { background: linear-gradient(180deg, #8a5cff, #5a2fe0); color: #fff; box-shadow: 0 0 0 1px rgba(200, 160, 255, 0.7), 0 0 30px rgba(140, 80, 255, 0.55); }
body.cinema .badge { border-color: var(--line); color: var(--ivory-dim); }
body.cinema .badge.gold { color: var(--gold); border-color: rgba(255, 201, 74, 0.6); }
body.cinema .badge.ok { color: #9ff0c0; border-color: rgba(120, 230, 170, 0.5); }
body.cinema .price { color: var(--gold); text-shadow: 0 0 22px rgba(255, 190, 60, 0.45); }
body.cinema .eyebrow { color: var(--gold); }
body.cinema input, body.cinema textarea, body.cinema select { background: rgba(10, 6, 30, 0.7); border-color: var(--line); border-radius: 12px; }

/* kiosk hero */
.kiosk-hero { position: relative; padding: 70px 0 60px; text-align: center; }
.kiosk-frame { max-width: 980px; margin: 0 auto; padding: 46px 28px 40px; border-radius: 28px; position: relative;
  background: linear-gradient(180deg, rgba(40, 18, 100, 0.55), rgba(16, 8, 44, 0.75)); border: 1px solid rgba(200, 150, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 201, 74, 0.15) inset, 0 0 60px rgba(130, 70, 255, 0.35); }
.kiosk-frame::before { content: ""; position: absolute; inset: 10px; border-radius: 22px; border: 1px dashed rgba(255, 201, 74, 0.22); pointer-events: none; }
.marquee-bulbs { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.marquee-bulbs i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: bulb 1.6s infinite; }
.marquee-bulbs i:nth-child(even) { animation-delay: 0.8s; }
@keyframes bulb { 50% { opacity: 0.25; box-shadow: none; } }
.kiosk-hero .now { font-size: 14px; letter-spacing: 0.4em; color: var(--gold); }
.kiosk-hero h1 { font-family: var(--font-latin-display); letter-spacing: 0.3em; font-size: clamp(52px, 11vw, 112px); margin: 10px 0 0; padding-left: 0.3em; color: #fff;
  text-shadow: 0 0 18px rgba(200, 150, 255, 0.8), 0 0 46px rgba(130, 70, 255, 0.6); font-weight: 400; }
.kiosk-hero .sub { font-family: var(--font-latin-display); letter-spacing: 0.4em; color: var(--gold); margin: 6px 0 18px; }
.kiosk-hero .hall-title { font-size: clamp(22px, 3.4vw, 34px); margin: 6px 0; color: var(--gold-2); text-shadow: 0 0 18px rgba(255, 200, 80, 0.45); }
.kiosk-hero .thesis { font-size: clamp(17px, 2.4vw, 21px); color: var(--ivory-dim); margin: 0 0 28px; }
.kiosk-hero .btn { font-size: 20px; padding: 16px 34px; }

/* journey strip */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 26px auto 0; max-width: 980px; }
.journey .step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(30, 18, 72, 0.6); border: 1px solid var(--line); font-size: 14px; color: var(--ivory-dim); }
.journey .step b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 201, 74, 0.15); color: var(--gold); font-size: 13px; flex: none; }
.journey .step.on { border-color: rgba(255, 201, 74, 0.7); color: #fff; box-shadow: var(--glow-gold); }
.journey .step.on b { background: var(--gold); color: #2a1600; }
.journey .step.done b { background: #6fdc9f; color: #062; }
@media (max-width: 760px) { .journey { grid-template-columns: repeat(5, 1fr); } .journey .step span { display: none; } .journey .step { justify-content: center; } }

/* section heading with number badge (like the reference board) */
.cine-h { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.cine-h .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #3a1a90; font-weight: 700; box-shadow: 0 0 16px rgba(200, 160, 255, 0.7); flex: none; }
.cine-h h2 { margin: 0; }

/* halls (entry zones) */
.halls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
@media (min-width: 1100px) { .halls { grid-template-columns: repeat(7, 1fr); } }
.hall { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 12px; border-radius: 18px; text-decoration: none; color: var(--ivory);
  background: linear-gradient(160deg, rgba(70, 40, 160, 0.55), rgba(24, 12, 60, 0.8)); border: 1px solid var(--line); box-shadow: var(--glow); transition: transform 0.15s, box-shadow 0.15s; text-align: center; }
.hall:hover, .hall:focus-visible, .hall.on { transform: translateY(-3px); box-shadow: var(--glow-gold); border-color: rgba(255, 201, 74, 0.8); color: #fff; }
.hall .ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 10px rgba(255, 200, 90, 0.6)); }
.hall .t { font-weight: 600; }
.hall .d { font-size: 13px; color: var(--ivory-dim); }

/* now-showing poster rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 16px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 8px; } .rail::-webkit-scrollbar-thumb { background: rgba(190, 150, 255, 0.35); border-radius: 9px; }
.poster { scroll-snap-align: start; position: relative; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 190, 80, 0.55), transparent 55%), linear-gradient(170deg, #4b24b8, #170a3f 75%);
  border: 1px solid rgba(255, 201, 74, 0.35); box-shadow: var(--glow); transition: transform 0.2s, box-shadow 0.2s; }
.poster:nth-child(3n+2) { background: radial-gradient(circle at 50% 30%, rgba(140, 220, 255, 0.45), transparent 55%), linear-gradient(170deg, #2a3fb8, #0c0f3f 75%); }
.poster:nth-child(3n) { background: radial-gradient(circle at 50% 30%, rgba(255, 120, 200, 0.45), transparent 55%), linear-gradient(170deg, #7a2bb8, #1d0a3f 75%); }
.poster:hover, .poster:focus-visible { transform: translateY(-4px) scale(1.02); box-shadow: var(--glow-gold); }
.poster .no { position: absolute; top: 12px; left: 14px; color: var(--gold); font-size: 14px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.poster .lock { position: absolute; top: 10px; right: 12px; }
.poster .pt { font-size: 18px; font-weight: 600; line-height: 1.45; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.poster .pq { font-size: 13px; color: var(--ivory-dim); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.poster.book { aspect-ratio: 2 / 3; padding: 0; }
.poster.book img { width: 100%; height: 100%; object-fit: cover; }

/* book detail (movie detail) */
.feature { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 34px; align-items: center; }
.feature .cover { border-radius: 16px; overflow: hidden; box-shadow: var(--glow-gold); border: 1px solid rgba(255, 201, 74, 0.5); }
.feature .cover img { display: block; width: 100%; }
.checks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1600; font-size: 13px; font-weight: 700; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature .cover { max-width: 260px; margin: 0 auto; } }

/* ticket */
.ticket { position: relative; display: grid; grid-template-columns: 1fr 170px; border-radius: 20px; overflow: hidden; box-shadow: var(--glow-gold);
  background: linear-gradient(120deg, #2b1670, #1a0c46); border: 1px solid rgba(255, 201, 74, 0.6); }
.ticket .main { padding: 24px 26px; }
.ticket .stub { padding: 24px 18px; border-left: 2px dashed rgba(255, 201, 74, 0.55); background: rgba(255, 201, 74, 0.07); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 159px; width: 22px; height: 22px; border-radius: 50%; background: #120a30; }
.ticket::before { top: -11px; } .ticket::after { bottom: -11px; }
.ticket .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(190, 150, 255, 0.25); font-size: 15px; }
.ticket .row:last-child { border-bottom: 0; }
.ticket .label { color: var(--ivory-mute); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.ticket .big { font-family: var(--font-latin-display); font-size: 40px; color: var(--gold); line-height: 1; }
.barcode { width: 120px; height: 46px; background: repeating-linear-gradient(90deg, #f3eefc 0 2px, transparent 2px 4px, #f3eefc 4px 5px, transparent 5px 8px); opacity: 0.85; border-radius: 3px; }
@media (max-width: 640px) { .ticket { grid-template-columns: 1fr; } .ticket .stub { border-left: 0; border-top: 2px dashed rgba(255, 201, 74, 0.55); } .ticket::before, .ticket::after { display: none; } }

/* payment method tiles */
.pay-methods { display: grid; gap: 10px; margin: 14px 0; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(30, 18, 72, 0.7); border: 1px solid var(--line); }
.pay-method.on { border-color: rgba(255, 201, 74, 0.8); box-shadow: var(--glow-gold); }
.pay-method .pm-ico { font-size: 22px; width: 34px; text-align: center; }
.pay-method .pm-sub { font-size: 13px; color: var(--ivory-mute); }

/* success celebration */
.celebrate { position: relative; text-align: center; padding: 30px 0; }
.celebrate .ring { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 60px; color: #2a1600;
  background: radial-gradient(circle, #ffe08a, #ffb72e); box-shadow: 0 0 0 8px rgba(255, 201, 74, 0.18), 0 0 60px rgba(255, 190, 60, 0.6); animation: pop 0.6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* library shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.shelf .poster { aspect-ratio: 2 / 3; }

/* reader in cinema mode keeps calm reading surface */
body.cinema .reader article { color: #f1ecfb; }
body.cinema .reader-tools { background: rgba(16, 9, 42, 0.95); }
body.cinema .panel { background: #170d3d; }
body.cinema .progress-bar { background: linear-gradient(90deg, var(--neon), var(--gold)); height: 3px; }
body.cinema .kmap span, body.cinema .kmap a { background: #241a4f; }
body.cinema .kmap .available { background: #5b3fd0; }
body.cinema .kmap .read { background: var(--gold); }
body.cinema .kmap .saved { background: #f3eefc; }
body.cinema .kpi { background: rgba(30, 18, 72, 0.7); border-color: var(--line); border-radius: 16px; }
body.cinema .toc li { border-bottom-color: rgba(190, 150, 255, 0.18); }
body.cinema .site-footer { border-top: 1px solid var(--line); background: rgba(10, 6, 28, 0.6); }
body.cinema .question-list li { border-left-color: var(--gold); }
.feature .cover img, .poster.book img { height: auto; aspect-ratio: 2 / 3; }
.eyebrow .th, .now .th { letter-spacing: 0.02em; }
