/* EduTaxTuber Listen 1.2 — refined modern player */
.ett-player{--ett-bg:#ffffff;--ett-panel:#f8fbff;--ett-text:#15253d;--ett-muted:#6d7b92;--ett-border:#d9e4f3;--ett-border-strong:#bccce5;--ett-brand:#435ef9;--ett-brand-2:#6a7bff;--ett-brand-soft:rgba(67,94,249,.1);--ett-success:#2e8b57;--ett-highlight:#ffe17c;position:relative;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);border:1px solid var(--ett-border);border-radius:22px;box-shadow:0 14px 36px rgba(23,42,79,.08);margin:22px 0;overflow:hidden;color:var(--ett-text);font-family:inherit}
.ett-theme-dark{--ett-bg:#101726;--ett-panel:#141d31;--ett-text:#f0f5ff;--ett-muted:#adbbd2;--ett-border:#27324a;--ett-border-strong:#33415e;--ett-brand:#6f86ff;--ett-brand-2:#8a9cff;--ett-brand-soft:rgba(111,134,255,.15)}
.ett-progress{height:5px;background:rgba(67,94,249,.08)}
.ett-progress-fill{height:100%;width:0;background:linear-gradient(90deg,var(--ett-brand),var(--ett-brand-2));transition:width .22s ease}
.ett-player-body{padding:18px 20px 16px;background:var(--ett-bg)}
.ett-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.ett-kicker-wrap{display:flex;align-items:center;gap:10px;min-width:0}
.ett-kicker-icon{width:28px;height:28px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--ett-brand-soft);color:var(--ett-brand);font-size:14px;font-weight:700;flex:0 0 auto}
.ett-label{font-size:1.02rem;font-weight:700;letter-spacing:.01em;color:var(--ett-text)}
.ett-clock{font-size:.92rem;font-weight:600;color:var(--ett-muted);white-space:nowrap}
.ett-title{font-size:1.42rem;line-height:1.32;font-weight:800;color:var(--ett-text);margin:0 0 16px;letter-spacing:-.01em}
.ett-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ett-main-controls,.ett-side-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ett-player button{appearance:none;-webkit-appearance:none;border:1px solid var(--ett-border);background:#fff;color:var(--ett-text);border-radius:14px;cursor:pointer;font:inherit;font-weight:700;line-height:1;min-height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease}
.ett-theme-dark .ett-player button,.ett-theme-dark.ett-player button{background:var(--ett-panel)}
.ett-player button:hover{border-color:var(--ett-border-strong);box-shadow:0 10px 22px rgba(67,94,249,.08);transform:translateY(-1px)}
.ett-player button:focus-visible{outline:3px solid rgba(67,94,249,.16);outline-offset:2px}
.ett-skip-back,.ett-skip-forward,.ett-speed,.ett-mute{font-size:.95rem;background:var(--ett-panel)}
.ett-play{width:58px;height:58px;padding:0;border:none;border-radius:50%;background:linear-gradient(135deg,var(--ett-brand),var(--ett-brand-2));color:#fff;box-shadow:0 16px 28px rgba(67,94,249,.28)}
.ett-play:hover{box-shadow:0 18px 30px rgba(67,94,249,.34)}
.ett-play-icon{font-size:1.18rem;position:relative;left:1px}
.ett-follow,.ett-summary-toggle{background:#fff}
.ett-follow{gap:8px;padding:0 14px}
.ett-follow[aria-pressed="false"]{background:var(--ett-panel);color:var(--ett-muted)}
.ett-follow-indicator{font-size:1rem;color:var(--ett-brand)}
.ett-follow[aria-pressed="false"] .ett-follow-indicator{color:var(--ett-muted)}
.ett-summary-toggle{gap:8px;padding:0 15px}
.ett-chevron{font-size:1rem;color:var(--ett-muted)}
.ett-summary{margin-top:14px;padding:14px 15px;border:1px solid var(--ett-border);border-radius:16px;background:linear-gradient(180deg,var(--ett-panel),rgba(255,255,255,.86));color:var(--ett-text);font-size:.98rem;line-height:1.65}
.ett-status{min-height:1.4em;margin-top:12px;font-size:.95rem;font-weight:600;color:var(--ett-muted)}
.ett-footer{margin-top:8px;font-size:.84rem;line-height:1.55;color:var(--ett-muted)}
.ett-player button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}
.ett-read-word{border-radius:4px;transition:background-color .12s ease,box-shadow .12s ease,color .12s ease}
.ett-current-line{background-color:rgba(252,201,72,.14);border-radius:8px;scroll-margin-top:130px}
.ett-current-word{background:var(--ett-highlight)!important;color:#1f2430!important;box-shadow:0 0 0 2px var(--ett-highlight);box-decoration-break:clone;-webkit-box-decoration-break:clone}
@media (max-width:760px){.ett-player{border-radius:18px}.ett-player-body{padding:16px}.ett-title{font-size:1.18rem;margin-bottom:14px}.ett-toolbar{align-items:stretch}.ett-main-controls,.ett-side-actions{width:100%}.ett-main-controls{justify-content:flex-start}.ett-side-actions{justify-content:space-between}.ett-play{width:52px;height:52px}.ett-player button{min-height:42px;padding:0 12px}.ett-follow-label{max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:520px){.ett-topbar{align-items:flex-start;flex-direction:column}.ett-clock{align-self:flex-end}.ett-main-controls{gap:8px}.ett-side-actions{gap:8px;justify-content:flex-start}.ett-skip-back,.ett-skip-forward,.ett-speed,.ett-mute{padding:0 11px;font-size:.9rem}.ett-follow,.ett-summary-toggle{padding:0 12px}}
@media (prefers-reduced-motion:reduce){.ett-progress-fill,.ett-read-word,.ett-player button{transition:none}}

/* v1.3 editorial finish */
.ett-player{--ett-border:#e5eaf5;border-radius:20px;box-shadow:0 10px 40px rgba(18,35,78,.075);max-width:100%;isolation:isolate}
.ett-player-body{padding:22px 24px 19px}.ett-kicker-icon{border-radius:50%;width:34px;height:34px;background:#eef1ff}.ett-kicker-icon:before{content:''}
.ett-live-pill{display:none;align-items:center;gap:7px;color:#435ef9;background:#edf1ff;border-radius:99px;font-size:10px;font-weight:800;padding:7px 10px;letter-spacing:.08em}
.ett-player.ett-is-speaking:not(.ett-is-paused) .ett-live-pill{display:inline-flex}.ett-live-dot{width:7px;height:7px;border-radius:50%;background:#435ef9;box-shadow:0 0 0 3px #dce3ff;animation:ett-pulse 1.7s infinite}
.ett-title{font-size:1.32rem;margin-top:12px;margin-bottom:15px;line-height:1.4}
.ett-wave-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px;background:var(--ett-panel);padding:10px 14px;border-radius:12px}.ett-wave-caption{font-size:11px;font-weight:700;white-space:nowrap;color:var(--ett-muted)}.ett-waveform{height:27px;display:flex;align-items:center;gap:3px;overflow:hidden;flex:1}.ett-waveform i{flex:1 1 3px;max-width:5px;min-width:2px;height:var(--h,28%);background:linear-gradient(0deg,#aebcff,#556dff);border-radius:8px;opacity:.72;transform-origin:center}.ett-waveform i:nth-child(6n+1){--h:35%}.ett-waveform i:nth-child(6n+2){--h:80%}.ett-waveform i:nth-child(6n+3){--h:51%}.ett-waveform i:nth-child(6n+4){--h:98%}.ett-waveform i:nth-child(6n+5){--h:43%}.ett-waveform i:nth-child(6n){--h:64%}.ett-is-speaking:not(.ett-is-paused) .ett-waveform i{animation:ett-wave .85s ease-in-out infinite alternate}.ett-is-speaking .ett-waveform i:nth-child(3n){animation-delay:-.34s}.ett-is-speaking .ett-waveform i:nth-child(4n){animation-delay:-.61s}
.ett-player .ett-play{background:linear-gradient(130deg,#4964f9,#7358e8);border:0;color:#fff;border-radius:50%;box-shadow:0 8px 21px rgba(70,92,246,.28)}.ett-player .ett-play:hover{background:linear-gradient(130deg,#3455ee,#6648dd);color:white}
.ett-player .ett-skip-back,.ett-player .ett-skip-forward,.ett-player .ett-speed,.ett-player .ett-mute,.ett-player .ett-follow,.ett-player .ett-summary-toggle{background:var(--ett-panel);border-color:transparent}.ett-player .ett-speed{color:var(--ett-brand)}.ett-player button{letter-spacing:normal}
.ett-player button.ett-sticky-close{display:none}
.ett-player .ett-summary{border:0;border-left:3px solid var(--ett-brand);border-radius:0 12px 12px 0;padding:18px;background:var(--ett-panel)}
.ett-player .ett-status:empty{display:none}.ett-player .ett-status:not(:empty){padding-top:5px}
.ett-player.ett-is-floating{position:fixed!important;z-index:2147482000;bottom:18px;left:50%;transform:translateX(-50%);width:min(630px,calc(100vw - 24px));margin:0!important;border-radius:16px;box-shadow:0 20px 65px rgba(15,26,58,.25);animation:ett-rise .2s ease-out}
.ett-is-floating .ett-player-body{padding:12px 18px}.ett-is-floating .ett-topbar{margin:0 25px 4px 0}.ett-is-floating .ett-kicker-icon{display:none}.ett-is-floating .ett-label{font-size:12px}.ett-is-floating .ett-live-pill{font-size:9px;padding:4px 7px}.ett-is-floating .ett-title{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 24px 6px 0;font-weight:650}.ett-is-floating .ett-progress{height:4px}.ett-is-floating .ett-toolbar{gap:6px}.ett-is-floating .ett-play{width:36px;height:36px;min-height:36px}.ett-is-floating .ett-main-controls{gap:5px}.ett-is-floating .ett-side-actions,.ett-is-floating .ett-wave-row,.ett-is-floating .ett-footer,.ett-is-floating .ett-status,.ett-is-floating .ett-summary{display:none!important}.ett-is-floating button.ett-sticky-close{display:inline-flex;position:absolute;right:8px;top:8px;border:0;border-radius:50%;min-height:25px;height:25px;width:25px;padding:0;font-size:17px;color:var(--ett-muted);background:transparent}.ett-is-floating .ett-skip-back,.ett-is-floating .ett-skip-forward,.ett-is-floating .ett-speed,.ett-is-floating .ett-mute{min-height:35px;padding:0 10px}
.ett-read-word.ett-current-word{background:#fde587!important;box-shadow:0 0 0 3px #fde587!important;border-radius:2px}.ett-current-line{background-color:rgba(255,220,108,.11)}
@keyframes ett-pulse{50%{box-shadow:0 0 0 5px #e1e6ff}}@keyframes ett-wave{to{transform:scaleY(.4);opacity:.45}}@keyframes ett-rise{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(max-width:620px){.ett-player-body{padding:16px}.ett-title{font-size:1.1rem}.ett-wave-row{padding:7px 10px}.ett-waveform{height:20px}.ett-player .ett-toolbar{gap:9px}.ett-player .ett-main-controls{width:100%;justify-content:center}.ett-player .ett-side-actions{width:100%;justify-content:space-between}.ett-is-floating .ett-main-controls{justify-content:flex-start}.ett-is-floating .ett-clock{font-size:11px}.ett-is-floating .ett-topbar{flex-direction:row}.ett-is-floating .ett-side-actions{display:none}}
@media(prefers-reduced-motion:reduce){.ett-live-dot,.ett-waveform i,.ett-is-floating{animation:none!important}}

/* Version 1.4: responsive voice selection */
.ett-voice-controls{display:flex;align-items:center;gap:8px;min-width:0}
.ett-voice-label{font-size:.85rem;font-weight:700;color:var(--ett-muted)}
.ett-voice-select{max-width:220px;min-width:140px;height:43px;border:1px solid var(--ett-border);border-radius:12px;padding:0 28px 0 12px;background:var(--ett-bg);color:var(--ett-text);font:inherit;font-size:.88rem;cursor:pointer}
.ett-voice-select:focus-visible{outline:3px solid rgba(67,94,249,.2);outline-offset:2px}
@media(max-width:620px){.ett-voice-controls{width:100%}.ett-voice-select{flex:1;max-width:100%;min-width:0}}
