/* 9.0.26 — black surfaces, compact responsive detail and dialog layout. */
body .a66-footer{background:#000!important;border-top:1px solid #222!important;margin-top:20px!important;padding-top:24px!important;padding-bottom:18px!important}
body .a66-footer-grid{gap:18px!important}body .a66-footer-grid a:not(.at60-brand){padding-block:2px!important}body .a66-footer-end{margin-top:18px!important;padding-top:12px!important}
body:has(.at850-detail) :is(main#app,#app,.at60-wrap,.a62-page):has(.at850-detail){padding-bottom:12px!important;margin-bottom:0!important;min-height:0!important}
body .a82-detail.at850-detail{padding-bottom:8px!important;margin-bottom:0!important}
body .a82-detail.at850-detail .a82-panels,body .a82-detail.at850-detail .a82-panel{padding-bottom:0!important;margin-bottom:0!important}
body .a82-detail.at850-detail .at850-overview{row-gap:22px!important}
body .a82-detail.at850-detail .at850-main,body .a82-detail.at850-detail .at850-sidebar{gap:12px!important;align-content:start!important;align-self:start!important}
body .at850-detail .a62-detail-info,body .at850-detail .a64-synopsis,body .at850-detail .a82-synopsis-body{margin:0!important;padding-bottom:0!important;min-height:0!important}
body .at850-detail .a82-synopsis-body p{margin:0!important;line-height:1.65!important}
body .at850-detail .at861-companion{background:#080808!important;border:1px solid #242424!important;margin:0!important;padding:12px 14px!important;gap:12px!important;min-height:0!important;border-radius:10px!important}
body .at850-detail .at861-companion p{margin:4px 0 8px!important;font-size:13px!important}body .at850-detail .at861-companion .btn{min-height:36px!important;padding:8px 12px!important}
body .at850-detail .at850-facts{padding-bottom:10px!important}body .at850-detail .at850-facts dl{gap:6px!important;margin-bottom:8px!important}
body .at850-detail .a807-affinity{margin:0!important;padding:12px!important;border-radius:10px!important;background:#070707!important;border-color:#252525!important;min-height:0!important}
body .at850-detail .a807-affinity h2{font-size:17px!important;margin:4px 0!important}body .at850-detail .a807-affinity p{font-size:12px!important;line-height:1.5!important;margin:6px 0 8px!important}
body .at850-detail .at850-bottom{gap:12px!important;padding-top:16px!important;padding-bottom:0!important;margin-bottom:0!important}
body .at850-detail .a82-overview-links{margin-bottom:0!important;padding-bottom:0!important}
/* Full-width previews and actual episode tab use the same density. */
body .at850-detail .at850-overview>.at850-episode-preview .at850-episode-grid,body .at850-detail .a806-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body .at850-detail .a806-episodes{max-width:none!important;width:100%!important}
body .at850-detail .at850-episode-card,body .at850-detail .a806-episode{min-width:0!important;position:relative;border:1px solid #222!important;border-radius:9px!important;padding:0!important;background:#080808!important;overflow:hidden;align-items:stretch!important}
body .at850-detail .at850-episode-link,body .at850-detail .a806-ep-link{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important;min-width:0!important}
body .at850-detail .at850-episode-thumb,body .at850-detail .a806-still{width:100%!important;flex:none!important;aspect-ratio:16/9!important;border:0!important;border-radius:0!important;background:#101010!important}
body .at850-detail .at850-episode-meta,body .at850-detail .a806-ep-copy{display:flex!important;flex-direction:column!important;gap:3px!important;padding:8px 10px 10px!important;min-width:0!important}
body .at850-detail .at850-episode-series,body .at850-detail .a806-ep-copy small{font-size:10px!important;line-height:1.2!important;color:#a4a4a4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .at850-detail .at850-episode-meta strong,body .at850-detail .a806-ep-copy strong{font-size:14px!important;line-height:1.35!important;font-weight:650!important;overflow-wrap:anywhere!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body .at850-detail .at850-episode-subline,body .at850-detail .a806-ep-copy>span{font-size:11px!important;color:#999!important}
body .at850-detail .a806-episode:has(.a806-mark,.a806-login) .a806-ep-copy{padding-right:40px!important}
body .at850-detail .a806-episode :is(.a806-mark,.a806-login){position:absolute;right:6px;bottom:6px;width:30px!important;height:30px!important;min-height:30px!important;border-radius:7px!important;z-index:1}
body .at850-detail .a806-episode :is(.a806-mark,.a806-login) svg{width:15px!important;height:15px!important}
body .at850-detail .at856-more-wrap{margin:12px 0 4px!important;gap:4px!important;width:100%!important;justify-items:center!important}
body .at850-detail button.at856-more{width:auto!important;min-width:180px!important;max-width:100%!important;min-height:38px!important;padding:8px 20px!important;border:1px solid #343434!important;border-radius:8px!important;background:#0a0a0a!important;font-size:13px!important;gap:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
body .at850-detail button.at856-more:hover{border-color:#20b5e8!important;color:#20b5e8!important}body .at850-detail .at856-more-arrow{line-height:1!important;transform:none!important}
@media(min-width:700px){body .at850-detail .at850-overview>.at850-episode-preview .at850-episode-grid,body .at850-detail .a806-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:900px){body .at850-detail .at850-overview>.at850-episode-preview .at850-episode-grid,body .at850-detail .a806-list{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}body .at850-detail .at850-sidebar{gap:14px!important}body .at850-detail .at850-main{gap:12px!important}}
/* Ranking: real genre labels and tighter card typography, score close to metadata. */
body .at848-ranking .at848-podium-card .at848-rank-link{min-height:0!important;align-content:start!important}
body .at848-ranking .at848-podium-card .at848-anime-info{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;align-self:start!important}
body .at848-ranking .at926-rank-genres{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
body .at848-ranking .at926-rank-genres>span{font-size:10px;line-height:1.3;padding:3px 6px;background:#0b0b0b;border:1px solid #2c2c2c;border-radius:5px;color:#c7c7c7}
@media(min-width:761px){body .at848-ranking .at848-podium-card .at848-rank-link{grid-template-rows:auto auto 1fr!important;grid-template-columns:clamp(86px,8vw,132px) minmax(0,1fr)!important;gap:7px 12px!important;padding:12px!important}body .at848-ranking .at848-podium-card .at848-value{align-self:start!important;margin:4px 0 0!important}body .at848-ranking .at848-podium-card .at848-cover{height:auto!important;aspect-ratio:2/3!important}}
/* Popup surfaces: tracking, ratings, authentication and advanced filters. Keep native focus/keyboard behavior. */
body :is(dialog.a803-tracking,dialog.a804-dialog,dialog.a65-dialog,dialog#at885-auth,dialog.m900-sheet,dialog.yn683-dialog){background:#050505!important;color:#f3f3f3!important;border-color:#303030!important;box-shadow:0 18px 65px #000b!important;color-scheme:dark}
body :is(dialog.a803-tracking,dialog.a804-dialog,dialog.a65-dialog,dialog#at885-auth,dialog.m900-sheet,dialog.yn683-dialog)::backdrop{background:rgba(0,0,0,.74)!important;backdrop-filter:blur(3px)}
body dialog.a803-tracking :is(.a803-head,.a803-footer,.a803-status-grid,.a803-progress,.a803-favorite){background:#080808!important;border-color:#272727!important}
body dialog.a803-tracking .a803-head{padding:16px 18px 12px!important}body dialog.a803-tracking .a803-content{padding:14px 18px 0!important}body dialog.a803-tracking .a803-form{gap:11px!important}
body dialog.a803-tracking :is(.a803-choice,.a803-reaction,.a803-cancel,.a803-close,.a803-counter button,.a803-counter input,textarea){background:#101010!important;border-color:#292929!important;color:#e7e7e7!important}
body dialog.a803-tracking :is(.a803-choice,.a803-reaction)[aria-pressed=true]{background:#10252b!important;border-color:#20b5e8!important;color:#bcefff!important}
body dialog.a803-tracking .a803-save{background:#20b5e8!important;border-color:#20b5e8!important;color:#03151c!important}
body dialog.a803-tracking .a803-footer{padding:10px 0 14px!important}
body :is(dialog.a804-dialog,dialog.a65-dialog,dialog#at885-auth,dialog.m900-sheet,dialog.yn683-dialog) :is(header,footer){background:#080808!important;border-color:#272727!important}
body :is(dialog.a804-dialog,dialog.a65-dialog,dialog#at885-auth,dialog.m900-sheet,dialog.yn683-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#101010!important;border-color:#303030!important;color:#f1f1f1!important}
@media(max-width:760px){body .a66-footer{margin-top:14px!important;padding-top:18px!important}body .at850-detail .at850-overview{row-gap:18px!important}body .at850-detail .at850-episode-meta,body .at850-detail .a806-ep-copy{padding:7px 8px 8px!important}body dialog.a803-tracking .a803-content{padding:12px 14px 0!important}body dialog.a803-tracking .a803-head{padding:12px 14px!important}body dialog.a803-tracking .a803-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
