/* 豆瓣电影详情卡片 — 适配社区主题变量 */
.topic-doubanmovie-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 18px 0 0;
}

.db-movie-card {
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-sm, 12px);
  background: var(--card, #fff);
  color: var(--text-soft, #334155);
  box-shadow: var(--card-shadow, none);
}

.db-movie-main {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.db-movie-poster {
  flex: none;
  line-height: 0;
}

.db-movie-poster a,
.db-movie-poster .is-empty {
  position: relative;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--shadow, rgba(15, 23, 42, 0.08));
  /* PC 尺寸由 douban-card.js 按右侧信息区高度写入 */
  aspect-ratio: 9 / 16;
  min-height: 160px;
  width: calc(160px * 9 / 16);
}

.db-movie-poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: var(--chip, #f1f5f9);
}

.db-movie-poster .is-empty {
  background: linear-gradient(145deg, var(--chip, #e2e8f0), var(--card, #f8fafc));
}

.db-movie-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.db-movie-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.db-movie-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #0f172a);
}

.db-movie-title a {
  color: inherit;
  text-decoration: none;
}

.db-movie-title a:hover {
  text-decoration: underline;
}

.db-movie-rating {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  white-space: nowrap;
}

.db-movie-rating i {
  font-size: 14px;
}

.db-movie-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.db-movie-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 2px;
}

.db-movie-meta-row dt {
  flex: none;
  width: 7em;
  margin: 0;
  color: var(--muted, #64748b);
  font-weight: 400;
}

.db-movie-meta-row dd {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--text-soft, #334155);
  word-break: break-word;
}

.db-movie-meta-row dd a {
  color: #2563eb;
  text-decoration: none;
}

.db-movie-meta-row dd a:hover {
  text-decoration: underline;
}

.db-movie-section {
  padding-top: 16px;
}

.db-movie-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.db-movie-plot {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft, #334155);
  white-space: pre-wrap;
  word-break: break-word;
}

.db-movie-reviews {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.db-movie-review {
  padding: 14px 0;
}

.db-movie-review:first-child {
  padding-top: 0;
}

.db-movie-review-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.db-movie-review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #0f172a);
}

.db-movie-review-score {
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
}

.db-movie-review-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.db-movie-review-title a {
  color: var(--text, #0f172a);
  text-decoration: none;
}

.db-movie-review-title a:hover {
  color: #2563eb;
}

.db-movie-review-content {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft, #334155);
}

@media (max-width: 768px) {
  .db-movie-card {
    padding: 14px;
  }
  .db-movie-main {
    flex-direction: column;
    gap: 16px;
  }
  .db-movie-poster {
    width: 100%;
  }
  .db-movie-poster a,
  .db-movie-poster .is-empty {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 9 / 16;
  }
  .db-movie-body {
    width: 100%;
  }
  .db-movie-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .db-movie-meta-row dt {
    width: 6em;
  }
}

/* 兼容旧版内嵌卡片 */
.uc-douban-movie-wrap,
table.uc-douban-movie-wrap {
  display: none !important;
}
