.gif-player{line-height:0;display:inline-block;position:relative;overflow:visible}.gif-player__media{max-width:100%;height:auto;display:block}.gif-player__controls{opacity:0;gap:6px;transition:opacity .2s;display:flex;position:absolute;bottom:8px;right:8px}.gif-player:hover .gif-player__controls,.gif-player--show-controls .gif-player__controls{opacity:1}.gif-player__btn{color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0000008c;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:0;display:flex}.gif-player__btn:hover{background:#000000bf}.gif-player__btn svg{fill:currentColor;width:16px;height:16px}.gif-player__debug{z-index:1;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-variant-numeric:tabular-nums;color:#e8eaed;background:#0c0e12d1;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;position:absolute;top:0;left:0;box-shadow:0 2px 8px #0003}.gif-player__debug--compact{white-space:nowrap;border-radius:0 0 4px;padding:2px 5px;font-size:8px;line-height:1.2}.gif-player__debug--medium{border-radius:0 0 5px;padding:3px 6px;font-size:9px;line-height:1.2}.gif-player__debug--collapsible{pointer-events:auto;cursor:pointer;-webkit-user-select:none;user-select:none}.gif-player__debug--collapsible:hover{background:#12161ceb}.gif-player__debug--collapsible:focus-visible{outline-offset:1px;outline:1px solid #7ec8ffbf}.gif-player__debug--full{border-radius:0 0 6px;min-width:120px;padding:5px 7px;font-size:10px;line-height:1.35}.gif-player__debug--expanded{z-index:2;min-width:108px;max-width:none!important}.gif-player__debug-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.gif-player__debug-badge{letter-spacing:.04em;color:#fff;background:#ffffff24;border-radius:3px;padding:1px 4px;font-size:8px;font-weight:600;display:inline-block}.gif-player__debug--full .gif-player__debug-badge{margin-bottom:4px;padding:1px 5px;font-size:9px}.gif-player__debug[data-mode=fresh] .gif-player__debug-badge{background:#4a90e28c}.gif-player__debug[data-mode=pending] .gif-player__debug-badge{background:#e6a23c8c}.gif-player__debug[data-mode=cache] .gif-player__debug-badge{background:#52c4808c}.gif-player__debug-body{flex-direction:column;gap:2px;display:flex}.gif-player__debug-row,.gif-player__debug-total{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.gif-player__debug-label{color:#e8eaedb8;white-space:nowrap}.gif-player__debug-value{color:#fff;white-space:nowrap}.gif-player__debug-value--total{color:#7ec8ff;font-weight:600}.gif-player__debug[data-mode=cache] .gif-player__debug-value--total{color:#82e0aa}.gif-player__debug-total{border-top:1px solid #ffffff1f;margin-top:4px;padding-top:4px}.gif-player__debug-total .gif-player__debug-label{color:#e8eaede6;font-weight:600}.gif-player__debug-total .gif-player__debug-value{color:#7ec8ff;font-weight:600}.gif-player__debug[data-mode=cache] .gif-player__debug-total .gif-player__debug-value{color:#82e0aa}body{-webkit-text-size-adjust:100%;color:#0f172a;background:radial-gradient(circle at 0 0,#4a90e21f,#0000 42%),linear-gradient(#f8fafc 0%,#eef2f7 100%);min-height:100vh;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif}.demo-page{box-sizing:border-box;max-width:880px;margin:0 auto;padding:28px 16px 40px;overflow-x:hidden}@media (width>=640px){.demo-page{padding:40px 24px 48px}}.demo-page *,.demo-page :before,.demo-page :after{box-sizing:border-box}.demo-header{background:0 0;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 28px;padding:0;display:flex}@media (width>=640px){.demo-header{margin-bottom:36px}}.demo-header__content{flex:1;min-width:0}.demo-header__github{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#1e293b;-webkit-tap-highlight-color:transparent;background:#ffffffb8;border:1px solid #64748b52;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;margin-top:2px;text-decoration:none;transition:color .15s,background .15s,border-color .15s,box-shadow .15s,transform .1s;display:inline-flex;box-shadow:0 2px 8px #0f172a14}.demo-header__github:hover{color:#0f172a;background:#ffffffeb;border-color:#47556973;box-shadow:0 4px 14px #0f172a1f}.demo-header__github:active{transform:translateY(1px)}.demo-header__github svg{width:24px;height:24px}.demo-header__eyebrow{letter-spacing:.06em;text-transform:uppercase;color:#4a90e2;margin:0 0 8px;font-size:12px;font-weight:600}.demo-header__title-row{flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:8px;display:flex}.demo-header__title{letter-spacing:-.02em;margin:0;font-size:clamp(1.5rem,4vw,1.875rem);font-weight:700;line-height:1.2}.demo-header__version{color:#2563eb;background:#4a90e21f;border:1px solid #4a90e238;border-radius:999px;align-items:center;padding:4px 10px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:12px;font-weight:600;display:inline-flex}.demo-header__subtitle{color:#64748b;max-width:36em;margin:0;font-size:14px;line-height:1.6}.demo-main{flex-direction:column;gap:20px;display:flex}@media (width>=640px){.demo-main{gap:24px}}.demo-card{background:#fff;border:1px solid #94a3b847;border-radius:16px;padding:18px;box-shadow:0 10px 30px #0f172a0d}@media (width>=640px){.demo-card{padding:22px 24px}}.demo-card__head{gap:14px;margin-bottom:16px;display:flex}.demo-card__index{color:#fff;background:linear-gradient(135deg,#4a90e2,#6366f1);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:12px;font-weight:700;display:inline-flex}.demo-card__title{letter-spacing:-.01em;margin:0 0 4px;font-size:1.125rem;font-weight:650}.demo-card__desc{color:#64748b;margin:0;font-size:13px;line-height:1.55}@media (width>=640px){.demo-card__desc{font-size:14px}}.demo-tags{flex-wrap:wrap;gap:6px;margin-bottom:16px;display:flex}.demo-tag{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:4px 9px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:11px}.demo-actions{margin-bottom:16px}.demo-actions__label{color:#94a3b8;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px;font-size:11px;font-weight:600;display:block}.demo-actions__field{color:#334155;align-items:center;gap:8px;font-size:13px;display:inline-flex}.demo-actions__input{color:#334155;background:#f8fafc;border:1px solid #dbe3ee;border-radius:8px;width:72px;padding:6px 8px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:13px}.demo-actions__input:disabled{opacity:.55;cursor:not-allowed}.demo-actions__hint{color:#94a3b8;margin-left:12px;font-size:12px}.demo-actions__buttons{flex-wrap:wrap;gap:8px;display:flex}.demo-actions__buttons button{color:#334155;cursor:pointer;-webkit-tap-highlight-color:transparent;background:#f8fafc;border:1px solid #dbe3ee;border-radius:10px;flex:calc(50% - 4px);min-height:38px;padding:8px 12px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:12px;transition:background .15s,border-color .15s,transform .1s}.demo-actions__buttons button:hover{background:#eff6ff;border-color:#bfdbfe}.demo-actions__buttons button:active{transform:translateY(1px)}.demo-actions__btn--accent{color:#1d4ed8!important;background:#eff6ff!important;border-color:#93c5fd!important}@media (width>=640px){.demo-actions__buttons button{flex:0 auto;min-height:auto;font-size:13px}}.demo-player-main{background:linear-gradient(#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:14px;width:100%;max-width:320px;padding:12px}.demo-player-sm{width:100%;max-width:180px}@media (width<=639px){.demo-player-sm{max-width:100%}}.demo-gif{box-shadow:0 8px 24px #4a90e22e}.demo-cache-row{grid-template-columns:1fr;gap:14px;margin-bottom:16px;display:grid}@media (width>=640px){.demo-cache-row{grid-template-columns:repeat(2,minmax(0,1fr))}}.demo-cache-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.demo-cache-item__head{align-items:center;gap:10px;margin-bottom:12px;display:flex}.demo-cache-item__badge{color:#fff;background:#4a90e2;border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;font-size:13px;font-weight:700;display:inline-flex}.demo-cache-item__badge--b{background:#6366f1}.demo-cache-item__title{margin:0;font-size:14px;font-weight:600}.demo-cache-placeholder{text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;justify-content:center;align-items:center;min-height:160px;padding:20px;display:flex}.demo-cache-placeholder p{color:#94a3b8;margin:0;font-size:13px;line-height:1.5}.demo-grid{grid-template-columns:1fr;gap:14px;display:grid}@media (width>=520px){.demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.demo-grid-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.demo-grid-card__head{margin-bottom:12px}.demo-grid-card__label{color:#334155;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:4px 8px;font-size:12px;display:inline-block}.demo-grid-card__player{width:100%}.demo-log-panel{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.demo-log-panel__head{background:#f1f5f9;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.demo-log-panel__title{color:#475569;font-size:12px;font-weight:600}.demo-log-panel__hint{color:#94a3b8;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:11px}.demo-log{word-break:break-all;overflow-wrap:anywhere;margin:0;padding:10px 12px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:12px;line-height:1.55;list-style:none}@media (width>=640px){.demo-log{font-size:13px}}.demo-log--cache{background:#f0f7ff}.demo-log--events{background:#fafafa}.demo-log li{border-bottom:1px solid #94a3b826;padding:4px 0}.demo-log li:last-child{border-bottom:none}.demo-log-empty{color:#94a3b8;font-style:italic}.demo-multi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px;display:grid}.demo-multi-stack{flex-direction:column;gap:16px;display:flex}.demo-multi-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.demo-multi-panel__placeholder{min-height:120px;margin-bottom:12px}.demo-multi-panel__head{flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:12px;display:flex}.demo-multi-panel__title{margin:0;font-size:14px;font-weight:650}.demo-multi-panel__tag{color:#475569;background:#fff;border:1px solid #dbe3ee;border-radius:999px;padding:3px 8px;font-size:11px}@media (width>=640px){.demo-multi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.demo-multi-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.demo-multi-item__head{align-items:center;gap:8px;margin-bottom:10px;display:flex}.demo-multi-item__index{color:#fff;background:#4a90e2;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;font-weight:700;display:inline-flex}.demo-multi-item__index--worker{background:#6366f1}.demo-multi-item__label{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.demo-multi-stats{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;flex-wrap:wrap;gap:8px 16px;margin-top:12px;padding:10px 12px;font-family:ui-monospace,Cascadia Code,SF Mono,monospace;font-size:12px;display:flex}
