/* ============================================================
   Colonel 影视 —— 社交层：关注 / 私信 / 用户主页
   沿用暗黑玻璃 + 绯红鎏金的既有语言
   ============================================================ */

/* ── 顶栏消息入口 ─────────────────────────── */
.msg-btn{
  position:relative;width:38px;height:38px;border-radius:50%;flex-shrink:0;
  display:grid;place-items:center;color:var(--dim);
  background:var(--surface);border:1px solid var(--line);
  transition:color .18s,border-color .18s,background .18s;
}
.msg-btn svg{width:19px;height:19px}
.msg-btn:hover{color:var(--ink);border-color:#ff4d5e66;background:var(--surface-2)}
.msg-btn.on{border-color:var(--accent);color:var(--accent)}
.msg-dot{
  position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;
  display:grid;place-items:center;border-radius:9px;
  background:linear-gradient(135deg,#ff4d5e,#ff7a4d);color:#fff;
  font-size:10px;font-weight:700;line-height:1;font-style:normal;
  border:2px solid var(--bg);
}
.um-menu .um-num{
  margin-left:auto;min-width:19px;height:19px;padding:0 6px;border-radius:10px;
  display:grid;place-items:center;background:var(--accent);color:#fff;
  font-size:10.5px;font-weight:700;font-style:normal;
}

/* ── 用户主页 ─────────────────────────────── */
.u-hero{padding:22px}
.u-top{display:flex;gap:18px;align-items:flex-start}
.u-av{
  width:86px;height:86px;border-radius:24px;overflow:hidden;flex-shrink:0;
  display:grid;place-items:center;font-size:31px;font-weight:700;color:var(--dim);
  background:linear-gradient(150deg,var(--surface-2),var(--surface));
  border:1px solid var(--line);box-shadow:var(--shadow);
}
.u-av img{width:100%;height:100%;object-fit:cover}
.u-info{min-width:0;flex:1}
.u-info h2{
  margin:2px 0 6px;font-size:21px;font-weight:700;letter-spacing:.01em;
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
}
.u-role{
  font-size:11px;font-weight:600;padding:2.5px 8px;border-radius:7px;letter-spacing:.02em;
  color:var(--accent-2);background:#f0c25e1f;border:1px solid #f0c25e3d;
}
.u-bio{margin:0 0 10px;font-size:13.5px;color:var(--dim);line-height:1.6;word-break:break-word}
.u-bio.dim{color:var(--faint)}
.u-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:24px}
.u-stats{display:flex;gap:10px;margin:20px 0 16px}
.u-stat{
  flex:1;max-width:170px;padding:12px 14px;border-radius:12px;text-align:center;
  background:var(--bg-2);border:1px solid var(--line);transition:.18s;
}
.u-stat:hover{border-color:#ff4d5e4d;background:var(--surface-2)}
.u-stat b{display:block;font-size:20px;font-weight:700;letter-spacing:.01em}
.u-stat span{display:block;font-size:11.5px;color:var(--faint);margin-top:2px}
.u-acts{display:flex;gap:10px;flex-wrap:wrap}
.u-btn{
  min-width:118px;height:40px;padding:0 20px;border-radius:11px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:600;letter-spacing:.02em;
  background:linear-gradient(135deg,var(--accent),#ff8a5e);color:#fff;border:0;
  box-shadow:0 4px 14px #ff4d5e33;transition:.18s;
}
.u-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.u-btn:disabled{opacity:.6;cursor:default;transform:none;filter:none}
.u-btn.ghost{
  background:var(--surface-2);color:var(--dim);border:1px solid var(--line);box-shadow:none;
}
.u-btn.ghost:hover{color:var(--ink);border-color:#ff4d5e4d;transform:none;filter:none}
.u-btn.on{
  background:var(--surface-2);color:var(--dim);border:1px solid var(--line);box-shadow:none;
}
.u-btn.on:hover{color:var(--accent);border-color:#ff4d5e66;transform:none;filter:none}
.u-tip{margin:12px 0 0;font-size:12.5px;color:var(--accent-2)}
.u-tip.bad{color:var(--accent)}

/* 关注 / 粉丝 名单 */
.u-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:10px}
.u-person{
  display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:12px;
  background:var(--bg-2);border:1px solid var(--line);transition:.16s;min-width:0;
}
.u-person:hover{border-color:#ff4d5e4d;background:var(--surface-2);transform:translateY(-1px)}
.up-av{
  width:42px;height:42px;border-radius:12px;overflow:hidden;flex-shrink:0;
  display:grid;place-items:center;font-size:16px;font-weight:700;color:var(--dim);
  background:var(--surface-2);border:1px solid var(--line);
}
.up-av img{width:100%;height:100%;object-fit:cover}
.up-info{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.35}
.up-info b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-info i{font-style:normal;font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u-empty{margin:0;padding:22px 0;text-align:center;font-size:13px;color:var(--faint)}

/* 主页上的影评 */
.u-cmts{display:flex;flex-direction:column;gap:10px}
.u-cmt{padding:13px 15px;border-radius:12px;background:var(--bg-2);border:1px solid var(--line)}
.u-cmt-top{
  display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;
  color:var(--accent-2);margin-bottom:7px;
}
.u-cmt-top svg{width:14px;height:14px;flex-shrink:0}
.u-cmt-top:hover{text-decoration:underline}
.u-cmt-txt{margin:0 0 7px;font-size:13.5px;line-height:1.65;color:var(--dim);word-break:break-word;white-space:pre-wrap}
.u-cmt-time{font-size:11px;color:var(--faint)}

/* ── 消息中心 ─────────────────────────────── */
.msg-page{padding-top:22px;padding-bottom:34px}
.msg-wrap{
  display:grid;grid-template-columns:322px minmax(0,1fr);gap:16px;
  height:calc(100vh - var(--hd-h) - 58px);min-height:440px;
}
.msg-side,.msg-chat{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;min-width:0;
}
.msg-side-hd{
  display:flex;align-items:center;gap:9px;padding:14px 15px;border-bottom:1px solid var(--line);
  flex-shrink:0;
}
.msg-side-hd h2{margin:0;font-size:15.5px;font-weight:700;letter-spacing:.01em}
.msg-side-hd .spacer{flex:1}
.msg-list{flex:1;overflow-y:auto;padding:8px}
.msg-list::-webkit-scrollbar{width:7px}
.msg-list::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px}
.msg-none{
  padding:36px 22px;text-align:center;color:var(--faint);
  display:flex;flex-direction:column;gap:7px;line-height:1.65;font-size:12.5px;
}
.msg-none b{font-size:13.5px;color:var(--dim);font-weight:600}

.thr{
  width:100%;display:flex;align-items:center;gap:11px;padding:10px 11px;margin-bottom:3px;
  background:none;border:1px solid transparent;border-radius:11px;cursor:pointer;text-align:left;
  transition:.15s;min-width:0;
}
.thr:hover{background:var(--surface-2)}
.thr.on{background:var(--bg-2);border-color:#ff4d5e40}
.thr-av{
  position:relative;width:44px;height:44px;border-radius:13px;overflow:hidden;flex-shrink:0;
  display:grid;place-items:center;font-size:17px;font-weight:700;color:var(--dim);
  background:var(--surface-2);border:1px solid var(--line);
}
.thr-av img{width:100%;height:100%;object-fit:cover}
.thr-dot{
  position:absolute;top:-1px;right:-1px;width:10px;height:10px;border-radius:50%;
  background:var(--accent);border:2px solid var(--surface);
}
.thr-mid{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4}
.thr-mid b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thr-mid i{
  font-style:normal;font-size:12px;color:var(--faint);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.thr-mid u{text-decoration:none;color:var(--dim)}
.thr-time{font-size:10.5px;color:var(--faint);flex-shrink:0;padding-top:2px;align-self:flex-start}

.msg-pick{
  max-height:260px;overflow-y:auto;padding:8px 8px 10px;
  border-bottom:1px solid var(--line);flex-shrink:0;
}
.pick-hd{font-size:11.5px;color:var(--faint);padding:4px 5px 8px;letter-spacing:.03em}
.pick-p{
  width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;
  background:none;border:1px solid transparent;cursor:pointer;text-align:left;transition:.15s;
}
.pick-p:hover{background:var(--surface-2);border-color:var(--line)}
.pick-p b{font-size:13px;font-weight:600}

.msg-chat-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:30px;text-align:center;color:var(--faint);
}
.msg-chat-empty svg{width:44px;height:44px;opacity:.45}
.msg-chat-empty p{margin:0;font-size:13px;line-height:1.7;max-width:280px}

.msg-chat-main{flex:1;display:flex;flex-direction:column;min-height:0}
.msg-chat-hd{
  display:flex;align-items:center;gap:10px;padding:11px 14px;
  border-bottom:1px solid var(--line);flex-shrink:0;
}
.chat-back{
  display:none;width:32px;height:32px;border-radius:9px;flex-shrink:0;
  place-items:center;background:var(--surface-2);border:1px solid var(--line);
  color:var(--dim);cursor:pointer;
}
.chat-back svg{width:17px;height:17px}
.chat-who{display:flex;align-items:center;gap:9px;min-width:0}
.cw-av{
  width:32px;height:32px;border-radius:10px;overflow:hidden;flex-shrink:0;
  display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--dim);
  background:var(--surface-2);border:1px solid var(--line);
}
.cw-av img{width:100%;height:100%;object-fit:cover}
.cw-nm{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-who:hover .cw-nm{color:var(--accent)}

.msg-body{
  flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;min-height:0;
}
.msg-body::-webkit-scrollbar{width:7px}
.msg-body::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px}
.msg-body-none{margin:auto;font-size:13px;color:var(--faint);text-align:center}
.msg-more{
  align-self:center;margin-bottom:14px;padding:6px 14px;border-radius:14px;
  background:var(--surface-2);border:1px solid var(--line);color:var(--dim);
  font-size:12px;cursor:pointer;
}
.msg-more:hover{color:var(--ink);border-color:#ff4d5e4d}
.msg-sep{align-self:center;margin:10px 0 8px}
.msg-sep span{
  font-size:10.5px;color:var(--faint);padding:3px 10px;border-radius:9px;background:var(--bg-2);
}
.bub{
  max-width:78%;margin:3px 0;display:flex;flex-direction:column;align-items:flex-start;
  animation:bubIn .22s ease-out;
}
@keyframes bubIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.bub-txt{
  padding:9px 13px;border-radius:14px 14px 14px 5px;font-size:14px;line-height:1.58;
  background:var(--surface-2);border:1px solid var(--line);
  white-space:pre-wrap;word-break:break-word;
}
.bub.me{align-self:flex-end;align-items:flex-end}
.bub.me .bub-txt{
  background:linear-gradient(135deg,var(--accent),#ff7a5e);border-color:transparent;color:#fff;
  border-radius:14px 14px 5px 14px;
}
.bub-time{font-size:10px;color:var(--faint);margin-top:3px;padding:0 3px}

.msg-send{
  display:flex;gap:10px;align-items:flex-end;padding:12px 14px;border-top:1px solid var(--line);
  flex-shrink:0;background:rgba(13,13,17,.5);
}
.msg-send textarea{
  flex:1;min-height:40px;max-height:120px;padding:10px 13px;resize:none;outline:none;
  background:var(--bg-2);border:1px solid var(--line);border-radius:12px;
  font:inherit;font-size:14px;line-height:1.5;color:var(--ink);transition:border-color .18s;
}
.msg-send textarea:focus{border-color:#ff4d5e66;background:var(--surface-2)}
.msg-send textarea::placeholder{color:var(--faint)}
.msg-send button{
  height:40px;padding:0 20px;border-radius:11px;border:0;cursor:pointer;flex-shrink:0;
  font-size:13.5px;font-weight:600;color:#fff;
  background:linear-gradient(135deg,var(--accent),#ff8a5e);
  transition:.16s;
}
.msg-send button:hover:not(:disabled){filter:brightness(1.08)}
.msg-send button:disabled{opacity:.55;cursor:default}
.msg-err{margin:0;padding:0 16px 10px;font-size:12px;color:var(--accent)}

/* ── 手机端 ───────────────────────────────── */
@media (max-width:900px){
  .msg-wrap{
    grid-template-columns:1fr;gap:0;height:auto;min-height:0;
    border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  }
  .msg-side,.msg-chat{border:0;border-radius:0}
  .msg-side{max-height:calc(100vh - var(--hd-h) - 90px)}
  .msg-chat{display:none}
  body.mchat .msg-side{display:none}
  body.mchat .msg-chat{display:flex;height:calc(100vh - var(--hd-h) - 90px)}
  .chat-back{display:grid}
  .bub{max-width:86%}
}
@media (max-width:560px){
  .u-hero{padding:17px}
  .u-av{width:70px;height:70px;border-radius:20px;font-size:26px}
  .u-info h2{font-size:18.5px}
  .u-people{grid-template-columns:1fr}
  .u-btn{flex:1;min-width:0;padding:0 14px}
  .u-stats{gap:8px}
  .u-stat b{font-size:18px}
}

/* ── 统计卡上的关注/粉丝入口 ──────────────── */
.stat.jump{
  cursor:pointer;text-align:center;font:inherit;color:inherit;width:100%;
  transition:border-color .16s,background .16s,transform .16s;
}
.stat.jump:hover{border-color:#ff4d5e4d;background:var(--surface-2);transform:translateY(-1px)}
.stat.jump b{color:var(--ink)}

/* ── 评论区作者可点进主页 ─────────────────── */
a.cmt-av{text-decoration:none;transition:border-color .16s}
a.cmt-av:hover{border-color:#ff4d5e66}
.cmt-who{color:inherit;transition:color .15s}
.cmt-who:hover{color:var(--accent)}

/* ── hidden 属性优先（否则 display:flex/grid 会把它盖掉）── */
.msg-dot[hidden],
.msg-chat-empty[hidden],
.msg-chat-main[hidden]{display:none}
.chat-back svg{pointer-events:none}

/* ── 手机端顶栏收纳：给搜索框让出空间 ─────── */
@media (max-width:620px){
  .back-link{gap:0;padding:0;width:38px;height:38px;justify-content:center;font-size:0}
  .back-link svg{width:17px;height:17px;flex-shrink:0}
}
@media (max-width:480px){
  .brand-txt{display:none}
  .brand{gap:0}
}
