:root {

  --bg: #09090b;

  --line: rgba(255, 255, 255, 0.08);

  --text: #f4f4f5;

  --muted: #a1a1aa;

  --accent: #f0529b;

  --card: #141418;

  --chip: rgba(255, 255, 255, 0.04);

}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {

  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  background: radial-gradient(1200px 600px at 20% -10%, #2a1020, transparent), var(--bg);

  color: var(--text);

  padding: 20px;

}

.wrap { max-width: 820px; margin: 0 auto; }

.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.title { margin: 0; font-size: 36px; font-weight: 800; }

.sub { color: var(--muted); margin: 8px 0 16px; }

.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.community-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #1a1a21;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.community-tab.active {
  background: linear-gradient(135deg, rgba(240, 82, 155, 0.3), rgba(139, 92, 246, 0.25));
  border-color: rgba(240, 82, 155, 0.55);
}

.feed-media-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #71717a;
  font-size: 13px;
  background: #111118;
}

.play-feed-item { cursor: pointer; }

.toolbar.is-plays .toolbar-sort,
.toolbar.is-plays .pager {
  display: none;
}

.actions { display: flex; gap: 8px; }

.btn {

  border: 1px solid var(--line);

  border-radius: 10px;

  padding: 8px 12px;

  color: #fff;

  text-decoration: none;

  background: #17171d;

  font: inherit;

  cursor: pointer;

}

.grid {

  display: flex;

  flex-direction: column;

  gap: 14px;

  max-width: 780px;

  margin: 0 auto;

}

.feed-item {

  display: flex;

  flex-direction: row;

  align-items: stretch;

  gap: 16px;

  padding: 14px 0;

  border-bottom: 1px solid var(--line);

  background: transparent;

  min-height: 0;

}

.feed-item:last-child {

  border-bottom: none;

}

.feed-media {

  flex: 0 0 168px;

  width: 168px;

  height: 210px;

  border-radius: 14px;

  overflow: hidden;

  background: #222;

  align-self: flex-start;

}

.feed-media img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

}

.feed-body {

  flex: 1;

  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 8px;

  padding: 2px 0 0;

}

.name {

  margin: 0;

  font-size: 18px;

  font-weight: 700;

  line-height: 1.25;

  letter-spacing: 0.01em;

}

.feed-hook {

  margin: 0;

  font-size: 14px;

  line-height: 1.45;

  color: #d4d4d8;

}

.feed-hook--muted {

  color: var(--muted);

  font-size: 13px;

}

.feed-pills {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-pill {
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-stats {

  margin: 0;

  font-size: 12px;

  color: var(--muted);

  font-variant-numeric: tabular-nums;

  letter-spacing: 0.01em;

}

.feed-comments {

  display: flex;

  flex-direction: column;

  gap: 4px;

  padding: 6px 0 2px;

  cursor: pointer;

  border-radius: 6px;

}

.feed-comments:hover .feed-comments-more,

.feed-comments:focus-visible .feed-comments-more {

  color: #fecdd3;

}

.feed-comments:focus-visible {

  outline: 1px solid rgba(240, 82, 155, 0.35);

  outline-offset: 2px;

}

.feed-comment {

  display: flex;

  gap: 8px;

  align-items: baseline;

  min-width: 0;

  font-size: 13px;

  line-height: 1.4;

}

.feed-comment-name {

  flex-shrink: 0;

  font-weight: 600;

  color: #e4e4e7;

  max-width: 7em;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}

.feed-comment-body {

  color: var(--muted);

  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}

.feed-comments-empty {

  margin: 0;

  font-size: 13px;

  color: var(--muted);

}

.feed-comments-more {

  font-size: 12px;

  color: #a78a96;

  margin-top: 2px;

}



/* Author: avatar + nick + ID */

.author {

  display: flex;

  align-items: center;

  gap: 10px;

  min-width: 0;

}

.author-avatar {

  width: 36px;

  height: 36px;

  border-radius: 999px;

  overflow: hidden;

  flex-shrink: 0;

  background: linear-gradient(145deg, #3f2a36, #1c1520);

  border: 1px solid rgba(255, 255, 255, 0.12);

  display: grid;

  place-items: center;

  font-size: 12px;

  font-weight: 700;

  color: #f9a8d4;

}

.author-avatar img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

}

.author-text {

  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 2px;

}

.author-nick {

  font-size: 13px;

  font-weight: 600;

  color: #e4e4e7;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.author-id {

  font-size: 11px;

  color: var(--muted);

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  font-variant-numeric: tabular-nums;

}

.author--archive {

  margin: 0 0 12px;

  padding: 10px 12px;

  border-radius: 12px;

  background: rgba(15, 23, 42, 0.45);

  border: 1px solid rgba(148, 163, 184, 0.18);

}

.author--archive .author-avatar {

  width: 44px;

  height: 44px;

  font-size: 14px;

}



/* Stats line lives in .feed-stats; keep legacy .stats unused */

.row {

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 6px;

  margin-top: 4px;

}

.row button {

  border: 1px solid var(--line);

  background: #1f1f27;

  color: #fff;

  border-radius: 10px;

  padding: 8px 6px;

  font: inherit;

  font-size: 12px;

  cursor: pointer;

  white-space: nowrap;

}

.row button.on {

  border-color: var(--accent);

  color: var(--accent);

  background: rgba(240, 82, 155, 0.08);

}

.row button.primary {

  border-color: rgba(240, 82, 155, 0.45);

  background: rgba(240, 82, 155, 0.16);

  color: #fecdd3;

}

.hint { color: var(--muted); margin-top: 16px; font-size: 13px; }

.empty {

  border: 1px dashed var(--line);

  border-radius: 14px;

  padding: 40px;

  text-align: center;

  color: var(--muted);

}



/* 档案弹窗 — 对齐随机邂逅「角色基础档案」风格 */

.archive-dialog {
  width: min(720px, 96vw);
  max-height: min(90vh, 880px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 0;
  background: #0c0f16;
  color: #e2e8f0;
  overflow: hidden;
}
.archive-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.archive-inner {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 880px);
  overflow: hidden;
  min-height: 0;
}
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}
.archive-x {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.archive-body {
  padding: 16px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.archive-loading,
.archive-error {
  color: var(--muted);
  padding: 24px 8px;
  text-align: center;
}
.archive-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 640px) {
  .feed-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  .feed-media {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 360px;
  }
  .archive-layout { grid-template-columns: 1fr; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.archive-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #1a1a21;
  display: block;
  position: sticky;
  top: 0;
}
.archive-main { min-width: 0; }
.archive-main > .stats {
  margin: 0 0 12px;
}
.archive-presence {
  margin: 10px 0 0;
  color: #f4f4f5;
  line-height: 1.7;
  font-size: 14px;
}
.archive-kink-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.archive-kink-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.archive-kink-block strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.archive-kink-block p {
  margin: 0;
  color: #e4e4e7;
  line-height: 1.65;
  white-space: pre-wrap;
  font-size: 14px;
}
.kink-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kink-block {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.kink-block-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(196, 181, 253, 0.9);
  margin-bottom: 4px;
}
.kink-block-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.88);
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kink-block.is-open .kink-block-body {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.kink-block-body:hover {
  cursor: pointer;
}

.re-basic-profile-card {

  margin: 0 0 12px;

  padding: 12px 14px;

  border-radius: 10px;

  background: rgba(15, 23, 42, 0.55);

  border: 1px solid rgba(148, 163, 184, 0.22);

}

.re-basic-profile-k {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.04em;

  color: rgba(148, 163, 184, 0.95);

  margin-bottom: 8px;

  display: block;

}

.re-basic-profile-body {

  margin: 0;

  padding: 0;

  list-style: none;

  font-size: 13px;

  line-height: 1.55;

  color: rgba(226, 232, 240, 0.9);

}

.re-basic-profile-body li + li { margin-top: 4px; }

.archive-section {

  margin: 0 0 12px;

  padding: 12px 14px;

  border-radius: 10px;

  background: rgba(24, 24, 27, 0.55);

  border: 1px solid rgba(167, 139, 250, 0.18);

}

.archive-section-k {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.04em;

  color: rgba(196, 181, 253, 0.9);

  margin-bottom: 8px;

  display: block;

}

.archive-section-body {

  margin: 0;

  font-size: 13px;

  line-height: 1.55;

  color: rgba(226, 232, 240, 0.88);

  white-space: pre-wrap;

  word-break: break-word;

}

.archive-presence {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 244, 245, 0.95);
}

.archive-kink-raw {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

.archive-kink-raw summary {
  cursor: pointer;
  user-select: none;
}

.archive-chips {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin: 0;

  padding: 0;

  list-style: none;

}

.archive-chip {

  font-size: 12px;

  padding: 4px 10px;

  border-radius: 999px;

  border: 1px solid rgba(148, 163, 184, 0.28);

  background: rgba(30, 41, 59, 0.55);

  color: #e2e8f0;

}

.archive-meta-line {

  margin-top: 8px;

  font-size: 12px;

  color: var(--muted);

}

.archive-erotic {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin: 0 0 12px;

  padding: 5px 10px;

  border-radius: 999px;

  border: 1px solid rgba(167, 139, 250, 0.35);

  background: rgba(49, 46, 129, 0.35);

  font-size: 12px;

}

.archive-erotic-k { color: rgba(196, 181, 253, 0.85); }



/* Feed toolbar + archive comments (2026-07-23) */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.toolbar-field select {
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #17171d;
  color: var(--text);
  font: inherit;
}
.toolbar-search {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 280px;
}
.toolbar-search input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #17171d;
  color: var(--text);
  font: inherit;
}
.toolbar-search input[type="search"]::placeholder {
  color: #71717a;
}
.toolbar-search input[type="search"]:focus {
  outline: none;
  border-color: rgba(240, 82, 155, 0.45);
}
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pager-meta {
  font-size: 13px;
  color: var(--muted);
  min-width: 5.5em;
  text-align: center;
}
.pager .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.archive-comments {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.archive-comments-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.archive-comments-k {
  font-size: 13px;
  font-weight: 700;
  color: #e4e4e7;
}
.archive-comments-count {
  font-size: 12px;
  color: var(--muted);
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.comment-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f0f14;
  color: var(--text);
  font: inherit;
}
.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.comment-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-actions {
  margin-top: 8px;
}
.comment-like.on {
  border-color: rgba(240, 82, 155, 0.55);
  color: #fda4d0;
}
.comment-empty {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.btn-accent {
  border-color: rgba(240, 82, 155, 0.45);
  background: linear-gradient(135deg, rgba(240, 82, 155, 0.25), rgba(124, 58, 237, 0.2));
}

.feed-media { position: relative; }
.feed-badge--archived {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #f5f0ea;
  background: rgba(40, 28, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.feed-item--archived {
  opacity: 0.92;
}
.feed-item--archived .row button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
