#fps-earphone-db {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: #1d2433;
  line-height: 1.6;
}

#fps-earphone-db .fpsdb-box {
  max-width: 1050px;
  margin: 0 auto;
}

#fps-earphone-db .fpsdb-title {
  margin: 0 0 12px;
  font-size: 28px;
}

#fps-earphone-db .fpsdb-count {
  margin: 0 0 14px;
  color: #697386;
  font-size: 14px;
}

#fps-earphone-db .fpsdb-note {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #e5d59d;
  border-radius: 8px;
  background: #fff9e8;
  color: #67591f;
  font-size: 13px;
}

#fps-earphone-db .fpsdb-game-wrap,
#fps-earphone-db .fpsdb-custom-wrap {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-game-title,
#fps-earphone-db .fpsdb-custom-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-game-buttons,
#fps-earphone-db .fpsdb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#fps-earphone-db .fpsdb-game-button,
#fps-earphone-db .fpsdb-button,
#fps-earphone-db .fpsdb-small-button {
  border: 1px solid #cfd5df;
  background: #fff;
  color: #1d2433;
  font: inherit;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-game-button,
#fps-earphone-db .fpsdb-button {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-game-button.is-active {
  border-color: #2459c4;
  background: #2459c4;
  color: #fff;
}

#fps-earphone-db .fpsdb-small-button {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-game-explain,
#fps-earphone-db .fpsdb-custom-explain {
  margin: 8px 0 0;
  color: #697386;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-filter-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-filter-label {
  display: block;
  margin-bottom: 5px;
  color: #556070;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-filter-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  background: #fff;
  color: #1d2433;
  font: inherit;
}

#fps-earphone-db .fpsdb-sort-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr);
  gap: 10px;
  margin-bottom: 16px;
}

#fps-earphone-db .fpsdb-sort-label {
  display: block;
  margin-bottom: 5px;
  color: #556070;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-sort-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  background: #fff;
  color: #1d2433;
  font: inherit;
}

#fps-earphone-db .fpsdb-search-wrap {
  margin-bottom: 16px;
}

#fps-earphone-db .fpsdb-search-label {
  display: block;
  margin-bottom: 5px;
  color: #556070;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-search {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  background: #fff;
  color: #1d2433;
  font: inherit;
}

#fps-earphone-db .fpsdb-custom-list {
  margin-top: 12px;
  display: none;
}

#fps-earphone-db .fpsdb-custom-list.is-open {
  display: block;
}

#fps-earphone-db .fpsdb-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f4;
}

#fps-earphone-db .fpsdb-custom-row:last-child {
  border-bottom: 0;
}

#fps-earphone-db .fpsdb-custom-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-custom-controls {
  display: flex;
  gap: 5px;
}

#fps-earphone-db .fpsdb-group-label {
  margin: 12px 0 4px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-table th,
#fps-earphone-db .fpsdb-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

#fps-earphone-db .fpsdb-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9fb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-table tr:last-child td {
  border-bottom: 0;
}

#fps-earphone-db .fpsdb-table-brand {
  display: block;
  color: #697386;
  font-size: 10px;
}

#fps-earphone-db .fpsdb-table-model {
  font-weight: 700;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-table .fpsdb-stars {
  font-size: 13px;
}

#fps-earphone-db .fpsdb-table .fpsdb-detail-value {
  text-align: right;
}

#fps-earphone-db .fpsdb-table .fpsdb-bar {
  min-width: 90px;
}

#fps-earphone-db .fpsdb-list {
  display: none;
  gap: 14px;
}

#fps-earphone-db .fpsdb-card {
  padding: 14px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-brand {
  display: block;
  color: #697386;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-model {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-summary {
  margin: 0 0 10px;
  color: #697386;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-section-title {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-ratings,
#fps-earphone-db .fpsdb-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

#fps-earphone-db .fpsdb-rating,
#fps-earphone-db .fpsdb-detail {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8f9fb;
}

#fps-earphone-db .fpsdb-rating-label,
#fps-earphone-db .fpsdb-detail-label {
  margin-bottom: 4px;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-stars {
  letter-spacing: 1px;
  white-space: nowrap;
  font-size: 15px;
}

#fps-earphone-db .fpsdb-unrated {
  color: #9aa2af;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 4px;
}

#fps-earphone-db .fpsdb-detail-value {
  color: #697386;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#fps-earphone-db .fpsdb-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf0;
}

#fps-earphone-db .fpsdb-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(90, 100, 115, .35);
}

#fps-earphone-db .fpsdb-fill {
  height: 100%;
  border-radius: inherit;
  background: #0e7490;
}

#fps-earphone-db .fpsdb-detail-note {
  margin-top: 10px;
  color: #697386;
  font-size: 11px;
}

#fps-earphone-db .fpsdb-empty {
  padding: 22px;
  border: 1px dashed #cfd5df;
  border-radius: 10px;
  color: #697386;
  text-align: center;
}

#fps-earphone-db .fpsdb-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  padding: 20px;
  overflow-y: auto;
  background: rgba(15, 20, 30, .58);
}

#fps-earphone-db .fpsdb-modal-bg.is-open {
  display: block;
}

#fps-earphone-db .fpsdb-modal {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

#fps-earphone-db .fpsdb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

#fps-earphone-db .fpsdb-modal-title {
  margin: 0;
  font-size: 20px;
}

#fps-earphone-db .fpsdb-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #cfd5df;
  border-radius: 50%;
  background: #fff;
  color: #1d2433;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-modal-body {
  padding: 16px;
}

#fps-earphone-db .fpsdb-detail-section {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #e5e7eb;
}

#fps-earphone-db .fpsdb-detail-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

#fps-earphone-db .fpsdb-detail-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

#fps-earphone-db .fpsdb-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 14px;
}

#fps-earphone-db .fpsdb-detail-row {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8f9fb;
}

#fps-earphone-db .fpsdb-detail-row-label {
  margin-bottom: 4px;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-chip {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2ff;
  color: #23458f;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-detail-list {
  margin: 6px 0 0;
  padding-left: 20px;
}

#fps-earphone-db .fpsdb-detail-link {
  display: inline-block;
  margin: 6px 10px 0 0;
  color: #2459c4;
  font-weight: 700;
  text-decoration: none;
}

#fps-earphone-db .fpsdb-table-model,
#fps-earphone-db .fpsdb-card-model-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2459c4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

#fps-earphone-db .fpsdb-error {
  padding: 14px;
  border: 1px solid #f3b8b2;
  border-radius: 8px;
  background: #fff3f2;
  color: #b42318;
}

@media (max-width: 820px) {
  #fps-earphone-db .fpsdb-filter-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #fps-earphone-db .fpsdb-filter-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-filter-label {
  display: block;
  margin-bottom: 5px;
  color: #556070;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-filter-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  background: #fff;
  color: #1d2433;
  font: inherit;
}

#fps-earphone-db .fpsdb-sort-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #fps-earphone-db .fpsdb-table-wrap {
    display: none;
  }

  #fps-earphone-db .fpsdb-list {
    display: grid;
  }
}

@media (max-width: 600px) {
  #fps-earphone-db .fpsdb-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  #fps-earphone-db .fpsdb-ratings,
  #fps-earphone-db .fpsdb-details {
    grid-template-columns: 1fr;
  }
}

#fps-earphone-db .fpsdb-compare-panel {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-compare-title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-compare-status {
  color: #697386;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-compare-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

#fps-earphone-db .fpsdb-compare-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2ff;
  color: #23458f;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-compare-empty {
  color: #9aa2af;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #556070;
}

#fps-earphone-db .fpsdb-compare-check {
  width: 18px;
  height: 18px;
}


#fps-earphone-db .fpsdb-compare-actions {
  margin-top: 10px;
}

#fps-earphone-db .fpsdb-compare-show {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #2459c4;
  border-radius: 8px;
  background: #2459c4;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-compare-show:disabled {
  border-color: #cfd5df;
  background: #e5e7eb;
  color: #9aa2af;
  cursor: default;
}

#fps-earphone-db .fpsdb-compare-result {
  margin-top: 12px;
}

#fps-earphone-db .fpsdb-compare-result-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-compare-result-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#fps-earphone-db .fpsdb-compare-result-item {
  padding: 9px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8f9fb;
}

#fps-earphone-db .fpsdb-compare-result-name {
  margin-bottom: 4px;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-compare-result-value {
  font-size: 13px;
}

@media (max-width: 700px) {
  #fps-earphone-db .fpsdb-compare-result-row {
    grid-template-columns: 1fr;
  }
}


#fps-earphone-db .fpsdb-compare-grid {
  display: grid;
  gap: 0;
  min-width: 620px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

#fps-earphone-db .fpsdb-compare-grid-head,
#fps-earphone-db .fpsdb-compare-grid-label,
#fps-earphone-db .fpsdb-compare-grid-cell {
  padding: 9px 10px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

#fps-earphone-db .fpsdb-compare-grid-head {
  background: #f8f9fb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-compare-grid-label {
  background: #fbfcfd;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-compare-grid-cell {
  background: #fff;
}

#fps-earphone-db .fpsdb-compare-result {
  overflow-x: auto;
}


#fps-earphone-db .fpsdb-compare-section + .fpsdb-compare-section {
  margin-top: 18px;
}

#fps-earphone-db .fpsdb-compare-note {
  margin-top: 10px;
  color: #697386;
  font-size: 11px;
}


#fps-earphone-db .fpsdb-map-panel {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-map-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-map-host {
  overflow-x: auto;
}

#fps-earphone-db .fpsdb-map-svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

#fps-earphone-db .fpsdb-map-grid {
  stroke: #e3e7ed;
  stroke-width: 1;
}

#fps-earphone-db .fpsdb-map-neutral {
  stroke: #7f8a99;
  stroke-width: 1.5;
}

#fps-earphone-db .fpsdb-map-point {
  fill: #2459c4;
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-map-label {
  fill: #374151;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-map-tick {
  fill: #7b8492;
  font-size: 10px;
}

#fps-earphone-db .fpsdb-map-axis-label {
  fill: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-map-note,
#fps-earphone-db .fpsdb-map-empty {
  margin-top: 8px;
  color: #697386;
  font-size: 11px;
}

#fps-earphone-db .fpsdb-map-empty {
  padding: 18px;
  border: 1px dashed #cfd5df;
  border-radius: 8px;
  text-align: center;
}


#fps-earphone-db .fpsdb-map-point-selected {
  fill: #d92d20;
}

#fps-earphone-db .fpsdb-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -2px 0 8px;
  color: #697386;
  font-size: 11px;
}

#fps-earphone-db .fpsdb-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#fps-earphone-db .fpsdb-map-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2459c4;
}

#fps-earphone-db .fpsdb-map-legend-dot-selected {
  background: #d92d20;
}


#fps-earphone-db .fpsdb-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

#fps-earphone-db .fpsdb-mode-button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #cfd5df;
  border-radius: 999px;
  background: #fff;
  color: #556070;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-mode-button:hover {
  border-color: #9aa6b5;
}

#fps-earphone-db .fpsdb-mode-button.is-active {
  border-color: #2459c4;
  background: #2459c4;
  color: #fff;
}

#fps-earphone-db .fpsdb-mode-panel[hidden] {
  display: none !important;
}


/* v11: table header multi-sort */
#fps-earphone-db .fpsdb-sortable-th {
  min-width: 150px;
}

#fps-earphone-db .fpsdb-sort-header-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-sort-header-label {
  min-width: 0;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-sort-ui {
  display: grid;
  grid-template-columns: 10px 18px;
  align-items: center;
  justify-content: end;
  column-gap: 6px;
  width: 36px;
  min-width: 36px;
}

#fps-earphone-db .fpsdb-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 10px;
  min-width: 10px;
}

#fps-earphone-db .fpsdb-sort-triangle {
  width: 0;
  height: 0;
  opacity: 0.24;
}

#fps-earphone-db .fpsdb-sort-triangle-up {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #667085;
}

#fps-earphone-db .fpsdb-sort-triangle-down {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #667085;
}

#fps-earphone-db .fpsdb-sort-triangle-up.is-active {
  opacity: 1;
  border-bottom-color: #2459c4;
}

#fps-earphone-db .fpsdb-sort-triangle-down.is-active {
  opacity: 1;
  border-top-color: #2459c4;
}

#fps-earphone-db .fpsdb-sort-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

#fps-earphone-db .fpsdb-sort-priority.is-visible {
  background: #edf2ff;
  color: #2459c4;
}

/* 優先順位番号が出ても列幅を変えない */
#fps-earphone-db .fpsdb-table {
  table-layout: fixed;
}

#fps-earphone-db .fpsdb-table th:first-child,
#fps-earphone-db .fpsdb-table td:first-child {
  width: 54px;
}

#fps-earphone-db .fpsdb-table th:nth-child(2),
#fps-earphone-db .fpsdb-table td:nth-child(2) {
  width: 180px;
}


/* v12: list meta / multi-sort summary */
#fps-earphone-db .fpsdb-list-meta {
  margin: 0 0 10px;
}

#fps-earphone-db .fpsdb-list-meta-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
}

#fps-earphone-db .fpsdb-list-count {
  color: #556070;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-sort-reset {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  background: #fff;
  color: #556070;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-sort-reset:hover:not(:disabled) {
  border-color: #9aa6b5;
}

#fps-earphone-db .fpsdb-sort-reset:disabled {
  opacity: 0.45;
  cursor: default;
}

#fps-earphone-db .fpsdb-sort-summary {
  margin-top: 5px;
  color: #697386;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  #fps-earphone-db .fpsdb-list-meta {
    margin-bottom: 8px;
  }
}


/* v13: disabled compare tab */
#fps-earphone-db .fpsdb-mode-button:disabled,
#fps-earphone-db .fpsdb-mode-button.is-disabled {
  border-color: #d9dee6;
  background: #f4f5f7;
  color: #a0a7b2;
  cursor: default;
}

#fps-earphone-db .fpsdb-mode-button:disabled:hover,
#fps-earphone-db .fpsdb-mode-button.is-disabled:hover {
  border-color: #d9dee6;
}


/* v14: seven public FPS rating columns */
#fps-earphone-db .fpsdb-table {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}

#fps-earphone-db .fpsdb-table th:first-child,
#fps-earphone-db .fpsdb-table td:first-child {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
}

#fps-earphone-db .fpsdb-table th:nth-child(2),
#fps-earphone-db .fpsdb-table td:nth-child(2) {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
}

#fps-earphone-db .fpsdb-table th:nth-child(n+3),
#fps-earphone-db .fpsdb-table td:nth-child(n+3) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  box-sizing: border-box;
}

#fps-earphone-db .fpsdb-sortable-th {
  min-width: 180px;
  max-width: 180px;
  overflow: visible;
}

#fps-earphone-db .fpsdb-sort-header-button {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-sort-header-label {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-stars {
  display: inline-block;
  min-width: 6.3em;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: 0;
}

#fps-earphone-db .fpsdb-table td {
  overflow: visible;
}

#fps-earphone-db .fpsdb-table-wrap {
  overflow-x: auto;
}


/* v15: content-based table column widths */
#fps-earphone-db .fpsdb-table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

#fps-earphone-db .fpsdb-table th:nth-child(n+3),
#fps-earphone-db .fpsdb-table td:nth-child(n+3) {
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-sortable-th {
  width: auto;
  min-width: 0;
  max-width: none;
}

#fps-earphone-db .fpsdb-sort-header-button {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-stars {
  display: inline-block;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

/* v15: pagination */
#fps-earphone-db .fpsdb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

#fps-earphone-db .fpsdb-pagination[hidden] {
  display: none !important;
}

#fps-earphone-db .fpsdb-page-button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  background: #fff;
  color: #556070;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-page-button:disabled {
  opacity: 0.4;
  cursor: default;
}

#fps-earphone-db .fpsdb-page-info {
  min-width: 48px;
  text-align: center;
  color: #697386;
  font-size: 12px;
  font-weight: 700;
}


/* v16: product-name column auto width + sticky */
#fps-earphone-db .fpsdb-table th:nth-child(2),
#fps-earphone-db .fpsdb-table td:nth-child(2),
#fps-earphone-db .fpsdb-product-column {
  width: 1%;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-product-column {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}

#fps-earphone-db thead .fpsdb-product-column {
  z-index: 5;
  background: #f8f9fb;
}

#fps-earphone-db tbody tr:hover .fpsdb-product-column {
  background: #f8fafc;
}

/*
  width:1% + nowrap lets the browser shrink this column to the
  minimum width needed by the longest currently rendered product name.
  Because only 10 rows are rendered per page, the width follows those 10 rows.
*/


/* v17: feature tags / detail enhancements */
#fps-earphone-db .fpsdb-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

#fps-earphone-db .fpsdb-feature-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8f9fb;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-feature-tag-primary {
  border-color: #2459c4;
  background: #edf2ff;
  color: #2459c4;
}

#fps-earphone-db .fpsdb-detail-star-grid {
  display: grid;
  gap: 7px;
}

#fps-earphone-db .fpsdb-detail-star-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #eef1f5;
}

#fps-earphone-db .fpsdb-detail-star-label {
  color: #556070;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-detail-star-value {
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#fps-earphone-db .fpsdb-similar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#fps-earphone-db .fpsdb-similar-chip {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f5f8;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-detail-muted {
  color: #8a94a3;
  font-size: 12px;
}

@media (max-width: 600px) {
  #fps-earphone-db .fpsdb-detail-star-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}


/* v17.3: detail screen grouped into FPS and music/sound sections */
#fps-earphone-db .fpsdb-detail-group-title {
  margin: 22px 0 8px;
  padding: 8px 10px;
  border-left: 4px solid #2459c4;
  background: #f4f7fc;
  color: #263246;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

#fps-earphone-db .fpsdb-detail-group-title:first-of-type {
  margin-top: 14px;
}


/* v17.4: compact feature tags in list/table */
#fps-earphone-db .fpsdb-feature-tags-column {
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: normal;
}

#fps-earphone-db .fpsdb-table-feature-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 2px 3px;
  max-height: 34px;
  overflow: hidden;
  line-height: 1;
}

#fps-earphone-db .fpsdb-table-feature-tag {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 1px 4px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8f9fb;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-table-feature-tag.is-primary {
  border-color: #2459c4;
  background: #edf2ff;
  color: #2459c4;
}

#fps-earphone-db .fpsdb-table-feature-empty {
  color: #98a2b3;
  font-size: 11px;
}

#fps-earphone-db .fpsdb-card .fpsdb-table-feature-tags {
  max-height: none;
}


/* v17.7: FPS tone tendency */
#fps-earphone-db .fpsdb-tone-tendency-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf2ff;
  color: #2459c4;
  font-size: 12px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-tone-tendency-description {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}


/* v17.8: playstyle suitability + per-game notes */
#fps-earphone-db .fpsdb-game-note-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #eef1f5;
}

#fps-earphone-db .fpsdb-game-note-label {
  color: #344054;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-game-note-text {
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  #fps-earphone-db .fpsdb-game-note-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}


/* v17.9: game compatibility guidance */
#fps-earphone-db .fpsdb-game-guide {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: #fafbfc;
}

#fps-earphone-db .fpsdb-game-guide-title {
  display: block;
  margin-bottom: 4px;
  color: #344054;
  font-size: 12px;
}

#fps-earphone-db .fpsdb-game-guide p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
}

#fps-earphone-db .fpsdb-game-note-guide {
  margin: 0 0 8px;
  color: #7a8494;
  font-size: 11px;
  line-height: 1.6;
}


/* v18.0: game x player-skill recommendation ordering */
#fps-earphone-db .fpsdb-skill-wrap {
  margin-top: 10px;
}

#fps-earphone-db .fpsdb-skill-buttons {
  margin-bottom: 4px;
}

#fps-earphone-db .fpsdb-skill-button {
  min-width: 82px;
}

/* Manual table sorting/customization was retired in v18.0. */
#fps-earphone-db .fpsdb-sort-ui,
#fps-earphone-db .fpsdb-custom-wrap {
  display: none !important;
}


/* v18.2: compact feature tags without clipping */
#fps-earphone-db .fpsdb-feature-tags-column {
  min-width: 118px;
}

#fps-earphone-db .fpsdb-table-feature-tags {
  gap: 2px 3px;
  max-height: none;
  overflow: visible;
  align-content: center;
}

#fps-earphone-db .fpsdb-table-feature-tag {
  min-height: 14px;
  padding: 1px 3px;
  font-size: 8.5px;
  line-height: 1.1;
}

#fps-earphone-db td.fpsdb-feature-tags-column {
  padding-top: 4px;
  padding-bottom: 4px;
}


/* v18.3: sound profile is now ★1-5 */
#fps-earphone-db .fpsdb-profile-note {
  margin: 0 0 8px;
  color: #7a8494;
  font-size: 11px;
  line-height: 1.55;
}


/* v18.5: restore table-header sorting */
#fps-earphone-db .fpsdb-sort-ui {
  display: grid !important;
}

#fps-earphone-db .fpsdb-custom-wrap {
  display: none !important;
}


/* v18.6: clearly show current game/skill selection */
#fps-earphone-db .fpsdb-game-button.is-active,
#fps-earphone-db .fpsdb-skill-button.is-active {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #fff !important;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-game-button.is-active:hover,
#fps-earphone-db .fpsdb-skill-button.is-active:hover {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #fff !important;
}


/* v18.7: unified game type / player skill selector */
#fps-earphone-db .fpsdb-selection-wrap {
  display: block;
}

#fps-earphone-db .fpsdb-selection-subtitle {
  margin: 9px 0 5px;
  color: #556070;
  font-size: 11px;
  font-weight: 800;
}

#fps-earphone-db .fpsdb-none-buttons {
  margin-top: 7px;
  margin-bottom: 2px;
}

#fps-earphone-db .fpsdb-game-button.is-active,
#fps-earphone-db .fpsdb-skill-button.is-active,
#fps-earphone-db .fpsdb-none-button.is-active {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(36, 89, 196, 0.10);
}

#fps-earphone-db .fpsdb-product-column {
  box-sizing: border-box;
}


/* v18.8: compact fixed product-name column */
#fps-earphone-db .fpsdb-product-column {
  width: 158px !important;
  min-width: 158px !important;
  max-width: 158px !important;
  white-space: normal !important;
  box-sizing: border-box;
}

#fps-earphone-db .fpsdb-table-brand {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#fps-earphone-db .fpsdb-table-model {
  display: -webkit-box !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: normal !important;
  text-align: left;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

/* v18.8: selected condition buttons */
#fps-earphone-db .fpsdb-game-button.is-active,
#fps-earphone-db .fpsdb-skill-button.is-active,
#fps-earphone-db .fpsdb-none-button.is-active {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0 0 1px #2459c4, 0 1px 2px rgba(36, 89, 196, 0.18);
}


/* v18.9: narrower fixed product-name column */
/* v18.58: original 105px product column + 52px image + 9px gap */
#fps-earphone-db .fpsdb-product-column {
  width: 166px !important;
  min-width: 166px !important;
  max-width: 166px !important;
}


/* v18.10: auxiliary listening preference */
#fps-earphone-db .fpsdb-easy-sound-button.is-active {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0 0 1px #2459c4, 0 1px 2px rgba(36, 89, 196, 0.18);
}


/* v18.12: independent price-priority button */
#fps-earphone-db .fpsdb-price-priority-button.is-active {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}


/* v18.13: tone tendency column */
#fps-earphone-db .fpsdb-tone-column {
  min-width: 76px;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-tone-label {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8f9fb;
  color: #556070;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}


/* v18.14: auxiliary options require both game type and skill */
#fps-earphone-db .fpsdb-easy-sound-button.is-disabled,
#fps-earphone-db .fpsdb-price-priority-button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

#fps-earphone-db .fpsdb-selection-required-message {
  margin: 8px 0 2px;
  padding: 7px 9px;
  border: 1px solid #f2c4c4;
  border-radius: 7px;
  background: #fff7f7;
  color: #b33a3a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}


/* v18.15: recommendation-order guidance */
#fps-earphone-db .fpsdb-auto-order-note {
  margin-top: 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.5;
}


/* v18.17: expanded recommendation guidance */
#fps-earphone-db .fpsdb-auto-order-note {
  max-width: 760px;
}


/* v18.19: first-IEM filter */
#fps-earphone-db .fpsdb-first-iem-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-first-iem-check {
  margin: 0;
}


/* v18.20: compare differences */
#fps-earphone-db .fpsdb-compare-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

#fps-earphone-db .fpsdb-compare-diff-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}


/* v18.21: compare difference summary */
#fps-earphone-db .fpsdb-compare-summary {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d9dde5;
  border-radius: 10px;
  background: #f8fafc;
}

#fps-earphone-db .fpsdb-compare-summary-title {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.4;
}

#fps-earphone-db .fpsdb-compare-summary-note {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #667085;
}

#fps-earphone-db .fpsdb-compare-summary-list {
  display: grid;
  gap: 10px;
}

#fps-earphone-db .fpsdb-compare-summary-item {
  padding: 10px 11px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #fff;
}

#fps-earphone-db .fpsdb-compare-summary-name {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

#fps-earphone-db .fpsdb-compare-summary-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

@media (min-width: 700px) {
  #fps-earphone-db .fpsdb-compare-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #fps-earphone-db .fpsdb-compare-summary-list > :only-child,
  #fps-earphone-db .fpsdb-compare-summary-list > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }
}


/* v18.22: condition count, active condition chips, compare-only filter */
#fps-earphone-db .fpsdb-active-conditions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

#fps-earphone-db .fpsdb-active-conditions[hidden] {
  display: none;
}

#fps-earphone-db .fpsdb-active-conditions-label {
  margin-right: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #667085;
}

#fps-earphone-db .fpsdb-active-condition-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d9dde5;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-compare-only-filter.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#fps-earphone-db .fpsdb-compare-only-filter.is-disabled span {
  cursor: not-allowed;
}


/* v18.24: similar-earphone explanation */
#fps-earphone-db .fpsdb-similar-explain {
  margin: 4px 0 10px;
}


/* v18.25: review date in product area */
#fps-earphone-db .fpsdb-table-review-date {
  display: block;
  margin-top: 3px;
  color: #8a94a6;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-review-date {
  margin: -6px 0 10px;
  color: #8a94a6;
  font-size: 11px;
  font-weight: 400;
}


/* v18.27: release timing in detail view */
#fps-earphone-db .fpsdb-release-date {
  font-size: 14px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-release-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.6;
}


/* v18.28: review date in detail view */
#fps-earphone-db .fpsdb-release-review-label {
  margin-top: 10px;
  color: #697386;
  font-size: 11px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-release-review-date {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}


/* v18.29: FPS / music usage mode */
#fps-earphone-db .fpsdb-usage-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
  padding: 5px;
  border: 1px solid #dde2ea;
  border-radius: 12px;
  background: #f8f9fb;
}

#fps-earphone-db .fpsdb-usage-button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #556070;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-usage-button.is-active {
  background: #fff;
  color: #2459c4;
  box-shadow: 0 1px 4px rgba(28, 39, 60, .12);
}

#fps-earphone-db .fpsdb-music-wrap {
  margin-bottom: 14px;
}

#fps-earphone-db .fpsdb-music-buttons {
  flex-wrap: wrap;
}

#fps-earphone-db .fpsdb-music-preference-button,
#fps-earphone-db .fpsdb-music-price-button {
  white-space: nowrap;
}

@media (max-width: 520px) {
  #fps-earphone-db .fpsdb-usage-tabs {
    gap: 5px;
  }

  #fps-earphone-db .fpsdb-usage-button {
    min-height: 40px;
    font-size: 13px;
  }
}


/* v18.31: reliable usage-mode visibility */
#fps-earphone-db .fpsdb-fps-only[hidden],
#fps-earphone-db .fpsdb-fps-filter-only[hidden],
#fps-earphone-db .fpsdb-detail-fps-only[hidden] {
  display: none !important;
}

/* v18.31: avoid double divider at top of compare screen */
#fps-earphone-db.fpsdb-is-compare-mode .fpsdb-mode-tabs {
  border-bottom: 0;
  padding-bottom: 0;
}


/* v18.34: music-mode detail first visible section */
#fps-earphone-db .fpsdb-detail-music-mode .fpsdb-release-section {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}


/* v18.36: guide users to complete game + skill selection */
#fps-earphone-db .fpsdb-next-selection-prompt {
  margin: 6px 0 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-next-selection-prompt[hidden] {
  display: none !important;
}

#fps-earphone-db .fpsdb-game-buttons.is-selection-next {
  padding: 6px;
  border: 1px solid #e0a23a;
  border-radius: 9px;
  background: #fffaf0;
}

#fps-earphone-db .fpsdb-selection-subtitle.is-selection-next {
  color: #8a5a00;
}


/* v18.37: selection prompt directly under subtitle */
#fps-earphone-db .fpsdb-selection-subtitle + .fpsdb-next-selection-prompt {
  margin-top: 4px;
}


/* v18.39: Amazon links */
#fps-earphone-db .fpsdb-affiliate-note {
  margin: 6px 0 0;
  color: #697386;
  font-size: 10px;
  line-height: 1.5;
}

#fps-earphone-db .fpsdb-storefront-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
}

#fps-earphone-db .fpsdb-storefront-text {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
}

#fps-earphone-db .fpsdb-storefront-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  color: #2459c4;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}




/* v18.43: only top comparison names open detail view */
#fps-earphone-db .fpsdb-compare-chip-button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-compare-chip-button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* v18.44: intuitive table column editor */
#fps-earphone-db .fpsdb-table-editor-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 8px;
  padding: 8px 12px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  background: #fff;
  color: #263248;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-table-editor {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #dbe1e9;
  border-radius: 10px;
  background: #f8fafc;
}

#fps-earphone-db .fpsdb-table-editor[hidden] {
  display: none !important;
}

#fps-earphone-db .fpsdb-table-editor-help {
  margin: 0 0 10px;
  color: #5d6879;
  font-size: 11px;
  line-height: 1.6;
}

#fps-earphone-db .fpsdb-editor-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

#fps-earphone-db .fpsdb-editor-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #d9dfe8;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, opacity .15s ease, transform .15s ease;
}

#fps-earphone-db .fpsdb-editor-row.is-dragging {
  opacity: .45;
}

#fps-earphone-db .fpsdb-editor-row.is-drag-over {
  border-color: #5977b8;
  transform: translateY(1px);
}

#fps-earphone-db .fpsdb-editor-drag-handle,
#fps-earphone-db .fpsdb-editor-remove {
  width: 34px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: grab;
  touch-action: none;
}

#fps-earphone-db .fpsdb-editor-drag-handle {
  color: #748096;
  font-size: 20px;
  line-height: 1;
}

#fps-earphone-db .fpsdb-editor-remove {
  color: #8a4750;
  font-size: 20px;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-editor-field-name {
  overflow: hidden;
  padding: 8px 5px;
  color: #263248;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fps-earphone-db .fpsdb-editor-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

#fps-earphone-db .fpsdb-editor-select {
  width: 100%;
  min-width: 0;
}

#fps-earphone-db .fpsdb-editor-add-button,
#fps-earphone-db .fpsdb-editor-reset {
  padding: 8px 11px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  background: #fff;
  color: #263248;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-editor-add-button:disabled {
  opacity: .45;
  cursor: default;
}

#fps-earphone-db .fpsdb-editor-reset {
  margin-top: 10px;
}

#fps-earphone-db .fpsdb-editor-empty {
  padding: 10px;
  border: 1px dashed #cfd5df;
  border-radius: 8px;
  color: #697386;
  font-size: 11px;
}

@media (max-width: 640px) {
  #fps-earphone-db .fpsdb-table-editor-toggle {
    width: 100%;
  }

  #fps-earphone-db .fpsdb-editor-add-row {
    grid-template-columns: 1fr;
  }

  #fps-earphone-db .fpsdb-editor-add-button,
  #fps-earphone-db .fpsdb-editor-reset {
    width: 100%;
  }
}


/* v18.45: FPS recommendation focus selector */
#fps-earphone-db .fpsdb-fps-focus-button.is-active {
  background: #2459c4 !important;
  border-color: #2459c4 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0 0 1px #2459c4, 0 1px 2px rgba(36, 89, 196, 0.18);
}

#fps-earphone-db .fpsdb-fps-focus-button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

#fps-earphone-db .fpsdb-preference-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#fps-earphone-db .fpsdb-preference-buttons .fpsdb-fps-focus-button {
  flex: 1 1 110px;
}

/* v18.51: product thumbnails in table */
#fps-earphone-db .fpsdb-table-product-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}

#fps-earphone-db .fpsdb-table-product-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

#fps-earphone-db .fpsdb-table-image-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  background: #f8f9fb;
  cursor: pointer;
}

#fps-earphone-db .fpsdb-table-image-button:hover {
  border-color: #aeb8c6;
}

#fps-earphone-db .fpsdb-table-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  #fps-earphone-db .fpsdb-table-product-inner {
    gap: 7px;
  }

  #fps-earphone-db .fpsdb-table-image-button {
    width: 44px;
    height: 44px;
    border-radius: 7px;
  }
}

/* v18.58: detail screen image */
#fps-earphone-db .fpsdb-detail-image-wrap {
  width: min(100%, 360px);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  background: #f8f9fb;
}

#fps-earphone-db .fpsdb-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 600px) {
  #fps-earphone-db .fpsdb-detail-image-wrap {
    width: 100%;
    max-width: 320px;
    margin-bottom: 14px;
  }
}

/* v18.59: detail image is shared by FPS and music modes */
#fps-earphone-db .fpsdb-detail-image-common {
  margin-top: 0;
}

#fps-earphone-db .fpsdb-detail-image-common + .fpsdb-detail-section {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #e5e7eb;
}

