:root{
  --bg:#0b0b0b;
  --panel:#070707;
  --panel2:#0f0f0f;
  --text:#e9e0dc;
  --muted:#cfc0b8;
  --red:#c70204;
  --border:rgba(255,255,255,.06);
}
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}
.hf-shell{
  max-width:960px;
  margin:10px auto 30px auto;
  padding:0px;
  background:var(--bg);
}
.hf-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 40px rgba(0,0,0,.6);
}
.hf-title{
  color:var(--red);
  margin:0 0 8px;
  font-size:22px;
  text-shadow:0 2px 6px rgba(170,0,0,.25);
}
.hf-sub{color:var(--muted);font-size:14px;margin:0 0 16px}
.hf-field{margin:12px 0}
.hf-label{display:block;margin:0 0 6px;color:#f5e3c3;font-size:13px}
.hf-input, .hf-textarea{
  width:100%;
  background:#0b0b0b;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
}
.hf-textarea{min-height:120px;resize:vertical}
.hf-row{display:flex;gap:12px;flex-wrap:wrap}
.hf-radio{
  display:flex;gap:10px;flex-wrap:wrap;
  background:var(--panel2);
  border:1px solid var(--border);
  padding:10px;
  border-radius:12px;
}
.hf-radio label{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}
.hf-check{display:flex;gap:10px;align-items:flex-start;font-size:14px}
.hf-btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#ff4b4b,#b60000);
  border:none;color:#fff;
  padding:10px 18px;border-radius:999px;
  font-weight:700;cursor:pointer;
  box-shadow:0 6px 18px rgba(182,0,0,.25);
  text-decoration:none;
}
.hf-btn.alt{background:#111;border:1px solid rgba(255,255,255,.08);box-shadow:none}
.hf-btn:disabled{opacity:.6;cursor:not-allowed}
.hf-msg{
  margin-top:14px;
  padding:12px;
  background:rgba(199,2,4,.12);
  border:1px solid rgba(199,2,4,.35);
  border-radius:12px;
  display:none;
}
.hf-count{font-size:12px;color:var(--muted);text-align:right;margin-top:6px}
.hf-tabbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.hf-tab{
  padding:8px 12px;border-radius:999px;
  background:#0f0f0f;border:1px solid var(--border);
  cursor:pointer;font-size:13px;color:#fff;
}
.hf-tab.active{
  border-color:rgba(255,40,40,.5);
  background:radial-gradient(circle at top left, rgba(255,40,40,.18), #050505);
}
.hf-feed{
  position:relative;
  background:#070707;
  border:1px solid var(--border);
  border-radius:14px;
  padding:35px 16px 60px 16px;
  margin:12px 0;
}
.hf-feed .hf-mini{font-size:12px;color:#b9a89f;position:absolute;top:10px;left:12px}
.hf-feed .hf-realm{margin-top:22px;font-weight:700;color:#ffcc66}
.hf-feed .hf-nick{font-weight:700;color:#fff;margin-top:2px}
.hf-feed .hf-tags{font-size:12px;color:#cfc0b8;margin-top:6px}
.hf-clamp2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.hf-clamp4{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
.hf-toggle{
  background:none;border:none;color:#ffcc66;
  font-weight:700;cursor:pointer;padding:0;margin-top:8px;
}
.hf-footer{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.06);
  color:#cfc0b8;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.hf-fire{
  position:absolute;
  right:12px;
  bottom:12px;
  display:flex;
  align-items:center;
  gap:8px;
}
.hf-fire button{
  background:#111;border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  color:#fff;
  font-size:14px;
}
.hf-fire button.liked{
  background:var(--red);
  border-color:var(--red);
}
.hf-modal-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.65);
  display:none;align-items:center;justify-content:center;z-index:9999;
}
.hf-modal{
  width:min(520px,92vw);
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:16px;
}
.hf-modal h3{margin:0 0 8px;color:#fff}
.hf-modal p{margin:0 0 14px;color:#cfc0b8}
@media (max-width: 768px){
  .hf-shell{padding:16px; margin-top: 0px;}
  .hf-card{padding:14px}
  .hf-trending { margin: 20px 16px 10px 16px !important; }
.hr_ft_btns {
    flex-wrap: nowrap !important;
    justify-content: start !important;
}

.hr_ft_btns a.hf-btn.alt {
    padding: 10px 8px;
    font-size: 14px;
}
}


/* ===== HellFeed Admin: status visuals ===== */

/* Left border indicator */
.hf-entry[data-status="approved"]{
  border-left: 5px solid #0a780f;
}
.hf-entry[data-status="unapproved"]{
  border-left: 5px solid #c70204;
}

/* Approve / Unapprove buttons - default look */
.hf-entry button[data-action="approve"],
.hf-entry button[data-action="unapprove"]{
  border: 1px solid rgba(255,255,255,.10);
  color:#fff;
}

/* Approved feed -> Approve button green/black gradient */
.hf-entry[data-status="approved"] button[data-action="approve"]{
  background: linear-gradient(180deg,#35ff73,#000);
}

/* Unapproved feed -> Unapprove button red/black gradient */
.hf-entry[data-status="unapproved"] button[data-action="unapprove"]{
  background: linear-gradient(180deg,#ff3b3b,#000);
}

/* Disabled state (same button but disabled) */
.hf-entry button:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.15);
}
.hf-entry button:disabled:hover{
  transform:none;
}


/* Top-right Featured star */
.hf-star{
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(199,2,4,.55);
  background:rgba(0,0,0,.35);
  box-shadow:0 0 14px rgba(199,2,4,.30);
  color:#8a8a8a;
  cursor:pointer;
  user-select:none;
  transition:transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    font-size: 25px;
    line-height: 20px;
}
.hf-star:hover{ transform:scale(1.05); }
.hf-star:disabled{ opacity:.6; cursor:not-allowed; }

/* Tooltip */
.hf-star[data-tip]:hover::after{
  content: attr(data-tip);
  position:absolute;
  top:-36px;
  right:0;
  white-space:nowrap;
  font-size:12px;
  padding:6px 10px;
  border-radius:10px;
  background:#0b0b0b;
  border:1px solid rgba(199,2,4,.35);
  color:#f5e3c3;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}

/* Featured ON state: yellow star + red background */
.hf-star.is-on{
  background:rgba(199,2,4,.92);
  color:#ffcc66;
  box-shadow:0 0 18px rgba(199,2,4,.55);
  border-color:rgba(255,255,255,.14);
}

.hf-feed-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.hf-filters{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.hf-filter{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:170px;
}

.hf-filter-label{
  font-size:12px;
  color:#b9a89f;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.hf-select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#0b0b0b;
  color:#efe7e2;
  outline:none;
}

.hf-reset{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#111;
  color:#fff;
  cursor:pointer;
  height:42px;
}

.hf-reset:hover{
  background:#c70204;
}

@media (max-width:520px){
  .hf-filter{ min-width: 100%; }
  .hf-reset{ width:100%; }
  .hf-filters{ width:100%; }
}

.hf-trending{
  max-width: 960px;
  margin: 20px auto 10px auto;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  gap:12px;
}

.hf-trending-label{
  font-weight: 800;
  color:#ff4444;
  white-space: nowrap;
  font-size: 14px;
  display:flex;
  align-items:center;
  gap:10px;
}
.hf-trending-sep{ color: rgba(255,255,255,.25); }

.hf-marquee{
  flex:1;
  overflow:hidden;
  position:relative;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(10,10,10,.55);
}

.hf-marquee-track{
  display:flex;
  width:max-content;
  gap:14px;
  padding: 8px 10px;
  animation: hfMarquee 22s linear infinite;
}
.hf-marquee:hover .hf-marquee-track{ animation-play-state: paused; }

@keyframes hfMarquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hf-trend-item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  color:#e9e0dc;
  white-space: nowrap;
  font-size: 13px;
}
.hf-trend-item .hf-trend-realm{ color:#ffcc66; font-weight:700; }
.hf-trend-item .hf-trend-text{ color:#cfc0b8; }
.hf-trend-item .hf-trend-link{
  margin-left: 4px;
  background: rgba(199,2,4,.18);
  border: 1px solid rgba(199,2,4,.35);
  color:#fff;
  padding: 4px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
}
.hf-trend-item .hf-trend-link:hover{ background: rgba(199,2,4,.35); }

@media (max-width: 640px){
  .hf-trending{ flex-direction: column; align-items: stretch; gap:8px; }
  .hf-trending-label{ justify-content:center; }
}
@media (prefers-reduced-motion: reduce){
  .hf-marquee-track{ animation:none; overflow-x:auto; }
}


/* textarea red outline when Not Allowed */
.hf-textarea.hf-bad{
  border:1px solid rgba(255,60,60,.8) !important;
  box-shadow:0 0 0 2px rgba(255,60,60,.15);
}

/* tooltip button */
.hf-tipbtn{
  width:20px;height:20px;
  border-radius:999px;
  border:1px solid rgba(199,2,4,.55);
  background:#0b0b0b;
  color:#ffcc66;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/* tooltip bubble (dark/red) */
.hf-tooltip{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#050505;
  border:1px solid rgba(199,2,4,.55);
  box-shadow:0 10px 30px rgba(0,0,0,.65), 0 0 18px rgba(199,2,4,.18);
  color:#e9e0dc;
  font-size:13px;
  line-height:1.45;
}


/* optional */
#hf-email { margin-top: 2px; }

/* ===== Tabs Layout (beside wrapper, NOT marquee) ===== */
.hf-tabs-layout{
  display:flex;
  gap:18px;
  align-items:flex-start;
    max-width: 1024px;
    margin: 0 auto;
}

/* Left sidebar tabs */
.hf-side-tabs{
  width:190px;
  min-width:190px;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top: 8px;
}

.hf-tab{
  width:100%;
  text-align:left;
  padding:14px 14px;
  border-radius:14px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.hf-tab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.05);
}
.hf-tab.is-active{
  background: rgba(199,2,4,.18);
  border-color: rgba(199,2,4,.65);
  box-shadow: 0 0 0 1px rgba(199,2,4,.25) inset, 0 10px 30px rgba(0,0,0,.35);
}

/* Panels */
.hf-tab-panels{ flex:1; min-width:0; }
.hf-panel{ display:none; }
.hf-panel.is-active{ display:block; }

/* Condemnation Entries UI */
.hf-condem-wrap{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  padding:18px 18px;
}

.hf-condem-title{
  font-size:18px;
  font-weight:800;
  color:#fff;
  margin:0 0 6px 0;
}
.hf-condem-sub{
  color: rgba(255,255,255,.70);
  font-size:13px;
  margin:0 0 14px 0;
}

.hf-condem-state{
  color: rgba(255,255,255,.75);
  font-size:14px;
  padding:10px 6px;
}

.hf-condem-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hf-condem-item{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.hf-condem-text{
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:baseline;
  line-height:1.25;
}

.hf-condem-holder{ font-weight:800; color:#fff; }
.hf-condem-verb{ color: rgba(255,255,255,.72); font-weight:600; }
.hf-condem-reason{ color:#f5c16c; font-weight:800; }
.hf-condem-time{ color: rgba(255,255,255,.55); font-size:12px; margin-left:6px; }

.hf-condem-view{
  flex:0 0 auto;
  text-decoration:none;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(199,2,4,.65);
  background: rgba(199,2,4,.12);
  color:#fff;
  font-weight:800;
  font-size:13px;
  transition: background .12s ease, transform .12s ease;
}
.hf-condem-view:hover{
  background: rgba(199,2,4,.22);
  transform: translateY(-1px);
}

/* Responsive: tabs become top row */
@media (max-width: 980px){
  .hf-tabs-layout{ flex-direction:column; }
  .hf-side-tabs{
    gap:10px;
  }
  .hf-tab{
    text-align:center;
    flex:1;
  }
      .hf-side-tabs {
        width: 90%;
        min-width: 0;
        flex-direction: row;
        margin: 0 auto;
    }

    .hf-side-tabs button {
        text-align: center;
        padding: 14px 5px;
    }

.hf-feed {
    padding: 35px 10px 55px 10px;
}
}


.hf-feed.hf-condem-inline {
    padding: 45px 16px 25px 16px;
}

.hf-feed.hf-ledger-inline {
    padding: 45px 16px 25px 16px;
}

body.admin_prt .hf-tabbar {
    flex-wrap: nowrap !important;
}

body.admin_prt .hf-tabbar button.hf-tab {
    width: fit-content !important;
}

/* Marquee speed slower */
#hf-marquee-track,
.hf-marquee-track{
  animation-duration: 55s !important; /* 25s -> fast, 55s -> slow */
}

.hf-feed.hf-ads-wrap {
    padding: 10px 0px;
    border: none;
}

.hf-rx-box .hf-rx-icons span.hf-rx-iwrap:last-child {
    display: none;
}

/* ✅ NEW: Book of the Damned story clamp (3 lines) */
.hf-clamp3{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
