/* synopsis-comments-r1: shared audience-comment block on the portable direct-v2 players.
   Scoped to body.tpl-directplay-v2 and to .ref-comments only; colours follow the page
   (currentColor / inherit) so no skin variable is assumed. Player, ads and the existing
   keke/oletv side comment panel are not touched. */
body.tpl-directplay-v2 .ref-comments{min-width:0;margin:12px 0 24px;padding:0;border:0;background:transparent;color:inherit}
body.tpl-directplay-v2 .ref-comments>h2{margin:0 0 8px;font-size:15px;line-height:1.5}
body.tpl-directplay-v2 .ref-comments>p{margin:0 0 10px;font-size:13px;line-height:1.7;opacity:.85}
body.tpl-directplay-v2 .ref-comments form{display:block;margin:0 0 12px}
body.tpl-directplay-v2 .ref-comment-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 6px;font-size:13px}
body.tpl-directplay-v2 .ref-comments label{font-size:13px}
body.tpl-directplay-v2 .ref-comments select{font:inherit;color:inherit;background:transparent;border:1px solid rgba(128,128,128,.45);border-radius:4px;padding:2px 6px}
body.tpl-directplay-v2 .ref-comments textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:96px;margin:6px 0 10px;padding:10px;font:inherit;line-height:1.6;color:inherit;background:transparent;border:1px solid rgba(128,128,128,.45);border-radius:6px;resize:vertical}
body.tpl-directplay-v2 .ref-comments textarea::placeholder{color:inherit;opacity:.55}
body.tpl-directplay-v2 .ref-comments :is(input,textarea,select,button,a):focus-visible{outline:2px solid currentColor;outline-offset:2px}
body.tpl-directplay-v2 .ref-comments .ref-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0 8px 8px 0;padding:0 16px;font:inherit;font-size:14px;line-height:1;color:inherit!important;background:transparent;border:1px solid currentColor;border-radius:4px;text-decoration:none;cursor:pointer}
body.tpl-directplay-v2 .ref-comment-list{margin:4px 0 0}
body.tpl-directplay-v2 .ref-comment-list article{padding:10px 0;border-top:1px solid rgba(128,128,128,.25)}
body.tpl-directplay-v2 .ref-comment-list article>div{display:flex;align-items:baseline;gap:8px;font-size:13px}
body.tpl-directplay-v2 .ref-comment-list article>p{margin:4px 0;font-size:14px;line-height:1.75;overflow-wrap:anywhere}
body.tpl-directplay-v2 .ref-comment-list small,body.tpl-directplay-v2 .ref-comments .ref-caption{font-size:12px;opacity:.7}
body.tpl-directplay-v2 .ref-comments .ref-comments-toggle{display:inline-flex;align-items:center;gap:4px;margin:8px 0 0;padding:6px 0;font:inherit;font-size:13px;color:inherit;background:transparent;border:0;cursor:pointer}
body.tpl-directplay-v2 .ref-comments .ref-comments-toggle[hidden]{display:none}
@media(max-width:700px){
  body.tpl-directplay-v2 .ref-comments{margin:10px 0 18px}
  body.tpl-directplay-v2 .ref-comment-list article>p{font-size:13px}
}
/* 观影看点 sits open under the synopsis as one compact callout (label and text in one flow);
   notes are shown in full (a page holds at most 20; older ones are on crawlable notes_page links).
   Accent follows the skin's --dp-accent where it has one. */
body.tpl-directplay-v2 .ref-ai-viewpoint-open{margin:10px 0 12px;padding:9px 12px;border:0;border-left:3px solid var(--dp-accent,currentColor);border-radius:6px;background:rgba(128,128,128,.08);color:inherit;font-size:14px;line-height:1.75}
body.tpl-directplay-v2 .ref-ai-viewpoint-open>h3{display:inline;margin:0 8px 0 0;font-size:14px;line-height:inherit;font-weight:700;color:var(--dp-accent,inherit)}
body.tpl-directplay-v2 .ref-ai-viewpoint-open>p{display:inline;margin:0;overflow-wrap:anywhere}
/* All collected facts after 导演/主演: labelled pairs that flow on as few lines as fit. */
body.tpl-directplay-v2 .directplay-fact-line{display:flex;flex-wrap:wrap;gap:4px 20px;margin:6px 0 0;padding:0;font-size:14px;line-height:1.65}
body.tpl-directplay-v2 .directplay-fact-line>div{display:inline-flex;align-items:baseline;gap:6px;min-width:0}
body.tpl-directplay-v2 .directplay-fact-line dt{margin:0;opacity:.6;white-space:nowrap}
body.tpl-directplay-v2 .directplay-fact-line dd{margin:0;overflow-wrap:anywhere}
body.tpl-keke-direct-v2 .directplay-facts dt,body.tpl-oletv-direct-v2 .directplay-facts dt{opacity:.6}
/* Notes: pen name and date lead the line and the note follows on the same line when it fits. */
body.tpl-directplay-v2 .ref-ai-notes>ul>li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:0;padding:9px 0;border-top:1px solid rgba(128,128,128,.2)}
body.tpl-directplay-v2 .ref-ai-notes>ul>li:first-child{border-top:0;padding-top:2px}
body.tpl-directplay-v2 .ref-ai-notes>ul>li[hidden]{display:flex}
body.tpl-directplay-v2 .ref-ai-notes>ul>li>.ref-editorial-note-meta{flex:none;justify-content:flex-start;gap:8px}
body.tpl-directplay-v2 .ref-ai-notes>ul>li>p{flex:1 1 260px;min-width:0;margin:0}
body.tpl-directplay-v2 .ref-ai-notes [data-comments-preview-toggle]{display:none!important}
body.tpl-directplay-v2 .ref-ai-notes .ref-editorial-note-meta>strong{color:var(--dp-accent,inherit)}
body.tpl-directplay-v2 .ref-ai-note-total{font-size:12px;opacity:.75}
body.tpl-directplay-v2 .ref-ai-notes-pagination{margin:8px 0 0}
body.tpl-directplay-v2 .ref-ai-notes-pagination>[aria-current=page]{font-weight:700;color:inherit;opacity:1}
/* haoju / iqiyi: notes and audience comments share the two-column grid of the
   "正在播放 / 剧情简介" cards, so they take the cards' padding and heading scale. */
body.tpl-directplay-v2 .player-context>:is(.ref-ai-notes,.ref-comments){box-sizing:border-box;margin:0;padding:20px;align-self:start;min-width:0}
body.tpl-directplay-v2 .player-context>.ref-ai-notes>.ref-ai-notes-heading{justify-content:space-between;margin:0 0 12px}
body.tpl-directplay-v2 .player-context>.ref-ai-notes>.ref-ai-notes-heading>h2,
body.tpl-directplay-v2 .player-context>.ref-comments>h2{margin:0;font-size:21.76px;font-weight:760;line-height:1.25}
body.tpl-directplay-v2 .player-context>.ref-comments>h2{margin-bottom:12px}
/* keke / oletv: notes are a sub-part of the full-width synopsis section. */
body.tpl-directplay-v2 #directplay-synopsis>.ref-ai-notes{margin:18px 0 0;padding:16px 0 0;border-top:1px solid rgba(128,128,128,.22)}
body.tpl-directplay-v2 #directplay-synopsis>.ref-ai-notes>.ref-ai-notes-heading{margin:0 0 6px}
body.tpl-directplay-v2 #directplay-synopsis>.ref-ai-notes>.ref-ai-notes-heading>h2{font-size:18px;font-weight:700}
@media(min-width:900px){
  /* The synopsis section spans the page: two notes per row keep lines readable. */
  body.tpl-directplay-v2 #directplay-synopsis>.directplay-facts{grid-template-columns:max-content minmax(0,1fr) max-content minmax(0,1fr)}
  body.tpl-directplay-v2 #directplay-synopsis>.directplay-facts>dd:nth-of-type(odd){padding-right:32px}
  body.tpl-directplay-v2 #directplay-synopsis>.ref-ai-notes>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
  body.tpl-directplay-v2 #directplay-synopsis>.ref-ai-notes>ul>li:nth-child(2){border-top:0;padding-top:2px}
}
@media(max-width:700px){
  body.tpl-directplay-v2 .ref-ai-viewpoint-open,body.tpl-directplay-v2 .directplay-fact-line{font-size:13px}
  body.tpl-directplay-v2 .directplay-fact-line{gap:2px 14px}
  body.tpl-directplay-v2 .ref-ai-notes>ul>li{padding:8px 0}
  body.tpl-directplay-v2 .player-context>:is(.ref-ai-notes,.ref-comments){padding:14px 20px}
  body.tpl-directplay-v2 .player-context>.ref-ai-notes>.ref-ai-notes-heading>h2,
  body.tpl-directplay-v2 .player-context>.ref-comments>h2{font-size:19px}
}
body.tpl-directplay-v2 .directplay-facts+.directplay-fact-line{margin-top:-6px}
