/* 墙上的电视 v2：照片 + 视频混播面板 */
.tv2-sheet {
  max-height: 94dvh;
}

.tv2-sheet .tv2-frame {
  display: block;
  line-height: 0;
  max-width: 100%;
}

.tv2-sheet .tv2-frame .tv-photo,
.tv2-sheet .tv2-frame .tv-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62dvh;
  object-fit: contain;
  background: #000;
  animation: tvIn 0.45s ease both;
}

.tv2-sheet .tv2-frame .tv-video {
  outline: none;
}

.tv2-sheet .tv-caption {
  flex-wrap: wrap;
  row-gap: 4px;
}

.tv2-sheet .tv-likes {
  font-size: 12px;
  color: var(--muted, #9b86b3);
}

.tv2-sheet .tv-text:empty {
  display: none;
}

.tv2-sheet .tv-from:empty {
  display: none;
}

.tv2-foot {
  padding: 8px 16px 12px;
  background: #17111f;
  flex-shrink: 0;
}

.tv2-hint {
  font-size: 11px;
  color: #7d6d90;
  letter-spacing: 0.5px;
  padding: 2px 0;
}

/* 墙上那块屏幕：有视频时中间一个播放标记 */
#tv2Badge {
  transition: opacity 0.2s ease;
}

@media (max-width: 720px) {
  .tv2-sheet .tv2-frame .tv-photo,
  .tv2-sheet .tv2-frame .tv-video {
    max-height: 56dvh;
  }
  .tv2-sheet .tv-text {
    font-size: 12.5px;
  }
}

/* 播放进度条：一张照片走满一条，到点自动下一张 */
.tv2-sheet .tv2-prog {
  height: 3px;
  background: #241a33;
  overflow: hidden;
  flex-shrink: 0;
}

.tv2-sheet .tv2-prog > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f3e3c8, #e2b878);
  box-shadow: 0 0 6px rgba(227, 184, 120, 0.45);
  border-radius: 0 2px 2px 0;
}

@media (max-width: 720px) {
  .tv2-sheet .tv2-prog {
    height: 2.5px;
  }
}
