/* Optional playback panels only; homepage continuation lives in site-ui.css. */
.detail-playback > .trial-resume { background: #d5eca718; color: #e0efc2; border: 1px solid #d5eca740; font-size: 11px; }
#watch-dialog .watch-sidebar { padding: 0; background: #1b1d23; border-radius: 16px; overflow: hidden; border-color: #a1a5b02b; }
.watch-side-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; background: #131418; border-bottom: 1px solid #999daa20; }
.watch-side-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #8f93a1; font: inherit; font-size: 12px; }
.watch-side-tabs button[aria-selected=true] { color: #e6f3cb; background: #31343e; box-shadow: 0 3px 9px #0002; }
.watch-side-panel { padding: 17px; min-height: 300px; }
.watch-side-panel > h3 { margin: 2px 0 17px; font-size: 14px; font-weight: 500; }
#watch-dialog .watch-episode-heading { margin: 0 0 13px; padding: 0; border: 0; }
.watch-episode-tools { margin-bottom: 15px; }
#watch-episode-query { width: 100%; min-width: 0; min-height: 42px; padding: 10px 11px; border: 1px solid #969aa730; background: #16171b; color: #d9dadf; border-radius: 8px; font: inherit; font-size: 11px; }
.watch-episode-tools > div { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.watch-episode-tools button { min-height: 36px; padding: 7px 10px; border: 1px solid #9fa3ae28; border-radius: 7px; background: transparent; color: #9da1ad; font-size: 10px; }
.watch-episode-tools button[aria-pressed=true] { background: #c5df911a; border-color: #bedb8350; color: #dbecba; }
#watch-current-episode { margin-left: auto; border-color: transparent; padding-right: 0; }
#watch-dialog .watch-episodes { grid-template-columns: minmax(0, 1fr); max-height: 400px; gap: 8px; padding: 3px; }
#watch-dialog .watch-episodes button { position: relative; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 66px; padding: 12px 10px; border-radius: 9px; background: #15161a; border-color: #969ba824; text-align: left; }
#watch-dialog .watch-episodes button:focus-visible { outline: 2px solid #d5eca7; outline-offset: 1px; }
#watch-dialog .watch-episode-number { display: grid; place-items: center; flex: 0 0 auto; min-width: 32px; min-height: 32px; padding: 5px; border-radius: 7px; background: #aeb2bc0c; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.5; }
#watch-dialog .watch-episode-copy { display: block; flex: 1; min-width: 0; }
#watch-dialog .watch-episode-title { display: block; max-width: none; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; font-size: 12px; font-weight: 500; line-height: 1.65; }
#watch-dialog .watch-episode-meta { display: block; margin-top: 5px; font-size: 10px; line-height: 1.6; color: #858a9a; }
#watch-dialog .watch-episodes button[aria-pressed=true] { background: #d5eca7; border-color: #d5eca7; color: #22242b; box-shadow: 0 4px 12px #0002; }
#watch-dialog .watch-episodes button[aria-pressed=true] .watch-episode-number { background: #22242b12; }
#watch-dialog .watch-episodes button[aria-pressed=true] small { color: #404451; }
#watch-dialog button.watch-provider { appearance: none; font: inherit; cursor: pointer; }
#watch-dialog button.watch-provider:hover { background: #d5eca712; border-color: #c8e19570; }
#watch-dialog button.watch-provider:focus-visible { outline: 2px solid #d5eca7; outline-offset: 2px; }
#watch-dialog .watch-source-label { margin: 14px 0 7px; font-size: 10px; }
#watch-dialog #watch-source { min-height: 42px; border-radius: 8px; margin-bottom: 13px; background-color: #16171b; font-size: 11px; }
#watch-source-choices { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
#watch-source-choices > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%; padding: 13px 12px; border: 1px solid #9ca0ad25; border-radius: 10px; background: #16181d; color: #c5c8cf; }
#watch-source-choices > button[aria-pressed=true] { border-color: #d5eca778; background: #383c4866; color: #e4f3c5; }
#watch-source-choices b { display: block; font-size: 11px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
#watch-source-choices small { display: block; font-size: 9px; line-height: 1.8; color: #9297a4; margin-top: 4px; }
#watch-source-choices i { font-size: 14px; font-style: normal; flex-shrink: 0; }
.watch-source-note, #watch-settings-status { color: #8d92a0; font-size: 10px; line-height: 1.9; margin-top: 14px; }
#watch-settings-form { display: block; margin: 0; padding: 0; border: 0; background: transparent; }
.watch-setting-toggle { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0; padding: 13px 0; border-bottom: 1px solid #9ca0ad20; cursor: pointer; }
.watch-setting-toggle b { display: block; font-size: 12px; font-weight: 500; color: #ced0d7; }
.watch-setting-toggle small { display: block; font-size: 9px; line-height: 1.8; color: #8a8f9e; margin-top: 5px; }
.watch-setting-toggle input { appearance: none; width: 34px; height: 20px; padding: 0; margin: 0; flex: 0 0 34px; border: 1px solid #83889760; border-radius: 999px; background: #353843; position: relative; cursor: pointer; }
.watch-setting-toggle input::before { content: ''; position: absolute; width: 12px; height: 12px; top: 3px; left: 3px; border-radius: 50%; background: #979ba8; transition: transform .15s; }
.watch-setting-toggle input:checked { background: #c6e190; border-color: #d5eca7; }
.watch-setting-toggle input:checked::before { background: #2e313b; transform: translateX(14px); }
.watch-setting-toggle :is(input,select):disabled { opacity: .55; cursor: default; }
.watch-skip-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.watch-skip-fields label { display: block; color: #a3a7b2; font-size: 10px; min-width: 0; }
.watch-skip-fields input { width: 100%; min-height: 42px; padding: 10px; margin-top: 7px; border-radius: 8px; border: 1px solid #999daa3a; background: #16171b; color: #e0ecc8; font: inherit; font-size: 12px; }
.watch-settings-save { width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 9px; background: #d5eca7; color: #2a2d36; font: inherit; font-size: 12px; }
#watch-countdown { position: absolute; z-index: 55; right: 16px; bottom: 72px; max-width: calc(100% - 32px); padding: 13px 15px; border: 1px solid #cce39f66; border-radius: 12px; background: #1e2026f2; color: #e4f1cb; box-shadow: 0 8px 30px #0008; backdrop-filter: blur(10px); }
#watch-countdown > span { display: block; font-size: 12px; margin-bottom: 10px; }
#watch-countdown > div { display: flex; gap: 8px; }
#watch-countdown button { min-height: 36px; padding: 8px 10px; border: 1px solid #989ca93f; border-radius: 7px; background: #d5eca7; color: #292c35; font-size: 10px; }
#watch-countdown #watch-cancel-next { background: transparent; color: #b9bcc4; }
@media (max-width: 800px) {
  #watch-dialog { padding: 18px 14px max(24px, env(safe-area-inset-bottom)); }
  #watch-dialog .watch-heading { margin-bottom: 15px; }
  .watch-heading .eyebrow { display: none; }
  #watch-dialog .watch-heading h2 { font-size: 19px; }
  #watch-dialog .watch-sidebar { border-radius: 13px; }
  .watch-side-panel { min-height: 220px; padding: 15px; }
  .watch-side-tabs button { min-height: 44px; }
  .watch-episode-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  #watch-episode-query { flex: 1 1 140px; width: 140px; }
  .watch-episode-tools > div { margin: 0; }
  .watch-episode-tools button { min-height: 40px; padding: 8px; }
  #watch-dialog .watch-episodes { max-height: 360px; }
  #watch-source-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  #watch-countdown { right: 10px; bottom: 55px; padding: 10px 12px; }
  #watch-countdown > span { font-size: 11px; margin-bottom: 7px; }
  #watch-countdown button { min-height: 36px; padding: 6px 9px; font-size: 9px; }
}
@media (max-width: 360px) {
  #watch-source-choices { grid-template-columns: minmax(0, 1fr); }
  .watch-episode-tools > div { width: 100%; }
}
#watch-recovery-position { flex-basis: 100%; color: #bdc4d0; }
.watch-skip-markers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.watch-skip-markers button { flex: 1 1 auto; min-height: 38px; padding: 6px 8px; font-size: 11px; }
#watch-skip-preview { color: #aeb8c7; font-size: 11px; line-height: 1.6; }
#watch-block-line{min-height:42px;margin-top:10px;padding:8px 12px;border:1px solid #7e849455;border-radius:8px;background:#1b1d22;color:#d5d7dc;font:inherit}
#watch-block-line[aria-pressed="true"]{border-color:var(--lime);color:var(--lime)}
