:root {
  --bg: #ffffff;
  --fg: #16161a;
  --muted: #6b6b76;
  --line: #ececf1;
  --soft: #f6f5f9;
  --accent: #e8507e;
  --accent2: #8b5cf6;
  --grad: linear-gradient(90deg, #e8507e, #8b5cf6);
  --tile: #efeff3;
  --top-h: 64px;
  --tabs-h: 64px;
  --bar: rgba(255,255,255,.92);
  --elev: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121216; --fg: #f1f1f4; --muted: #a2a2ad; --line: #2a2a31; --soft: #1f1f25; --tile: #1d1d22;
    --bar: rgba(18,18,22,.9); --elev: #26262d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121216; --fg: #f1f1f4; --muted: #a2a2ad; --line: #2a2a31; --soft: #1f1f25; --tile: #1d1d22;
  --bar: rgba(18,18,22,.9); --elev: #26262d; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Sarabun", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  font-size: 19px; line-height: 1.5; -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0 16px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 8px rgba(232,80,126,.25); flex: none; }
.brand { min-width: 0; flex: 1; }
.brand-name { font-size: 21px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { border: 0; background: var(--soft); width: 44px; height: 44px; border-radius: 12px; font-size: 32px; line-height: 1; cursor: pointer; flex: none; }
.back[hidden], .logo[hidden], .top-btn[hidden] { display: none; }
.top-btn { border: 0; background: var(--grad); color: #fff; font-weight: 700; font-size: 16px; padding: 9px 14px; border-radius: 12px; cursor: pointer; flex: none; }

main { padding: 0 4px calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom)); max-width: 1400px; margin: 0 auto; }
.view[hidden] { display: none; }
.status { text-align: center; color: var(--muted); padding: 32px 16px; font-size: 21px; }
.status.big { color: var(--fg); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 19px; }
.empty b { display: block; font-size: 44px; margin-bottom: 8px; }

/* ---------- bottom tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button span { font-size: 22px; line-height: 1.1; filter: grayscale(1); opacity: .7; }
.tabs button.on { color: var(--accent); }
.tabs button.on span { filter: none; opacity: 1; }

/* ---------- timeline ---------- */
.year { font-size: 30px; font-weight: 800; margin: 20px 8px 0; letter-spacing: .3px; }
.group { content-visibility: auto; padding-right: 26px; }
.group.norail { padding-right: 0; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 14px 8px 8px; }
.group-title { font-size: 19px; font-weight: 700; }
.group-sub { font-size: 15px; color: var(--muted); }
.rows { display: flex; flex-direction: column; gap: 3px; }
.row { display: flex; gap: 3px; }
.tile {
  position: relative; border: 0; padding: 0; margin: 0; display: block; flex: none;
  background: var(--tile); overflow: hidden; cursor: pointer;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s, transform .3s; }
.tile img.ok { opacity: 1; }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } }
.badge { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700;
  padding: 0 7px; border-radius: 999px; pointer-events: none; }
.fav-dot { position: absolute; left: 5px; bottom: 3px; font-size: 15px; pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile.novid { background: #2a2a30; }

/* memories (on this day) */
.memory { margin: 14px 8px 4px; border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; border: 0; padding: 0;
  display: block; width: calc(100% - 16px - 26px); background: #222; color: #fff; text-align: left; aspect-ratio: 16 / 8; }
.memory img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.memory .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.memory .txt { position: absolute; left: 16px; bottom: 12px; right: 16px; }
.memory .k { font-size: 15px; opacity: .9; }
.memory .t { font-size: 24px; font-weight: 800; }

/* ---------- album cards ---------- */
.cards { display: grid; gap: 14px 10px; grid-template-columns: repeat(2, 1fr); padding: 14px 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.card { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.card .cover { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--tile); position: relative; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .n { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.card .name { font-weight: 700; font-size: 17px; margin-top: 6px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .date { font-size: 14px; color: var(--muted); }
.yearbar { grid-column: 1 / -1; font-size: 26px; font-weight: 800; margin-top: 8px; }

/* ---------- people ---------- */
.people { display: grid; gap: 18px 10px; grid-template-columns: repeat(3, 1fr); padding: 18px 8px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(5, 1fr); } }
.person { border: 0; background: none; cursor: pointer; text-align: center; padding: 0; }
.face { width: 100%; aspect-ratio: 1; border-radius: 50%; background-color: var(--tile); background-repeat: no-repeat;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #f2c6d6; }
.person .name { font-weight: 700; font-size: 17px; margin-top: 8px; }
.person .cnt { font-size: 14px; color: var(--muted); }

/* ---------- links ---------- */
.links { display: flex; flex-direction: column; gap: 10px; padding: 14px 8px; max-width: 760px; margin: 0 auto; }
.day { font-size: 16px; font-weight: 700; color: var(--muted); margin: 10px 4px 0; }
.link { display: flex; gap: 12px; align-items: stretch; text-decoration: none; color: var(--fg); background: #fff;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 96px; }
.link .lt { width: 112px; flex: none; background: var(--soft) center / cover no-repeat; display: grid; place-items: center; font-size: 34px; }
.link .lb { padding: 10px 12px 10px 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.link .ti { font-weight: 700; font-size: 17px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.link .si { font-size: 14px; color: var(--accent); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link .by { font-size: 13px; color: var(--muted); }

/* ---------- fast-scroll rail ---------- */
.rail {
  position: fixed; right: 0; z-index: 6; width: 34px;
  top: calc(var(--top-h) + env(safe-area-inset-top) + 10px);
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 10px);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.rail[hidden] { display: none; }
.marks { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.rail.active .marks { opacity: 1; }
.mark { position: absolute; right: 38px; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--fg);
  background: var(--elev); padding: 1px 7px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); white-space: nowrap; }
.dot { position: absolute; right: 15px; width: 4px; height: 4px; border-radius: 50%; background: #c5c5cf; transform: translateY(-50%); }
.handle { position: absolute; right: 4px; width: 26px; height: 46px; border-radius: 13px; background: var(--elev);
  box-shadow: 0 2px 10px rgba(0,0,0,.22); display: grid; place-items: center; font-size: 15px; color: var(--accent); opacity: .55; transition: opacity .2s; }
.rail.active .handle { opacity: 1; }
.bubble { position: absolute; right: 40px; transform: translateY(-50%); background: var(--grad); color: #fff; font-size: 18px; font-weight: 800;
  padding: 6px 14px; border-radius: 12px; white-space: nowrap; box-shadow: 0 4px 14px rgba(139,92,246,.35); display: none; }
.rail.dragging .bubble { display: block; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; display: flex; flex-direction: column; overscroll-behavior: contain; }
.viewer[hidden] { display: none; }
.viewer-top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 6px 14px; }
.viewer-meta { flex: 1; min-width: 0; }
.viewer-info { font-size: 16px; color: #e8e8ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-pos { font-size: 14px; color: #a9a9b5; }
.vbtn { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; cursor: pointer; flex: none; }
.vbtn.heart.on { color: #ff4d7d; }
.stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; }
.stage.zoomed { cursor: grab; }
.stage.video { touch-action: auto; cursor: default; display: grid; place-items: center; }
.stage img { position: absolute; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.stage img.anim { transition: transform .22s ease-out; }
.stage video { max-width: 100%; max-height: 100%; }
.spinner { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { position: absolute; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255,255,255,.16);
  padding: 8px 16px; border-radius: 999px; font-size: 16px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.hint.visible { opacity: 1; }
.viewer-bar { display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.btn { flex: 1; font-size: 20px; font-weight: 700; padding: 15px 10px; border-radius: 14px; border: 0; cursor: pointer; }
.btn.close { background: #2e2e34; color: #fff; flex: 0 0 34%; }
.btn.save { background: var(--grad); color: #fff; }
.btn:disabled { opacity: .6; }
.nav { position: absolute; top: 46%; transform: translateY(-50%); width: 48px; height: 76px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.nav.prev { left: 6px; }
.nav.next { right: 6px; }
.nav[hidden] { display: none; }

/* ---------- slideshow ---------- */
.show { position: fixed; inset: 0; z-index: 30; background: #000; color: #fff; cursor: none; }
.show[hidden] { display: none; }
.show-stage { position: absolute; inset: 0; }
.show-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease; }
.show-stage > .in { opacity: 1; }
.show-stage img.kb { animation: kb 7s ease-out forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.06); } }
.show-info { position: absolute; left: 20px; bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.8); opacity: .9; }
.show-stop { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top)); border: 0; background: rgba(255,255,255,.18); color: #fff;
  font-size: 18px; font-weight: 700; padding: 10px 16px; border-radius: 12px; cursor: pointer; opacity: 0; transition: opacity .3s; }
.show.ui .show-stop { opacity: 1; }
.show.ui { cursor: default; }

/* ---------- admin ---------- */
.vbtn[hidden] { display: none; }
.link-wrap { position: relative; }
.link-del { position: absolute; right: 8px; top: 8px; border: 0; background: rgba(0,0,0,.06); width: 38px; height: 38px;
  border-radius: 10px; font-size: 18px; cursor: pointer; }

/* ---------- age ---------- */
.card .age { font-size: 14px; color: var(--accent); font-weight: 600; }
.ages { grid-column: 1 / -1; margin: 0 -8px 6px; }
.ages-title { font-size: 22px; font-weight: 800; padding: 0 8px 8px; }
.ages-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 8px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.age-chip { flex: none; width: 132px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; scroll-snap-align: start; }
.age-chip img { width: 132px; height: 132px; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.age-chip .l { display: block; font-weight: 700; font-size: 16px; margin-top: 6px; line-height: 1.3; }
.age-chip .c { display: block; font-size: 13px; color: var(--muted); }

/* ---------- theme toggle ---------- */
.theme-btn { border: 0; background: var(--soft); width: 44px; height: 44px; border-radius: 12px; font-size: 20px; cursor: pointer; flex: none; }

/* ---------- hold-to-delete ---------- */
#del { position: relative; --p: 0; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#del::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: conic-gradient(#ff4d6d calc(var(--p) * 360deg), transparent 0); opacity: .55; }
#del.holding { transform: scale(1.08); }
.toast { position: absolute; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 3;
  background: rgba(255,255,255,.92); color: #16161a; font-size: 17px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; }
.toast.visible { opacity: 1; }

/* ---------- admin page ---------- */
#adminBtn[hidden] { display: none; }
.admin { max-width: 640px; margin: 0 auto; padding: 16px 8px; }
.admin h3 { font-size: 21px; margin: 22px 4px 10px; }
.admin .box { background: var(--soft); border-radius: 18px; padding: 16px; }
.admin .row2 { display: flex; gap: 8px; }
.admin input { flex: 1; min-width: 0; font: inherit; font-size: 19px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.admin .go { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; color: #fff; background: var(--grad); cursor: pointer; }
.admin .go.plain { background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.admin .go.warn { background: #3a3a40; }
.admin .link { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 12px; font-size: 15px; word-break: break-all; }
.admin .note { font-size: 15px; color: var(--muted); margin-top: 8px; }
.guest { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.guest img, .guest .ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--tile); flex: none; }
.guest .who { flex: 1; min-width: 0; }
.guest .who b { display: block; }
.guest .who span { font-size: 14px; color: var(--muted); }
.guest .acts { display: flex; gap: 6px; flex: none; }
.guest .acts button { font-size: 16px; padding: 9px 12px; }

/* ---------- search ---------- */
.search { padding: 12px 4px; }
.sbar input { width: 100%; font: inherit; font-size: 21px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--bg); color: var(--fg); outline: none; }
.sbar input:focus { border-color: var(--accent); }
.search .note { font-size: 15px; color: var(--muted); margin: 8px 4px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 8px; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--fg); border-radius: 999px; padding: 8px 14px; font-size: 17px; cursor: pointer; }
.chip.person { border-color: #f2c6d6; }
.chip small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.chips-label { width: 100%; font-size: 15px; font-weight: 700; color: var(--muted); margin: 8px 2px 0; }
.sres-head { font-size: 18px; font-weight: 700; margin: 14px 6px 4px; }

/* ---------- viewer top bar: back left, save right (familiar layout) ---------- */
.viewer-top { padding: calc(8px + env(safe-area-inset-top)) 8px 8px; gap: 6px; }
.vbtn.back { font-size: 34px; line-height: 1; }
.vbtn.savebtn { width: auto; padding: 0 14px; font-size: 17px; font-weight: 800; background: linear-gradient(90deg, #e8507e, #8b5cf6); white-space: nowrap; }
.viewer-info { font-size: 16px; font-weight: 700; }
.viewer-pos { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-menu { position: absolute; right: 8px; top: calc(62px + env(safe-area-inset-top)); z-index: 5; min-width: 230px;
  background: rgba(32,32,38,.97); border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.more-menu[hidden] { display: none; }
.more-menu button { border: 0; background: none; color: #fff; text-align: left; font-size: 18px; padding: 14px 14px; border-radius: 12px; cursor: pointer; }
.more-menu button:hover { background: rgba(255,255,255,.08); }
.more-menu button[hidden] { display: none; }
#del { border-radius: 12px; overflow: hidden; }
#del::after { border-radius: 12px; }
.hint { bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---------- icons: SVG, optically centred ---------- */
.icon { display: inline-grid; place-items: center; padding: 0; line-height: 0; }
.icon svg { width: 26px; height: 26px; display: block; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.icon svg.fill { fill: currentColor; stroke: none; }
.back.icon svg { width: 28px; height: 28px; }
.nav.icon svg { width: 34px; height: 34px; stroke-width: 2.6; }
.vbtn.heart[aria-pressed="true"] { color: #ff4d7d; }
.vbtn.heart[aria-pressed="true"] svg { fill: currentColor; }
.vbtn.savebtn.icon { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 10px; line-height: 1; }
.vbtn.savebtn.icon svg { width: 22px; height: 22px; }
.vbtn.savebtn.busy { opacity: .6; }
.vbtn.savebtn.busy svg { animation: spin 1s linear infinite; }
.theme-btn { display: inline-grid; place-items: center; line-height: 1; padding: 0; }

.search .sum { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 3; display: flex; align-items: center; gap: 8px;
  background: var(--bar); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 8px 2px; margin: 4px 0; }
.search .sum .note { flex: 1; margin: 0 4px; font-size: 17px; color: var(--fg); font-weight: 700; }
.sclear { border: 0; background: var(--soft); color: var(--fg); border-radius: 999px; padding: 8px 14px; font-size: 15px; cursor: pointer; flex: none; }
.sclear[hidden] { display: none; }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.chip.on::after { content: " ✓"; }

/* cover focus editor */
.focus { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.92); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 16px; touch-action: none; }
.focus[hidden] { display: none; }
.focus-title { font-size: 22px; font-weight: 800; text-align: center; }
.focus-help { font-size: 16px; color: #cfcfd8; text-align: center; line-height: 1.5; }
.focus-face { width: min(78vw, 46vh, 360px); flex: none; cursor: grab; touch-action: none; box-shadow: 0 0 0 4px #fff, 0 0 0 9px rgba(232,80,126,.7); }
.focus-zoom, .focus-actions { display: flex; gap: 14px; }
.focus-zoom button { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #2a2a33; color: #fff; font-size: 32px; cursor: pointer; }
.focus-actions button { border: 0; border-radius: 14px; padding: 14px 26px; font-size: 18px; font-weight: 700; cursor: pointer; background: #2a2a33; color: #fff; }
.focus-actions .go { background: var(--grad); }

/* timeline zoom: ปี · เดือน · วัน */
#v-timeline { touch-action: pan-x pan-y; }
.zoombar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 12px);
  z-index: 8; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bar);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 4px 18px rgba(0,0,0,.18); border: 1px solid var(--line); }
.zoombar[hidden] { display: none; }
.zoombar button { border: 0; background: none; color: var(--fg); font-size: 16px; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.zoombar button.on { background: var(--grad); color: #fff; }
#feed.z1 .badge, #feed.z2 .badge { font-size: 0; padding: 2px 4px; }
#feed.z1 .badge::before, #feed.z2 .badge::before { content: "▶"; font-size: 10px; }
#feed.z2 .badge, #feed.z1 .fav-dot, #feed.z2 .fav-dot { display: none; }
#feed.z1 .tile, #feed.z2 .tile { border-radius: 0; }
#feed.z2 .group-head { padding-top: 18px; }
#feed.z2 .group-title { font-size: 26px; font-weight: 800; }
#v-timeline { padding-bottom: 64px; }

/* album date dialog */
.date-in { font-size: 22px; padding: 12px 16px; border-radius: 14px; border: 0; background: #fff; color: #111; min-width: 240px; }
.date-preview { font-size: 20px; font-weight: 700; min-height: 1.4em; }
@media (max-width: 480px) { #play .lbl { display: none; } #play { padding: 9px 12px; } }
.toast { position: fixed; z-index: 40; }
#dateHelp { white-space: pre-line; }
.theme-btn[hidden], .top-btn[hidden] { display: none; }
