:root{font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#233740;background:#f4f6f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}main{max-width:1120px;margin:auto;padding:24px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.player-card{border:1px solid #dde5e5;border-radius:14px;overflow:hidden;background:#fff;position:sticky;top:24px}video{display:block;width:100%;aspect-ratio:16/9;background:#11151b}
#reading-image{display:block;width:100%;height:auto;background:#fff}.notice{padding:48px 24px;text-align:center;color:#63767d;line-height:1.8}
.reading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px;border-top:1px solid #e5ebea}
.reading-ring{width:96px;height:96px;position:relative;flex:none;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#303538;color:#fff;font-variant-numeric:tabular-nums}
.reading-ring svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:4;stroke-linecap:round}.ring-track{stroke:#5c6264}#ring-progress{stroke:#f4df4c}#reading-clock{font-size:35px;font-weight:750;line-height:1}.reading-unit{font-size:11px;margin-left:3px;margin-top:17px;color:#e1e4e5}
.reading button,.play-prompt button{background:#315b6c;border:0;border-radius:8px;padding:11px 17px;color:#fff;font-size:14px;min-height:44px}.play-prompt{padding:14px;text-align:center}
button{font:inherit;cursor:pointer}.questions{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:calc(100dvh - 48px);overflow-y:auto;padding:2px 4px 4px 2px}.question{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;border:1px solid #dfe7e6;background:#fff;border-radius:10px;padding:12px;width:100%;color:#334a54;min-height:50px;font-size:13px;line-height:1.5}
.question:hover{border-color:#799b93;background:#f0f6f3}.question.selected{border-color:#4a8674;background:#e8f3ee;color:#285b4b;font-weight:600}button:focus-visible{outline:3px solid #82b8aa;outline-offset:3px}.question-label{overflow-wrap:anywhere}.unavailable{color:#899793}.question-state{font-size:11px;font-weight:400;white-space:nowrap}
.player-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid #e5ebea;flex:none}.themes{display:flex;gap:6px}.player-toolbar button{border:1px solid #d9e2df;color:inherit;background:transparent;border-radius:7px;padding:7px 13px;min-height:44px;font-size:13px}.themes button[aria-pressed=true]{background:#e8f3ee;color:#285b4b;border-color:#4a8674}.fullscreen-button{display:flex;align-items:center;justify-content:center;gap:7px;margin-left:auto;white-space:nowrap}.fullscreen-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.viewer{position:relative;min-width:0}.play-prompt{position:absolute;bottom:44px;left:0;right:0;padding:14px;text-align:center}
:root[data-theme=dark]{color:#edf1f5;background:#161a20}:root[data-theme=dark] .player-card,:root[data-theme=dark] .question{background:#11151b;border-color:#39434b;color:#edf1f5}:root[data-theme=dark] .question:hover,:root[data-theme=dark] .question.selected{background:#253837;border-color:#7abfa7;color:#edf1f5}:root[data-theme=dark] .reading,:root[data-theme=dark] .themes{border-color:#39434b}:root[data-theme=dark] .notice{color:#bdc9d2}:root[data-theme=dark] #reading-image{background:#11151b}
:root[data-theme=dark] .player-toolbar{border-color:#39434b}:root[data-theme=dark] .player-toolbar button{border-color:#62716f}
[hidden]{display:none!important}
@media(max-width:1000px),(orientation:portrait){main{grid-template-columns:1fr;gap:14px;padding:12px;max-width:900px}.player-card{position:relative;top:auto}.questions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:none;overflow:visible;padding:0}.reading{padding:12px 16px}.reading-ring{width:80px;height:80px}#reading-clock{font-size:30px}.reading button{padding:10px 13px}}
@media(max-width:540px){.questions{grid-template-columns:1fr 1fr}.question{padding:11px 10px;min-height:48px}.player-toolbar{gap:8px;padding:6px 10px}.player-toolbar button{padding:7px 10px}.reading-ring{width:64px;height:64px}#reading-clock{font-size:26px}}
@media(orientation:landscape) and (max-height:600px){main{grid-template-columns:minmax(0,1fr) 210px;gap:12px;max-width:none;padding:8px}.player-card{position:sticky;top:8px}.questions{grid-template-columns:1fr;max-height:calc(100dvh - 16px);overflow:auto}.reading{padding:6px 12px}.reading-ring{width:48px;height:48px}#reading-clock{font-size:22px}.reading-unit{font-size:9px;margin-top:10px}}
:root[data-expanded=true],:root[data-expanded=true] body{overflow:hidden}
:root[data-expanded=true] .questions{display:none}
.player-card[data-expanded=true]{position:fixed;inset:0;top:0;z-index:1000;width:100%;height:100vh;height:100dvh;max-width:none;display:flex;flex-direction:column;border:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.player-card[data-expanded=true] .viewer{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.player-card[data-expanded=true] video,.player-card[data-expanded=true] #reading-image{width:100%;height:100%;min-height:0;object-fit:contain;aspect-ratio:auto}
.player-card[data-expanded=true] .reading{flex:none;padding:6px 16px;gap:12px}.player-card[data-expanded=true] .reading-ring{width:56px;height:56px}.player-card[data-expanded=true] #reading-clock{font-size:24px}.player-card[data-expanded=true] .reading-unit{margin-top:10px;font-size:10px}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}}
