/* app/css/podcast.css — /podcast พอดแคสต์ธรรมบท · สีตาม design.md (คราม · คัสตาร์ด · กระดาษ) */
[v-cloak] { display: none !important; }
.pc-page { --ind: #4f46e5; --ind-d: #312e81; --ind-s: #eef2ff; --navy: #10275f; --cus: #f5bf45; --cus-s: #fff6d8;
	--ink: #172033; --mut: #566174; --line: #e2e8f0; --paper: #fffdf8; --card: #ffffff; --page: #f8fafc;
	background: var(--page); color: var(--ink); }
html[data-ui="dark"] .pc-page { --ind-s: rgba(129, 140, 248, .16); --ink: #e7eaf3; --mut: #a3acc0; --line: rgba(255, 255, 255, .1);
	--card: #161c2e; --page: #0e1322; --paper: #161c2e; }
.pc-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ป้ายใหญ่ */
.pc-hero { color: #fff; overflow: hidden; position: relative; isolation: isolate;
	background: radial-gradient(90% 120% at 20% 0%, #1b2a6e 0%, #0f1f55 45%, #0b1b45 100%); }
/* ฉากสามเณรเล่านิทานใต้ต้นโพธิ์ยามค่ำ (bin/gen-podcast-cover.py hero) ชิดขวา ขอบซ้ายจางเข้าพื้น — ไม่มีรอยต่อ */
.pc-hero::before { content: ""; position: absolute; z-index: -1; top: -6%; right: 0; bottom: -6%; aspect-ratio: 3 / 2;
	background: var(--pc-hero-img) right center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 46%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 46%); }
.pc-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1100px; align-items: center; padding-top: 56px; padding-bottom: 60px; min-height: 380px; }
.pc-hero-copy { max-width: 560px; text-shadow: 0 2px 14px rgba(4, 10, 32, .45); }
.pc-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: .86rem; color: var(--cus); letter-spacing: .01em; }
.pc-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 10px 0 14px; }
.pc-title span { display: block; color: var(--cus); }
.pc-lead { font-size: 1.06rem; line-height: 1.7; color: rgba(255, 255, 255, .86); max-width: 34em; }
.pc-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.pc-facts b { color: #fff; font-size: 1.15rem; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pc-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 800; font-size: .95rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.pc-btn-pri { background: var(--cus); color: #2b1d00; }
.pc-btn-pri:hover { filter: brightness(1.05); }
.pc-btn-soft { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.pc-btn-soft:hover { background: rgba(255, 255, 255, .18); }
.pc-btn:focus-visible, .pc-ep-head:focus-visible, .pc-chapters button:focus-visible, .pc-chip:focus-visible { outline: 3px solid var(--cus); outline-offset: 2px; }


/* แถบภาค */
.pc-chipbar { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pc-chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.pc-chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; border: 1px solid var(--line); background: var(--card); color: var(--ink);
	border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .88rem; text-decoration: none; }
.pc-chip span { color: var(--ind); font-weight: 800; }
.pc-chip:hover { border-color: #a5b4fc; }

.pc-body { padding-top: 24px; padding-bottom: 56px; }
.pc-book { margin-bottom: 30px; scroll-margin-top: 70px; }
.pc-book-h { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pc-book-h img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.pc-book-h h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.pc-book-h p { font-size: .86rem; color: var(--mut); font-weight: 600; }

/* ตอน */
.pc-ep { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; overflow: hidden; scroll-margin-top: 70px; transition: border-color .15s, box-shadow .15s; }
.pc-ep.open { border-color: #a5b4fc; box-shadow: 0 10px 28px rgba(49, 46, 129, .12); }
.pc-ep-head { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
.pc-ep-head:hover { background: color-mix(in srgb, var(--ind-s) 55%, transparent); }
.pc-ep-cover { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--ind-s); }
.pc-ep-meta { display: flex; flex-direction: column; min-width: 0; }
.pc-ep-no { font-size: .78rem; font-weight: 800; color: var(--ind); }
html[data-ui="dark"] .pc-ep-no { color: #a5b4fc; }
.pc-ep-title { font-size: 1.08rem; font-weight: 800; line-height: 1.35; margin-top: 1px; }
.pc-ep-sub { font-size: .82rem; color: var(--mut); font-weight: 600; margin-top: 2px; }
.pc-ep-play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ind); color: #fff; font-size: .95rem; }
.pc-ep.open .pc-ep-play { background: var(--ind-s); color: var(--ind); }
html[data-ui="dark"] .pc-ep.open .pc-ep-play { color: #c7d2fe; }
.pc-ep-play .fa-play { margin-left: 3px; }

.pc-ep-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.pc-part { margin-top: 12px; }
.pc-part-h { font-weight: 800; font-size: .92rem; margin-bottom: 6px; }
.pc-part-h span { color: var(--mut); font-weight: 600; margin-left: 6px; font-size: .84rem; }
.pc-part audio { width: 100%; display: block; }
.pc-chapters { columns: 2; column-gap: 10px; margin-top: 10px; }   /* อ่านลงทีละคอลัมน์ = เรียงตามเวลา */
.pc-chapters li { break-inside: avoid; margin-bottom: 2px; }
.pc-chapters button { width: 100%; display: flex; gap: 10px; align-items: baseline; text-align: left; padding: 6px 9px; border-radius: 10px; font-size: .92rem; background: none; border: 0; color: inherit; cursor: pointer; }
.pc-chapters button:hover { background: var(--ind-s); }
.pc-chapters .t { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ind); min-width: 3.2em; font-size: .82rem; }
html[data-ui="dark"] .pc-chapters .t { color: #a5b4fc; }
.pc-chapters .nm { font-weight: 600; }
.pc-chapters button.on { background: var(--ind); color: #fff; }
.pc-chapters button.on .t { color: var(--cus); }
.pc-ep-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .9rem; font-weight: 700; }
.pc-ep-links a, .pc-ep-links button { color: var(--ind); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: #c7d2fe; text-underline-offset: 3px; }
html[data-ui="dark"] .pc-ep-links a, html[data-ui="dark"] .pc-ep-links button { color: #a5b4fc; }

.pc-empty { text-align: center; background: var(--card); border: 1px dashed #c7d2fe; border-radius: 20px; padding: 42px 20px; }
.pc-empty > i { font-size: 2.4rem; color: var(--ind); }
.pc-empty h2 { font-size: 1.3rem; font-weight: 800; margin: 10px 0 6px; }
.pc-empty p { color: var(--mut); max-width: 30em; margin: 0 auto 16px; line-height: 1.6; }
.pc-empty .pc-btn-soft { background: var(--ind-s); color: var(--ind-d); border-color: #c7d2fe; }
.pc-note { font-size: .84rem; color: var(--mut); line-height: 1.6; margin-top: 18px; }

@media (max-width: 760px) {
	.pc-hero-in { padding-top: 28px; padding-bottom: 230px; min-height: 0; }
	/* จอแคบ: ข้อความบน ฉากเต็มด้านล่าง (สามเณร + ไมค์) */
	.pc-hero::before { top: auto; bottom: 0; left: 0; right: 0; height: 300px; aspect-ratio: auto; background-position: 78% 100%;
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 45%);
		mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 45%); }
	.pc-chapters { columns: 1; }
	.pc-ep-head { grid-template-columns: 52px 1fr auto; gap: 12px; padding: 10px 12px; }
	.pc-ep-cover { width: 52px; height: 52px; border-radius: 12px; }
	.pc-ep-play { width: 40px; height: 40px; }
	.pc-ep-body { padding: 2px 12px 14px; }
}
