/* ShortDramaRank Telegram quick link
 * 独立样式表：不依赖页面是否加载了 styles.css / styles-simple.css。
 * 用 #tgQuickLink (id) 保证不会被 .nav a / .button-link 等站点规则覆盖。
 */
#tgQuickLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
  margin-inline-start: 6px;
  padding: 7px 12px;
  border: 1px solid #229ed9;
  border-radius: 999px;
  background: #229ed9;
  color: #fff;
  font: 600 11px/1.1 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(34, 158, 217, .22);
}

#tgQuickLink:visited { color: #fff; }

#tgQuickLink:hover,
#tgQuickLink:focus-visible {
  background: #1b8ec5;
  border-color: #1b8ec5;
  color: #fff;
}

#tgQuickLink:focus-visible {
  outline: 2px solid #ffb000;
  outline-offset: 2px;
}

#tgQuickLink .tg-quick-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

#tgQuickLink .tg-quick-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
  text-align: start;
}

#tgQuickLink .tg-quick-text small {
  font-size: 9px;
  font-weight: 500;
  opacity: .85;
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  #tgQuickLink .tg-quick-text small { display: none; }
}

@media (max-width: 620px) {
  #tgQuickLink {
    width: 34px;
    height: 34px;
    padding: 0;
    margin-inline-start: 2px;
    border-radius: 50%;
  }
  #tgQuickLink .tg-quick-text { display: none; }
  #tgQuickLink .tg-quick-icon { width: 17px; height: 17px; }
}

/* 无 .site-header 的页面：右下角悬浮入口 */
#tgQuickLink.tg-quick-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: auto;
  height: auto;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

#tgQuickLink.tg-quick-float .tg-quick-text { display: flex; }

/* ---------------------------------------------------------------------------
 * 剧内容页显著 CTA（drama 详情页 / watch 落地页）
 * 插在 .detail-hero / .watch-landing-hero 之后，作为首屏下方的独立通栏卡片。
 * .drama-detail 是 grid，新 aside 会自动占一整行；.watch-landing 是普通块。
 * 全部用 #tgDramaCta 前缀，避免被站点 .panel / a / strong 等规则覆盖。
 * ------------------------------------------------------------------------- */
#tgDramaCta {
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
  margin: 4px 0 2px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 105, 165, .35);
  border-radius: 16px;
  background: linear-gradient(115deg, #229ed9 0%, #1b83bd 52%, #12639a 100%);
  color: #fff;
  font: 400 14px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 26px rgba(16, 88, 136, .2);
  text-align: start;
}

#tgDramaCta * { box-sizing: border-box; }

#tgDramaCta .tg-drama-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  color: #fff;
}

#tgDramaCta .tg-drama-icon-svg {
  display: block;
  width: 26px;
  height: 26px;
}

#tgDramaCta .tg-drama-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

#tgDramaCta .tg-drama-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  text-transform: none;
}

#tgDramaCta .tg-drama-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd35c;
  box-shadow: 0 0 0 3px rgba(255, 211, 92, .25);
}

#tgDramaCta .tg-drama-title {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.01em;
}

#tgDramaCta .tg-drama-desc {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.55;
}

#tgDramaCta .tg-drama-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: #12639a;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  transition: transform .15s ease, box-shadow .15s ease;
}

#tgDramaCta .tg-drama-button:visited { color: #12639a; }

#tgDramaCta .tg-drama-button:hover,
#tgDramaCta .tg-drama-button:focus-visible {
  color: #0d4d78;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

#tgDramaCta .tg-drama-button:focus-visible {
  outline: 2px solid #ffd35c;
  outline-offset: 3px;
}

#tgDramaCta .tg-drama-button-icon {
  display: block;
  width: 15px;
  height: 15px;
}

#tgDramaCta .tg-drama-arrow {
  font-size: 15px;
  line-height: 1;
}

/* RTL 语言（阿拉伯语等）：箭头方向翻转，文字对齐跟随 dir=auto */
#tgDramaCta[dir="rtl"] .tg-drama-arrow { transform: scaleX(-1); }
#tgDramaCta[dir="rtl"] .tg-drama-body { align-items: flex-start; }

@media (max-width: 860px) {
  #tgDramaCta { flex-wrap: wrap; gap: 14px; padding: 18px; }
  #tgDramaCta .tg-drama-body { flex-basis: calc(100% - 72px); }
  #tgDramaCta .tg-drama-button { width: 100%; }
}

@media (max-width: 620px) {
  #tgDramaCta {
    gap: 12px;
    margin: 2px 0;
    padding: 16px;
    border-radius: 14px;
  }
  #tgDramaCta .tg-drama-icon { width: 44px; height: 44px; }
  #tgDramaCta .tg-drama-icon-svg { width: 22px; height: 22px; }
  #tgDramaCta .tg-drama-body { flex-basis: calc(100% - 56px); }
  #tgDramaCta .tg-drama-title { font-size: 16px; }
  #tgDramaCta .tg-drama-desc { font-size: 12px; }
  #tgDramaCta .tg-drama-button { padding: 12px 16px; }
}
