/* Luxury Album - rolaluxury style */

:root {
  --green: #49c167;
  --green-dark: #3aab58;
  --text: #222;
  --text-muted: #888;
  --border: #eee;
  --bg: #fff;
  --header-h: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.header-link svg { width: 18px; height: 18px; }

.header-home-mobile {
  display: none;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 52%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  color: var(--text);
}

.header-brand-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.header-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.btn-login {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-login:hover { background: var(--green-dark); }

/* Hero */
.hero-banner {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Category Grid */
.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
}

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

.category-item {
  text-align: center;
  cursor: pointer;
  transition: transform .15s;
}

.category-item:hover { transform: translateY(-2px); }

.category-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  margin: 0 auto 8px;
  border: 1px solid var(--border);
}

.category-name {
  font-size: 13px;
  color: var(--text);
}

/* Filter bar — equal side padding so wrapped tab rows center true to the page;
   tools sit in the right pad and do not skew justify-content:center */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* High-specificity series tabs: larger, bold, centered (beats cache/overrides) */
.filter-bar .filter-tabs,
.category-page .filter-tabs,
#filter-tabs.filter-tabs,
div.filter-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  column-gap: 22px;
  row-gap: 10px;
  text-align: center !important;
}

.filter-bar .filter-tabs .filter-tab,
.filter-bar .filter-tabs a.filter-tab,
.category-page .filter-tabs .filter-tab,
div.filter-tabs a.filter-tab {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  text-align: center;
  flex: 0 0 auto;
}

.filter-bar .filter-tabs .filter-tab.active,
.filter-bar .filter-tabs a.filter-tab.active,
div.filter-tabs a.filter-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.filter-bar .filter-tabs .filter-tab:hover,
.filter-bar .filter-tabs a.filter-tab:hover,
div.filter-tabs a.filter-tab:hover {
  color: var(--green);
}

.filter-tools {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.filter-tool-btn svg {
  width: 18px;
  height: 18px;
}

.filter-tool-btn.is-active {
  color: var(--text);
}

.category-tag {
  display: inline-block;
  max-width: min(92vw, 720px);
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin: 8px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Album feed */
.feed-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.date-group {
  margin-top: 20px;
}

.date-label {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.album-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.album-card-media {
  flex: 0 0 280px;
  cursor: pointer;
}

.media-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
}

.media-thumb > img,
.media-thumb > video {
  width: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-empty {
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
}

.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.video-thumb .play-badge svg {
  width: 34px;
  height: 34px;
  fill: rgba(255, 255, 255, 0.92);
}

.album-card-media img,
.album-card-media video {
  width: 100%;
  border-radius: 4px;
}

.media-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.media-grid-2x2 img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.album-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.album-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

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

.download-link {
  font-size: 13px;
  color: var(--text-muted);
}

.download-link:hover { color: var(--green); }

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.share-btn svg { width: 20px; height: 20px; }

/* Category feed view modes */
#feed-root {
  width: 100%;
}

.feed-mode-mall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 8px;
}

.feed-mode-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
}

@media (min-width: 701px) {
  .feed-mode-three {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 10px;
  }

  .feed-item-three .feed-item-desc-compact {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }
}

.feed-mode-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 701px) {
  .feed-mode-large {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .feed-item-large {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.feed-mode-multi {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-item-multi.album-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.feed-item-multi .album-card-media {
  flex: 0 0 280px;
  width: 280px;
}

.feed-item-multi .media-thumb,
.feed-item-multi .media-grid-2x2.media-thumb {
  width: 100%;
}

.feed-item-multi .media-grid-2x2.media-thumb {
  aspect-ratio: 1;
}

.feed-item {
  color: inherit;
  text-decoration: none;
}

.feed-item-mall,
.feed-item-three {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-item-mall .media-thumb,
.feed-item-three .media-thumb {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.feed-item-mall .media-thumb > img,
.feed-item-three .media-thumb > img,
.feed-item-mall .media-thumb > video,
.feed-item-three .media-thumb > video {
  height: 100%;
}

.feed-item-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
}

.feed-item-desc-compact {
  font-size: 11px;
  -webkit-line-clamp: 3;
}

.feed-item-large {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
}

.feed-item-large-media {
  position: relative;
}

.feed-item-large-link {
  display: block;
}

.feed-item-large .media-thumb.large {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.feed-item-large .media-thumb.large > img,
.feed-item-large .media-thumb.large > video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.feed-item-large .media-grid-2x2.media-thumb.large {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.feed-item-large .media-grid-2x2.media-thumb.large img {
  width: 100%;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
}

.feed-share-top {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.feed-item-actions {
  margin-top: 8px;
}

.feed-sentinel {
  height: 1px;
}

.feed-loading,
.feed-end {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.feed-skeleton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 0 16px;
}

.feed-skeleton[hidden] {
  display: none !important;
}

.feed-skel-card {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(90deg, #ececec 0%, #f6f6f6 45%, #ececec 90%);
  background-size: 200% 100%;
  animation: feed-skel-shine 1.1s ease-in-out infinite;
}

@keyframes feed-skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.feed-load-more {
  display: block;
  margin: 8px auto 20px;
  padding: 10px 28px;
  border: 1px solid var(--border, #ddd);
  background: #fff;
  color: var(--text, #222);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
}

.feed-load-more[hidden] {
  display: none !important;
}

.feed-load-more:hover {
  background: #f5f5f5;
}

/* Preview mode bottom sheet */
.mode-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
}

.mode-sheet-overlay[hidden],
.mode-sheet[hidden] {
  display: none !important;
}

.mode-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 501;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.mode-sheet-title {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px 12px;
}

.mode-sheet-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  text-align: left;
}

.mode-sheet-item.active {
  color: var(--green);
}

.mode-sheet-icon {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.mode-sheet-icon svg {
  width: 22px;
  height: 22px;
}

.mode-sheet-label {
  flex: 1;
}

.mode-sheet-check {
  color: var(--green);
  font-size: 18px;
  opacity: 0;
}

.mode-sheet-item.active .mode-sheet-check {
  opacity: 1;
}

.mode-sheet-cancel {
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  padding: 14px;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: none;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

body.mode-sheet-open {
  overflow: hidden;
}

/* Category Video tab: CSS full-viewport fallback + API fullscreen target */
body.cat-video-open {
  overflow: hidden;
  touch-action: none;
}

.cat-video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  /* Feels like webpage fullscreen even if requestFullscreen is blocked */
  box-sizing: border-box;
}

.cat-video-overlay[hidden] {
  display: none !important;
}

.cat-video-overlay:fullscreen,
.cat-video-overlay:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.cat-video-overlay .cat-video-el {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  background: #000;
}

/* Invisible top strip — tap/click to exit without fighting video controls */
.cat-video-exit-hit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: calc(56px + env(safe-area-inset-top, 0px));
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cat-video-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
  .filter-bar {
    padding: 10px 40px;
  }

  .filter-bar .filter-tabs,
  div.filter-tabs {
    column-gap: 14px;
    row-gap: 8px;
    justify-content: center !important;
  }

  .filter-bar .filter-tabs .filter-tab,
  .filter-bar .filter-tabs a.filter-tab,
  div.filter-tabs a.filter-tab {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding-bottom: 6px;
  }

  .filter-tools {
    top: 10px;
    right: 12px;
  }

  .category-tag {
    margin: 6px 12px 0;
    font-size: 12px;
  }

  .feed-section {
    padding: 0 12px 88px;
  }

  .feed-mode-mall {
    gap: 10px 6px;
  }

  .feed-mode-three {
    gap: 8px 4px;
  }

  .feed-item-multi.album-card {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  /* ~2x list thumb vs previous 108px mobile size */
  .feed-item-multi .album-card-media {
    flex: 0 0 216px;
    width: 216px;
  }

  .feed-item-multi .media-thumb,
  .feed-item-multi .media-grid-2x2.media-thumb {
    width: 216px;
    height: 216px;
    border: 1px solid #f0f0f0;
  }

  .feed-item-multi .media-grid-2x2.media-thumb {
    gap: 3px;
  }

  .feed-item-multi .media-thumb > img,
  .feed-item-multi .media-thumb > video {
    height: 100%;
  }

  .feed-item-multi .album-card-body {
    min-height: 216px;
    padding-top: 0;
  }

  .feed-item-multi .album-desc {
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 4;
  }

  .feed-item-multi .album-actions {
    margin-top: auto;
    padding-top: 10px;
  }

  .feed-item-multi .download-link {
    color: #1677ff;
    font-size: 14px;
  }

  .feed-item-multi .share-btn svg {
    width: 22px;
    height: 22px;
  }

  .date-group {
    margin-top: 0;
  }

  .date-label {
    display: none;
  }

  .header-center {
    max-width: 36%;
    font-size: 13px;
  }

  .header-left {
    gap: 12px;
  }

  .header-home-mobile {
    display: none;
  }

  .header-link-text {
    display: none;
  }

  .header-link--category {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
  }

  .header-link--category .header-link-text {
    display: inline;
  }

  #btn-search {
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    padding: 5px 10px;
  }

  #btn-search .header-link-text {
    display: none;
  }
}

/* Album detail */
.detail-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}

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

.detail-main {
  flex: 1;
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main img,
.detail-main video {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.detail-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60px;
}

.detail-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .7;
}

.detail-thumb.active {
  border-color: var(--green);
  opacity: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.play-overlay svg {
  width: 56px;
  height: 56px;
  fill: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.detail-desc {
  margin-top: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.detail-all-media {
  margin: 20px -16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-all-item {
  margin: 0;
  width: 100%;
  background: #f7f7f7;
  line-height: 0;
}

.detail-all-item img,
.detail-all-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: top;
}

.btn-inquiry {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-share {
  flex: 1;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* PRIVATE CONCIERGE / business card */
.biz-card {
  margin: 28px 0 0;
  background: #0a0a0a;
  color: #f5f5f5;
  border-radius: 2px;
  overflow: hidden;
}
.biz-card-inner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.4fr) minmax(140px, 1fr);
  gap: 20px 28px;
  align-items: start;
  padding: 28px 24px 26px;
  max-width: 100%;
}
.biz-card-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.biz-card-col--center {
  align-items: stretch;
  text-align: left;
  padding: 0 4px;
}
.biz-card-pill {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-qr {
  background: #fff;
  padding: 8px;
  line-height: 0;
  width: 100%;
  max-width: 168px;
}
.biz-card-qr img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}
.biz-card-qr--placeholder {
  aspect-ratio: 1;
  max-width: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.35);
}
.biz-card-qr-ph {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-qr a { display: block; line-height: 0; }
.biz-card-qr-label {
  margin-top: 12px;
  font-size: 13px;
  color: #fff;
  word-break: break-all;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-qr-label a { color: inherit; text-decoration: none; }
.biz-card-qr-label a:hover { text-decoration: underline; }
.biz-card-qr-hint {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.biz-card-title {
  margin: 0 0 10px;
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #c5a46e;
  text-align: center;
  line-height: 1.25;
}
.biz-card-sub {
  margin: 0 0 18px;
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.biz-card-lines-title {
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: 15px;
  color: #c5a46e;
  margin-bottom: 8px;
  text-align: center;
}
.biz-card-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.biz-card-lines li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.biz-card-k {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #c5a46e;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}
.biz-card-v {
  font-size: 14px;
  color: #fff;
  word-break: break-all;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-v a { color: inherit; text-decoration: none; }
.biz-card-v a:hover { text-decoration: underline; }
.biz-card-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
}

@media (max-width: 720px) {
  .biz-card-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px 22px;
  }
  .biz-card-col--center { order: -1; }
  .biz-card-lines li {
    grid-template-columns: 88px 1fr;
  }
}

.site-stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 8px 0 14px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.site-stats-bar strong {
  color: #333;
  font-weight: 600;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.store-row-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}

.store-brand-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-footer .site-stats-bar {
  padding: 0;
  gap: 12px 20px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .store-row-end {
    width: 100%;
    justify-content: space-between;
  }

  .store-footer .site-stats-bar {
    flex: 1;
    justify-content: flex-end;
    gap: 8px 12px;
    font-size: 11px;
  }
}

.btn-view-store {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.detail-nav-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 8px;
}

.btn-detail-nav {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-detail-nav:hover,
.btn-detail-nav:focus-visible {
  background: #222;
  color: #fff;
}

.btn-detail-nav:active {
  background: #111;
}

.store-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.store-stats strong { color: var(--text); }

/* Album mobile bottom bar */
.detail-mobile-bar {
  display: none;
}

@media (max-width: 700px) {
  .detail-actions {
    display: none;
  }

  .detail-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  }

  .detail-mobile-share {
    flex: 0 0 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
  }

  .detail-mobile-share svg {
    width: 22px;
    height: 22px;
  }

  .detail-mobile-consult {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
  }

  .detail-section {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  body:has(.detail-mobile-bar) .whatsapp-fab {
    bottom: calc(72px + 5rem + env(safe-area-inset-bottom));
  }

  body:has(.detail-mobile-bar) .back-top {
    bottom: calc(72px + 5rem + env(safe-area-inset-bottom));
  }
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: calc(24px + 5rem);
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: #fff;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

.back-top {
  position: fixed;
  bottom: calc(24px + 5rem);
  right: 92px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Category drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
}

.drawer-overlay.open { display: block; }

/* Category popup shell: see cat-drawer.css (.drawer.cat-drawer) */

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.drawer-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Search modal */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
}

.search-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }

.search-box {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  outline: none;
}

.search-box input:focus { border-color: var(--green); }

/* Admin */
.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

.admin-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-nav a {
  color: var(--green);
  font-size: 14px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.admin-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.msg-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.msg-error {
  background: #fdecea;
  color: #c62828;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.btn-link {
  color: #1976d2;
  font-size: 13px;
  text-decoration: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th { color: var(--text-muted); font-weight: 500; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p { margin-top: 8px; font-size: 14px; }

/* Share sheet */
.share-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
}

.share-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 401;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  max-height: 85vh;
  overflow-y: auto;
}

.share-sheet-title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0 14px;
  color: var(--text);
}

.share-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  padding: 0 4px 12px;
}

.share-sheet-grid-tools {
  grid-template-columns: repeat(5, 1fr);
  padding-top: 4px;
}

.share-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: #666;
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
}

.share-sheet-item span:last-child {
  line-height: 1.2;
  word-break: break-word;
}

.share-sheet-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.share-sheet-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.share-sheet-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.share-icon-more {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ececec;
}

.share-icon-more svg {
  width: 24px;
  height: 24px;
}
.share-icon-tool {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #666;
  border: none;
}

.share-icon-tool svg {
  fill: none;
  stroke: #666;
  width: 22px;
  height: 22px;
}

.share-sheet-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 8px 12px;
}

.share-sheet-cancel {
  width: 100%;
  border: none;
  background: none;
  padding: 14px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

body.share-sheet-open {
  overflow: hidden;
}

body.share-sheet-open .detail-mobile-bar {
  z-index: 200;
}

@media (max-width: 700px) {
  .share-sheet-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Category popup inner layout lives in cat-drawer.css (continuous scroll + contain logos). */

.seo-album-links {
  margin: 20px 0 28px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.seo-album-links-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.seo-album-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.seo-album-links a {
  color: #2456a8;
  text-decoration: underline;
}
.seo-album-pages {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-album-pages a,
.seo-album-page-current {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
}
.seo-album-pages a {
  color: #2456a8;
  text-decoration: underline;
}
.seo-album-page-current {
  background: #eef3fb;
  color: #333;
  font-weight: 600;
}
.album-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.album-breadcrumb a {
  color: #2456a8;
  text-decoration: underline;
}
.album-body-text {
  margin: 0 0 16px;
  line-height: 1.65;
  color: var(--text);
  font-size: 14px;
}
.related-albums {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.related-albums-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.related-albums ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.related-albums a {
  color: #2456a8;
  text-decoration: underline;
  font-size: 13px;
}
.site-seo-foot {
  text-align: center;
  padding: 18px 12px 28px;
  font-size: 12px;
  color: var(--text-muted);
}
.site-seo-foot a {
  color: #2456a8;
  text-decoration: underline;
}


/* ---- Per-language landing pages (/fr/ /de/ ...) 20260904 ---- */
a.lang-switcher-option{text-decoration:none;color:inherit;background:none;border:0;cursor:pointer;display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;font:inherit}
a.lang-switcher-option:hover{background:#f5f5f5}
a.lang-switcher-option.active{font-weight:700}
.lang-landing{max-width:1080px;margin:0 auto;padding:20px 16px 40px}
.lang-hero{padding:28px 4px 8px;text-align:center}
.lang-hero h1{font-size:1.5rem;line-height:1.3;margin:0 0 12px}
.lang-hero-intro{color:#555;line-height:1.7;margin:0 auto 18px;max-width:760px}
.lang-hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.lang-btn{display:inline-block;padding:10px 18px;border:1px solid #ddd;border-radius:24px;text-decoration:none;color:#111;font-weight:600}
.lang-btn-primary{background:#111;color:#fff;border-color:#111}
.lang-cats,.lang-recent{margin-top:32px}
.lang-cats h2,.lang-recent h2{font-size:1.15rem;margin:0 0 14px}
.lang-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px}
.lang-cat-item{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:#222;text-align:center}
.lang-cat-item img{width:88px;height:88px;object-fit:cover;border-radius:12px}
.lang-cat-name{font-size:.8rem;line-height:1.3}
.lang-recent-list{list-style:none;margin:0;padding:0;columns:2;column-gap:24px}
.lang-recent-list li{margin:0 0 8px;break-inside:avoid}
.lang-recent-list a{color:#1a0dab;text-decoration:none;font-size:.9rem}
.lang-footer-note{margin-top:36px;padding-top:16px;border-top:1px solid #eee;color:#666;font-size:.85rem;line-height:1.7}
@media(max-width:640px){.lang-recent-list{columns:1}.lang-hero h1{font-size:1.25rem}}
/* Luxury Album - rolaluxury style */

:root {
  --green: #49c167;
  --green-dark: #3aab58;
  --text: #222;
  --text-muted: #888;
  --border: #eee;
  --bg: #fff;
  --header-h: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.header-link svg { width: 18px; height: 18px; }

.header-home-mobile {
  display: none;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 52%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  color: var(--text);
}

.header-brand-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.header-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.btn-login {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-login:hover { background: var(--green-dark); }

/* Hero */
.hero-banner {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Category Grid */
.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
}

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

.category-item {
  text-align: center;
  cursor: pointer;
  transition: transform .15s;
}

.category-item:hover { transform: translateY(-2px); }

.category-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  margin: 0 auto 8px;
  border: 1px solid var(--border);
}

.category-name {
  font-size: 13px;
  color: var(--text);
}

/* Filter bar — equal side padding so wrapped tab rows center true to the page;
   tools sit in the right pad and do not skew justify-content:center */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* High-specificity series tabs: larger, bold, centered (beats cache/overrides) */
.filter-bar .filter-tabs,
.category-page .filter-tabs,
#filter-tabs.filter-tabs,
div.filter-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  column-gap: 22px;
  row-gap: 10px;
  text-align: center !important;
}

.filter-bar .filter-tabs .filter-tab,
.filter-bar .filter-tabs a.filter-tab,
.category-page .filter-tabs .filter-tab,
div.filter-tabs a.filter-tab {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  text-align: center;
  flex: 0 0 auto;
}

.filter-bar .filter-tabs .filter-tab.active,
.filter-bar .filter-tabs a.filter-tab.active,
div.filter-tabs a.filter-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.filter-bar .filter-tabs .filter-tab:hover,
.filter-bar .filter-tabs a.filter-tab:hover,
div.filter-tabs a.filter-tab:hover {
  color: var(--green);
}

.filter-tools {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.filter-tool-btn svg {
  width: 18px;
  height: 18px;
}

.filter-tool-btn.is-active {
  color: var(--text);
}

.category-tag {
  display: inline-block;
  max-width: min(92vw, 720px);
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin: 8px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Album feed */
.feed-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.date-group {
  margin-top: 20px;
}

.date-label {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.album-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.album-card-media {
  flex: 0 0 280px;
  cursor: pointer;
}

.media-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
}

.media-thumb > img,
.media-thumb > video {
  width: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-empty {
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
}

.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.video-thumb .play-badge svg {
  width: 34px;
  height: 34px;
  fill: rgba(255, 255, 255, 0.92);
}

.album-card-media img,
.album-card-media video {
  width: 100%;
  border-radius: 4px;
}

.media-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.media-grid-2x2 img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.album-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.album-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

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

.download-link {
  font-size: 13px;
  color: var(--text-muted);
}

.download-link:hover { color: var(--green); }

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.share-btn svg { width: 20px; height: 20px; }

/* Category feed view modes */
#feed-root {
  width: 100%;
}

.feed-mode-mall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 8px;
}

.feed-mode-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
}

@media (min-width: 701px) {
  .feed-mode-three {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 10px;
  }

  .feed-item-three .feed-item-desc-compact {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }
}

.feed-mode-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 701px) {
  .feed-mode-large {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .feed-item-large {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.feed-mode-multi {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-item-multi.album-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.feed-item-multi .album-card-media {
  flex: 0 0 280px;
  width: 280px;
}

.feed-item-multi .media-thumb,
.feed-item-multi .media-grid-2x2.media-thumb {
  width: 100%;
}

.feed-item-multi .media-grid-2x2.media-thumb {
  aspect-ratio: 1;
}

.feed-item {
  color: inherit;
  text-decoration: none;
}

.feed-item-mall,
.feed-item-three {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-item-mall .media-thumb,
.feed-item-three .media-thumb {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.feed-item-mall .media-thumb > img,
.feed-item-three .media-thumb > img,
.feed-item-mall .media-thumb > video,
.feed-item-three .media-thumb > video {
  height: 100%;
}

.feed-item-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
}

.feed-item-desc-compact {
  font-size: 11px;
  -webkit-line-clamp: 3;
}

.feed-item-large {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
}

.feed-item-large-media {
  position: relative;
}

.feed-item-large-link {
  display: block;
}

.feed-item-large .media-thumb.large {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.feed-item-large .media-thumb.large > img,
.feed-item-large .media-thumb.large > video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.feed-item-large .media-grid-2x2.media-thumb.large {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.feed-item-large .media-grid-2x2.media-thumb.large img {
  width: 100%;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
}

.feed-share-top {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.feed-item-actions {
  margin-top: 8px;
}

.feed-sentinel {
  height: 1px;
}

.feed-loading,
.feed-end {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.feed-skeleton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 0 16px;
}

.feed-skeleton[hidden] {
  display: none !important;
}

.feed-skel-card {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(90deg, #ececec 0%, #f6f6f6 45%, #ececec 90%);
  background-size: 200% 100%;
  animation: feed-skel-shine 1.1s ease-in-out infinite;
}

@keyframes feed-skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.feed-load-more {
  display: block;
  margin: 8px auto 20px;
  padding: 10px 28px;
  border: 1px solid var(--border, #ddd);
  background: #fff;
  color: var(--text, #222);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
}

.feed-load-more[hidden] {
  display: none !important;
}

.feed-load-more:hover {
  background: #f5f5f5;
}

/* Preview mode bottom sheet */
.mode-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
}

.mode-sheet-overlay[hidden],
.mode-sheet[hidden] {
  display: none !important;
}

.mode-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 501;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.mode-sheet-title {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px 12px;
}

.mode-sheet-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  text-align: left;
}

.mode-sheet-item.active {
  color: var(--green);
}

.mode-sheet-icon {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.mode-sheet-icon svg {
  width: 22px;
  height: 22px;
}

.mode-sheet-label {
  flex: 1;
}

.mode-sheet-check {
  color: var(--green);
  font-size: 18px;
  opacity: 0;
}

.mode-sheet-item.active .mode-sheet-check {
  opacity: 1;
}

.mode-sheet-cancel {
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  padding: 14px;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: none;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

body.mode-sheet-open {
  overflow: hidden;
}

/* Category Video tab: CSS full-viewport fallback + API fullscreen target */
body.cat-video-open {
  overflow: hidden;
  touch-action: none;
}

.cat-video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  /* Feels like webpage fullscreen even if requestFullscreen is blocked */
  box-sizing: border-box;
}

.cat-video-overlay[hidden] {
  display: none !important;
}

.cat-video-overlay:fullscreen,
.cat-video-overlay:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.cat-video-overlay .cat-video-el {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  background: #000;
}

/* Invisible top strip — tap/click to exit without fighting video controls */
.cat-video-exit-hit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: calc(56px + env(safe-area-inset-top, 0px));
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cat-video-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
  .filter-bar {
    padding: 10px 40px;
  }

  .filter-bar .filter-tabs,
  div.filter-tabs {
    column-gap: 14px;
    row-gap: 8px;
    justify-content: center !important;
  }

  .filter-bar .filter-tabs .filter-tab,
  .filter-bar .filter-tabs a.filter-tab,
  div.filter-tabs a.filter-tab {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding-bottom: 6px;
  }

  .filter-tools {
    top: 10px;
    right: 12px;
  }

  .category-tag {
    margin: 6px 12px 0;
    font-size: 12px;
  }

  .feed-section {
    padding: 0 12px 88px;
  }

  .feed-mode-mall {
    gap: 10px 6px;
  }

  .feed-mode-three {
    gap: 8px 4px;
  }

  .feed-item-multi.album-card {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  /* ~2x list thumb vs previous 108px mobile size */
  .feed-item-multi .album-card-media {
    flex: 0 0 216px;
    width: 216px;
  }

  .feed-item-multi .media-thumb,
  .feed-item-multi .media-grid-2x2.media-thumb {
    width: 216px;
    height: 216px;
    border: 1px solid #f0f0f0;
  }

  .feed-item-multi .media-grid-2x2.media-thumb {
    gap: 3px;
  }

  .feed-item-multi .media-thumb > img,
  .feed-item-multi .media-thumb > video {
    height: 100%;
  }

  .feed-item-multi .album-card-body {
    min-height: 216px;
    padding-top: 0;
  }

  .feed-item-multi .album-desc {
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 4;
  }

  .feed-item-multi .album-actions {
    margin-top: auto;
    padding-top: 10px;
  }

  .feed-item-multi .download-link {
    color: #1677ff;
    font-size: 14px;
  }

  .feed-item-multi .share-btn svg {
    width: 22px;
    height: 22px;
  }

  .date-group {
    margin-top: 0;
  }

  .date-label {
    display: none;
  }

  .header-center {
    max-width: 36%;
    font-size: 13px;
  }

  .header-left {
    gap: 12px;
  }

  .header-home-mobile {
    display: none;
  }

  .header-link-text {
    display: none;
  }

  .header-link--category {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
  }

  .header-link--category .header-link-text {
    display: inline;
  }

  #btn-search {
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    padding: 5px 10px;
  }

  #btn-search .header-link-text {
    display: none;
  }
}

/* Album detail */
.detail-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}

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

.detail-main {
  flex: 1;
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main img,
.detail-main video {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.detail-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60px;
}

.detail-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .7;
}

.detail-thumb.active {
  border-color: var(--green);
  opacity: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.play-overlay svg {
  width: 56px;
  height: 56px;
  fill: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.detail-desc {
  margin-top: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.detail-all-media {
  margin: 20px -16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-all-item {
  margin: 0;
  width: 100%;
  background: #f7f7f7;
  line-height: 0;
}

.detail-all-item img,
.detail-all-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: top;
}

.btn-inquiry {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-share {
  flex: 1;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* PRIVATE CONCIERGE / business card */
.biz-card {
  margin: 28px 0 0;
  background: #0a0a0a;
  color: #f5f5f5;
  border-radius: 2px;
  overflow: hidden;
}
.biz-card-inner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.4fr) minmax(140px, 1fr);
  gap: 20px 28px;
  align-items: start;
  padding: 28px 24px 26px;
  max-width: 100%;
}
.biz-card-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.biz-card-col--center {
  align-items: stretch;
  text-align: left;
  padding: 0 4px;
}
.biz-card-pill {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-qr {
  background: #fff;
  padding: 8px;
  line-height: 0;
  width: 100%;
  max-width: 168px;
}
.biz-card-qr img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}
.biz-card-qr--placeholder {
  aspect-ratio: 1;
  max-width: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.35);
}
.biz-card-qr-ph {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-qr a { display: block; line-height: 0; }
.biz-card-qr-label {
  margin-top: 12px;
  font-size: 13px;
  color: #fff;
  word-break: break-all;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-qr-label a { color: inherit; text-decoration: none; }
.biz-card-qr-label a:hover { text-decoration: underline; }
.biz-card-qr-hint {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.biz-card-title {
  margin: 0 0 10px;
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #c5a46e;
  text-align: center;
  line-height: 1.25;
}
.biz-card-sub {
  margin: 0 0 18px;
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.biz-card-lines-title {
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: 15px;
  color: #c5a46e;
  margin-bottom: 8px;
  text-align: center;
}
.biz-card-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.biz-card-lines li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.biz-card-k {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #c5a46e;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}
.biz-card-v {
  font-size: 14px;
  color: #fff;
  word-break: break-all;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.biz-card-v a { color: inherit; text-decoration: none; }
.biz-card-v a:hover { text-decoration: underline; }
.biz-card-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
}

@media (max-width: 720px) {
  .biz-card-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px 22px;
  }
  .biz-card-col--center { order: -1; }
  .biz-card-lines li {
    grid-template-columns: 88px 1fr;
  }
}

.site-stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 8px 0 14px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.site-stats-bar strong {
  color: #333;
  font-weight: 600;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.store-row-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}

.store-brand-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-footer .site-stats-bar {
  padding: 0;
  gap: 12px 20px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .store-row-end {
    width: 100%;
    justify-content: space-between;
  }

  .store-footer .site-stats-bar {
    flex: 1;
    justify-content: flex-end;
    gap: 8px 12px;
    font-size: 11px;
  }
}

.btn-view-store {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.detail-nav-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 8px;
}

.btn-detail-nav {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-detail-nav:hover,
.btn-detail-nav:focus-visible {
  background: #222;
  color: #fff;
}

.btn-detail-nav:active {
  background: #111;
}

.store-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.store-stats strong { color: var(--text); }

/* Album mobile bottom bar */
.detail-mobile-bar {
  display: none;
}

@media (max-width: 700px) {
  .detail-actions {
    display: none;
  }

  .detail-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  }

  .detail-mobile-share {
    flex: 0 0 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
  }

  .detail-mobile-share svg {
    width: 22px;
    height: 22px;
  }

  .detail-mobile-consult {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
  }

  .detail-section {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  body:has(.detail-mobile-bar) .whatsapp-fab {
    bottom: calc(72px + 5rem + env(safe-area-inset-bottom));
  }

  body:has(.detail-mobile-bar) .back-top {
    bottom: calc(72px + 5rem + env(safe-area-inset-bottom));
  }
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: calc(24px + 5rem);
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: #fff;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

.back-top {
  position: fixed;
  bottom: calc(24px + 5rem);
  right: 92px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Category drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
}

.drawer-overlay.open { display: block; }

/* Category popup shell: see cat-drawer.css (.drawer.cat-drawer) */

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.drawer-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Search modal */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
}

.search-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }

.search-box {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  outline: none;
}

.search-box input:focus { border-color: var(--green); }

/* Admin */
.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

.admin-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-nav a {
  color: var(--green);
  font-size: 14px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.admin-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.msg-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.msg-error {
  background: #fdecea;
  color: #c62828;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.btn-link {
  color: #1976d2;
  font-size: 13px;
  text-decoration: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th { color: var(--text-muted); font-weight: 500; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p { margin-top: 8px; font-size: 14px; }

/* Share sheet */
.share-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
}

.share-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 401;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  max-height: 85vh;
  overflow-y: auto;
}

.share-sheet-title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0 14px;
  color: var(--text);
}

.share-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  padding: 0 4px 12px;
}

.share-sheet-grid-tools {
  grid-template-columns: repeat(5, 1fr);
  padding-top: 4px;
}

.share-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: #666;
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
}

.share-sheet-item span:last-child {
  line-height: 1.2;
  word-break: break-word;
}

.share-sheet-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.share-sheet-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.share-sheet-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.share-icon-more {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ececec;
}

.share-icon-more svg {
  width: 24px;
  height: 24px;
}
.share-icon-tool {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #666;
  border: none;
}

.share-icon-tool svg {
  fill: none;
  stroke: #666;
  width: 22px;
  height: 22px;
}

.share-sheet-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 8px 12px;
}

.share-sheet-cancel {
  width: 100%;
  border: none;
  background: none;
  padding: 14px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

body.share-sheet-open {
  overflow: hidden;
}

body.share-sheet-open .detail-mobile-bar {
  z-index: 200;
}

@media (max-width: 700px) {
  .share-sheet-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Category popup inner layout lives in cat-drawer.css (continuous scroll + contain logos). */

.seo-album-links {
  margin: 20px 0 28px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.seo-album-links-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.seo-album-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.seo-album-links a {
  color: #2456a8;
  text-decoration: underline;
}
.seo-album-pages {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-album-pages a,
.seo-album-page-current {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
}
.seo-album-pages a {
  color: #2456a8;
  text-decoration: underline;
}
.seo-album-page-current {
  background: #eef3fb;
  color: #333;
  font-weight: 600;
}
.album-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.album-breadcrumb a {
  color: #2456a8;
  text-decoration: underline;
}
.album-body-text {
  margin: 0 0 16px;
  line-height: 1.65;
  color: var(--text);
  font-size: 14px;
}
.related-albums {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.related-albums-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.related-albums ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.related-albums a {
  color: #2456a8;
  text-decoration: underline;
  font-size: 13px;
}
.site-seo-foot {
  text-align: center;
  padding: 18px 12px 28px;
  font-size: 12px;
  color: var(--text-muted);
}
.site-seo-foot a {
  color: #2456a8;
  text-decoration: underline;
}


/* ---- Per-language landing pages (/fr/ /de/ ...) 20260904 ---- */
a.lang-switcher-option{text-decoration:none;color:inherit;background:none;border:0;cursor:pointer;display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;font:inherit}
a.lang-switcher-option:hover{background:#f5f5f5}
a.lang-switcher-option.active{font-weight:700}
.lang-landing{max-width:1080px;margin:0 auto;padding:20px 16px 40px}
.lang-hero{padding:28px 4px 8px;text-align:center}
.lang-hero h1{font-size:1.5rem;line-height:1.3;margin:0 0 12px}
.lang-hero-intro{color:#555;line-height:1.7;margin:0 auto 18px;max-width:760px}
.lang-hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.lang-btn{display:inline-block;padding:10px 18px;border:1px solid #ddd;border-radius:24px;text-decoration:none;color:#111;font-weight:600}
.lang-btn-primary{background:#111;color:#fff;border-color:#111}
.lang-cats,.lang-recent{margin-top:32px}
.lang-cats h2,.lang-recent h2{font-size:1.15rem;margin:0 0 14px}
.lang-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px}
.lang-cat-item{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:#222;text-align:center}
.lang-cat-item img{width:88px;height:88px;object-fit:cover;border-radius:12px}
.lang-cat-name{font-size:.8rem;line-height:1.3}
.lang-recent-list{list-style:none;margin:0;padding:0;columns:2;column-gap:24px}
.lang-recent-list li{margin:0 0 8px;break-inside:avoid}
.lang-recent-list a{color:#1a0dab;text-decoration:none;font-size:.9rem}
.lang-footer-note{margin-top:36px;padding-top:16px;border-top:1px solid #eee;color:#666;font-size:.85rem;line-height:1.7}
@media(max-width:640px){.lang-recent-list{columns:1}.lang-hero h1{font-size:1.25rem}}


/* ===== 4列网格布局 (override) ===== */
#feed-root.feed-mode-multi {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  flex-direction: unset !important;
}
#feed-root .feed-item-multi.album-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
}
#feed-root .feed-item-multi .album-card-media {
  flex: none !important;
  width: 100% !important;
  aspect-ratio: 1;
  overflow: hidden;
}
#feed-root .feed-item-multi .album-card-body {
  padding: 8px 10px;
}
#feed-root .feed-item-multi .album-desc {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media(max-width: 800px) {
  #feed-root.feed-mode-multi {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}



/* ===== media-grid-2x2 只显示第一张图 ===== */
.media-grid-2x2 {
  display: block !important;
  grid-template-columns: unset !important;
  grid-auto-flow: unset !important;
}
.media-grid-2x2 img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
}
.media-grid-2x2 img:nth-child(n+2) {
  display: none !important;
}



/* ===== 隐藏 SEO 链接区块（Google能爬到但用户看不到） ===== */
.seo-album-links {
  display: none !important;
}

/* ===== 图片加载优化 ===== */
.album-card-media img,
.media-thumb img {
  loading: lazy;
  background: #f0f0f0;
  min-height: 100px;
}



/* ===== Login 按钮位置修正（不挡语言切换） ===== */
.btn-login {
  margin-right: 80px !important;
  right: 80px !important;
  position: relative !important;
}
.header-actions .btn-login,
.utility-actions .btn-login {
  margin-right: 80px !important;
}
/* 语言切换在最右边 */
.lang-switch,
#lang-switch,
.lang-switcher {
  z-index: 101 !important;
  position: relative !important;
}
/* Login 按钮在语言切换左边 */
a[href*="login"],
.login-btn,
.btn-login {
  z-index: 100 !important;
  margin-right: 70px !important;
}



/* ===== Header 区域布局修正（Login 不挡语言切换） ===== */
.header-row,
.header-actions,
.utility-actions,
.site-chrome .header-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
/* Login 相关的所有可能选择器 */
a[href*="login"] i,
a[href*="login"] svg,
a[href*="login"] {
  margin-right: 0 !important;
  order: -1 !important;
}
/* 确保语言切换按钮在 Login 右边，有足够间距 */
.lang-switch,
#lang-switch,
[class*="lang-switch"] {
  margin-left: auto !important;
  padding-left: 16px !important;
  flex-shrink: 0 !important;
}
/* Login 按钮左移 */
[class*="login"],
[class*="Login"],
a[href*="/login"],
button[id*="login"] {
  margin-right: 16px !important;
  position: relative !important;
  left: -20px !important;
}
/* Login 和语言之间加间距 */
.header-actions > *,
.utility-actions > * {
  margin: 0 4px !important;
}

