/* Finished-video library, in the established My Plan V3 account style. */
.video-library{max-width:760px;margin:0 auto;color:var(--ink)}
.video-library [hidden],.library-dialog [hidden]{display:none!important}
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.library-heading h1{font-size:32px;line-height:1.2;letter-spacing:-.035em;font-weight:650;margin:0}
.library-heading p{font-size:14px;line-height:1.6;color:#606b77;margin-top:8px}
.video-library .button,.library-dialog .button{font-size:14px;line-height:1.4;min-height:46px;border-radius:10px;padding:12px 19px;font-weight:500;letter-spacing:0}
.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.library-card{border:1px solid #e1e5e9;border-radius:16px;overflow:hidden;min-width:0;background:#fff}
.library-cover{position:relative;display:grid;place-items:center;width:100%;height:164px;background:#f5f7fa;border:0;border-bottom:1px solid #e8ecf0;border-radius:0;color:#788ba5;transition:background-color 150ms ease-out}
.library-cover>svg{width:44px;height:44px;stroke:currentColor;stroke-width:1.2}
.library-play{position:absolute;right:16px;bottom:14px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #d9e1eb;border-radius:50%;background:#fff;color:var(--blue)}
.library-play svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.5}
.library-cover:hover{background:#edf2fa}
.library-card-body{padding:20px 21px 16px}
.library-card h2{font-size:17px;line-height:1.45;letter-spacing:-.015em;font-weight:600;overflow-wrap:anywhere;margin:0}
.library-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.6;color:#606b77;margin:7px 0 17px;font-variant-numeric:tabular-nums}
.library-actions{display:flex;align-items:center;gap:24px}
.library-actions a,.library-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:500;line-height:1.5;min-height:40px;background:none;border:0;padding:0;color:#2455b8;text-decoration:none}
.library-actions svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5}
.library-actions a:hover,.library-actions button:hover{text-decoration:underline;text-underline-offset:4px}
.library-more{text-align:center;margin-top:26px}
.library-more .error-text{font-size:13px;margin-bottom:12px}
.library-empty{text-align:center;padding:70px 18px 54px}
.library-empty>svg{width:44px;height:44px;stroke:#788ba5;stroke-width:1.2;margin-bottom:22px}
.library-empty h2{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.025em;margin:0}
.library-empty p{font-size:14px;line-height:1.6;color:#606b77;margin:10px 0 24px}
.library-dialog{position:fixed;inset:0;margin:auto;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #e1e5e9;border-radius:16px;background:#fff;color:var(--ink);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bac2cc #fff}
.library-dialog::backdrop{background:rgba(23,29,36,.45)}
.library-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}
.library-dialog h2{font-size:19px;line-height:1.4;font-weight:600;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.library-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;margin:-6px -6px -6px 0;padding:10px;border:0;border-radius:9px;background:transparent;color:#5d6773}
.library-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.library-close:hover{background:#f2f4f7}
#library-player{display:grid;place-items:center;background:#11151a;border-radius:10px;overflow:hidden;min-height:180px}
#library-player video{display:block;width:100%;max-height:calc(100dvh - 220px);aspect-ratio:9/16;object-fit:contain;background:#11151a}
.library-dialog-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}
.library-dialog .error-text{font-size:13px;line-height:1.6;margin-top:12px}
.video-library button:focus-visible,.video-library a:focus-visible,.library-dialog button:focus-visible,.library-dialog a:focus-visible{outline:3px solid #709bfa;outline-offset:3px}
.video-library ::selection,.library-dialog ::selection{background:#dfeaff;color:#182b4a}
@media(max-width:600px){.library-heading{align-items:flex-start;flex-wrap:wrap;gap:18px;margin-bottom:24px}.library-heading h1{font-size:28px}.library-grid{grid-template-columns:minmax(0,1fr);gap:18px}.library-cover{height:154px}.library-card-body{padding:18px 20px 14px}.library-dialog{width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:18px}.library-empty{padding-top:52px}.library-dialog .button{width:100%}}
@media(prefers-reduced-motion:reduce){.library-cover{transition:none}}
