/* 7ds Origin Tier List */

.dso-tierlist-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 20px;
}

.dso-mode-btn {
  padding: 14px 32px;
  background: #212126;
  border: 1px solid #32323e;
  border-radius: 8px;
  color: #d1d1d1;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dso-mode-btn:hover {
  background: #2a2a30;
  color: #fff;
}

.dso-mode-btn.active {
  background: #7a5af8a1;
  border-color: #7a5af8a1;
  color: #fff;
}

.dso-tierlist-simple {
  margin-top: 0;
}

.dso-tierlist-advanced {
  margin-top: 0;
}

#dso-tierlist-filters {
  margin-top: 24px;
  margin-bottom: 24px;
}

.dso-simple-card .dso-tierlist-card-avatar {
  /* Simple cards: no badges */
}

.dso-tierlist {
  width: 100%;
}

.dso-tierlist-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
  background: #141417;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a30;
}

.dso-tierlist-tier-label {
  min-width: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  padding: 12px 8px;
}

.dso-tierlist-tier-label.tier-s { background: #e53935; }
.dso-tierlist-tier-label.tier-a { background: #f44336; }
.dso-tierlist-tier-label.tier-b { background: #ff9800; }
.dso-tierlist-tier-label.tier-c { background: #ffc107; }
.dso-tierlist-tier-label.tier-d { background: #8bc34a; }

.dso-tierlist-cards {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
}

.dso-tierlist-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
  border-radius: 2px;
}

.dso-tierlist-card.dso-filtered-out {
  display: none !important;
}

.dso-tierlist-row.dso-tier-row-hidden {
  display: none !important;
}

.dso-tierlist-card:hover {
  transform: scale(1.05);
}

.dso-tierlist-card-avatar {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: 2px;
  overflow: hidden;
  background: #2c2d35;
  border: 2px solid #32323e;
}

.dso-tierlist-card-avatar.Character-SSR {
  background: linear-gradient(160deg, #6e4c42 0%, #e0c870 65%);
}

.dso-tierlist-card-avatar.Character-SR {
  background: linear-gradient(160deg, #2d2f4d 0%, #7a5af8 65%);
}

.dso-tierlist-card-avatar.Character-R {
  background: linear-gradient(160deg, #2d3d4d 0%, #87ceeb 65%);
}

.dso-tierlist-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dso-tierlist-card-badges {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.6);
  padding: 0;
}

.dso-tierlist-card-badges img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  padding: 1px;
  display: block;
}

.dso-tierlist-card-name {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8e8e8;
  text-align: center;
  line-height: 1.2;
}

.dso-tierlist-card-weapon {
  font-size: 0.75rem;
  color: #a0a3ad;
  text-align: center;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .dso-tierlist-card {
    width: 90px;
  }
  .dso-tierlist-card-avatar {
    width: 72px;
    height: 72px;
  }
  .dso-tierlist-card-badges img {
    width: 16px;
    height: 16px;
  }
  .dso-tierlist-card-name {
    font-size: 0.85rem;
  }
}
