/* 兼容现有 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;
}

@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;
}
