/* ============================================================
   iCinema — social pages: login, profile, people, feed,
   notifications, settings.
   ============================================================ */
.social-page {
  background:
    radial-gradient(900px 520px at 88% -4%, rgba(216, 28, 63, 0.13), transparent 66%),
    radial-gradient(760px 520px at 6% 30%, rgba(245, 183, 60, 0.05), transparent 64%),
    var(--bg);
}
.social-main { padding-top: calc(var(--header-h) + 22px); padding-bottom: 80px; max-width: 1080px; }

.muted { color: var(--text-faint); }
.small-note { font-size: 13px; padding: 6px 2px; }
.link-btn { color: var(--text-dim); font-size: 13px; font-weight: 600; transition: color var(--fast) var(--ease); }
.link-btn:hover { color: var(--gold); }
.primary-btn.small, .secondary-btn.small { height: 38px; padding-inline: 16px; font-size: 13px; }

.icon-ghost {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 18px; color: var(--text-dim);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-ghost:hover { background: var(--surface-2); color: var(--text); }
.icon-ghost.round { width: 42px; height: 42px; border: 1px solid var(--line-strong); }

.social-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.sk-line { height: 92px; border-radius: var(--radius-lg); }

.lock-panel, .empty-panel {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 44px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.lock-panel b, .empty-panel b { font-size: 34px; font-weight: 400; color: var(--text-faint); }
.lock-panel p, .empty-panel p { color: var(--text-dim); font-size: 14px; max-width: 42ch; }
.empty-panel.big { margin-top: 40px; padding: 64px 20px; }
.empty-panel h2 { font-size: 1.3rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--text-dim); margin-top: 4px; }

/* ---------- modal ---------- */
.social-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(3, 3, 6, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fadeIn var(--fast) var(--ease) both;
}
.social-modal-card {
  width: min(460px, 100%); max-height: 82vh;
  display: flex; flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: var(--raise);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn var(--mid) var(--ease-out) both;
}
.social-modal-card header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.social-modal-card h2 { font-size: 1rem; }
.social-modal-body { overflow-y: auto; padding: 10px; }
.social-modal-body .zoomed { width: 100%; border-radius: var(--radius); }
.social-modal-card:has(.zoomed) { width: min(920px, 100%); }
.people-list { display: flex; flex-direction: column; gap: 2px; }
.mini-person { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: var(--radius); transition: background var(--fast) var(--ease); }
.mini-person:hover { background: var(--surface); }
.mini-person .avatar-img { width: 42px; height: 42px; flex: none; }
.mini-person span { display: flex; flex-direction: column; }
.mini-person small { color: var(--text-faint); font-size: 12px; }

/* ============================================================
   Login / register
   ============================================================ */
.auth-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
}
@media (min-width: 860px) { .auth-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

.auth-side h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin: 18px 0 12px; }
.auth-side p { color: var(--text-dim); font-size: 15.5px; max-width: 46ch; }
.auth-logo { width: min(220px, 60%); height: 72px; object-fit: cover; object-position: center; }
.auth-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--text-dim); }
.auth-perks b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-hot); font-weight: 400; }

.auth-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(26, 26, 35, 0.94), rgba(16, 16, 23, 0.96));
  box-shadow: var(--shadow-lg);
  animation: popIn var(--mid) var(--ease-out) both;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: var(--bg); margin-bottom: 6px; }
.auth-tabs button { padding: 10px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; color: var(--text-faint); transition: all var(--fast) var(--ease); }
.auth-tabs button.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }

.auth-form label, .settings label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.auth-form label small, .settings label small { color: var(--text-faint); font-weight: 500; }
.auth-form input, .settings input:not([type="radio"]):not([type="file"]), .settings textarea {
  width: 100%;
  min-height: 48px; padding: 12px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 15px; color: var(--text);
  outline: none; resize: vertical;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.auth-form input:focus, .settings input:focus, .settings textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.password-field { position: relative; display: block; }
.password-field .link-btn { position: absolute; inset-block: 0; inset-inline-start: 12px; font-size: 12px; }
.auth-error { padding: 10px 13px; border-radius: var(--radius); background: var(--brand-soft); color: #ff9aac; font-size: 13.5px; }
.auth-submit { justify-content: center; margin-top: 4px; }

/* ============================================================
   Profile
   ============================================================ */
.profile-hero {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--raise);
  overflow: hidden;
  padding-bottom: 20px;
  animation: riseIn var(--slow) var(--ease-out) both;
}
.profile-cover {
  position: relative;
  height: clamp(150px, 26vw, 280px);
  background-size: cover; background-position: center;
}
.profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 16, 23, 0.85), transparent 60%); }
.profile-cover.no-cover {
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(240, 42, 80, 0.55), transparent 60%),
    radial-gradient(60% 110% at 10% 100%, rgba(245, 183, 60, 0.28), transparent 60%),
    linear-gradient(135deg, #2a0a14, #120a18 60%, #0b0b12);
}
.cover-edit, .avatar-edit {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer;
  background: rgba(6, 6, 10, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--spring);
}
.cover-edit { inset-block-start: 14px; inset-inline-end: 14px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; }
.cover-edit:hover, .avatar-edit:hover { background: var(--brand); transform: scale(1.04); }

.profile-identity {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px;
  padding: 0 clamp(16px, 3vw, 28px);
  margin-top: clamp(-70px, -9vw, -50px);
}
.profile-avatar-wrap { position: relative; width: clamp(104px, 15vw, 148px); aspect-ratio: 1; flex: none; }
.profile-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 5px solid var(--raise);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.online-dot.big { width: 22%; height: 22%; border-width: 4px; border-color: var(--raise); }
.avatar-edit { inset-block-end: 4%; inset-inline-start: 4%; width: 38px; height: 38px; justify-content: center; border-radius: 50%; font-size: 16px; }

.profile-names { flex: 1; min-width: 180px; padding-bottom: 6px; }
.profile-names h1 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.profile-names span { color: var(--text-faint); font-size: 14px; }
.online-text { color: var(--green); font-weight: 700; }

.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 6px; }

/* "Friends ✓" quietly turns into the way out on hover, like most networks. */
.friends-btn em { display: none; font-style: normal; }
.friends-btn:hover span { display: none; }
.friends-btn:hover em { display: inline; }
.friends-btn:hover { background: var(--brand-soft); border-color: rgba(216, 28, 63, 0.5); color: #ff9aac; }

.menu-wrap { position: relative; }
.pop-menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 30;
  min-width: 200px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(18, 18, 26, 0.98);
  box-shadow: var(--shadow-lg);
  animation: menuIn 0.2s var(--ease-out) both;
}
.pop-menu[hidden] { display: none; }
.pop-menu button { padding: 10px 12px; border-radius: var(--radius-sm); text-align: start; font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.pop-menu button:hover { background: var(--surface-2); color: var(--text); }
.pop-menu .danger:hover { background: var(--brand); color: #fff; }

.profile-bio { padding: 16px clamp(16px, 3vw, 28px) 0; font-size: 15px; line-height: 1.75; white-space: pre-wrap; max-width: 70ch; }
.profile-bio a, .post-body a, .comment-bubble p a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px clamp(16px, 3vw, 28px) 0; font-size: 13px; color: var(--text-faint); }
.profile-meta a { color: var(--gold); direction: ltr; }
.mutual-pill { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: #ff9aac; font-weight: 700; }

.profile-stats { display: flex; gap: 8px; padding: 16px clamp(16px, 3vw, 28px) 0; }
.stat {
  display: flex; flex-direction: column; align-items: center;
  min-width: 88px; padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--spring);
}
.stat:hover { border-color: var(--brand); transform: translateY(-2px); }
.stat strong { font-size: 1.3rem; font-weight: 800; }
.stat span { font-size: 12px; color: var(--text-faint); }

.profile-tabs {
  position: sticky; top: calc(var(--header-h) - 6px); z-index: 20;
  display: flex; gap: 4px;
  margin: 18px 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(16, 16, 23, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.profile-tabs button { flex: 1; padding: 10px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; color: var(--text-faint); transition: all var(--fast) var(--ease); }
.profile-tabs button:hover { color: var(--text); }
.profile-tabs button.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.profile-panel { display: flex; flex-direction: column; gap: 16px; animation: fadeIn var(--mid) var(--ease) both; }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 16vw, 160px), 1fr)); gap: 16px; }
.fav-card { display: flex; flex-direction: column; gap: 7px; }
.fav-poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.fav-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease-out); }
.fav-card:hover .fav-poster img { transform: scale(1.07); }
.fav-poster i { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(216, 28, 63, 0.92); color: #fff; font-style: normal; font-size: 13px; }
.fav-card strong { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav-card small { font-size: 11.5px; color: var(--text-faint); }

/* ============================================================
   People
   ============================================================ */
.people-search {
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding-inline: 20px;
  margin-bottom: 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--raise);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.people-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.people-search span { font-size: 20px; color: var(--text-faint); }
.people-search input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; color: var(--text); }

.people-section { margin-bottom: 28px; }
.people-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.count-pill { min-width: 24px; height: 24px; padding-inline: 7px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font-size: 12px; }
details.sent summary { cursor: pointer; color: var(--text-dim); font-weight: 700; margin-bottom: 12px; }
.guest-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 26px; border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px solid rgba(216, 28, 63, 0.35); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.person-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--raise);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease);
  animation: riseIn var(--mid) var(--ease-out) both;
}
.person-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.person-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.person-avatar { position: relative; width: 54px; height: 54px; flex: none; font-size: 18px; }
.person-names { display: flex; flex-direction: column; min-width: 0; }
.person-names strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-names small { font-size: 12px; color: var(--text-faint); }
.person-names .mutual { color: #ff9aac; font-weight: 600; }
.person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }

/* ============================================================
   Posts
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.load-more { align-self: center; margin-top: 16px; height: 44px; justify-content: center; }
.load-more[hidden] { display: none; }

.post {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--raise);
  overflow: hidden;
  animation: riseIn var(--mid) var(--ease-out) both;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.post.highlight { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 183, 60, 0.15); }
.post.removing { opacity: 0; transform: scale(0.97); }

.post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.post-author { display: flex; align-items: center; gap: 11px; min-width: 0; }
.post-avatar { position: relative; width: 44px; height: 44px; flex: none; font-size: 15px; }
.post-author span:last-child { display: flex; flex-direction: column; min-width: 0; }
.post-author strong { font-size: 14.5px; }
.post-author:hover strong { color: var(--gold); }
.post-author small { font-size: 12px; color: var(--text-faint); }

.post-body { padding: 12px 16px 0; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-image { display: block; width: 100%; max-height: 560px; object-fit: cover; margin-top: 12px; background: var(--surface-2); cursor: zoom-in; }
.post-video { display: block; width: 100%; max-height: 560px; margin-top: 12px; background: #000; }

.post-film {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin: 12px 16px 0; padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(110deg, rgba(216, 28, 63, 0.12), var(--surface));
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease-out);
}
.post-film:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-film img, .post-film-blank { width: 74px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 26px; }
.post-film span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-film small { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; }
.post-film strong { font-size: 15px; line-height: 1.3; }
.post-film em { font-style: normal; font-size: 12px; color: var(--text-faint); }
.post-film-play { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.post-stats { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px 0; min-height: 10px; }
.post-stats .link-btn { color: var(--text-faint); font-size: 12.5px; }
.post-stats [data-likers] { color: #ff8da0; }

.post-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; padding: 6px 10px; border-top: 1px solid var(--line); }
.post-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 700; color: var(--text-dim);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.post-action i { font-style: normal; font-size: 16px; }
.post-action:hover { background: var(--surface-2); color: var(--text); }
.like-btn.liked { color: var(--brand-hot); }
.like-btn.pop i { animation: dockPop 0.44s var(--spring); }

.post-editor { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 0; }
.post-editor textarea { min-height: 96px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--brand); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.post-editor div { display: flex; justify-content: flex-end; gap: 8px; }

.comments { padding: 4px 16px 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.14); }
.comment-list { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.comment { display: flex; gap: 9px; animation: popIn var(--fast) var(--ease-out) both; }
.comment-avatar { width: 34px; height: 34px; flex: none; font-size: 12px; }
.comment-bubble { min-width: 0; }
.comment-bubble > a strong { font-size: 13px; }
.comment-bubble p {
  margin-top: 3px; padding: 9px 13px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface-2);
  font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.comment-bubble small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-faint); }
.comment-bubble small .link-btn { font-size: 11.5px; color: var(--text-faint); }
.comment-bubble small .link-btn:hover { color: var(--brand-hot); }
.comment-form { display: flex; align-items: center; gap: 9px; }
.comment-me { width: 34px; height: 34px; flex: none; font-size: 12px; }
.comment-form input { flex: 1; height: 42px; padding-inline: 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 14px; outline: none; }
.comment-form input:focus { border-color: var(--brand); }
.send-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; transition: transform var(--fast) var(--spring); }
.send-btn:hover { transform: scale(1.08); background: var(--brand-hot); }

/* ---------- composer ---------- */
.composer {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(26, 26, 35, 0.9), var(--raise));
  box-shadow: var(--shadow-sm);
}
.composer-row { display: flex; gap: 12px; align-items: flex-start; }
.composer-avatar { width: 44px; height: 44px; flex: none; font-size: 15px; }
.composer textarea {
  flex: 1; min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--text); font: inherit; font-size: 15px; line-height: 1.6;
  resize: none; outline: none;
  transition: border-color var(--fast) var(--ease);
}
.composer textarea:focus { border-color: var(--brand); }
.composer-preview { display: flex; flex-direction: column; gap: 10px; }
.composer-preview[hidden] { display: none; }
.preview-image, .preview-film { position: relative; }
.preview-image img, .preview-image video { display: block; max-width: 100%; max-height: 280px; border-radius: var(--radius); }
.preview-filename { display: block; max-width: 100%; margin-top: 5px; color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-film .post-film { margin: 0; pointer-events: none; }
.preview-image button, .preview-film button {
  position: absolute; inset-block-start: 8px; inset-inline-end: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(6, 6, 10, 0.8); color: #fff; font-size: 17px;
}
.film-picker { display: flex; flex-direction: column; gap: 8px; }
.film-picker[hidden] { display: none; }
.film-picker input { height: 44px; padding-inline: 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); outline: none; }
.film-picker input:focus { border-color: var(--brand); }
.film-results { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.film-hit { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; align-items: center; padding: 7px; border-radius: var(--radius-sm); text-align: start; }
.film-hit:hover { background: var(--surface-2); }
.film-hit img { width: 36px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.film-hit span { display: flex; flex-direction: column; min-width: 0; }
.film-hit strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-hit small { font-size: 11.5px; color: var(--text-faint); }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.composer-tool {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding-inline: 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.composer-tool:hover { background: var(--surface-3); color: var(--text); }
.composer-count { margin-inline-start: auto; font-size: 12px; color: var(--text-faint); }
.composer .primary-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ============================================================
   Feed
   ============================================================ */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 980px) { .feed-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.feed-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feed-tabs { display: flex; gap: 6px; }
.feed-tabs button { padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--raise); font-size: 13.5px; font-weight: 700; color: var(--text-dim); transition: all var(--fast) var(--ease); }
.feed-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.feed-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
@media (max-width: 979px) { .feed-side { display: none; } }
.side-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--raise); }
.side-card h3 { font-size: 14px; }
.side-card .person-card { padding: 8px; border: 0; background: none; animation: none; }
.side-card .person-card:hover { transform: none; box-shadow: none; background: var(--surface); }
.side-card .person-avatar { width: 42px; height: 42px; }
.side-card .person-card { flex-wrap: wrap; }
.me-card { flex-direction: row; align-items: center; }
.me-card .avatar-img { width: 50px; height: 50px; flex: none; font-size: 17px; }
.me-card span { display: flex; flex-direction: column; }
.me-card small { font-size: 12px; color: var(--gold); }

/* ============================================================
   Notifications
   ============================================================ */
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--raise);
  animation: riseIn var(--mid) var(--ease-out) both;
}
.note.unread { border-color: rgba(216, 28, 63, 0.4); background: linear-gradient(110deg, rgba(216, 28, 63, 0.1), var(--raise) 60%); }
.note-main { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; }
.note-avatar { position: relative; width: 48px; height: 48px; flex: none; font-size: 16px; }
.note-avatar i {
  position: absolute; inset-block-end: -3px; inset-inline-end: -3px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--raise);
  background: var(--brand); color: #fff; font-style: normal; font-size: 10px;
}
.note-friend_accept .note-avatar i { background: var(--green); }
.note-post_comment .note-avatar i { background: #3b82f6; }
.note-comment_reply .note-avatar i { background: #7c55d9; }
.note-room_invite { border-color: rgba(145,91,230,.34); background: linear-gradient(110deg,rgba(104,59,177,.14),var(--raise) 62%); }
.note-room_invite .note-avatar i { background: linear-gradient(145deg,#9b61ef,#e11e50); }
.room-invite-actions .primary-btn { background: linear-gradient(135deg,#8453d4,#dc1648); }
.note-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.note-text strong { color: var(--text); }
.note-text em { display: block; font-style: normal; color: var(--text-faint); font-size: 12.5px; }
.note-text small { display: block; color: var(--text-faint); font-size: 11.5px; }
.note-actions { display: flex; gap: 6px; }

/* ============================================================
   Settings
   ============================================================ */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.settings-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2.6vw, 24px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--raise); }
.settings-card h2 { font-size: 1.05rem; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

.photo-editor { position: relative; padding-bottom: 46px; }
.cover-preview { height: 170px; border-radius: var(--radius); background-size: cover; background-position: center; position: relative; }
.cover-preview.no-cover { background: linear-gradient(135deg, #2a0a14, #120a18 60%, #0b0b12); }
.cover-preview .photo-buttons { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; }
.avatar-preview { position: absolute; inset-block-end: 0; inset-inline-start: 18px; display: flex; align-items: flex-end; gap: 12px; }
.avatar-preview .profile-avatar { width: 108px; height: 108px; border-width: 4px; font-size: 2rem; }
.photo-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-buttons label.secondary-btn { display: inline-flex; flex-direction: row; cursor: pointer; color: var(--text); }

.privacy-row { border: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.privacy-row:last-of-type { border-bottom: 0; }
.privacy-row legend { float: inline-start; display: flex; flex-direction: column; }
.privacy-row legend small { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.segmented { display: inline-flex; padding: 4px; gap: 3px; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--line); }
.segmented label { position: relative; flex-direction: row; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 15px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; color: var(--text-faint); transition: all var(--fast) var(--ease); }
.segmented input:checked + span { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.settings-save {
  position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; justify-content: flex-end;
}
@media (min-width: 981px) { .settings-save { bottom: 18px; } }
.settings-save .primary-btn { box-shadow: var(--shadow-lg), var(--shadow-brand); }

.blocked-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.blocked-row .avatar-img { width: 40px; height: 40px; flex: none; }
.blocked-row span { flex: 1; display: flex; flex-direction: column; }
.blocked-row small { font-size: 12px; color: var(--text-faint); }
.danger-zone { border-color: rgba(216, 28, 63, 0.3); }

@media (max-width: 560px) {
  .profile-stats { overflow-x: auto; }
  .stat { min-width: 76px; }
  .post-film { grid-template-columns: 58px minmax(0, 1fr); }
  .post-film img, .post-film-blank { width: 58px; }
  .post-film-play { grid-column: 1 / -1; text-align: center; }
  .person-card { flex-wrap: wrap; }
  .person-actions { width: 100%; justify-content: stretch; }
  .person-actions > * { flex: 1; justify-content: center; }
  .privacy-row { flex-direction: column; align-items: stretch; }
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .segmented span { text-align: center; }
}
.profile-names span.verified-badge { width:23px; height:23px; margin-inline-start:6px; color:#fff; font-size:inherit; vertical-align:-3px; box-shadow:0 0 0 3px var(--bg, #07090d),0 4px 16px rgba(22,140,255,.58); }


/* iCinema 2.1.3 QA — social profile links / inline comment threads */
.profile-social-links {
  display:flex; flex-wrap:wrap; gap:9px; margin:14px 0 10px;
}
.profile-social-card {
  display:flex; align-items:center; gap:8px; max-width:100%; min-width:155px;
  border:1px solid rgba(255,255,255,.13); border-radius:14px;
  background:linear-gradient(140deg,rgba(255,255,255,.09),rgba(255,255,255,.035));
  padding:9px 12px; color:#eef3fa; text-decoration:none;
  transition:border-color .15s,transform .15s;
}
.profile-social-card:hover,.profile-social-card:focus-visible {
  border-color:var(--social-accent,#fff);transform:translateY(-1px);
}
.profile-social-name {font-weight:800;color:var(--social-accent,#fff)}
.profile-social-handle {font-size:.85em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-social-card > [aria-hidden] {margin-inline-start:auto}
.social-settings {margin:12px 0 18px;padding:16px;border:1px solid rgba(255,255,255,.11);border-radius:18px;background:rgba(255,255,255,.025)}
.social-settings h3 {font-size:1.03rem;margin:0 0 7px}
.social-settings-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:13px}
.social-settings-grid label {display:grid;gap:5px;font-weight:700}
.social-settings-grid input {min-width:0;width:100%;direction:ltr;text-align:left}
.comment.threaded {margin-inline-start:18px;padding-inline-start:10px;border-inline-start:2px solid rgba(130,182,243,.5)}
.comment-parent {display:block;color:#9bc5fa;font-weight:700;margin-top:5px}
.comment-reply-state {padding:6px 9px;margin:0 0 8px;border-radius:10px;background:rgba(81,142,211,.15);color:#bedafb;display:flex;gap:10px;align-items:center}
.comment-reply-state button {background:none;border:0;color:inherit;cursor:pointer}
@media(max-width:520px){
  .profile-social-card {min-width:calc(50% - 5px);flex:1 1 calc(50% - 5px)}
  .social-settings-grid {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .profile-social-card{transition:none}
  .profile-social-card:hover{transform:none}
}

/* iCinema 2.1.3 — genuine branded social icons and clearer Facebook-style comments */
.profile-social-links { gap: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(177px, 1fr)); }
.profile-social-card {
  display:flex; align-items:center; gap:11px; width:100%; min-width:0; min-height:65px;
  padding:10px 12px; border:1px solid rgba(255,255,255,.12); border-radius:17px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(21,27,40,.78));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 5px 17px rgba(0,0,0,.14);
}
.profile-social-card:focus-visible { outline:2px solid #dce8fa; outline-offset:3px; }
.profile-social-logo {
  width:41px; height:41px; flex:none; border-radius:13px;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--social-accent,#303848);
  box-shadow:0 5px 15px rgba(0,0,0,.18);
}
.profile-social-logo.instagram { background:linear-gradient(135deg,#7342c6 0%,#d93483 49%,#ffad46 100%); }
.profile-social-logo.tiktok { background:#090b0f; box-shadow:inset 0 0 0 1px #28303b,0 5px 12px #0005; }
.profile-social-logo.snapchat { background:#fffc00; }
.profile-social-logo.telegram { background:#229ed9; }
.profile-social-logo img { width:23px; height:23px; display:block; }
.profile-social-identity { min-width:0; display:flex; flex:1; flex-direction:column; gap:3px; }
.profile-social-identity .profile-social-name {font-size:13px; font-weight:850; color:#f2f5fa;}
.profile-social-identity .profile-social-handle {font-size:11.5px; color:#abb8ca; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.profile-social-arrow {color:#bec9d7; font-size:15px;}
.profile-social-card:hover {border-color:var(--social-accent,#f2f5fa);background:rgba(255,255,255,.105);}
.social-settings-label > span {display:flex;align-items:center; gap:8px;}
.social-settings-label .profile-social-logo {width:29px;height:29px;border-radius:9px;}
.social-settings-label .profile-social-logo img {width:18px;height:18px;}

.comment-list {gap:13px;}
.comment {gap:9px; align-items:flex-start;}
.comment-main {flex:1; min-width:0; max-width:100%;}
.comment-bubble {
  background:#1a2230; border:1px solid rgba(255,255,255,.075);
  border-radius:16px; padding:10px 13px; max-width:100%;
  box-shadow:0 3px 13px rgba(0,0,0,.12);
}
.comment-bubble .comment-meta {display:flex; justify-content:space-between; gap:10px; align-items:center;}
.comment-bubble .comment-meta strong {color:#f3f7fc; font-size:13px; font-weight:800;}
.comment-bubble .comment-meta time {font-size:10.5px; color:#a6b4c6; white-space:nowrap;}
.comment-bubble .comment-body {font-size:13.8px; line-height:1.75; color:#eaf0f8; margin:6px 0 0; overflow-wrap:anywhere;}
.comment-edited {display:block; margin-top:4px; color:#b3bece; font-size:10px;}
.comment-controls {display:flex; flex-wrap:wrap; gap:4px; align-items:center; padding:4px 4px 2px;}
.comment-control {
  display:inline-flex; justify-content:center; align-items:center; gap:4px;
  background:transparent; color:#bbc9db; font:700 11.5px inherit;
  border:0; border-radius:9px; min-height:31px; padding:5px 8px; cursor:pointer;
}
.comment-control:hover,.comment-control:focus-visible {background:rgba(255,255,255,.10);color:#fff;}
.comment-control.danger:hover {color:#ff8198;}
.comment-controls .comment-reactions-summary {display:inline-flex;gap:5px;align-items:center;margin-inline-start:auto;color:#cfdbec;font-size:11px;}
.comment-reaction-icons {display:inline-flex;direction:ltr;margin-inline-end:1px;}
.comment-reaction-icons span {margin-inline-start:-3px;filter:drop-shadow(0 1px 3px #0009);}
.comment-my-reaction {font-size:12px;}
.comment-reaction-picker {display:flex; width:max-content; max-width:100%; flex-wrap:wrap; gap:3px; border:1px solid #ffffff32; background:#172232; padding:6px; border-radius:99px; box-shadow:0 9px 24px #0007; margin:3px 0 8px;}
.comment-reaction-picker[hidden] {display:none;}
.comment-reaction-picker button {border:none; background:transparent; font-size:21px; width:35px;height:35px;border-radius:50%; cursor:pointer;transition:transform .15s;}
.comment-reaction-picker button:hover,.comment-reaction-picker button:focus-visible {background:#ffffff24;transform:scale(1.12);}
.comment.reacted .like-comment {color:#ff879c;}
.comment-edit-form {margin:6px 0 9px; padding:11px; background:#111b28; border:1px solid #6388aa66; border-radius:14px;}
.comment-edit-form[hidden] {display:none;}
.comment-edit-form textarea {width:100%; min-height:64px; resize:vertical; border-radius:9px; color:#f0f5ff; background:#101720; border:1px solid #ffffff4b; padding:9px; font:inherit;}
.comment-edit-buttons {display:flex; gap:7px; align-items:center; justify-content:flex-end; margin-top:9px;}
.comment.threaded {margin-inline-start:18px;border-inline-start:2px solid rgba(135,181,248,.47);padding-inline-start:9px;}
.comment-parent {color:#9cc7ff; display:inline-block; font-size:11.5px; font-weight:700;}
@media(max-width:560px) {
  .profile-social-links {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .profile-social-card {padding:7px;min-height:60px;gap:7px;}
  .profile-social-logo {width:35px;height:35px;border-radius:11px;}
  .profile-social-logo img {width:20px;height:20px;}
  .profile-social-name {font-size:12px;}
  .comment-controls {gap:1px;}
  .comment-control {padding:5px 6px;font-size:11px;}
  .comment-control span {display:inline;}
}
@media(max-width:375px) {
  .profile-social-links {grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce) {
  .comment-reaction-picker button {transition:none;}
}


/* 2026-10-26 iCinema compact polish — mobile-first, RTL-safe.
   Intentional end-of-file overrides for legacy selectors above. */
.profile-social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 11px clamp(12px, 3vw, 22px) 8px;
}
.profile-social-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 9px;
  border-radius: 12px;
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(135deg,rgba(255,255,255,.065),rgba(22,29,39,.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  text-decoration: none;
  transform: none;
}
.profile-social-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 9px;
  box-shadow: none;
}
.profile-social-logo img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.profile-social-identity {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.profile-social-identity .profile-social-name {
  color: #f2f5fc;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-social-identity .profile-social-handle {
  color: #aebbd0;
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-social-arrow {
  flex: none;
  margin-inline-start: auto;
  color: #aebbd0;
  font-size: 11px;
}
.profile-social-card:hover {
  background: rgba(255,255,255,.095);
  border-color: var(--social-accent,#9dabbd);
  transform: none;
}
.social-settings-label .profile-social-logo {
  width: 25px;
  height: 25px;
  min-width: 25px;
  border-radius: 7px;
}
.social-settings-label .profile-social-logo img { width: 14px; height: 14px; }
.social-settings-grid { gap: 10px; }

/* Posts, thread bubbles, and controls share compact shape/spacing. */
.post-list { gap: 12px; }
.post { border-color: rgba(255,255,255,.105); }
.post-head { gap: 8px; padding: 12px 14px 0; }
.post-body { padding: 10px 14px 0; font-size: 14px; line-height: 1.65; }
.post-stats { padding: 8px 14px 0; }
.post-actions { padding: 4px 9px; gap: 3px; }
.post-action { height: 36px; gap: 5px; font-size: 12px; }
.post-action i { font-size: 14px; }
.comment-list { gap: 9px; padding: 9px 0; }
.comment { gap: 7px; }
.comment-avatar { width: 30px; height: 30px; font-size: 11px; }
.comment-main { min-width: 0; flex: 1 1 auto; }
.comment-bubble {
  padding: 9px 11px;
  border-radius: 13px;
  border-color: rgba(255,255,255,.075);
  background: #1a2330;
  box-shadow: none;
}
.comment-bubble .comment-meta { gap: 8px; }
.comment-bubble .comment-meta strong { font-size: 12px; }
.comment-bubble .comment-meta time { font-size: 10px; }
.comment-bubble .comment-body {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.6;
  color: #eef3fb;
}
.comment-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 5px;
  padding: 3px 0 0;
}
.comment-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c7d2e2;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.comment-control:hover,
.comment-control:focus-visible { color: #fff; background: rgba(255,255,255,.09); }
.comment-controls .comment-reactions-summary { font-size: 10px; }
.comment-reaction-picker {
  gap: 2px;
  padding: 5px;
  border-radius: 18px;
}
.comment-reaction-picker button { width: 31px; height: 31px; font-size: 19px; }
.comment-edit-form { padding: 9px; border-radius: 12px; }
.comment-edit-form textarea { min-height: 58px; font-size: 13px; }
.comment.threaded { margin-inline-start: 13px; padding-inline-start: 9px; }
.comment-form { min-width: 0; gap: 7px; }
.comment-form input {
  min-width: 0;
  height: 42px;
  padding-inline: 13px;
  border-color: rgba(255,255,255,.20);
  font-size: 13px;
}
.comment-me { width: 30px; height: 30px; }
.comment-form .send-btn { width: 38px; height: 38px; flex: 0 0 38px; }
.profile-tabs { margin: 14px 0; padding: 4px; }
.profile-tabs button { font-size: 12.5px; padding: 9px 7px; }
.profile-stats { gap: 7px; padding-top: 11px; }
.stat { min-width: 0; padding: 8px 12px; }
.stat strong { font-size: 1.08rem; }
.stat span { font-size: 11px; }

@media (max-width: 560px) {
  .profile-social-links {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
    margin: 10px 10px 7px;
  }
  .profile-social-links:has(> .profile-social-card:nth-child(4)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .profile-social-card {
    min-width: 0;
    min-height: 43px;
    gap: 5px;
    padding: 6px;
    border-radius: 11px;
  }
  .profile-social-logo { width: 27px; height: 27px; min-width: 27px; border-radius: 8px; }
  .profile-social-logo img { width: 15px; height: 15px; }
  .profile-social-identity .profile-social-name { font-size: 10.5px; }
  .profile-social-identity .profile-social-handle { font-size: 9px; }
  .profile-social-arrow { display: none; }
  .comment-avatar { width: 28px; height: 28px; }
  .comment-bubble { padding: 8px 10px; }
  .comment-bubble .comment-body { font-size: 12.5px; }
  .comment-control { min-height: 29px; padding: 5px 5px; font-size: 10.5px; }
  .comment-controls { gap: 1px 3px; }
  .comment-reaction-picker button { width: 30px; height: 30px; font-size: 18px; }
  .comments { padding-inline: 11px; }
  .comment-form .send-btn { width: 36px; height: 36px; flex-basis: 36px; }
  .profile-tabs button { font-size: 12px; }
  .post-head { padding: 11px 12px 0; }
  .post-body { padding: 9px 12px 0; }
}
@media (max-width: 350px) {
  .profile-social-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .comment-control { padding-inline: 4px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-social-card,
  .comment-control,
  .comment-reaction-picker button { transition: none; }
}
