.os55-gallery{--os-bg:#101114;--os-card:#191a1e;--os-border:#2d2e34;--os-text:#f2f2f3;--os-muted:#999aa5;padding:32px clamp(18px,3vw,44px);color:var(--os-text);max-width:1800px;margin:auto}.os55-gallery *{box-sizing:border-box}.light .os55-gallery,.light .os55-dialog{--os-bg:#fff;--os-card:#fff;--os-border:#e5e7eb;--os-text:#202126;--os-muted:#737681}.os55-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:30px}.os55-eyebrow{font-size:10px;letter-spacing:2px;color:#a78bfa;font-weight:700}.os55-heading h1{font-size:clamp(28px,3vw,40px);font-weight:700;letter-spacing:-1px;margin:8px 0 10px}.os55-dot{color:#a78bfa}.os55-heading p,.os55-muted{color:var(--os-muted);font-size:13px;line-height:1.7}.os55-gallery a,.os55-dialog a{color:var(--os-muted);text-decoration:none;font-size:12px}.os55-gallery a:hover,.os55-dialog a:hover{color:#a78bfa}.os55-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.os55-search{display:flex;align-items:center;gap:12px;border:1px solid var(--os-border);border-radius:10px;padding:10px 14px;width:min(440px,100%);color:var(--os-muted)}.os55-search input{width:100%;color:var(--os-text);font:inherit;font-size:13px;border:0;background:transparent;outline:none}.os55-search:focus-within{outline:2px solid #a78bfa}.os55-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 26px}.os55-filters button,.os55-more button,.os55-empty button{font-size:12px;border:1px solid var(--os-border);border-radius:8px;padding:9px 15px;color:var(--os-muted);background:transparent;cursor:pointer}.os55-filters button[aria-pressed=true]{background:var(--os-text);color:var(--os-bg);border-color:var(--os-text)}.os55-masonry{columns:4;column-gap:20px}.os55-card{break-inside:avoid;margin-bottom:20px;background:var(--os-card);border:1px solid var(--os-border);border-radius:14px;overflow:hidden;transition:border-color .2s}.os55-card:hover{border-color:#827098}.os55-cover{position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;overflow:hidden;background:#121318}.os55-cover img{display:block;width:100%;height:auto;min-height:130px;max-height:390px;object-fit:cover}.os55-cover-fallback{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#242330,#17181d);color:#d7d3e5;gap:12px}.os55-cover-fallback small{font-size:11px;color:#a4a0b1}.os55-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff70;border-radius:50%;background:#0007;color:white;backdrop-filter:blur(8px);font-size:14px}.os55-badge{position:absolute;bottom:10px;left:10px;background:#0009;border:1px solid #ffffff25;color:#eee;padding:4px 8px;border-radius:5px;font-size:10px;backdrop-filter:blur(8px)}.os55-card-body{padding:16px}.os55-card h2{font-size:14px;font-weight:600;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}.os55-card h2 button{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}.os55-excerpt{font-size:12px;color:var(--os-muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:0 0 12px}.os55-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.os55-tags span{font-size:10px;color:var(--os-muted);padding:3px 6px;border:1px solid var(--os-border);border-radius:4px}.os55-links{display:flex;gap:10px;flex-wrap:wrap;overflow-wrap:anywhere}.os55-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-top:1px solid var(--os-border);padding-top:12px;margin-top:14px}.os55-actions button,.os55-copy{cursor:pointer;font-size:12px;white-space:nowrap}.os55-actions>button{background:none;border:0;color:var(--os-muted);padding:7px 0}.os55-copy{padding:7px 11px;border:1px solid var(--os-border);background:transparent;color:var(--os-text);border-radius:6px}.os55-copy:hover{background:#a78bfa20;border-color:#a78bfa}.os55-copy-wrap{display:inline-flex;flex-direction:column;gap:3px}.os55-copy-status{font-size:11px;color:#a78bfa;max-width:200px}.os55-more{text-align:center;margin:28px}.os55-footer{font-size:11px;color:var(--os-muted);line-height:1.8;border-top:1px solid var(--os-border);padding-top:22px;margin-top:32px}.os55-empty{padding:80px 16px;text-align:center;color:var(--os-muted)}.os55-empty button{margin-left:16px}.os55-dialog{--os-bg:#101114;--os-card:#191a1e;--os-border:#2d2e34;--os-text:#f2f2f3;--os-muted:#999aa5;width:min(1180px,94vw);max-height:90dvh;padding:0;border:1px solid var(--os-border);border-radius:18px;background:var(--os-bg);color:var(--os-text);overflow:auto;margin:auto}.os55-dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}.os55-detail{padding:24px}.os55-detail header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.os55-detail h2{font-size:21px;font-weight:600;margin:7px 0;overflow-wrap:anywhere}.os55-close{background:none;color:var(--os-text);font-size:28px;border:0;cursor:pointer;padding:0 8px}.os55-detail-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:28px}.os55-player-panel{min-width:0}.os55-player-panel video,.os55-player-panel img{width:100%;max-height:60vh;object-fit:contain;display:block;background:#000;border-radius:10px}.os55-player-panel>p{font-size:12px;margin:14px 0;color:var(--os-muted)}.os55-player-panel button{color:#a78bfa;background:none;border:0;cursor:pointer}.os55-prompt-panel{min-width:0}.os55-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.os55-prompt-heading h3{font-size:15px;font-weight:600}.os55-prompt-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:52vh;overflow:auto;padding:18px;background:var(--os-card);border:1px solid var(--os-border);border-radius:10px;font:12px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace;margin:12px 0}.os55-keywords{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--os-muted)}.os55-gallery button:focus-visible,.os55-dialog button:focus-visible,.os55-dialog a:focus-visible{outline:2px solid #a78bfa;outline-offset:3px}@media(min-width:1800px){.os55-masonry{columns:5}}@media(max-width:1250px){.os55-masonry{columns:3}}@media(max-width:1000px){.os55-masonry{columns:2}.os55-detail-grid{grid-template-columns:1fr}.os55-prompt-panel pre{max-height:40vh}}@media(max-width:600px){.os55-masonry{columns:1}.os55-heading{align-items:flex-start;flex-direction:column;gap:10px}.os55-toolbar{align-items:flex-start;flex-direction:column}.os55-gallery{padding:24px 16px}.os55-detail{padding:16px}.os55-dialog{width:96vw}.os55-detail h2{font-size:18px}}
