/* 兼容现有 JS 与业务组件 */
.protected-media {
  -webkit-user-drag: none;
  user-select: none;
}

.site-logo {
  display: block;
  width: 100%;
}

.site-logo__brand {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(255, 45, 135, 0.12);
}

.discover-author-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.discover-author-card__badges {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.discover-author-card__badge {
  width: 18px;
  height: 18px;
  display: block;
}

.discover-author-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-author-card__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.discover-author-card__tag--accent {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
}

.discover-author-card__bio {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 8px;
}

.pagination__arrow,
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: rgba(255, 247, 255, 0.82);
  text-decoration: none;
}

.pagination__arrow--disabled {
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.pagination__page--active {
  min-width: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2d87, #8b5cf6);
  color: #fff;
  font-weight: 600;
}

.pagination__ellipsis {
  color: rgba(255, 255, 255, 0.45);
}

.feed-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 32px 12px;
}

.post-stat-btn {
  display: inline-flex;
  align-items: center;
  font: inherit;
  cursor: pointer;
}

.post-stat-btn--active {
  color: #ff2d87;
}

.post-stat-btn--active .heroicon path {
  fill: currentColor;
}

.subscribe-alert {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: linear-gradient(
    135deg,
    rgba(255, 45, 135, 0.92),
    rgba(249, 115, 22, 0.82) 42%,
    rgba(139, 92, 246, 0.78)
  );
  box-shadow:
    0 12px 34px rgba(255, 45, 135, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.subscribe-alert__text {
  color: #fee9bc;
}

.subscribe-alert__link {
  color: #fee9bc;
  text-decoration: none;
}

.subscribe-alert__cta {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subscribe-alert__link:hover {
  color: #fee9bc;
  text-decoration: underline;
}

.subscribe-alert__cta:hover {
  color: #fff;
  text-decoration: underline;
}

.free-alert {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.95),
    rgba(34, 197, 94, 0.88) 45%,
    rgba(5, 150, 105, 0.82)
  );
  box-shadow:
    0 12px 34px rgba(16, 185, 129, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.free-alert__text {
  color: #ecfdf5;
}

@media (min-width: 1024px) {
  .mobile-bottom {
    display: none !important;
  }
}

.post-card__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 26px;
  background: #000;
}

.post-card__media {
  position: relative;
}

.post-card__photo-strip {
  position: relative;
  overflow: hidden;
}

.post-card__photo-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: 6px;
  overflow: hidden;
}

.post-card__photo-cell {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.post-card__photo-strip .post-card__photo-cell img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.post-card__photo-more {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.post-card__photo-strip [data-image-locked="1"] {
  cursor: default;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 18, 0.92);
  padding: 16px;
  box-sizing: border-box;
}

.media-lightbox.is-open {
  display: flex;
}

.media-lightbox__stage {
  max-width: min(100%, 1200px);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  user-select: none;
  border-radius: 20px;
}

.media-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.media-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  border-radius: 999px;
}

.media-lightbox__nav--prev {
  left: 8px;
}

.media-lightbox__nav--next {
  right: 8px;
}

@media (max-width: 767px) {
  .media-lightbox__nav {
    display: none !important;
  }
}

.media-lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.video-player-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.video-player-modal.is-open {
  display: block;
}

.video-player-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 18, 0.9);
}

.video-player-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  --video-aspect-w: 16;
  --video-aspect-h: 9;
  width: min(90vw, calc(90vh * var(--video-aspect-w) / var(--video-aspect-h)));
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.video-player-modal__stage {
  width: 100%;
  line-height: 0;
}

.video-player-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: var(--video-aspect-w) / var(--video-aspect-h);
  object-fit: contain;
  background: #000;
}

.video-player-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.subscribe-modal[hidden] {
  display: none !important;
}

.subscribe-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 18, 0.86);
}

.subscribe-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.subscribe-modal__card {
  border-radius: 32px;
  overflow: hidden;
}

.subscribe-modal__cover-wrap {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.subscribe-modal__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subscribe-modal__cover--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff2d87, #11265f);
}

.subscribe-modal__body {
  padding: 0 24px 24px;
}

.subscribe-modal__avatar-wrap {
  width: 96px;
  height: 96px;
  margin: -48px auto 0;
}

.subscribe-modal__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
}

.subscribe-modal__avatar--placeholder {
  display: block;
  background: #ddd;
}

.subscribe-modal__title {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.subscribe-modal__title-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
}

.subscribe-modal__title-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  word-break: break-word;
}

.subscribe-modal__wallet-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.subscribe-modal__wallet-icon,
.subscribe-modal__wallet-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  display: block;
}

.subscribe-modal__wallet-icon {
  color: #22d3ee;
}

.subscribe-modal__wallet {
  display: block;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.subscribe-modal__wallet input {
  display: none;
}

.subscribe-modal__wallet-balance {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.subscribe-modal__recharge {
  margin-left: 6px;
  color: #22d3ee;
}

.subscribe-modal__error {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #fecaca;
}

.subscribe-modal__submit,
.subscribe-modal__cancel {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.subscribe-modal__submit {
  background: linear-gradient(135deg, #ff2d87, #8b5cf6);
  color: #fff;
}

.subscribe-modal__cancel {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

body.subscribe-modal-open,
body.media-lightbox-open,
body.video-player-modal-open {
  overflow: hidden;
}

/* 首页 / 发现页透明搜索框 */
.feed-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.feed-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff7ff;
  font-size: 0.95rem;
  padding: 0.85rem 1.15rem;
}

.feed-search__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.feed-search__btn {
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.feed-search__btn:hover {
  background: rgba(255, 45, 135, 0.35);
}

/* 上拉加载 / 下拉刷新 */
.feed-scroll-pull {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.feed-scroll-pull.is-active,
.feed-scroll-pull.is-ready,
.feed-scroll-pull.is-loading {
  color: rgba(255, 255, 255, 0.85);
}

.feed-scroll-pull.is-ready {
  color: #f9a8d4;
}

.feed-scroll-status {
  padding: 1.25rem 0 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.feed-scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

[data-feed-scroll] {
  transition: transform 0.15s ease;
}

/* 个人中心提交充值：标题 + 下方红色优惠提示 */
.account-submit-wrap {
  width: 100%;
}

#account-submit-btn.account-submit-btn,
.account-submit-btn {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  text-align: center;
  line-height: 1.25;
}

.account-submit-btn__title {
  display: block !important;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

.account-submit-btn__tip {
  display: block !important;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #f4ff36 !important;
}

@media (max-width: 767px) {
  .account-submit-btn__tip {
    font-size: 14px;
  }
}

.account-submit-btn.is-disabled,
.account-submit-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.account-pay-notice {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5c518;
  color: #1a1a1a;
}

.account-pay-notice__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-pay-notice__text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.account-pay-notice__icon {
  flex: 0 0 auto;
  margin-top: 0.05em;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}

.account-pay-notice__copy {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 640px) {
  .account-pay-notice__text {
    font-size: 14px;
  }
}

/* 注册：验证码输入 + 发送按钮同一行 */
.auth-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.auth-code-row__field {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.auth-code-row__input {
  width: 100%;
  min-width: 0;
}

.auth-code-row__btn {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 104px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.auth-code-row__btn:disabled,
.auth-code-row__btn.is-cooling {
  background: #d1d5db;
  border-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

.auth-code-row--dark .auth-code-row__btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.auth-code-row--dark .auth-code-row__btn:disabled,
.auth-code-row--dark .auth-code-row__btn.is-cooling {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
}

.auth-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 3000;
  transform: translate(-50%, -12px);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-toast--success {
  background: #e0f2fe;
  color: #16a34a;
  font-weight: 600;
}

.auth-toast--warning {
  background: rgba(146, 64, 14, 0.95);
  color: #fff;
}

.auth-page-msg--success,
.auth-login-card__error--success {
  background: #e0f2fe !important;
  color: #16a34a !important;
  font-weight: 600;
}

.auth-page-msg--error {
  background: rgba(244, 63, 94, 0.15);
  color: #fecdd3;
}


