/* ── TKD Album — Main Stylesheet ── */
/* Martial arts: dark background, gold accent, clean typography */

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1e1e1e;
  --bg-card-hover: #252525;
  --gold: #c9a84c;
  --gold-light: #e8c86a;
  --gold-dark: #a07820;
  --red: #c0392b;
  --red-light: #e74c3c;
  --white: #f5f5f5;
  --gray-100: #e8e8e8;
  --gray-300: #aaaaaa;
  --gray-500: #666666;
  --gray-700: #333333;
  --border: #2e2e2e;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-lg: 14px;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --transition: 0.2s ease;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}

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

.header-logo img {
  width: 40px; height: 40px; object-fit: contain; border-radius: 6px;
}

.site-name-block {
  display: flex; flex-direction: column; gap: 1px;
}

.header-logo .site-name {
  font-size: 14px; font-weight: 700; color: var(--gold);
  line-height: 1.2;
}

.site-subtitle {
  font-size: 11px; color: var(--gray-300); line-height: 1.2;
}

.header-nav {
  display: flex; align-items: center; gap: 8px;
}

.btn-orders {
  color: var(--gray-300); font-size: 13px; text-decoration: none;
  padding: 6px 10px; border-radius: var(--radius); border: 1px solid var(--border);
  transition: all var(--transition); white-space: nowrap;
}
.btn-orders:hover { color: var(--gold); border-color: var(--gold-dark); }

/* ── Quick Preview Popup ── */
.quick-preview {
  display: none; position: fixed; inset: 0; z-index: 1800;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
  padding: 20px;
}
.quick-preview.open { display: flex; }
.quick-preview-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.quick-preview-img {
  max-width: 100%; max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.quick-preview-close {
  position: absolute; top: -44px; right: 0;
  font-size: 28px; color: var(--white); cursor: pointer;
  background: none; border: none; line-height: 1; padding: 8px;
}
.quick-preview-footer {
  margin-top: 10px; text-align: center;
}

/* ── Featured Swiper ── */
.feature-swiper-section {
  padding: 16px 24px 0;
  max-width: 1200px; margin: 0 auto;
}
.feature-swiper-title {
  font-size: 14px; font-weight: 600; color: var(--gold);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.feature-swiper {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/7;
  background: var(--bg-secondary);
}
.feature-swiper-slides { width: 100%; height: 100%; }
.feature-slide {
  display: none; width: 100%; height: 100%;
  cursor: pointer;
}
.feature-slide.active { display: block; }
.feature-slide img { width: 100%; height: 100%; object-fit: cover; }
.feature-slide-fade { animation: fadeIn 0.6s ease; }
.feature-swiper-prev, .feature-swiper-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55); color: var(--white); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.feature-swiper-prev { left: 12px; }
.feature-swiper-next { right: 12px; }
.feature-swiper-prev:hover, .feature-swiper-next:hover { background: rgba(201,168,76,0.7); }
.feature-swiper-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.feature-swiper-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.feature-swiper-dot.active { background: var(--gold); }

/* ── Album Tabs (image/video) ── */
.album-tabs {
  display: flex; gap: 4px;
  padding: 12px 24px 0;
  max-width: 1200px; margin: 0 auto;
}
.album-tab {
  padding: 8px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--bg-card); color: var(--gray-300);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.album-tab.active { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }
.album-tab:hover:not(.active) { border-color: var(--gold-dark); color: var(--gold); }

/* ── Video card ── */
.video-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer; position: relative;
}
.video-card:hover { border-color: var(--gold-dark); }
.video-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.video-thumb-wrap {
  width: 100%; aspect-ratio: 3/2; overflow: hidden;
  background: var(--bg-secondary); position: relative;
}
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 36px; opacity: 0.85; pointer-events: none;
}
.video-duration-badge {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.75); color: #fff; font-size: 10px;
  padding: 2px 6px; border-radius: 4px;
}

/* ── Video Preview Modal ── */
.video-preview-modal {
  display: none; position: fixed; inset: 0; z-index: 1800;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 20px;
}
.video-preview-modal.open { display: flex; }
.video-preview-inner {
  position: relative; max-width: 90vw; width: 700px;
}
.video-preview-close {
  position: absolute; top: -44px; right: 0;
  font-size: 28px; color: var(--white); cursor: pointer;
  background: none; border: none; line-height: 1; padding: 8px;
}
.video-preview-inner video {
  width: 100%; border-radius: var(--radius);
}
.video-preview-label {
  margin-top: 10px; text-align: center;
  font-size: 13px; color: var(--gray-300);
}

.btn-cart {
  position: relative;
  background: var(--gold);
  color: var(--bg-primary);
  border: none; border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--transition);
}
.btn-cart:hover { background: var(--gold-light); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Main content offset ── */
.page-content { padding-top: var(--header-height); min-height: 100vh; }

/* ── Banner Slider ── */
.banner-section { position: relative; background: var(--bg-secondary); }
.banner-slide {
  display: none; position: relative;
  width: 100%;
}
.banner-slide.active { display: block; }
.banner-slide img {
  width: 100%; height: auto; display: block;
}
.banner-fade { animation: fadeIn 0.8s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background var(--transition);
}
.banner-dot.active { background: var(--gold); }

/* ── Section headings ── */
.section { padding: 48px 24px; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 22px; font-weight: 700; color: var(--gold);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Category Cards ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
}

.category-cover {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
}
.category-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-cover-placeholder {
  font-size: 48px; opacity: 0.3;
}

.category-info { padding: 16px; }
.category-name { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.category-date { font-size: 12px; color: var(--gray-300); }
.category-badge {
  display: inline-block; margin-top: 8px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-coming { background: rgba(192,57,43,0.2); color: var(--red-light); border: 1px solid var(--red); }
.badge-active { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold-dark); }

/* ── Image Grid (Album page) ── */
.album-header {
  padding: 24px;
  max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.album-title { font-size: 20px; font-weight: 700; color: var(--gold); }
.album-subtitle { font-size: 13px; color: var(--gray-300); margin-top: 4px; }

/* ── Person Filter Chips ── */
/* Person filter list — single row by default */
#person-filter-list {
  display: flex; gap: 8px;
  flex-wrap: nowrap;
  width: 100%; min-width: 0;          /* constrain to parent so overflow triggers */
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
#person-filter-list::-webkit-scrollbar { display: none; }
/* Expanded: wraps into rows, vertically scrollable, max 1/3 screen */
#person-filter-list.pf-expanded {
  flex-wrap: wrap;
  overflow-x: hidden; overflow-y: auto;
  max-height: 33vh; padding-bottom: 6px; padding-right: 2px;
  scrollbar-width: thin;
}
#person-filter-list.pf-expanded::-webkit-scrollbar { display: block; width: 4px; }
#person-filter-list.pf-expanded::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* Section must not clip horizontal overflow in collapsed mode */
#person-filter-section { overflow: hidden; }

.person-chip {
  display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer; flex-shrink: 0;
  transition: all var(--transition); max-width: 160px;
  font-size: 11px; color: var(--gray-300);
}
.person-chip img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--bg-secondary); flex-shrink: 0;
}
.person-chip:hover { border-color: var(--gold-light); background: rgba(201,168,76,0.06); }
.person-chip.active { border-color: var(--gold); background: rgba(201,168,76,0.15); }
.person-chip.active .person-chip-name { color: var(--gold); }
.person-chip-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person-chip-name { font-size: 12px; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.person-chip-tag { font-size: 10px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.person-chip-count { font-size: 11px; color: var(--gray-300); }
.person-chip-check {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
  flex-shrink: 0; margin-left: auto;
}

/* Image grid filter fade effect */
.images-grid { transition: opacity 0.18s ease; }
.images-grid.pf-filtering { opacity: 0.35; pointer-events: none; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.images-grid.pf-loaded .image-card { animation: cardFadeIn 0.22s ease both; }

.album-toolbar {
  padding: 16px 24px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.select-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.btn {
  padding: 8px 16px; border-radius: var(--radius); border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--gold); color: var(--bg-primary); }
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary { background: var(--bg-card); color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-light); }
.btn-ghost { background: transparent; color: var(--gray-300); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px 24px;
  max-width: 1200px; margin: 0 auto;
}

.image-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer; position: relative;
}
.image-card:hover { border-color: var(--gold-dark); }
.image-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}

.image-thumb {
  width: 100%; aspect-ratio: 3/2; overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.image-card:hover .image-thumb img { transform: scale(1.04); }

.image-check {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 12px; color: var(--bg-primary); font-weight: 700;
}
.image-card.selected .image-check { display: flex; }

.image-info {
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.image-name { font-size: 11px; color: var(--gray-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.image-price { font-size: 14px; font-weight: 700; color: var(--gold); }

.image-overlay-loading {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}

/* ── Lightbox ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; max-width: 90vw; max-height: 85vh;
}
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: -40px; right: 0;
  font-size: 28px; color: var(--white); cursor: pointer;
  background: none; border: none; line-height: 1;
}
.lightbox-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 12px;
}
.lightbox-nav {
  background: var(--bg-card); color: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 14px; cursor: pointer; font-size: 18px;
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }

/* ── Cart / Sticky bar ── */
.sticky-cart {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: linear-gradient(0deg, var(--bg-secondary), transparent);
  padding: 20px 24px;
  display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.sticky-cart.visible { display: flex; }
.sticky-cart-info { font-size: 14px; color: var(--gray-100); }
.sticky-cart-info strong { color: var(--gold); font-size: 16px; }

/* ── Cart page ── */
.cart-container { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px;
}
.cart-thumb {
  width: 72px; height: 54px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0;
}
.cart-item-name { font-size: 14px; color: var(--white); flex: 1; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--gold); }
.cart-remove { background: none; border: none; color: var(--gray-500); cursor: pointer; font-size: 18px; padding: 4px; }
.cart-remove:hover { color: var(--red-light); }

.cart-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-top: 24px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.summary-row:last-child { border-bottom: none; font-size: 18px; font-weight: 700; color: var(--gold); }

.code-input-group {
  display: flex; gap: 8px; margin: 16px 0;
}
.code-input-group input {
  flex: 1; padding: 10px 14px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--white); font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.code-input-group input:focus { outline: none; border-color: var(--gold); }
.code-applied {
  padding: 8px 12px; background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-dark); border-radius: var(--radius);
  color: var(--gold); font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.code-error { color: var(--red-light); font-size: 13px; margin-top: 4px; }

/* ── Download page ── */
.download-container { max-width: 700px; margin: 0 auto; padding: 32px 24px; }
.download-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px;
}
.download-thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.download-btn {
  margin-left: auto;
  padding: 7px 16px; background: var(--gold); color: var(--bg-primary);
  border: none; border-radius: var(--radius); font-weight: 700;
  font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.download-btn:hover { background: var(--gold-light); }
.download-btn.downloaded { background: var(--gray-700); color: var(--gray-300); cursor: default; }

/* ── TNC / Privacy pages ── */
.legal-container { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.legal-container h1 { font-size: 24px; color: var(--gold); margin-bottom: 24px; }
.legal-container h2 { font-size: 18px; color: var(--white); margin: 24px 0 8px; }
.legal-container p, .legal-container li { color: var(--gray-100); line-height: 1.8; }
.legal-container ul { padding-left: 24px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 64px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 12px; color: var(--gray-500); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--gray-300); }
.footer-links a:hover { color: var(--gold); }

/* ── Loading / Spinner ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.loading-overlay.hidden { display: none; }

/* ── Toast notifications ── */
#toast-container {
  position: fixed; bottom: 80px; right: 24px; z-index: 3000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast-success { background: #1a3a1a; border: 1px solid #2d7a2d; color: #7fff7f; }
.toast-error { background: #3a1a1a; border: 1px solid #7a2d2d; color: #ff9999; }
.toast-info { background: #1a2a3a; border: 1px solid #2d5a7a; color: #99ccff; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-state .icon { font-size: 64px; opacity: 0.3; }
.empty-state p { color: var(--gray-300); }

/* ── Member / CRM ── */
.btn-member { display:inline-flex; align-items:center; gap:4px; background:transparent; border:1px solid var(--border); color:var(--gray-200); padding:6px 14px; border-radius:20px; font-size:13px; text-decoration:none; cursor:pointer; transition:border-color 0.2s,color 0.2s; white-space:nowrap; }
.btn-member:hover { border-color:var(--gold); color:var(--gold); }
.member-menu-wrap { position:relative; }
.member-dropdown { position:absolute; top:calc(100% + 8px); right:0; min-width:160px; background:#1e1e1e; border:1px solid #2a2a2a; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,0.6); z-index:1000; overflow:hidden; }
.member-dropdown-item { display:flex; align-items:center; gap:10px; width:100%; padding:11px 16px; font-size:13px; color:#ccc; text-decoration:none; background:none; border:none; cursor:pointer; text-align:left; box-sizing:border-box; transition:background 0.15s; }
.member-dropdown-item:hover { background:#2a2a2a; color:#fff; }
.member-dropdown-divider { border-top:1px solid #2a2a2a; margin:4px 0; }
.member-dropdown-logout { color:#e88 !important; }
.member-dropdown-logout:hover { background:#2a1a1a !important; }
.chip-mine { border-color: var(--gold) !important; background: rgba(201,168,76,0.1) !important; }
.chip-claim-btn { position:absolute; bottom:-18px; left:50%; transform:translateX(-50%); background:var(--gold); color:#111; border:none; border-radius:4px; font-size:9px; padding:2px 6px; cursor:pointer; white-space:nowrap; z-index:2; font-weight:700; }
.chip-claim-btn:hover { background:#e0b830; }
#person-filter-list > div { margin-bottom:20px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-logo .site-name { display: none; }
  .section { padding: 32px 16px; }
  .images-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 16px; gap: 10px; }
  .album-toolbar { padding: 12px 16px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-container, .download-container, .legal-container { padding: 24px 16px; }
  .sticky-cart { padding: 12px 16px; }
  .banner-slide img { width: 100%; height: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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