*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#fff;color:#111;font:16px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial}
.site-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:#fff}
.logo{font-weight:700;letter-spacing:.06em}
.site-nav a{margin-left:24px;color:#111;text-decoration:none;opacity:.85}
.site-nav a:hover{opacity:1;text-decoration:underline}
.viewport{height:calc(100vh - 80px);overflow:auto;padding:40px 6vw 120px}
.story{margin-bottom:80px}
.story-title{font-size:2rem;margin:0 0 24px 0}
.masonry{column-width:320px;column-gap:24px}
.masonry figure{break-inside:avoid;margin:0 0 24px 0;position:relative}
.masonry img{width:100%;height:auto;border-radius:10px;display:block;background:#f3f3f3}
.masonry figcaption{position:absolute;left:8px;bottom:8px;background:rgba(255,255,255,.88);padding:2px 6px;border-radius:6px;
  font-size:11px;line-height:1.2;color:#444;max-width:90%;word-break:break-word}
.masonry figcaption a{color:#666;text-decoration:none;border-bottom:1px dotted #aaa}
.masonry figcaption a:hover{color:#111;border-bottom-color:#111}
.loader{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.9)}
.loader.hidden{display:none}
.spinner{width:24px;height:24px;border:3px solid #eee;border-top-color:#111;border-radius:50%;animation:sp 1s linear infinite;margin-right:10px}
@keyframes sp{to{transform:rotate(360deg)}}
.month-panel{position:fixed;top:56px;right:16px;width:260px;max-height:60vh;overflow:auto;border:1px solid #ddd;border-radius:10px;background:#fff;box-shadow:0 6px 30px rgba(0,0,0,.08);padding:12px}
.month-head{display:flex;justify-content:space-between;align-items:center;font-weight:600;margin-bottom:8px}
.month-head button{border:0;background:#f6f6f6;border-radius:8px;padding:6px 10px;cursor:pointer}
#monthList{list-style:none;margin:0;padding:0}
#monthList li{padding:8px 10px;border-radius:8px;cursor:pointer}
#monthList li.active{background:#111;color:#fff}
.player{position:fixed;left:0;right:0;bottom:0;background:#1d1d1d;color:#f5f5f5;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:10px 16px}
.controls button{background:#333;border:0;color:#fff;border-radius:8px;padding:6px 10px;margin-right:6px;cursor:pointer}
.track-title{font-size:.9rem;margin-right:10px}
.scrub{height:6px;background:#333;border-radius:4px;overflow:hidden}
.scrub-fill{height:100%;width:0;background:#888}
.timecode{font-variant-numeric:tabular-nums}
.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.7);z-index:30}
.lightbox[aria-hidden="false"]{display:flex}
.lightbox img{max-width:88vw;max-height:80vh;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.92);border:0;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:18px}
.lightbox-prev{left:24px}.lightbox-next{right:24px}
