:root { --snapshot-accent: #d94f7a; --snapshot-accent-dark: #b93460; }
* { box-sizing: border-box; }
.snapshot-shell { min-height: 100vh; background: #f8f4ee; color: #26352e; }
.snapshot-header { position: sticky; top: 0; z-index: 32; padding: 10px 14px 0; border-bottom: 1px solid rgba(229,221,210,.85); background: rgba(248,244,238,.97); backdrop-filter: blur(14px); }
.snapshot-title-row { height: 52px; display: flex; align-items: center; gap: 8px; }
.snapshot-content-switch { min-width: 108px; display: flex; align-items: center; gap: 5px; white-space: nowrap; font-family: Georgia,"Noto Serif SC",serif; font-size: 22px; font-weight: 700; }
.snapshot-content-switch a { color: #34423b; }
.snapshot-content-switch span { color: #a6a39d; font-weight: 400; }
.snapshot-content-switch .is-current { color: var(--snapshot-accent); }
.snapshot-search { height: 41px; min-width: 0; flex: 1; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid #e4dcd1; border-radius: 21px; background: #fffdfa; box-shadow: 0 5px 16px rgba(48,40,29,.04); }
.snapshot-search > .ui-icon { width: 18px; height: 18px; flex: 0 0 auto; color: #58645e; }
.snapshot-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #26352e; font-size:16px; }
.snapshot-search input::placeholder { color: #969995; }
.snapshot-title-row .notify-btn { position: relative; width: 32px; height: 41px; flex: 0 0 32px; }
.snapshot-title-row .notify-btn i { position: absolute; right: 3px; top: 7px; width: 7px; height: 7px; border: 2px solid #f8f4ee; border-radius: 50%; background: #e5483f; }
.snapshot-title-row .avatar-link { width: 38px; height: 38px; flex: 0 0 38px; }
.snapshot-rank-tabs { height: 45px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.snapshot-rank-tabs button { position: relative; min-width: 0; color: #424d47; font-size: 12px; white-space: nowrap; }
.snapshot-rank-tabs button.is-active { color: var(--snapshot-accent-dark); font-weight: 800; }
.snapshot-rank-tabs button.is-active::after { content: ""; position: absolute; left: 39%; right: 39%; bottom: 0; height: 3px; border-radius: 3px; background: var(--snapshot-accent); }
.snapshot-main { padding-bottom: 103px; }
.snapshot-waterfall { padding: 12px 14px 14px; column-count: 2; column-gap: 10px; }
.snapshot-card { width: 100%; margin: 0 0 10px; display: inline-block; overflow: hidden; break-inside: avoid; border: 1px solid #e8e0d5; border-radius: 14px; background: #fffdfa; box-shadow: 0 6px 17px rgba(48,40,29,.08); vertical-align: top; }
.snapshot-card[hidden] { display: none; }
.snapshot-media { position: relative; height: 154px; overflow: hidden; background: #dce4df; }
.snapshot-card.is-medium .snapshot-media { height: 184px; }
.snapshot-card.is-tall .snapshot-media { height: 224px; }
.snapshot-media > img, .snapshot-media > video { width: 100%; height: 100%; object-fit: cover; display: block; background: #dce4df; }
.snapshot-media > button { position: absolute; left: 50%; top: 50%; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; color: #fff; background: rgba(25,35,31,.46); box-shadow: 0 4px 12px rgba(20,24,22,.18); transform: translate(-50%,-50%); }
.snapshot-media > button .ui-icon { width: 23px; height: 23px; }
.snapshot-media time,.snapshot-photo-count { position: absolute; z-index: 2; padding: 3px 6px; border-radius: 7px; color: #fff; background: rgba(23,31,28,.66); font-size: 8px; font-weight: 800; }
.snapshot-media time { right: 7px; bottom: 7px; }
.snapshot-photo-count { left: 7px; top: 7px; display: flex; align-items: center; gap: 4px; }
.snapshot-photo-count .ui-icon { width: 13px; height: 13px; }
.snapshot-copy { padding: 9px 9px 10px; }
.snapshot-copy h2 { margin: 0; color: #29352f; font-size: 12px; line-height: 1.45; letter-spacing: 0; }
.snapshot-copy > p { margin: 4px 0 8px; color: #7f8681; font-size: 9px; line-height: 1.5; }
.snapshot-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.snapshot-copy > div > span { min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; color: #737b76; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.snapshot-copy > div > span img { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.snapshot-copy [data-snapshot-like] { padding: 0; display: flex; align-items: center; gap: 3px; color: #8c918d; font-size: 8px; }
.snapshot-copy [data-snapshot-like] .ui-icon { width: 14px; height: 14px; color: var(--snapshot-accent); }
.snapshot-copy [data-snapshot-like].is-liked { color: var(--snapshot-accent-dark); }
.snapshot-copy [data-snapshot-like].is-liked .ui-icon { fill: var(--snapshot-accent); stroke: var(--snapshot-accent); }
.snapshot-copy em { font-style: normal; }
.snapshot-empty { margin: 55px 20px; color: #929791; font-size: 11px; text-align: center; }
.snapshot-status { position: fixed; left: 50%; bottom: 89px; z-index: 46; max-width: 280px; margin: 0; padding: 9px 13px; border-radius: 8px; color: #fff; background: rgba(49,35,43,.96); font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%,7px); transition: opacity .2s ease,transform .2s ease; }
.snapshot-status.is-visible { opacity: 1; transform: translate(-50%,0); }
.snapshot-shell .bottom-nav { height: 82px; padding-top: 10px; }
.snapshot-shell .nav-item > .ui-icon { width: 24px; height: 24px; }
.snapshot-shell .nav-item strong { font-size: 10px; }
.snapshot-header a:focus-visible,.snapshot-header button:focus-visible,.snapshot-search:focus-within,.snapshot-card button:focus-visible { outline: 2px solid var(--snapshot-accent); outline-offset: 2px; }
@media (max-width:390px) {
  .snapshot-header { padding-left: 10px; padding-right: 10px; }
  .snapshot-title-row { gap: 5px; }
  .snapshot-content-switch { min-width: 94px; font-size: 19px; }
  .snapshot-title-row .notify-btn { width: 29px; flex-basis: 29px; }
  .snapshot-title-row .avatar-link { width: 35px; height: 35px; flex-basis: 35px; }
  .snapshot-search { padding: 0 8px; }
  .snapshot-search input { font-size:16px; }
  .snapshot-rank-tabs button { font-size: 11px; }
  .snapshot-waterfall { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .snapshot-media { height: 142px; }
  .snapshot-card.is-medium .snapshot-media { height: 170px; }
  .snapshot-card.is-tall .snapshot-media { height: 208px; }
}
@media (min-width:700px) { .snapshot-shell { min-height: calc(100vh - 40px); } .snapshot-header { border-radius: 8px 8px 0 0; } }
@media (prefers-reduced-motion:reduce) { .snapshot-status { transition: none; } }

/* v0.5.0 community API additions */
.snapshot-create-link { display: grid; min-height: 34px; padding: 0 12px; place-items: center; color: #fff; background: var(--snapshot-accent-dark); border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.snapshot-title-link { color: inherit; text-decoration: none; }
.api-snapshot-card .snapshot-media { display: block; }
.api-snapshot-card .snapshot-media img,.api-snapshot-card .snapshot-media video { width: 100%; height: 100%; object-fit: cover; }
.api-snapshot-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; background: linear-gradient(145deg,#745664,#d49a79); font-family: Georgia,serif; font-size: 20px; }
.api-snapshot-play { position: absolute; top: 50%; left: 50%; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: rgba(25,35,31,.5); border: 2px solid #fff; border-radius: 50%; transform: translate(-50%,-50%); }
.snapshot-status[data-kind="error"] { background: #8b3f38; }
@media (max-width:540px) { .snapshot-create-link { order: 5; grid-column: 1/-1; min-height: 32px; } }
