/* WO-040 共用教學播放器（設計語言：白底卡片、藍色主色、金額與時間等寬數字） */
.lp-card { background: #fff; border: 1px solid var(--zt-line, #E5E7EB); border-radius: 20px; padding: 20px; box-shadow: 0 18px 40px rgba(17, 24, 39, .08); }
.lp-stage { position: relative; aspect-ratio: 1920 / 1009; overflow: hidden; border-radius: 12px; background: #0F172A; isolation: isolate; }
.lp-camera { position: absolute; inset: 0; will-change: transform; }
.lp-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.lp-shot.on { opacity: 1; }
.lp-focus { position: absolute; border: 3px solid #F59E0B; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .38); opacity: 0; transition: opacity .35s ease, left .45s ease, top .45s ease, width .45s ease, height .45s ease; pointer-events: none; }
.lp-focus.on { opacity: 1; animation: lp-pulse 1.6s ease-in-out infinite; }
@keyframes lp-pulse { 50% { border-color: #FBBF24; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .38), 0 0 0 6px rgba(245, 158, 11, .25); } }
.lp-cursor { position: absolute; width: 26px; height: 26px; margin: -3px 0 0 -3px; z-index: 3; pointer-events: none; transition: transform .12s ease; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1.2L16 21l-3 1.4-3.6-6.9L4 20z' fill='%23111827' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.lp-cursor.press { transform: scale(.82); }
.lp-ripple { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid #2563EB; opacity: 0; pointer-events: none; z-index: 2; }
.lp-ripple.on { animation: lp-ripple .6s ease-out forwards; }
@keyframes lp-ripple { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.lp-tag { position: absolute; transform: translate(-50%, -120%); background: #111827; color: #fff; font-weight: 700; font-size: clamp(12px, 1.1vw, 16px); padding: 6px 12px; border-radius: 999px; white-space: nowrap; z-index: 2; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.lp-caption { margin: 16px 4px 8px; font-size: 22px; font-weight: 900; line-height: 1.4; min-height: 1.4em; color: #111827; }
.lp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.lp-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--zt-line, #E5E7EB); background: #fff; font: inherit; font-weight: 700; color: #111827; cursor: pointer; }
.lp-btn:hover { background: #F3F4F6; }
.lp-btn:focus-visible, .lp-track:focus-visible, .lp-step button:focus-visible { outline: 2px solid #2563EB; outline-offset: 3px; }
.lp-play { width: 44px; padding: 0; background: #2563EB; border-color: #2563EB; position: relative; }
.lp-play:hover { background: #1D4ED8; }
.lp-play::before, .lp-play::after { content: ''; position: absolute; top: 14px; width: 5px; height: 16px; background: #fff; border-radius: 2px; }
.lp-play::before { left: 15px; } .lp-play::after { left: 24px; }
.lp-play.paused::before { left: 17px; width: 0; height: 0; background: none; border-radius: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.lp-play.paused::after { display: none; }
.lp-track { position: relative; flex: 1 1 220px; height: 10px; border-radius: 999px; background: #E5E7EB; cursor: pointer; }
.lp-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #2563EB; }
.lp-mark { position: absolute; top: -3px; width: 2px; height: 16px; background: #fff; border-radius: 1px; box-shadow: 0 0 0 1px #CBD5E1; }
.lp-mark:first-of-type { display: none; }
.lp-time { font-variant-numeric: tabular-nums; color: #4B5563; min-width: 92px; text-align: right; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.lp-step button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: #F9FAFB; font: inherit; color: #374151; cursor: pointer; line-height: 1.5; }
.lp-step.on button { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; font-weight: 700; }
.lp-step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #E5E7EB; font-size: 14px; }
.lp-step.on .lp-step-no { background: #2563EB; color: #fff; }
.lp-note { color: #6B7280; font-size: 14px; margin: 10px 4px 0; }
@media (max-width: 700px) { .lp-card { padding: 12px; border-radius: 16px; } .lp-caption { font-size: 18px; } .lp-btn { padding: 0 12px; } .lp-time { min-width: 0; } .lp-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lp-shot, .lp-focus { transition: none; } .lp-focus.on { animation: none; } }
