body {
  margin: 0;
  background: #05040A;
  color: white;
  font-family: sans-serif;
}

.layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #0D0A21;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: 0.2s ease;
}

.menu-item img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}

.menu-item:hover,
.menu-item.active {
  background-color: #5752EC;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 45px;
  height: 45px;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(135deg, #f5f5f5 0%, #d6d6d6 30%, #a8b0b8 50%, #eaeaea 70%, #c2c8cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.main {
  flex: 1;
  margin-left: 240px;
  padding: 20px;
  overflow-y: auto;
  background-color: #05040A;
}

#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
  padding-left: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background-color: #111;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
  color: white;
}

.filter-btn img {
  width: 26px;
  height: 26px;
  display: block;
}

.filter-btn.active {
  background-color: #333;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.filter-btn.active img {
  outline: none;
  transform: scale(1.05);
}

.filter-label {
  font-size: 13px;
  white-space: nowrap;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: flex-start;
  padding-left: 10px;
  padding-right: 10px;
  align-items: stretch;
}

.character-card {
  width: 120px;
  display: flex;
  background-color: #9D632E;
  flex-direction: column;
  flex-shrink: 0;
  margin: 10px;
  text-decoration: none;
  color: white;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease-in-out;
  text-align: center;
  position: relative;
}

.character-img-wrapper {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
}

.character-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.character-name {
  text-align: center;
  background: white;
  color: black;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
}

.harmony-badges {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.harmony-badges img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  padding: 2px;
}
