/* ==========================================================
   Temel stiller. Önce masaüstü, sonra kırılımlar.
   ========================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent: #1d9bf0;
  --accent-ink: #fff;
  --like: #f91880;
  --repost: #00ba7c;
  --danger: #f4212e;
  --radius: 16px;
  --col-left: 275px;
  --col-feed: 600px;
  --col-right: 350px;
  --header-h: 53px;
}

[data-theme="dark"] {
  --bg: #000;
  --bg-elev: #16181c;
  --bg-hover: rgba(231, 233, 234, .06);
  --bg-input: #202327;
  --border: #2f3336;
  --text: #e7e9ea;
  --text-muted: #8b949b;
  --overlay: rgba(91, 112, 131, .4);
  --shadow: 0 0 15px rgba(255,255,255,.12), 0 0 3px rgba(255,255,255,.15);
  --inverse-bg: #eff3f4;
  --inverse-ink: #0f1419;
  color-scheme: dark;
}
[data-theme="dim"] {
  --bg: #15202b;
  --bg-elev: #1e2732;
  --bg-hover: rgba(255, 255, 255, .05);
  --bg-input: #273340;
  --border: #38444d;
  --text: #f7f9f9;
  --text-muted: #8b98a5;
  --overlay: rgba(91, 112, 131, .4);
  --shadow: 0 0 15px rgba(101,119,134,.25), 0 0 3px rgba(101,119,134,.25);
  --inverse-bg: #f7f9f9;
  --inverse-ink: #0f1419;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fff;
  --bg-elev: #f7f9f9;
  --bg-hover: rgba(15, 20, 25, .04);
  --bg-input: #eff3f4;
  --border: #eff3f4;
  --text: #0f1419;
  --text-muted: #536471;
  --overlay: rgba(0, 0, 0, .4);
  --shadow: 0 0 15px rgba(101,119,134,.2), 0 0 3px rgba(101,119,134,.15), 0 1px 3px rgba(101,119,134,.12);
  --inverse-bg: #0f1419;
  --inverse-ink: #fff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: fixed; left: 8px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- İkonlar (çizgi tabanlı, tek kaynak) ---------- */
.icon {
  width: 26px; height: 26px; flex: none; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-xs { width: 15px; height: 15px; }
.icon-sm { width: 19px; height: 19px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 30px; height: 30px; }
.icon-logo { fill: currentColor; stroke: none; }

/* ---------- Yerleşim ---------- */
.app {
  display: grid;
  grid-template-columns: var(--col-left) var(--col-feed) var(--col-right);
  justify-content: center;
  min-height: 100vh;
  max-width: 1300px;
  margin: 0 auto;
}

/* ---------- Sol menü ---------- */
.sidebar-left {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 12px 12px;
  overflow-y: auto; scrollbar-width: none;
}
.sidebar-left::-webkit-scrollbar { display: none; }
.sidebar-inner { display: flex; flex-direction: column; align-items: stretch; }

.brand {
  width: 205px; height: 58px; display: flex; align-items: center; justify-content: flex-start;
  border-radius: 12px; margin: 2px 0 2px 4px;
  transition: background .15s;
}
.brand-wordmark { display: block; width: 184px; height: auto; object-fit: contain; }
.brand-wordmark-dark { display: none; }
.brand-mark { display: none; width: 38px; height: 38px; object-fit: contain; }
html[data-theme="dark"] .brand-wordmark-light,
html[data-theme="dim"] .brand-wordmark-light { display: none; }
html[data-theme="dark"] .brand-wordmark-dark,
html[data-theme="dim"] .brand-wordmark-dark { display: block; }
.brand:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 2px; }
.nav-item {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 12px 22px 12px 14px;
  border-radius: 999px;
  font-size: 20px; line-height: 1.2; color: var(--text);
  transition: background .15s;
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { font-weight: 700; }
.nav-item .icon { stroke-width: 1.8; }
.nav-item.active .icon { stroke-width: 2.3; }
.icon-wrap { position: relative; display: inline-flex; }
.badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1;
  border: 2px solid var(--bg); box-sizing: content-box;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .15s, opacity .15s, transform .05s, border-color .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(.93); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-inverse { background: var(--inverse-bg); color: var(--inverse-ink); height: 32px; }
.btn-inverse:hover { opacity: .88; }
.btn-outline { border: 1px solid var(--border); color: var(--text); height: 32px; }
.btn-outline:hover { background: var(--bg-hover); }
.btn-outline.is-following { min-width: 104px; }
.btn-outline.is-following:hover { border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-lg { height: 44px; font-size: 16px; padding: 0 28px; }
.btn-block { width: 100%; }

.btn-post { margin-top: 16px; height: 52px; font-size: 17px; width: calc(100% - 20px); margin-left: 4px; }
.btn-post-icon { display: none; }

.account-chip {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border-radius: 999px; margin-top: 12px;
  transition: background .15s;
}
.account-chip:hover { background: var(--bg-hover); }
.account-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.account-meta strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-meta small { color: var(--text-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Avatar ---------- */
.avatar {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none;
  display: grid; place-items: center; overflow: hidden; position: relative;
  border-radius: 50%; background: var(--av, var(--accent)); color: #fff;
  font-weight: 700; font-size: calc(var(--s) * .36); letter-spacing: .02em;
  user-select: none;
}
.avatar img { display: block; width: 100%; height: 100%; min-width: 100%; min-height: 100%; object-fit: cover; object-position: 50% 50%; }
.avatar-sm { --s: 32px; }
.avatar-lg { --s: 48px; }
.avatar-xl { --s: 134px; border: 4px solid var(--bg); background-color: var(--av, var(--accent)); }

/* ---------- Orta sütun ---------- */
.feed-column {
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  min-height: 100vh; min-width: 0;
}
.page-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.page-header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); padding: 0 16px; }
.page-header-row.has-back { padding-left: 8px; }
.page-title { font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-sub { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); margin-top: 1px; }
.page-header-main { flex: 1; min-width: 0; }
.mobile-avatar { display: none; }
.mobile-brand-mark { display: none; }

.icon-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 50%; color: inherit; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn.accent:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 1 0 auto; padding: 0 16px; height: 53px;
  display: grid; place-items: center; text-align: center;
  color: var(--text-muted); font-weight: 500; white-space: nowrap;
  transition: background .15s;
}
.tab span { position: relative; height: 100%; display: grid; place-items: center; }
.tab:hover { background: var(--bg-hover); }
.tab.active { color: var(--text); font-weight: 700; }
.tab.active span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  border-radius: 999px; background: var(--accent);
}

/* ---------- Paylaşım kutusu ---------- */
.composer { display: flex; gap: 12px; padding: 12px 16px 8px; }
.composer.in-feed { border-bottom: 1px solid var(--border); }
.composer.in-modal { padding: 8px 16px 12px; }
.composer-body { flex: 1; min-width: 0; }
.audience {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px;
  margin: 2px 0 4px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--accent); font-weight: 700; font-size: 13px;
}
.reply-hint { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.reply-hint b { color: var(--accent); font-weight: 400; }
.composer textarea {
  display: block; width: 100%; resize: none; border: 0; outline: 0;
  background: transparent; color: var(--text);
  font: inherit; font-size: 20px; line-height: 1.35;
  padding: 10px 0 12px; min-height: 52px; max-height: 360px; overflow-y: auto;
}
.composer textarea::placeholder { color: var(--text-muted); }
.in-modal textarea { min-height: 120px; }

.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 4px; margin: 4px 0 8px; }
.media-dropzone-wrap { position: relative; display: flex; margin: 8px 0; }
.media-dropzone { position: relative; width: 100%; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text); background: transparent; text-align: left; padding: 12px 14px; cursor: pointer; }
.media-dropzone span { font-weight: 600; }
.media-dropzone small { color: var(--text-muted); }
.media-file-picker { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.media-dropzone:hover, .media-dropzone.is-dragging, .attach-region.is-dragging { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.media-dropzone.is-disabled { opacity: .55; cursor: not-allowed; }
.media-dropzone.is-disabled .media-file-picker { pointer-events: none; }
.attach-grid.n1 { grid-template-columns: 1fr; }
.attach-grid.n2, .attach-grid.n3, .attach-grid.n4 { grid-template-columns: 1fr 1fr; }
.attach { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-input); }
.attach-grid.n1 .attach { aspect-ratio: auto; max-height: 420px; }
.attach img { width: 100%; height: 100%; object-fit: cover; }
.attach-video video { width: 100%; height: 100%; max-height: 320px; background: #000; object-fit: contain; }
.video-region { display: grid; gap: 8px; }
.upload-progress { color: var(--text-muted); font-size: 13px; padding: 8px 2px; }
.attach-remove {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(15,20,25,.75); color: #fff;
}
.attach-remove:hover { background: rgba(39,44,48,.85); }

.poll-edit { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 4px 0 10px; }
.poll-opt { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.poll-opt input {
  flex: 1; min-width: 0; height: 48px; padding: 0 12px; background: transparent;
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); font: inherit;
}
.poll-opt input:focus { border-color: var(--accent); outline: 0; }
.poll-edit-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin: 0 -12px -4px; padding: 8px 12px 0; }
.link-btn { color: var(--accent); font-weight: 500; padding: 6px 8px; border-radius: 6px; }
.link-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }

.composer-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; border-top: 1px solid var(--border); }
.composer-tools { display: flex; margin-left: -8px; }
.tool {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: var(--accent); transition: background .15s;
}
.tool:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tool:disabled { opacity: .4; cursor: default; }
.composer-actions { display: flex; align-items: center; gap: 12px; }

.counter { position: relative; width: 28px; height: 28px; display: none; align-items: center; justify-content: center; }
.counter.visible { display: flex; }
.counter svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.counter circle { fill: none; stroke-width: 2.5; }
.counter-track { stroke: var(--border); }
.counter-value { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 69.115; stroke-dashoffset: 69.115; transition: stroke-dashoffset .1s linear, stroke .15s; }
.counter.warn .counter-value { stroke: #ffd400; }
.counter.over .counter-value { stroke: var(--danger); }
.counter-text { position: relative; font-size: 11px; color: var(--text-muted); }
.counter.over .counter-text { color: var(--danger); }

/* ---------- Gönderiler ---------- */
.post {
  position: relative; display: flex; gap: 12px;
  padding: 12px 16px 4px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
}
.post:hover { background: var(--bg-hover); }
.post.is-new { animation: slideIn .35s ease; }
.post.kb-focus { box-shadow: inset 3px 0 0 var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.post-left { display: flex; flex-direction: column; align-items: center; }
.thread-line { flex: 1; width: 2px; background: var(--border); margin: 4px 0 -4px; border-radius: 2px; }
.post.has-thread { border-bottom: 0; padding-bottom: 0; }
.post-context { display: flex; align-items: center; gap: 12px; padding-left: 28px; color: var(--text-muted); font-size: 13px; font-weight: 700; margin: -4px 0 4px; grid-column: 1 / -1; }
.post-wrap { border-bottom: 1px solid var(--border); }
.post-wrap > .post { border-bottom: 0; }
.post-wrap > .post:hover { background: var(--bg-hover); }
.post-wrap-context { display: flex; align-items: center; gap: 8px; padding: 8px 16px 0 36px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.discover-post-context { padding:8px 16px 0 36px; color:var(--text-muted); font-size:11px; font-weight:600; }
.post-wrap-context .icon { width: 16px; height: 16px; }
.post-wrap-context:hover { text-decoration: underline; }

.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 4px; min-width: 0; line-height: 20px; }
.post-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.post-name:hover { text-decoration: underline; }
.post-verified { display: inline-block; width: 19px; height: 19px; flex: 0 0 19px; vertical-align: -4px; color: #1688f0; fill: currentColor; stroke: none; filter: drop-shadow(0 1px 1px rgb(15 23 42 / 16%)); }
.post-verified.badge-blue { color: #1688f0; }
.post-verified.badge-gold { color: #e0a51b; }
.post-verified.badge-purple { color: #9254d6; }
.notif-system { align-items:flex-start; cursor:default; }
.notif-system-kicker { margin:1px 0 5px; color:var(--text-muted); font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.notif-system .notif-line { font-size:14px; line-height:1.4; }
.notif-system .notif-excerpt { max-width:680px; margin-top:6px; font-size:13px; line-height:1.55; white-space:pre-line; }
.notif-system .notif-ico { width:40px; height:40px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:14px; background:var(--bg); }
.notif-ico.moderation { color:var(--accent); }
.notif-ico.report { color:#d89b35; }
.notif-system.unread { box-shadow:inset 3px 0 0 var(--accent); }
.notif-report.unread { box-shadow:inset 3px 0 0 #d89b35; }
.notif-delete { display:grid; place-items:center; align-self:flex-start; width:34px; height:34px; flex:none; margin:0 0 0 auto; border:1px solid transparent; border-radius:11px; background:transparent; color:var(--text-muted); opacity:.58; transition:background .15s,color .15s,opacity .15s,border-color .15s; }
.notif-delete .icon { width:17px; height:17px; }
.notif:hover .notif-delete,.notif-delete:focus-visible { opacity:1; }
.notif-delete:hover { border-color:color-mix(in srgb,var(--danger) 24%,var(--border)); background:color-mix(in srgb,var(--danger) 10%,transparent); color:var(--danger); }
.notif-delete:disabled { opacity:.45; cursor:wait; }
@media (max-width:520px) { .modal.moderation-notice { border-radius:16px; } .moderation-notice h2 { font-size:19px; } .notif-delete { width:32px; height:32px; opacity:.85; } }
.post-meta { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.post-time { color: var(--text-muted); white-space: nowrap; flex: none; }
.post-time:hover { text-decoration: underline; }
.post-time::before { content: "\00B7"; margin: 0 4px 0 0; }
.post-edited { color:var(--text-muted); font-size:12px; white-space:nowrap; }
.detail-meta .post-edited { font-size:inherit; }
.post-more {
  margin: -6px -8px -6px auto; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-muted); flex: none; transition: background .15s, color .15s;
}
.post-more:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.replying-to { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.replying-to a { color: var(--accent); }
.replying-to a:hover { text-decoration: underline; }

.post-text { margin-top: 2px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-text .tag, .tag { color: var(--accent); }
.post-text .tag:hover { text-decoration: underline; }

.post-media {
  margin-top: 12px; aspect-ratio: 16 / 9; max-height: 420px; width: 100%;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--media-bg); position: relative; overflow: hidden;
}
.post-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 18px 18px; pointer-events: none;
}
.post-media-grid { margin-top: 12px; display: grid; gap: 2px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.post-media-grid.n1 { grid-template-columns: 1fr; aspect-ratio: auto; max-height: 520px; }
.post-media-grid.n2 { grid-template-columns: 1fr 1fr; }
.post-media-grid.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media-grid.n3 img:first-child { grid-row: span 2; }
.post-media-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media-grid:not(.n1):not(.n2):not(.n3):not(.n4) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 150px; aspect-ratio: auto; max-height: 600px; }
.post-media-grid img { width: 100%; height: 100%; object-fit: cover; }
.post-video { margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #000; }
.post-video video { display: block; width: 100%; max-height: 640px; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

.quote {
  margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
  transition: background .15s;
}
.quote:hover { background: var(--bg-hover); }
.quote .post-head { margin-bottom: 2px; }
.quote .post-text { margin-top: 0; font-size: 15px; }
.quote .post-media { margin: 8px -12px -10px; border-radius: 0 0 12px 12px; border-width: 1px 0 0; max-height: 240px; }
.quote-missing { color: var(--text-muted); }

.poll { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.poll-choice {
  position: relative; min-height: 36px; border-radius: 8px; padding: 0 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); font-weight: 700;
  transition: background .15s;
}
button.poll-choice:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 8px 0 0 8px; transition: width .5s ease; }
.poll-choice.voted { border-color: transparent; background: var(--bg-input); color: var(--text); font-weight: 400; cursor: default; }
.poll-choice.mine { font-weight: 700; }
.poll-choice > span { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.poll-meta { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.poll-meta button { color: inherit; }
.poll-meta button:hover { text-decoration: underline; }

.post-actions { display: flex; justify-content: space-between; max-width: 425px; margin: 4px 0 0 -8px; }
.post-actions.big { max-width: none; justify-content: space-around; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 12px 0 0; padding: 4px 0; }
.action { display: inline-flex; align-items: center; color: var(--text-muted); font-size: 13px; min-width: 52px; height: 36px; transition: color .15s; --hv: var(--accent); }
.action .circle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: background .15s; flex: none; }
.action .icon { width: 19px; height: 19px; }
.action .count { margin-left: 1px; min-width: 1ch; white-space: nowrap; font-variant-numeric: tabular-nums; }
.action:hover { color: var(--hv); }
.action:hover .circle { background: color-mix(in srgb, var(--hv) 12%, transparent); }
.action.repost { --hv: var(--repost); }
.action.like { --hv: var(--like); }
.action.repost.on { color: var(--repost); }
.action.like.on { color: var(--like); }
.action.bookmark.on { color: var(--accent); }
.action.on .count { font-weight: 600; }
.action.like.on .circle .icon { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.action.icon-only { min-width: 40px; }
.post-actions .group-right { display: inline-flex; }
.post-actions.big .action { min-width: 0; }
.post-actions.big .action .icon { width: 22px; height: 22px; }
.post-actions.big .action .circle { width: 40px; height: 40px; }

/* Gönderi detayı */
.post.detail { cursor: default; display: block; padding: 12px 16px 0; border-bottom: 1px solid var(--border); }
.post.detail:hover { background: transparent; }
.post.detail .post-head { align-items: center; gap: 12px; }
.post.detail .head-names { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.post.detail .post-text { font-size: 20px; line-height: 1.4; margin-top: 12px; }
.detail-meta { color: var(--text-muted); padding: 12px 0; border-bottom: 1px solid var(--border); margin-top: 12px; }
.detail-meta b { color: var(--text); font-weight: 700; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.detail-stats b { color: var(--text); font-weight: 700; }
.detail-stats:empty { display: none; }
.post.detail .post-actions.big { border-top: 0; margin: 0; }

.new-posts-bar { display: block; width: 100%; padding: 14px; text-align: center; color: var(--accent); border-bottom: 1px solid var(--border); }
.new-posts-bar:hover { background: var(--bg-hover); }

/* ---------- Boş durum ve yükleniyor ---------- */
.empty { padding: 56px 32px; text-align: center; max-width: 440px; margin: 0 auto; }
.empty h2 { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.empty p { color: var(--text-muted); margin-bottom: 20px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--text-muted); display: block; stroke-width: 1.4; }
.skeleton { padding: 14px 16px; display: flex; gap: 12px; border-bottom: 1px solid var(--border); }
.sk { background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 37%, var(--bg-input) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
.sk-circle { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sk-line { height: 12px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Sağ panel ---------- */
.sidebar-right { padding: 0 0 0 28px; min-width: 0; }
.sticky-panel { position: sticky; top: 0; padding-bottom: 24px; max-height: 100vh; overflow-y: auto; scrollbar-width: none; }
.sticky-panel::-webkit-scrollbar { display: none; }
.search-wrap { position: sticky; top: 0; z-index: 30; padding: 6px 0 12px; background: var(--bg); }
.search {
  display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 44px;
  background: var(--bg-input); border: 1px solid transparent; border-radius: 999px; color: var(--text-muted);
  transition: border-color .15s, background .15s;
}
.search:focus-within { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--text-muted); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-clear { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% - 6px); max-height: 70vh; overflow-y: auto;
  background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); padding: 4px 0; z-index: 40;
}
.sp-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; font-size: 20px; font-weight: 800; }
.sp-title button { color: var(--accent); font-size: 15px; font-weight: 400; }
.sp-hint { padding: 16px; color: var(--text-muted); text-align: center; }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; width: 100%; }
.sp-item:hover, .sp-item.kb { background: var(--bg-hover); }
.sp-item .sp-main { flex: 1; min-width: 0; }
.sp-item strong { display: flex; align-items: center; gap: 3px; font-weight: 700; }
.sp-item small { display: block; color: var(--text-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item .sp-ico { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); flex: none; }
.sp-remove { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--text-muted); }
.sp-remove:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.card { background: var(--bg-elev); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.card-title { font-size: 20px; font-weight: 800; padding: 12px 16px; }
.card-link { display: block; padding: 16px; color: var(--accent); transition: background .15s; }
.card-link:hover { background: var(--bg-hover); }

.trend { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 16px; cursor: pointer; transition: background .15s; width: 100%; }
.trend:hover { background: var(--bg-hover); }
.trend small { display: block; color: var(--text-muted); font-size: 13px; }
.trend strong { display: block; font-size: 15px; font-weight: 700; margin: 1px 0; }
.trend .count { color: var(--text-muted); font-size: 13px; }
.trend-rank { display: inline-block; margin-right: 4px; }
.trend-more { color: var(--text-muted); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; margin: -4px -8px 0 0; flex: none; }
.trend-more:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.suggest { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background .15s; }
.suggest:hover { background: var(--bg-hover); }
.suggest-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-name { display: flex; align-items: center; gap: 3px; font-weight: 700; min-width: 0; }
.suggest-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-name:hover span { text-decoration: underline; }
.suggest-meta small { color: var(--text-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-bio { display: block; margin-top: 2px; font-size: 14px; color: var(--text); white-space: normal !important; }

.footnote { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px; color: var(--text-muted); font-size: 13px; }
.footnote a:hover { text-decoration: underline; }

/* ---------- Profil ---------- */
.profile-banner { height: 200px; background: var(--media-bg); position: relative; border-bottom: 1px solid var(--border); }
.profile-banner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; }
.profile-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 16px; }
.profile-top .avatar-xl { margin-top: -67px; position: relative; z-index: 1; }
.profile-top .btn { margin-top: 12px; }
.profile-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.profile-actions .btn { margin-top: 0; }
.round-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; }
.round-btn:hover { background: var(--bg-hover); }
.profile-info { padding: 12px 16px 0; }
.profile-name { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.profile-handle { color: var(--text-muted); }
.profile-bio { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; color: var(--text-muted); }
.profile-meta span, .profile-meta a { display: inline-flex; align-items: center; gap: 4px; }
.profile-meta a { color: var(--accent); }
.profile-meta a:hover { text-decoration: underline; }
.profile-counts { display: flex; gap: 20px; margin: 12px 0 4px; color: var(--text-muted); }
.profile-counts b { color: var(--text); font-weight: 700; }
.profile-counts button:hover { text-decoration: underline; }
.profile-tabs { margin-top: 8px; border-bottom: 1px solid var(--border); }

/* ---------- Keşfet / liste kartları ---------- */
.explore-search { flex: 1; }
.section-title { font-size: 20px; font-weight: 800; padding: 16px; }
.explore-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px; border-bottom:1px solid var(--border); }
.explore-toolbar > div { min-width:0; }
.explore-toolbar strong { display:block; font-size:14px; font-weight:750; }
.explore-toolbar p { margin-top:3px; color:var(--text-muted); font-size:12px; line-height:1.4; }
.explore-refresh { flex:none; min-height:34px; padding:0 13px; border:1px solid var(--border); border-radius:999px; color:var(--text); font-size:12px; font-weight:700; transition:background .15s,opacity .15s; }
.explore-refresh:hover:not(:disabled) { background:var(--bg-hover); }
.explore-refresh:disabled { opacity:.6; cursor:wait; }
.explore-more { display:block; width:calc(100% - 32px); min-height:42px; margin:14px 16px 22px; border:1px solid var(--border); border-radius:999px; color:var(--text); font-size:13px; font-weight:700; transition:background .15s; }
.explore-more:hover { background:var(--bg-hover); }
@media (max-width:560px) {
  .explore-toolbar { align-items:flex-start; gap:10px; padding:12px; }
  .explore-toolbar p { max-width:34ch; font-size:11px; }
  .explore-refresh { min-height:32px; padding-inline:11px; font-size:11px; }
}
.trend-row { padding: 12px 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); cursor: pointer; width: 100%; transition: background .15s; }
.trend-row:hover { background: var(--bg-hover); }
.trend-row small { display: block; color: var(--text-muted); font-size: 13px; }
.trend-row strong { display: block; font-size: 16px; margin: 1px 0; }
.trend-row .count { color: var(--text-muted); font-size: 13px; }

.person { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.person:hover { background: var(--bg-hover); }
.person-main { flex: 1; min-width: 0; }
.person-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.person-name { display: flex; align-items: center; gap: 3px; font-weight: 700; min-width: 0; }
.person-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { color: var(--text-muted); font-size: 15px; display: block; }
.person p { margin-top: 4px; }

.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px 20px; }
.c-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: background .15s; }
.c-card:hover { background: var(--bg-hover); }
.c-banner { height: 84px; background: var(--media-bg); }
.c-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.c-body h3 { font-size: 16px; font-weight: 800; }
.c-body p { color: var(--text-muted); font-size: 14px; flex: 1; }
.c-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; color: var(--text-muted); font-size: 13px; }
.list-row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; align-items: center; transition: background .15s; }
.list-row:hover { background: var(--bg-hover); }
.list-thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--media-bg); flex: none; }
.list-row-main { flex: 1; min-width: 0; }
.list-row-main strong { display: block; }
.list-row-main small { color: var(--text-muted); font-size: 14px; }
.members-stack { display: flex; margin-top: 4px; }
.members-stack .avatar { --s: 20px; border: 2px solid var(--bg); margin-left: -6px; font-size: 8px; }
.members-stack .avatar:first-child { margin-left: 0; }

/* ---------- Bildirimler ---------- */
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.notif:hover { background: var(--bg-hover); }
.notif.unread { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.notif.unread:hover { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.notif-ico { width: 40px; display: flex; justify-content: flex-end; flex: none; }
.notif-ico .icon { width: 30px; height: 30px; }
.notif-ico.like { color: var(--like); } .notif-ico.like .icon { fill: currentColor; }
.notif-ico.repost { color: var(--repost); }
.notif-ico.follow { color: var(--accent); } .notif-ico.follow .icon { fill: currentColor; }
.notif-ico.reply, .notif-ico.mention { color: var(--accent); }
.notif-main { flex: 1; min-width: 0; }
.notif-avatars { display: flex; gap: 6px; margin-bottom: 8px; }
.notif-avatars .avatar { --s: 32px; }
.notif-line { overflow-wrap: anywhere; }
.notif-line b { font-weight: 700; }
.notif-line a:hover b { text-decoration: underline; }
.notif-excerpt { color: var(--text-muted); margin-top: 4px; overflow-wrap: anywhere; }
.notif-time { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ---------- Mesajlar ---------- */
.convo { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.convo:hover { background: var(--bg-hover); }
.convo-main { flex: 1; min-width: 0; }
.convo-head { display: flex; align-items: center; gap: 4px; line-height: 1.3; }
.convo-head strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-head small { color: var(--text-muted); white-space: nowrap; }
.convo-head time { margin-left: auto; color: var(--text-muted); font-size: 13px; flex: none; }
.convo-last { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .convo-last { color: var(--text); font-weight: 700; }
.convo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center; flex: none; }
.convo-delete { width: 34px; height: 34px; align-self: center; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-muted); opacity: .7; }
.convo-delete:hover, .convo-delete:focus-visible { color: var(--danger); background: var(--bg-hover); opacity: 1; outline: none; }
.blocked-list { max-height: 60vh; overflow: auto; padding: 0 16px 16px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; border-bottom: 1px solid var(--border); }
.blocked-row > div { display: grid; min-width: 0; }
.blocked-row small, .blocked-empty { color: var(--text-muted); }
.blocked-empty { padding: 16px 0; }
.chat { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.chat-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-intro { text-align: center; padding: 20px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.chat-intro .avatar { margin: 0 auto 8px; --s: 64px; }
.chat-intro strong { display: block; font-size: 17px; }
.chat-intro small { color: var(--text-muted); display: block; }
.chat-day { align-self: center; color: var(--text-muted); font-size: 13px; margin: 8px 0; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 20px; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.them { align-self: flex-start; background: var(--bg-input); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble-time { font-size: 12px; color: var(--text-muted); margin: 0 6px 6px; }
.bubble-time.me { align-self: flex-end; }
.chat-input { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--border); padding: 8px 12px; display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea {
  flex: 1; min-width: 0; resize: none; border: 0; background: var(--bg-input); color: var(--text);
  border-radius: 20px; padding: 10px 16px; font: inherit; max-height: 140px; line-height: 1.35; outline: 0;
}
.chat-input textarea:focus { box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- Menü ve pencereler ---------- */
.menu-layer { position: fixed; inset: 0; z-index: 150; }
.menu {
  position: fixed; min-width: 220px; max-width: 320px; max-height: 80vh; overflow-y: auto;
  background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); padding: 4px 0;
  animation: menuIn .12s ease;
}
@keyframes menuIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; font-weight: 700; transition: background .12s; }
.menu-item:hover, .menu-item:focus-visible { background: var(--bg-hover); outline: 0; border-radius: 0; }
.menu-item.danger { color: var(--danger); }
.menu-item .icon { width: 19px; height: 19px; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
.menu-head { padding: 12px 16px; font-weight: 400; color: var(--text-muted); font-size: 13px; }

.modal-layer { position: fixed; inset: 0; z-index: 200; background: var(--overlay); display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow-y: auto; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 600px; background: var(--bg); border-radius: 16px; overflow: hidden; animation: modalIn .18s ease; position: relative; }
.modal.sm { max-width: 320px; }
.modal.md { max-width: 440px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 53px; }
.modal-head h2 { font-size: 20px; font-weight: 800; flex: 1; }
.modal-body { padding: 0 16px 16px; }
.modal-body.flush { padding: 0; }
.modal-foot { padding: 12px 16px; display: flex; justify-content: flex-end; gap: 8px; }
.edit-post-dialog { max-width:520px; }
.edit-post-body { padding:8px 18px 18px; }
.edit-post-input { display:block; width:100%; min-height:150px; max-height:52vh; padding:13px 14px; resize:vertical; border:1px solid var(--border); border-radius:12px; outline:0; background:var(--bg-input); color:var(--text); font:inherit; font-size:16px; line-height:1.5; }
.edit-post-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent); }
.edit-post-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:13px; }
.edit-post-count { color:var(--text-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.edit-post-error { margin-top:10px; color:var(--danger); font-size:13px; }
.edit-post-error[hidden] { display:none; }
.confirm { padding: 32px; }
.confirm h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.confirm p { color: var(--text-muted); margin-bottom: 24px; }
.confirm .btn { margin-bottom: 12px; }
.confirm .btn:last-child { margin-bottom: 0; }

.field { position: relative; margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--text); font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 1px solid var(--accent); }
.field .field-count { position: absolute; right: 8px; top: 0; font-size: 12px; color: var(--text-muted); }

.edit-banner { height: 150px; background: var(--media-bg); position: relative; display: grid; place-items: center; }
.edit-banner-tools { display: flex; gap: 6px; background: rgba(0,0,0,.45); padding: 6px; border-radius: 999px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; background: var(--media-bg); border: 2px solid rgba(255,255,255,.6); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.edit-avatar { margin: -40px 0 12px 16px; position: relative; width: 88px; }
.edit-avatar .avatar { --s: 88px; border: 4px solid var(--bg); }
.edit-avatar .cam { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .15s; cursor: pointer; }
.edit-avatar:hover .cam, .edit-avatar:focus-within .cam { opacity: 1; }
.edit-avatar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.color-row { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.color-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c); display: grid; place-items: center; color: #fff; }
.color-dot.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
.color-dot .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.color-dot.on .icon { opacity: 1; }

.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.theme-opt { border: 2px solid var(--border); border-radius: 10px; padding: 14px 10px; display: flex; align-items: center; gap: 8px; font-weight: 700; justify-content: center; }
.theme-opt.on { border-color: var(--accent); }
.theme-opt .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); }
.set-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.preview-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 20px; display: flex; gap: 12px; }

.shortcuts { width: 100%; border-collapse: collapse; }
.shortcuts td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.shortcuts td:first-child { width: 120px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 8px; text-align: center; font: inherit; font-size: 13px; font-weight: 700; background: var(--bg-input); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; }

.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; width: 100%; }
.pick-row:hover { background: var(--bg-hover); }
.pick-box { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); display: grid; place-items: center; color: var(--accent-ink); flex: none; }
.pick-row.on .pick-box { background: var(--accent); border-color: var(--accent); }
.pick-box .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.pick-row.on .pick-box .icon { opacity: 1; }

/* ---------- Bildirim (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 24px);
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--accent); color: var(--accent-ink); border-radius: 8px;
  font-size: 15px; font-weight: 500; box-shadow: 0 8px 28px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 400; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { font-weight: 700; text-decoration: underline; margin-left: 6px; }

/* ---------- Mobil elemanlar ---------- */
.bottom-nav, .fab { display: none; }

/* ==========================================================
   Responsive kırılımlar
   ========================================================== */
@media (max-width: 1280px) {
  .app { grid-template-columns: 88px var(--col-feed) var(--col-right); }
  .sidebar-left { align-items: center; padding: 18px 8px 12px; }
  .sidebar-inner { align-items: center; }
  .nav { align-items: center; }
  .nav-item { padding: 12px; }
  .nav-label { display: none; }
  .brand { width: 72px; height: 52px; justify-content: center; margin: 0; }
  .brand-wordmark { display: none; }
  .sidebar-left .brand .brand-wordmark-dark { display: none; }
  .brand-mark { display: block; width: 40px; height: 40px; }
  .btn-post { width: 52px; padding: 0; margin-left: 0; }
  .btn-post-text { display: none; }
  .btn-post-icon { display: block; }
  .account-chip { width: auto; padding: 8px; }
  .account-meta, .account-chip .more-ico { display: none; }
}

@media (max-width: 1100px) {
  .app { grid-template-columns: 88px minmax(0, var(--col-feed)); }
  .sidebar-right { display: none; }
}

@media (max-width: 700px) {
  :root { --header-h: 53px; }
  .app { display: block; }
  .sidebar-left { display: none; }
  .feed-column { border: 0; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .page-header { padding-top: env(safe-area-inset-top); }
  .mobile-avatar { display: block; flex: none; }
  .mobile-brand-mark { display: none; }
  .mobile-brand-home { min-height: 60px; padding: 7px 16px; gap: 12px; }
  .mobile-brand-home .mobile-brand-mark { display: inline-flex; flex: 1; min-width: 0; align-items: center; justify-content: center; height: 42px; border-radius: 12px; }
  .mobile-brand-home .mobile-brand-mark:hover { background: var(--bg-hover); }
  .mobile-brand-home .mobile-brand-wordmark { display: block; width: clamp(96px, 30vw, 120px); height: auto; object-fit: contain; }
  .mobile-brand-home .page-header-main { display: none; }
  .mobile-brand-wordmark-dark { display: none; }
  html[data-theme="dark"] .mobile-brand-wordmark-light,
  html[data-theme="dim"] .mobile-brand-wordmark-light { display: none; }
  html[data-theme="dark"] .mobile-brand-wordmark-dark,
  html[data-theme="dim"] .mobile-brand-wordmark-dark { display: block; }
  .page-header-row { gap: 12px; min-height: 56px; padding: 6px 14px; }
  .page-header-row.has-back { padding-left: 10px; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; justify-content: space-around; height: calc(52px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .bottom-nav a { flex: 1; display: grid; place-items: center; color: var(--text-muted); }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active .icon { stroke-width: 2.4; }
  .fab {
    position: fixed; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 55;
    width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(0,0,0,.35);
  }
  .post { padding: 12px 12px 4px; gap: 10px; }
  .post-media { max-height: 300px; }
  .post-actions { max-width: none; }
  .action { min-width: 0; }
  .action .count { font-size: 12px; }
  .composer.in-feed { display: none; }
  .profile-banner { height: 120px; }
  .avatar-xl { --s: 88px; }
  .profile-top .avatar-xl { margin-top: -44px; }
  .cards-grid { grid-template-columns: 1fr; }
  .modal-layer { padding: 0; align-items: stretch; }
  .modal { max-width: none; border-radius: 0; min-height: 100%; }
  .modal.sm, .modal.md { max-width: none; min-height: 0; margin: auto 16px; border-radius: 16px; align-self: center; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tab { padding: 0 14px; }
  .theme-row { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .post-actions .group-right .action:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Ek stiller ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.action.static { cursor: default; }
.action.static:hover { color: var(--text-muted); }
.action.static:hover .circle { background: none; }
.btn-outline.is-following .t-hover { display: none; }
.btn-outline.is-following:hover .t-main { display: none; }
.btn-outline.is-following:hover .t-hover { display: inline; }
.btn-sm-fix { height: 30px; padding: 0 14px; font-size: 14px; }
.post.detail .head-line { display: flex; align-items: center; gap: 4px; }
.post.detail .head-names .post-meta { line-height: 1.2; }
.page-title .post-verified { display: inline-block; vertical-align: -3px; margin-left: 4px; }
.feed-column:focus, .feed-column:focus-visible { outline: none; }
.badge { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; top: -7px; right: -11px; }
.composer.in-feed .reply-hint { display: none; }
html { background: var(--bg); }

/* Report dialog */
.modal.report-dialog { max-width: 500px; max-height: 92vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-elev); box-shadow: 0 24px 90px rgba(0,0,0,.42); }
.report-dialog .modal-head { position: sticky; top: 0; z-index: 2; padding: 12px 18px; min-height: 56px; background: color-mix(in srgb, var(--bg-elev) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.report-dialog .modal-body { padding: 20px 24px 24px; }
.report-dialog-kicker { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.report-head-spacer { flex: 1; }
.report-dialog-title { text-align: center; padding: 2px 12px 18px; }
.report-dialog-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 16px; color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.report-dialog-title h2 { font-size: 23px; font-weight: 800; margin-bottom: 7px; }
.report-dialog-title p { max-width: 355px; margin: 0 auto; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.report-target { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg); }
.report-target-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.report-target small, .report-target strong { display: block; }
.report-target small { color: var(--text-muted); font-size: 11px; }
.report-target strong { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.report-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.report-reasons legend { width: 100%; margin-bottom: 9px; font-size: 13px; font-weight: 750; }
.report-reasons legend span, .report-details-label span { float: right; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.report-option { position: relative; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.report-option:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.report-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.report-option input { position: absolute; opacity: 0; pointer-events: none; }
.report-radio { width: 15px; height: 15px; flex: none; border: 1px solid var(--text-muted); border-radius: 50%; }
.report-option input:checked + .report-radio { border: 4px solid var(--accent); }
.report-option-label { font-size: 12px; line-height: 1.25; }
.report-details-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.report-dialog textarea { display: block; width: 100%; min-height: 78px; padding: 11px 12px; resize: vertical; color: var(--text); border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 13px; }
.report-dialog textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.report-privacy { display: flex; align-items: center; gap: 7px; margin: 13px 0 18px; color: var(--text-muted); font-size: 11px; }
.report-feedback { margin: 8px 0 0; color: var(--danger); font-size: 12px; }
.report-feedback:empty { display: none; }
.report-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 13px; border-top: 1px solid var(--border); }
.report-dialog-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.report-dialog-actions .btn:disabled { opacity: .65; cursor: wait; }
@media (max-width: 520px) { .modal.report-dialog { width: calc(100% - 24px); max-height: 92dvh; border-radius: 20px; align-self: center; } .report-dialog .modal-body { padding: 16px 17px 19px; } .report-reasons { grid-template-columns: 1fr; gap: 6px; } .report-option { min-height: 38px; } }

/* Hesap bildirimi: yalın, nötr ve içeriğe göre ölçülü pencere */
.modal-layer:has(.modal.moderation-notice) { align-items:center; justify-content:center; padding:20px; overflow-y:auto; background:rgba(0,0,0,.58); }
.modal.moderation-notice { width:min(500px,calc(100vw - 40px)); max-width:500px; height:auto; min-height:0; max-height:calc(100dvh - 40px); margin:auto; align-self:center; overflow:auto; padding:26px; border:1px solid var(--border); border-radius:16px; background:var(--bg-elev); box-shadow:0 16px 44px rgba(0,0,0,.28); }
.moderation-notice-head { grid-template-columns:none; justify-items:start; gap:6px; margin:0 0 18px; padding:0 0 16px; border-bottom:1px solid var(--border); text-align:left; }
.moderation-notice .report-dialog-kicker { color:var(--text-muted); font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; }
.moderation-notice h2 { max-width:none; margin:0; font-size:21px; line-height:1.35; }
.moderation-notice-head > p { margin:0; color:var(--text-muted); font-size:13px; }
.moderation-decision { grid-template-columns:1fr 1fr; gap:0 20px; overflow:visible; padding:0; border:0; border-radius:0; background:transparent; }
.moderation-decision > div { display:grid; align-content:start; gap:5px; min-width:0; padding:12px 0; border:0; border-bottom:1px solid var(--border); }
.moderation-decision > div:first-child,.moderation-decision > div:last-child { border-right:0; }
.moderation-decision span { color:var(--text-muted); font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; }
.moderation-decision strong { font-size:14px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.moderation-decision .moderation-reason { grid-column:1 / -1; padding:14px 0; background:transparent; }
.moderation-decision .moderation-reason p { margin:0; color:var(--text); font-size:14px; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.moderation-notice-body { margin:0; padding:0; border:0; border-radius:0; background:transparent; color:var(--text); font-size:14px; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.moderation-active { display:grid; gap:7px; margin:17px 0 0; padding:14px 0 0; border:0; border-top:1px solid var(--border); border-radius:0; background:transparent; color:var(--text); font-size:13px; line-height:1.5; text-align:left; }
.moderation-active h3 { margin:0; color:var(--text); font-size:13px; font-weight:600; }
.moderation-active ul { display:grid; gap:7px; margin:2px 0 0; padding:0; list-style:none; }
.moderation-active li { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.moderation-active li span { color:var(--text); }
.moderation-active small { flex:none; color:var(--text-muted); font-size:12px; text-align:right; }
.moderation-notice-foot { margin:15px 0 0; color:var(--text-muted); font-size:12px; line-height:1.5; }
.moderation-appeal-link { display:block; width:fit-content; margin-bottom:7px; color:var(--text); font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.moderation-appeal-link:hover { opacity:.72; }
.moderation-notice-actions { display:flex; justify-content:flex-end; margin-top:16px; }
.moderation-notice .btn.moderation-ack { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:104px; min-height:38px; margin:0; padding:0 15px; border:1px solid var(--border); border-radius:7px; background:var(--bg-hover); color:var(--text); font-weight:600; }
.moderation-notice .btn.moderation-ack:hover { background:var(--bg-elev); }
@media (max-width:520px) {
  .modal-layer:has(.modal.moderation-notice) { padding:16px; }
  .modal.moderation-notice { width:calc(100vw - 32px); max-width:480px; min-height:0; max-height:calc(100dvh - 32px); margin:auto; border-radius:14px; }
  .modal.moderation-notice { padding:21px 20px; }
  .moderation-notice h2 { font-size:19px; }
  .moderation-decision { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 14px; }
  .moderation-decision span,.moderation-active small { font-size:11px; }
  .moderation-decision strong,.moderation-decision .moderation-reason p { font-size:13px; }
  .moderation-notice-actions .btn { width:100%; }
}

/* Sohbet ekranı kendi içinde kayar; sayfa ve gönderi düğmesi sohbeti örtmez. */
body.chat-open { overflow:hidden; }
body.chat-open .app { height:100dvh; min-height:0; overflow:hidden; }
body.chat-open .feed-column { height:100dvh; min-height:0; overflow:hidden; }
body.chat-open #view { height:100%; }
body.chat-open .chat { height:calc(100% - var(--header-h)); min-height:0; overflow:hidden; }
body.chat-open .chat-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
body.chat-open .chat-input { position:relative; z-index:2; flex:none; padding-bottom:max(8px,env(safe-area-inset-bottom)); }
body.chat-open .chat-input button { width:42px; height:42px; min-width:42px; flex:none; padding:0; border-radius:50%; }
body.chat-open .fab { display:none !important; }
@media (max-width:700px) {
  body.chat-open .feed-column { height:calc(100dvh - 52px - env(safe-area-inset-bottom)); padding-bottom:0; }
}

/* Reels: contained vertical feed with deliberate desktop, tablet and phone layouts. */
body.reels-open { overflow:hidden; }
body.reels-open .bottom-nav,body.reels-open .fab { display:none !important; }
body.reels-open .app { height:100dvh; min-height:0; overflow:hidden; }
body.reels-open .feed-column { height:100dvh; min-height:0; overflow:hidden; }
.reels-view { display:flex; flex-direction:column; height:100dvh; min-height:0; }
.reels-view > .page-header { flex:none; }
.reels-shell { position:relative; flex:1; min-height:0; height:auto; overflow-y:auto; overscroll-behavior:contain; scroll-snap-type:y proximity; scrollbar-width:thin; scrollbar-color:var(--border) transparent; background:var(--bg); }
.reels-shell::-webkit-scrollbar { width:7px; }
.reels-shell::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:999px; background:var(--border); background-clip:padding-box; }
.reels-track { display:flex; flex-direction:column; align-items:center; gap:22px; min-height:100%; padding:24px 20px 40px; }
.reel-card.post { position:relative; display:block; flex:none; width:auto; height:min(78dvh,780px); max-width:100%; min-height:420px; aspect-ratio:9 / 16; overflow:hidden; padding:0; border:1px solid color-mix(in srgb,var(--border) 85%,transparent); border-radius:20px; background:#050505; cursor:default; scroll-snap-align:center; isolation:isolate; box-shadow:0 18px 50px rgba(0,0,0,.22); }
.reel-card.post:hover { background:#050505; }
.reel-card::before { position:absolute; z-index:0; inset:-24px; content:""; opacity:0; background-image:var(--reel-backdrop); background-position:center; background-size:cover; filter:blur(24px) brightness(.58); transform:scale(1.08); transition:opacity .25s ease; }
.reel-card.has-reel-backdrop::before { opacity:1; }
.reel-video { position:absolute; z-index:1; inset:0; display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; background:#050505; touch-action:manipulation; }
.reel-card.is-landscape-video .reel-video { object-fit:contain; }
.reel-shade { position:absolute; z-index:2; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,.42),transparent 21%,transparent 52%,rgba(0,0,0,.78)); }
.reel-back,.reel-mute,.reel-more { position:absolute; z-index:5; top:max(14px,env(safe-area-inset-top)); display:flex; align-items:center; justify-content:center; min-height:40px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(10,10,10,.52); color:#fff; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); transition:background .15s,border-color .15s; }
.reel-back { left:14px; gap:8px; padding:0 13px; font-size:13px; font-weight:700; }
.reel-back:hover,.reel-mute:hover,.reel-more:hover { background:rgba(0,0,0,.78); border-color:rgba(255,255,255,.38); }
.reel-mute { right:14px; width:40px; padding:0; }
.reel-more { right:62px; width:40px; padding:0; }
.reel-back:focus-visible,.reel-mute:focus-visible,.reel-more:focus-visible,.reel-progress:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.reel-play-toggle { position:absolute; z-index:5; top:50%; left:50%; display:grid; place-items:center; width:58px; height:58px; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.34); border-radius:50%; background:rgba(0,0,0,.48); color:#fff; opacity:0; pointer-events:none; backdrop-filter:blur(10px); }
.reel-play-toggle .icon { width:25px; height:25px; fill:currentColor; stroke:none; }
.reel-card:not(.is-playing) .reel-play-toggle { opacity:1; pointer-events:auto; }
.reel-info { position:absolute; z-index:4; right:78px; bottom:22px; left:18px; color:#fff; }
.reel-author { display:flex; align-items:center; gap:9px; min-width:0; }
.reel-author-avatar { flex:none; align-self:center; line-height:0; }
.reel-author-copy { display:flex; flex:1 1 auto; flex-direction:column; align-self:center; gap:1px; min-width:0; transform:translateY(-2px); }
.reel-author-name-row { display:flex; align-items:center; gap:4px; width:100%; min-width:0; }
.reel-author-name { display:flex; flex:0 1 auto; align-items:center; gap:4px; min-width:0; max-width:100%; height:18px; color:#fff; font-size:12px; font-weight:650; line-height:18px; }
.reel-author-name-row .reel-follow-inline { display:inline-flex; flex:none; align-items:center; justify-content:flex-start; width:auto; min-width:0; min-height:24px; padding:0; border:0; border-radius:0; background:transparent; color:#fff; font-family:inherit; font-size:11px; font-weight:700; line-height:18px; white-space:nowrap; }
.reel-author-name-row .reel-follow-inline:hover { background:transparent; color:rgba(255,255,255,.78); text-decoration:underline; }
.reel-author-name-row .reel-follow-inline.is-following .t-hover { display:none; }
.reel-author-name-row .reel-follow-inline.is-following:hover .t-main { display:none; }
.reel-author-name-row .reel-follow-inline.is-following:hover .t-hover { display:inline; }
.reel-author-name-row .reel-follow-inline:focus-visible { outline:2px solid #fff; outline-offset:2px; border-radius:2px; }
.reel-author-name-row .reel-follow-inline .t-main,.reel-author-name-row .reel-follow-inline .t-hover { white-space:nowrap; }
.reel-author-name > span { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reel-author-name .post-verified { width:13px; height:13px; flex:0 0 13px; }
.reel-author-handle { display:block; max-width:100%; overflow:hidden; color:rgba(255,255,255,.72); font-size:10.5px; font-weight:500; line-height:13px; text-overflow:ellipsis; white-space:nowrap; }
.reel-caption { display:-webkit-box; max-width:100%; margin:9px 0 0; overflow:hidden; color:#fff; font-size:14px; line-height:1.45; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:4; text-shadow:0 1px 4px rgba(0,0,0,.65); }
.reel-caption.is-expanded { display:block; max-height:30dvh; overflow-y:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.55) transparent; -webkit-line-clamp:unset; }
.reel-caption-toggle { display:inline-block; margin-top:4px; padding:0; color:rgba(255,255,255,.78); font-size:12px; font-weight:700; text-shadow:0 1px 4px rgba(0,0,0,.75); }
.reel-caption-toggle:hover { color:#fff; text-decoration:underline; }
.reel-caption .tag { color:#fff; text-decoration:underline; text-underline-offset:2px; }
.reel-source { display:inline-flex; align-items:center; gap:6px; margin-top:9px; color:rgba(255,255,255,.82); font-size:12px; }
.reel-source:hover { color:#fff; text-decoration:underline; }
.reel-actions { position:absolute; z-index:5; right:12px; bottom:22px; display:flex; flex-direction:column; align-items:center; gap:13px; width:50px; margin:0; padding:0; border:0; }
.reel-actions .action { display:flex; flex-direction:column; align-items:center; gap:5px; width:48px; min-width:0; height:auto; min-height:0; overflow:visible; color:#fff; }
.reel-actions .action .circle { display:grid; place-items:center; width:42px; height:42px; border:1px solid rgba(255,255,255,.22); border-radius:50%; background:rgba(8,8,8,.48); color:#fff; backdrop-filter:blur(8px); }
.reel-actions .action:hover .circle { background:rgba(0,0,0,.8); }
.reel-actions .action .icon { width:22px; height:22px; }
.reel-actions .action.like.on,.reel-actions .action.like.on .circle { color:#ff6b91; }
.reel-actions .reel-save.on .circle { color:#b69cff; border-color:rgba(182,156,255,.72); }
.reel-actions .count { display:grid; place-items:center; min-width:26px; min-height:18px; margin:0; padding:2px 7px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(0,0,0,.72); color:#fff; font-size:11px; font-weight:750; line-height:1; text-shadow:0 1px 2px #000; font-variant-numeric:tabular-nums; }
.reel-progress { position:absolute; z-index:7; right:68px; bottom:5px; left:18px; display:block; width:calc(100% - 86px); height:16px; margin:0; padding:0; appearance:none; -webkit-appearance:none; border:0; outline:0; background:transparent; touch-action:pan-x; cursor:pointer; }
.reel-progress::-webkit-slider-runnable-track { height:3px; border-radius:999px; background:linear-gradient(to right,#fff 0%,#fff var(--reel-progress,0%),rgba(255,255,255,.38) var(--reel-progress,0%),rgba(255,255,255,.38) 100%); }
.reel-progress::-moz-range-track { height:3px; border-radius:999px; background:rgba(255,255,255,.38); }
.reel-progress::-moz-range-progress { height:3px; border-radius:999px; background:#fff; }
.reel-progress::-webkit-slider-thumb { width:9px; height:9px; margin-top:-3px; appearance:none; -webkit-appearance:none; border:0; border-radius:50%; background:#fff; box-shadow:0 1px 5px rgba(0,0,0,.45); opacity:0; transition:opacity .15s; }
.reel-progress::-moz-range-thumb { width:9px; height:9px; border:0; border-radius:50%; background:#fff; box-shadow:0 1px 5px rgba(0,0,0,.45); opacity:0; transition:opacity .15s; }
.reel-card:hover .reel-progress::-webkit-slider-thumb,.reel-progress:focus-visible::-webkit-slider-thumb,.reel-progress:active::-webkit-slider-thumb,
.reel-card:hover .reel-progress::-moz-range-thumb,.reel-progress:focus-visible::-moz-range-thumb,.reel-progress:active::-moz-range-thumb { opacity:1; }
.reel-heart-burst { position:absolute; z-index:3; top:50%; left:50%; display:grid; place-items:center; width:104px; height:104px; color:#fff; opacity:0; pointer-events:none; transform:translate(-50%,-50%) scale(.25) rotate(-18deg); filter:drop-shadow(0 4px 16px rgba(0,0,0,.48)); }
.reel-heart-burst .icon { width:100%; height:100%; fill:currentColor; stroke:rgba(255,255,255,.82); stroke-width:1; }
.reel-heart-burst.is-visible { animation:reelHeartBurst .82s cubic-bezier(.16,.78,.25,1) both; }
@keyframes reelHeartBurst { 0% { opacity:0; transform:translate(-50%,-50%) scale(.25) rotate(-18deg); } 22% { opacity:1; transform:translate(-50%,-50%) scale(1.12) rotate(5deg); } 42% { transform:translate(-50%,-50%) scale(.96) rotate(0); } 72% { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(0); } 100% { opacity:0; transform:translate(-50%,-50%) scale(1.2) rotate(0); } }
.reels-empty { position:relative; display:grid; place-items:center; width:min(100%,560px); min-height:min(720px,calc(100dvh - 100px)); margin:auto; padding:52px 26px; border:1px solid var(--border); border-radius:20px; background:var(--bg-elev); text-align:center; }
.reels-empty > div { display:grid; justify-items:center; gap:14px; max-width:360px; }
.reels-empty-icon { display:grid; place-items:center; width:58px; height:58px; border:1px solid var(--border); border-radius:18px; color:var(--text-muted); }
.reels-empty h2 { font-size:22px; }
.reels-empty p { color:var(--text-muted); line-height:1.55; }
.reels-empty .reel-back { top:16px; left:16px; background:var(--bg); color:var(--text); border-color:var(--border); }
.reels-more { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:110px; color:var(--text-muted); font-size:13px; }
.reel-more-button { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--border); border-radius:50%; background:var(--bg-elev); color:var(--text); }
.reel-more-button:hover { background:var(--bg-hover); }

/* Comments stay in a compact sheet so the video remains visible behind it. */
.modal-layer:has(.modal.reel-comments-sheet) { align-items:flex-end; justify-content:center; padding:20px; overflow:hidden; background:rgba(0,0,0,.48); }
.modal.reel-comments-sheet { display:flex; flex-direction:column; width:min(100%,600px); height:min(60dvh,680px); min-height:min(360px,60dvh); max-height:76dvh; border:1px solid var(--border); border-radius:20px; background:var(--bg); box-shadow:0 22px 80px rgba(0,0,0,.45); }
.reel-comments { display:flex; flex:1; flex-direction:column; min-height:0; }
.reel-comments-head { position:relative; display:flex; flex:none; align-items:center; gap:12px; min-height:76px; padding:14px 16px 12px 20px; border-bottom:1px solid var(--border); }
.reel-comments-head > div { flex:1; min-width:0; text-align:center; }
.reel-comments-head h2 { font-size:16px; font-weight:750; }
.reel-comments-head h2 span { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; margin-left:4px; padding:0 7px; border:1px solid var(--border); border-radius:999px; background:var(--bg-input); color:var(--text); font-size:12px; font-weight:700; vertical-align:middle; }
.reel-comments-head p { margin-top:3px; color:var(--text-muted); font-size:12px; }
.reel-comments-head .icon-btn { width:36px; height:36px; border:1px solid var(--border); }
.reel-comments-grip { display:none; }
.reel-comments-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
.reel-comment { display:flex; align-items:flex-start; gap:11px; padding:14px 18px; border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent); }
.reel-comment-avatar { flex:none; }
.reel-comment-content { flex:1; min-width:0; }
.reel-comment-meta { display:flex; align-items:center; gap:5px; min-width:0; line-height:1.3; }
.reel-comment-name { max-width:38%; overflow:hidden; font-size:13px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.reel-comment-meta .post-verified { width:15px; height:15px; flex:none; }
.reel-comment-handle,.reel-comment-time { overflow:hidden; color:var(--text-muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.reel-comment-time { flex:none; margin-left:auto; }
.reel-comment-text { margin-top:5px; font-size:14px; line-height:1.45; }
.reel-comment .post-media-grid,.reel-comment .post-video,.reel-comment .poll-box { margin-top:8px; }
.reel-comments-more,.reel-comments-error button { display:block; width:100%; padding:12px 16px; color:var(--accent); font-size:13px; font-weight:650; text-align:center; }
.reel-comments-more:hover,.reel-comments-error button:hover { background:var(--bg-hover); }
.reel-comments-state,.reel-comments-empty { padding:28px 18px; color:var(--text-muted); font-size:14px; text-align:center; }
.reel-comments-error { padding:16px; color:var(--text-muted); text-align:center; }
.reel-comments-error button { margin-top:4px; }
.reel-comment-form { display:flex; flex:none; align-items:flex-end; gap:10px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--bg); }
.reel-comment-form textarea { flex:1; min-width:0; max-height:104px; min-height:42px; padding:10px 13px; resize:none; overflow-y:auto; border:1px solid var(--border); border-radius:18px; outline:0; background:var(--bg-input); color:var(--text); font:inherit; font-size:14px; line-height:1.4; }
.reel-comment-form textarea:focus { border-color:var(--accent); }
.reel-comment-form textarea::placeholder { color:var(--text-muted); }
.reel-comment-form .btn { flex:none; min-height:40px; padding:0 16px; border-radius:999px; font-size:13px; }
.reel-comment-form .btn:disabled { opacity:.5; cursor:not-allowed; }

@media (min-width:701px) and (max-width:1100px) {
  .reels-track { padding-inline:12px; }
  .reel-card.post { height:min(76dvh,740px); }
  .modal-layer:has(.modal.reel-comments-sheet) { padding:12px; }
}
@media (max-width:700px) {
  body.reels-open { overscroll-behavior:none; }
  body.reels-open .feed-column { width:100%; height:100dvh; min-height:0; padding:0; overflow:visible; }
  .reels-view { min-height:100dvh; }
  .reels-view > .page-header { display:none; }
  .reels-shell { position:fixed; z-index:90; inset:0; width:100%; height:100vh; height:100svh; height:100dvh; padding:0; overflow-x:hidden; overflow-y:auto; background:#000; scroll-snap-type:y mandatory; scroll-padding:0; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .reels-shell::-webkit-scrollbar { display:none; width:0; }
  .reels-track { display:block; min-height:100%; padding:0; }
  .reel-card.post { width:100%; height:100vh; height:100dvh; min-height:100vh; min-height:100dvh; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; scroll-snap-align:start; }
  .reel-shade { background:linear-gradient(180deg,rgba(0,0,0,.48),transparent 18%,transparent 46%,rgba(0,0,0,.16) 62%,rgba(0,0,0,.82) 100%); }
  .reel-back,.reel-mute,.reel-more { top:calc(12px + env(safe-area-inset-top)); }
  .reel-back,.reel-mute,.reel-more { min-height:44px; border-color:rgba(255,255,255,.28); background:rgba(10,10,10,.58); }
  .reel-back { left:14px; padding-inline:14px; }
  .reel-mute { right:14px; width:44px; }
  .reel-more { right:66px; width:44px; }
  .reel-info { right:68px; bottom:calc(36px + env(safe-area-inset-bottom)); left:16px; }
  .reel-author { gap:8px; }
  .reel-author-avatar { flex:none; }
  .reel-author-name { font-size:12px; }
  .reel-author-handle { font-size:10.5px; }
  .reel-actions { right:9px; bottom:calc(34px + env(safe-area-inset-bottom)); gap:11px; width:50px; }
  .reel-actions .action { width:48px; gap:5px; transition:transform .16s ease; }
  .reel-actions .action:active { transform:scale(.92); }
  .reel-actions .action .circle { width:44px; height:44px; border-color:rgba(255,255,255,.32); background:rgba(8,8,8,.58); }
  .reel-actions .action .icon { width:22px; height:22px; }
  .reel-actions .count { min-height:19px; padding-inline:8px; }
  .reel-progress { right:66px; bottom:env(safe-area-inset-bottom); left:14px; width:calc(100% - 80px); height:20px; }
  .reel-caption { -webkit-line-clamp:3; }
  .reel-caption.is-expanded { max-height:23dvh; }
  .reels-empty { width:100%; min-height:100dvh; border:0; border-radius:0; }
  .reels-empty .reel-back { top:calc(12px + env(safe-area-inset-top)); left:14px; }
  .modal-layer:has(.modal.reel-comments-sheet) { align-items:flex-end; padding:0; }
  .modal.reel-comments-sheet { width:100%; height:min(58dvh,580px); min-height:min(320px,58dvh); max-height:76dvh; border-width:1px 0 0; border-radius:22px 22px 0 0; animation:reelSheetIn .2s ease-out; }
  .reel-comments-head { min-height:64px; padding:14px 14px 10px; }
  .reel-comments-grip { position:absolute; top:6px; left:50%; display:block; width:34px; height:4px; border-radius:999px; background:var(--border); transform:translateX(-50%); }
  .reel-comment { gap:9px; padding:12px 14px; }
  .reel-comment-name { max-width:34%; }
  .reel-comment-form { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width:360px) {
  .reel-info { right:60px; left:12px; }
  .reel-author { gap:6px; }
  .reel-author-name { font-size:11.5px; }
  .reel-author-handle { font-size:10px; }
  .reel-actions { right:5px; width:46px; gap:8px; }
  .reel-actions .action { width:44px; }
  .reel-actions .action .circle { width:40px; height:40px; }
  .reel-progress { right:60px; left:11px; width:calc(100% - 71px); }
  .reel-comment-meta { flex-wrap:wrap; }
  .reel-comment-name { max-width:48%; }
  .reel-comment-time { margin-left:0; }
}
@media (max-width:700px) and (max-height:560px) {
  .reel-info { bottom:calc(28px + env(safe-area-inset-bottom)); }
  .reel-actions { bottom:calc(26px + env(safe-area-inset-bottom)); gap:6px; }
  .reel-actions .action .circle { width:38px; height:38px; }
  .reel-caption { -webkit-line-clamp:2; }
  .reel-source { display:none; }
  .modal.reel-comments-sheet { height:66dvh; }
}
@keyframes reelSheetIn { from { transform:translateY(18px); opacity:.8; } to { transform:translateY(0); opacity:1; } }
@media (prefers-reduced-motion:reduce) {
  .reel-heart-burst.is-visible { animation-duration:.01ms; }
}

.home-update-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 16px;padding:13px 15px;border:1px solid var(--line,#343a43);border-radius:14px;background:var(--surface,#15191f)}.home-update-copy{display:grid;gap:3px;min-width:0}.home-update-copy>span{color:var(--muted,#9ba4af);font-size:10px;font-weight:750;letter-spacing:.08em}.home-update-copy>strong{font-size:14px;line-height:1.3}.home-update-copy>p{display:-webkit-box;margin:0;color:var(--muted,#9ba4af);font-size:12px;line-height:1.45;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.home-update-card>a,.notif-update-link{flex:none;color:var(--accent,#188be8);font-size:12px;font-weight:650;text-decoration:none}.home-update-card>a:hover,.notif-update-link:hover{text-decoration:underline}.notif-update-link{display:inline-block;margin-top:5px}.notif-platform-update{align-items:flex-start}@media(max-width:600px){.home-update-card{align-items:flex-start;margin:10px;padding:12px}.home-update-card>a{font-size:11px;white-space:nowrap}}


/* Visible feature components: compact, icon-led and consistent with the app. */
.profile-pinned-label{display:flex;align-items:center;gap:6px;padding:11px 16px 2px;color:var(--text-muted);font-size:11px;font-weight:700}.profile-pinned-label .icon{color:var(--accent)}

.post-replies-more-wrap{display:flex;justify-content:center;padding:12px 16px}.post-replies-more{min-height:36px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--bg-elev);color:var(--text-muted);font:inherit;font-size:12px;font-weight:650;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.post-replies-more:hover:not(:disabled){border-color:var(--accent);background:var(--bg-hover);color:var(--text)}.post-replies-more:disabled{opacity:.65;cursor:wait}.post-replies-more[hidden]{display:none}

/* User controls stay inside their existing lists; no decorative feature cards. */
.notif-tools{display:flex;align-items:center;gap:16px;min-height:44px;padding:0 16px;border-bottom:1px solid var(--border)}.notif-tools button{display:inline-flex;align-items:center;gap:6px;padding:7px 0;border:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;cursor:pointer}.notif-tools button:hover:not(:disabled),.notif-tools button.active{color:var(--text)}.notif-tools button:disabled{opacity:.45;cursor:default}.notif-mark-all{margin-right:auto!important;color:var(--accent)!important;font-weight:650!important}.notif-unread-toggle span{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--bg-hover);font-size:10px;font-variant-numeric:tabular-nums}.inbox-search-wrap,.bookmarks-search-wrap{padding:10px 16px;border-bottom:1px solid var(--border)}.inbox-search-wrap input,.bookmarks-search-wrap input{display:block;width:100%;height:38px;padding:0 13px;border:1px solid var(--border);border-radius:10px;outline:none;background:var(--bg-elev);color:var(--text);font:inherit;font-size:13px}.inbox-search-wrap input:focus,.bookmarks-search-wrap input:focus{border-color:var(--accent)}.convo-state{margin-top:5px;color:var(--text-muted);font-size:10px;line-height:1.2}.inbox-no-results,.chat-empty-hint{padding:28px 18px;color:var(--text-muted);text-align:center;font-size:13px}.compose-save-state{min-height:18px;padding:1px 18px 10px;color:var(--text-muted);font-size:11px;text-align:right}
@media(max-width:620px){.notif-tools{gap:12px;padding:0 12px}.notif-tools button{font-size:11px}.notif-mark-all{margin-right:auto!important}.inbox-search-wrap,.bookmarks-search-wrap{padding:9px 12px}.inbox-search-wrap input,.bookmarks-search-wrap input{height:36px}}
.chat-search-wrap{padding:9px 16px;border-bottom:1px solid var(--border)}.chat-search-wrap[hidden]{display:none}.chat-search-wrap input{display:block;width:100%;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:9px;outline:none;background:var(--bg-elev);color:var(--text);font:inherit;font-size:13px}.chat-search-wrap input:focus{border-color:var(--accent)}.feed-page-more{display:flex;justify-content:center;padding:18px 12px}.feed-page-more .btn{min-height:38px;font-size:13px}
.compose-draft-actions{display:flex;justify-content:flex-end;gap:16px;padding:0 18px 8px}.compose-draft-actions button{padding:4px 0;border:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;cursor:pointer}.compose-draft-actions button:hover{color:var(--accent)}.pref-intro{margin:0 0 14px;color:var(--text-muted);font-size:13px;line-height:1.5}.pref-select-row,.pref-check-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;border-bottom:1px solid var(--border);font-size:13px}.pref-select-row select{max-width:145px;padding:7px 9px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elev);color:var(--text);font:inherit}.pref-check-list{margin:2px 0 14px}.pref-check-row input{width:17px;height:17px;accent-color:var(--accent)}.pref-keywords-label{display:block;margin:18px 0 8px;font-size:13px;font-weight:650}.pref-keywords-form{display:flex;gap:8px}.pref-keywords-form input{flex:1;min-width:0;height:38px;padding:0 11px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elev);color:var(--text);font:inherit}.pref-keywords-form button{padding:0 14px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);font:inherit;cursor:pointer}.pref-keyword-list{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 16px}.pref-keyword-list button{padding:5px 9px;border:1px solid var(--border);border-radius:999px;background:var(--bg-elev);color:var(--text-muted);font:inherit;font-size:12px;cursor:pointer}.pref-keyword-list button:hover{color:var(--text);border-color:var(--text-muted)}.pref-empty{display:block;padding:18px 0;color:var(--text-muted);font-size:13px;line-height:1.5}.draft-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.draft-open{display:grid;flex:1;min-width:0;gap:4px;padding:0;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.draft-open strong,.draft-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-open strong{font-size:13px;font-weight:650}.draft-open span{color:var(--text-muted);font-size:12px}.draft-remove{padding:6px 8px;border:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;cursor:pointer}.draft-remove:hover{color:#e25555}.compose-preview{margin-bottom:16px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev)}.compose-preview .post-head{display:flex;align-items:center;gap:7px;margin-bottom:12px}.compose-preview .post-meta{color:var(--text-muted);font-size:12px}.compose-preview .post-text{font-size:15px;line-height:1.55}
@media(max-width:620px){.compose-draft-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px;padding-inline:12px}.pref-select-row,.pref-check-row{gap:10px}.pref-select-row>span,.pref-check-row>span{flex:1;min-width:0;line-height:1.4}.pref-select-row select{max-width:132px}.draft-row{gap:6px}}
.draft-clear-all{margin-top:16px;padding:7px 0;border:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;cursor:pointer}.draft-clear-all:hover{color:#e25555}

/* Profile controls, uploaded cover images, blocked accounts and settings. */
.profile-edit-modal{display:flex;flex-direction:column;height:min(90dvh,780px);max-height:90dvh;min-height:0;overflow:hidden}
.profile-edit-modal>#editForm{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.profile-edit-modal .modal-head{flex:none}
.profile-edit-modal .edit-banner{flex:0 0 150px;background-position:center;background-size:cover}
.profile-edit-modal .edit-profile-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.edit-banner-tools{max-width:calc(100% - 24px);overflow-x:auto;align-items:center}
.edit-banner-upload{flex:none;display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid rgba(255,255,255,.35);border-radius:999px;color:#fff;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
.edit-banner-upload:hover{background:rgba(0,0,0,.35)}
.edit-banner-status{position:absolute;right:10px;bottom:9px;padding:4px 8px;border-radius:6px;background:rgba(0,0,0,.62);color:#fff;font-size:11px}
.blocked-list{padding:0 16px 12px;max-height:min(65dvh,560px);overflow-y:auto}
.blocked-row{justify-content:space-between;align-items:center;padding:14px 0;min-height:0}
.blocked-profile{display:flex;align-items:flex-start;gap:11px;flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.blocked-profile-copy{display:grid;gap:3px;min-width:0}.blocked-name{display:flex;align-items:center;gap:4px;font-weight:700}.blocked-profile-copy small,.blocked-meta{color:var(--text-muted);font-size:12px}.blocked-bio{display:-webkit-box;max-width:360px;overflow:hidden;color:var(--text);font-size:13px;line-height:1.4;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical}.blocked-meta{margin-top:2px}
.settings-view{padding:0 18px 36px;max-width:700px;margin:0 auto}.settings-account{display:flex;align-items:center;gap:13px;padding:20px 0;border-bottom:1px solid var(--border)}.settings-account>div{display:grid;gap:3px;min-width:0;flex:1}.settings-account>div strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-account small{color:var(--text-muted)}.settings-account>a{color:var(--accent);font-size:13px;text-decoration:none}.settings-group{padding-top:20px}.settings-group h2{margin:0 0 5px;color:var(--text-muted);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:63px;padding:10px 2px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left;text-decoration:none;cursor:pointer}.settings-row>span:first-child{display:grid;gap:3px}.settings-row strong{font-size:14px;font-weight:650}.settings-row small{color:var(--text-muted);font-size:12px;line-height:1.35}.settings-arrow{color:var(--text-muted);font-size:23px;line-height:1}.settings-row:hover strong,.settings-row:hover .settings-arrow{color:var(--accent)}
.reel-view-count{display:block;margin-top:6px;color:rgba(255,255,255,.78);font-size:12px;line-height:1.3}
@media(max-width:700px){.profile-edit-modal{width:100%;height:100dvh;max-height:100dvh;min-height:0;margin:0;border-radius:0}.profile-edit-modal .edit-banner{flex-basis:142px}.profile-edit-modal .edit-avatar{margin-top:-42px}.settings-view{padding:0 16px calc(24px + env(safe-area-inset-bottom))}.settings-account{padding:16px 0}.settings-row{min-height:60px}.blocked-list{max-height:calc(100dvh - 74px)}.blocked-row{align-items:center;gap:9px}.blocked-profile{gap:8px}.blocked-meta{font-size:11px}.reel-view-count{font-size:11px}}

/* Clear cover previews, readable message receipts and grouped feed preferences. */
.profile-banner,.edit-banner{isolation:isolate;overflow:hidden}
.banner-image{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.banner-image[hidden]{display:none}
.profile-banner::after{z-index:1;pointer-events:none}
.edit-banner .banner-image{z-index:0}
.edit-banner-tools,.edit-banner-status{z-index:2}
.post-video.has-error video{display:none}
.post-video-fallback{display:grid;min-height:150px;margin:0;padding:24px;place-items:center;color:var(--text-muted);text-align:center;font-size:14px;line-height:1.5}
.post-video-fallback[hidden]{display:none}
.message-receipt{display:flex;align-self:flex-end;align-items:center;gap:5px;margin:-4px 6px 5px;color:var(--text-muted);font-size:11px;line-height:16px}
.message-receipt-icon{display:grid;width:16px;height:16px;place-items:center;flex:none}
.message-receipt-icon .icon{display:block;width:15px;height:15px;stroke-width:2}
.message-receipt.is-read{color:var(--accent)}
.feed-preferences-modal{max-width:520px!important;max-height:min(88dvh,820px);overflow:hidden;border:1px solid var(--border);box-shadow:0 22px 70px rgba(0,0,0,.3)}
.feed-preferences-modal .modal-head{padding:12px 16px;border-bottom:1px solid var(--border)}
.feed-preferences-modal .modal-head h2{font-size:18px}
.feed-pref-body{max-height:calc(min(88dvh,820px) - 62px);overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 20px;scrollbar-gutter:stable}
.feed-pref-body>.pref-intro{margin:0 0 14px;font-size:13px;line-height:1.5}
.feed-pref-section{margin:0 0 12px;padding:14px 15px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev)}
.feed-pref-section:last-child{margin-bottom:0}
.feed-pref-section h3{margin:0 0 8px;font-size:14px;font-weight:750}
.feed-pref-row,.feed-pref-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:9px 0;border-top:1px solid var(--border);cursor:pointer}
.feed-pref-row>span,.feed-pref-copy{display:grid;gap:4px;min-width:0}
.feed-pref-row strong,.feed-pref-copy strong{font-size:13px;font-weight:650;line-height:1.35}
.feed-pref-row small,.feed-pref-copy small,.feed-pref-help{color:var(--text-muted);font-size:12px;line-height:1.4}
.feed-pref-row select{flex:none;max-width:150px;min-height:36px;padding:0 30px 0 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;font-size:12px}
.feed-pref-switch{position:relative;display:block;width:40px;height:24px;flex:none}
.feed-pref-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.feed-pref-switch i{position:absolute;inset:2px;border:1px solid var(--border);border-radius:99px;background:var(--bg-hover);pointer-events:none;transition:background .16s,border-color .16s}
.feed-pref-switch i::after{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--text-muted);content:"";transition:transform .16s,background .16s}
.feed-pref-switch input:checked+i{border-color:var(--accent);background:var(--accent)}
.feed-pref-switch input:checked+i::after{transform:translateX(16px);background:var(--accent-ink)}
.feed-pref-switch input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}
.feed-pref-help{margin:0 0 10px}
.feed-pref-section .pref-keywords-form{margin-top:10px}
.feed-pref-section .pref-keyword-list{margin:10px 0 0}
@media(max-width:620px){
  .feed-preferences-modal{width:calc(100% - 20px);max-height:90dvh;margin:auto 10px;border-radius:16px}
  .feed-pref-body{max-height:calc(90dvh - 62px);padding:12px 12px max(16px,env(safe-area-inset-bottom))}
  .feed-pref-section{padding:12px}
  .feed-pref-row,.feed-pref-toggle{gap:10px}
  .feed-pref-row select{max-width:130px}
  .message-receipt{font-size:10px}
}

/* Keep the caption control and the post link on separate rows. */
.reel-caption-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0;margin-top:9px}
.reel-caption-group .reel-caption{width:100%;margin:0}
.reel-caption-group .reel-caption-toggle{display:block;position:static;align-self:flex-start;min-height:24px;margin:3px 0 0;padding:2px 0;line-height:18px}
.reel-info>.reel-source{display:flex;width:max-content;max-width:100%;margin-top:7px}

/* Profile Reels use a video gallery instead of feed-style post cards. */
.profile-reels-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:2px}
.profile-reel-tile{position:relative;display:block;width:100%;aspect-ratio:3/4;overflow:hidden;padding:0;border:0;border-radius:0;background:#151515;color:#fff;text-align:left;cursor:pointer;isolation:isolate}
.profile-reel-tile::after{position:absolute;z-index:1;inset:45% 0 0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.62));content:"";pointer-events:none}
.profile-reel-thumbnail{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#151515;transition:transform .2s ease,opacity .2s ease}
.profile-reel-tile:not(.has-frame) .profile-reel-thumbnail{opacity:0}
.profile-reel-tile.has-error .profile-reel-thumbnail{display:none}
.profile-reel-tile.has-error{background:linear-gradient(145deg,#252525,#101010)}
.profile-reel-count{position:absolute;z-index:2;right:7px;bottom:7px;left:7px;display:flex;align-items:center;gap:5px;color:#fff;font-size:12px;font-weight:650;line-height:1.2;text-shadow:0 1px 4px rgba(0,0,0,.8);font-variant-numeric:tabular-nums;pointer-events:none}
.profile-reel-count .icon{width:14px;height:14px;flex:none;stroke-width:2}
.profile-reel-tile:focus-visible{z-index:3;outline:2px solid var(--accent);outline-offset:-2px}
@media(hover:hover){.profile-reel-tile:hover .profile-reel-thumbnail{transform:scale(1.035)}}
@media(max-width:360px){.profile-reels-grid{gap:1px;padding:1px}.profile-reel-count{right:5px;bottom:5px;left:5px;font-size:11px}}
