/* v5.3 — tidy + unified: pill header, right-sort, NSFW blur, gallery arrows, auth/pages, profile comments */

/* ---------- Variables ---------- */
:root{
  --bg:#0b0f12; --panel:#12181d; --muted:#94a3b8; --text:#e2e8f0;
  --accent:#22d3ee; --accent2:#a78bfa; --danger:#f43f5e; --radius:14px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1100px;margin:0 auto;padding:16px}

/* ---------- Header (pill navigation) ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,15,18,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid #19232d;
}
.site-header .wrap{
  display:grid; grid-template-columns:auto 1fr auto auto;
  gap:14px; align-items:center;
}

/* Styled brand (gradient) */
.site-header .brand a{
  font-weight:900; font-size:22px; letter-spacing:.3px;
  background:linear-gradient(90deg,#9bd4ff 0%,#a78bfa 45%,#22d3ee 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent !important;
  text-shadow:0 0 0 rgba(255,255,255,.35), 0 3px 24px rgba(34,211,238,.18), 0 1px 0 rgba(255,255,255,.12);
}
.site-header .brand .spark{
  display:inline-block; width:8px; height:8px; margin-left:8px; border-radius:50%;
  background: radial-gradient(circle,#fff 0%, #7dd3fc 35%, rgba(125,211,252,0) 70%);
  filter: blur(.2px); animation: twinkle 2.1s ease-in-out infinite;
}
@keyframes twinkle{0%,100%{transform:translateY(0) scale(.9);opacity:.6}50%{transform:translateY(-2px) scale(1.15);opacity:1}}

/* Pill nav */
.nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.nav a{
  display:inline-flex;align-items:center;gap:8px;line-height:1;
  padding:8px 14px;border-radius:9999px;font-weight:600;
  color:#dbe6f3;background:linear-gradient(180deg,#111927,#0d1520);
  border:1px solid #273445; box-shadow:0 1px 0 rgba(255,255,255,.06) inset;
}
.nav a:hover{ text-decoration:none; border-color:#38506a }
.nav a.nsfw{ color:#fecaca; border-color:#7f1d1d; background:linear-gradient(180deg,#2b0d14,#1a0b0f) }

/* Search (pill) */
.search{
  display:grid !important; /* override inline display:flex */
  grid-template-columns: 1fr auto;
  gap:8px;
  justify-self:center;
  align-items:center;
}
.search input{
  background:#0e1622;border:1px solid #243343;color:#cfe1f7;
  padding:9px 12px;border-radius:9999px;min-width:260px
}
.search button,.btn,button{
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  border:0;color:#00131a;padding:9px 14px;border-radius:9999px;
  font-weight:700;cursor:pointer
}

/* Search suggestions dropdown (under the bar, not overlapping nav) */
.search{position:relative}
.search-suggest{
  position:relative;
  grid-column: 2 / 3;
  width:min(520px, 100%);
  margin-top:6px;
  justify-self:center;
  background:#0d141c;
  border:1px solid #243343;
  border-radius:14px;
  box-shadow:0 12px 24px rgba(0,0,0,.35);
  padding:8px;
  display:none;
  z-index:1000;
}
.search-suggest .suggest-title{
  font-size:12px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#8aa1bb;
  margin:6px 8px 4px;
}
.search-suggest .suggest-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  color:#d9e5f7;
  text-decoration:none;
}
.search-suggest .suggest-item:hover{
  background:#111b27;
  text-decoration:none;
}
.search-suggest .suggest-item em{
  font-style:normal;
  color:#7aa2c9;
  font-size:12px;
  opacity:.8;
}

/* Auth buttons */
.btn.small{padding:8px 14px}
.btn.small.ghost{background:#0f1419;color:#cbd5e1;border:1px solid #293241}
.auth{display:flex;gap:10px;align-items:center;justify-self:end}

/* ---------- Feed toolbar (right-aligned sort) ---------- */
.toolbar{display:flex;justify-content:flex-end;align-items:center;padding:8px 0}
.toolbar .sort a{margin-left:12px;color:#93c5fd}
.toolbar .sort a.active{color:#fff;font-weight:700;text-decoration:underline}

/* ---------- Cards grid ---------- */
/* Feed grid: centered, up to 4 columns on desktop */
#feed-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;

  /* Centers the grid on the page */
  max-width: 1120px; /* ~ 4 * 240px + 3 * 16px gap = 1104px */
  margin: 12px auto 24px;
  align-items: start;
}
#fav-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;

  /* Centers the grid on the page */
  max-width: 1120px; /* ~ 4 * 240px + 3 * 16px gap = 1104px */
  margin: 12px auto 24px;
  align-items: start;
}

/* Tighter steps for smaller screens */
@media (max-width: 1100px){
  #feed-grid{ max-width: 840px; }        /* ~ 3 columns */
}
@media (max-width: 840px){
  #feed-grid{ max-width: 560px; }        /* ~ 2 columns */
}
@media (max-width: 560px){
  #feed-grid{ max-width: 100%; }         /* 1 column, full width */
}

.card{background:var(--panel);border:1px solid #1f2937;border-radius:var(--radius);overflow:hidden;position:relative}
/* Card image sizing with consistent aspect ratio */
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;          /* clean portrait style ratio */
  object-fit: cover;
  display: block;
  transition: filter .2s ease;
  border-radius: 8px;
}
.card {
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card h2{margin:10px 12px 0;font-size:16px}
.card .tags{opacity:.9;margin:6px 12px 12px}
.tag{margin-right:6px;color:#93c5fd}
.placeholder{height:180px;display:grid;place-items:center;color:#64748b}
.badge.nsfw{background:#2b0d14;border:1px solid #7f1d1d;color:#fecaca;padding:2px 6px;border-radius:8px;font-size:12px;margin:6px 12px;display:inline-block}
.card-meta{
  display:flex;gap:10px;align-items:center;position:absolute;bottom:8px;right:8px;
  background:#0f1419;border:1px solid #293241;border-radius:10px;padding:4px 8px
}

/* ---------- NSFW blur when not allowed ---------- */
body[data-nsfw-allowed="0"] .card[data-nsfw="1"]::after{
  content:"18+ • Log in to view"; position:absolute; inset:auto 0 8px 0; margin:auto;
  width:max-content; padding:6px 10px; border-radius:9999px;
  background:rgba(0,0,0,.7); color:#fff; border:1px solid #243343;
  left:50%; transform:translateX(-50%); font-weight:700; font-size:12px;
}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid #1f2937;margin-top:20px}
.site-footer .wrap{display:flex;justify-content:space-between;align-items:center}

/* ---------- Post page ---------- */
.post h1{margin-top:0}

/* Vote pill with up/down buttons inside */
.post .post-actions .vote.inline{
  display:inline-flex; align-items:center; gap:4px; padding:4px;
  border-radius:9999px; background:#0e1622; border:1px solid #243343;
}
.post .post-actions .vote.inline .vote-btn{
  background:transparent; border:0; color:#e6f0ff;
  padding:6px 10px; border-radius:9999px; cursor:pointer; font-size:16px;
  transition:background .2s,color .2s;
}
.post .post-actions .vote.inline .vote-btn:hover{ background:#172234 }
.post .post-actions .vote.inline .vote-btn.active.up{ color:#4ade80; background:rgba(74,222,128,.15) }
.post .post-actions .vote.inline .vote-btn.active.down{ color:#f87171; background:rgba(248,113,113,.15) }
.post .post-actions .vote.inline .score{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; padding:6px 10px; border-radius:9999px;
  background:#0b1220; border:1px solid #243343; color:#fff; font-weight:700; line-height:1;
}

/* ---------- Gallery ---------- */
.gallery{position:relative;background:#0f1419;border:1px solid #22303d;border-radius:14px;overflow:hidden}
.gallery .viewport{display:flex;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory}
.gallery .slide{min-width:100%;height:520px;object-fit:contain;background:#0b0f12;scroll-snap-align:center}
.gallery .nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  color:#fff;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.35);
  border-radius:9999px;padding:12px 14px;cursor:pointer;box-shadow:0 2px 12px rgba(0,0,0,.4);backdrop-filter:blur(6px);font-weight:800
}
.gallery .nav:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.55) }
.gallery .prev{left:10px} .gallery .next{right:10px}

/* Hide thumbs row (unused) */
.thumbs{display:none}

/* ---------- Comments (global) ---------- */
.comments form{display:grid;gap:8px;margin:14px 0}
.comments input,.comments textarea,form input,form textarea{
  background:#0f1419;border:1px solid #293241;color:#cbd5e1;padding:10px;border-radius:12px
}
.comments .comment{background:#0f1419;border:1px solid #22303d;border-radius:12px;padding:10px;margin:10px 0}
.comments .meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.csort a{margin-left:10px;color:#93c5fd}.csort a.active{color:#fff;font-weight:700}
.cvote button{padding:2px 6px;border-radius:8px}

/* ---------- Alerts ---------- */
.ok{background:#052e1a;border:1px solid #14532d;color:#bbf7d0;padding:10px;border-radius:12px}
.err{background:#3b0a0a;border:1px solid #7f1d1d;color:#fecaca;padding:10px;border-radius:12px}
.danger{background:#2b0d14 !important;border:1px solid #7f1d1d !important;color:#fecaca !important}

/* ---------- Tables ---------- */
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #203040;padding:8px;text-align:left}

/* ---------- Reactions ---------- */
/* .reactions{display:none !important} */
.reactions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.reactions .rx button{padding:6px 10px;border-radius:999px;background:#0f1419;border:1px solid #293241;color:#cbd5e1}

/* ---------- Collections ---------- */
.collections summary{cursor:pointer;margin:10px 0}
.collections .inline{display:inline-flex;gap:8px;align-items:center;margin-right:12px}

/* ---------- Lightbox ---------- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:9999}
.lightbox[hidden]{display:none}
.lightbox .modal{background:#0f1419;border:1px solid #243343;border-radius:16px;max-width:min(1000px,94vw);max-height:90vh;overflow:auto;padding:12px;position:relative}
.lightbox .modal img{max-width:100%;height:auto;display:block;margin:0 auto 12px}
.lightbox .modal .info{opacity:.9}
.lightbox .close{position:absolute;top:8px;right:8px;background:#111827;border:1px solid #374151;color:#e5e7eb;border-radius:8px;padding:6px 10px;z-index:3}

/* ---------- Profiles ---------- */
.profile .avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:1px solid #243343}

/* ---------- Auth screens ---------- */
.auth-page{
  min-height: calc(100vh - 160px);
  display: grid; place-items: center; padding: 24px 16px;
}
.auth-card{
  width:100%; max-width:460px; background:var(--panel);
  border:1px solid #213042; border-radius:16px; padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.auth-card .title{
  margin:0 0 12px; font-size:28px; font-weight:800; letter-spacing:.3px;
  background:linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.auth-form{ display:grid; gap:12px; margin-top:6px; }
.auth-form label{ display:grid; gap:6px; }
.auth-form label span{ font-size:14px; color:#a8b7c8; }
.auth-form input{ background:#0f1419; border:1px solid #293241; color:#cbd5e1; padding:10px; border-radius:12px; }
.auth-form .btn{ width:100%; }
.auth-meta{ margin-top:8px; text-align:center; }
.auth-meta .link{ margin-left:6px; }

/* ---------- Unified page layout + gradient titles ---------- */
.page{max-width:1100px;margin:0 auto;padding:18px 16px}
.page-narrow{max-width:820px}
.page-center{display:grid;justify-items:center}
.page-title{
  margin:4px 0 12px; font-size:34px; line-height:1.15; font-weight:900; letter-spacing:.3px;
  background:linear-gradient(90deg,#9bd4ff 0%,#a78bfa 45%,#22d3ee 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 0 0 rgba(255,255,255,.35),0 3px 24px rgba(34,211,238,.18),0 1px 0 rgba(255,255,255,.12);
}

/* Helpers under titles (center rows like buttons/pills) */
.page-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:2px 0 12px}

/* Centered “top forms” (suggestions, forum) */
.top-form{
  width:100%; max-width:820px;
  display:grid; grid-template-columns:1fr 2fr auto; gap:10px; align-items:center;
}
.top-form input,.top-form textarea{
  background:#0f1419;border:1px solid #293241;color:#cbd5e1;padding:10px;border-radius:12px
}
.top-form textarea{min-height:44px;resize:vertical}
@media (max-width:760px){ .top-form{grid-template-columns:1fr} .top-form button{width:100%} }

/* ---------- Profile comments polish ---------- */
.profile-comments-title{
  text-align:center; font-size:2rem; font-weight:800;
  background:linear-gradient(90deg,#22d3ee,#a78bfa);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  margin-bottom:10px;
}
.comments textarea{
  background:#0f1419; border:1px solid #293241; color:#cbd5e1;
  padding:10px; border-radius:12px; resize:vertical;
}
.comments button.btn{
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  color:#00131a; font-weight:700; border-radius:9999px; padding:10px 18px; cursor:pointer;
}
.comment{ background:#0f1419; border:1px solid #22303d; border-radius:12px; padding:10px; margin:12px 0; }
.comment .meta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:4px; }

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .site-header .wrap{grid-template-columns:auto 1fr auto; grid-auto-flow:row dense}
  .search{grid-column:1 / -1; justify-self:stretch}
}
@media (max-width:700px){
  .gallery .slide{height:320px}
  .gallery .nav{display:none}
}
@media (max-width:620px){
  .search input{min-width:0;width:100%}
  .site-header .brand a{font-size:20px}
}

/* New nav bar under header */
.nav-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  background: rgba(11, 15, 18, 0.85);
  border-top: 1px solid #19232d;
  border-bottom: 1px solid #19232d;
}

.nav-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 9999px;
  font-weight: 600;
  color: #dbe6f3;
  background: linear-gradient(180deg, #111927, #0d1520);
  border: 1px solid #273445;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
}

.nav-bar a:hover {
  text-decoration: none;
  border-color: #38506a;
}

.nav-bar a.nsfw {
  color: #fecaca;
  border-color: #7f1d1d;
  background: linear-gradient(180deg, #2b0d14, #1a0b0f);
}

.nav-bar{
  display:flex;justify-content:center;flex-wrap:wrap;gap:10px;
  padding:12px 0;background:rgba(11,15,18,.85);
  border-top:1px solid #19232d;border-bottom:1px solid #19232d;
}
.nav-bar a{
  display:inline-flex;align-items:center;gap:8px;line-height:1;
  padding:8px 14px;border-radius:9999px;font-weight:600;
  color:#dbe6f3;background:linear-gradient(180deg,#111927,#0d1520);
  border:1px solid #273445;box-shadow:0 1px 0 rgba(255,255,255,.06) inset;
}
.nav-bar a:hover{ text-decoration:none;border-color:#38506a }
.nav-bar a.nsfw{ color:#fecaca;border-color:#7f1d1d;background:linear-gradient(180deg,#2b0d14,#1a0b0f) }

/* Centered pill sort bar */
.sort-pills{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 8px;
}

.sort-pills a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
  padding:8px 14px;
  border-radius:9999px;
  font-weight:600;
  color:#dbe6f3;
  background:linear-gradient(180deg,#111927,#0d1520);
  border:1px solid #273445;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset;
  text-decoration:none;
  transition:border-color .15s ease, transform .05s ease;
}
.sort-pills a:hover{ border-color:#38506a; transform:translateY(-1px); }

/* Active state pops a bit brighter */
.sort-pills a.active{
  color:#00131a;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  border-color:transparent;
  box-shadow:0 6px 18px rgba(34,211,238,.18);
}





/* ---------- Post media sizing tweaks ---------- */
.post .gallery{max-width:min(960px, 92vw); margin: 0 auto;}
.post .gallery .slide{
  height: min(70vh, 640px);
  cursor: zoom-in;
}

/* --- Center vote + reactions bar --- */
.post .vote,
.post .reactions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px auto 18px auto;
  width: 100%;
  text-align: center;
}

.post .reactions form {
  display: inline-flex;
  align-items: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox[hidden] { display: none; }

.lightbox .modal img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}


/* --- Lightbox sizing --- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:9999}
.lightbox[hidden]{display:none}
.lightbox .modal{background:#0f1419;border:1px solid #243343;border-radius:16px;max-width:95vw;max-height:90vh;overflow:auto;padding:12px;position:relative}
.lightbox .modal img{max-width:95vw;max-height:90vh;object-fit:contain}


/* --- Robust centering for vote + reactions (fallback selectors) --- */
.vote.inline, .reactions { display:flex; justify-content:center; align-items:center; gap:12px; }


/* === Post view enhancements (centered & compact comments) === */
.post h1{
  text-align:center;
  font-size:2.2rem;
  margin:20px 0 8px;
  font-weight:800;
  background:linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.post .tags{ text-align:center; margin-bottom:14px; }

/* Center vote + reactions rows */
.post .vote,
.post .reactions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:14px auto 24px auto;
}

/* Comments heading centered */
.comments .comments-head h2{
  text-align:center;
  font-size:1.8rem;
  font-weight:800;
  margin:0 0 12px;
  background:linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Limit comment area width and center */
.comments .comments-head,
.comments form,
.comments .comment{
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

/* Inputs full width within the 720px container */
.comments input[type="text"],
.comments input[type="email"],
.comments textarea{
  width:100%;
}

/* Stylish Post comment button (no extra class needed) */
.comments form button[type="submit"]{
  display:block;
  max-width:280px;
  margin:14px auto 0;
  background:linear-gradient(90deg,#22d3ee,#a78bfa);
  color:#00131a;
  font-weight:700;
  border-radius:9999px;
  padding:12px 20px;
  cursor:pointer;
  border:none;
  box-shadow:0 4px 14px rgba(34,211,238,.25);
  transition:all .25s ease;
}
.comments form button[type="submit"]:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(34,211,238,.45);
}
.comments form button[type="submit"]:active{
  transform:scale(.98);
  box-shadow:0 2px 10px rgba(34,211,238,.25);
}

/* Optional: subtle wrapper styling */
.comments{
  background:rgba(20,24,30,.35);
  border-radius:14px;
  padding:16px;
  max-width:800px;
  margin:0 auto 40px;
}

/* === Center & style Add to collection === */
.post details {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 720px;
}

.post details summary {
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.1rem;
}

.post details[open] {
  background: rgba(20, 24, 30, 0.4);
  border-radius: 12px;
  padding: 12px;
}

.post details form,
.post details input,
.post details button {
  max-width: 600px;
  width: 100%;
  margin: 8px auto;
  display: block;
}

.post details button {
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  color: #00131a;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.post details button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.45);
}

/* === NSFW badge improved === */
.badge.nsfw {
  display: inline-block;
  background: #ef4444;                  /* vivid red */
  color: #ffffff;                       /* white text */
  font-weight: 800;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Fix: badges inside gradient h1 shouldn't inherit transparent text fill */
.post h1 .badge {
  display: inline-block;
  margin-left: 8px;

  /* Make the badge readable and crisp */
  background: #ef4444;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;   /* override gradient's transparent text */
  -webkit-background-clip: border-box;
  background-clip: border-box;

  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  line-height: 1.2;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

/* === Clean up Add to collection layout === */
.post details {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 20px auto;
  gap: 12px;
}

.post details summary {
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.post details[open] {
  background: rgba(20, 24, 30, 0.4);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}

/* Layout of dropdown + Add button */
.post details form.inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post details select {
  flex: 1 1 65%;
  max-width: 500px;
  padding: 10px;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.95rem;
}

.post details button {
  flex: 1 1 30%;
  max-width: 160px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  color: #00131a;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.post details button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.45);
}

/* Second form (new collection) cleaner layout */
.post details form:not(.inline) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post details input[name="name"] {
  flex: 1 1 65%;
  max-width: 500px;
  padding: 10px;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.95rem;
}

.post details form:not(.inline) button {
  flex: 1 1 30%;
  max-width: 180px;
}

/* === Center & modernize post description === */
.post .description {
  text-align: center;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e5e7eb;
  max-width: 720px;
  margin: 12px auto 20px auto;
  padding: 8px 0;
  word-break: break-word;
}

/* Optional subtle fade-in if description loads dynamically */
.post .description.fade-in {
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInDesc 0.4s ease-out forwards;
}

@keyframes fadeInDesc {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Center & modernize post description === */
.post .description,
.lightbox .info .description {
  text-align: center;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e5e7eb;
  max-width: 720px;
  margin: 12px auto 20px auto;
  padding: 8px 0;
  word-break: break-word;
}

/* === Empty search result styling === */
.no-results {
  text-align: center;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
  color: #9ca3af;              /* soft gray text */
  margin: 80px auto;
  display: block;
  opacity: 0.9;
}

/* === No results message (search page) === */
.no-results {
  text-align: center;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
  color: #9ca3af;
  margin: 80px auto;
  display: block;
  opacity: 0.9;
}

/* === Center search toolbar === */
.search-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap; /* makes it look good on mobile too */
}

.search-toolbar div {
  text-align: center;
}

.search-toolbar .sort a {
  margin: 0 8px;
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
}

.search-toolbar .sort a.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.search-toolbar strong {
  font-weight: 700;
  color: #ffffff;
}

/* === People search cards === */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;
}

.people-grid .card {
  text-align: center;
  padding: 12px;
}

.people-grid .card h2 {
  font-size: 0.95rem;      /* smaller username text */
  font-weight: 600;
  margin-top: 8px;
  color: #e5e7eb;
}

.people-grid .card img,
.people-grid .card .placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

.people-grid .card .placeholder {
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* === Forum page polish === */
.forum-wrap{
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 8px 12px;
}

.forum-title{
  text-align:center;
  font-size: 2rem;
  margin: 14px 0 18px;
  font-weight: 800;
  background: linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* new thread form */
.forum-new{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 18px;
}
.forum-new input{
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .95rem;
}
.forum-new .btn{
  background: linear-gradient(90deg,#22d3ee,#a78bfa);
  color: #00131a;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: .2s;
}
.forum-new .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34,211,238,.35);
}
@media (max-width: 760px){
  .forum-new{ grid-template-columns: 1fr; }
  .forum-new .btn{ width: 100%; }
}

/* threads list */
.threads-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.thread-card{
  background: rgba(20,24,30,.45);
  border: 1px solid #22303d;
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.thread-card:hover{
  border-color: #2f4053;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,211,238,.08);
}
.thread-title{
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.thread-title a{
  color: #9bd4ff;
  text-decoration: none;
  font-weight: 800;
}
.thread-title a:hover{ text-decoration: underline; }

.thread-meta{
  font-size: .9rem;
  color: #9ca3af;
}
.thread-meta .author{
  color: #c7d2fe;
  font-weight: 600;
}

/* empty state */
.no-threads{
  text-align: center;
  color: #9ca3af;
  margin: 40px 0;
}

/* === Suggestions page polish === */
.suggest-wrap{
  max-width: 920px;
  margin: 0 auto 64px;
  padding: 8px 12px;
}

.sugg-title{
  text-align: center;
  font-size: 2rem;
  margin: 12px 0 18px;
  font-weight: 800;
  background: linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Guidelines card */
.sugg-guidelines{
  background: rgba(20,24,30,.45);
  border: 1px solid #22303d;
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 900px;
  margin: 0 auto 18px;
}
.sugg-guidelines h2{
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #e5e7eb;
}
.sugg-guidelines p{
  margin: 6px 0;
  color: #c7d2fe;
}
.sugg-guidelines ul{
  margin: 8px 0 6px 18px;
  padding: 0;
  color: #d1d5db;
}
.sugg-guidelines li{
  margin: 4px 0;
}

/* Success pill */
.sugg-ok{
  max-width: 900px;
  margin: 10px auto 16px;
}

/* Form layout */
.sugg-form{
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 12px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.sugg-form input[type="text"],
.sugg-form textarea{
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .95rem;
}
.sugg-form textarea{
  min-height: 120px;
  resize: vertical;
}

/* Submit button — pill + gradient */
.sugg-form .btn{
  align-self: start;
  background: linear-gradient(90deg,#22d3ee,#a78bfa);
  color: #00131a;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 4px 14px rgba(34,211,238,.25);
}
.sugg-form .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(34,211,238,.40);
}

/* Mobile: stack nicely */
@media (max-width: 820px){
  .sugg-form{ grid-template-columns: 1fr; }
  .sugg-form .btn{ width: 100%; }
}

/* === Admin suggestions list === */
.admin-suggestions {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 8px 12px;
}

.admin-title {
  text-align: center;
  font-size: 2rem;
  margin: 16px 0 22px;
  font-weight: 800;
  background: linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sugg-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sugg-item {
  background: rgba(20,24,30,.45);
  border: 1px solid #22303d;
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.sugg-item:hover {
  border-color: #2f4053;
  box-shadow: 0 6px 20px rgba(34,211,238,.08);
}

.sugg-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  margin-bottom: 8px;
  color: #9ca3af;
}

.sugg-item header strong {
  color: #e5e7eb;
}

.sugg-item p {
  font-size: 1rem;
  color: #d1d5db;
  margin: 0;
  white-space: pre-line;
}

/* === Admin panel button === */
.admin-btn {
  display: inline-block;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  color: #00131a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.25);
  transition: all 0.25s ease;
  margin: 10px 0;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.45);
}

.admin-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(34, 211, 238, 0.25);
}

/* Center and space out admin actions */
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.admin-actions .btn,
.admin-actions .admin-btn {
  min-width: 160px;
  text-align: center;
}

/* Delete button in suggestions admin */
.delete-form {
  display: inline;
  margin-left: 8px;
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.delete-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.delete-btn:active {
  transform: scale(0.9);
}

/* Clickable collection name styling */
.card-link strong { color: #e5e7eb; }
.card-link:hover strong { text-decoration: underline; }

/* Minimal confirm modal for admin forms */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 1000; }
.modal-card {
  width: 100%; max-width: 420px; background: rgba(20,24,30,.96);
  border: 1px solid #22303d; border-radius: 14px; padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: pop .15s ease-out;
}
.modal-card h3 { margin: 0 0 6px; font-weight: 800; font-size: 1.1rem; }
.modal-card p { margin: 0 0 14px; color: #cbd5e1; }
.modal-card .actions { display: flex; justify-content: flex-end; gap: 10px; }
@keyframes pop { from { transform: scale(.98); opacity: .5; } to { transform: scale(1); opacity: 1; } }

/* Ensure anything with the `hidden` attribute is actually hidden */
[hidden] { display: none !important; }

/* Keep pellet shape for NSFW button even when disabled */
.nav-bar .nsfw.pill{display:inline-block;padding:8px 14px;border-radius:9999px;border:1px solid var(--border,#333);} 
.nav-bar .nsfw.pill.disabled{opacity:.6;cursor:not-allowed;}

.gallery .viewport img.slide {
  max-width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* card shell */
.card {
  display: flex;
  flex-direction: column;
  background: #0f141a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

/* image */
.card-thumb { position: relative; display:block; }
.card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;           /* adjust if you prefer */
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  cursor: pointer;
}

/* NSFW pill over the image */
.badge.nsfw.overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3b3b;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255,59,59,.45);
}

/* body */
.card-body { padding: 10px 12px 6px; }
.card-title {
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  color: #eef4ff;
  line-height: 1.25;
}

.card-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags .tag {
  color: #9fb3c8;
  font-size: .82rem;
  text-decoration: none;
}
.card-tags .tag:hover { color: #cfe3ff; }

/* actions footer */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.score { color:#cde1ff; font-size: .9rem; }

.favform .fav-btn {
  background: linear-gradient(135deg, #16c0f0, #9a7cff);
  border: none;
  color: #0a0f14;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.favform .fav-btn:hover {
  filter: brightness(1.08);
}


/* Unified grid for cards */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
  align-items:start;
}
@media (max-width: 640px){
  .grid{ grid-template-columns: repeat(2, 1fr); gap:12px; }
}

/* Active favorite star */
.fav-btn.active{ filter: saturate(1.4); transform: scale(1.02); }


/* ---------- Admin polish ---------- */
.page h1{
  font-weight:900;
  font-size:28px;
  letter-spacing:.2px;
  margin:8px 0 14px;
  background:linear-gradient(90deg,#9bd4ff 0%,#a78bfa 45%,#22d3ee 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.admin-toolbar,.page p:has(.btn){
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  padding:10px 0 16px;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#0f1419;
  border:1px solid #243343;
  border-radius:14px; overflow:hidden;
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.table th{
  text-align:left; font-weight:700; color:#cfe3ff;
  background:linear-gradient(180deg,#111927,#0d1520);
}
.table tr:last-child td{ border-bottom:0; }
.table a{ color:#9bd4ff; }
.table a:hover{ color:#fff; text-decoration:underline; }

fieldset{
  border:1px solid #243343;
  border-radius:12px;
  background:#0f1419;
  padding:12px;
  margin:12px 0 16px;
}
legend{
  padding:0 8px;
  font-weight:700;
  color:#cfe3ff;
}

select, .page input[type="text"], .page textarea, .page input[type="number"]{
  background:#0e1622 !important;
  border:1px solid #243343 !important;
  color:#cfe1f7 !important;
  border-radius:12px !important;
  padding:10px !important;
}

.chips{
  display:flex; gap:8px; flex-wrap:wrap;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(180deg,#111927,#0d1520);
  border:1px solid #273445; border-radius:9999px;
  padding:8px 12px; color:#cfe1f7;
}
.chip input{ accent-color:#22d3ee; }

.btn.ghost{
  background:transparent; color:#cfe1f7; border:1px solid #273445;
}
.btn.danger, .danger{
  background:linear-gradient(90deg,#f43f5e,#ef4444) !important;
  color:#fff !important;
}
.btn.small{ padding:6px 10px; font-weight:600; }

/* Admin modal */
.modal[hidden]{display:none}
.modal{
  position:fixed; inset:0; display:grid; place-items:center; z-index:1000;
  background:rgba(0,0,0,.6);
}
.modal .modal-card{
  background:#0f1419; border:1px solid #243343; border-radius:12px;
  padding:16px; width:min(480px, 92vw);
}
.modal .actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }


/* Admin quick nav under H1 */
.admin-nav{
  display:flex; gap:10px; flex-wrap:wrap; margin:6px 0 14px;
}
.admin-nav a{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:9999px;
  background:linear-gradient(180deg,#111927,#0d1520);
  border:1px solid #273445; color:#cfe1f7; text-decoration:none;
}
.admin-nav a:hover{ color:#fff; border-color:#2f4151; }

/* Admin vertical stack */
.admin-stack{ /* override */
  display:grid;
  justify-items:center;
  gap:12px;
  padding:8px 0 18px;
}
.admin-stack .btn{
  width:min(420px, 90vw);
  justify-content:center;
}

/* Admin dashboard: centered vertical stack of pills */
.admin-stack{
  display:grid !important;
  place-items:center;
  gap:14px;
  padding:12px 0 18px;
  margin: 6px auto 12px;
  width: 100%;
  max-width: 520px; /* inside the red box area */
}
.admin-stack .btn{
  display:block;
  width:100%;
  justify-content:center;
  text-align:center;
}


/* Admin dashboard column of pills */
.admin-stack{ display:grid !important; gap:14px; justify-items:center; margin:10px auto 18px; width:100%; max-width:520px; }
.admin-stack .btn{ width:100%; display:block; text-align:center; }


/* Admin forms polish */
.page form label{ display:block; margin:6px 0 4px; font-weight:600; }
.page form input[type="text"], 
.page form textarea, 
.page form input[type="file"], 
.page form input[type="number"],
.page form select{
  background:#0f1419; border:1px solid #243343; color:#cfe1f7;
  border-radius:12px; padding:10px;
  width:min(720px, 100%);
}
.page form textarea{ min-height:110px; }
.page form .btn{ align-self:start; }
fieldset{ border:1px solid #243343; border-radius:12px; padding:12px; }
legend{ padding:0 8px; font-weight:700; color:#cfe3ff; }

/* Admin dashboard final column */
.admin-stack{
  display:grid !important;
  grid-auto-flow: row;
  justify-items:center;
  gap:14px;
  margin: 10px auto 18px;
  width:100%;
  max-width:520px;
}
.admin-stack .btn{
  display:block !important;
  width:100%;
  text-align:center;
}


/* FORCE admin dashboard to vertical column */
section.page > .admin-stack{
  display: grid !important;
  grid-auto-flow: row !important;
  justify-items: center !important;
  gap: 14px !important;
  margin: 10px auto 18px !important;
  width: 100% !important;
  max-width: 520px !important;
}
section.page > .admin-stack .btn{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* === Admin dashboard: vertical pill stack (hard override) === */
section.page > .admin-stack{
  display: block !important;                 /* no flex/grid from elsewhere */
  max-width: 520px !important;
  margin: 10px auto 18px !important;         /* centered column */
  padding: 0 !important;
}

section.page > .admin-stack > a.btn{
  display: block !important;                 /* one per line */
  float: none !important;                    /* kill any floats */
  clear: both !important;                    /* ensure next starts on new line */
  flex: none !important;                     /* ignore flex parents */
  position: static !important;               /* no odd positioning */
  width: 100% !important;                    /* full width within column */
  box-sizing: border-box !important;
  text-align: center !important;
  margin: 8px 0 !important;                  /* spacing between pills */
  white-space: normal !important;
}





/* === Edit Post polish: centered card + tag search === */
.tags-box input#tagSearch{
  background:#0f1419; border:1px solid #243343; color:#cfe1f7;
  border-radius:9999px; padding:10px 14px;
  width:min(720px,100%);
}
#tagChips .chip input{ margin:0; }
#tagChips .chip:hover{ transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,0,0,.25); }
.page.page-center h1{ text-align:center; }



/* ---- Tag page centering + subscribe style ---- */
.tag-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 12px auto 18px;
  text-align:center;
}
.tag-header .tag-title{
  text-align:center;
}
/* Slightly bolder subscribe button */
.subscribe-btn{
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  padding: 10px 18px;
}
/* Center the tag grid and keep cards nicely sized */
.tag-grid{
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
}


/* --- Strong centering for tag page --- */
/* Force flex so single/few items appear centered */
.tag-grid{
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 20px auto 40px;
  max-width: 1200px;
}
.tag-grid .card{
  width: 280px;
  max-width: 100%;
  justify-self: center;
}




/* Reserve space for header to avoid jump when sticky activates */
.site-header { min-height:64px; }
body { padding-top: env(safe-area-inset-top, 0); }

/* Avoid layout shift from images loading late */
img[loading="lazy"] { contain: layout paint; }

/* Defer below-the-fold rendering for heavy sections */
#feed-sentinel ~ * { content-visibility:auto; contain-intrinsic-size: 1000px; }

.reactions button.you-reacted{ outline:2px solid rgba(255,255,255,.25); box-shadow:0 0 0 2px rgba(0,0,0,.2) inset }

.trending-list{ list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:8px }
.trending-list li a{ display:inline-block; padding:.25rem .5rem; border:1px solid rgba(255,255,255,.15); border-radius:999px; opacity:.9; text-decoration:none }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px; border-radius:10px; text-decoration:none;
  border:1px solid rgba(255,255,255,0.08); background:#12151a; color:#e8ecf2;
  transition:transform .06s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.btn-block { width:100%; }
.btn-gradient { background: linear-gradient(90deg,#4cc3ff,#a78bfa); color:#0b0f14; font-weight:700; border:none; }
.btn-passkey { background:#0f1722; }
.btn-discord { background:#5865f2; border-color:#5865f2; color:#fff; }
.btn-google  { background:#1a1f2a; }

.in { width:100%; padding:12px 12px; border-radius:10px; border:1px solid #2a3140;
  background:#0f1420; color:#e8ecf2; margin:6px 0 12px; }

.warn { background:#1f2a18; border:1px solid #32531f; color:#cde7b4; padding:10px 12px; border-radius:10px; }

.or-row { display:flex; align-items:center; gap:10px; color:#7d8696; font-size:12px; margin:6px 0 12px; }
.or-row::before, .or-row::after { content:""; height:1px; background:#2a3140; flex:1; }

.small { color:#93a0b5; font-size:13px; }

/* Feed/list thumbnails */
.post-thumb { 
  display:block; 
  aspect-ratio:16/9; 
  overflow:hidden; 
  border-radius:12px; 
  background:#0f1722;      /* fallback bg so empty never looks broken */
}
.post-thumb img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
}
.post-card {                /* optional: ensures the card reserves space */
  display:flex; 
  flex-direction:column; 
  gap:10px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #111927;
  color: white;
  padding: 8px;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}

.post-card img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;   /* or whatever shape your thumbnails usually are */
  object-fit: cover;
}

/* cards / grid */
.post-thumb { display:block; aspect-ratio: 3/4; overflow:hidden; border-radius:12px; }
.post-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* post detail cover (make sure it doesn’t change height as it loads) */
.card-cover { display:block; width:100%; height:auto; aspect-ratio: 16/9; object-fit:cover; }

.card-thumb img.card-cover {
  max-height: 400px; /* or any size you want */
  object-fit: cover;
  width: 100%;
}


.card .card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* crop instead of stretching */
  object-position: center;
  display: block;
}


#feed-grid .card img.card-cover,
.tag-grid .card img.card-cover {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important; /* neutralize older aspect-ratio rules */
  object-fit: cover !important;  /* crop instead of stretching */
  object-position: center;
  display: block;
}

/* If something still slips through, this global sledgehammer catches it */
.card img.card-cover {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
}

/* ===== Grid width control so single-card pages don't stretch ===== */
#feed-grid,
.tag-grid {
  /* keep cards between 280–320px wide and center the tracks */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;   /* center the columns */
  gap: 18px;                 /* or your existing gap */
}

/* make the card fill its grid track but not exceed it */
#feed-grid .card,
.tag-grid .card {
  width: 100%;
  max-width: 320px;          /* matches track max above */
}

/* keep media clamped inside the card */
#feed-grid .card .card-thumb,
.tag-grid .card .card-thumb {
  height: 300px !important;
  overflow: hidden !important;
  border-radius: 12px;
  display: block;
}

#feed-grid .card img.card-cover,
.tag-grid .card img.card-cover {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}





/* Keep grid tiles from stretching too wide when there are few items */
#feed-grid,
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: 18px;
}


/* Force image to fill the box */
#feed-grid .card img.card-cover,
.tag-grid .card img.card-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: auto !important;
  display: block !important;
}


#feed-grid .card-thumb > img.card-cover,
.tag-grid .card-thumb > img.card-cover{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: auto !important;    /* neutralize earlier aspect ratios on img */
}

/* Kill old square/height clamps that fight us */
#feed-grid .card .card-thumb,
.tag-grid .card .card-thumb,
.card img.card-cover{
  height: auto !important;
}

/* === FORCE 3:4 PORTRAIT TILES ON FEED/TAG === */
#feed-grid .card-thumb,
.tag-grid .card-thumb {
  position: relative !important;
  aspect-ratio: 3 / 4 !important;   /* portrait layout */
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  display: block !important;
}

#feed-grid .card-thumb > img.card-cover,
.tag-grid .card-thumb > img.card-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: auto !important;
  display: block !important;
}

/* Remove old fixed height rules */
#feed-grid .card .card-thumb,
.tag-grid .card .card-thumb,
.card img.card-cover {
  height: auto !important;
}

/* ===== FINAL FEED/TAG TILE RULES — 3:4 portrait ===== */

/* keep grid centered and sane widths */
#feed-grid,
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  gap: 18px;
}

/* card track sizing */
#feed-grid .card,
.tag-grid .card {
  width: 100%;
  max-width: 320px;
}

/* 3:4 media box (no fixed height) */
#feed-grid .card-thumb,
.tag-grid .card-thumb {
  position: relative !important;
  aspect-ratio: 3 / 4 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  display: block !important;
}

/* image fills the 3:4 box */
#feed-grid .card-thumb > img.card-cover,
.tag-grid .card-thumb > img.card-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  aspect-ratio: auto !important; /* neutralize old ratios on the IMG */
  display: block !important;
}

/* neutralize any earlier clamps */
#feed-grid .card .card-thumb,
.tag-grid .card .card-thumb,
.card img.card-cover {
  height: auto !important;
}

.site-footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-nav a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px; /* makes them pill shaped */
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* === Music page (Spotify-inspired) === */
.music-page{max-width:1200px;margin:0 auto;padding:16px 16px 40px}
.music-hero{display:grid;grid-template-columns:160px 1fr;gap:20px;align-items:center;margin:10px 0 22px}
.music-hero-art{width:160px;height:160px;border-radius:18px;background:linear-gradient(135deg,#1f2937,#0b1118);border:1px solid #243343;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.music-hero-meta h1{margin:6px 0 8px;font-size:2.4rem;background:linear-gradient(90deg,#9bd4ff,#a78bfa,#22d3ee);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.music-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:9999px;border:1px solid #243343;background:#0f1724;color:#cfe1f7;font-weight:700;font-size:12px;letter-spacing:.4px;text-transform:uppercase}
.music-shell{display:grid;grid-template-columns:320px 1fr;gap:18px}
.music-sidebar{background:#0f1419;border:1px solid #22303d;border-radius:16px;padding:14px}
.music-sidebar h2{margin:6px 0 10px}
.music-filter input{width:100%;background:#0e1622;border:1px solid #243343;color:#cfe1f7;border-radius:10px;padding:8px 10px}
.music-list{margin-top:10px;display:grid;gap:8px;max-height:520px;overflow:auto}
.music-row{
  display:grid;
  grid-template-columns:10px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:12px;
  border:1px solid #1f2937;
  background:#0b121a;
  color:#e2e8f0;
  text-align:left;
  cursor:pointer;
  width:100%;
  appearance:none;
}
.music-row .dot{width:8px;height:8px;border-radius:50%;background:#22d3ee;box-shadow:0 0 10px rgba(34,211,238,.5)}
.music-row .title{font-weight:700}
.music-row .artist{opacity:.7;font-size:12px}
.music-row:hover{background:#101a26;border-color:#2a3a4d}
.music-main{display:grid;gap:16px}
.music-now{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center;background:#0f1419;border:1px solid #22303d;border-radius:16px;padding:14px}
.now-cover{width:180px;height:180px;border-radius:16px;background:#0b1118 center/cover no-repeat;border:1px solid #243343}
.now-title{font-size:1.6rem;font-weight:800}
.now-artist{opacity:.8}
.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:9999px;border:1px solid #2a3a4d;background:#0f1724;color:#cfe1f7;font-weight:700;cursor:pointer}
.pill.ghost{background:#0b121a;color:#cfe1f7}
.pill.heart{background:linear-gradient(90deg,#fca5a5,#fb7185);border:0;color:#2a0b0b}
.pill.active{border-color:#22d3ee;box-shadow:0 0 0 1px rgba(34,211,238,.45) inset}
.now-actions{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}
.music-sort{display:grid;gap:6px;margin:8px 0}
.music-sort label{font-size:12px;opacity:.8}
.music-sort select{background:#0b121a;border:1px solid #2a3a4d;color:#cfe1f7;border-radius:10px;padding:6px 10px}
.music-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 10px}
.music-playlists{margin:10px 0 12px}
.music-playlists .head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.playlist-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.playlist-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 10px;border-radius:10px;border:1px solid #1f2937;background:#0b121a;color:#e2e8f0;cursor:pointer;margin-bottom:6px}
.playlist-row em{font-style:normal;opacity:.7}
.playlist-row:hover{background:#101a26;border-color:#2a3a4d}
.music-player{background:#0f1419;border:1px solid #22303d;border-radius:16px;padding:14px;display:grid;gap:12px}
.player-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.player-controls .controls-left{display:flex;gap:10px;flex-wrap:wrap}
.player-stats{margin-left:auto;display:flex;align-items:center;gap:10px;padding:6px 12px;border-radius:12px;background:linear-gradient(135deg,rgba(239,68,68,.18),rgba(244,114,182,.18));border:1px solid rgba(239,68,68,.35);color:#fca5a5;font-weight:800}
.player-stats .label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#fecaca}
.player-stats #playCount{font-size:18px;color:#fee2e2}
.player-btn{border-radius:9999px;padding:8px 14px;font-weight:800;background:linear-gradient(90deg,#22d3ee,#a78bfa);color:#00131a;border:0;cursor:pointer}
.player-btn.ghost{background:#0f1724;border:1px solid #2a3a4d;color:#cfe1f7}
.player-bar{display:grid;gap:8px}
.player-bar input[type="range"]{width:100%}
.player-bar .time{display:flex;justify-content:space-between;font-size:12px;opacity:.8}
.player-volume{display:flex;align-items:center;gap:10px}
.player-extras{display:flex;flex-wrap:wrap;gap:12px}
.player-extras .extra{display:flex;align-items:center;gap:8px;background:#0b121a;border:1px solid #22303d;border-radius:12px;padding:6px 10px}
.player-extras select{background:#0b121a;border:1px solid #2a3a4d;color:#cfe1f7;border-radius:10px;padding:4px 8px}
.player-extras input[type="range"]{width:120px}
.queue-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.music-queue{background:#0f1419;border:1px solid #22303d;border-radius:16px;padding:14px}
.queue-list{display:grid;gap:8px;max-height:300px;overflow:auto;margin-bottom:10px}
.queue-row{background:#0b121a;border:1px solid #1f2937;border-radius:12px;padding:8px 10px;color:#e2e8f0;text-align:left}
.queue-row:hover{background:#101a26;border-color:#2a3a4d}
.queue-row.active{border-color:#22d3ee;box-shadow:0 0 0 1px rgba(34,211,238,.4) inset}
.queue-actions{display:flex;gap:10px;flex-wrap:wrap}
canvas#waveform{width:100%;display:block;background:#0b1118;border:1px solid #243343;border-radius:12px}
.music-drawer{background:#0f1419;border:1px solid #22303d;border-radius:16px;padding:14px}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.drawer-grid{display:grid;grid-template-columns:240px 1fr;gap:14px}
.drawer-cover{width:100%;aspect-ratio:1/1;border-radius:14px;background:#0b1118 center/cover no-repeat;border:1px solid #243343}
.drawer-stats{display:grid;gap:6px;font-size:12px;opacity:.9;margin:10px 0}
.drawer-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.drawer-desc{opacity:.85;font-size:13px;line-height:1.5}
.drawer-tabs{display:flex;gap:8px;margin-bottom:8px}
.drawer-panel{background:#0b121a;border:1px solid #1f2937;border-radius:12px;padding:10px;min-height:140px;max-height:220px;overflow:auto}
.drawer-panel .lyric-line{opacity:.7}
.drawer-panel .lyric-line.active{opacity:1;color:#22d3ee}
.drawer-meta{opacity:.7;font-size:12px}
.card-actions{display:flex;gap:8px;align-items:center;margin-top:8px}
.card-actions .play{flex:1}
.music-card .play{border-radius:10px;padding:6px 10px}
#commentList{display:grid;gap:8px;margin-bottom:10px}
#commentList .comment-row{display:grid;grid-template-columns:32px 1fr;gap:8px;align-items:start}
#commentList .comment-row img{width:32px;height:32px;border-radius:50%;object-fit:cover}
#commentList .comment-row .meta{font-size:12px;opacity:.7}
#commentForm textarea{width:100%;background:#0e1622;border:1px solid #243343;color:#cfe1f7;border-radius:10px;padding:8px 10px;margin-bottom:6px}
@media (max-width: 900px){
  .drawer-grid{grid-template-columns:1fr}
  .music-now{grid-template-columns:1fr}
  .now-cover{width:100%;height:220px}
}

/* === Chat widget === */
.chat-widget{position:fixed;right:18px;bottom:18px;z-index:9999;font-family:inherit}
.chat-toggle{background:linear-gradient(90deg,#22d3ee,#a78bfa);border:0;color:#00131a;font-weight:800;border-radius:9999px;padding:10px 16px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.chat-panel{
  width:min(560px, 92vw);
  height:420px;
  background:#0f1419;
  border:1px solid #22303d;
  border-radius:16px;
  box-shadow:0 20px 40px rgba(0,0,0,.45);
  display:grid;
  grid-template-rows:auto 1fr;
  overflow:hidden;
  margin-top:8px;
}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #22303d}
.chat-min{background:#0b121a;border:1px solid #2a3a4d;border-radius:8px;color:#cfe1f7;padding:2px 8px}
.chat-body{display:grid;grid-template-columns:200px 1fr;gap:0;height:100%}
.chat-list{border-right:1px solid #22303d;overflow:auto;background:#0b121a}
.chat-row{display:block;width:100%;text-align:left;padding:10px;border:0;border-bottom:1px solid #1f2937;background:#0b121a;color:#e2e8f0;cursor:pointer}
.chat-row.unread{background:#111b27}
.chat-thread{display:grid;grid-template-rows:auto 1fr auto auto;gap:8px;padding:10px}
.chat-thread-head{font-weight:800}
.chat-status{background:#0b121a;border:1px solid #2a3a4d;border-radius:10px;padding:6px 8px;font-size:12px;color:#cfe1f7}
.chat-messages{overflow:auto;display:grid;gap:6px;padding-right:6px;align-content:start}
.chat-msg{max-width:70%;width:fit-content;align-self:start;justify-self:start;white-space:pre-wrap;word-break:break-word;padding:8px 10px;border-radius:12px;background:#0b121a;border:1px solid #1f2937}
.chat-msg.me{justify-self:end;background:#132235;border-color:#35516a}
.chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.chat-form input{
  background:#0e1622;
  border:1px solid #243343;
  color:#cfe1f7;
  border-radius:10px;
  padding:8px 10px;
  height:36px;
  max-width:100%;
}
.chat-form .btn{height:34px}
.chat-pending{background:#0b121a;border:1px dashed #2a3a4d;border-radius:12px;padding:8px}
.chat-pending-actions{display:flex;gap:8px;margin-top:6px}
@media (max-width: 640px){
  .chat-panel{width:min(94vw, 560px);height:380px}
  .chat-body{grid-template-columns:1fr}
  .chat-list{display:none}
}
.music-grid .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.music-card{background:#0f1419;border:1px solid #22303d;border-radius:16px;padding:12px;display:grid;gap:10px}
.music-card .cover{height:180px;border-radius:12px;background:#0b1118 center/cover no-repeat;border:1px solid #243343}
.music-card .cover.empty,
.now-cover.empty{
  background:linear-gradient(135deg,#1f2937,#0b1118);
}
.music-card .title{font-weight:800}
.music-card .artist{opacity:.8;font-size:12px}
.music-card .play{justify-self:start;border-radius:9999px;padding:6px 12px;background:linear-gradient(90deg,#22d3ee,#a78bfa);border:0;font-weight:800;color:#00131a;cursor:pointer}
.music-empty{opacity:.7;padding:10px}
@media (max-width: 980px){
  .music-shell{grid-template-columns:1fr}
  .music-hero{grid-template-columns:1fr}
  .music-hero-art{width:120px;height:120px}
  .music-now{grid-template-columns:1fr}
  .now-cover{width:100%;height:200px}
}

/* === Comment action alignment overrides (final) === */
.comment .meta{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}
.comment .meta-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comment .meta-right{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;justify-content:flex-end;white-space:nowrap}
.comment .cvote{height:36px}
.comment .cvote button{width:28px;height:28px}
/* report link button */
.comment .report-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:32px;
  min-width:72px;
  padding:0 12px;
  background:#0f1724;
  border:1px solid #2a3a4d;
  color:#e2e8f0 !important;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.4px;
  text-decoration:none;
}
.comment .report-link:hover{background:#132235;border-color:#35516a;text-decoration:none}

/* --- Comment polish (layout + votes on the right) --- */
.comments .comment{
  padding:14px 16px;
  border-color:#2b3a4a;
  background:#0e141b;
}
.comment .meta{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:12px;
}
.comment .meta-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.comment .meta-left time{
  font-size:12px;
  color:#8aa1bb;
}
.comment .cscore{
  padding:3px 8px;
  border-radius:9999px;
  background:#0b1220;
  border:1px solid #243343;
  font-size:12px;
}
.comment .meta-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  justify-self:end;
}

/* tighter alignment for comment action row */
.comment .meta-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comment .meta-right{flex-wrap:nowrap}
.comment .cvote{height:36px}
.comment .cvote button{width:28px;height:28px}
.comment .cdelete button,
.comment .report summary{height:36px;line-height:24px}
.comment .report summary::marker{content:''}
.comment .report summary::-webkit-details-marker{display:none}
.comment .cvote{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:9999px;
  background:#0b1220;
  border:1px solid #243343;
}
.comment .cvote button{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #2a3a4d;
  background:#0f1724;
  color:#cfe1f7;
  font-weight:800;
  padding:0;
  line-height:1;
}
.comment .cvote button:hover{
  background:#132235;
  border-color:#35516a;
}
.comment .cvote button:disabled{
  opacity:.55;
  cursor:default;
}
.comment .report summary{
  color:#7aa2c9;
  cursor:pointer;
  list-style:none;
}
.comment .cdelete button,
.comment .report summary,
.comment .cdelete button{
  background:#0f1724;
  border:1px solid #2a3a4d;
  color:#cfe1f7;
  border-radius:10px;
  padding:6px 10px;
  font-weight:600;
  min-width:72px;
  text-align:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.comment .cdelete button:hover,
.comment .report summary:hover{
  background:#132235;
  border-color:#35516a;
}

/* --- Comment polish (meta + vote buttons) --- */
.comments .comment{
  padding:14px 16px;
  border-color:#2b3a4a;
  background:#0e141b;
}
.comment .meta{
  gap:12px;
  align-items:center;
}
.comment .meta time{
  font-size:12px;
  color:#8aa1bb;
}
.comment .cscore{
  padding:3px 8px;
  border-radius:9999px;
  background:#0b1220;
  border:1px solid #243343;
  font-size:12px;
}
.comment .cvote{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:9999px;
  background:#0b1220;
  border:1px solid #243343;
}
.comment .cvote button{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #2a3a4d;
  background:#0f1724;
  color:#cfe1f7;
  font-weight:800;
  padding:0;
  line-height:1;
}
.comment .cvote button:hover{
  background:#132235;
  border-color:#35516a;
}
.comment .cvote button:disabled{
  opacity:.55;
  cursor:default;
}
.comment .report summary{
  color:#7aa2c9;
  cursor:pointer;
}
