/* ---------------------------
   Page wrapper / title
--------------------------- */
.rareplayoffs-wrap{
  max-width: 80%;
  margin: 0 auto;
  padding: 12px 16px 40px;
  text-align: center;
}

.rareplayoffs-title{
  font-family: inherit;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 42px;
  margin: 8px 0 4px;
  opacity: .95;
}

.rareplayoffs-sub{
  margin: 0 0 10px;
  opacity: .85;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------------------------
   Controls (single row)
--------------------------- */
.rareplayoffs-controls{
  display: flex;
  flex-wrap: wrap;           /* 1 ligne */
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
}

.rareplayoffs-controls > div{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rareplayoffs-controls label{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .9;
  margin: 0;
}

.rareplayoffs-controls select,
.rareplayoffs-controls input[type="number"]{
  height: 34px;
  padding: 4px 10px;
  border-radius: 10px;
}

/* checkboxes alignment */
.rareplayoffs-controls input[type="checkbox"]{
  transform: translateY(1px);
}

/* Big Apply button */
.rareplayoffs-controls .btn{
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  font-size:1.5rem;
}

/* If screen too small, allow wrap */
@media (max-width: 1100px){
  .rareplayoffs-controls{
    flex-wrap: wrap;
  }
}

/* ---------------------------
   Hide these controls if present
   (Top rare + Replays/Pokémon)
   Option A: add these classes in template
--------------------------- */
.rareplayoffs-controls .rp-hide{
  display: none !important;
}

/* Option B: even if you don't add rp-hide classes,
   we can hide by label "Top rare" etc. but it's fragile,
   so prefer rp-hide. */

/* ---------------------------
   Sticky Pokémon header + list
--------------------------- */

/* Sticky killers fix */
.rareplayoffs-wrap,
#rp-root,
.rp-group{
  overflow: visible !important;
  position: relative;
}

/* group spacing: tighter so header is close to cards */
.rp-group{
  margin: 10px 0 18px;
}

/* Remove UL bullets + left indent */
.rp-list{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 6px 0 0 !important;   /* close to header */
}

/* Sticky separator */
.rp-sticky{
  position: -webkit-sticky;
  position: sticky;
  top: 86px;                    /* ajuste si ta topbar est différente */
  z-index: 9999;

  text-align: left;

  padding: 10px 12px 8px;
  border-radius: 12px;

  backdrop-filter: blur(6px);
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
  width: fit-content;
}

/* Header line: icon + name on same row */
.rp-sticky .rp-headline{
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-sticky img{
  width: 60px;
  height: 60px;
}

.rp-sticky .rp-name{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}

/* Count just below, tighter and closer to cards */
.rp-sticky .rp-count{
  margin-top: 4px;
  opacity: .85;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  line-height: 1.1;
}

/* ---------------------------
   Optional: reduce gap between sticky and first card
--------------------------- */
.rp-list > li:first-child{
  margin-top: 0 !important;
}

.rs-item-v2{
margin:0;
}

.tier-select .tier-select-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 6px;
}

.tier_to_select
{
    max-width:40%
}

/* Tier dropdown: options en grille 2 colonnes */
.js-tier-select[data-cols="2"] .js-tier-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
}

/* Important : évite que les items forcent une largeur cheloue */
.js-tier-select[data-cols="2"] .js-tier-options > * {
  min-width: 0;
}
