/* UCDrama 短视频评论底部弹层；与播放器、缓存和选集弹层样式完全独立。 */
body.hg-comment-open { overflow:hidden !important; }
.hg-comments-layer[hidden] { display:none !important; }
.hg-comments-layer { align-items:flex-end; display:flex; inset:0; justify-content:center; position:fixed; z-index:1200; }
.hg-comments__backdrop { background:rgba(0,0,0,.42); inset:0; position:absolute; }
.hg-comments__sheet { background:#fff; border-radius:24px 24px 0 0; box-shadow:0 -8px 34px rgba(0,0,0,.16); color:#161616; display:flex; flex-direction:column; height:min(50vh,560px); height:min(50dvh,560px); max-width:573px; min-height:320px; outline:0; overflow:hidden; position:relative; transform:translate3d(0,100%,0); transition:transform .18s ease-out,height .2s ease; width:100%; }
.hg-comments__sheet.is-open { transform:translate3d(0,0,0); }
.hg-comments__header { align-items:center; border-bottom:1px solid #f0f0f0; display:grid; flex:0 0 56px; grid-template-columns:48px 1fr 48px; min-height:56px; padding:0 4px; }
.hg-comments__header h2 { color:#111; font-size:17px; font-weight:600; line-height:1; margin:0; text-align:center; }
.hg-comments__header h2 b { font:inherit; }
.hg-comments__close { align-items:center; background:transparent; border:0; color:#111; display:flex; height:44px; justify-content:center; margin:0; padding:0; touch-action:manipulation; width:44px; }
.hg-comments__close span { border-bottom:2px solid currentColor; border-right:2px solid currentColor; display:block; height:12px; margin-top:-5px; pointer-events:none; transform:rotate(45deg); width:12px; }
.hg-comments__scroll { -webkit-overflow-scrolling:touch; flex:1 1 auto; min-height:0; overscroll-behavior:contain; overflow-y:auto; padding:0 18px 24px; }
.hg-comment-system { border-bottom:1px solid #f0f0f0; display:grid; gap:12px; grid-template-columns:44px minmax(0,1fr); padding:18px 0; }
.hg-comment-system > img { background:#f4f4f4; border-radius:50%; height:44px; object-fit:cover; width:44px; }
.hg-comment-system__name { color:#888; font-size:14px; line-height:20px; margin-bottom:4px; }
.hg-comment-system__name span { background:#fff0e5; border-radius:8px; color:#ff6a00; font-size:10px; margin-left:5px; padding:2px 5px; }
.hg-comment-system strong { color:#222; display:block; font-size:15px; font-weight:600; line-height:22px; margin-bottom:4px; }
.hg-comment-system p { color:#262626; font-size:16px; line-height:1.65; margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.hg-comments__list { min-height:0; }
.hg-comment-row { border-bottom:1px solid #f2f2f2; display:grid; gap:12px; grid-template-columns:42px minmax(0,1fr); padding:16px 0; }
.hg-comment-row__avatar { align-items:center; background:linear-gradient(135deg,#edf3ff,#c7d8ff); border-radius:50%; color:#5875aa; display:flex; font-size:17px; font-weight:700; height:42px; justify-content:center; overflow:hidden; width:42px; }
.hg-comment-row__avatar img { height:100%; object-fit:cover; width:100%; }
.hg-comment-row__body { min-width:0; }
.hg-comment-row__name { color:#8b8b8b; display:block; font-size:14px; font-weight:400; line-height:20px; margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-comment-row__text { color:#1c1c1c; font-size:16px; line-height:1.55; margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.hg-comment-row__time { color:#aaa; display:block; font-size:12px; line-height:18px; margin-top:6px; }
.hg-comment-row__replies { background:#f8f8f8; border-radius:12px; margin-top:10px; padding:0 10px; }
.hg-comment-row.is-reply { border-bottom:1px solid #ececec; gap:9px; grid-template-columns:30px minmax(0,1fr); padding:10px 0; }
.hg-comment-row.is-reply:last-child { border-bottom:0; }
.hg-comment-row__avatar.is-small { font-size:12px; height:30px; width:30px; }
.hg-comment-row.is-reply .hg-comment-row__text { font-size:14px; }
.hg-comments__status { align-items:center; color:#999; display:flex; flex-direction:column; font-size:14px; justify-content:center; min-height:124px; padding:22px 0; text-align:center; }
.hg-comments__status[hidden] { display:none !important; }
.hg-comments__status > i { animation:hg-comments-spin .8s linear infinite; border:3px solid #e6e6e6; border-radius:50%; border-top-color:#ff6a00; display:none; height:28px; width:28px; }
.hg-comments__status.is-loading > i { display:block; }
.hg-comments__status p { margin:10px 0 0; }
.hg-comments__status button,
.hg-comments__more { background:#f5f5f5; border:0; border-radius:18px; color:#555; font-size:13px; margin-top:12px; padding:8px 18px; }
.hg-comments__status button[hidden],
.hg-comments__more[hidden] { display:none !important; }
.hg-comments__more { display:block; margin:18px auto 0; }
.hg-comments__more:disabled { opacity:.55; }
.hg-comments__composer { background:#fff; border-top:1px solid #eee; flex:0 0 auto; padding:10px 16px max(10px,env(safe-area-inset-bottom)); }
.hg-comments__input-wrap { align-items:flex-end; background:#f6f6f6; border:1px solid transparent; border-radius:22px; display:flex; gap:8px; padding:5px 5px 5px 15px; transition:border-color .15s,background .15s; }
.hg-comments__input-wrap:focus-within { background:#fff; border-color:#ff9b54; }
.hg-comments__composer textarea { background:transparent; border:0; color:#222; flex:1 1 auto; font:16px/22px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; height:42px; max-height:92px; min-height:42px; outline:0; overflow-y:auto; padding:10px 0; resize:none; }
.hg-comments__composer textarea::placeholder { color:#aaa; }
.hg-comments__composer button { background:linear-gradient(135deg,#ff7a18,#ff5b00); border:0; border-radius:18px; color:#fff; flex:0 0 auto; font-size:14px; font-weight:700; height:36px; min-width:62px; padding:0 15px; }
.hg-comments__composer button:disabled { background:#ddd; color:#aaa; }
.hg-comments__composer > p { color:#999; font-size:12px; line-height:18px; margin:4px 8px 0; min-height:0; }
.hg-comments__composer > p:empty { display:none; }
.hg-comments__composer > p a { color:#ff6a00; }
@keyframes hg-comments-spin { to { transform:rotate(360deg); } }
@media (max-height:620px) {
  .hg-comments__sheet { height:56vh; height:56dvh; min-height:300px; }
  .hg-comments__header { flex-basis:54px; min-height:54px; }
}
@media (prefers-reduced-motion:reduce) {
  .hg-comments__sheet { transition:none; }
}
