/* Fly-Wei forum shell — Xiuno-like frame, gold/dark palette */
:root {
  --fw-gold: #d4af37;
  --fw-gold-bright: #e8c84a;
  --fw-gold-dim: #9a7a26;
  --fw-bg: #0a0a0a;
  --fw-panel: #111111;
  --fw-panel-2: #1a1a1a;
  --fw-line: rgba(212, 175, 55, 0.14);
  --fw-line-strong: rgba(212, 175, 55, 0.28);
  --fw-text: #e8c84a;
  --fw-muted: rgba(184, 150, 47, 0.72);
  --fw-radius: 10px;
  --fw-shadow: 0 1px 0 rgba(212,175,55,.04), 0 10px 28px rgba(0,0,0,.35);
}

.fw-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 16px 48px;
}

.fw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .fw-grid { grid-template-columns: 1fr; }
  .fw-side { order: -1; }
}

.fw-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--fw-radius);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  color: var(--fw-text);
  font-size: 13px;
  line-height: 1.6;
}
.fw-alert[hidden] { display: none !important; }
.fw-alert-close {
  border: 0;
  background: transparent;
  color: var(--fw-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
}

.fw-crumb {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--fw-radius);
  border: 1px solid var(--fw-line);
  background: var(--fw-panel);
  font-size: 13px;
  color: var(--fw-muted);
}
.fw-crumb a { color: var(--fw-gold-bright); text-decoration: none; }
.fw-crumb a:hover { text-decoration: underline; }

.fw-panel {
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  background: var(--fw-panel);
  box-shadow: var(--fw-shadow);
  overflow: hidden;
}

.fw-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fw-line);
  background: rgba(26, 26, 26, 0.7);
  flex-wrap: wrap;
}
.fw-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fw-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.fw-tab:hover { color: var(--fw-gold-bright); background: rgba(212,175,55,.06); }
.fw-tab.is-on {
  color: var(--fw-gold-bright);
  background: rgba(212, 175, 55, 0.12);
}
.fw-tabs-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fw-line);
}
.fw-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--fw-line);
  color: var(--fw-muted);
  text-decoration: none;
  font-size: 12px;
}
.fw-chip:hover, .fw-chip.is-on {
  color: var(--fw-gold-bright);
  border-color: var(--fw-line-strong);
  background: rgba(212,175,55,.08);
}

.fw-list { list-style: none; margin: 0; padding: 0; }
.fw-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212,175,55,.08);
  text-decoration: none;
  color: inherit;
}
.fw-row:last-child { border-bottom: 0; }
.fw-row:hover { background: rgba(212,175,55,.05); }
.fw-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212,175,55,.1);
  border: 1px solid var(--fw-line);
  color: var(--fw-gold);
  font-size: 18px;
  flex: 0 0 auto;
  overflow: hidden;
}
.fw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fw-user-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.28);
  color: var(--fw-gold-bright);
  font-weight: 700;
  line-height: 1;
}
.fw-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fw-user-avatar--sm { width: 28px; height: 28px; font-size: 12px; }
.fw-user-avatar--md { width: 40px; height: 40px; font-size: 15px; }
.fw-user-avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.fw-user-avatar--fallback { letter-spacing: 0; }
.fw-user-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fw-user-line-text { min-width: 0; }
.fw-avatar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
.fw-avatar-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fw-row-title {
  display: block;
  color: var(--fw-gold-bright);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}
.fw-row-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fw-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.fw-row-stat {
  text-align: right;
  font-size: 12px;
  color: var(--fw-muted);
  white-space: nowrap;
}
.fw-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--fw-line);
  font-size: 11px;
  color: var(--fw-gold);
  background: rgba(212,175,55,.08);
}
.fw-badge-pin { border-color: rgba(232,200,74,.45); color: #ffd76a; }
.fw-badge-lock { color: var(--fw-muted); }
.fw-badge-hide { color: #f0a8a8; border-color: rgba(240,168,168,.35); }

.fw-empty {
  padding: 42px 16px;
  text-align: center;
  color: var(--fw-muted);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.fw-cat-block { padding: 14px; border-bottom: 1px solid var(--fw-line); }
.fw-cat-block:last-child { border-bottom: 0; }
.fw-cat-title {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fw-gold-bright);
  font-weight: 700;
}
.fw-cat-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--fw-muted);
}
.fw-forum-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--fw-line);
  background: rgba(26,26,26,.55);
  text-decoration: none;
  color: inherit;
}
.fw-forum-link:last-child { margin-bottom: 0; }
.fw-forum-link:hover {
  border-color: var(--fw-line-strong);
  background: rgba(212,175,55,.06);
}
.fw-forum-name { color: var(--fw-gold-bright); font-weight: 600; font-size: 14px; }
.fw-forum-desc { margin-top: 2px; color: var(--fw-muted); font-size: 12px; }
.fw-forum-count { color: var(--fw-muted); font-size: 12px; white-space: nowrap; }

.fw-side-card {
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  background: var(--fw-panel);
  box-shadow: var(--fw-shadow);
  padding: 14px;
  margin-bottom: 12px;
}
.fw-side-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fw-gold-bright);
}
.fw-stats { margin: 0; }
.fw-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 12px;
}
.fw-stats-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fw-stats-row:first-child { padding-top: 0; }
.fw-stats-row dt {
  margin: 0;
  color: var(--fw-muted);
  letter-spacing: 0.06em;
}
.fw-stats-row dd {
  margin: 0;
  color: var(--fw-gold-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.fw-poll-q {
  margin: 0 0 10px;
  color: var(--fw-gold-bright);
  font-size: 13px;
  line-height: 1.55;
}
.fw-poll-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fw-poll-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(212,175,55,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
  color: var(--fw-muted);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.fw-poll-opt:hover { border-color: rgba(212,175,55,.35); color: var(--fw-gold-bright); }
.fw-poll-opt input { margin-top: 2px; accent-color: #d4af37; }
.fw-poll-submit { width: 100%; margin-top: 4px; }
.fw-poll-result { margin-bottom: 8px; }
.fw-poll-result:last-of-type { margin-bottom: 6px; }
.fw-poll-result-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--fw-muted);
  margin-bottom: 4px;
}
.fw-poll-result.is-mine .fw-poll-result-top { color: var(--fw-gold-bright); }
.fw-poll-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(212,175,55,.12);
  overflow: hidden;
}
.fw-poll-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(212,175,55,.55), rgba(232,200,74,.9));
  min-width: 0;
}
.fw-poll-soft {
  margin-top: 8px;
  font-size: 11px;
  color: var(--fw-muted);
  letter-spacing: 0.04em;
}
.fw-poll-soft a { color: var(--fw-gold-bright); }
.fw-survey-list { display: flex; flex-direction: column; gap: 8px; }
.fw-survey-item {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(212,175,55,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.fw-survey-item:hover {
  border-color: rgba(212,175,55,.35);
  background: rgba(212,175,55,.06);
  text-decoration: none;
}
.fw-survey-item.is-done { opacity: .85; }
.fw-survey-item-title {
  display: block;
  color: var(--fw-gold-bright);
  font-size: 13px;
  line-height: 1.4;
}
.fw-survey-item-meta {
  display: block;
  margin-top: 3px;
  color: var(--fw-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.fw-survey-panel { padding: 18px 16px 22px; }
.fw-survey-desc {
  margin: 8px 0 0;
  color: var(--fw-muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.fw-survey-flash {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,.3);
  background: rgba(212,175,55,.08);
  color: var(--fw-gold-bright);
  font-size: 13px;
}
.fw-survey-flash.is-err {
  border-color: rgba(232,100,80,.35);
  background: rgba(232,100,80,.08);
  color: #e8a090;
}
.fw-survey-form { display: flex; flex-direction: column; gap: 16px; }
.fw-survey-q {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.16);
}
.fw-survey-q legend {
  padding: 0 4px;
  color: var(--fw-gold-bright);
  font-size: 13px;
  line-height: 1.5;
}
.fw-survey-n { color: var(--fw-muted); margin-right: 4px; }
.fw-survey-req {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(232,200,74,.7);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 99px;
  padding: 1px 7px;
  vertical-align: middle;
}
.fw-survey-q .fw-poll-opt { margin-top: 8px; }
.fw-survey-q .fw-field {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,.18);
  background: rgba(10,10,10,.55);
  color: var(--fw-gold-bright);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}
.fw-survey-q .fw-field:focus {
  outline: none;
  border-color: rgba(212,175,55,.4);
}
.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--fw-line-strong);
  background: linear-gradient(180deg, #e8c84a, #d4af37);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.fw-btn:hover { filter: brightness(1.05); text-decoration: none; color: #111; }
.fw-btn-ghost {
  background: rgba(26,26,26,.8);
  color: var(--fw-gold-bright);
  border-color: var(--fw-line);
}
.fw-btn-ghost:hover { color: var(--fw-gold-bright); background: rgba(212,175,55,.08); }
.fw-btn-sm { min-height: 32px; font-size: 12px; width: auto; padding: 6px 12px; }

.fw-search {
  display: flex;
  gap: 8px;
}
.fw-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--fw-line);
  background: #0a0a0a;
  color: var(--fw-text);
  padding: 0 10px;
  font-size: 13px;
}
.fw-search input:focus {
  outline: none;
  border-color: var(--fw-line-strong);
}
.fw-search button {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--fw-line-strong);
  background: rgba(212,175,55,.15);
  color: var(--fw-gold-bright);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.fw-userbox {
  font-size: 13px;
  color: var(--fw-muted);
  line-height: 1.7;
}
.fw-userbox strong { color: var(--fw-gold-bright); }
.fw-userbox .fw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.fw-userbox .fw-links a {
  color: var(--fw-gold);
  text-decoration: none;
  font-size: 12px;
}
.fw-userbox .fw-links a:hover { text-decoration: underline; }

.fw-field {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--fw-line);
  background: #0a0a0a;
  color: var(--fw-text);
  padding: 8px 12px;
  font-size: 14px;
}
.fw-field:focus {
  outline: none;
  border-color: var(--fw-line-strong);
}
select.fw-field {
  cursor: pointer;
  appearance: auto;
}

.fw-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 14px;
}
.fw-pager a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--fw-line);
  color: var(--fw-muted);
  text-decoration: none;
  font-size: 12px;
  padding: 0 8px;
}
.fw-pager a.is-on,
.fw-pager a:hover {
  color: var(--fw-gold-bright);
  border-color: var(--fw-line-strong);
  background: rgba(212,175,55,.08);
}

.fw-footer-note {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
}
.fw-footer-note a { color: var(--fw-muted); text-decoration: none; }
.fw-footer-note a:hover { color: var(--fw-gold-bright); }

.fw-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(10, 10, 10, 0.35);
  color: rgba(184, 150, 47, 0.85);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.fw-like:hover {
  color: #e8c84a;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}
.fw-like.is-on {
  color: #e8c84a;
  border-color: rgba(232, 200, 74, 0.55);
  background: rgba(212, 175, 55, 0.12);
}
.fw-like-n {
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
button.fw-like {
  font-family: inherit;
}
.fw-like-wrap {
  position: relative;
  display: inline-block;
}
.fw-like-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fw-like-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: transparent;
  color: rgba(184, 150, 47, 0.9);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.fw-like-count:hover {
  color: #e8c84a;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}
.fw-like-count.is-zero {
  cursor: default;
  opacity: 0.45;
  border-color: transparent;
}
.fw-like-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-width: 140px;
  max-width: 220px;
  max-height: 220px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.fw-like-panel-title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(184, 150, 47, 0.7);
}
.fw-like-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.fw-like-names li {
  font-size: 12px;
  color: #e8c84a;
  line-height: 1.4;
}
.fw-like-names .fw-like-more {
  color: rgba(184, 150, 47, 0.65);
  font-size: 11px;
}
[x-cloak] { display: none !important; }

.fw-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(10, 10, 10, 0.35);
  color: rgba(184, 150, 47, 0.85);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.fw-bookmark:hover {
  color: #e8c84a;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}
.fw-bookmark.is-on {
  color: #e8c84a;
  border-color: rgba(232, 200, 74, 0.55);
  background: rgba(212, 175, 55, 0.12);
}
