/* 全屏刷短视频 */
.bbs-sv-feed-app {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: calc(100vh - 120px);
  min-height: 480px;
  background: #000;
  border-radius: var(--main-radius);
  overflow: hidden;
}

@media (max-width: 768px) {
  .bbs-sv-feed-app {
    max-width: none;
    height: calc(100vh - 60px);
    border-radius: 0;
    margin: 0 -15px;
    width: calc(100% + 30px);
  }
}

.bbs-sv-feed-swiper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bbs-sv-feed-swiper,
.bbs-sv-feed-swiper .swiper-wrapper,
.bbs-sv-feed-slide {
  width: 100%;
  height: 100%;
}

.bbs-sv-feed-slide {
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bbs-sv-feed-end {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 6;
  text-align: center;
  pointer-events: none;
}

.bbs-sv-feed-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.bbs-sv-feed-slide .bbs-sv-feed-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.bbs-sv-feed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 16px 72px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  pointer-events: none;
}

.bbs-sv-feed-overlay a,
.bbs-sv-feed-overlay button,
.bbs-sv-feed-mode-tabs {
  pointer-events: auto;
}

.bbs-sv-feed-actions {
  position: absolute;
  right: 12px;
  bottom: 80px;
  z-index: 25;
  pointer-events: auto;
}

.bbs-sv-feed-actions .but.cir {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1.1;
}

.bbs-sv-feed-actions .count {
  font-size: 10px;
  margin-top: 2px;
}

.bbs-sv-feed-app > .bbs-sv-feed-mode-tabs {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 100;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bbs-sv-feed-mode-tabs .but,
.bbs-sv-feed-mode-tabs .bbs-sv-feed-mode {
  position: relative;
  z-index: 1;
  font-size: 12px;
  padding: 6px 12px;
  min-height: 32px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.bbs-sv-feed-mode-tabs .but.active {
  background: var(--theme-color, #f04494);
}

.bbs-sv-feed-title {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bbs-sv-feed-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  max-height: 3.6em;
  overflow: hidden;
}

.bbs-sv-feed-tax .but {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.bbs-sv-feed-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.bbs-sv-feed-empty {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.bbs-sv-feed-empty.hide {
  display: none !important;
}

.bbs-sv-feed-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

#forum.bbs-sv-feed-page .content-wrap {
  max-width: 100%;
}

#forum.bbs-sv-feed-page .sidebar {
  display: none !important;
}

/* 抖音式评论弹层 */
.bbs-sv-comments-panel {
  --sv-c-bg: #fff;
  --sv-c-text: #161823;
  --sv-c-muted: #8a8b91;
  --sv-c-line: rgba(22, 24, 35, 0.08);
  --sv-c-input: #f1f2f5;
  --sv-c-theme: var(--theme-color, #fe2c55);
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  color: var(--sv-c-text);
}

.bbs-sv-comments-panel:not(.hide) {
  pointer-events: auto;
}

.bbs-sv-comments-panel.hide {
  display: none !important;
}

.bbs-sv-comments-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bbs-sv-comments-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70%;
  min-height: 38%;
  background: var(--sv-c-bg);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.bbs-sv-comments-drag {
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
}

.bbs-sv-comments-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bbs-sv-comments-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--sv-c-line);
}

.bbs-sv-comments-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-c-text);
}

.bbs-sv-comments-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--sv-c-input);
  color: var(--sv-c-muted);
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.bbs-sv-comments-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 8px;
}

.bbs-sv-comments-footer {
  flex-shrink: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sv-c-line);
  background: var(--sv-c-bg);
}

.bbs-sv-comment-compose {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bbs-sv-comment-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sv-c-input);
}

.bbs-sv-comments-panel .bbs-sv-comment-avatar img,
.bbs-sv-comments-panel .bbs-sv-comment-avatar-img,
.bbs-sv-comments-panel .bbs-sv-comment-avatar .avatar-img {
  display: block;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
}

.bbs-sv-comment-input-wrap {
  flex: 1;
  min-width: 0;
}

.bbs-sv-comments-panel .bbs-sv-comment-textarea,
.bbs-sv-comments-panel .bbs-sv-comment-textarea.form-control {
  display: block;
  width: 100%;
  min-height: 36px;
  max-height: 88px;
  margin: 0;
  padding: 8px 14px;
  border: none !important;
  border-radius: 18px;
  background: var(--sv-c-input) !important;
  box-shadow: none !important;
  resize: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sv-c-text);
}

.bbs-sv-comments-panel .bbs-sv-comment-textarea::placeholder {
  color: var(--sv-c-muted);
}

.bbs-sv-comments-panel .bbs-sv-comment-textarea:focus {
  outline: none;
  background: #ebecef !important;
}

.bbs-sv-comment-submit {
  flex: 0 0 auto;
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 18px;
  background: var(--sv-c-theme);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
  cursor: pointer;
  white-space: nowrap;
}

.bbs-sv-comment-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bbs-sv-comment-login,
.bbs-sv-comment-closed {
  text-align: center;
  font-size: 13px;
  color: var(--sv-c-muted);
  padding: 4px 0;
}

.bbs-sv-comment-login a {
  color: var(--sv-c-theme);
  font-weight: 500;
}

.bbs-sv-commentlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbs-sv-comment-item {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.bbs-sv-comment-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sv-c-line);
}

.bbs-sv-comment-item:last-child .bbs-sv-comment-row {
  border-bottom: none;
}

.bbs-sv-comment-body {
  flex: 1;
  min-width: 0;
}

.bbs-sv-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.bbs-sv-comment-author {
  font-weight: 600;
  color: var(--sv-c-text);
}

.bbs-sv-comment-time {
  color: var(--sv-c-muted);
}

.bbs-sv-comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--sv-c-text);
  word-break: break-word;
}

.bbs-sv-comments-panel .bbs-sv-comment-text p {
  margin: 0 0 4px;
}

.bbs-sv-comments-panel .bbs-sv-comment-text p:last-child {
  margin-bottom: 0;
}

.bbs-sv-comments-list .commentlist,
.bbs-sv-comments-list .zib-widget,
.bbs-sv-comments-list .box-body,
.bbs-sv-comments-list .null-box {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.bbs-sv-comment-empty {
  list-style: none;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--sv-c-muted);
}

.bbs-sv-feed-app.is-comments-open .bbs-sv-feed-swiper {
  height: 38%;
  transition: height 0.28s ease;
}

.bbs-sv-feed-app.is-comments-open .bbs-sv-comments-mask {
  opacity: 1;
}

.bbs-sv-feed-app.is-comments-open .bbs-sv-comments-sheet {
  transform: translateY(0);
}

.bbs-sv-feed-app.is-comments-open .bbs-sv-feed-overlay {
  opacity: 0.35;
  pointer-events: none;
}

.bbs-sv-feed-app.is-comments-open .bbs-sv-feed-actions {
  opacity: 0.4;
  pointer-events: none;
}

.bbs-sv-feed-action-like.actived,
.bbs-sv-feed-action-like.actived i {
  color: #f04494;
}

.bbs-sv-feed-actions button.but.cir {
  border: none;
  cursor: pointer;
}
