/* Anikage-inspired episode watch surface. Scoped so homepage and single-anime CSS remain unchanged. */
.an9-watch{padding-top:82px;padding-bottom:62px;min-height:calc(100vh - 80px)}
.an9-watch-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,31%);gap:20px;align-items:start}
.an9-watch-main,.an9-watch-side{min-width:0}.an9-watch-player{overflow:hidden;border-radius:16px;background:#050505;border:1px solid #222;box-shadow:0 14px 40px #0005;transition:box-shadow .3s}
.an9-watch-player-stage{position:relative;aspect-ratio:16/9;background:#000;display:grid;place-items:center;overflow:hidden}
.an9-watch-player-stage iframe,.an9-watch-player-stage video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;display:block;object-fit:contain}
.an9-watch-player-stage video{outline:none}.an9-watch-player-unavailable{text-align:center;color:#aaa;padding:15px}.an9-watch-player-unavailable>span{font-size:53px;color:#888}.an9-watch-player-unavailable strong{display:block;color:#efefef;font-size:18px}.an9-watch-player-unavailable p{font-size:12px}
.an9-watch-player-bottom{display:flex;justify-content:space-between;align-items:center;min-height:40px;border-top:1px solid #242424;padding:4px 10px 4px 14px;background:#0c0c0c;color:#aaa;gap:10px}
.an9-watch-player-source{font-size:11px;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}.an9-watch-player-source::first-letter{color:#37c9a5}.an9-watch-player-tools{display:flex;gap:4px}.an9-watch-icon-button{border:0;background:#191919;color:#ddd!important;min-width:31px;height:29px;padding:2px 8px;border-radius:8px;text-align:center;font-size:17px;line-height:25px}.an9-watch-icon-button:hover,.an9-watch-icon-button.is-active{background:#333}
.an9-watch-tip{display:flex;align-items:center;gap:10px;margin:12px 0 10px;padding:9px 12px;color:#e2c17a;background:#2419079e;border:1px solid #6f4f1938;border-radius:11px;font-size:11px;min-height:40px}
.an9-watch-tip>span{font-size:16px;color:#f5c054}.an9-watch-tip p{margin:0;flex:1}.an9-watch-tip button{border:0;background:transparent;color:#cab88e;font-size:18px;line-height:1;padding:2px 5px}
.an9-watch-breadcrumb{display:flex;align-items:center;gap:8px;color:#797979;font-size:11px;flex-wrap:wrap;margin:15px 0 13px}.an9-watch-breadcrumb a:hover{color:#ddd}
.an9-watch-main-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.an9-watch-title-wrap{display:flex;align-items:center;gap:9px;min-width:240px;flex:1}.an9-watch-mini-poster{display:block;width:41px;height:41px;border-radius:50%;overflow:hidden;background:#292929;border:1px solid #383838;flex:0 0 41px}.an9-watch-mini-poster img{width:100%;height:100%!important;object-fit:cover}
.an9-watch-title-text{min-width:0;flex:1}.an9-watch-title-text h1{font-size:14px;color:var(--an9-text);margin:0 0 2px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.an9-watch-title-text p{font-size:11px;margin:0;color:var(--an9-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.an9-watch-save{border:0;background:#eee;color:#151515!important;white-space:nowrap;border-radius:24px;min-height:33px;padding:0 12px;font-size:12px;font-weight:600}.an9-watch-save.is-saved{background:#224c42;color:#d9ffee!important}
.an9-watch-actions{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none}.an9-watch-actions::-webkit-scrollbar{display:none}
.an9-watch-actions button,.an9-watch-actions a{border:0;background:var(--an9-elevated);color:var(--an9-text);border-radius:100px;display:inline-flex;justify-content:center;align-items:center;gap:5px;white-space:nowrap;min-height:32px;padding:0 11px;font-size:12px;line-height:1.1;transition:background .16s,color .16s}.an9-watch-actions button:hover,.an9-watch-actions a:hover,.an9-watch-actions button.is-active{background:#494949;color:#fff}.an9-watch-actions button[aria-pressed=true]{background:#235548;color:#d9ffed}
.an9-watch-server-panel{margin-top:10px;padding:15px 16px;border:1px solid var(--an9-border2);border-radius:14px;background:var(--an9-surface);box-shadow:0 8px 30px #0003}
.an9-watch-panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.an9-watch-panel-top h2{font-size:16px;margin:0}.an9-watch-panel-top button{display:grid;place-items:center;background:var(--an9-elevated);border:0;width:28px;height:28px;border-radius:8px;color:var(--an9-text);font-size:19px}
.an9-watch-server-filter{display:flex;gap:5px;margin-bottom:12px}.an9-watch-server-filter button{background:var(--an9-elevated);color:var(--an9-muted);border:1px solid var(--an9-border);border-radius:8px;padding:5px 12px;font-size:11px}.an9-watch-server-filter button.is-selected{color:#161616;background:#eee}
.an9-watch-server-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.an9-watch-server{border:1px solid var(--an9-border2);background:var(--an9-card);color:var(--an9-text);border-radius:11px;padding:11px;min-width:0;display:flex;align-items:center;gap:8px;text-align:left}.an9-watch-server>span{font-size:13px;color:var(--an9-green)}.an9-watch-server>strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.an9-watch-server>small{font-size:10px;color:var(--an9-muted);margin-left:auto;white-space:nowrap}.an9-watch-server.is-selected{border-color:#56cba7;background:#1f4138}
.an9-watch-prevnext{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px;padding:11px 15px;border-radius:12px;border:1px solid var(--an9-border);background:var(--an9-card);font-size:11px;color:var(--an9-muted)}.an9-watch-prevnext>div{min-width:110px;flex:1}.an9-watch-prevnext>div:last-child{text-align:right}.an9-watch-prevnext a{color:var(--an9-text)}.an9-watch-prevnext a:hover{color:var(--an9-green)}
.an9-watch-pill-heading{font-size:13px;margin:0 0 10px;width:fit-content;display:flex;align-items:center;gap:7px;background:var(--an9-surface);border:1px solid var(--an9-border2);padding:7px 10px;border-radius:11px;font-weight:550;line-height:1.2}.an9-watch-pill-heading small{font-size:10px;color:var(--an9-muted);font-weight:400}
.an9-watch-description,.an9-watch-download-section{margin:20px 0 15px}.an9-watch-description-card{background:var(--an9-surface);border:1px solid var(--an9-border);border-radius:13px;padding:15px 17px;color:var(--an9-muted);font-size:12px;line-height:1.7}.an9-watch-description-card h3{color:var(--an9-text);margin:0 0 10px;font-size:14px}.an9-watch-description-card>p{margin:0}.an9-watch-description-card p p{margin:0 0 9px}.an9-watch-description-card a{color:var(--an9-green);display:inline-block;margin-top:10px}
.an9-watch-download-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.an9-watch-download-items>a{display:flex;align-items:center;gap:8px;background:var(--an9-surface);border:1px solid var(--an9-border);border-radius:11px;padding:10px;min-width:0}.an9-watch-download-items>a:hover{background:var(--an9-elevated)}.an9-watch-download-items>a>span{color:var(--an9-green);font-size:19px}.an9-watch-download-items strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.an9-watch-download-items small{font-size:9px;color:var(--an9-muted);margin-left:auto}
/* Sidebar episode rail */
.an9-watch-side{display:flex;flex-direction:column;gap:23px}.an9-watch-episodes-panel{border:0;min-width:0}.an9-watch-aside-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}.an9-watch-aside-heading .an9-watch-pill-heading{margin:0}.an9-watch-episode-head-tools{display:flex;gap:6px}.an9-watch-episode-head-tools>button{width:32px;height:32px;border:1px solid var(--an9-border);background:var(--an9-surface);color:var(--an9-text);border-radius:10px;font-size:19px}
.an9-watch-search-wrap{margin:2px 0 9px}.an9-watch-search-wrap input{height:36px;width:100%;background:var(--an9-surface);border:1px solid var(--an9-border2);border-radius:10px;padding:8px 12px;color:var(--an9-text);font-size:12px}
.an9-watch-seasons{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}.an9-watch-seasons::-webkit-scrollbar{display:none}.an9-watch-seasons>button{white-space:nowrap;background:var(--an9-elevated);border:1px solid var(--an9-border);border-radius:9px;color:var(--an9-muted);font-size:11px;padding:6px 11px;min-height:30px}.an9-watch-seasons>button.is-selected{background:#f0f0f0;color:#151515}.an9-watch-seasons button small{font-size:9px;opacity:.6}
.an9-watch-episode-filters{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--an9-muted);margin:0 0 10px}.an9-watch-episode-filters select{border:1px solid var(--an9-border2);background:var(--an9-surface);color:var(--an9-text);border-radius:8px;padding:4px 6px;font-size:11px;max-width:95px}
.an9-watch-episode-list{display:flex;flex-direction:column;gap:8px;max-height:min(610px,calc(100dvh - 245px));min-height:145px;overflow-y:auto;scrollbar-color:#464646 transparent;scrollbar-width:thin;padding:1px 3px 2px 1px}.an9-watch-episode-list.is-loading{opacity:.5;pointer-events:none}
.an9-watch-episode-row{min-width:0;min-height:76px;display:flex;align-items:center;gap:10px;border:1px solid var(--an9-border);background:var(--an9-surface);border-radius:12px;padding:4px 10px 4px 4px;transition:background .15s,border-color .15s}.an9-watch-episode-row:hover{background:var(--an9-elevated);border-color:#4a4a4a}.an9-watch-episode-row.is-current{border-color:#568b7e;background:#162821}
.an9-watch-episode-thumb{flex:0 0 105px;height:65px;position:relative;border-radius:9px;overflow:hidden;background:#171717}.an9-watch-episode-thumb img{display:block;width:100%;height:100%!important;object-fit:cover}.an9-watch-episode-thumb:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#000a);pointer-events:none}.an9-watch-thumb-number{position:absolute;left:5px;bottom:5px;z-index:1;color:#fff;font-size:9px;background:#080808b9;border-radius:4px;padding:1px 4px}.an9-watch-thumb-playing{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e7e7e7;color:#141414;font-size:10px}
.an9-watch-episode-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.an9-watch-episode-copy strong{font-size:11px;line-height:1.35;color:var(--an9-text);font-weight:550;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.an9-watch-episode-copy small{font-size:10px;color:var(--an9-muted)}.an9-watch-row-flags{display:flex;gap:4px}.an9-watch-row-flags em{font-style:normal;font-size:9px;letter-spacing:.02em;color:#92c8b7;border:1px solid #356b5985;border-radius:4px;padding:0 4px}.an9-watch-row-flags em:nth-child(2){color:#95b9dd;border-color:#365b7b}.an9-watch-now{font-size:10px;color:#69d5b1;align-self:flex-start;padding-top:6px}
.an9-watch-no-episodes{font-size:12px;color:var(--an9-muted);padding:28px;text-align:center}.an9-watch-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;font-size:11px;color:var(--an9-muted)}.an9-watch-pager button{background:var(--an9-surface);border:1px solid var(--an9-border);color:var(--an9-text);width:37px;height:28px;border-radius:9px}
.an9-watch-aside-cards{display:flex;flex-direction:column;gap:7px}.an9-watch-aside-cards>a,.an9-watch-aside-cards>button{display:flex;align-items:center;text-align:left;gap:11px;padding:5px 8px 5px 5px;width:100%;min-height:66px;background:var(--an9-surface);border:1px solid var(--an9-border);border-radius:11px;color:var(--an9-text)}.an9-watch-aside-cards>a:hover,.an9-watch-aside-cards>button:hover{background:var(--an9-elevated)}.an9-watch-aside-cards>a>span:nth-child(2),.an9-watch-aside-cards>button>span:nth-child(2){flex:1;min-width:0}.an9-watch-aside-cards strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.35}.an9-watch-aside-cards small{display:block;font-size:10px;color:var(--an9-muted);margin-top:5px}.an9-watch-aside-cards>a>span:last-child,.an9-watch-aside-cards>button>span:last-child{color:var(--an9-muted);font-size:22px}.an9-watch-side-cover{display:block;overflow:hidden;background:#222;width:49px;height:60px;border-radius:7px;flex:0 0 49px}.an9-watch-side-cover img{width:100%;height:100%!important;object-fit:cover}.an9-watch-side-season-cover{display:grid;place-items:center;background:linear-gradient(135deg,#474747,#181818);border-radius:7px;width:47px;height:60px;color:#e8e8e8;font-size:17px;font-weight:700}
.an9-watch-mobile-sections,.an9-watch-inline-related{display:none}
/* Report dialog and toast */
.an9-watch-overlay{position:fixed;inset:0;z-index:230;display:grid;place-items:center;padding:18px}.an9-watch-overlay-shade{position:absolute;inset:0;background:#000b;backdrop-filter:blur(4px)}
.an9-watch-report-modal{position:relative;z-index:1;display:flex;flex-direction:column;gap:14px;width:min(440px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;border-radius:17px;background:var(--an9-surface);border:1px solid var(--an9-border2);padding:23px;box-shadow:0 25px 80px #000b}.an9-watch-report-modal label{display:grid;gap:6px;font-size:12px}.an9-watch-report-modal label select,.an9-watch-report-modal label textarea{width:100%;border:1px solid var(--an9-border2);border-radius:9px;color:var(--an9-text);background:var(--an9-card);padding:10px}.an9-watch-report-modal textarea{resize:vertical}.an9-watch-report-submit{background:#eee;color:#111;border:0;border-radius:10px;padding:12px;font-weight:600}.an9-watch-report-response{margin:0;font-size:11px;color:var(--an9-green)}
.an9-watch-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);padding:11px 16px;max-width:min(90%,490px);background:#292929;border:1px solid #555;color:#fff;box-shadow:0 12px 30px #0009;border-radius:12px;font-size:12px;z-index:250}
body.an9-watch-theater .an9-watch{width:calc(100% - 30px);max-width:none}body.an9-watch-theater .an9-watch-layout{grid-template-columns:minmax(0,1fr)}body.an9-watch-theater .an9-watch-side{display:none}body.an9-watch-theater .an9-watch-player-stage{max-height:calc(100dvh - 160px);aspect-ratio:16/9}
@media (min-width:1650px){.an9-watch-layout{grid-template-columns:minmax(0,1fr) 385px;gap:20px}}
@media (max-width:1050px){.an9-watch-layout{grid-template-columns:minmax(0,1fr) 295px;gap:12px}.an9-watch-episode-thumb{flex-basis:77px}.an9-watch-server-list{grid-template-columns:repeat(2,minmax(0,1fr))}.an9-watch-current-ep-name{display:none}}
@media (max-width:850px){.an9-watch-layout{grid-template-columns:minmax(0,1fr)}.an9-watch-side{gap:14px}.an9-watch-episode-list{max-height:530px}.an9-watch-title-wrap{min-width:0}.an9-watch-main-head{align-items:stretch}.an9-watch-actions{width:100%}.an9-watch-inline-related{display:none}.an9-watch-side .an9-watch-suggested{margin:12px 0}}
@media (max-width:650px){
 .an9-watch{padding-top:74px;padding-bottom:34px}.an9-watch-layout{gap:15px}.an9-watch-player{border-radius:16px}.an9-watch-player-stage{aspect-ratio:16/9}.an9-watch-player-bottom{min-height:32px;padding:3px 8px}.an9-watch-player-source{font-size:10px}.an9-watch-icon-button{height:27px;min-width:29px;font-size:15px}
 .an9-watch-tip{margin-top:10px;padding:10px;line-height:1.5}.an9-watch-breadcrumb{margin:12px 0 12px;font-size:10px}.an9-watch-main-head{margin-bottom:6px;gap:9px}.an9-watch-mini-poster{width:39px;height:39px;flex-basis:39px}.an9-watch-title-text h1{font-size:13px}.an9-watch-title-text p{font-size:10px}.an9-watch-save{font-size:11px;min-height:34px;padding:0 10px}
 .an9-watch-actions{gap:5px;padding-bottom:6px}.an9-watch-actions button,.an9-watch-actions a{min-height:34px;font-size:11px;padding:0 10px}.an9-watch-server-list{grid-template-columns:1fr 1fr;gap:6px}.an9-watch-server{flex-wrap:wrap}.an9-watch-server>small{margin-left:0}.an9-watch-server>strong{flex:1}
 .an9-watch-description{margin:21px 0 10px}.an9-watch-description-card{padding:13px}.an9-watch-download-items{grid-template-columns:1fr 1fr}.an9-watch-prevnext{margin:8px 0 5px}
 .an9-watch-mobile-sections{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:17px 0 12px}.an9-watch-mobile-sections button{min-height:35px;border:0;border-radius:100px;padding:0 17px;font-size:12px;white-space:nowrap;background:var(--an9-elevated);color:var(--an9-text)}.an9-watch-mobile-sections button.is-selected{background:#eee;color:#111}
 .an9-watch-side .an9-watch-episodes-panel{margin-top:0}.an9-watch-side .an9-watch-suggested{display:none}.an9-watch-inline-related{display:none;margin:2px 0 14px}.an9-watch.mobile-related .an9-watch-episodes-panel,.an9-watch.mobile-related .an9-watch-season-summary{display:none}.an9-watch.mobile-related .an9-watch-suggested{display:block}.an9-watch-side{padding-top:0}
 .an9-watch-episode-list{max-height:none;overflow:visible}.an9-watch-episode-row{min-height:80px}.an9-watch-episode-thumb{height:70px;flex-basis:112px}.an9-watch-aside-cards>a,.an9-watch-aside-cards>button{min-height:70px}
 .an9-watch-description-card p{max-height:175px;overflow-y:auto}
}
@media(prefers-reduced-motion:reduce){.an9-watch *{scroll-behavior:auto!important;transition:none!important}}

.an9-watch-native-tools{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 8px;background:#090909;border-top:1px solid #242424}
.an9-watch-native-tools button{font-size:10px;border:1px solid #3b3b3b;background:#222;color:#e5e5e5;border-radius:7px;padding:6px 9px;min-height:26px}.an9-watch-native-tools button[aria-pressed=true]{color:#b0f4d8;border-color:#358267}
.an9-watch-native-tools button:hover{background:#333}.an9-watch-description-body>p{margin:0 0 9px}.an9-watch-description-body>p:last-child{margin-bottom:0}
