.popup-page {
  position: relative;
  min-height: 100%;
  background: #f3f5f8;
  overflow-x: hidden;
}

.popup-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #f3f5f8;
  padding-bottom: 20px;
}

.popup-statusbar-spacer {
  height: 48px;
  flex-shrink: 0;
}

.popup-topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px 2px 14px;
  width: 100%;
}

.popup-search {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  background: #ffffff;
  border-radius: 17px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-search-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.popup-search-text {
  font-size: 13px;
  line-height: 18px;
  color: #b7bcc4;
  white-space: nowrap;
}

.popup-nav-item {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}

.popup-nav-icon {
  width: 22px;
  height: 18px;
}

.popup-nav-label {
  font-size: 10px;
  line-height: 14px;
  color: #3a3a3c;
  white-space: nowrap;
}

.popup-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  width: 100%;
  overflow-x: auto;
}

.popup-tab-follow {
  position: relative;
  width: 28px;
  height: 26px;
  flex-shrink: 0;
}

.popup-tab-follow-text {
  position: absolute;
  left: 0;
  top: 3.5px;
  font-size: 14px;
  line-height: 19px;
  color: #8d929a;
  white-space: nowrap;
}

.popup-tab-badge {
  position: absolute;
  left: 22px;
  top: -2px;
  background: #ff3b30;
  border: 1px solid #ffffff;
  border-radius: 7px;
  padding: 1px 4.5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  color: #ffffff;
}

.popup-tab-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.popup-tab-active-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  color: #222222;
  white-space: nowrap;
}

.popup-tab-indicator {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #2f6bff;
}

.popup-tab {
  font-size: 14px;
  line-height: 19px;
  color: #8d929a;
  white-space: nowrap;
  flex-shrink: 0;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 12px 12px;
  width: 100%;
}

.popup-section-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.popup-section-card--listen {
  gap: 16px;
  padding-bottom: 16px;
}

.popup-section-card--hot {
  gap: 16px;
  padding-bottom: 16px;
  background: linear-gradient(180deg, #ffe8e3 0%, #ffffff 45%, #ffffff 100%);
}

.popup-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.popup-section-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 23px;
  color: #1c1c1e;
}

.popup-section-title-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 23px;
}

.popup-title-red {
  color: #ff2a1f;
}

.popup-hot-icon {
  width: 14px;
  height: 16px;
  flex-shrink: 0;
}

.popup-hot-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 23px;
  color: #ff3b30;
}

.popup-section-more {
  font-size: 13px;
  line-height: 18px;
  color: #c4c7ce;
}

.popup-video-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
}

.popup-video-card {
  width: 204px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.popup-video-card[data-interactive="true"] {
  cursor: pointer;
}

.popup-video-thumb {
  position: relative;
  width: 204px;
  height: 114px;
  border-radius: 8px;
  background: #1b140e;
  overflow: hidden;
}

.popup-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.popup-video-play {
  position: absolute;
  left: 85px;
  top: 40px;
  width: 34px;
  height: 34px;
}

.popup-duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  color: #ffffff;
}

.popup-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.popup-tag-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.popup-tag {
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
}

.popup-tag--story {
  background: #fff1e3;
  color: #f0a04b;
}

.popup-tag--ai {
  background: #ffe6ee;
  color: #ee7ea0;
}

.popup-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16px;
  width: 100%;
}

.popup-source-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.popup-source-avatar-text {
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: #c72429;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-source-avatar-text--lg {
  width: 16px;
  height: 16px;
  border-radius: 8px;
}

.popup-source-avatar-img {
  width: 14px;
  height: 14px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.popup-source-avatar-img--lg {
  width: 16px;
  height: 16px;
  border-radius: 8px;
}

.popup-source-name {
  font-size: 11px;
  line-height: 16px;
  color: #666666;
  white-space: nowrap;
}

.popup-source-time {
  font-size: 10px;
  line-height: 14px;
  color: #8e939c;
  white-space: nowrap;
}

.popup-list-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.popup-list-card-top {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.popup-list-card-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popup-list-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1c1c1e;
}

.popup-listen-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.popup-listen-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-listen-play {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 28px;
  height: 28px;
}

.popup-listen-duration {
  position: absolute;
  right: 4px;
  top: 4px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  color: #ffffff;
}

.popup-hot-thumb {
  width: 108px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Modal overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  max-width: 390px;
  margin-inline: auto;
  z-index: 30;
  background: rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px 24px;
}

.popup-overlay.is-hidden {
  display: none;
}

.popup-overlay-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 0 22px;
  pointer-events: none;
}

.popup-overlay-time {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.popup-overlay-icons {
  width: 66px;
  height: 14px;
}

.popup-modal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 286px;
}

.popup-modal-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup-modal-poster {
  position: relative;
  width: 100%;
  height: 178px;
}

.popup-modal-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-modal-poster-grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.popup-modal-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
  color: #ffffff;
}

.popup-modal-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-modal-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-modal-source {
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-modal-source-avatar {
  width: 18px;
  height: 18px;
}

.popup-modal-source-name {
  font-size: 11px;
  color: #6b7280;
}

.popup-modal-tag {
  background: #fff3e6;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #d97706;
}

.popup-modal-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 26px;
  color: #14171f;
}

.popup-modal-desc {
  font-size: 13px;
  line-height: 20px;
  color: #5c6470;
}

.popup-modal-cta {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(90deg, #f2523d 0%, #d63426 100%);
  box-shadow: 0 6px 14px rgba(217, 56, 41, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.popup-modal-cta-icon {
  width: 14px;
  height: 14px;
}

.popup-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-modal-close-icon {
  width: 14px;
  height: 14px;
}
