* {
  box-sizing: border-box;
}

:root {
  --red: #b9142c;
  --red-deep: #8f0f22;
  --gold: #c89a25;
  --ink: #22232a;
  --muted: #6f7180;
  --line: rgba(91, 82, 77, 0.12);
  --white: #ffffff;
  --page: #f8f5f3;
  --shadow: 0 14px 34px rgba(65, 46, 39, 0.08);
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(215, 157, 169, 0.19), transparent 27%),
    radial-gradient(circle at 88% 14%, rgba(224, 193, 123, 0.18), transparent 28%),
    radial-gradient(circle at 74% 82%, rgba(157, 184, 173, 0.16), transparent 31%),
    linear-gradient(135deg, #fbf8f6 0%, #f5f3f7 52%, #f8f4ef 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
}

body::before {
  top: 130px;
  left: -120px;
  background: #eab6c1;
}

body::after {
  right: -100px;
  bottom: 80px;
  background: #d9c48c;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(116, 91, 82, 0.1);
  background: rgba(255, 252, 250, 0.82);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  width: min(1240px, calc(100% - 28px));
  min-height: 58px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  color: #241e1d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.7vw, 35px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-chinese {
  color: var(--red);
}

.brand-dotcom {
  color: var(--gold);
  font-size: 0.64em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: #49434a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid rgba(185, 20, 44, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #c61734, #a60f28);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(185, 20, 44, 0.2);
}

/* Main */

.browse-page {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 58px;
}

.browse-toolbar {
  position: relative;
  display: flex;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(130, 97, 83, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.84),
      rgba(255, 248, 245, 0.72)
    );
  box-shadow: 0 14px 35px rgba(74, 48, 39, 0.07);
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
}

.browse-toolbar::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 4px;
  height: 58px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(var(--red), var(--gold));
}

.toolbar-kicker {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.browse-toolbar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.toolbar-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Filter drawer */

.filter-drawer {
  position: relative;
}

.filter-drawer summary {
  display: inline-flex;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid rgba(109, 87, 78, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  gap: 9px;
  color: #484149;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 9px 22px rgba(61, 44, 38, 0.07);
}

.filter-drawer summary:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 20, 44, 0.24);
  color: var(--red);
}

.filter-drawer summary::-webkit-details-marker {
  display: none;
}

.filter-drawer[open] summary {
  border-color: rgba(185, 20, 44, 0.32);
  color: var(--red);
}

.filter-icon {
  display: inline-flex;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7e7e9, #f4ede1);
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(185, 20, 44, 0.09);
}

.filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: min(760px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(108, 88, 80, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(250, 245, 243, 0.98)
    );
  box-shadow: 0 24px 55px rgba(55, 37, 31, 0.17);
  backdrop-filter: blur(18px);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.filter-form label span {
  display: block;
  margin-bottom: 5px;
  color: #68606a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.filter-form select,
.filter-form input {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(105, 86, 77, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.filter-form select:focus,
.filter-form input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(185, 20, 44, 0.08);
}

.filter-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 3px;
}

.filter-actions button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c61835, #a60f28);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(185, 20, 44, 0.18);
}

.filter-actions button:hover {
  background: linear-gradient(135deg, #ab1129, #850c1f);
}

.filter-actions a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

/* Profile grid */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.member-card {
  --card-a: #fffaf8;
  --card-b: #f7efec;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 83, 76, 0.11);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--card-a), var(--card-b));
  box-shadow: var(--shadow);
  transition:
    transform 190ms ease,
    box-shadow 190ms ease;
}

.member-card:nth-child(5n + 1) {
  --card-a: #fff9f7;
  --card-b: #f8e9eb;
}

.member-card:nth-child(5n + 2) {
  --card-a: #fffdf7;
  --card-b: #f5edd9;
}

.member-card:nth-child(5n + 3) {
  --card-a: #f9fbf8;
  --card-b: #eaf1ec;
}

.member-card:nth-child(5n + 4) {
  --card-a: #fbf9ff;
  --card-b: #eee8f6;
}

.member-card:nth-child(5n + 5) {
  --card-a: #f8fbfd;
  --card-b: #e7eff4;
}

.member-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -36px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(2px);
  pointer-events: none;
}

.member-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(56, 39, 34, 0.13);
}

.member-photo-link {
  position: relative;
  display: block;
  overflow: hidden;
  height: 205px;
  margin: 8px 8px 0;
  border-radius: 13px;
  background: #eceff2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.member-photo-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(22, 17, 16, 0.1));
  pointer-events: none;
}

.member-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.member-card:hover .member-photo {
  transform: scale(1.04);
}

.reviewed-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(30, 24, 25, 0.68);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.015em;
  backdrop-filter: blur(8px);
}

.member-card-body {
  position: relative;
  z-index: 1;
  padding: 14px 14px 15px;
}

.member-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.member-card h2 a {
  text-decoration: none;
}

.member-location {
  margin: 5px 0 11px;
  color: #6f6970;
  font-size: 11px;
}

.member-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.member-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(110, 89, 80, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #5a555d;
  font-size: 9px;
  font-weight: 760;
  backdrop-filter: blur(4px);
}

/* States */

.notice,
.empty-state {
  border: 1px solid rgba(103, 83, 76, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.notice {
  padding: 16px;
}

.notice-error {
  border-color: #e9b8bf;
  background: #fff1f3;
  color: #841727;
}

.empty-state {
  max-width: 560px;
  margin: 36px auto;
  padding: 42px 28px;
  text-align: center;
}

.empty-icon {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 42px;
}

.empty-state h2 {
  margin: 7px 0 8px;
}

.empty-state p {
  margin: 0 0 15px;
  color: var(--muted);
}

.empty-state a {
  color: var(--red);
  font-weight: 800;
}

.pagination {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pagination a,
.pagination span {
  padding: 9px 13px;
  border: 1px solid rgba(105, 85, 76, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #55515b;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(110, 88, 80, 0.1);
  background: rgba(255, 252, 250, 0.76);
  backdrop-filter: blur(12px);
}

.site-footer-inner {
  display: flex;
  width: min(1240px, calc(100% - 28px));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #77717a;
  font-size: 11px;
}

/* Responsive */

@media (max-width: 1100px) {
  .profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    display: block;
    padding: 11px 0;
    text-align: center;
  }

  .site-nav {
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .browse-page {
    width: min(100% - 18px, 1240px);
    padding-top: 18px;
  }

  .browse-toolbar {
    display: block;
    padding: 18px;
  }

  .filter-drawer {
    margin-top: 14px;
  }

  .filter-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .member-photo-link {
    height: 180px;
  }

  .member-card-body {
    padding: 12px;
  }

  .member-card h2 {
    font-size: 17px;
  }

  .site-footer-inner {
    display: block;
    padding: 18px 0;
    text-align: center;
  }

  .site-footer-inner span {
    display: block;
    margin: 4px 0;
  }
}

@media (max-width: 430px) {
  .profile-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .member-photo-link {
    height: 250px;
  }
}
