/* shortdramadata.com 评分 / 热播页 Telegram 频道宣传（v3 低调版）
   仅由 layout() 在 active="hot" 的页面引入；CSP 为 style-src 'self'，禁止 inline style。
   位置：由 server.py 的 telegram_cta_mid() 插在正文区块边界最接近页面中点处。
   样式：浅色细边卡片，无渐变/阴影/动画，与站点 #edf1ec 卡片风格一致。 */

.tg-channel-cta {
  width: 100%;
  max-width: var(--max, 1240px);
  box-sizing: border-box;
  margin: 26px auto 0;
  padding: 0 28px;
}

/* 插进带内边距的列表容器时去掉双重留白，并保证 grid 布局里整行占满。 */
.drama-index-shell .tg-channel-cta,
.hot-market-section .tg-channel-cta {
  max-width: none;
  margin: 22px 0 0;
  padding: 0;
}

.tg-channel-cta { grid-column: 1 / -1; }

.tg-channel-cta-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #cfe0ee;
  border-radius: 10px;
  background: #f4f9fc;
  color: #1f3a52;
}

.tg-channel-cta-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2eff8;
  color: #229ed9;
}

.tg-channel-cta-icon svg { display: block; }

.tg-channel-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 240px;
}

.tg-channel-cta-copy strong,
.tg-channel-cta-desc {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tg-channel-cta-copy strong {
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.005em;
}

.tg-channel-cta-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: #5b7186;
}

.tg-channel-cta-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b9d6ea;
  color: #1c7ab5;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}

.tg-channel-cta-button:hover,
.tg-channel-cta-button:focus-visible {
  border-color: #229ed9;
  color: #12639a;
}

.tg-channel-cta-button:focus-visible { outline: 2px solid var(--lime, #d9efbd); outline-offset: 2px; }
.tg-channel-cta-arrow { font-size: 13px; line-height: 1; }

@media (max-width: 620px) {
  .tg-channel-cta { margin: 18px auto 0; padding: 0 16px; }
  .drama-index-shell .tg-channel-cta,
  .hot-market-section .tg-channel-cta { margin: 16px 0 0; padding: 0; }
  .tg-channel-cta-inner { gap: 10px; padding: 11px 13px; }
  .tg-channel-cta-copy strong { font-size: 12.5px; }
  .tg-channel-cta-desc { font-size: 10.5px; }
}
