:root {
  --bg: #fff;
  --text: #0f1419;
  --muted: #536471;
  --line: #eff3f4;
  --blue: #1d9bf0;
  --blue2: #1a8cd8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: min(100%, 600px);
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
}

.body { padding: 16px; }

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e1e8ed;
  flex: 0 0 48px;
}

.avatar.ph {
  background: linear-gradient(135deg, #cfd9de, #aab8c2);
}

.aname {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.ahandle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.title {
  font-size: clamp(22px, 6vw, 29px);
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 14px;
  letter-spacing: -0.01em;
}

.banner {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
  margin: 0 0 16px;
  object-fit: cover;
  max-height: 320px;
}

.blk { margin: 14px 0; }
.blk.text {
  font-size: 17px;
  line-height: 1.65;
  word-wrap: break-word;
  white-space: pre-wrap;
  color: var(--text);
}

.videobox {
  position: relative;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(85vh, 920px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  /* 加载到真实尺寸后由 JS 写入 --video-ar */
  aspect-ratio: var(--video-ar, 9 / 16);
  margin: 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.videobox video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.videobox .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.videobox .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: opacity .2s ease;
}

.videobox .play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.videobox .lock {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 99px;
  pointer-events: none;
}

.videobox.is-playing .play,
.videobox.is-playing .lock,
.videobox.is-playing .poster {
  opacity: 0;
  pointer-events: none;
}

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.footer {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .card {
    border-left: 0;
    border-right: 0;
  }
}
