/* Container */
.btr-container{ margin:6px 0; }

/* Ordered list */
.btr-list{
  list-style:none;
  counter-reset:btr-rank;
  margin:0 !important;
  padding:0;
}

/* Row item */
.btr-item{
  position:relative;
  display:grid;
  grid-template-columns: 48px 1fr; /* avatar + content */
  gap:8px;
  align-items:center;
  background:#222;
  border-radius:6px;
  padding:6px 8px;              /* tighter top/bottom */
  margin:4px 0;
  box-shadow:0 4px 10px rgba(0,0,0,.5);
  transition:transform .2s ease-out, background-color .3s ease;
  overflow:hidden;
}
.btr-item:hover{ background:#313131; transform:scale(1.02); }

/* Reserve right space when prize is shown */
.btr-item.has-prize{ padding-right:96px; } /* leaves room for the badge */

/* Medal borders for top 3 */
.btr-item[data-rank="1"]{ border:1px solid rgba(255,215,0,.35); }
.btr-item[data-rank="2"]{ border:1px solid rgba(192,192,192,.30); }
.btr-item[data-rank="3"]{ border:1px solid rgba(205,127,50,.30); }

/* Stars in top-right */
.btr-item[data-rank="1"]::after,
.btr-item[data-rank="2"]::after,
.btr-item[data-rank="3"]::after{
  content:"★";
  position:absolute;
  top:0px;
  right:6px;
  font-size:14px;
  opacity:.95;
  z-index:3;
}
.btr-item[data-rank="1"]::after{ color:#ffd700; }
.btr-item[data-rank="2"]::after{ color:#c0c0c0; }
.btr-item[data-rank="3"]::after{ color:#cd7f32; }

/* Gamdom prize badge (absolute, under the star) */
.btr-prize{
  position:absolute;
  top:18px;                     /* sits under the star */
  right:6px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:20px;
  padding:0 6px;
  border-radius:6px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
  z-index:3;
  transform:translateZ(0);
}
.btr-prize:hover{ background:rgba(0,0,0,.5); text-decoration:none; }
.btr-prize-logo{
  height:14px; width:auto; display:block;
  filter:drop-shadow(0 0 2px rgba(0,0,0,.4));
}
.btr-prize-amt{
  color:#fff; font-weight:700; font-size:12px; line-height:1;
}

/* Avatar */
.btr-avatar{ display:block; border-radius:4px; overflow:hidden; }
.btr-avatar-img{ width:48px; height:48px; border-radius:4px; display:block; }

/* Content */
.btr-content{ min-width:0; display:flex; flex-direction:column; gap:2px; }

/* Title (username) */
.btr-title{
  margin:0;
  color:#fff;
  font-weight:600;
  font-size:16px;
  line-height:1.15;
  text-decoration:none;
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.btr-title:hover{ color:#fff; text-decoration:underline; }

/* Meta row: count + score badge */
.btr-meta{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  line-height:1.2;
  color:#adadad;
}

/* Count + label as one inline group */
.btr-countwrap{
  display:inline-flex;
  align-items:baseline;
  gap:2px;
  white-space:nowrap;
}
.btr-count{ font-weight:700; color:#fff; }
.btr-count-label{ color:#cfcfcf; }

.btr-ineligible{
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  color:#f0c14a;
}

/* Score badge (small, labeled) */
.btr-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:15px;
  padding:0 1px;
  border-radius:3px;
  font-weight:700;
  font-size:11px;
  line-height:1;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.btr-badge-label{ color:#eaeaea; opacity:.95; margin-right:4px; }
.btr-badge-num{ color:#fff; }
.btr-badge--high{ background:rgba(92,255,159,.12); border-color:rgba(92,255,159,.22); }
.btr-badge--mid{  background:rgba(255,215,0,.10);  border-color:rgba(255,215,0,.20); }
.btr-badge--low{  background:rgba(255,107,107,.12); border-color:rgba(255,107,107,.22); }
.btr-badge--none{ opacity:.75; }

/* Latest review row */
.btr-latest{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  line-height:1.2;
  color:#bdbdbd;
  min-width:0;
}
.btr-latest-label{
  padding:0 6px;
  background:rgba(255,255,255,.06);
  border-radius:4px;
  color:#d9d9d9;
}
.btr-latest-link{
  color:#fff;
  text-decoration:none;
  display:inline-block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.btr-latest-link:hover{ color:#fff; text-decoration:underline; }

/* Disclaimer under the list */
.btr-disclaimer{
  margin-top:6px;
  font-size:12px;
  color:#bdbdbd;
}
.btr-disclaimer a{ color:#fff; text-decoration:none; }
.btr-disclaimer a:hover{ text-decoration:underline; color:#fff; }

/* Empty state – clean center card */
.btr-item.btr-empty{
  display:flex;                 /* override grid */
  align-items:center;
  justify-content:center;
  padding:14px 12px;
  margin:6px 0;
  background:linear-gradient(135deg,#232323,#171717);
  border-radius:8px;
  border:1px dashed rgba(255,255,255,.14);
  box-shadow:0 4px 10px rgba(0,0,0,.55);
}

/* Inner layout */
.btr-empty-inner{
  text-align:center;
  margin:0 auto;
}

/* On wider screens, keep it on one line if there's room */
@media (min-width:480px){
  .btr-empty-title{
    white-space:nowrap;
  }
}

/* Title text */
.btr-empty-title{
  font-size:14px;
  font-weight:600;
  color:#ffffff;
  margin-bottom:3px;
}

/* Subline */
.btr-empty-sub{
  font-size:12px;
  color:#c7c7c7;
  opacity:.95;
}

/* Mobile tweaks */
@media (max-width:480px){
  .btr-title{ font-size:15px; }
  .btr-latest{ font-size:11.5px; }
  .btr-item.has-prize{ padding-right:84px; }
  .btr-prize{ top:18px; right:6px; height:18px; gap:4px; }
  .btr-prize-logo{ height:12px; }
  .btr-prize-amt{ font-size:11px; }
}