/* ============================================================
   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-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; }
}
