* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #0b0f17; color: #e6e8ee; }
a { color: inherit; text-decoration: none; }
code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(11,15,23,.8); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap { display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.title { display:flex; align-items:center; gap: 12px; }
.logo { font-size: 28px; }
.h1 { font-weight: 700; letter-spacing: .2px; }
.sub { font-size: 12px; opacity: .8; }

.search { width: 260px; max-width: 45vw; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #e6e8ee; outline: none; }
.search:focus { border-color: rgba(255,255,255,.25); }

.breadcrumb { opacity: .85; font-size: 13px; margin: 10px 0 14px; }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

.parent { margin: 8px 0 18px; }
.btn { display:inline-flex; align-items:center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); cursor: pointer; }
.btn:hover { background: rgba(255,255,255,.10); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

.card { display:flex; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); }
.card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }

.thumb { width: 60px; height: 60px; border-radius: 12px; background: rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; font-size: 26px; overflow: hidden; flex: 0 0 auto; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }

.meta { min-width: 0; display:flex; flex-direction: column; justify-content:center; }
.name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind { font-size: 12px; opacity: .75; margin-top: 4px; }

.viewer { margin-top: 18px; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); }
.viewer-head { display:flex; align-items:center; justify-content: space-between; gap: 10px; padding: 12px 12px; border-bottom: 1px solid rgba(255,255,255,.10); }
.viewer-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.viewer-actions { display:flex; gap: 10px; }
.viewer-body { padding: 12px; }
.viewer-body img, .viewer-body video, .viewer-body iframe { width: 100%; border: 0; border-radius: 12px; background: #000; }
.viewer-body iframe { height: 80vh; }
