/* Hot100 复习跳转卡片（仿 LeetCode Hot100 复习横幅，紧凑版） */
.hot100-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}

.hot100-card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(100%, 560px);
  box-sizing: border-box;
  overflow: hidden;
  min-height: 68px;
  padding: 0 18px 0 0;
  border-radius: 12px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  background: #fafafa;
  color: #171717;
  box-shadow: none;
}

.hot100-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 23, 23, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 23, 0.09) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.55) 36%, transparent 74%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.55) 36%, transparent 74%);
}

/* 左侧：默认火焰图标（居中） */
.hot100-media--default {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  padding: 12px 10px 12px 14px;
  z-index: 1;
}

.hot100-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hot100-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* 左侧：用户自定义图（绝对定位贴左，铺满卡片全高） */
.hot100-card--has-photo {
  padding-left: 96px;
}

.hot100-media--photo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 96px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fafafa;
  z-index: 1;
}

.hot100-media--photo .md-img-wrap,
.hot100-media--photo .md-img-box {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hot100-media--photo .md-img-watermark,
.hot100-media--photo .md-img-skeleton {
  display: none !important;
}

.markdown-body .hot100-media--photo img,
.hot100-media--photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0;
  box-shadow: none;
  cursor: default;
}

.hot100-card--has-photo .hot100-body {
  padding-left: 14px;
}

/* 右侧：标题 + 胶囊按钮（两行，仅按钮可点） */
.hot100-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 0;
}

.hot100-text {
  display: block;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  color: #171717;
  letter-spacing: 0.15px;
}

.hot100-text strong {
  font-weight: 650;
  color: inherit;
}

.hot100-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
  border: 1px solid #171717;
  background: #171717;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hot100-btn:hover {
  color: #ffffff;
  text-decoration: none;
  background: #2a2a2a;
  box-shadow: none;
  transform: none;
}

.hot100-btn:active {
  transform: translateY(0) scale(0.98);
}

.hot100-btn-text {
  display: inline-block;
}

.hot100-btn-text strong {
  font-weight: 700;
  color: inherit;
}

.hot100-btn-arrow {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.hot100-btn:hover .hot100-btn-arrow {
  transform: translateX(2px);
}

.theme--dark .hot100-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0d1117;
  box-shadow: none;
}

.theme--dark .hot100-card::after {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}

.theme--dark .hot100-text {
  color: #f3efe8;
}

.theme--dark .hot100-media--photo {
  background: #0d1117;
}

.theme--dark .hot100-btn {
  border-color: #f3efe8;
  background: #f3efe8;
  color: #111 !important;
  box-shadow: none;
}

.theme--dark .hot100-btn:hover {
  background: #fff;
  color: #111 !important;
}

.markdown-body a.hot100-btn,
html.page--codenote.codenote-v2 .markdown-body a.hot100-btn {
  background: #171717;
  border: 1px solid #171717;
  border-bottom-color: #171717;
  color: #ffffff;
  text-decoration: none;
}

.markdown-body a.hot100-btn:hover,
html.page--codenote.codenote-v2 .markdown-body a.hot100-btn:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  border-bottom-color: #2a2a2a;
  color: #ffffff;
  text-decoration: none;
}

html.theme--dark .markdown-body a.hot100-btn,
html.theme--dark.page--codenote.codenote-v2 .markdown-body a.hot100-btn {
  background: #f3efe8;
  border-color: #f3efe8;
  border-bottom-color: #f3efe8;
  color: #111;
}

html.theme--dark .markdown-body a.hot100-btn:hover,
html.theme--dark.page--codenote.codenote-v2 .markdown-body a.hot100-btn:hover {
  background: #fff;
  border-color: #fff;
  border-bottom-color: #fff;
  color: #111;
}
