/* thai3.docx.ee (listen.html), on top of app.css */
body.hasp{padding-bottom:calc(168px + env(safe-area-inset-bottom))}
.hero{background:linear-gradient(135deg,#CCFBF1,#FEF3C7);border-radius:26px;padding:20px 18px;margin-bottom:6px}.hero h1{font-size:30px}.hero p{margin:.4em 0 .9em;color:#334155}
.cont{width:100%;font-size:18px;padding:14px 16px;border-radius:18px}
.stg{font-size:19px;margin:22px 0 10px;display:flex;align-items:baseline;gap:8px}.stg span{font:600 12px FR;color:#fff;background:#0F766E;border-radius:999px;padding:3px 9px;text-transform:uppercase;letter-spacing:.5px}
.gcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.gcard{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border-radius:18px;padding:10px 12px;box-shadow:inset 0 0 0 2px var(--line);min-height:64px;width:100%}
.gcard.now{box-shadow:inset 0 0 0 3px #14B8A6;background:#F0FDFA}.ge{font-size:30px;line-height:1}.gt{display:grid;flex:1}.gt b{font-size:16.5px;color:var(--deep)}.gt small{font:500 13.5px RO;color:var(--soft)}
.gn{font:700 13px RO;color:#0F766E;background:#CCFBF1;border-radius:999px;padding:2px 8px}
.foot{color:var(--soft);font-size:14.5px;margin-top:24px}
.gh{display:flex;align-items:center;gap:10px;margin-bottom:6px}.gh h1{font-size:25px}.gh small{color:var(--soft);font-size:13.5px}.gh .ge{font-size:38px}
.back{width:44px;height:44px;padding:0;font-size:28px;border-radius:50%;flex:none}
.intro{background:#FEF9C3;border-radius:16px;padding:10px 14px;margin:8px 0}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.tg{display:flex;gap:12px;font-size:14px;color:var(--soft)}.tg input{width:18px;height:18px;vertical-align:-3px;accent-color:#0F766E}
.plist{display:grid;gap:10px;margin-top:12px}
.pcard{background:#fff;border-radius:20px;padding:12px 14px;box-shadow:inset 0 0 0 2px var(--line);display:grid;gap:4px;scroll-margin:90px 0 180px;transition:box-shadow .2s,background .2s}
.pcard.now{box-shadow:inset 0 0 0 3px #14B8A6;background:#F0FDFA}
.pen{font-size:15.5px;color:#334155}.prow{display:flex;align-items:center;gap:6px}
.pth{font:600 clamp(24px,6.8vw,30px)/1.65 TL;color:var(--deep);background:none;box-shadow:none;padding:0 2px;text-align:left;min-height:0;flex:1;justify-content:flex-start}.pth.on{color:#0F766E}
.ib{width:40px;height:40px;padding:0;border-radius:50%;font-size:18px;flex:none;min-height:0}.ib.st{color:#CA8A04;font-size:22px}.ib.st.on{background:#FEF3C7}
.pro{font-size:16px;line-height:1.4}.pro .ro b{font-weight:750}
.pws{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.wc{display:grid;justify-items:center;gap:0;padding:2px 8px 4px;min-height:0;border-radius:12px;background:#F8FAFC;box-shadow:inset 0 0 0 1.5px var(--line);font:inherit}
.wc .th{font-size:19px;color:var(--deep);line-height:1.6}.wc small{font:500 11.5px/1.2 RO;color:var(--soft);max-width:110px;text-align:center}
.nogl .pws{display:none}.norom .pro{display:none}
.note{margin:4px 0 0;font-size:14px;color:#713F12;background:#FEFCE8;border-radius:10px;padding:5px 10px}
.here{justify-self:start;font-size:13px;padding:4px 10px;min-height:0;border-radius:999px;color:#0F766E;background:#F0FDFA;box-shadow:none;margin-top:2px}
.nxt{width:100%;margin-top:16px;padding:14px}
.wgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.pcard.wi{justify-items:center;text-align:center;padding:10px 8px}.wi .we{font-size:28px;line-height:1.1}.wi .pth{flex:none;text-align:center;font-size:26px}.wi .pen{font-size:14px}
.empty{color:var(--soft);text-align:center;margin-top:40px}
/* player */
#player{position:fixed;left:0;right:0;bottom:calc(67px + env(safe-area-inset-bottom));z-index:6;background:#134E4A;color:#fff;padding:8px 10px 8px;display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:center;box-shadow:0 -6px 20px #0002}
#player[hidden]{display:none}
#pb{grid-column:1/-1;height:4px;background:#ffffff33;border-radius:2px;overflow:hidden;margin:-2px 0 2px}#pb i{display:block;height:100%;background:#FBBF24;width:0}
#player .pt{display:flex;align-items:center;gap:8px;background:none;box-shadow:none;color:#fff;padding:0;min-height:0;text-align:left;min-width:0;justify-content:flex-start}
#player .pt>span:last-child{display:grid;min-width:0}#player .pt b{color:#fff;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#player .pt .th{font-size:17px;color:#99F6E4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
#player .pe{font-size:26px}
.pc3{display:flex;gap:4px;align-items:center}.pc3 button{width:40px;height:40px;padding:0;min-height:0;border-radius:50%;background:#ffffff1f;box-shadow:none;color:#fff;font-size:16px}
.pc3 .big{width:48px;height:48px;background:#FBBF24;color:#1E1B4B;font-size:20px}.pc3 .sm{font:700 12.5px RO;width:42px}
@media(max-width:420px){#player{grid-template-columns:1fr}.pc3{justify-content:center}}
/* word pop-up */
#pop>div.wpop{max-width:560px;justify-items:stretch;text-align:left}
.wpth{font:600 40px/1.6 TL;color:var(--deep)}.wpen{margin:0;font-size:17px;color:#334155}
.syls{display:flex;flex-wrap:wrap;gap:8px}
.syl{display:grid;justify-items:center;gap:2px;background:#fff;border-radius:16px;padding:8px 10px;box-shadow:inset 0 0 0 2px var(--line);min-width:92px}
.syl .th{font-size:34px;line-height:1.75}.syl .sr{font-size:18px}.syl small{font-size:12px;color:var(--soft);text-align:center;max-width:120px;line-height:1.25}.syl .tn{font:700 12.5px RO}
.t-mid{color:var(--mid)}.t-low{color:var(--low)}.t-fall{color:var(--fall)}.t-high{color:var(--high)}.t-rise{color:var(--rise)}
.syl .ce{display:inline;padding:.02em .06em;border-radius:.2em}
.key{font-size:12.5px;color:var(--soft);margin:0}.key .ce{display:inline;padding:0 .2em;border-radius:5px}
.sint{color:var(--soft)}
.tg label{display:inline-flex!important;align-items:center;gap:6px;margin:0;font-size:14px;white-space:nowrap}
