/* Keep reading controls and comments on the watch title's contrast treatment. */
:root:not([data-theme="light"]) .anime-app.anime-app {
  --watch-copy-shadow: 0 1px 3px #02050bcc, 0 2px 8px #02050b73;
}
:root:not([data-theme="light"]) .anime-app.anime-app :is(
  .watch-rating-copy > strong,
  .anime-work-facts-summary > span,
  .anime-work-facts-content h3,
  .detail-comments-heading h3,
  .detail-comments-heading > span,
  .detail-comment-list article time,
  .detail-comment-list article p,
  .detail-comment-composer small,
  .watch-comments .detail-comment-composer textarea,
  .detail-comments-empty,
  .detail-comments-loading,
  .detail-comment-error
) {
  text-shadow: var(--watch-copy-shadow);
}
:root:not([data-theme="light"]) .anime-app.anime-app .watch-comments .detail-comment-composer textarea::placeholder {
  text-shadow: var(--watch-copy-shadow);
}
/* Ellipsis clips text-shadow at the author box. Filter the clipped glyphs instead;
   never filter a bubble or composer, which would cast a rectangular shadow. */
:root:not([data-theme="light"]) .anime-app.anime-app .detail-comment-list article strong {
  text-shadow: none;
  filter: drop-shadow(0 1px 1.5px #02050bcc) drop-shadow(0 2px 4px #02050b73);
}
/* Text controls clip their own paint. The extra padding and negative margin
   keep the first glyph and occupied height fixed while leaving room to fade. */
:root .anime-app.anime-app .watch-comments .detail-comment-composer textarea {
  box-sizing: border-box;
  width: calc(100% + 24px);
  height: 68px;
  min-height: 68px;
  padding: 16px 12px;
  margin: -12px;
}
