/* Visual debugging library */
.animation-library { padding: 88px 0 74px; background: #fbfcff; color: #203858; }
.animation-library [hidden] { display: none !important; }
.animation-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.animation-heading > div:first-child { max-width: 720px; }
.animation-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #5575a6; font: 700 10px var(--font-primary); letter-spacing: .14em; }
.animation-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #7597cf; box-shadow: 0 0 0 5px #e0eafa; }
.animation-heading h2 { margin: 0; color: #182f50; font: 700 clamp(32px, 3.6vw, 46px)/1.15 var(--font-primary); letter-spacing: -.045em; }
.animation-heading h2 em { color: #486c9f; font-family: Georgia, serif; font-weight: 400; }
.animation-heading > div:first-child > p:last-child { max-width: 610px; margin: 15px 0 0; color: #71839a; font-size: 14px; line-height: 1.7; }
.animation-heading-note { display: flex; align-items: center; gap: 12px; flex: none; padding: 13px 16px; border: 1px solid #e0e9f5; border-radius: 12px; background: #f5f8fd; color: #4f76b5; }
.animation-heading-note i { font-size: 25px; }.animation-heading-note strong, .animation-heading-note small { display: block; }.animation-heading-note strong { color: #3c5579; font-size: 11px; }.animation-heading-note small { margin-top: 4px; color: #8a9bb0; font-size: 10px; }
.animation-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 20px; border: 1px solid #e0e9f5; border-radius: 14px; background: #fff; }
.animation-toolbar-label { color: #7d96b8; font: 700 9px var(--font-primary); letter-spacing: .1em; white-space: nowrap; }.animation-toolbar p { margin: 5px 0 0; color: #2e496e; font: 700 13px var(--font-primary); }
.animation-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.animation-filters button { padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #71829b; font-size: 11px; font-weight: 700; }.animation-filters button:hover { background: #f2f6fc; color: #315c9d; }.animation-filters button.is-active { border-color: #d9e6f9; background: #edf4ff; color: #315fba; }.animation-filters button span { margin-left: 3px; color: #7c9bce; font-size: 10px; }
.animation-results { margin: 18px 0 11px; color: #8c9cb0; font-size: 11px; font-weight: 600; }
.animation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.animation-card { overflow: hidden; min-width: 0; border: 1px solid #e0e8f3; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px #274b730b; }
.animation-card-art { position: relative; overflow: hidden; min-height: 180px; padding: 15px 17px; background: radial-gradient(circle at 85% 85%,#3a5d92 0,transparent 38%),linear-gradient(145deg,#182e4e,#263f66); color: #d6e5fc; }
.animation-window-bar { display: flex; align-items: center; gap: 9px; color: #8ca9d0; font: 700 9px var(--font-primary); letter-spacing: .09em; }.animation-window-bar > span:last-child { margin-left: auto; color: #718fb9; }.animation-dots { display: flex; gap: 4px; }.animation-dots i { width: 6px; height: 6px; border-radius: 50%; background: #7e9ac0; }.animation-dots i:first-child { background: #e1a6a3; }.animation-dots i:nth-child(2) { background: #e7cc8a; }.animation-dots i:nth-child(3) { background: #8dbcae; }
.animation-code { margin-top: 23px; }.animation-code-label { display: block; color: #90acd3; font: 700 9px var(--font-primary); letter-spacing: .09em; }.animation-code code { display: block; margin-top: 10px; color: #edf5ff; font: 600 clamp(13px,1.3vw,17px)/1.4 monospace; overflow-wrap: anywhere; }.animation-code-sub { display: block; margin-top: 8px; color: #9eb9df; font: 11px monospace; }
.animation-play { position: absolute; right: 18px; bottom: 16px; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #ffffff6e; border-radius: 50%; background: #ffffff24; color: #fff; font-size: 22px; transition: background .2s, transform .2s; }.animation-play:hover { background: #ffffff40; transform: scale(1.06); }
.animation-card-content { padding: 19px 20px 20px; }.animation-category { display: inline-block; color: #557cb7; font: 700 9px var(--font-primary); letter-spacing: .08em; text-transform: uppercase; }.animation-card h3 { margin: 8px 0 7px; color: #253e61; font: 700 15px/1.35 var(--font-primary); }.animation-card p { min-height: 36px; margin: 0; color: #7c8ea5; font-size: 12px; line-height: 1.55; }.animation-watch { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 0; border: 0; background: none; color: #416ba8; font-size: 11px; font-weight: 700; }.animation-watch:hover { color: #224d91; }
.animation-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e1e9f3; }.animation-footer > span { color: #8297b3; font: 700 10px var(--font-primary); letter-spacing: .09em; }.animation-footer > span i { margin-right: 6px; color: #6e93cb; font-size: 14px; }.animation-footer a { color: #41699f; font-size: 12px; font-weight: 700; }
.animation-dialog { width: min(880px,calc(100% - 28px)); max-height: 90vh; overflow: auto; padding: 22px; border: 0; border-radius: 17px; background: #fff; color: #294363; box-shadow: 0 24px 70px #142c4c55; }.animation-dialog::backdrop { background: #132642b8; }.animation-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }.animation-dialog-header span { color: #6d8bbc; font: 700 9px var(--font-primary); letter-spacing: .1em; }.animation-dialog-header h2 { margin: 6px 0 0; color: #223b60; font: 700 20px var(--font-primary); }.animation-dialog-header button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: #eef3fa; color: #536b8c; font-size: 23px; }.animation-dialog video { display: block; width: 100%; max-height: 65vh; aspect-ratio: 16/9; background: #102139; }.animation-dialog p { margin: 12px 0 0; color: #8191a8; font-size: 11px; }.animation-dialog p a { color: #426db0; text-decoration: underline; }
.animation-library button:focus-visible, .animation-library a:focus-visible, .animation-library video:focus-visible { outline: 3px solid #4b83ed; outline-offset: 3px; }
@media(max-width: 991px) { .animation-toolbar { align-items: flex-start; flex-direction: column; }.animation-filters { justify-content: flex-start; }.animation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 767px) { .animation-library { padding: 62px 0; }.animation-heading { align-items: flex-start; flex-direction: column; gap: 20px; }.animation-footer { align-items: flex-start; flex-direction: column; }.animation-heading > div:first-child > p:last-child { font-size: 13px; } }
@media(max-width: 540px) { .animation-grid { grid-template-columns: 1fr; }.animation-card-art { min-height: 160px; }.animation-card p { min-height: 0; }.animation-toolbar { padding: 16px; }.animation-filters button { padding: 8px 9px; }.animation-dialog { padding: 17px; } }
@media(prefers-reduced-motion: reduce) { .animation-play { transition: none; }.animation-play:hover { transform: none; } }
