.tierlist-container {
  max-width: 1200px;
  margin: 0px auto;
  padding: 0 10px 20px 10px;
}

.tierlist-container h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #f9f9f9;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ========================
   Filter Container
======================== */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 30px;
  align-items: center;
}

/* แต่ละกลุ่ม Filter (ดาว / โหมด) */
.filter-group {
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-bottom: 10px;
}

.filter-group h3 {
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background-color: #1f2937;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
  transition: all 0.2s;
}

.filter-group select:hover,
.filter-group select:focus {
  background-color: #2c3e50;
  outline: none;
}

.filter-group select option {
  background-color: #1f2937;
  color: #fff;
}


/* ========================
   Tier List Rows
======================== */
.tierlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px;
}

.tier-row {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  gap: 1px;
  padding: 5px;
  border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.2);
  position: relative;
}

/* ========================
   Tier Labels
======================== */
.tier-label {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffffffe6;
  padding: 0 10px;
  text-shadow: 0px 5px 3px rgba(0,0,0,0.809);
  z-index: 10;
}

/* ========================
   Tier Colors
======================== */
[data-tier="ULTIMATE"] .tier-content { background: rgba(185,58,43,0.75); }
[data-tier="SSS"] .tier-content      { background: rgba(209,143,47,0.75); }
[data-tier="SS"]  .tier-content      { background: rgba(219,170,69,0.75); }
[data-tier="S"]   .tier-content      { background: rgba(229,193,107,0.75); }

[data-tier="AAA"] .tier-content      { background: rgba(155,89,182,0.75); }
[data-tier="AA"]  .tier-content      { background: rgba(171,124,207,0.75); }
[data-tier="A"]   .tier-content      { background: rgba(193,164,229,0.75); }

[data-tier="BBB"] .tier-content      { background: rgba(39,174,96,0.75); }
[data-tier="BB"]  .tier-content      { background: rgba(88,199,140,0.75); }
[data-tier="B"]   .tier-content      { background: rgba(141,213,179,0.75); }


.made-progress[data-tier="ULTIMATE"] { background: rgba(185,58,43,0.75); }
.made-progress[data-tier="SSS"]      { background: rgba(209,143,47,0.75); }
.made-progress[data-tier="SS"]       { background: rgba(219,170,69,0.75); }
.made-progress[data-tier="S"]        { background: rgba(229,193,107,0.75); }

.made-progress[data-tier="AAA"]      { background: rgba(155,89,182,0.75); }
.made-progress[data-tier="AA"]       { background: rgba(171,124,207,0.75); }
.made-progress[data-tier="A"]        { background: rgba(193,164,229,0.75); }

.made-progress[data-tier="BBB"]      { background: rgba(39,174,96,0.75); }
.made-progress[data-tier="BB"]       { background: rgba(88,199,140,0.75); }
.made-progress[data-tier="B"]        { background: rgba(141,213,179,0.75); }


.center1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  min-width: 0%;
  max-width: 100%; 
  margin: 0 auto; 
  padding: 10px;
  gap: 10px;
}
@media (min-width: 1100px) {
  .center1 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.center2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  width: 100%;
}
.start1 {
  box-sizing: border-box;
  padding: 10px;
  margin: 0;
}

.mode-line {
  display: flex;
  flex-direction: column;
  align-items: stretch; 
  margin-bottom: 6px;
}

.tier-single-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /* max-width: 1300px; */
  box-sizing: border-box;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding-top: 5px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
}

.made-bar {
  width: 100%;
  height: 20px;
  border-radius: 6px;
  background: rgba(100,100,100,0.3);
  position: relative;
  overflow: hidden;
}

.made-progress {
  height: 100%;
  border-radius: 6px;
  transition: width 1.2s ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
}

.card {
  display: flex;
  flex-direction: column;
  width: 108px;
  box-sizing: border-box;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  border-radius: 12px;
  padding-top: 10px;
  padding-right: 10px;
  padding-left: 10px;
  justify-content: center;
  text-align: center;
}

.tier-allmode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}


.skill-box-empty {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-style: italic;
}

.skill-box-empty .skill-icon {
  width: 48px;
  opacity: 0.5;
  margin-bottom: 8px;
}