/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.has-custom-bg::before,
body.has-custom-bg::after {
  display: none;
}

body.has-custom-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.has-custom-bg .hero-overlay-custom {
  display: block;
}

.hero-overlay-custom {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
  pointer-events: none;
  z-index: 0;
}

/* Background effects */
body::before {
  content: '';
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, #ffffff23 0%, #ffffff00 60%, transparent 0%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ambientBreath 7s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
  animation: dotDrift 12s ease-in-out infinite;
}

nav,
.landing-section,
.footer,
.content,
.wrapper,
.member-panel {
  position: relative;
  z-index: 1;
}

/* ========== LIGHT THEME ========== */
body[data-theme="light"] {
  background-color: #ffffff;
  color: #000000;
}

body[data-theme="light"] nav {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e5e5e5;
}

body[data-theme="light"] .nameshop h2,
body[data-theme="light"] .sidebar-brand h2 {
  color: #000000;
  background: linear-gradient(to right, #000000, #666666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .search-box {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

body[data-theme="light"] .search-box input {
  color: #000000;
}

body[data-theme="light"] .search-box input::placeholder {
  color: #999;
}

body[data-theme="light"] .nav-link {
  color: #000000;
}

body[data-theme="light"] .nav-btn {
  background: transparent;
  border-color: #e0e0e0;
  color: #000000;
}

body[data-theme="light"] .nav-btn.login {
  background: #000000;
  color: #ffffff;
}

body[data-theme="light"] .theme-toggle {
  border-color: #e0e0e0;
  color: #000000;
}

body[data-theme="light"] .hero-gang-name {
  color: rgba(0, 0, 0, 0.65);
}

body[data-theme="light"] .hero-title {
  background: linear-gradient(to right, #000000, #666666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .hero-description,
body[data-theme="light"] .member-panel-subtitle {
  color: #666;
}

body[data-theme="light"] .member-panel-title,
body[data-theme="light"] .member-list-name {
  color: #000;
}

body[data-theme="light"] .member-panel {
  background: #fff;
  border-color: #e5e5e5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .member-panel-watermark {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .member-list-item {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

body[data-theme="light"] .member-list-item:hover {
  background: #fff;
  border-color: #ccc;
}

body[data-theme="light"] .member-list-meta {
  color: #666;
}

body[data-theme="light"] .member-count-badge {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #444;
}

body[data-theme="light"] .btn-primary {
  background: #000000;
  color: #ffffff;
}

body[data-theme="light"] .btn-secondary {
  background: transparent;
  color: #000000;
  border-color: #e0e0e0;
}

body[data-theme="light"] .footer {
  color: #999;
  border-top-color: #e5e5e5;
  background-color: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"]::before {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.03) 45%, rgba(0, 0, 0, 0) 70%);
}

body[data-theme="light"]::after {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

body[data-theme="light"] .mobile-sidebar {
  background-color: rgba(255, 255, 255, 0.95);
  border-right-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .sidebar-link {
  color: rgba(0, 0, 0, 0.75);
}

body[data-theme="light"] .contact-popup {
  background: #fff;
  border-color: #e5e7eb;
}

body[data-theme="light"] .contact-title {
  color: #111;
}

/* ========== WRAPPER ========== */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.content {
  flex: 1;
}

/* ========== NAVIGATION ========== */
nav {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  gap: 15px;
}

nav.page-enter {
  opacity: 0;
  transform: translateY(-14px);
  animation: navDropIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nameshop {
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
  min-width: 0;
  flex-shrink: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: clamp(28px, 4vw, 36px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.nameshop:hover {
  opacity: 0.8;
}

.nameshop h2 {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-center.pc-only {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0 16px;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  flex-shrink: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link--active {
  color: #ffffff;
}

.sidebar-link--active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  flex-shrink: 0;
}

.search-box {
  background: #111;
  border: 1px solid #333;
  padding: 8px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(120px, 15vw, 240px);
  flex-shrink: 2;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #555;
  background: #1a1a1a;
}

.search-box input {
  border: none;
  background: transparent;
  color: inherit;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #666;
}

.search-box .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-member-search {
  width: clamp(160px, 18vw, 260px);
  flex-shrink: 0;
}

.members-nav-search-mobile {
  display: none;
  padding: 10px clamp(16px, 4vw, 48px) 0;
  max-width: 640px;
  margin: 0 auto;
}

.members-nav-search-mobile .nav-member-search--mobile {
  width: 100%;
}

@media (max-width: 1180px) {
  .members-nav-search-mobile {
    display: block;
  }
}

.nav-btn {
  background: transparent;
  border: 1px solid #333;
  color: white;
  padding: clamp(6px, 1vw, 10px) clamp(12px, 1.5vw, 18px);
  border-radius: 20px;
  cursor: pointer;
  font-size: clamp(12px, 1.1vw, 14px);
  white-space: nowrap;
  font-family: "Kanit", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #111;
  border-color: #555;
}

.nav-btn.login {
  background: #ffffff;
  color: #000000;
  border: none;
}

.nav-btn.login:hover {
  background: #e2e8f0;
}

.theme-toggle {
  background: transparent;
  border: 1px solid #333;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: #111;
  border-color: #555;
}

.mobile-search-btn {
  display: none;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1180px) {
  .nav-center.pc-only {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 479px) {
  .search-box {
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
  }

  .btn-signup {
    display: none;
  }

  .mobile-search-btn {
    display: flex;
  }
}

/* ========== MOBILE / PHONE ========== */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  nav.nav {
    padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    gap: 8px;
  }

  .nav-right {
    gap: 6px;
  }

  .nameshop {
    gap: 8px;
  }

  .nameshop h2 {
    max-width: min(42vw, 160px);
  }

  .nav-btn.login {
    padding: 8px 12px;
    font-size: 12px;
  }

  .landing-section,
  .landing-section--hero-only,
  .landing-section--panel-only {
    min-height: calc(100dvh - 60px);
  }

  .landing-hero .hero-description {
    padding: 0 2px;
    line-height: 1.6;
    word-break: break-word;
  }

  .member-panel {
    padding: 22px 16px;
  }

  .members-page-section,
  .member-detail-section-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .member-row-card,
  .member-grid-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .member-row-thumb,
  .member-grid-thumb {
    width: 54px;
    height: 54px;
  }

  .member-row-thumb {
    border-radius: 10px;
  }

  .member-grid-thumb {
    border-radius: 50%;
  }

  .member-row-title {
    font-size: 0.95rem;
  }

  .member-row-highlight,
  .member-row-meta {
    font-size: 0.8rem;
  }

  .member-detail-tags {
    gap: 6px;
  }

  .member-detail-tag {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .contact-popup {
    width: min(calc(100vw - 24px), 420px);
    max-height: min(85dvh, 560px);
  }

  .footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .mini-player {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: max(14px, env(safe-area-inset-right));
    max-width: calc(100vw - 28px);
  }

  .mini-title {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .music-player {
    width: min(calc(100vw - 24px), 360px);
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .nav-btn.login {
    padding: 8px;
    min-width: 38px;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }

  .nav-btn.login i {
    font-size: 18px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .mobile-menu-btn {
    width: 34px;
    height: 34px;
  }

  .hero-logo {
    width: min(72vw, 220px);
  }
}

/* ========== LANDING (HERO + MEMBER PANEL) ========== */
.landing-section--hero-only {
  min-height: calc(100vh - 60px);
}

.landing-inner--hero {
  max-width: 900px;
}

.landing-section--panel-only {
  min-height: calc(100vh - 60px);
  align-items: center;
}

.landing-section--panel-only .landing-inner {
  max-width: 480px;
}

.landing-section {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 48px) clamp(16px, 4vw, 40px) clamp(40px, 6vh, 64px);
}

.landing-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 40px);
}

.landing-hero {
  text-align: center;
}

.hero-logo {
  width: clamp(160px, 42vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.12));
}

.hero-gang-name {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.landing-hero .hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 12px;
}

.landing-hero .hero-description {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  margin-bottom: 24px;
}

.landing-hero .status-badge {
  margin-bottom: 16px;
}

.landing-hero .hero-buttons {
  justify-content: center;
}

/* Member panel — matches login auth-card */
.member-panel {
  background-color: #080808;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  isolation: isolate;
  scroll-margin-top: 76px;
}

.member-panel-watermark {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 14vw, 6rem);
  font-weight: 900;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.165) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.member-panel-content {
  position: relative;
  z-index: 1;
}

.member-panel-header {
  text-align: center;
  margin-bottom: 28px;
}

.member-panel-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.member-panel-subtitle {
  font-size: 0.88rem;
  color: #888;
  font-weight: 300;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0f0f0f;
  border: 1px solid #262626;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  font-family: "Kanit", sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.member-list-item:hover {
  background: #141414;
  border-color: #444;
  transform: translateY(-1px);
}

.member-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

.member-list-info {
  flex: 1;
  min-width: 0;
}

.member-list-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #fff;
}

.member-list-meta {
  font-size: 0.78rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-count-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #888;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.member-list-arrow {
  font-size: 1.25rem;
  color: #555;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.member-list-item:hover .member-list-arrow {
  color: #fff;
  transform: translateX(2px);
}

.member-list-item:hover .member-count-badge {
  border-color: rgba(255, 255, 255, 0.2);
  color: #aaa;
}

.member-list-empty {
  color: #666;
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
  border: 1px dashed #262626;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .member-count-badge {
    display: none;
  }

  .member-panel-watermark {
    font-size: 4rem;
    top: -12px;
  }
}

/* Legacy hero (unused) */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 100px) clamp(20px, 5vw, 80px);
  min-height: calc(80vh - 60px);
}

.hero-content {
  max-width: 900px;
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  color: #22c55e;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  animation: badgeGlow 3s ease-in-out infinite;
}

.status-dot {
  width: clamp(6px, 0.8vw, 8px);
  height: clamp(6px, 0.8vw, 8px);
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: clamp(15px, 2vh, 25px);
  background: linear-gradient(to right, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-description {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: #999;
  margin-bottom: clamp(30px, 4vh, 45px);
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: clamp(12px, 2vw, 18px);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: clamp(12px, 1.5vw, 16px) clamp(24px, 3vw, 36px);
  border-radius: 12px;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: "Kanit", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  background: #e0e0e0;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: #111;
  border-color: #555;
}

.hero-buttons .btn-secondary {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ========== FOOTER ========== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  width: 100%;
  color: #999;
  font-size: clamp(11px, 1.1vw, 13px);
  border-top: 1px solid #262626;
  background-color: rgba(0, 0, 0, 0.95);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-report-link {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-report-link:hover {
  color: #fff;
  text-decoration: underline;
}

.robinz-link {
  font-weight: 500;
  color: #c4c4c4;
  transition: color 0.3s ease;
}

.robinz-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px 5%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
  }
}

/* ========== REVEAL ANIMATIONS ========== */
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes revealFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.reveal.active {
  animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-fade {
  opacity: 0;
  will-change: opacity;
}

.reveal-fade.active {
  animation: revealFade 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .hero-animate-item,
  .hero-logo.hero-logo-glow,
  .list-item-animate,
  .panel-enter,
  nav.page-enter,
  .mini-player {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  body::before,
  body::after {
    animation: none !important;
  }
}

/* ========== PAGE ANIMATIONS ========== */
@keyframes ambientBreath {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes dotDrift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.25); }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes listItemIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes miniPlayerIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-animate .hero-animate-item {
  opacity: 0;
}

.hero-animate.is-ready .hero-animate-item {
  animation: heroItemIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate.is-ready .hero-animate-item:nth-child(1) { animation-delay: 0.08s; }
.hero-animate.is-ready .hero-animate-item:nth-child(2) { animation-delay: 0.18s; }
.hero-animate.is-ready .hero-animate-item:nth-child(3) { animation-delay: 0.28s; }
.hero-animate.is-ready .hero-animate-item:nth-child(4) { animation-delay: 0.38s; }
.hero-animate.is-ready .hero-animate-item:nth-child(5) { animation-delay: 0.48s; }

.hero-animate.is-ready .hero-animate-item.hero-logo-glow {
  animation:
    heroItemIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards,
    logoFloat 4s ease-in-out 1.1s infinite;
}

.panel-enter {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}

.panel-enter.is-visible {
  animation: panelIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.member-panel-watermark {
  animation: watermarkShimmer 6s ease-in-out infinite;
}

@keyframes watermarkShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

.list-item-animate {
  opacity: 0;
  animation: listItemIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--stagger-delay, 0s);
}

.mini-player.show,
.mini-player:not(.hidden) {
  animation: miniPlayerIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* ========== MOBILE SIDEBAR ========== */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 250px;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10001;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-sidebar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.close-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.sidebar-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-divider {
  padding: 16px 20px 8px;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== CONTACT MODAL ========== */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.contact-overlay.active {
  background: rgba(0, 0, 0, 0.55);
}

.contact-popup {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(-8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.contact-popup.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #2a2a2a;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.contact-subtitle {
  font-size: 0.8rem;
  color: #666;
  margin: 2px 0 0;
}

.contact-close-btn {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.contact-close-btn:hover {
  background: #222;
  color: #fff;
}

.contact-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
}

.contact-channel-item:hover {
  background: #1a1a1a;
  border-color: #444;
}

.ch-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ch-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ch-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.ch-url {
  font-size: 0.8rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-arrow {
  color: #666;
  flex-shrink: 0;
}

/* ========== MUSIC PLAYER ========== */
.mini-cover-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.mini-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mini-player {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  cursor: pointer;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.mini-player:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
}

.bgm-tap-play {
  position: fixed;
  bottom: 92px;
  right: 30px;
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
  animation: bgmTapPulse 2s ease-in-out infinite;
}

.bgm-tap-play.show {
  display: inline-flex;
}

.bgm-tap-play i {
  font-size: 1.25rem;
  line-height: 1;
}

.bgm-tap-play:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
}

@keyframes bgmTapPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12); }
}

@media (max-width: 640px) {
  .bgm-tap-play {
    right: 16px;
    bottom: 84px;
    max-width: calc(100vw - 32px);
  }
}

.sound-wave {
  position: absolute;
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.sound-wave span {
  width: 3px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}

.sound-wave span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mini-info {
  color: white;
}

.mini-label {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mini-title {
  font-size: 14px;
  font-weight: 600;
}

.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 24px;
  color: white;
  z-index: 10000;
  padding: 16px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.music-player.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.music-player.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.mini-player.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.9);
  transition: all 0.3s ease;
}

.mini-player.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
}

.player-body {
  margin-top: 16px;
}

.player-main-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.album-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-container input[type=range] {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, white 0%, #333 0%);
  border-radius: 999px;
  appearance: none;
  outline: none;
  margin-top: 12px;
}

.progress-container input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 0;
  height: 0;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.6;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.controls button {
  background: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.8;
}

.blink-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 3s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.volume-container input[type=range] {
  width: 90px;
  height: 4px;
  background: linear-gradient(to right, white 50%, #333 50%);
  border-radius: 999px;
  appearance: none;
  outline: none;
}

.volume-container input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 0;
  height: 0;
}

@media (max-width: 480px) {
  .mini-player {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px;
  }

  .music-player {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
  }
}

.members-page-section {
  padding: clamp(32px, 5vh, 64px) clamp(20px, 5vw, 64px) clamp(48px, 8vh, 80px);
}

.members-page-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.members-page-inner .member-panel {
  width: 100%;
}

.members-page-inner .member-panel-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vh, 32px);
}

.members-page-inner .member-panel-content .members-grid {
  width: 100%;
}

.members-page-header {
  text-align: center;
  position: relative;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.members-page-watermark {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 14vw, 6rem);
  font-weight: 900;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.165) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.members-page-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.members-page-subtitle {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 24px;
}

.members-search-box {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 10px 16px;
}

.members-search-box:focus-within {
  border-color: #555;
  background: #1a1a1a;
}

.members-search-box i {
  color: #666;
  font-size: 1.1rem;
}

.members-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-family: "Kanit", sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.members-search-box input::placeholder {
  color: #666;
}

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

.members-grid-empty,
.members-row-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  padding: 48px 16px;
  border: 1px dashed #262626;
  border-radius: 12px;
  font-size: 0.95rem;
}

.member-grid-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
  font-family: "Kanit", sans-serif;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.member-grid-card:hover {
  background: #1a1a1a;
  border-color: #404040;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.member-grid-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-grid-initials {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.member-grid-body {
  flex: 1;
  min-width: 0;
}

.member-grid-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-grid-role {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .member-grid-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .member-grid-thumb {
    width: 42px;
    height: 42px;
  }

  .member-grid-name {
    font-size: 0.85rem;
  }

  .member-grid-role {
    font-size: 0.62rem;
  }
}

@media (max-width: 400px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

.members-row-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member-row-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
  font-family: "Kanit", sans-serif;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.member-row-card:hover {
  background: #161616;
  border-color: #404040;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.member-row-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-row-initials {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.member-row-body {
  flex: 1;
  min-width: 0;
}

.member-row-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row-highlight {
  font-size: 0.88rem;
  color: #60a5fa;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #666;
}

.member-row-meta i {
  font-size: 0.85rem;
}

.member-row-meta-sep {
  opacity: 0.5;
}

.member-row-arrow {
  font-size: 1.35rem;
  color: #555;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.member-row-card:hover .member-row-arrow {
  color: #fff;
  transform: translateX(2px);
}

/* Member detail page */
.member-detail-section-wrap {
  padding: clamp(24px, 4vh, 48px) clamp(16px, 4vw, 40px) clamp(48px, 8vh, 80px);
}

.member-detail-inner {
  max-width: 720px;
  margin: 0 auto;
}

.member-detail-card {
  background: #0f0f0f;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 28px);
}

.member-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #888;
  font-family: "Kanit", sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
}

.member-detail-back:hover {
  color: #fff;
}

.member-detail-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #262626;
}

.member-detail-avatar {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-detail-role {
  font-size: 0.78rem;
  color: #60a5fa;
  font-weight: 500;
  margin-bottom: 4px;
}

.member-detail-name {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.member-detail-meta {
  font-size: 0.78rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-detail-section {
  margin-bottom: 22px;
}

.member-detail-section:last-child {
  margin-bottom: 0;
}

.member-detail-section h2 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-detail-section h2 i {
  opacity: 0.7;
}

.member-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-detail-tag {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #93c5fd;
}

.member-detail-tag-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.member-detail-tag-link:hover {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

.member-detail-tag-link i {
  font-size: 0.75rem;
  opacity: 0.85;
}

.member-detail-tag--donate {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.member-detail-tag--donate.member-detail-tag-link:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.member-detail-text {
  font-size: 0.92rem;
  color: #bbb;
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 0;
}

.member-detail-muted {
  color: #666;
  font-size: 0.88rem;
  margin: 0;
}

.member-detail-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.92rem;
}

.member-detail-fb:hover {
  text-decoration: underline;
}

.member-detail-empty {
  text-align: center;
  padding: 48px 16px;
}

.member-detail-empty .btn-secondary {
  margin-top: 16px;
}

body[data-theme="light"] .members-page-title,
body[data-theme="light"] .member-row-title,
body[data-theme="light"] .member-grid-name,
body[data-theme="light"] .member-detail-name {
  color: #000;
}

body[data-theme="light"] .members-page-subtitle {
  color: #666;
}

body[data-theme="light"] .members-search-box {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

body[data-theme="light"] .members-search-box input {
  color: #000;
}

body[data-theme="light"] .member-row-card,
body[data-theme="light"] .member-grid-card {
  background: #fff;
  border-color: #e5e5e5;
}

body[data-theme="light"] .member-row-card:hover,
body[data-theme="light"] .member-grid-card:hover {
  background: #fafafa;
  border-color: #ccc;
}

body[data-theme="light"] .member-detail-card {
  background: #fff;
  border-color: #e5e5e5;
}

body[data-theme="light"] .member-detail-text {
  color: #444;
}

@media (max-width: 520px) {
  .member-detail-hero {
    flex-direction: column;
    text-align: center;
  }

  .member-detail-meta {
    justify-content: center;
  }
}

.yt-player-host {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
