/* Main Layout Bar Container */
.xperia-filter-container {
  max-width: 1240px;
  margin: 0 auto 40px auto;
  background-color: #1b1b1b;

  background-image: var(--left-glow), var(--right-glow);

  background-position:
    -150px -150px,
    calc(100% + 150px) calc(100% + 150px);
  background-repeat: no-repeat, no-repeat;
  background-size:
    960.32px 555.95px,
    960.32px 555.95px;

  border-radius: 16px;
  padding: 20px 30px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Inner Layout Alignment */
.xperia-filter-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* "Filter by:" Label Styling */
.xperia-filter-label {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: #ffffff;
  white-space: nowrap;
}

/* Buttons List Wrapper */
.xperia-filter-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Base Inactive Button Framework */
.xperia-filter-btn {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

/* Hover Effect */
.xperia-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

/* --- ACTIVE STATE FIGMA GRADIENT BUTTON --- */
.xperia-filter-btn.active {
  color: #000000 !important;
  font-weight: 500;
  background: linear-gradient(180deg, #2bffc3 0%, #1a9975 100%) !important;
  border-color: transparent !important;
  box-shadow: 0px 4px 15px rgba(43, 255, 195, 0.2);
}

/* --- TABLET & MOBILE RESPONSIVE FIXES --- */
@media screen and (max-width: 1024px) {
  .xperia-filter-container {
    padding: 20px;
  }
  .xperia-filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media screen and (max-width: 767px) {
  .xperia-filter-container {
    background: transparent;
    background-image: none !important;
    padding: 0;
  }
  .xperia-filter-buttons {
    gap: 8px;
  }
  .xperia-filter-btn {
    font-size: 15px;
    padding: 8px 18px;
  }
}
