body { margin:0; font-family:sans-serif; background:#e6ecf0; color:#111; }
.header { background:linear-gradient(135deg,#1da1f2,#0ea5e9); color:#fff; padding:12px; }
.header a { color:#fff; margin-right:10px; text-decoration:none; font-weight:bold; opacity:.95; }
.header a:hover{ opacity:1; text-decoration:underline; }

.wrapper { display:flex; max-width:1100px; margin:auto; padding:10px; gap:12px; align-items:flex-start; }
.main { width:68%; }
.side { width:32%; }
@media (max-width: 980px){ .wrapper{flex-direction:column;} .main,.side{width:100%;} }

.card { background:#fff; padding:12px; border-radius:14px; margin-bottom:12px; box-shadow:0 2px 10px rgba(0,0,0,.06); }

.user-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.user-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.avatar{
  width:40px; height:40px; border-radius:999px; object-fit:cover;
  background:#f6f7f8; border:1px solid #e5e7eb; flex:0 0 auto;
}
.user-name{ display:flex; align-items:center; gap:6px; min-width:0; }
.user-name a{
  text-decoration:none; font-weight:bold; color:#111;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.user-name a:hover{ color:#1da1f2; }
.at{ color:#1da1f2; font-weight:bold; }

.title { font-weight:bold; margin-top:6px; }
.meta { font-size:12px; color:#667085; margin-top:4px; }
.blog-text { margin-top:8px; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
.media img, .media video { width:100%; border-radius:12px; margin-top:8px; background:#f6f7f8; display:block; }

.actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; font-size:13px; }
.actions a { text-decoration:none; color:#1da1f2; font-weight:bold; }
.delete-link { color:#e0245e !important; }

.follow-btn{
  display:inline-block; padding:6px 12px; font-size:12px;
  border-radius:999px; text-decoration:none; border:1px solid rgba(29,161,242,.9);
  color:#1da1f2; background:#fff; white-space:nowrap; font-weight:bold;
}
.follow-btn.on{ border:1px solid #64748b; color:#64748b; background:#fff; }

.like-btn { font-size:16px; line-height:1; }
.like-count { color:#333; font-size:13px; font-weight:bold; }

.side h3 { margin:0 0 8px 0; font-size:15px; }
.side-small { font-size:13px; color:#555; }

.rank-box { background:#fafafa; border-radius:12px; padding:10px; margin-bottom:10px; border:1px solid #eef2f6; }
.rank-top { border:2px solid #ffcc00; background:#fff; }
.rank-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.rank-num { font-weight:bold; }
.rank-user a { color:#1da1f2; font-weight:bold; text-decoration:none; }
.notice { font-size:13px; color:#666; margin:8px 0; }

.rank-item { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.rank-left { display:flex; align-items:center; gap:10px; min-width:0; }
.rank-ava { width:28px; height:28px; border-radius:999px; overflow:hidden; background:#e5e7eb; flex:0 0 auto; }
.rank-ava img{ width:100%; height:100%; object-fit:cover; display:block; }
.rank-name { font-weight:bold; color:#1da1f2; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; }
.rank-pv { font-weight:bold; color:#111; white-space:nowrap; }

.newsite-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #eef2f6;}
.newsite-left{display:flex;align-items:center;gap:10px;min-width:0;}
.newsite-ava{width:28px;height:28px;border-radius:999px;overflow:hidden;background:#e5e7eb;flex:0 0 auto;}
.newsite-ava img{width:100%;height:100%;object-fit:cover;display:block;}
.newsite-name{font-weight:bold;color:#111;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px;}
.newsite-name:hover{color:#1da1f2;}
.newsite-btn{display:inline-block;padding:6px 10px;border-radius:999px;border:1px solid #e5e7eb;text-decoration:none;font-weight:bold;font-size:12px;color:#111;background:#fff;white-space:nowrap;}
.newsite-btn:hover{border-color:#1da1f2;color:#1da1f2;}

.theme-btn{
  margin-left:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(0,0,0,.15);
  color:#fff;
  cursor:pointer;
  font-weight:800;
}
.theme-btn:hover{ opacity:.95; }

body.retro{
  background:#000 !important;
  color:#22ff66 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
body.retro .header{
  background:#000 !important;
  border-bottom:2px solid rgba(34,255,102,.7);
}
body.retro .header a{ color:#22ff66 !important; opacity:1; }
body.retro .header a:hover{ text-decoration:underline; }
body.retro .wrapper{ background:transparent; }

body.retro .card{
  background:transparent !important;
  border:1px solid rgba(34,255,102,.55) !important;
  box-shadow:none !important;
}

body.retro .meta,
body.retro .side-small,
body.retro .notice{
  color:rgba(34,255,102,.8) !important;
}
body.retro .title,
body.retro .blog-text,
body.retro .user-name a{
  color:#22ff66 !important;
}
body.retro .at{ color:#22ff66 !important; }

body.retro .follow-btn,
body.retro .newsite-btn{
  background:transparent !important;
  border:1px solid rgba(34,255,102,.75) !important;
  color:#22ff66 !important;
}
body.retro .follow-btn.on{
  border-color:rgba(34,255,102,.35) !important;
  color:rgba(34,255,102,.6) !important;
}

body.retro .actions a,
body.retro .rank-user a,
body.retro .rank-name,
body.retro .newsite-name{
  color:#22ff66 !important;
}

body.retro .rank-box{
  background:transparent !important;
  border:1px solid rgba(34,255,102,.35) !important;
}
body.retro .rank-top{ border:2px solid rgba(34,255,102,.9) !important; }

body.retro .avatar,
body.retro .rank-ava,
body.retro .newsite-ava{
  border:1px solid rgba(34,255,102,.35) !important;
  background:#000 !important;
}

body.retro .media img,
body.retro .media video{
  background:#000 !important;
  border:1px solid rgba(34,255,102,.25);
}

body.retro::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:repeating-linear-gradient(
    to bottom,
    rgba(34,255,102,.06),
    rgba(34,255,102,.06) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  opacity:.35;
}

/* comments UI */
.comment-toggle{ cursor:pointer; }
.comments-area{ margin-top:10px; border-top:1px solid #eef2f6; padding-top:10px; }
.comment-list{ display:flex; flex-direction:column; gap:8px; }
.citem{ display:flex; gap:8px; align-items:flex-start; }
.cava{ width:28px; height:28px; border-radius:999px; object-fit:cover; background:#f6f7f8; border:1px solid #e5e7eb; flex:0 0 auto; }
.cbody{ font-size:13px; line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.cmeta{ font-size:11px; color:#667085; margin-top:2px; }
.cform{ display:flex; gap:8px; margin-top:10px; }
.cform textarea{ flex:1; min-height:38px; max-height:120px; resize:vertical; padding:8px; border-radius:10px; border:1px solid #cbd5e1; }
.cform button{ padding:8px 10px; border-radius:10px; border:1px solid #cbd5e1; background:#fff; font-weight:800; cursor:pointer; }
.cform button:hover{ border-color:#1da1f2; color:#1da1f2; }
.cmsg{ font-size:12px; color:#667085; margin-top:6px; }

/* ===== Mobile header tuning ===== */
.header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.header strong{
  margin-right:8px;
  white-space:nowrap;
}
.header a{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  white-space:nowrap;
}
.header a:hover{ background:rgba(255,255,255,.22); }
.theme-btn{ margin-left:auto; } /* ??? */

@media (max-width: 520px){
  .theme-btn{ margin-left:0; } /* ????????? */
  .header a{ padding:6px 9px; font-size:13px; }
}

/* =========================================================
   ? Mobile accordions (Homepage / Follow TL / Like ranking)
========================================================= */
.m-accordion{
  margin-bottom:12px;
}
.m-accordion > summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  font-weight:800;
}
.m-accordion > summary::-webkit-details-marker{ display:none; }
.m-accordion[open] > summary{ margin-bottom:10px; }

/* Desktop: behave like normal sections (summary hidden, content always visible) */
@media (min-width: 981px){
  .m-accordion > summary{ display:none; }
  .m-accordion{ margin:0; }
  .m-accordion > .acc-body{ display:block !important; }
}

/* Mobile: hide duplicated first h3 inside accordion body */
@media (max-width: 980px){
  .m-accordion .acc-body > .card > h3:first-child{ display:none; }
}

/* ===== Mobile accordion override (fixed) ===== */
.mobile-only{display:none;}
.desktop-only{display:block;}
.home-left{ width:32%; }

@media (max-width: 980px){
  .mobile-only{display:block;}
  .desktop-only{display:none !important;}
  .home-left,.side,.main{width:100% !important;}
}

.m-accordion{
  border:1px solid #eef2f6;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  margin-bottom:12px;
  overflow:hidden;
}
.m-accordion summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.m-accordion summary::-webkit-details-marker{display:none;}
.m-accordion summary::after{content:"?"; font-weight:900; opacity:.8;}
.m-accordion[open] summary::after{content:"?";}
.m-accordion .acc-body{padding:0 12px 12px;}

/* ===== LIKE HEART FORCE ===== */
.actions a.like-btn,
.actions a.like-btn:visited,
.actions a.like-btn:hover {
  color: #e0245e !important;
}

/* Retro??????? */
body.retro .actions a.like-btn,
body.retro .actions a.like-btn:visited,
body.retro .actions a.like-btn:hover {
  color: #e0245e !important;
}

/* ===== LIKE RANK HEART (FINAL FIX) ===== */
.rank-user a.like-heart,
.rank-user a.like-heart:visited,
.rank-user a.like-heart:hover {
  color: #e0245e !important;
  font-weight: bold;
}




