.douyin-launch {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8ded7;
  border-radius: 10px;
  background: #edf7f3;
  color: #195746;
  font-weight: 700;
  padding: 9px 14px;
}
.douyin-practice {
  --douyin-ink: #195746;
  --douyin-border: #d5e4de;
  margin-top: 16px;
  scroll-margin-top: 12px;
  border: 1px solid var(--douyin-border);
  border-top: 4px solid var(--douyin-ink);
  border-radius: 14px;
  padding: clamp(14px, 3vw, 24px);
  background: #fff;
  overflow-wrap: anywhere;
}
.douyin-heading, .douyin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.douyin-heading { justify-content: space-between; margin-bottom: 14px; }
.douyin-heading h2 { margin: 0; font-size: 20px; }
.douyin-practice :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c7d7d1;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.douyin-practice textarea { resize: vertical; }
.douyin-practice label { display: block; margin: 10px 0 6px; font-size: 14px; font-weight: 650; }
.douyin-import-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.douyin-heading button, .douyin-actions > *, .douyin-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--douyin-border);
  border-radius: 9px;
  background: #edf7f3;
  color: var(--douyin-ink);
  text-decoration: none;
}
.douyin-practice .douyin-primary { background: var(--douyin-ink); color: white; font-weight: 700; }
.douyin-practice button:disabled { opacity: .65; cursor: default; }
.douyin-video { margin: 12px 0; padding: 12px; border-radius: 11px; background: #f3f7f5; }
.douyin-video h3 { margin: 12px 0 10px; font-size: 16px; line-height: 1.5; }
.douyin-video h3 a { color: var(--douyin-ink); text-underline-offset: 3px; }
#douyin-player iframe {
  display: block;
  width: 100%;
  max-height: min(65vh, 640px);
  margin: 0 auto 10px;
  border: 0;
  border-radius: 8px;
  background: #101916;
}
#douyin-player.mobile-player {
  position: relative;
  overflow: hidden;
  margin: 0 -12px 10px;
  border-radius: 8px;
  background: #101916;
}
#douyin-player.mobile-player iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 324px;
  height: 720px;
  max-height: none;
  margin: 0;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--player-scale,1));
}
#douyin-player iframe:fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  transform: none;
}
.douyin-practice details { border-top: 1px solid var(--douyin-border); padding: 10px 0; }
.douyin-practice summary { padding: 6px 0; cursor: pointer; color: var(--douyin-ink); font-weight: 650; }
#douyin-notes .douyin-actions { margin-top: 10px; }
#douyin-remove { background: #fff; color: #9a3326; }
#douyin-transcript-lines { padding: 0 0 0 22px; margin: 6px 0 0; }
#douyin-transcript-lines li { padding: 5px 0; line-height: 1.7; }
.douyin-note { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: #51665d; }
.douyin-note:empty { display: none; }
