/* حسين ونور — داكن، زجاجي، هادئ، ويتحرك بنعومة. Right-to-left throughout (logical properties). */
:root {
  --ink: #000;
  --graphite: #14151b;
  --slate: #22242e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --mist: #9b9db2;
  --pearl: #efecf7;
  --violet: #8b7cf6;
  --moon: #7fa7e8;
  --rose: #e88bb4;
  --teal: #63c7b8;
  --amber: #e9b96b;
  --danger: #f07a7a;
  --accent: var(--violet);
  --glass: rgba(25, 26, 35, .55);
  --glass-strong: rgba(18, 19, 26, .86);
  --blur: saturate(150%) blur(22px);
  --display: "Aref Ruqaa", "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --side: 264px;
  color-scheme: dark;
}
body[data-accent="blue"] { --accent: var(--moon); }
body[data-accent="rose"] { --accent: var(--rose); }
body[data-accent="teal"] { --accent: var(--teal); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--ink); color: var(--pearl);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* الضوء الخلفي: بقعتين تتحركن ببطء */
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 32vmax at 80% 10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(34vmax 30vmax at 15% 90%, rgba(127, 167, 232, .16), transparent 70%),
    radial-gradient(22vmax 20vmax at 50% 55%, rgba(232, 139, 180, .07), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift { 50% { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg); } 100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-6deg); } }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.hidden { display: none !important; }
.i { display: inline-flex; } .i svg { width: 1.15em; height: 1.15em; }
.muted { color: var(--mist); } .small { font-size: 13.5px; } .pre { white-space: pre-wrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > .field { flex: 1 1 170px; }
.row.end { align-items: flex-end; } .row.center { align-items: center; } .row.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap18 { gap: 18px; } .mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mb18 { margin-bottom: 18px; }
.grow { flex: 1; } .grow2 { flex: 2 1 220px !important; } .shrink { flex: 0 0 auto !important; } .push { margin-inline-end: auto; }
.stack18 { display: grid; gap: 18px; } .accent-text { color: var(--accent); }

/* ---------- الحماية ---------- */
.protected, .protected * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected img, .protected video { -webkit-user-drag: none; pointer-events: none; }
.shield { position: absolute; inset: 0; z-index: 2; }
body.privacy-blur .app-root, body.privacy-blur .viewer { filter: blur(30px) brightness(.45); transition: filter .15s; }
@media print { body * { display: none !important; } body::after { content: "الطباعة مسكّرة بهالمكان."; display: block; padding: 40px; color: #000; } }

/* ---------- الهيكل ---------- */
.app-root { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 18px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-inline-end: 1px solid var(--line); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 8px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 700 17px/1 var(--display); letter-spacing: 0;
  background: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--accent) 80%, #fff 0%), color-mix(in srgb, var(--accent) 30%, #000));
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.brand-name { font: 700 22px/1.1 var(--display); }
.brand-sub { font-size: 12.5px; color: var(--mist); }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--mist); font-weight: 500; transition: background .2s, color .2s; }
.nav a svg { width: 20px; height: 20px; flex: none; opacity: .85; transition: transform .3s var(--spring); }
.nav a:hover { color: var(--pearl); background: rgba(255, 255, 255, .04); }
.nav a:hover svg { transform: scale(1.12); }
.nav a.active { color: var(--pearl); background: rgba(255, 255, 255, .08); }
.nav a.active::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.person:hover { background: rgba(255, 255, 255, .05); }
.person small { display: block; color: var(--mist); font-size: 12px; line-height: 1.3; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden; position: relative; display: grid; place-items: center;
  font: 700 16px var(--display); background: linear-gradient(135deg, var(--slate), #353850); box-shadow: 0 0 0 1px var(--line-strong);
}
.avatar .ph { position: absolute; inset: 0; border-radius: 50%; }
.avatar.xs { width: 26px; height: 26px; font-size: 12px; }
.avatar.lg { width: 84px; height: 84px; font-size: 34px; }
.avatar.xl { width: 132px; height: 132px; font-size: 54px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px color-mix(in srgb, var(--accent) 70%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 30%, transparent); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 36px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .92) 40%, rgba(0, 0, 0, 0));
}
.topbar .menu-btn { display: none; }
.search {
  flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 44px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.search .i { color: var(--mist); }
.search input { flex: 1; background: none; border: 0; outline: none; min-width: 0; }
.search input::placeholder { color: var(--mist); }
.add-btn { margin-inline-start: auto; }

.page { padding: 8px clamp(16px, 3vw, 36px) 80px; max-width: 1480px; width: 100%; }
.page.enter > * { animation: rise .55s var(--ease) both; }
.page.enter > *:nth-child(2) { animation-delay: .06s; } .page.enter > *:nth-child(3) { animation-delay: .12s; } .page.enter > *:nth-child(n+4) { animation-delay: .18s; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 24px; flex-wrap: wrap; }
.page-title { font: 700 clamp(38px, 5vw, 56px)/1.15 var(--display); margin: 0; }
.page-sub { color: var(--mist); margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font: 700 28px/1.2 var(--display); margin: 0; }
.section-head a, .link { color: var(--mist); font-size: 14px; }
.section-head a:hover, .link:hover { color: var(--pearl); }
.filters { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- الأزرار والحقول ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--spring), box-shadow .2s;
}
.btn:hover { background: rgba(255, 255, 255, .09); }
.btn:active { transform: scale(.95); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: transparent; color: #0d0b1a; font-weight: 600; box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.ghost { border-color: transparent; background: none; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.sm.icon { width: 34px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--mist); cursor: pointer; font-size: 14px; transition: all .2s; }
.chip:hover { color: var(--pearl); }
.chip.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--pearl); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; color: var(--mist); }
.input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .35); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.6; }
textarea.input.tall { min-height: 220px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--slate); position: relative; cursor: pointer; transition: background .25s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--pearl); transition: transform .3s var(--spring); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(-18px); }
.error-text { color: var(--danger); font-size: 14px; min-height: 22px; margin: 4px 0 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--mist); cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--pearl); }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.panel { padding: 24px; }
.panel h2 { font: 700 24px/1.2 var(--display); margin: 0 0 6px; }
.panel .desc { color: var(--mist); font-size: 14px; margin: 0 0 18px; }

/* ---------- الرئيسية ---------- */
.hello { padding: 34px 0 4px; }
.hello h1 { font: 700 clamp(48px, 8vw, 108px)/1.12 var(--display); margin: 0; }
.hello h1 em { font-style: normal; background: linear-gradient(100deg, var(--pearl), color-mix(in srgb, var(--accent) 80%, var(--pearl)) 55%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hello .w { display: inline-block; animation: wordIn .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes wordIn { from { opacity: 0; filter: blur(12px); transform: translateY(18px); } }
.hello p { color: var(--mist); max-width: 60ch; margin: 18px 0 0; font-size: 17px; animation: rise .8s .4s var(--ease) both; }
.stats { display: flex; gap: 38px; flex-wrap: wrap; margin-top: 26px; }
.stat b { display: block; font: 600 36px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.stat span { color: var(--mist); font-size: 13.5px; }
a.stat { transition: transform .3s var(--spring); } a.stat:hover { transform: translateY(-3px); }
a.stat:hover b { color: color-mix(in srgb, var(--accent) 60%, var(--pearl)); }

.onthisday {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 340px; margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); border: 1px solid var(--line); background: var(--graphite);
}
.onthisday::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.onthisday.flat { margin-top: 0; }
.otd-media { position: relative; min-height: 340px; cursor: pointer; overflow: hidden; }
.otd-media .ph { position: absolute; inset: 0; border-radius: 0; transition: transform 6s var(--ease); }
.otd-media:hover .ph { transform: scale(1.06); }
.otd-text { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.otd-label { color: var(--mist); font-size: 14px; }
.otd-years { font: 700 50px/1.15 var(--display); color: color-mix(in srgb, var(--accent) 70%, var(--pearl)); }
.otd-text h3 { font: 600 22px/1.4 var(--sans); margin: 0; }
.otd-text p { margin: 0; }
.otd-strip { display: flex; gap: 8px; margin-top: 6px; }
.otd-strip .ph { width: 58px; height: 58px; border-radius: 12px; cursor: pointer; transition: transform .3s var(--spring); }
.otd-strip .ph:hover { transform: translateY(-4px) rotate(-3deg); }

/* ---------- المربعات ---------- */
.ph { position: relative; overflow: hidden; background: var(--slate); border-radius: var(--r-md); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.ph.loaded img { opacity: 1; transform: none; }
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.ph.loaded::before { display: none; }
.ph-empty { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 60%, var(--mist)); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 16%, var(--slate)), var(--slate)); }
.ph-empty svg { width: 30%; max-width: 46px; height: auto; }
@keyframes shimmer { to { background-position: -200% 0; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 1; cursor: pointer; border-radius: var(--r-md); overflow: hidden; animation: tileIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes tileIn { from { opacity: 0; transform: scale(.94); } }
.tile .ph { position: absolute; inset: 0; border-radius: inherit; transition: transform .6s var(--ease); }
.tile:hover .ph { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 50%); opacity: 0; transition: opacity .3s; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile-meta { position: absolute; inset-inline: 10px; bottom: 8px; z-index: 3; font-size: 13.5px; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover .tile-meta, .tile:focus-visible .tile-meta { opacity: 1; transform: none; }
.badge { position: absolute; top: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; direction: ltr; }
.badge svg { width: 13px; height: 13px; }
.badge.start { inset-inline-start: 8px; } .badge.end { inset-inline-end: 8px; }
.badge.fav { color: var(--amber); } .badge.fav svg { fill: currentColor; }
.sentinel { min-height: 1px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 290px); gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.feature-card { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; scroll-snap-align: start; transition: transform .45s var(--spring); }
.feature-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.feature-card .ph { position: absolute; inset: 0; border-radius: inherit; }
.fc-text { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 18px; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent); }
.fc-text h3 { font: 700 24px/1.25 var(--display); margin: 0 0 2px; }
.fc-text small { color: rgba(239, 236, 247, .72); }

/* ---------- المنشورات ---------- */
.feed { display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.feed-section .section-head { max-width: 620px; }
.post { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.post.in { opacity: 1; transform: none; }
.post-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 10px; }
.post-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-author b { display: block; font-weight: 600; }
.post-author small { display: block; color: var(--mist); font-size: 12.5px; line-height: 1.3; }
.post-date { color: var(--mist); font-size: 13px; white-space: nowrap; }
.post-media { position: relative; width: 100%; max-height: 78vh; background: #000; cursor: pointer; overflow: hidden; }
.post-media > .ph { position: absolute; inset: 0; border-radius: 0; }
.post-media .ph img { object-fit: cover; }
.play-big { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; z-index: 3; display: grid; place-items: center; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-strong); transition: transform .3s var(--spring); pointer-events: none; }
.play-big svg { width: 30px; height: 30px; margin-left: 5px; fill: currentColor; }
.post-media:hover .play-big { transform: scale(1.1); }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 8px 10px 2px; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--pearl); font-size: 14.5px; transition: background .2s, color .2s; }
.act:hover { background: rgba(255, 255, 255, .06); }
.act svg { width: 24px; height: 24px; transition: transform .3s var(--spring); }
.act:active svg { transform: scale(.8); }
.act.like.on { color: var(--rose); } .act.like.on svg { fill: currentColor; }
.act.fav.on { color: var(--amber); } .act.fav.on svg { fill: currentColor; }
.post-text { padding: 2px 16px 4px; }
.post-text h3 { margin: 0; font-size: 17px; font-weight: 600; }
.post-text p { margin: 2px 0 0; color: rgba(239, 236, 247, .86); white-space: pre-wrap; }
.post-comments { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.pc { margin: 0; font-size: 14.5px; } .pc b { font-weight: 600; }
.post > .link-btn { padding: 4px 16px 0; text-align: start; }
.pc-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px 16px; border-top: 1px solid var(--line); margin-top: 10px; }
.pc-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 6px 0; font-size: 15px; }
.pc-input::placeholder { color: var(--mist); }
.fresh { animation: rise .45s var(--spring) both; }
.feed-end { text-align: center; color: var(--mist); font-size: 14px; padding: 10px 0 0; }
.pop { animation: pop .45s var(--spring); }
@keyframes pop { 35% { transform: scale(1.3); } }

/* انفجار القلب */
.burst { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; color: var(--rose); }
.burst > svg { position: absolute; width: 36px; height: 36px; left: -18px; top: -18px; fill: currentColor; filter: drop-shadow(0 6px 18px rgba(232, 139, 180, .6)); animation: heartPop .85s var(--spring) forwards; }
.burst.big > svg { width: 110px; height: 110px; left: -55px; top: -55px; }
.burst i { position: absolute; width: 7px; height: 7px; left: -3.5px; top: -3.5px; border-radius: 50%; background: currentColor; animation: spark .7s var(--ease) var(--d) forwards; opacity: 0; }
.burst i:nth-child(odd) { background: var(--amber); }
@keyframes heartPop { 0% { transform: scale(0); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 55% { transform: scale(.95); } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-14px); opacity: 0; } }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

/* ---------- الألبومات ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.album-card { cursor: pointer; perspective: 800px; }
.album-card .cover { position: relative; aspect-ratio: 4/3; border-radius: var(--r-md); transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .35s var(--ease); transform-style: preserve-3d; }
.album-card .cover::before, .album-card .cover::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); background: var(--graphite); border: 1px solid var(--line); z-index: -1; transition: transform .45s var(--spring); }
.album-card .cover::before { transform: translate(-7px, 7px) rotate(-2deg); }
.album-card .cover::after { transform: translate(7px, 10px) rotate(3deg); opacity: .6; }
.album-card:hover .cover::before { transform: translate(-14px, 6px) rotate(-6deg); }
.album-card:hover .cover::after { transform: translate(14px, 8px) rotate(7deg); }
.album-card .cover .ph { position: absolute; inset: 0; }
.album-card h3 { font: 700 22px/1.3 var(--display); margin: 16px 0 0; }
.album-card p { margin: 0; color: var(--mist); font-size: 13.5px; }
.album-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; margin: 18px 0 22px; border: 1px solid var(--line); background: var(--graphite); }
.album-hero > .ph { position: absolute; inset: 0; border-radius: 0; }
.album-hero > .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .1)); z-index: 1; }
.ah-text { position: relative; z-index: 3; padding: 28px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.album-hero h1 { font: 700 clamp(34px, 5vw, 54px)/1.15 var(--display); margin: 0 0 4px; }
.album-hero p { margin: 0; color: rgba(239, 236, 247, .78); max-width: 60ch; }

/* ---------- خط الزمن ---------- */
.tl-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 36px; align-items: start; }
.calendar { position: sticky; top: 84px; padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font: 700 20px var(--display); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow { font-size: 10.5px; color: var(--mist); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 10px; border: 0; background: none; font-size: 13.5px; color: var(--mist); position: relative; cursor: default; transition: all .2s; }
.cal-day.has { color: var(--pearl); cursor: pointer; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-day.has:hover { background: color-mix(in srgb, var(--accent) 34%, transparent); transform: scale(1.08); }
.cal-day.sel { background: var(--accent); color: #0d0b1a; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.tl { position: relative; padding-inline-start: 30px; }
.tl::before { content: ""; position: absolute; inset-inline-start: 6px; top: 10px; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--line) 40%); }
.tl-year { font: 700 64px/1 var(--display); margin: 10px 0 20px; margin-inline-start: -30px; opacity: 0; transform: translateX(20px); transition: all .7s var(--ease); }
.tl-month { position: relative; margin-bottom: 30px; opacity: 0; transform: translateY(20px); transition: all .7s var(--ease); }
.tl-year.in, .tl-month.in { opacity: 1; transform: none; }
.tl-month::before { content: ""; position: absolute; inset-inline-start: -29px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); box-shadow: 0 0 10px var(--accent); }
.tl-month h3 { font: 700 22px/1.3 var(--display); margin: 0 0 12px; }
.tl-month h3 span { color: var(--mist); font: 400 13px var(--sans); margin-inline-start: 10px; }
.tl-day { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tl-day h2 { font: 700 30px var(--display); margin: 0; }

/* ---------- الملاحظات ---------- */
.notes { columns: 280px; column-gap: 14px; }
.note { break-inside: avoid; margin-bottom: 14px; padding: 18px; border-radius: var(--r-md); cursor: pointer; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--nc, var(--violet)) 11%, var(--graphite)); border-top: 3px solid var(--nc, var(--violet));
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); transition: transform .3s var(--spring); }
.note:hover { transform: translateY(-3px) rotate(.4deg); }
.note h3 { margin: 0 0 6px; font: 700 21px/1.3 var(--display); }
.note p { margin: 0; white-space: pre-wrap; color: rgba(239, 236, 247, .86); max-height: 230px; overflow: hidden; }
.note footer { margin-top: 12px; font-size: 12.5px; color: var(--mist); display: flex; gap: 10px; align-items: center; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); transition: transform .25s var(--spring); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--pearl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }

/* ---------- الملف الشخصي ---------- */
.profile-head { display: flex; gap: 30px; align-items: center; padding: 34px 0 22px; flex-wrap: wrap; }
.av-wrap { position: relative; }
.av-edit { position: absolute; bottom: 4px; inset-inline-end: 4px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent); color: #0d0b1a; display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--spring); }
.av-edit:hover { transform: scale(1.1) rotate(-8deg); } .av-edit svg { width: 20px; height: 20px; }
.ph-text { flex: 1; min-width: 240px; }
.profile-head h1 { font: 700 clamp(46px, 6vw, 72px)/1.1 var(--display); margin: 0; }
.profile-head p { margin: 4px 0 0; color: var(--mist); max-width: 56ch; }
.profile-head .stats { margin-top: 16px; }

/* ---------- الإعدادات ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.big-name { font: 700 30px/1.2 var(--display); }
.session-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.session-row:first-of-type { border-top: 0; }
.search-panel { margin-bottom: 22px; padding: 20px 20px 6px; }

/* ---------- الفراغ ---------- */
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-art { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); animation: float 4s ease-in-out infinite; }
.empty-art svg { width: 30px; height: 30px; }
@keyframes float { 50% { transform: translateY(-6px) rotate(6deg); } }
.empty h3 { font: 700 26px var(--display); margin: 0 0 6px; }
.empty p { color: var(--mist); margin: 0 auto 18px; max-width: 46ch; }

/* ---------- النوافذ ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s var(--ease); }
.overlay.closing { animation: fade .18s var(--ease) reverse forwards; }
.dialog { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: var(--r-lg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); animation: dlgIn .4s var(--spring); }
.dialog.wide { width: min(760px, 100%); }
.dialog h2 { font: 700 28px/1.2 var(--display); margin: 0 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--spring); }
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dropzone.over { transform: scale(1.02); }
.dropzone > .i svg { width: 36px; height: 36px; color: var(--accent); }
.dz-title { font-weight: 600; margin-top: 6px; }
.dropzone p { margin: 6px 0 0; color: var(--mist); font-size: 14px; }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; max-height: 240px; overflow: auto; }
.upload-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13.5px; animation: rise .3s var(--ease); }
.upload-row .thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--slate) center/cover; display: grid; place-items: center; color: var(--accent); }
.ur-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: end; }
.upload-row .bar { height: 4px; border-radius: 4px; background: var(--slate); margin-top: 6px; overflow: hidden; }
.upload-row .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--rose)); transition: width .25s; margin-inline-start: 0; }
.upload-row .st { color: var(--mist); max-width: 200px; text-align: end; }
.upload-row .st.err { color: var(--danger); } .upload-row .st.ok { color: var(--teal); }
body.dropping::after { content: "افلت الملفات هنا حتى تنضاف"; position: fixed; inset: 14px; z-index: 300; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 30px; background: rgba(0, 0, 0, .7); font: 700 40px var(--display); pointer-events: none; animation: fade .2s; }

/* ---------- العارض ---------- */
.viewer { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) 390px; background: rgba(0, 0, 0, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fade .25s var(--ease); }
.viewer.closing { animation: fade .2s var(--ease) reverse forwards; }
.viewer.no-panel { grid-template-columns: minmax(0, 1fr) 0; } .viewer.no-panel .v-panel { display: none; }
.v-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.v-media { position: relative; max-width: calc(100% - 130px); max-height: calc(100vh - 110px); display: grid; place-items: center; }
.v-media img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; display: block; border-radius: 8px; animation: vin .5s var(--ease); }
.v-media video { max-width: 100%; max-height: calc(100vh - 110px); display: block; border-radius: 8px; background: #000; pointer-events: auto; animation: vin .5s var(--ease); }
.viewer.show-mode .v-media img { animation: kenburns 5.2s ease-out both; }
@keyframes kenburns { from { transform: scale(1); opacity: 0; } 8% { opacity: 1; } to { transform: scale(1.06); } }
@keyframes vin { from { opacity: 0; transform: scale(.96); filter: blur(6px); } }
.v-media.video-mode .shield { display: none; }
.v-msg { text-align: center; color: var(--mist); max-width: 380px; } .v-msg .i svg { width: 42px; height: 42px; color: var(--accent); }
.watermark { position: absolute; left: 12px; bottom: 10px; z-index: 3; pointer-events: none; font-size: 11px; color: rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.v-top { position: absolute; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.v-group { display: flex; gap: 8px; pointer-events: auto; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
.v-nav.prev { inset-inline-start: 14px; } .v-nav.next { inset-inline-end: 14px; }
.v-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(20, 21, 28, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .25s var(--spring); }
.v-btn:hover { background: rgba(255, 255, 255, .14); transform: scale(1.08); }
.v-btn.v-nav:hover { transform: translateY(-50%) scale(1.08); }
.v-btn svg { width: 20px; height: 20px; }
.v-counter { align-self: center; color: var(--mist); font-size: 13.5px; padding: 0 10px; }
.v-panel { border-inline-start: 1px solid var(--line); background: var(--glass-strong); display: flex; flex-direction: column; min-height: 0; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } }
.v-info { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.v-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.v-author b { display: block; } .v-author small { display: block; color: var(--mist); font-size: 12.5px; line-height: 1.3; }
.v-info h2 { font: 700 28px/1.25 var(--display); margin: 0 0 6px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mist); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.chip-link:hover { color: var(--pearl); }
.v-info .desc { white-space: pre-wrap; color: rgba(239, 236, 247, .88); margin: 10px 0 0; }
.v-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.like-btn.on { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 50%, transparent); }
.fav-btn.on { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.like-btn.on svg, .fav-btn.on svg { fill: currentColor; }
.v-comments { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.likers { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--rose); } .likers svg { fill: currentColor; }
.comment { display: flex; gap: 10px; font-size: 14.5px; }
.comment .avatar { width: 30px; height: 30px; font-size: 13px; }
.c-body b { font-weight: 600; margin-inline-end: 6px; }
.c-meta { display: flex; gap: 8px; } .c-meta time { color: var(--mist); font-size: 12px; }
.comment .del { background: none; border: 0; color: var(--mist); cursor: pointer; font-size: 12px; padding: 0; }
.comment .del:hover { color: var(--danger); }
.v-compose { display: flex; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.v-compose input { flex: 1; }
.v-compose .btn.icon svg { transform: scaleX(-1); }
.pc-form .act svg { transform: scaleX(-1); }
.slideshow-bar { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--rose), var(--accent)); z-index: 6; width: 0; }

/* ---------- التنبيهات ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 11px 20px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); font-size: 14.5px; animation: toastIn .4s var(--spring); }
.toast.out { animation: fade .3s reverse forwards; }
.toast.err { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: #ffd2d2; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ---------- الدخول ---------- */
.center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(410px, 100%); padding: 34px 32px 28px; text-align: center; background: var(--glass); border: 1px solid var(--line-strong); border-radius: 32px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); animation: dlgIn .7s var(--spring); }
.login > .avatar { margin: 0 auto 14px; }
.login h1 { font: 700 42px/1.2 var(--display); margin: 0 0 4px; }
.login > p { color: var(--mist); margin: 0 0 24px; font-size: 15px; }
.login form { text-align: start; display: flex; flex-direction: column; }
.login form .btn { width: 100%; height: 48px; margin-top: 6px; }
.orbit { position: relative; width: 132px; height: 132px; margin: 0 auto 10px; }
.o-ring { position: absolute; inset: 16px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 24s linear infinite; }
.o-dot { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; display: grid; place-items: center; font: 700 24px var(--display); animation: orbit 7s linear infinite; }
.o-h { background: linear-gradient(135deg, #2a2c3c, #414560); box-shadow: 0 0 0 1px var(--line-strong), 0 8px 30px rgba(127, 167, 232, .35); }
.o-n { background: radial-gradient(circle at 70% 25%, var(--rose), #5a3170); box-shadow: 0 0 0 1px var(--line-strong), 0 8px 30px rgba(232, 139, 180, .45); animation-delay: -3.5s; }
@keyframes orbit { from { transform: rotate(0deg) translateX(40px) rotate(0deg); } to { transform: rotate(360deg) translateX(40px) rotate(-360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.who button { height: 50px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .25); cursor: pointer; font: 700 22px var(--display); transition: all .25s var(--spring); }
.who button:hover { transform: translateY(-2px); }
.who button.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.lock-note { margin-top: 18px; font-size: 12.5px; color: var(--mist); display: flex; justify-content: center; align-items: center; gap: 6px; }
.lock-note svg { width: 14px; height: 14px; flex: none; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 60px auto; }
.sentinel .spinner { margin: 20px auto; }
.scrim { display: none; }
.tabbar { display: none; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 1100px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .v-panel { max-height: 46vh; border-inline-start: 0; border-top: 1px solid var(--line); }
  .v-media, .v-media img, .v-media video { max-height: calc(54vh - 40px); }
  .tl-layout { grid-template-columns: 1fr; }
  .calendar { position: static; max-width: 440px; }
}
@media (max-width: 860px) {
  .app-root { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; transform: translateX(102%); transition: transform .35s var(--ease); background: var(--glass-strong); }
  body.nav-open .sidebar { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .6); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .5); }
  .topbar .menu-btn { display: inline-flex; }
  .add-btn { display: none; }
  .page { padding-bottom: 110px; }
  .tabbar { display: flex; position: fixed; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; height: 64px; border-radius: 22px; align-items: center; justify-content: space-around;
    background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--mist); min-width: 54px; padding: 4px; transition: color .2s; }
  .tabbar a .i svg { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--pearl); } .tabbar a.active .i { color: var(--accent); }
  .tab-add { width: 52px; height: 52px; border-radius: 18px; border: 0; background: var(--accent); color: #0d0b1a; display: grid; place-items: center; box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 50%, transparent); cursor: pointer; transition: transform .25s var(--spring); }
  .tab-add:active { transform: scale(.9); } .tab-add .i svg { width: 26px; height: 26px; }
  .onthisday { grid-template-columns: 1fr; } .otd-media { min-height: 250px; }
  .otd-text { padding: 22px; } .otd-years { font-size: 40px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .tile, .tile .ph { border-radius: 6px; }
  .feed { gap: 16px; }
  .post { border-radius: 20px; }
  .v-media { max-width: calc(100% - 16px); }
  .v-nav { top: auto; bottom: 14px; transform: none; } .v-btn.v-nav:hover { transform: scale(1.08); }
  .hello { padding-top: 14px; } .stats { gap: 22px; } .stat b { font-size: 28px; }
  .toasts { bottom: 90px; }
  .profile-head { gap: 18px; padding-top: 18px; } .avatar.xl { width: 104px; height: 104px; font-size: 42px; }
  .settings { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .post, .tl-year, .tl-month { opacity: 1; transform: none; }
}

/* عمود جانبي جنب المنشورات بالشاشات الكبيرة */
.feed-wrap { display: grid; grid-template-columns: minmax(0, 620px) minmax(260px, 340px); gap: 32px; align-items: start; }
.feed-section .section-head { max-width: 620px; }
.feed-aside { position: sticky; top: 84px; display: grid; gap: 16px; }
.feed-aside .panel { padding: 18px; display: grid; gap: 14px; }
.side-person { display: flex; align-items: center; gap: 14px; }
.side-person .avatar.lg { width: 58px; height: 58px; font-size: 24px; }
.side-person b { display: block; font: 700 24px/1.2 var(--display); }
.side-person small { display: block; color: var(--mist); font-size: 13px; line-height: 1.4; }
.aside-title { font: 700 20px var(--display); margin: 0; }
.mini-album { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.mini-album .ph { width: 52px; height: 52px; border-radius: 12px; }
.mini-album b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-album small { color: var(--mist); font-size: 12.5px; }
@media (max-width: 1180px) { .feed-wrap { grid-template-columns: minmax(0, 620px); } .feed-aside { display: none; } }
