/*
 * aw-watch.css — the title + episode page of the animeworld theme (package B: frontend/anime, frontend/watch,
 * partials/anime/*, partials/watch/*). Loaded on every page by the layout, so every rule is scoped to this
 * page's own boxes (`#watch-main`, `.widget.player`, `.widget.servers`, `.widget.info`, `#w-report`, `.aw-…`).
 *
 * animeworld's own rules (all.css `.widget.player …`, `.widget.servers …`, `.widget.info …`, css/pages/play-*.css)
 * draw the page; this file holds only what the CMS engine needs on top:
 *   1. The player box       #player-wrapper / #player layering, engine states, new-tab overlay, "non disponibile"
 *   2. Controls             the CMS's extra controls, the two dropdown menus, the dead-end prev / next
 *   3. Share                jssocials' flat look for the static share links (the library is not loaded)
 *   4. Tabs                 animeworld's `.widget-title .tabs .tab` under the theme's names (.aw-tabs / .aw-tab):
 *                           main.js Tabs hijacks every `.tabs` (brief §7)
 *   5. Server widget        the server tabs + Audio pills, range pills on the engine's .dropdown-item, VISTO / filler
 *   6. Info widget          #w-rating stars (bootstrap-star-rating's look), the phone poster
 *   7. Downloads, report modal, sidebar
 *   8. Expanded player      main.js `.expand` on #watch-main (+ js/aw-watch.js)
 */

/* 1. The player box ------------------------------------------------------------------------------------------- */
.aw-anime .aw-vb { display: contents; }
.widget.player #player-wrapper.player-box { overflow: hidden; }
/* The cover: animeworld's Player_Light.png / Player_Dark.png (1848x1080, `background-size: cover` from the box's
   top left corner — all.css) as the theme's own drawing of the same canvas (tmp/foundation-aw/art-player.py). */
.widget.player #player-wrapper .cover { background-image: url(../images/aw-player-light.svg); background-repeat: no-repeat; }
body.dark .widget.player #player-wrapper .cover { background-image: url(../images/aw-player-dark.svg); }
.widget.player #player-wrapper .cover { overflow: hidden; }
/* The owner's mascot (images/mascot/player.png, 16:9, the character at its right) where animeworld's stands: sized
   and placed from the box's HEIGHT like the background (1.1 x the 1080 canvas, 60 down), against the right edge. */
.widget.player #player-wrapper .cover .aw-mascot { position: absolute; z-index: 1; top: 5.55%; right: 0; width: auto; max-width: none; height: 95.9%; pointer-events: none; -webkit-user-select: none; user-select: none; }
.widget.player .au-noservers .cover .aw-mascot, .widget.player .au-extonly .cover .aw-mascot { opacity: .55; }
.widget.player #player-wrapper .cover:focus { outline: none; }
.widget.player #player-wrapper .cover:focus-visible:after { box-shadow: inset 0 0 0 3px rgba(95, 164, 230, .9); }
/* The engine's stage sits over the cover; it takes the pointer only once it shows something (js/aw-watch.js
   adds .aw-on while #player holds anything but the idle .play button). */
.widget.player #player-wrapper #player { position: absolute; top: 0; left: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }
.widget.player #player-wrapper.aw-on #player { pointer-events: auto; background: #000; }
.widget.player #player .play { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.widget.player #player iframe { display: block; width: 100%; height: 100%; border: 0; }
.widget.player #player .loading { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; background: none; animation: aw-spin .8s linear infinite; }
@keyframes aw-spin { to { transform: rotate(360deg); } }
.widget.player #player .message { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 20px 50px; color: #ccc; text-align: center; font-weight: 400; font-size: 1.2rem; font-family: "Nunito Sans", sans-serif; }
.widget.player .au-novideo { display: none; position: absolute; top: 0; left: 0; z-index: 4; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); color: #ccc; text-align: center; font-family: "Nunito Sans", sans-serif; font-size: 1.2rem; }
.widget.player .au-noservers:not(.au-extonly) .au-novideo { display: flex; }
.widget.player .au-noservers .cover:before, .widget.player .au-extonly .cover:before { display: none; }
.widget.player .au-noservers .cover, .widget.player .au-extonly .cover { cursor: default; }
/* Only new-tab servers: the big links over the cover. */
.widget.player .au-extplay { position: absolute; top: 0; left: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 15px; background: rgba(0, 0, 0, .45); text-align: center; }
.widget.player .au-extplay[hidden] { display: none; }
.widget.player .au-extplay-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.widget.player .au-extplay-btn { font-family: "Nunito Sans", sans-serif; font-size: 1.1rem; font-weight: 600; padding: 8px 16px; border-radius: 3px; background: #367dc3; border-color: #2b6cad; color: #fff; }
.widget.player .au-extplay-btn:hover, .widget.player .au-extplay-btn:focus { background: #2b649c; border-color: #2b649c; color: #fff; }
.widget.player .au-extplay-btn .fa-external-link-alt { font-size: .8em; margin-left: 2px; }
.widget.player .au-extplay-note { margin: 10px 0 0; color: #ddd; font-family: "Nunito Sans", sans-serif; font-size: .95rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* The trailer keeps animeworld's box. */
.widget.player .trailer-show .player-box iframe { display: block; }
/* No episode yet: animeworld's "Questa serie non è disponibile" picture (img.img-fluid, 770x236) — own drawings,
   one per look. */
.widget.player .aw-unavailable { position: relative; display: inline-block; max-width: 100%; overflow: hidden; line-height: 0; vertical-align: top; }
.widget.player .aw-unavailable img.img-fluid { height: auto; }
.widget.player .aw-unavailable .aw-only-dark, body.dark .widget.player .aw-unavailable .aw-only-light { display: none; }
body.dark .widget.player .aw-unavailable .aw-only-dark { display: inline; }
/* the owner's mascot (images/mascot/unavailable.png) at the right, behind the strip's bottom-right band */
.widget.player .aw-unavailable .aw-mascot { position: absolute; top: 2%; right: 0; width: auto; max-width: none; height: 131.6%; pointer-events: none; }
.widget.player .aw-unavailable:after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #165fa7; -webkit-clip-path: polygon(61% 91.5%, 100% 84.7%, 100% 100%, 64.9% 100%); clip-path: polygon(61% 91.5%, 100% 84.7%, 100% 100%, 64.9% 100%); }
body.dark .widget.player .aw-unavailable:after { background: #1d446f; }

/* 2. Controls ------------------------------------------------------------------------------------------------- */
/* OWNER DECISIONS (2026-11-19), on purpose against the reference's "icon + label" row:
   - only the icons, on ONE line, at every width and in both looks; each control a small soft button: a 36px rounded
     tile with a light background and a subtle drop shadow (a darker tile in the dark look), 8px apart, grouped from
     the left as the reference's controls are; it lifts a little on hover and presses on click;
   - "priority+": the controls that do not fit the line are moved (the same nodes, js/aw-watch.js) into the "Altro"
     menu, where .aw-in-menu turns each into an icon + label row; .aw-pre-over hides them until then (the inline
     script under the row decides before the first paint), so the row never jumps or wraps.
   The label is span.aw-lbl — visually hidden on a tile, where it is the control's aria-label + tooltip. A state the
   text used to tell is the icon's accent colour (.aw-active: in a list, expanded, lights off; the trailer by
   data-state; Download by aria-expanded; VISTO by .au-on). The icons keep animeworld's sizes and colours. */
.widget.player #controls { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px; min-height: 52px; padding: 8px 10px; }
.widget.player #controls > .clearfix { display: none; }
.widget.player #controls .control.aw-pre-over, .widget.player #controls .control.aw-more-empty { display: none !important; }
.widget.player #controls .control:not(.aw-in-menu) { float: none; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: #f6f7f9; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); line-height: 36px; text-align: center; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.widget.player #controls .control:not(.aw-in-menu):hover { background: #fff; border-radius: 8px; box-shadow: 0 3px 8px rgba(0, 0, 0, .22); transform: translateY(-1px); }
.widget.player #controls .control:not(.aw-in-menu):active, .widget.player #controls .control.show { background: #eceef2; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); transform: none; }
.widget.player #controls .control > .text { display: block; height: 100%; margin: 0; padding: 0; border-radius: 8px; }
.widget.player #controls .control:not(.aw-in-menu) .aw-lbl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.widget.player #controls .control .icon.aw-active, .widget.player #controls .control.userbookmark .icon.aw-active { color: #367dc3; }
.widget.player #controls .control.trailer[data-state="1"] i { color: #367dc3 !important; }
.widget.player #controls .control.au-seen-toggle i, .widget.player #controls .control.aw-ctl-w2g i { color: #367dc3; }
.widget.player #controls .control.au-seen-toggle.au-on i { color: #00be00; }
.widget.player #controls .control.au-dl-toggle i { color: #00a58d; }
.widget.player #controls .control.au-dl-toggle[aria-expanded="true"] i { color: #367dc3; }
.widget.player #controls .control.aw-more > .text > i { color: #777; }
body.dark .widget.player #controls .control:not(.aw-in-menu) { background: #2b2b2b; box-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
body.dark .widget.player #controls .control:not(.aw-in-menu):hover { background: #333; box-shadow: 0 3px 8px rgba(0, 0, 0, .7); }
body.dark .widget.player #controls .control:not(.aw-in-menu):active, body.dark .widget.player #controls .control.show { background: #1c1c1c; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7); }
body.dark .widget.player #controls .control .icon.aw-active, body.dark .widget.player #controls .control.trailer[data-state="1"] i,
body.dark .widget.player #controls .control.au-dl-toggle[aria-expanded="true"] i { color: #5fa4e6 !important; }
body.dark .widget.player #controls .control.au-seen-toggle.au-on i { color: #00be00 !important; }
@media (prefers-reduced-motion: reduce) {
    .widget.player #controls .control { transition: none; }
    .widget.player #controls .control:not(.aw-in-menu):hover { transform: none; }
}
/* A control in the "Altro" menu: a row of animeworld's dropdown (ul.dropdown-menu > li > a), icon + label. */
.widget.player #controls .aw-more-over { padding: 0; }
.widget.player #controls .aw-more-over:empty { display: none; }
.widget.player #controls .control.aw-in-menu, .widget.player #controls .control.aw-in-menu.resize > span { display: flex; align-items: center; gap: 0 8px; }
.widget.player #controls .control.aw-in-menu { float: none; width: auto; height: auto; padding: 4px 20px; border: 0; border-radius: 0; background: none; box-shadow: none; font-family: "Nunito Sans", sans-serif; font-size: 13px; font-weight: 400; line-height: 1.42857; color: #333; white-space: nowrap; text-align: left; transform: none; }
.widget.player #controls .control.aw-in-menu:hover, .widget.player #controls .control.aw-in-menu:focus { color: #262626; background-color: #f5f5f5; border-radius: 0; text-decoration: none; }
/* (the menu itself sits inside the "Altro" tile: undo the tile's hidden label for the rows) */
.widget.player #controls .control.aw-in-menu .aw-lbl { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-size: 13px; white-space: inherit; }
.widget.player #controls .control.aw-in-menu i, .widget.player #controls .control.aw-in-menu img { flex: 0 0 16px; width: 16px !important; margin: 0; font-size: 1em; text-align: center; vertical-align: baseline; }
.widget.player #controls .control.aw-in-menu img { height: 13px; object-fit: contain; }
body.dark .widget.player #controls .control.aw-in-menu { color: #adabab; }
body.dark .widget.player #controls .control.aw-in-menu:hover, body.dark .widget.player #controls .control.aw-in-menu:focus { color: #ddd; background-color: #191818; }
/* The engine .show()s prev / next at bind (inline display); the first skin's animeunity-watch.js marks the dead end. */
.widget.player #controls .control.au-none { display: none !important; }
.widget.player #controls a.control, .widget.player #controls a.control:hover { text-decoration: none; }
.widget.player #controls .control .fas, .widget.player #controls .control .fab, .widget.player #controls .control .fa { font-size: 1.05rem; vertical-align: -8%; }
.widget.player #controls .control.aw-more > .text > i { color: #777; }
.widget.player #controls .control.mal img, .widget.player #controls .control.anilist img { vertical-align: -12%; }
.widget.player #controls .control:focus { outline: none; }
.widget.player #controls .control:focus-visible, .widget.player #controls .control > .text:focus-visible { outline: 2px solid rgba(54, 125, 195, .5); outline-offset: -2px; border-radius: 8px; }
.widget.player #controls .control > .text:focus { outline: none; }
/* The two menus (main.js's dropdown plugin: `.show` on the parent + an inline display on the menu). */
.widget.player #controls .control.dropdown { position: relative; }
.widget.player #controls .control .dropdown-menu { top: 100%; left: 0; z-index: 1000; min-width: 160px; margin: 2px 0 0; padding: 5px 0; font-family: "Nunito Sans", sans-serif; font-size: 13px; line-height: 1.42857; text-align: left; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 3px; box-shadow: 0 6px 12px rgba(0, 0, 0, .175); cursor: default; list-style: none; }
.widget.player #controls .control .dropdown-menu.folders:empty { display: none !important; }
/* the member's Watchlist menu: animeworld's box numbers (play-one-piece as a member: Bootstrap's .5rem padding, .125rem gap, no shadow) */
.widget.player #controls .control.userbookmark .dropdown-menu { min-width: 130px; margin-top: .125rem; padding: .5rem 0; border-radius: .25rem; box-shadow: none; background-clip: padding-box; }
body.dark .widget.player #controls .control.userbookmark .dropdown-menu { background: #1d1b1b; border-color: rgba(0, 0, 0, .15); box-shadow: none; }
/* main.js UserFavourite fills `.folders` with a.dropdown-item[data-id] (animeworld: ul.dropdown-menu > li > a). */
.widget.player #controls .folders > .dropdown-item { display: block; width: auto; padding: 4px 20px; clear: both; font-weight: 400; font-size: 13px; line-height: 1.42857; color: #333; white-space: pre; cursor: pointer; user-select: none; background: none; border: 0; }
.widget.player #controls .folders > .dropdown-item:hover, .widget.player #controls .folders > .dropdown-item:focus { text-decoration: none; color: #262626; background-color: #f5f5f5; }
.widget.player #controls .folders > .dropdown-item.active, .widget.player #controls .folders > .dropdown-item.active:hover { color: #fff; background-color: #367dc3; }
.widget.player #controls .folders > .dropdown-item i { margin-right: 6px; font-size: 1em; color: inherit !important; }
.widget.player #controls .folders > .dropdown-item .text-danger { color: #e83838 !important; }
/* "Altro": the CMS's extra actions (VISTO, Download, Watch2gether) and the player switches in one menu, in the
   look of animeworld's Watchlist menu (ul.dropdown-menu.bookmark.choices > li > a — all.css draws the rows). */
.widget.player #controls .aw-more-menu { min-width: 262px; max-height: none !important; overflow: visible; }
.widget.player #controls .au-cfg-menu > .ctrl > a { display: flex; align-items: center; gap: 0 8px; padding: 4px 20px; clear: both; text-align: left; font-weight: 400; line-height: 1.42857; color: #333; white-space: nowrap; text-decoration: none; cursor: pointer; }
.widget.player #controls .au-cfg-menu > .ctrl > a:hover { color: #262626; background-color: #f5f5f5; text-decoration: none; }
.widget.player #controls .au-cfg-menu > .ctrl > a > i { flex: 0 0 16px; width: 16px; margin: 0; font-size: 1em; color: #367dc3; text-align: center; vertical-align: baseline; }
.widget.player #controls .aw-more-menu > li.divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; }
.widget.player #controls .aw-more-menu > li.divider.aw-off { display: none; }
.widget.player #controls .au-cfg-menu { padding: 0; }
.widget.player #controls .au-cfg-menu > .ctrl { cursor: pointer; }
.widget.player #controls .au-cfg-menu > .ctrl:focus { outline: none; }
.widget.player #controls .au-cfg-menu > .ctrl:focus-visible > a { background-color: #f5f5f5; }
.widget.player #controls .aw-sw { position: relative; flex: 0 0 auto; width: 28px; height: 15px; margin-left: auto; border-radius: 15px; background: #ccc; transition: background .2s; }
.widget.player #controls .aw-sw:before { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.widget.player #controls .aw-sw.aw-on { background: #367dc3; }
.widget.player #controls .aw-sw.aw-on:before { transform: translateX(13px); }
/* The last control of a line: the menu opens leftwards where it would leave the widget (js/aw-watch.js). */
.widget.player #controls .aw-more.aw-more-right .dropdown-menu { left: auto; right: 0; }
@media screen and (max-width: 500px) {
    /* the menu's box is the 36px Altro tile: size it by its rows, not by the tile, so rows do not break word by word */
    .widget.player #controls .aw-more-menu { min-width: 0; width: max-content; max-width: calc(100vw - 30px); }
    .widget.player #controls .control.aw-in-menu, .widget.player #controls .au-cfg-menu > .ctrl > a { white-space: normal; }
}
body.dark .widget.player #controls .control .dropdown-menu { background: #1f1f1f; border-color: #333; box-shadow: 0 6px 12px rgba(0, 0, 0, .5); }
body.dark .widget.player #controls .folders > .dropdown-item, body.dark .widget.player #controls .au-cfg-menu > .ctrl > a { color: #adabab; }
body.dark .widget.player #controls .folders > .dropdown-item:hover, body.dark .widget.player #controls .folders > .dropdown-item:focus, body.dark .widget.player #controls .au-cfg-menu > .ctrl > a:hover { color: #ddd; background-color: #191818; }
body.dark .widget.player #controls .aw-more-menu > li.divider { background-color: #333; }
body.dark .widget.player #controls .control.aw-more > .text > i { color: #8e8c8c; }
body.dark .widget.player #controls .folders > .dropdown-item.active { color: #ddd; background-color: #165fa7; }
body.dark .widget.player #controls .aw-sw { background: #484848; }
body.dark .widget.player #controls .aw-sw.aw-on { background: #367dc3; }
body.dark .widget.player #controls .aw-sw:before { background: #ccc; }
/* The heart: the member's "love" (animeunity-detail.js .au-on = animeworld's .liked). */
#loveButton #add-to-fav.au-on { color: #ef4343; }
#loveButton #add-to-fav.au-busy { opacity: .6; }
#loveButton #add-to-fav:focus { outline: none; }
#loveButton #add-to-fav:focus-visible { color: #ef4343; }

/* 3. Share (jssocials + its flat theme, for the static links) ---------------------------------------------- */
.widget.socials .jssocials-shares { margin: .2em 0; }
.widget.socials .jssocials-shares * { box-sizing: border-box; }
.widget.socials .jssocials-share { display: inline-block; vertical-align: top; margin: .3em .6em .3em 0; }
.widget.socials .jssocials-share:last-child { margin-right: 0; }
.widget.socials .jssocials-share-logo { width: 1em; height: 1em; vertical-align: middle; font-size: 1.5em; }
.widget.socials .jssocials-share-link { display: inline-block; padding: .6em; border-radius: 50%; color: #fff; text-align: center; text-decoration: none; line-height: 1; transition: background .2s ease-in-out, border-color .2s ease-in-out; }
.widget.socials .jssocials-share-link:hover, .widget.socials .jssocials-share-link:focus, .widget.socials .jssocials-share-link:active { color: #fff; }
.widget.socials .jssocials-share-twitter .jssocials-share-link { background: #00aced; }
.widget.socials .jssocials-share-twitter .jssocials-share-link:hover { background: #0087ba; }
.widget.socials .jssocials-share-facebook .jssocials-share-link { background: #3b5998; }
.widget.socials .jssocials-share-facebook .jssocials-share-link:hover { background: #2d4373; }
.widget.socials .jssocials-share-linkedin .jssocials-share-link { background: #007bb6; }
.widget.socials .jssocials-share-linkedin .jssocials-share-link:hover { background: #005983; }
.widget.socials .jssocials-share-email .jssocials-share-link { background: #3490f3; }
.widget.socials .jssocials-share-email .jssocials-share-link:hover { background: #0e76e6; }
.widget.socials .jssocials-share-whatsapp .jssocials-share-link { background: #29a628; }
.widget.socials .jssocials-share-whatsapp .jssocials-share-link:hover { background: #1f7d1e; }
.widget.socials .jssocials-share-telegram .jssocials-share-link { background: #2ca5e0; }
.widget.socials .jssocials-share-telegram .jssocials-share-link:hover { background: #1c88bd; }
.widget.socials .jssocials-share-pocket .jssocials-share-link { background: #ef4056; }
.widget.socials .jssocials-share-pocket .jssocials-share-link:hover { background: #e9132e; }
.widget.socials .aw-share-copy .jssocials-share-link { background: #6d6d6d; }
.widget.socials .aw-share-copy .jssocials-share-link:hover { background: #555; }
.widget.socials .widget-body { padding: 15px 10px 10px; }
.widget.socials .widget-body h4 { font-size: 1.3rem; margin: 0 0 6px; color: #555; }
body.dark .widget.socials .widget-body h4 { color: #ccc8c8; }

/* 4. Tabs under the theme's names ------------------------------------------------------------------------------ */
.widget .widget-title .aw-tabs .aw-tab { display: inline-block; padding: 6px 7px; border-bottom: 2px solid rgba(0, 0, 0, 0); cursor: pointer; font-family: "Nunito Sans", sans-serif; }
.widget .widget-title .aw-tabs .aw-tab:hover { color: #367dc3; border-bottom: 2px solid #eee; }
.widget .widget-title .aw-tabs .aw-tab.active,
.widget .widget-title .aw-tabs .aw-tab.au-active { border-bottom: 2px solid #2b6cad; }
.widget .widget-title .aw-tabs .aw-tab:focus { outline: none; }
.widget .widget-title .aw-tabs .aw-tab:focus-visible { color: #367dc3; border-bottom-color: #eee; }
@media screen and (max-width: 450px) {
    .widget .widget-title .aw-tabs { display: block; clear: both; }
}
body.dark .widget .widget-title .aw-tabs .aw-tab { color: #8e8c8c; }
body.dark .widget .widget-title .aw-tabs .aw-tab.active,
body.dark .widget .widget-title .aw-tabs .aw-tab.au-active { color: #888; }
body.dark .widget .widget-title .aw-tabs .aw-tab:hover { border-bottom-color: #484848; }

/* 5. Server widget -------------------------------------------------------------------------------------------- */
.widget.servers .widget-title .aw-tabs .aw-tab { margin: 4px 4px 0; }
.widget.servers .widget-title #w-servers, .widget.servers .widget-title .aw-srv, .widget.servers .widget-title .au-srv-rows { display: inline; }
.widget.servers .widget-title .au-srv-row { display: inline-flex; flex-wrap: wrap; vertical-align: top; }
.widget.servers .widget-title .au-srv-row.au-srv-row--off { display: none; }
.widget.servers .widget-title .au-srv-list { display: contents; margin: 0; padding: 0; list-style: none; }
.widget.servers .widget-title .aw-tab > a { display: block; margin: -6px -7px; padding: 6px 7px; color: inherit; text-decoration: none; font-weight: inherit; }
.widget.servers .widget-title .aw-tab > a:focus { outline: none; }
.widget.servers .widget-title .au-srv-out { margin-left: 2px; font-size: .7em; vertical-align: 10%; opacity: .7; }
.widget.servers .widget-title .aw-srv-none { cursor: default; }
.widget.servers .widget-title .aw-srv-none:hover { color: inherit; border-bottom-color: rgba(0, 0, 0, 0); }
#watch-main.au-svloading .widget.servers .au-srv-rows { opacity: .5; pointer-events: none; }
/* Audio: one pill per language, in the range pills' look, at the right end of the title bar (a float: the bar
   contains it when the tabs wrap). */
.widget.servers .widget-title:after { content: ""; display: table; clear: both; }
.widget.servers .widget-title .aw-audio { float: right; line-height: 35px; white-space: nowrap; }
.widget.servers .widget-title .aw-audio.d-none { display: none; }
.widget.servers .widget-title .aw-audio-label { margin-right: 4px; font-family: "Nunito Sans", sans-serif; font-size: .9rem; color: #8c8c8c; }
.widget.servers .widget-title .au-srv-aud { display: inline-block; margin: 0 0 0 4px; padding: 1px 8px; border: 0; border-radius: 2px; background: #ccc; color: #fff; font-family: inherit; font-size: .9rem; font-weight: 300; line-height: 1.5; cursor: pointer; vertical-align: baseline; }
.widget.servers .widget-title .au-srv-aud:hover { background: #b3b3b3; }
.widget.servers .widget-title .au-srv-aud.active { background: #5fa4e6; color: #fff; }
.widget.servers .widget-title .au-srv-aud:focus { outline: none; }
.widget.servers .widget-title .au-srv-aud:focus-visible { box-shadow: 0 0 0 2px rgba(54, 125, 195, .45); }
body.dark .widget.servers .widget-title .au-srv-aud { background: #312e2e; color: #888; }
body.dark .widget.servers .widget-title .au-srv-aud:hover { background: #2b2828; }
body.dark .widget.servers .widget-title .au-srv-aud.active { background: #165fa7; color: #a2a2a2; }
body.dark .widget.servers .widget-title .aw-audio-label { color: #6d6d6d; }
@media screen and (max-width: 450px) {
    /* animeworld: the tabs drop under the "Server" title on a phone (all.css .widget-title .tabs) */
    .widget.servers .widget-title .au-srv-rows { display: block; clear: both; }
    .widget.servers .widget-title .aw-audio { float: none; display: block; clear: both; padding-bottom: 4px; line-height: 26px; }
    .widget.servers .widget-title .aw-audio.d-none { display: none; }
    .widget.servers .widget-title .au-srv-aud:first-of-type { margin-left: 0; }
}
/* animeworld's body padding of the Server widget (its own rule has none: the lists carry the margins). */
.widget.servers .widget-body { padding: 10px; }
/* The range pills are the engine's `.filter.range .dropdown-item`s: undo Bootstrap's .dropdown-item box. */
.widget.servers .range > span.dropdown-item { width: auto; clear: none; white-space: nowrap; border: 0; line-height: inherit; text-align: left; }
.widget.servers .range > span.dropdown-item.d-none { display: none; }
.widget.servers .range > span.dropdown-item:focus { outline: none; }
.widget.servers .range > span.dropdown-item:focus-visible { background: #b3b3b3; }
.widget.servers .range.au-ep-type { margin-top: -6px; }
.widget.servers .aw-eps .filter.name { display: none; }
/* Episode states the engine and the first skin's script write. */
.widget.servers ul.episodes li a.au-seen { background: #cfe3f7; border-color: #a4b9ce; }
.widget.servers ul.episodes li a.au-filler { box-shadow: inset 0 -2px 0 #e6a23c; }
.widget.servers ul.episodes li a.highlight { box-shadow: 0 0 0 2px #5fa4e6; }
.widget.servers ul.episodes li a[enabled="0"] { opacity: .45; }
.widget.servers ul.episodes li a.active, .widget.servers ul.episodes li a.active:visited { background-color: #367dc3; color: #fff; border-color: currentColor currentColor #eee; box-shadow: none; }
.widget.servers ul.episodes li a:focus { outline: none; }
.widget.servers ul.episodes li a:focus-visible { box-shadow: 0 0 0 2px rgba(54, 125, 195, .5); }
body.dark .widget.servers ul.episodes li a.au-seen { background: #1a1a1a; color: #676767; }
body.dark .widget.servers ul.episodes li a.active, body.dark .widget.servers ul.episodes li a.active:visited { background: #367dc3; color: #ddd; }
.widget.servers .au-ep-none { padding: 10px 0 14px; }

/* 6. Info widget ---------------------------------------------------------------------------------------------- */
/* animeworld's inline <style> of the widget. */
@media (max-width: 767px) {
    .widget.info .c1 { float: unset !important; }
    .widget.info #mobile-thumbnail-watch { width: 20% !important; }
}
@media (max-width: 575px) {
    .widget.info #mobile-thumbnail-watch { width: 30% !important; }
}
/* main.js Rating on div#w-rating: five bare spans, drawn as bootstrap-star-rating's krajee-fas stars
   (css/pages/play-rate.css: 19px, empty #6d6d6d, filled #ffc103 with a white glow). */
.widget.info #w-rating .aw-stars { display: block; font-size: 19px; line-height: 1.5; white-space: nowrap; text-align: center; cursor: pointer; }
/* width: all.css has a global `.full { width: 100% }` and the engine writes class="full" on a filled star. */
.widget.info #w-rating .aw-stars span { position: relative; display: inline-block; width: auto; margin: 0 2px; color: #6d6d6d; text-align: center; }
.widget.info #w-rating .aw-stars span:before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; -webkit-font-smoothing: antialiased; }
.widget.info #w-rating .aw-stars span.full { color: #ffc103; text-shadow: 0 0 3px #fff; }
.widget.info #w-rating .aw-stars span.half:after { content: "\f005"; position: absolute; top: 0; left: 0; width: 50%; overflow: hidden; color: #ffc103; text-shadow: 0 0 3px #fff; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.widget.info .info .head #w-rating .text { padding-top: 0; }
.widget.info #w-rating .aw-rating-msg { display: block; text-align: center; font-family: "Nunito Sans", sans-serif; font-size: .95rem; color: #8c8c8c; }
.widget.info #w-rating .aw-rating-msg:empty { display: none; }
.widget.info #w-rating .aw-rating-msg:not(:empty) + .text { display: none; }
body.dark .widget.info #w-rating .aw-stars span.full, body.dark .widget.info #w-rating .aw-stars span.half:after { text-shadow: none; }
@media (max-width: 767px) {
    .widget.info .info .head #w-rating { float: right; }
}
.widget.info .info .desc .morelink:focus { outline: none; }
.widget.info .info .desc .morelink:focus-visible { background: #e2e2e2; color: #367dc3; }

/* 7. Downloads, report modal, sidebar ------------------------------------------------------------------------- */
.aw-dl .widget-body { padding: 10px; overflow-x: auto; }
.aw-dl .au-dl-table { margin: 0; font-family: "Nunito Sans", sans-serif; font-size: 1rem; color: #555; }
.aw-dl .au-dl-table th { border-top: 0; border-bottom: 1px solid #eee; font-weight: 600; color: #367dc3; text-transform: uppercase; font-size: .9rem; }
.aw-dl .au-dl-table td { border-top: 1px solid #eee; vertical-align: middle; }
.aw-dl .au-dl-table .btn { margin: 0; font-size: 12px; white-space: nowrap; }
.aw-dl .au-dl-empty td { text-align: center; color: #8c8c8c; padding: 14px; }
body.dark .aw-dl .au-dl-table { color: #b1b1b1; }
body.dark .aw-dl .au-dl-table th { color: #ccc8c8; border-bottom-color: rgba(51, 51, 51, .84); }
body.dark .aw-dl .au-dl-table td { border-top-color: rgba(51, 51, 51, .84); }

#w-report.aw-report { font-family: Roobert, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; }
#w-report.aw-report .modal-dialog { max-width: 500px; }
#w-report.aw-report .modal-content.widget { margin: 0; border: 0; border-radius: 3px; }
#w-report.aw-report .widget-title .close { float: right; margin: 0; padding: 0 2px; font-size: 22px; line-height: 35px; color: #999; opacity: 1; text-shadow: none; background: none; border: 0; }
#w-report.aw-report .widget-title .close:hover { color: #367dc3; }
#w-report.aw-report .widget-body { padding: 15px; font-family: "Nunito Sans", sans-serif; }
#w-report.aw-report .aw-report-ep { margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; color: #555; }
#w-report.aw-report label { margin-bottom: 4px; color: #8c8c8c; font-weight: 400; }
#w-report.aw-report .form-control { height: auto; padding: 6px 10px; font-size: 13px; border-radius: 2px; }
#w-report.aw-report textarea.form-control { min-height: 90px; resize: vertical; }
#w-report.aw-report form > .alert { margin: 0 0 12px; padding: 8px 34px 8px 12px; font-size: 13px; border-radius: 2px; }
#w-report.aw-report form > .alert .close { padding: 6px 10px; font-size: 18px; line-height: 1; }
body.dark #w-report.aw-report .aw-report-ep { color: #ccc8c8; }
body.dark #w-report.aw-report .form-control { background: #1c1b1b; border-color: #303030; color: #c3bfbf; }

#sidebar .aw-related .item > a { display: block; float: left; }
/* The banner boxes (Admin › Settings › Ads: `content` in the main column, `sidebar` in the sidebar) in animeworld's
   boxes: div.widget.text-center between the info and the comments, div.widget.crop.text-center under "Serie simili"
   and at the top of the sidebar (300x250 there). The pasted code is centred and never wider than its column. */
.aw-play .ak-ad.aw-ad { line-height: 0; text-align: center; overflow: hidden; }
.aw-play .ak-ad.aw-ad > * { max-width: 100%; margin-left: auto; margin-right: auto; line-height: normal; }
.aw-play .ak-ad.aw-ad img, .aw-play .ak-ad.aw-ad iframe, .aw-play .ak-ad.aw-ad ins { max-width: 100%; vertical-align: top; }
.aw-play .ak-ad.aw-ad:empty { display: none; }
#sidebar .social-aw { padding: 10px; }

/* 8. Expanded player ("Espandi": main.js toggles .expand on #watch-main; js/aw-watch.js sets --aw-expand-gap
      on the sidebar so it starts under the widened widget) -------------------------------------------------- */
@media screen and (min-width: 801px) {
    #watch-main.expand .widget.player { position: relative; z-index: 3; width: calc(100% + 310px); }
    #watch-main.expand .widget.player .player-box { height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px); }
    #watch-main.expand .widget.player .trailer-show .player-box { height: auto; aspect-ratio: 16 / 9; }
    body.aw-expanded #body #sidebar { margin-top: var(--aw-expand-gap, 0px); }
}

/* 9. "+18" notice (partials/anime/age-gate: animeworld's "Alt!" modal on titles for adults) ------------------- */
html.aw-age-open, html.aw-age-open body { overflow: hidden; }
.aw-age-gate { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 28px 15px; overflow-y: auto; background: rgba(0, 0, 0, .5); }
.aw-age-gate[hidden] { display: none; }
.aw-age-box { width: 100%; max-width: 500px; margin: auto 0; background: #fff; border: 1px solid rgba(0, 0, 0, .2); border-radius: 4px; box-shadow: 0 5px 15px rgba(0, 0, 0, .5); color: #212529; }
.aw-age-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #dee2e6; }
.aw-age-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.aw-age-title i { margin-right: 6px; }
.aw-age-head .close { padding: 0 4px; margin: -4px -4px -4px auto; font-size: 26px; line-height: 1; color: #000; opacity: .4; background: none; border: 0; cursor: pointer; }
.aw-age-head .close:hover, .aw-age-head .close:focus { opacity: .75; }
.aw-age-body { padding: 15px; }
.aw-age-art { display: flex; justify-content: center; }
.aw-age-art img { display: block; width: 100%; max-width: 320px; height: auto; }
.aw-age-plate { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 220px; height: 160px; margin: 20px auto; border: 4px solid #8a8aa6; border-radius: 6px; background: #f2f2f2; transform: rotate(-3deg); box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.aw-age-plate b { font-size: 64px; font-weight: 900; line-height: .9; color: #d0112b; }
.aw-age-plate span { font-size: 34px; font-weight: 900; letter-spacing: 1px; color: #111; }
.aw-age-body hr { margin: 12px 0; }
.aw-age-lead { margin: 0 0 10px; text-align: center; font-size: 14px; color: #666; }
.aw-age-list { margin: 0 0 15px; padding: 0 0 0 4px; list-style: none; font-size: 14px; color: #666; }
.aw-age-list li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.aw-age-list li::before { content: ""; position: absolute; left: 2px; top: 5px; border: 5px solid transparent; border-left: 6px solid #333; }
.aw-age-foot { text-align: center; }
.aw-age-ok { padding: 6px 16px; font-size: 16px; }
.aw-age-ok i { margin-left: 6px; }
body.dark .aw-age-box { background: #222; border-color: #333; color: #ccc8c8; }
body.dark .aw-age-head { border-bottom-color: #333; }
body.dark .aw-age-head .close { color: #ccc8c8; }
body.dark .aw-age-lead, body.dark .aw-age-list { color: #b3b2b2; }
body.dark .aw-age-list li::before { border-left-color: #b3b2b2; }
body.dark .aw-age-body hr { border-top-color: #333; }
body.dark .aw-age-plate { background: #2c2c2c; border-color: #555; }
body.dark .aw-age-plate span { color: #ddd; }
body.dark .aw-age-art img { opacity: .9; }
@media (max-width: 575px) { .aw-age-gate { padding: 10px; } .aw-age-art img { max-width: 240px; } }
