/*
 * animeflv-bridge.css — shared additions on top of animeflv's own sheets
 * (css.css 1.3.4, Bootstrap 3.3.5, Font Awesome 4.5 — all verbatim, never
 * edited). Owned by the foundation (docs/ANIMEFLV-FOUNDATION.md §3); area
 * agents report changes they need instead of editing it.
 *
 *   1. Icons: Font Awesome 4 (animeflv) + 6 (engine) on one page
 *   2. Bootstrap 4 states and helpers on Bootstrap 3's look
 *   3. Header: menu "Más", search suggestions, #user, sign-in drop-down
 *   4. Header: member (account menu + bell)
 *   5. Toasts (alertify's look), AjaxForm alerts (.Msj look), loaders
 *   6. Shared content pieces (types, empty states, scroll boxes, ads,
 *      site alert, poster tooltip, footer extras)
 *
 * Colours are animeflv's: header slate #3b4248, accent #01bcf3 (hover
 * #00aeed), orange #ff7e00, red #fb3447, text #3b4248 / #666 / #9da1a4,
 * hairlines #f3f3f3, card shadow 0 0 30px rgba(0,0,0,.1).
 */

/* ── 1. Icons ─────────────────────────────────────────────────────────────
   css.css draws animeflv's prefix-less icons (`class="fa-play-circle"`) with
   `[class*=fa-]:before{font-family:FontAwesome;font-weight:400!important;
   margin-right:10px;vertical-align:top}`. That attribute selector also
   matches the engine's Font Awesome 6 icons (`fa-solid fa-heart`,
   `fas fa-bell`, `fa-brands fa-discord`), pulling them into the v4 font at
   weight 400 with a 10px gap. Elements that carry an FA6 style class get
   their own family and weight back and no gap; `fa` (v4's own class) keeps
   v4's rule. Measured: a v4 `.fa-play-circle` and a v6 `.fa-solid.fa-heart`
   on one page both render their glyph (docs/ANIMEFLV-FOUNDATION.md §6). */
.fa-solid:before, .fa-regular:before, .fa-brands:before,
.fas:before, .far:before, .fab:before {
    font-family: inherit;
    font-weight: inherit !important;
    margin-right: 0;
    vertical-align: baseline;
    line-height: inherit;
}
/* FA4's `.fa` sets its own size (14px) and v4 font; css.css's rule gives
   `.fa` icons the 10px gap too — animeflv wrote `fa fa-x` only in Bootstrap
   pieces (the browse filter button), where Bootstrap spaced them, so keep
   v4's own look there. */
.fa:before { margin-right: 0; vertical-align: baseline; }
/* Brand icons FA 4.5 never had, written with the v6 class in v4 markup
   (footer socials): the element is not an <i>, so give it the v6 family. */
.ListSocial .fa-brands:before { font-family: "Font Awesome 6 Brands"; font-weight: 400 !important; }

/* ── 2. Bootstrap 4 states on Bootstrap 3's look ──────────────────────────
   The CMS runs Bootstrap 4.6 JS and main.js's own dropdown plugin; animeflv's
   CSS is Bootstrap 3.3.5. BS4 writes `.show` where BS3 styles `.in`/`.open`. */
.fade.show { opacity: 1; }
.modal-backdrop.show { opacity: .5; }
.modal.show .modal-dialog { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 60px); }
.modal-dialog-centered > .modal-content { width: 100%; }
.modal-header .close { margin-top: -2px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-header:before, .modal-header:after { display: none; }
.modal-header .modal-title { order: 0; }
.modal-header .close { order: 1; }
.collapse.show { display: block; }
.tooltip.show { opacity: .9; filter: alpha(opacity=90); }
.popover.show { display: block; }
/* main.js's dropdown plugin: `.show` on the parent; the menu gets an inline
   display from slideDown/slideUp (never `!important` here). */
.dropdown.show > .dropdown-menu, .btn-group.show > .dropdown-menu, .show > .dropdown-menu.af-show { display: block; }
.show > .dropdown-toggle:focus { outline: 0; }
.dropdown-item { display: block; padding: 3px 20px; clear: both; font-weight: 400; line-height: 1.42857143; color: #333; white-space: nowrap; }
.dropdown-item:hover, .dropdown-item:focus { color: #262626; text-decoration: none; background-color: #f5f5f5; }
.dropdown-item.active, .dropdown-item:active { color: #fff; background-color: #01bcf3; }
.dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; }
/* Tabs / pills: BS4 marks the link, BS3 styled the <li>. */
.nav-tabs > li > a.active, .nav-tabs > li > a.active:hover, .nav-tabs > li > a.active:focus { color: #555; cursor: default; background-color: #fff; border: 1px solid #ddd; border-bottom-color: transparent; }
.nav-pills > li > a.active, .nav-pills > li > a.active:hover, .nav-pills > li > a.active:focus { color: #fff; background-color: #01bcf3; }
/* BS4 tooltip arrow (`.arrow` + `bs-tooltip-*`) drawn like BS3's. */
.tooltip .arrow { position: absolute; display: block; width: 10px; height: 5px; }
.tooltip .arrow:before { position: absolute; content: ""; border-color: transparent; border-style: solid; }
.bs-tooltip-top, .bs-tooltip-auto[x-placement^=top] { padding: 5px 0; }
.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^=top] .arrow { bottom: 0; }
.bs-tooltip-top .arrow:before, .bs-tooltip-auto[x-placement^=top] .arrow:before { top: 0; border-width: 5px 5px 0; border-top-color: #000; }
.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^=bottom] { padding: 5px 0; }
.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^=bottom] .arrow { top: 0; }
.bs-tooltip-bottom .arrow:before, .bs-tooltip-auto[x-placement^=bottom] .arrow:before { bottom: 0; border-width: 0 5px 5px; border-bottom-color: #000; }
.bs-tooltip-right .arrow, .bs-tooltip-left .arrow { width: 5px; height: 10px; }
.bs-tooltip-right { padding: 0 5px; }
.bs-tooltip-right .arrow { left: 0; }
.bs-tooltip-right .arrow:before { right: 0; border-width: 5px 5px 5px 0; border-right-color: #000; }
.bs-tooltip-left { padding: 0 5px; }
.bs-tooltip-left .arrow { right: 0; }
.bs-tooltip-left .arrow:before { left: 0; border-width: 5px 0 5px 5px; border-left-color: #000; }

/* Bootstrap 4 helpers the engine's templates and the CMS partials emit
   (docs/ANIMEFLV-HOOKS.md §0.11). Bootstrap 3 has none of them. */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.float-left { float: left !important; }
.float-right { float: right !important; }
.float-none { float: none !important; }
.position-relative { position: relative !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.text-white { color: #fff !important; }
.font-weight-bold { font-weight: 700 !important; }
.rounded { border-radius: 5px !important; }
.m-0 { margin: 0 !important; }
.mt-0, .my-0 { margin-top: 0 !important; }
.mb-0, .my-0 { margin-bottom: 0 !important; }
.ml-0, .mx-0 { margin-left: 0 !important; }
.mr-0, .mx-0 { margin-right: 0 !important; }
.mt-1, .my-1 { margin-top: .25rem !important; }
.mb-1, .my-1 { margin-bottom: .25rem !important; }
.ml-1, .mx-1 { margin-left: .25rem !important; }
.mr-1, .mx-1 { margin-right: .25rem !important; }
.mt-2, .my-2 { margin-top: .5rem !important; }
.mb-2, .my-2 { margin-bottom: .5rem !important; }
.ml-2, .mx-2 { margin-left: .5rem !important; }
.mr-2, .mx-2 { margin-right: .5rem !important; }
.mt-3, .my-3 { margin-top: 1rem !important; }
.mb-3, .my-3 { margin-bottom: 1rem !important; }
.ml-3, .mx-3 { margin-left: 1rem !important; }
.mr-3, .mx-3 { margin-right: 1rem !important; }
.mt-4, .my-4 { margin-top: 1.5rem !important; }
.mb-4, .my-4 { margin-bottom: 1.5rem !important; }
.ml-auto, .mx-auto { margin-left: auto !important; }
.mr-auto, .mx-auto { margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.btn-light { color: #3b4248; background-color: #f3f3f3; border-color: #e8e7f0; }
.btn-light:hover { background-color: #e8e7f0; }
.btn-secondary { color: #fff; background-color: #3b4248; border-color: #3b4248; }
.btn-secondary:hover { color: #fff; background-color: #01bcf3; border-color: #01bcf3; }
.badge-light { color: #3b4248; background-color: #f3f3f3; }
.spinner-border { display: inline-block; width: 2rem; height: 2rem; vertical-align: text-bottom; border: .25em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: af-spin .75s linear infinite; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .2em; }
@keyframes af-spin { to { transform: rotate(360deg); } }
.custom-control { position: relative; display: block; min-height: 1.5rem; padding-left: 1.5rem; }
.custom-control-input { position: absolute; left: 0; z-index: -1; width: 1rem; height: 1.25rem; opacity: 0; }
.custom-control-label { position: relative; margin-bottom: 0; vertical-align: top; cursor: pointer; font-weight: 400; }
.custom-control-label:before { position: absolute; top: .2rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; content: ""; background: #fff; border: 1px solid #e8e7f0; border-radius: 3px; }
.custom-control-input:checked ~ .custom-control-label:before { background: #01bcf3; border-color: #01bcf3; }
/* css.css sizes every input / button (width 100%, 40px, appearance none);
   checkboxes and radios that are not animeflv's hidden toggles keep a
   native box. */
input[type=checkbox]:not([hidden]), input[type=radio]:not([hidden]) { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; width: auto; height: auto; display: inline-block; padding: 0; }

/* ── 3. Header ─────────────────────────────────────────────────────────── */
/* #user (main.js UserPanel's slot) sits where animeflv's `.Login` sat. */
.Header > .Mid .af-user { position: relative; z-index: 4; }
@media all and (min-width: 1020px) {
    .Header > .Mid .af-user, .Header > .Mid .af-member { display: flex; align-items: center; }
}
/* "Más": a CMS-only menu entry. ≥1020px a white `.TtCn`-style drop-down on
   hover / focus; inside the phone menu an indented, always-open list. */
.Header > .Mid .Menu > li.af-more { position: relative; }
.Header > .Mid .Menu > li.af-more > a:after { font-family: FontAwesome; content: '\f107'; margin-left: 6px; font-weight: 400; }
.Header > .Mid .af-more-list { padding: 0 0 5px 15px; }
.Header > .Mid .af-more-list > li > a { display: block; color: #fff; opacity: .5; font-size: 13px; line-height: 34px; padding: 0 15px; font-weight: 700; }
.Header > .Mid .af-more-list > li > a:hover, .Header > .Mid .af-more-list > li.Current > a { opacity: 1; }
@media all and (min-width: 1020px) {
    .Header > .Mid .af-more-list {
        position: absolute; right: 0; top: 100%; z-index: 5; width: 200px; padding: 10px 0;
        background-color: #fff; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, .1);
        opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; transition: all .2s;
    }
    .Header > .Mid .af-more-list:before { content: ''; position: absolute; right: 25px; top: -5px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #fff; }
    .Header > .Mid .Menu > li.af-more:hover > .af-more-list, .Header > .Mid .Menu > li.af-more:focus-within > .af-more-list { opacity: 1; visibility: visible; max-height: 999em; overflow: visible; }
    .Header > .Mid .af-more-list > li > a { color: #3b4248; opacity: 1; line-height: 20px; padding: 8px 15px; font-weight: 400; text-transform: none; }
    .Header > .Mid .af-more-list > li > a:hover { background-color: rgba(0, 0, 0, .03); color: #01bcf3; }
    .Header > .Mid .af-more-list > li.Current > a { color: #01bcf3; font-weight: 700; }
}
/* Search suggestions: animeflv's `.ListResult` rows (css.css); the box's
   rows link in the site's text colour. */
.Header > .Mid .Search .ListResult a { color: #3b4248; }
.Header > .Mid .Search .ListResult a:hover { color: #01bcf3; }
.Header > .Mid .Search .ListResult > li.Loading { color: #666; font-size: 12px; }
.Header > .Mid .Search .ListResult > li.Loading img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.Header > .Mid .Search .ListResult > li.MasResultados a { display: block; font-weight: 700; color: #fff; }
.Header > .Mid .Search .ListResult figure img { width: 50px; height: 50px; object-fit: cover; }
/* Sign-in drop-down (partials/animeflv/login-box): CMS panes and pieces
   animeflv's form never had, in its vocabulary. */
.Header > .Mid .Login .af-login-panes { color: #3b4248; }
.Header > .Mid .Login .af-login-panes > [data-content] > .Title { text-transform: uppercase; font-weight: 700; line-height: 50px; text-align: center; border-bottom: 1px solid #f3f3f3; }
.Header > .Mid .Login form .af-pane-text { font-size: 12px; color: #666; margin-bottom: 10px; line-height: 18px; }
.Header > .Mid .Login form > .af-captcha:empty, .Header > .Mid .Login form > .af-captcha > .captcha:empty { display: none; }
.Header > .Mid .Login form > .af-captcha { margin-bottom: 10px; overflow: hidden; }
.Header > .Mid .Login form > button { margin-bottom: 10px; }
.Header > .Mid .Login form .Links { line-height: 20px; }
.Header > .Mid .Login form .af-links-verify { margin-top: 5px; text-align: center; }
.Header > .Mid .Login form .af-links-verify a { color: #01bcf3; }
/* Social sign-in in animeflv's `.fb_login` place (its "INICIAR SESION CON
   FB"), one per CMS provider in the provider's colour. */
.Header > .Mid .Login .af-social { display: block; width: 100%; background: var(--af-brand, #45619d) !important; color: #fff !important; margin-bottom: 10px !important; text-align: center !important; }
.Header > .Mid .Login .af-social:hover { opacity: .8; }
.Header > .Mid .Login .af-social span:before { color: #fff; }
/* main.js AjaxForm's busy marker (the form's first `.loading`) and the
   `.alert` it prepends: animeflv's preloader and its `.Msj` look. */
.Header > .Mid .Login form .loading { height: 20px; margin: -5px 0 10px; background: url(../img/preloader_white.gif) no-repeat 50% 50%; background-size: 20px 20px; filter: invert(1) brightness(.6); }
.Header > .Mid .Login form > .alert, .Header > .Mid .Login .af-social-error { font-size: 12px; line-height: 18px; border-radius: 5px; border: 0; padding: 8px 30px 8px 12px; margin-bottom: 10px; position: relative; text-align: left; }
.Header > .Mid .Login .af-social-error { margin: 10px 15px 15px; }
.Header > .Mid .Login form > .alert-danger, .Header > .Mid .Login .af-social-error { background-color: rgba(251, 52, 71, .1); color: #fb3447; }
.Header > .Mid .Login form > .alert-success { background-color: rgba(0, 176, 70, .1); color: #00b046; }
.Header > .Mid .Login form > .alert-info { background-color: rgba(1, 188, 243, .1); color: #01bcf3; }
.Header > .Mid .Login form > .alert .close { position: absolute; right: 8px; top: 6px; width: auto; height: auto; padding: 0; background: none; color: inherit; font-size: 16px; line-height: 1; opacity: .6; }
.Header > .Mid .Login form > .alert .close:hover { opacity: 1; background: none; }
/* Phones: the drop-down opens inside the slide-in menu; keep its form in
   the menu's width. */
@media all and (max-width: 1020px) {
    .Header > .Mid .Login .DpdwCnt.TtCn:before { display: none; }
    .Header > .Mid .Login .DpdwCnt.TtCn { margin-top: 10px; }
}

/* ── 4. Header: member (partials/user-panel) ─────────────────────────────
   `.Login.Online` is css.css's own dormant style; only the pieces it never
   had are here: the name/line clamp, the logout button, the bell. */
.Header > .Mid .Login.Online > .Button > span { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.Header > .Mid .Login.Online > .Button > span img { object-fit: cover; }
.Header > .Mid .Login.Online > .Button > span strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.Header > .Mid .Login.Online .DpdwCnt.TtCn { width: 230px; }
.Header > .Mid .Login.Online .ListUser > li > a { color: #3b4248; font-size: 13px; }
.Header > .Mid .Login.Online .ListUser > li > a:before { width: 16px; text-align: center; }
/* "Cerrar sesión" posts a form: a <button> drawn as animeflv's `a.LogOut`. */
.ListUser > li > form { margin: 0; }
.ListUser > li > form > button.LogOut, .Header > .Mid .Login .ListUser > li > form > button.LogOut { display: block; width: 100%; padding: 10px 15px; background-color: #fb3447; border-radius: 5px; text-align: center; color: #fff; font-weight: 700; font-size: 12px; }
.ListUser > li > form > button.LogOut:before { margin-right: 5px; }
.ListUser > li > form > button.LogOut:hover, .Header > .Mid .Login .ListUser > li > form > button.LogOut:hover { opacity: .8; background-color: #fb3447; }
/* The bell (`.notify.dropdown`, notifications-bell.js) — a 40px round
   button in the header's rgba(0,0,0,.2) like the Login button. */
.Header > .Mid .af-bell { position: relative; padding: 5px 15px; }
.Header > .Mid .af-bell-btn { display: block; position: relative; width: 40px; height: 40px; line-height: 40px; border-radius: 20px; text-align: center; color: #fff; background-color: rgba(0, 0, 0, .2); font-size: 15px; }
.Header > .Mid .af-bell-btn:before { margin-right: 0; line-height: 40px; vertical-align: top; }
.Header > .Mid .af-bell-btn:hover, .Header > .Mid .af-bell.show .af-bell-btn { background-color: #01bcf3; color: #fff; }
.Header > .Mid .af-bell-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background-color: #fb3447; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; }
.Header > .Mid .af-bell-count[hidden] { display: none; }
@media all and (min-width: 1020px) {
    .Header > .Mid .af-bell { padding: 15px 5px; }
}
.user-notification.af-bell-menu { width: 330px; max-width: calc(100vw - 30px); padding: 0; margin-top: 5px; border: 0; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, .1); font-size: 13px; color: #3b4248; overflow: visible; }
.user-notification.af-bell-menu:before { content: ''; position: absolute; right: 15px; top: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #fff; }
.user-notification .noti-bell-tabs { display: flex; padding: 15px 15px 0; font-size: 0; }
.user-notification .noti-bell-tabs > span[data-bell-tab] { flex: 1; font-size: 12px; font-weight: 700; color: #fff; background-color: #3b4248; line-height: 30px; text-align: center; cursor: pointer; transition: background-color .2s; }
.user-notification .noti-bell-tabs > span[data-bell-tab]:first-child { border-radius: 15px 0 0 15px; }
.user-notification .noti-bell-tabs > span[data-bell-tab]:last-child { border-radius: 0 15px 15px 0; }
.user-notification .noti-bell-tabs > span[data-bell-tab]:hover, .user-notification .noti-bell-tabs > span[data-bell-tab].active { background-color: #01bcf3; }
/* Each tab's unread count (the engine's .count / .noti-count-* badges),
   red like the bell's own badge; a tab with nothing unread shows a faint 0
   (app.js memberHeader marks it .af-zero). */
.user-notification .noti-bell-tabs .badge { display: inline-block; vertical-align: top; min-width: 18px; height: 18px; margin: 6px 0 0 6px; padding: 0 5px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; color: #fff; background-color: #fb3447; }
.user-notification .noti-bell-tabs .badge.af-zero { color: rgba(255, 255, 255, .6); background-color: rgba(255, 255, 255, .15); }
.user-notification .noti-bell-actions { padding: 8px 15px; text-align: right; }
.user-notification .noti-bell-actions a { font-size: 12px; color: #01bcf3; }
.user-notification .noti-bell-actions a:before { margin-right: 5px; }
.user-notification .noti-bell-pane { display: none; }
.user-notification .noti-bell-pane.active { display: block; }
.user-notification .body-box { max-height: 340px; overflow-y: auto; border-top: 1px solid #f3f3f3; }
.user-notification .nnl-item { display: flex; align-items: flex-start; padding: 10px 15px; border-bottom: 1px solid #f3f3f3; color: #3b4248; line-height: 18px; }
.user-notification a.nnl-item:hover { background-color: rgba(0, 0, 0, .03); color: #01bcf3; }
.user-notification .nnl-item > div:last-child { min-width: 0; flex: 1; padding-left: 10px; }
.user-notification .nnl-item strong { display: block; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-notification .nnl-item p { margin: 2px 0; color: #666; font-size: 12px; }
.user-notification .nnl-item .time { color: #9da1a4; font-size: 11px; }
.user-notification .nnl-item .film-poster { position: relative; flex: 0 0 36px; width: 36px; height: 50px; border-radius: 3px; overflow: hidden; }
.user-notification .nnl-item .film-poster img, .user-notification .user-avatar img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.user-notification .nnl-item .user-avatar { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.user-notification .system-noti-icon { line-height: 36px; text-align: center; background-color: #f3f3f3; color: #3b4248; }
.user-notification .nnl-item.old { opacity: .5; }
.user-notification .nnl-item.new { opacity: 1; }
.user-notification .no-result { display: block; padding: 15px; text-align: center; font-size: 12px; color: #9da1a4; opacity: 1; }
.user-notification > .nnl-more { display: block; line-height: 40px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; background-color: #01bcf3; color: #fff; border-radius: 0 0 5px 5px; }
.user-notification > .nnl-more:hover { background-color: #00aeed; color: #fff; }
/* Phones: everything is inside the slide-in menu; the MENU button carries a
   red dot while anything is unread (app.js memberHeader). */
@media all and (max-width: 1020px) {
    .Header > .Mid .af-bell { display: inline-block; }
    .Header > .Mid .af-bell-menu { position: absolute; left: 15px; right: auto; }
    .Header > .Mid .af-bell-menu:before { left: 15px; right: auto; }
    .BtnMenu.af-has-unread:after { content: ''; position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 5px; background-color: #fb3447; }
    #BtnMenu:checked ~ .BtnMenu.af-has-unread:after { width: 100%; height: 100%; right: auto; top: 0; border-radius: 0; background-color: #000; }
}

/* ── 5. Toasts, alerts, loaders ──────────────────────────────────────────
   animeflv announced results with alertify.js logs (bottom left, 12px 24px,
   white on rgba(0,0,0,.8) / red / green, shadow, 1px radius). The engine's
   toasts — main.js `#toast > .alert`, comments.js `#toast-container > .alert`,
   member/community `.ak-toast` — and the skin's window.showToast take that look. */
#toast, #toast-container, .af-logs { position: fixed; left: 16px; bottom: 16px; z-index: 999999; display: flex; flex-direction: column; align-items: flex-start; max-width: calc(100% - 32px); pointer-events: none; }
#toast > .alert, #toast-container > .alert, .af-logs > div, .ak-toast {
    position: relative; margin: 12px 0 0; padding: 12px 40px 12px 24px; max-width: 420px;
    border: 0; border-radius: 1px; color: #fff; background: rgba(0, 0, 0, .8);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .2); font-size: 14px; line-height: 20px; pointer-events: auto; text-align: left;
}
.af-logs > div { padding-right: 24px; cursor: pointer; }
#toast > .alert-danger, #toast-container > .alert-danger, .af-logs > .error, .ak-toast-error { background: rgba(244, 67, 54, .8); color: #fff; }
#toast > .alert-success, #toast-container > .alert-success, .af-logs > .success, .ak-toast-success { background: rgba(76, 175, 80, .9); color: #fff; }
#toast > .alert-info, #toast-container > .alert-info { background: rgba(0, 0, 0, .8); color: #fff; }
#toast .alert i, #toast-container .alert i { margin-right: 4px; }
#toast .alert .mx-2 { margin: 0 6px !important; }
#toast .alert .close, #toast-container .alert .close { position: absolute; top: 10px; right: 12px; width: auto; height: auto; padding: 0; background: none; color: #fff; opacity: .7; text-shadow: none; font-size: 18px; line-height: 1; }
#toast .alert .close:hover, #toast-container .alert .close:hover { opacity: 1; background: none; }
.ak-toast { position: fixed; left: 16px; bottom: 16px; z-index: 999999; opacity: 0; transform: translateX(-110%); transition: all .4s cubic-bezier(.25, .8, .25, 1); }
.ak-toast.is-on { opacity: 1; transform: none; }
/* Engine-written busy markers (`<div class="loading"></div>`): animeflv's
   preloader (it drew no other). */
div.loading:empty { min-height: 20px; background: url(../img/preloader_white.gif) no-repeat 50% 50%; background-size: 20px 20px; filter: invert(1) brightness(.6); }
.Wrapper .alert { border-radius: 5px; }

/* ── 6. Shared content pieces ────────────────────────────────────────── */
/* animeflv coloured only tv / movie / ova. "special" has no colour in
   css.css — on the cards (over the poster) the reference really shows a
   transparent pill with white text, so it stays that way there; on white
   rows (sidebar lists, search suggestions, hover boxes) it would vanish, so
   it gets the header slate there. ONA and music are CMS types: slate
   everywhere. */
.Type.ona, .Type.music,
.ListSdbr .Type.special, .ListResult .Type.special { background-color: #3b4248; border-color: #3b4248; }
/* On the slate hover box / tooltip the slate pill would vanish. */
.Description .Type.ona, .Description .Type.music, .af-qtip .Type.ona, .af-qtip .Type.music, .af-qtip .Type.special { background-color: rgba(255, 255, 255, .2); border-color: transparent; }
/* Scroll boxes. animeflv ran mCustomScrollbar 3.1.3 on `.ScrlV` (the
   Emisión list) and `.ScrlH`; that build calls jQuery's removed
   `$(window).load(fn)` and throws under the CMS's jQuery 3, so the boxes
   scroll natively — with css.css's own 5px blue scrollbar
   (`body ::-webkit-scrollbar`). css.css caps `.ScrlV` at 180px ≤767px. */
.ScrlV { overflow-y: auto; overflow-x: hidden; }
.ScrlH { overflow-x: auto; overflow-y: hidden; }
/* Empty states inside animeflv lists. */
.af-empty { padding: 30px 15px; text-align: center; font-size: 13px; color: #9da1a4; width: 100%; list-style: none; }
.ListAnimes > li.af-empty, .ListEpisodios > li.af-empty { width: 100% !important; }
/* Ad slots (<x-frontend.ad>, Admin › Ads). */
.ak-ad.af-ad-x { margin: 0 auto 20px; max-width: 728px; text-align: center; }
.ak-ad.af-ad-y { margin: 0 auto 20px; text-align: center; }
.ak-ad.ak-ad--footer { margin: 0 auto 20px; text-align: center; }
.Body > .ak-ad { max-width: 1170px; padding: 0 15px; }
/* Site alert (partials/site-alert, Admin › Settings › Site alert): animeflv's
   `.Msj` bar. */
.af-site-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 10px 20px; border-radius: 20px; font-size: 12px; line-height: 18px; color: #666; background-color: rgba(1, 188, 243, .1); }
.af-site-alert[hidden] { display: none; }
.af-site-alert--warning { background-color: rgba(255, 193, 7, .1); }
.af-site-alert--critical { background-color: rgba(251, 52, 71, .1); }
.af-site-alert-icon { flex-shrink: 0; font-size: 20px; color: #01bcf3; }
.af-site-alert--warning .af-site-alert-icon { color: #ffc107; }
.af-site-alert--critical .af-site-alert-icon { color: #fb3447; }
.af-site-alert-icon:before { margin-right: 0; }
.af-site-alert-body { flex: 1; min-width: 0; }
.af-site-alert-kicker { font-weight: 700; color: #3b4248; margin-right: 5px; }
.af-site-alert-text a { font-weight: 700; color: #01bcf3; }
.af-site-alert-link { flex-shrink: 0; line-height: 30px; padding: 0 15px; border-radius: 15px; font-size: 12px; font-weight: 700; color: #fff; background-color: #01bcf3; }
.af-site-alert-link:hover { color: #fff; opacity: .8; }
.af-site-alert .close { width: auto; height: auto; padding: 0 0 0 5px; background: none; color: #3b4248; opacity: .4; font-size: 20px; line-height: 1; }
.af-site-alert .close:hover { opacity: 1; background: none; }
/* Poster tooltip (partials/anime-tooltip, main.js Tooltip on [data-tip],
   ≥1024px): animeflv's card hover box (`.Anime.alt.B .Description`, measured
   in tmp/listing/SPEC.md §2.4) — slate #3b4348 panel, 5px radius,
   0 0 20px rgba(0,0,0,.5), 15px padding, 11–12px / 18px #b0bec5 text, the
   title 14px bold white, type pill + white score with a #ffc700 star, the
   blue "VER ANIME" pill. */
.tooltipster-sidetip.tooltipster-base .tooltipster-box { background: #3b4348; border: 0; border-radius: 5px; box-shadow: 0 0 20px rgba(0, 0, 0, .5); }
.tooltipster-sidetip .tooltipster-content { padding: 15px; color: #b0bec5; font-size: 11px; line-height: 18px; }
.tooltipster-sidetip .tooltipster-arrow { display: none; }
.af-qtip { position: relative; }
.af-qtip .Title { font-size: 14px; color: #fff; line-height: 20px; margin-bottom: 10px; padding-right: 30px; }
.af-qtip p { margin-bottom: 10px; }
.af-qtip p .Type { margin-right: 10px; vertical-align: top; height: 20px; line-height: 20px; }
.af-qtip .Vts { color: #fff; font-size: 14px; font-weight: 700; line-height: 20px; }
.af-qtip .Vts:before { color: #ffc700; font-size: 16px; margin-right: 3px; }
.af-qtip .af-qtip-desc { max-height: 108px; overflow: hidden; }
.af-qtip .af-qtip-info { margin-bottom: 10px; }
.af-qtip .af-qtip-info li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-qtip .af-qtip-info strong { color: #fff; }
.af-qtip .af-qtip-info a { color: #01bcf3; }
.af-qtip .af-qtip-info a:hover { color: #fff; }
.af-qtip > .loading { margin: 10px 0; filter: none; }
.af-qtip .Button.Vrnmlk { float: none; display: inline-block; color: #fff; }
.af-qtip .af-qtip-fav { position: absolute; top: 12px; right: 12px; }
.af-qtip .af-qtip-fav > a { display: block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 13px; color: #fff; background-color: #01bcf3; }
.af-qtip .af-qtip-fav > a:before { margin-right: 0; vertical-align: top; line-height: 26px; }
/* The add-to-list folder menu main.js fills (`.favourite .folders`). */
.dropdown-menu.folders { min-width: 170px; padding: 5px 0; border: 0; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, .15); font-size: 13px; }
.dropdown-menu.folders .dropdown-item { color: #3b4248; padding: 6px 15px; }
.dropdown-menu.folders .dropdown-item:hover { color: #01bcf3; background: rgba(0, 0, 0, .03); }
.dropdown-menu.folders .dropdown-item.active { color: #fff; background: #01bcf3; }
/* Footer extras (partials/animeflv/footer): the EN/JP title switch and the
   friends line, small and grey like the footer text. */
.Footer .af-footer-extra { margin-top: 10px; line-height: 20px; }
.Footer .af-footer-extra > span { display: inline-block; margin-right: 15px; color: #777f82; }
.Footer .af-title-lang-sw { display: inline-block; vertical-align: top; margin-left: 5px; background-color: rgba(0, 0, 0, .3); border-radius: 10px; font-size: 0; }
.Footer .af-title-lang-sw > span { display: inline-block; font-size: 11px; font-weight: 700; line-height: 20px; padding: 0 8px; border-radius: 10px; color: #777f82; cursor: pointer; }
.Footer .af-title-lang-sw > span.active { background-color: #01bcf3; color: #fff; }
.Footer .af-friends a { color: #fff; }
.Footer .af-friends a:hover { text-decoration: underline; }
.Footer .ListSocial a { display: block; color: #fff; }
.Footer .ListSocial a:before { margin-right: 0; vertical-align: top; line-height: 40px; }

/* ── 7. animeflv state names vs. Bootstrap 4 / main.js ───────────────────
   animeflv's bootstrap.css is a Customizer build without .nav / .tab-content:
   css.css only fades and scales `.tab-pane`, so an inactive pane keeps its
   height. And animeflv marks some states with a capital `.Active` or on the
   <li>, where the engine / BS4 tab JS write `.active` on the <a>. */
.tab-content > .tab-pane:not(.active) { display: none; }
.Title .Order > a.active { background-color: #01bcf3; position: relative; }
.Title .Order > a.active:before { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; margin: auto; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #01bcf3; }
.CapiTnv > li > a.active { color: #fff; background-color: #252a2c; box-shadow: inset 0 2px 0 #00bcf2; }
@media (min-width: 766px) { .CapiTnv > li > a.active { font-size: 12px; } }
.ListAnTbNvTp > li > a.active { background-color: rgba(0, 0, 0, .3); }

/* ── 8. Small shared additions (tmp/visual/GUIDE.md §12) ──────────────────
   Used by several areas; keep them here rather than per area. */
.af-lbl { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: #3b4248; }
.af-err { display: block; margin-top: -5px; margin-bottom: 10px; font-size: 12px; color: #f24343; }
.af-av { display: inline-block; width: 24px; height: 24px; border-radius: 12px; margin: -2px 8px 0 0; vertical-align: middle; object-fit: cover; }
.af-meta { font-size: 11px; line-height: 20px; color: #bbb; margin-bottom: 10px; }
.af-meta a { color: #01bcf3; font-weight: 700; }
.af-acts { font-size: 0; margin-top: 10px; }
.af-acts .Button { margin: 0 5px 5px 0; vertical-align: top; font-size: 12px; }
/* css.css turns every bare <button> into animeflv's dark 40px button and
   every input into its 40px field (engine-built ones too). An area that
   needs an engine control back to plain can add `af-plain` to it or its
   wrapper; Bootstrap's `.btn` / `.form-control` (BS3, later in the cascade)
   already win on their own. */
.af-plain button, button.af-plain { width: auto; padding: 0; margin: 0; border-radius: 0; background: none; color: inherit; font-weight: inherit; }
.af-plain button:hover, button.af-plain:hover { background: none; }
.af-plain input:not([type=checkbox]):not([type=radio]), input.af-plain { height: auto; margin: 0; }

/* ── 9. Notices ───────────────────────────────────────────────────────────
   Auth query flags (header partial) and Bootstrap `.alert`s the engine and
   CMS forms print inside the page, drawn as animeflv's `.Msj` bar (round,
   tinted, 12px; css.css). Toasts outside .Wrapper keep the alertify look. */
.af-flash { width: 100%; padding-top: 20px; }
.af-flash .Msj { margin-bottom: 0; }
.af-flash .Msj:before { vertical-align: middle; }
.Wrapper .alert { border: 0; border-radius: 20px; padding: 10px 20px; font-size: 12px; line-height: 18px; color: #666; text-shadow: none; box-shadow: none; }
.Wrapper .alert-danger { background-color: rgba(251, 52, 71, .1); }
.Wrapper .alert-success { background-color: rgba(0, 176, 70, .1); }
.Wrapper .alert-warning { background-color: rgba(255, 193, 7, .1); }
.Wrapper .alert-info { background-color: rgba(1, 188, 243, .1); }
.Wrapper .alert a { font-weight: 700; color: inherit; }
.Wrapper .alert .close { width: auto; height: auto; padding: 0; margin: 0; background: none; color: #3b4248; font-size: 18px; line-height: 18px; opacity: .4; }
.Wrapper .alert .close:hover { opacity: 1; background: none; }
