.post-container .code-block,
.entry-content .code-block {
  margin: 1.75rem 0;
  border: 1px solid #303544;
  border-radius: 10px;
  overflow: hidden;
  background: #141823;
  box-shadow: 0 12px 28px rgba(12, 14, 20, 0.24);
}

.post-container .code-header,
.entry-content .code-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem;
  background: #1b2030;
  border-bottom: 1px solid #303544;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.2;
}

.post-container .code-dots,
.entry-content .code-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-container .code-dots span,
.entry-content .code-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  display: inline-block;
}

.post-container .code-dots .d1,
.entry-content .code-dots .d1 {
  background: #ff5f57;
}

.post-container .code-dots .d2,
.entry-content .code-dots .d2 {
  background: #febc2e;
}

.post-container .code-dots .d3,
.entry-content .code-dots .d3 {
  background: #28c840;
}

.post-container .code-filename,
.entry-content .code-filename {
  color: #d8deeb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.post-container .code-lang,
.entry-content .code-lang {
  color: #95a1bf;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.post-container .code-block .highlight,
.entry-content .code-block .highlight {
  margin: 0;
  background: transparent !important;
}

.post-container .code-block pre,
.entry-content .code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  background: transparent !important;
}

.post-container .code-block pre code,
.entry-content .code-block pre code {
  background: transparent;
  padding: 0;
}
