/**
 * 见面相簿 — 空间维度页相册按钮 / 相簿选择 / 相册内容
 */

#meeting-album-picker-pane,
#meeting-album-content-pane {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

#meeting-album-picker-pane.hidden,
#meeting-album-content-pane.hidden {
  display: none !important;
}

.meeting-album-stage {
  width: 375px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  background: #ffffff;
}

/* —— 空间维度页：相册入口按钮 —— */
.meeting-album-entry-wrap {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
  margin-top: auto;
}

.meeting-album-entry-btn {
  position: relative;
  width: 275px;
  height: 105px;
  border: 3px solid #c9c1ee;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
  cursor: pointer;
  padding: 12px 48px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.meeting-album-entry-btn:active {
  transform: scale(0.99);
}

.meeting-album-entry-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--ui-accent-btn-hot, #f28ab7);
  line-height: 1.35;
  max-width: 100%;
}

.meeting-album-entry-heart {
  position: absolute;
  top: -8px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--ui-accent-btn-hot, #f28ab7) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ui-accent-btn-hot, #f28ab7);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* —— 相簿选择页 —— */
.meeting-album-picker-title {
  flex-shrink: 0;
  width: 305px;
  max-width: calc(100% - 32px);
  height: 42px;
  margin: 16px auto 20px;
  border: 3px solid #c9c1ee;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #999999;
  text-align: center;
  box-sizing: border-box;
}

.meeting-album-carousel-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 24px;
}

.meeting-album-carousel {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 0 calc(50% - 83px) 8px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.meeting-album-carousel::-webkit-scrollbar {
  display: none;
}

.meeting-album-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
}

.meeting-album-cover {
  width: 150px;
  height: 330px;
  border-radius: 22px;
  background: #bfbfbf center / cover no-repeat;
  box-sizing: border-box;
}

.meeting-album-name-wrap {
  position: relative;
  width: 145px;
}

.meeting-album-name-pill {
  width: 145px;
  height: 42px;
  border-radius: 999px;
  background: #bfbfbf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #222222;
  padding: 0 12px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-album-name-more {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(180, 180, 180, 0.35);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #777777;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.meeting-album-name-more:active {
  background: rgba(255, 255, 255, 0.9);
}

.meeting-album-add-fab {
  position: absolute;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #c9c1ee;
  background: #ffffff;
  color: #c9c1ee;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  z-index: 4;
}

.meeting-album-add-fab:active {
  transform: scale(0.96);
}

/* —— 相册内容页 —— */
.meeting-album-content-back {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #555555;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-album-content-title {
  flex-shrink: 0;
  width: 305px;
  max-width: calc(100% - 56px);
  height: 42px;
  margin: 16px auto 20px;
  border: 3px solid #c9c1ee;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #222222;
  text-align: center;
  padding: 0 12px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-album-grid-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 80px;
}

.meeting-album-grid {
  display: grid;
  grid-template-columns: 155px 155px;
  gap: 20px 24px;
  justify-content: center;
  padding: 0 8px;
}

.meeting-album-thumb {
  position: relative;
  width: 155px;
  height: 155px;
  border-radius: 20px;
  background: #bfbfbf center / cover no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.meeting-album-thumb-more {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(180, 180, 180, 0.35);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #777777;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.meeting-album-add-row {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0 calc(18px + env(safe-area-inset-bottom, 0px));
}

.meeting-album-add-img-btn {
  width: 140px;
  height: 42px;
  border: 3px solid #c9c1ee;
  border-radius: 8px;
  background: #ffffff;
  color: #c9c1ee;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* —— 毛玻璃菜单 / 弹层 —— */
.meeting-album-glass-menu {
  position: fixed;
  z-index: 300;
  width: 120px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(180, 180, 180, 0.25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.meeting-album-glass-menu.hidden {
  display: none !important;
}

.meeting-album-glass-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 0 0 18px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #555555;
  text-align: left;
  cursor: pointer;
}

.meeting-album-glass-menu-item:hover,
.meeting-album-glass-menu-item:active {
  background: rgba(255, 255, 255, 0.45);
}

.meeting-album-glass-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.meeting-album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.meeting-album-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.meeting-album-lightbox.hidden {
  display: none !important;
}

.meeting-album-lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  background: #bfbfbf;
  pointer-events: none;
}

.meeting-album-lightbox-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  cursor: pointer;
}

/* 空间维度列表区：为底部相册按钮留空 */
.meeting-space-select-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
