/* 2026-10-31 navigation, manual charts and official/real comment wall. */
body.rd-site .original-header .rd-brand img{width:124px!important;height:46px!important;max-height:46px}
/* Align desktop navigation with the page content and retain compact prototype spacing. */
@media(min-width:1024px){body.rd-site .original-header .rd-bar.site-bar{width:min(var(--rd-width),calc(100% - 64px))!important;max-width:none!important;min-height:76px;gap:16px;justify-content:flex-start}body.rd-site .original-header .rd-nav{flex:1;min-width:0;flex-wrap:nowrap;gap:0;align-items:center;justify-content:space-between}body.rd-site .original-header .rd-search{margin-left:0;flex:none}}
@media(max-width:1023px){body.rd-site .original-header .rd-brand img{width:124px!important;height:47px!important;max-height:47px}}
body.rd-site .dd-rel.drama-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}
body.rd-site .dd-rel .drama-cover{aspect-ratio:2/3}
body.rd-site .dd-rel .drama-card{min-width:0}
body.rd-site .dd-rel .drama-card h3{font-size:15px;font-weight:700;line-height:1.5;margin:8px 0 4px;min-height:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.rd-site .dd-actions a.dd-btn.primary,body.rd-site .dd-actions a.dd-btn.primary:visited,body.rd-site .dd-actions a.dd-btn.primary:active,body.rd-site .dd-actions a.dd-btn.primary:focus{background:linear-gradient(100deg,#8758f5,#d942d8)!important;color:#fff!important;opacity:1;filter:none;border-color:transparent;outline-offset:4px}
body.rd-site .dd-actions a.dd-btn.primary:hover{background:linear-gradient(100deg,#9868ff,#e650e9)!important;color:#fff!important}
body.rd-site .hot-label{flex:none!important;display:inline-flex;align-items:center;justify-content:center;min-width:20px!important;max-width:64px;padding:2px 4px;border-radius:4px;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.rd-site .hot-item .hot-title,body.rd-site .article-hot-list strong{flex:1;min-width:0}
body.rd-site .sp-hotlist .sp-hot-t{flex:1;min-width:0}
body.rd-site .sp-hotlist .sp-hot-t small{display:block;color:#a6a1ae;line-height:1.7;font-size:11px;white-space:normal}
body.rd-site .sp-sec-head h2 small{font-size:11px;font-weight:500;color:#aaa;white-space:nowrap}
@media(min-width:1024px){body.rd-site .original-post-copy h2{font-size:17px!important;line-height:1.55!important}body.rd-site .original-post-copy h2 a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.rd-site .original-post-copy .post-card-title{display:inline;white-space:inherit}body.rd-site .original-post-copy .pt-l1,body.rd-site .original-post-copy .pt-l2{display:inline!important;white-space:inherit}}
@media(max-width:1023px){body.rd-site .original-post-copy .post-card-title{white-space:normal;overflow-wrap:anywhere}}
body.rd-site .original-post-copy .post-card-title{font-size:inherit!important;line-height:inherit!important;margin:0!important}
@media(min-width:1024px){body.rd-site #index .original-post-copy h2,body.rd-site #archive .original-post-copy h2{font-size:17px!important;line-height:1.55!important}}
@media(max-width:1023px){body.rd-site #index .original-post-visual,body.rd-site #archive .original-post-visual,body.rd-site .drama-search-list .original-post-visual{height:auto!important;min-height:225px!important}}
body.rd-site .page-nav .page-jump{position:static!important;margin:0!important}
body.rd-site .page-nav #pageForm{display:flex;align-items:center;gap:10px;margin:0}
body.rd-site .page-nav #pageNum,body.rd-site .page-nav #submitBtn{box-sizing:border-box!important;height:40px!important;min-height:40px!important;border:1px solid #766385;border-radius:8px;font-size:14px!important;line-height:1.2!important;color:#fff!important}
body.rd-site .page-nav #pageNum{width:66px;padding:0 9px!important;background:#1b1922!important;text-align:center}
body.rd-site .page-nav #submitBtn{min-width:64px;padding:0 14px!important;display:inline-flex!important;align-items:center;justify-content:center;background:#292333!important;cursor:pointer}
@media(max-width:767px){body.rd-site .page-nav #pageForm{gap:8px}body.rd-site .page-nav #pageNum{width:52px}body.rd-site .page-nav #submitBtn{min-width:56px}}

/* Desktop logo follows the same left edge as the page content. */
@media(min-width:1024px){body.rd-site .original-header .rd-nav>a{padding-left:6px;padding-right:6px}}
@media(min-width:1024px) and (max-width:1250px){body.rd-site .original-header .rd-bar.site-bar{gap:8px}body.rd-site .original-header .rd-brand img{width:100px!important;height:40px!important;max-height:40px}body.rd-site .original-header .rd-nav>a{padding-left:2px;padding-right:2px;font-size:14px}}

body.rd-site .rd-brand-text{display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:20px;font-weight:700;line-height:46px}
body.rd-site .original-header .rd-brand-text{width:124px;max-width:124px}
@media(min-width:1024px) and (max-width:1250px){body.rd-site .original-header .rd-brand-text{width:100px;max-width:100px;font-size:18px;line-height:40px}}

/* Align the complete comment block with 065-go ai_drama.css, not just the lane count. */
body.rd-site .dd-comments{margin:32px 0;padding:0;background:none;border:0;border-radius:0}
body.rd-site .dd-comments>h2{font-size:16px;font-weight:700;color:#fff;margin:0 0 10px;display:flex;align-items:center;gap:8px}
body.rd-site .dd-comments>h2:before{content:"";width:4px;height:15px;border-radius:2px;background:linear-gradient(#7c5cff,#e04fd8)}
body.rd-site .dd-comments h2 small{font-size:12px;font-weight:400;color:#aaa}
body.rd-site #drama-interactions .dd-cmt-form{display:flex;gap:8px;margin:0 0 16px;align-items:stretch;flex-wrap:nowrap}
body.rd-site .dd-comments .dd-cmt-form .dd-cmt-text{flex:1;min-width:0;width:auto;height:auto;min-height:0;box-sizing:border-box;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:20px;padding:9px 16px;color:#fff;font-size:13px;line-height:normal;outline:none}
body.rd-site .dd-comments .dd-cmt-form .dd-cmt-text:focus{border-color:rgba(160,120,255,.5)!important}
body.rd-site .dd-comments .dd-cmt-form>button{background:linear-gradient(100deg,#8758f5,#d942d8);color:#fff;border:0;border-radius:20px;padding:9px 26px;font-size:13px;font-weight:700;line-height:normal;min-height:0;height:auto;cursor:pointer;white-space:nowrap;box-shadow:none}
body.rd-site .dd-comments [hidden]{display:none!important}
body.rd-site .drama-comment-stage{position:relative;height:200px;min-height:0;overflow:hidden;border-radius:12px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.16);padding:0;margin:0;isolation:isolate}
body.rd-site .drama-comment-stage .capsule-lane{position:absolute;top:calc(var(--lane)*38px + 8px);left:0;right:0;height:32px;margin:0;pointer-events:none;white-space:nowrap}
body.rd-site .drama-comment-stage .capsule-card{position:absolute;left:100%;width:max-content;max-width:none;height:auto;min-height:0;white-space:nowrap;font-size:14px;line-height:1.4;color:rgba(255,255,255,.9);padding:5px 15px;border-radius:18px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);animation:drama-comment-scroll var(--speed,18s) linear var(--delay,0s) infinite;will-change:transform;pointer-events:auto}
body.rd-site .drama-comment-stage .capsule-card:hover,body.rd-site .drama-comment-stage .capsule-card:focus-within{animation-play-state:paused;background:rgba(135,88,245,.18);border-color:rgba(160,120,255,.5);color:#fff;cursor:pointer}
body.rd-site .drama-comment-stage .capsule-copy,body.rd-site .drama-comment-stage .capsule-text{display:inline;font:inherit;white-space:nowrap;overflow:visible;text-overflow:clip;max-width:none}
body.rd-site .drama-comment-stage .capsule-author{display:inline;margin-right:6px;color:#c9b5ff;font-weight:600;font-size:inherit;white-space:nowrap;max-width:none;overflow:visible;text-overflow:clip}
body.rd-site .drama-comment-stage .capsule-like{background:none;border:0;padding:0 0 0 6px;cursor:pointer;font:inherit;color:inherit;display:inline-flex;align-items:center;gap:2px;vertical-align:middle;min-width:0;min-height:0;line-height:inherit;transition:transform .2s}
body.rd-site .drama-comment-stage .capsule-like:hover{transform:scale(1.2)}
body.rd-site .drama-comment-stage .capsule-like-count,body.rd-site .drama-comment-stage .capsule-static-like{font-size:12px;color:rgba(255,255,255,.5)}
body.rd-site .drama-comment-stage .capsule-like.liked .capsule-like-count{color:#c9b5ff;font-weight:600}
body.rd-site .capsule-badge{font-size:11px;color:#c9b5ff;margin-right:6px}
body.rd-site .capsule-card[data-kind=pending]{border-style:dashed}
body.rd-site .drama-comment-stage>.dd-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;color:#888;font-size:13px}
body.rd-site .dd-comments .comment-load-more{display:block;margin:12px auto 0;background:none;border:1px solid #ffffff29;color:#aaa;border-radius:999px;padding:7px 18px;font-size:13px;cursor:pointer;min-height:0}
body.rd-site .dd-comments .comment-load-more:hover{color:#fff;border-color:#3a3a44}
body.rd-site #comment-detail,body.rd-site #drama-comment-identity{width:min(520px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #ffffff29;border-radius:12px;background:#181818;color:#eee;padding:20px}
body.rd-site #comment-detail p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto}
body.rd-site #comment-detail::backdrop,body.rd-site #drama-comment-identity::backdrop{background:#0009}
body.rd-site #drama-comment-identity label{display:block;margin:12px 0}
body.rd-site #drama-comment-identity input{display:block;box-sizing:border-box;width:100%;background:#ffffff0f;border:1px solid #ffffff29;border-radius:8px;padding:9px 12px;color:#fff}
body.rd-site #drama-comment-identity button{padding:8px 18px;border-radius:20px;border:1px solid #ffffff29;background:linear-gradient(100deg,#8758f5,#d942d8);color:#fff}
@keyframes drama-comment-scroll{0%{transform:translateX(0)}to{transform:translateX(calc(-100% - 100vw))}}
@media(max-width:767px){body.rd-site .drama-comment-stage{height:160px}body.rd-site .drama-comment-stage .capsule-card{font-size:12px;padding:3px 10px}body.rd-site .drama-comment-stage .capsule-lane{height:28px;top:calc(var(--lane)*30px + 6px)}}
@media(prefers-reduced-motion:reduce){body.rd-site .drama-comment-stage{height:auto;min-height:160px;padding:10px}body.rd-site .drama-comment-stage .capsule-lane{position:static;height:auto;display:flex;flex-direction:column;gap:8px;margin-bottom:8px;pointer-events:auto;white-space:normal}body.rd-site .drama-comment-stage .capsule-card{position:static;animation:none;max-width:100%;width:fit-content;white-space:normal}body.rd-site .drama-comment-stage .capsule-text{white-space:normal;overflow-wrap:anywhere}}

@media(max-width:767px){body.rd-site .dd-rel.drama-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}body.rd-site .dd-rel .drama-card h3{font-size:14px}body.rd-site .page-nav{gap:14px}body.rd-site .page-nav #pageForm{gap:8px}}

body.rd-site .dd-comments .dd-cmt-form>button:hover,body.rd-site #drama-comment-identity button:hover{background:linear-gradient(100deg,#9868ff,#e650e9)}

/* Article comments share the site's purple accents; completed pagination is plain text. */
body.rd-site #comments{box-sizing:border-box;margin:32px 0;padding:20px 24px!important;border:1px solid #ffffff14;border-radius:14px;background:#14141b;color:#e6e5e8}
body.rd-site #comments .comment-separator{margin:24px 0 12px;border-color:#ffffff14;color:#e6e5e8}
body.rd-site #comments .comment-list,body.rd-site #comments .comment-list>li{background:transparent!important;color:#dedde0!important;border-color:#ffffff14!important}
body.rd-site #comments .comment-list{padding:0;list-style:none}
body.rd-site #comments .comment-list li.comment-body{position:relative;margin:0;padding:18px 0;border-bottom:1px solid #ffffff14}
body.rd-site #comments .comment-list li.comment-body:last-child{border-bottom:0}
body.rd-site #comments .comment-author{min-height:36px;margin:0 64px 0 0;display:flex;align-items:center;gap:10px}
body.rd-site #comments .comment-author .avatar{float:none;width:36px;height:36px;border-radius:50%;margin:0;object-fit:cover}
body.rd-site #comments .comment-author cite,body.rd-site #comments .comment-author cite a{color:#c9b5ff!important;font-size:14px;font-weight:600;font-style:normal}
body.rd-site #comments .comment-meta{margin:3px 0 0 46px;line-height:1.5}
body.rd-site #comments .comment-meta a{font-size:12px;color:#96939f!important}
body.rd-site #comments .comment-reply{position:absolute;right:0;top:24px;float:none;font-size:12px}
body.rd-site #comments .comment-reply a,body.rd-site #comments .cancel-comment-reply a{color:#c9b5ff!important}
body.rd-site #comments .comment-content{margin:10px 0 0 46px;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
body.rd-site #comments .comment-content p{display:block;margin:0}
body.rd-site #comments .comment-children{padding-left:24px;margin:12px 0 0}
body.rd-site #comments .comment-children .comment-list{border-left:2px solid #8758f540;padding-left:14px}
body.rd-site #comments #comment-form textarea,body.rd-site #comments #comment-form .comment-input{box-sizing:border-box;max-width:100%;padding:10px 12px;border:1px solid #ffffff29;border-radius:10px;background:#1f1f29;color:#eee;font-size:14px}
body.rd-site #comments #comment-form textarea:focus,body.rd-site #comments #comment-form .comment-input:focus{border-color:#a07bff;outline:0}
body.rd-site #comments #submit,body.rd-site #comments .next_more{display:inline-block;min-height:0;padding:9px 22px;border:0;border-radius:20px;background:linear-gradient(100deg,#8758f5,#d942d8);color:#fff!important;font-size:13px;line-height:1.6}
body.rd-site #comments .page-navigator{display:block;margin:20px 0 0!important;padding:0;text-align:center}
body.rd-site #comments .comment-end{display:block;box-sizing:border-box;margin:0;padding:8px 0;border:0;border-radius:0;background:none;color:#96939f;font-size:13px;font-weight:400;line-height:1.6;text-align:center;box-shadow:none;cursor:default}
body.rd-site #comments .comment-none{font-size:14px;color:#96939f}
@media(max-width:767px){body.rd-site #comments{padding:16px!important}body.rd-site #comments .comment-children{padding-left:10px}body.rd-site #comments .comment-children .comment-list{padding-left:10px}body.rd-site #comments .comment-content{margin-left:0}}

/* Episode comments are readable in the sheet; the detail page retains moving capsules. */
body.rd-site.rd-immersive #player-comments{background:#14141b;border-color:#ffffff29;color:#eee;touch-action:pan-y}
body.rd-site #player-comments .drama-comment-stage{height:auto;min-height:100px;max-height:40dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;border:0;border-radius:0;background:none}
body.rd-site #player-comments .capsule-lane{position:static;height:auto;display:contents;white-space:normal;pointer-events:auto}
body.rd-site #player-comments .capsule-card{position:static;left:auto;transform:none;box-sizing:border-box;display:flex;align-items:flex-start;gap:10px;width:auto;max-width:100%;margin:0;padding:12px 0;border:0;border-bottom:1px solid #ffffff14;border-radius:0;background:none;animation:none;will-change:auto;white-space:normal;font-size:14px}
body.rd-site #player-comments .capsule-card:hover{background:#8758f510}
body.rd-site #player-comments .capsule-copy{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
body.rd-site #player-comments .capsule-author{display:block;white-space:normal;overflow-wrap:anywhere;margin:0 0 5px}
body.rd-site #player-comments .capsule-text{white-space:pre-wrap;overflow-wrap:anywhere}
body.rd-site #player-comments .capsule-like{flex:none;padding:0 2px;white-space:nowrap;min-height:28px}
body.rd-site #player-comments .drama-comment-stage>.dd-empty{position:static;min-height:100px}
body.rd-site #player-comments .dd-comments>h2{font-size:14px;flex-wrap:wrap}
/* Keep comment actions reachable when a media-error notice covers the video. */
body.rd-site.rd-immersive #drama-player .wv-rail{z-index:6}

/* Article body and footer comments share the same outer width and a single 16px gap. */
body.rd-site #body:has(#post){padding-bottom:0!important;min-height:0}
body.rd-site #post.pd-wrap{padding-bottom:0!important}
body.rd-site #body .rd-article-comments{box-sizing:border-box;width:100%;max-width:none;margin:16px 0 0;padding:0}
body.rd-site .rd-article-comments #comments{width:100%;margin:0}
body.rd-site #comments>.respond{margin-top:0!important}
body.rd-site #comments #response{font-size:18px;line-height:1.5}
body.rd-site #comments #comment-form{padding-top:14px}

/* Compact homepage friend links: three sites per row on H5. */
@media(max-width:767px){
body.rd-site .fix_flink:not(.fix_flink--page){padding:12px;border-radius:14px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-head{gap:8px;margin-bottom:12px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-head-main{gap:10px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-head-icon{width:32px;height:32px;line-height:32px;font-size:19px;border-radius:9px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-title{font-size:17px;line-height:1.4}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-subtitle{font-size:11px;line-height:1.5;margin-top:2px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-card{box-sizing:border-box;min-height:44px;padding:8px 6px;gap:5px;border-radius:9px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-icon,body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-icon img{width:24px;height:24px;border-radius:6px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-icon-char{font-size:13px}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-name{font-size:12px;line-height:1.5}
body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-desc,body.rd-site .fix_flink:not(.fix_flink--page) .fix_flink-arrow{display:none}
}
