/*
 * aw-tops.css — the Top anime and the upcoming variants of the listing (partials/listing/top.blade.php,
 * partials/listing/upcoming.blade.php) of the animeworld theme. The pages themselves are animeworld.ac's
 * css/pages/tops-tops.css and css/pages/upcoming-upcoming.css, loaded as they are; this file holds what the CMS
 * adds. Pushed by the two partials (not in the layout's area list); every rule is scoped to them.
 */

/* ---- Top anime ------------------------------------------------------------------------------------------- */
/* The page title is the <h1> here (animeworld: a span) — the same box. */
h1#pagetitle { margin: 0; font-size: inherit; line-height: inherit; text-transform: none; }

/* The engine's add-to-list inside animeworld's watchlist cell: the menu is filled by main.js (a.dropdown-item per
   folder), the toggle is a button. */
.tops .item .watchlist .favourite { position: relative; }
.tops .item .watchlist .favourite .dropdown-menu { min-width: 180px; max-width: 240px; padding: 4px 0; font-family: "Nunito Sans", sans-serif; font-size: 13px; }
.tops .item .watchlist .favourite .dropdown-menu:empty { display: none !important; }
.tops .item .watchlist .favourite .dropdown-item { display: block; padding: 6px 14px; color: #555; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tops .item .watchlist .favourite .dropdown-item:hover { background: #f3f5f8; color: #367dc3; }
.tops .item .watchlist .favourite .dropdown-item.active { background: #367dc3; color: #fff; }
body.dark .tops .item .watchlist .favourite .dropdown-item { color: #c3bfbf; }
body.dark .tops .item .watchlist .favourite .dropdown-item:hover { background: #2c2c2c; color: #fff; }
body.dark .tops .item .watchlist .favourite .dropdown-item.active { background: #1e5f9e; color: #fff; }
/* An open menu must not be clipped by the row's box. */
.tops .item .widget, .tops .item .widget-body { overflow: visible; }

/* Dark: the head bar, the tabs and the sort switch are animeworld's own (dark.css `body.dark .sort-buttons-picker …`). */

/* The pager under the ranking (CMS: 24 titles per page). */
.tops-page .aw-tops-pager { margin-top: 0; }
.tops-page .aw-tops-pager .widget-body { padding: 10px; }

/* ---- Upcoming --------------------------------------------------------------------------------------------- */
/* The page title is the <h1> inside animeworld's div.title. */
.aw-upcoming-page .widget-title .title h1 { display: inline; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.aw-upcoming-page .aw-upcoming-pager { margin-top: 10px; }

/* animeworld’s own page overflows the phone viewport by 5px (Bootstrap’s .row gutters inside the 10px container padding). */
#app.aw-top #body { overflow-x: clip; }
