/* Subtitles: Roya-drawn cues (Arabic RTL), the CC button state, size choice, the CC marker on title pages. */
.player .p-subs { position: absolute; inset-inline: max(16px, env(safe-area-inset-left)); bottom: max(6%, 28px); z-index: 2; display: block;
  text-align: center; pointer-events: none; transition: bottom .3s var(--ease, ease); unicode-bidi: plaintext;
  font-family: "Readex Pro", system-ui, sans-serif; font-weight: 500; line-height: 1.5; color: #fff;
  font-size: clamp(16px, 2.4vw, 34px); }
.player .p-subs:empty { display: none; }
.player .p-subs span { display: inline; padding: .12em .5em; border-radius: .3em; background: rgba(0,0,0,.62);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.player .p-subs[dir="rtl"] { font-size: clamp(17px, 2.6vw, 36px); line-height: 1.65; letter-spacing: 0; }
.player.ui-on .p-subs { bottom: 150px; }
.player[data-subsize="s"] .p-subs { font-size: clamp(13px, 1.8vw, 26px); }
.player[data-subsize="l"] .p-subs { font-size: clamp(20px, 3.2vw, 46px); }
.player .p-controls [data-a="subs"].on { color: var(--red-2, #ff5a5f); }
@media (max-width: 600px) {
  .player .p-subs { font-size: 15px; bottom: 22px; }
  .player .p-subs[dir="rtl"] { font-size: 16px; }
  .player[data-subsize="s"] .p-subs { font-size: 13px; }
  .player[data-subsize="l"] .p-subs { font-size: 19px; }
  .player.ui-on .p-subs { bottom: 118px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .player .p-subs { font-size: 16px; bottom: max(14px, env(safe-area-inset-bottom)); inset-inline: max(48px, env(safe-area-inset-left)); }
  .player[data-subsize="s"] .p-subs { font-size: 13px; }
  .player[data-subsize="l"] .p-subs { font-size: 20px; }
  .player.ui-on .p-subs { bottom: 96px; }
}
/* the episode wrap: CC button + menu under the top bar */
.yts .yts-cc.on { color: var(--red-2, #ff5a5f); }
.yts .yts-cc-menu { position: absolute; top: 62px; bottom: auto; inset-inline-end: clamp(10px, 2vw, 24px); z-index: 6; }
/* title page marker */
.tp-meta .tp-cc { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px;
  font-size: .82em; font-weight: 600; letter-spacing: .02em; color: var(--text-2, #d6d6dc); }
