/* Aniwave /home skin; uses the existing homepage data and interactions. */
body.aniwave-home {
    --accent-color: #66339b;
    --background-color: #0d0d0d;
    --background-color-2: #1d1d1d;
    background: #0d0d0d;
    color: #e8e8e8
}

body.aniwave-home.body-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important
}

body.aniwave-home #header {
    height: 60px;
    background: #1c1c1c
}

body.aniwave-home #header .container {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    max-width: none;
    padding: 0 10px
}

body.aniwave-home #mobile_menu {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 40px
}

body.aniwave-home #mobile_menu,
body.aniwave-home #mobile_menu:hover,
body.aniwave-home #mobile_menu:active,
body.aniwave-home #mobile_menu:focus,
body.aniwave-home #mobile_menu:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none
}

body.aniwave-home #mobile_menu .aniwave-menu-icon {
    display: block;
    width: 24px;
    height: 24px
}

body.aniwave-home #search .aniwave-search-icon {
    display: block;
    width: 18px;
    height: 18px
}

body.aniwave-home #mobile_menu i {
    font-size: 26px
}

body.aniwave-home #mobile_menu.active {
    z-index: 1000201;
    color: #eee;
    background: transparent
}

body.aniwave-home #mobile_menu.active i {
    display: none
}

body.aniwave-home #mobile_menu.active:after {
    content: '×';
    display: block;
    color: #eee;
    font: 400 42px/38px Arial, sans-serif
}

body.aniwave-home #sidebar_menu {
    top: 60px;
    right: auto;
    bottom: auto;
    left: 10px;
    width: 109px;
    max-height: calc(100vh - 70px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 4px 4px;
    background: #0d0d0d;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-24px);
    transition: width .28s cubic-bezier(.2, .75, .25, 1), transform .28s cubic-bezier(.2, .75, .25, 1), opacity .2s ease
}

body.aniwave-home #sidebar_menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0)
}

body.aniwave-home #sidebar_menu.is-genre-open {
    width: min(610px, calc(100vw - 20px))
}

body.aniwave-home #sidebar_menu.is-types-open {
    width: min(250px, calc(100vw - 20px))
}

body.aniwave-home #sidebar_menu .sb-setting,
body.aniwave-home #sidebar_menu .sb-donate,
body.aniwave-home #sidebar_menu>.clearfix {
    display: none
}

body.aniwave-home .aniwave-menu-layout {
    display: grid;
    grid-template-columns: 109px;
    min-height: 350px
}

body.aniwave-home .aniwave-menu-layout.is-genre-open {
    grid-template-columns: 109px minmax(0, 1fr)
}

body.aniwave-home .aniwave-menu-layout.is-types-open {
    grid-template-columns: 109px minmax(0, 141px);
    min-height: 0;
    align-items: start
}

body.aniwave-home .aniwave-menu-categories {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 10px;
    background: #171717
}

body.aniwave-home .aniwave-menu-categories a,
body.aniwave-home .aniwave-menu-categories button {
    display: flex;
    min-height: 41px;
    align-items: center;
    padding: 0 20px;
    border: 0;
    background: transparent;
    color: #777;
    font: 500 13px Poppins, Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer
}

body.aniwave-home .aniwave-menu-categories button:hover,
body.aniwave-home .aniwave-menu-categories button:active,
body.aniwave-home .aniwave-menu-categories button:focus,
body.aniwave-home .aniwave-menu-categories button:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none
}

body.aniwave-home .aniwave-menu-genre-toggle:after,
body.aniwave-home .aniwave-menu-types-toggle:after {
    content: none
}

body.aniwave-home .aniwave-menu-genre-toggle.active,
body.aniwave-home .aniwave-menu-types-toggle.active {
    background: #30213f;
    color: #eee
}

body.aniwave-home .aniwave-menu-genre-toggle.active:after,
body.aniwave-home .aniwave-menu-types-toggle.active:after {
    content: '\25B6';
    margin-left: auto;
    color: #a983d8;
    font: 900 9px/1 Arial, sans-serif
}

body.aniwave-home .aniwave-menu-categories a.active,
body.aniwave-home .aniwave-menu-categories button.active {
    background: #111;
    color: #aaa
}

body.aniwave-home .aniwave-menu-categories a:hover,
body.aniwave-home .aniwave-menu-categories button:hover {
    background: #29232f;
    color: #eee
}

body.aniwave-home .aniwave-menu-categories .aniwave-menu-genre-toggle.active:hover,
body.aniwave-home .aniwave-menu-categories .aniwave-menu-types-toggle.active:hover {
    background: #30213f;
    color: #eee
}

body.aniwave-home .aniwave-menu-genres {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 27px;
    align-content: start;
    gap: 0 4px;
    max-height: min(358px, calc(100vh - 70px));
    padding: 12px 14px 16px;
    overflow-y: auto;
    background: #0d0d0d
}

body.aniwave-home .aniwave-menu-layout.is-genre-open .aniwave-menu-genres {
    display: grid;
    animation: aniwave-genres-enter .2s ease both
}

body.aniwave-home .aniwave-menu-types {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 27px;
    align-content: start;
    align-self: start;
    gap: 0;
    max-height: min(358px, calc(100vh - 70px));
    padding: 8px 10px 10px;
    overflow-y: auto;
    background: #0d0d0d
}

body.aniwave-home .aniwave-menu-layout.is-types-open .aniwave-menu-types {
    display: grid;
    animation: aniwave-genres-enter .2s ease both
}

@keyframes aniwave-genres-enter {
    from {
        opacity: 0;
        transform: translateX(-8px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

body.aniwave-home .aniwave-menu-genres a {
    overflow: hidden;
    color: #777;
    font-size: 12px;
    line-height: 27px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .16s ease
}

body.aniwave-home .aniwave-menu-genres a:hover {
    color: #ddd
}

body.aniwave-home .aniwave-menu-types a {
    overflow: hidden;
    color: #777;
    font-size: 12px;
    line-height: 27px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .16s ease
}

body.aniwave-home .aniwave-menu-types a:hover {
    color: #ddd
}

body.aniwave-home #sidebar_menu_bg {
    top: 60px;
    pointer-events: none;
    background: rgba(0, 0, 0, .32);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none !important
}

body.aniwave-home #sidebar_menu_bg.active {
    pointer-events: auto
}

body.aniwave-home .modal-backdrop {
    z-index: 1000300 !important
}

body.aniwave-home .modal {
    z-index: 1000301 !important
}

body.aniwave-home #requestmodal {
    position: fixed;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto
}

@media(max-width:600px) {
    body.aniwave-home #requestmodal .modal-dialog {
        width: calc(100% - 24px);
        max-width: 420px;
        margin: 12px auto
    }

    body.aniwave-home #requestmodal .modal-dialog-centered {
        min-height: calc(100% - 24px)
    }
}

body.aniwave-home #logo {
    flex: 0 0 auto;
    height: 40px;
    margin: 10px 0 10px 55px
}

body.aniwave-home #logo img {
    height: 40px;
    width: auto
}

body.aniwave-home #logo .aniwave-header-wordmark {
    display: block;
    color: #f7f7f7;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 40px
}

body.aniwave-home #logo .aniwave-header-wordmark span {
    color: #8751d5
}

body.aniwave-home .footer-logo .aniwave-header-wordmark {
    display: block;
    color: #f7f7f7;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.5px
}

body.aniwave-home .footer-logo .aniwave-header-wordmark span {
    color: #8751d5
}

body.aniwave-home #search {
    flex: 1 1 722px;
    min-width: 120px;
    max-width: 722px;
    margin: 0
}

body.aniwave-home #search .search-content {
    margin: 0
}

body.aniwave-home #search form {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 0 0 2px;
    border-radius: 7px;
    background: #111
}

body.aniwave-home #search .filter-icon {
    display: none
}

body.aniwave-home #search .search-input,
body.aniwave-home #search .aniwave-header-search-input {
    position: static !important;
    order: 2 !important;
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #eee;
    font-size: 14px
}

body.aniwave-home #search .aniwave-search-shortcut {
    order: 3;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 14px 0 4px;
    color: #777
}

body.aniwave-home #search .search-icon {
    position: static !important;
    inset: auto !important;
    order: 1 !important;
    flex: 0 0 42px;
    width: 42px;
    height: 36px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #888
}

body.aniwave-home #search .search-icon:focus,
body.aniwave-home #search .search-icon:focus-visible {
    outline: 0;
    box-shadow: none
}

body.aniwave-home #search .search-result-pop {
    z-index: 110
}

body.aniwave-home #search .search-content {
    position: relative
}

body.aniwave-home #search .aniwave-header-search-suggest {
    position: absolute;
    z-index: 120;
    top: 40px;
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    border: 1px solid #292929;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #1d1d1d;
    color: #aaa;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: max-height .2s ease, opacity .16s ease, transform .16s ease
}

body.aniwave-home #search .aniwave-header-search-suggest.is-open {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0)
}

body.aniwave-home #search form:focus-within {
    border-radius: 6px 6px 0 0
}

body.aniwave-home #search .aniwave-header-search-input {
    padding-right: 48px
}

body.aniwave-home #search .aniwave-header-search-input:focus,
body.aniwave-home #search .aniwave-header-search-input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-home #search form:focus-within {
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-home #search .aniwave-header-search-clear {
    display: none;
    position: absolute;
    z-index: 2;
    top: 0;
    right: 8px;
    height: 36px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer
}

body.aniwave-home #search form.has-query .aniwave-header-search-clear {
    display: block
}

body.aniwave-home #search form.has-query .aniwave-search-shortcut {
    display: none
}

body.aniwave-home #search .aniwave-header-search-tools {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #303030;
    color: #ddd;
    font-size: 12px
}

body.aniwave-home #search .aniwave-header-search-tools [hidden],
body.aniwave-home #search .aniwave-header-search-all[hidden] {
    display: none !important
}

body.aniwave-home #search .aniwave-header-search-tools a,
body.aniwave-home #search .aniwave-header-search-footer a {
    color: #8fa9c3;
    text-decoration: none
}

body.aniwave-home #search .aniwave-header-search-footer {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border-top: 1px solid #303030;
    background: #1d1d1d
}

body.aniwave-home #search .aniwave-header-search-footer [hidden] {
    display: none !important
}

body.aniwave-home #search .aniwave-header-search-hint {
    color: #777;
    font-size: 11px;
    white-space: nowrap
}

body.aniwave-home #search .aniwave-header-search-hint kbd {
    display: inline-block;
    margin: 0 3px 0 0;
    padding: 1px 4px;
    border: 1px solid #555;
    border-radius: 3px;
    color: #aaa;
    font: inherit;
    line-height: 1.2
}

body.aniwave-home #search .aniwave-header-search-footer a {
    font-size: 12px;
    white-space: nowrap
}

body.aniwave-home #search .aniwave-search-results {
    max-height: min(440px, calc(100vh - 180px));
    overflow: auto
}

body.aniwave-home #search .aniwave-search-results>a.nav-item {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 84px;
    align-items: center !important;
    gap: 12px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: #1d1d1d;
    color: #b9c2d0;
    text-align: left;
    text-decoration: none
}

body.aniwave-home #search .aniwave-search-results>a.nav-item:not(.nav-bottom):nth-child(odd) {
    background: #1e1e1e
}

body.aniwave-home #search .aniwave-search-results>a.nav-item:not(.nav-bottom):nth-child(even) {
    background: #181818
}

body.aniwave-home #search .aniwave-search-results>a.nav-item:hover,
body.aniwave-home #search .aniwave-search-results>a.nav-item.active {
    background: #2b2034
}

body.aniwave-home #search .aniwave-search-results .film-poster {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    overflow: hidden !important;
    background: #262626
}

body.aniwave-home #search .aniwave-search-results .film-poster-img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px
}

body.aniwave-home #search .aniwave-search-results .aniwave-search-poster-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #292929;
    color: #f4f4f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1
}

body.aniwave-home #search .aniwave-search-results .aniwave-search-poster-fallback[hidden],
body.aniwave-home #search .aniwave-search-results .film-poster-img[hidden] {
    display: none !important
}

body.aniwave-home #search .aniwave-search-results .aniwave-search-poster-fallback span {
    color: #8751d5
}

body.aniwave-home #search .aniwave-search-results .srp-detail {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important
}

body.aniwave-home #search .aniwave-search-results .film-name {
    display: block;
    overflow: hidden;
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #d6deeb;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.aniwave-home #search .aniwave-search-results>a.nav-item:hover .film-name,
body.aniwave-home #search .aniwave-search-results>a.nav-item.active .film-name {
    color: #fff
}

body.aniwave-home #search .aniwave-search-results .alias-name {
    display: block;
    overflow: hidden;
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #8a92a0;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.aniwave-home #search .aniwave-search-results .film-infor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    color: #777f8c;
    font-size: 11.5px;
    line-height: 1.3
}

body.aniwave-home #search .aniwave-search-results .film-infor .dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 6px;
    border-radius: 50%;
    background: #666;
    vertical-align: middle
}

body.aniwave-home #search .aniwave-search-results .clearfix {
    display: none !important
}

body.aniwave-home #search .aniwave-search-results .aniwave-search-empty {
    padding: 16px 12px;
    color: #888;
    font-size: 12px
}

@media(max-width:767px) {
    body.aniwave-home #search .aniwave-header-search-suggest.is-open {
        max-height: calc(100vh - 70px)
    }

    body.aniwave-home #search .aniwave-search-results {
        max-height: calc(100vh - 180px)
    }
}

body.aniwave-home .header-group,
body.aniwave-home #pick_menu,
body.aniwave-home .hs-toggles>a[href*="watch2gather"],
body.aniwave-home .hs-toggles>a[href*="/news"],
body.aniwave-home .hs-toggles>a[href*="/community"] {
    display: none !important
}

body.aniwave-home .header-setting {
    flex: 0 0 auto;
    margin: 0
}

body.aniwave-home .header-setting .hs-toggles {
    display: flex;
    align-items: center;
    gap: 14px
}

body.aniwave-home .header-setting .hst-item {
    display: flex;
    align-items: center;
    padding: 0;
    color: #aaa
}

body.aniwave-home .header-setting .hst-item .hst-icon {
    margin-right: 6px
}

body.aniwave-home .header-setting .hst-item .name {
    display: block;
    font-size: 13px
}

body.aniwave-home .header-setting .select-anime-name {
    display: inline-flex
}

body.aniwave-home .header-setting .select-anime-name+.name {
    display: none
}

body.aniwave-home #header_right {
    flex: 0 0 auto;
    margin: 0 0 0 auto
}

body.aniwave-home #user-slot .hr-notifications {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    float: none !important;
    margin: 0 8px 0 0 !important;
}

body.aniwave-home #user-slot .hr-notifications .hrn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #242424 !important;
    color: #d4d4d4 !important;
    line-height: 1 !important;
    transition: background .16s ease, color .16s ease;
}

body.aniwave-home #user-slot .hr-notifications .hrn-icon:hover,
body.aniwave-home #user-slot .hr-notifications.show .hrn-icon {
    background: #30223c !important;
    color: #fff !important;
}

body.aniwave-home #user-slot .hr-notifications .hrn-icon i {
    font-size: 14px !important;
    color: #a16ae5 !important;
}

body.aniwave-home #user-slot .hr-notifications .hrn-icon .number {
    top: -4px !important;
    right: -4px !important;
    min-width: 17px !important;
    height: 17px !important;
    line-height: 17px !important;
    font-size: 10px !important;
    padding: 0 4px !important;
}

@media (min-width: 781px) and (max-width: 1200px) {
    body.aniwave-home .header-setting .hs-toggles {
        gap: 6px !important;
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] {
        padding: 0 8px !important;
        gap: 5px !important;
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .name {
        font-size: 11px !important;
    }
}

@media (max-width: 780px) {
    body.aniwave-home #user-slot .hr-notifications {
        margin: 0 6px 0 0 !important;
    }

    body.aniwave-home #user-slot .hr-notifications .hrn-icon {
        width: 30px !important;
        height: 30px !important;
    }

    body.aniwave-home #user-slot .hr-notifications .hrn-icon i {
        font-size: 13px !important;
    }

    body.aniwave-home #user-slot .hr-notifications .dropdown-menu {
        position: fixed !important;
        top: 62px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
        transform: none !important;
    }
}

body.aniwave-home #user-slot .header_right-user .btn {
    padding: 8px 20px;
    border-radius: 6px;
    background: #60309a !important;
    border-color: #60309a !important;
    color: #fff !important;
    font-size: 14px
}

body.aniwave-home #wrapper {
    padding-top: 60px;
    overflow: visible
}

@media(min-width:781px) {

    body.aniwave-home #header .container,
    body.aniwave-home:not(.aniwave-watch) #main-wrapper>.container,
    body.aniwave-home .aniwave-home-container,
    body.aniwave-home #footer-about>.container {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-right: clamp(16px, 2vw, 32px) !important;
        padding-left: clamp(16px, 2vw, 32px) !important
    }
}

body.aniwave-home .aniwave-home-page {
    min-height: 100vh;
    background: #0d0d0d
}

body.aniwave-home .aniwave-home-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 14px clamp(16px, 2vw, 32px)
}

/* Spotlight: text left, featured key art right. */
body.aniwave-home .deslide-wrap {
    margin: 0
}

body.aniwave-home .deslide-wrap>.container {
    width: 100%;
    max-width: none;
    padding: 0
}

body.aniwave-home #slider {
    height: clamp(390px, 25vw, 470px);
    margin: 0 0 44px;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #0d0d0d
}

body.aniwave-home #slider .swiper-wrapper,
body.aniwave-home #slider .swiper-slide {
    height: clamp(390px, 25vw, 470px)
}

body.aniwave-home .deslide-item {
    position: relative;
    height: clamp(390px, 25vw, 470px);
    overflow: hidden;
    background: #0d0d0d
}

body.aniwave-home .deslide-item .deslide-cover {
    left: 36%;
    right: 0;
    border-radius: 18px;
    mask-image: none !important;
    -webkit-mask-image: none !important
}

body.aniwave-home .deslide-item .deslide-cover .deslide-cover-img,
body.aniwave-home .deslide-item .deslide-cover .deslide-cover-img img {
    border-radius: 18px;
    object-position: center 22%;
    mask-image: none !important;
    -webkit-mask-image: none !important
}

body.aniwave-home .deslide-item .deslide-cover .deslide-cover-img:after {
    display: none
}

body.aniwave-home .deslide-item .deslide-item-content {
    top: 0;
    bottom: 34px;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 36%;
    max-width: none;
    padding: 24px 32px 24px 6px;
    z-index: 3
}

body.aniwave-home .deslide-item .desi-sub-text {
    display: none
}

body.aniwave-home .deslide-item .desi-head-title {
    margin: 0 0 10px;
    color: #f7f7f7;
    font-size: clamp(34px, 2.5vw, 50px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .65)
}

body.aniwave-home .aniwave-home-badges {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px
}

body.aniwave-home .aniwave-home-badges span {
    min-width: 22px;
    padding: 1px 6px;
    border: 1px solid #6b6b6b;
    border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    text-align: center
}

body.aniwave-home .deslide-item .desi-description {
    display: -webkit-box;
    max-width: 60ch;
    margin: 0 0 26px;
    color: #9a9a9a;
    font-size: 13.5px;
    line-height: 1.7;
    -webkit-line-clamp: 3
}

body.aniwave-home .deslide-item .desi-buttons .btn {
    padding: 11px 28px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6f38ad 0%, #582990 100%) !important;
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(97, 48, 154, .38);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease
}

body.aniwave-home .deslide-item .desi-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(111, 56, 173, .52);
    filter: brightness(1.08)
}

body.aniwave-home .deslide-item .desi-buttons .btn i {
    margin-right: 8px
}

body.aniwave-home #slider .swiper-pagination {
    display: block;
    position: absolute;
    z-index: 4;
    left: 6px;
    bottom: 12px;
    width: 36%;
    text-align: left
}

body.aniwave-home #slider .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 6px 0 0;
    background: #383838;
    box-shadow: none;
    transition: width .2s ease, background-color .2s ease;
    border-radius: 99px
}

body.aniwave-home #slider .swiper-pagination-bullet-active {
    width: 22px;
    background: #7c42bd
}

body.aniwave-home #slider .swiper-navigation {
    display: none
}

/* Content grid and share card. */
body.aniwave-home .aniwave-home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 22vw, 400px);
    gap: clamp(20px, 1.8vw, 32px);
    align-items: start
}

body.aniwave-home .aniwave-home-main,
body.aniwave-home .aniwave-home-sidebar {
    min-width: 0
}

body.aniwave-home .aniwave-home-share-panel {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    background: #0a0a0a
}

body.aniwave-home .aniwave-home-share {
    display: block;
    width: 100%;
    margin: 0
}

body.aniwave-home .aniwave-home-share .share-buttons-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0
}

body.aniwave-home .aniwave-home-share .share-icon {
    display: none !important
}

body.aniwave-home .aniwave-home-share .sbb-title {
    display: block !important;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 8px !important;
    color: #ddd;
    font-size: 12px
}

body.aniwave-home .aniwave-home-share .sbb-title span {
    color: #ddd;
    font-size: 12px;
    font-weight: 400
}

body.aniwave-home .aniwave-home-share .sbb-title span:before {
    content: 'i';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    border-radius: 50%;
    background: #aaa;
    color: #111;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    vertical-align: 1px
}

body.aniwave-home .aniwave-home-share .sbb-title p {
    display: none
}

body.aniwave-home .aniwave-home-share .sbb-social {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%
}

body.aniwave-home .aniwave-home-share .st-total {
    order: 0;
    flex: 0 0 38px;
    min-width: 38px;
    padding: 0;
    color: #777
}

body.aniwave-home .aniwave-home-share .st-total>span {
    font-size: 16px;
    line-height: 16px
}

body.aniwave-home .aniwave-home-share .st-total>span.st-shares {
    font-size: 8px;
    line-height: 9px
}

body.aniwave-home .aniwave-home-share .st-btn {
    flex: 1 1 120px;
    min-width: 110px;
    max-width: 185px;
    height: 34px;
    border-radius: 6px
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='facebook'] {
    order: 1
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='twitter'] {
    order: 2
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='messenger'] {
    order: 3
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='reddit'] {
    order: 4
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='whatsapp'] {
    order: 5
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='telegram'] {
    order: 6
}

body.aniwave-home .aniwave-home-share .st-btn[data-network='native'] {
    display: none
}

@media(min-width:781px) {
    body.aniwave-home .aniwave-home-share .st-inline-share-buttons.st-has-labels .st-btn:not(.st-remove-label)>span {
        display: inline !important
    }
}

body.aniwave-home .aniwave-home-notes {
    margin-top: 12px;
    color: #bbb;
    font-size: 11px;
    line-height: 1.5
}

body.aniwave-home .aniwave-home-notes p {
    margin: 2px 0
}

body.aniwave-home .aniwave-home-notes p>i {
    margin-right: 5px;
    color: #bbb
}

body.aniwave-home .aniwave-lite-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #60309a;
    color: #fff
}

body.aniwave-home .aniwave-home-section {
    margin: 0 0 32px
}

body.aniwave-home .aniwave-home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px
}

body.aniwave-home .aniwave-home-section h2,
body.aniwave-home .aniwave-home-section-head h2 {
    margin: 0;
    color: #e9e9e9;
    font-size: 22px;
    font-weight: 500
}

body.aniwave-home .aniwave-home-section-head nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #777;
    font-size: 13px
}

body.aniwave-home .aniwave-home-section-head nav a {
    color: #777
}

body.aniwave-home .aniwave-home-section-head nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777;
    font: inherit;
    line-height: inherit;
    cursor: pointer
}

body.aniwave-home .aniwave-home-section-head nav button:focus,
body.aniwave-home .aniwave-home-section-head nav button:focus-visible,
body.aniwave-home .aniwave-home-section-head nav button:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-home .aniwave-home-section-head nav a:hover,
body.aniwave-home .aniwave-home-section-head nav a.active {
    color: #ddd
}

body.aniwave-home .aniwave-home-section-head nav button:hover,
body.aniwave-home .aniwave-home-section-head nav button.active {
    color: #ddd
}

body.aniwave-home .aniwave-home-section-head nav button:disabled {
    color: #414141;
    cursor: default
}

body.aniwave-home .aniwave-home-section-head nav button[data-anime-feed-page] {
    width: 20px;
    height: 24px;
    font-size: 20px;
    line-height: 1
}

body.aniwave-home .aniwave-home-section-head nav button[data-anime-feed-page] i {
    font-size: 20px;
    line-height: 1
}

body.aniwave-home .aniwave-latest-section.is-loading .aniwave-home-cards {
    opacity: .45;
    pointer-events: none;
    transition: opacity .15s ease
}

body.aniwave-home .aniwave-feed-empty {
    grid-column: 1/-1;
    margin: 20px 0;
    color: #777;
    text-align: center;
    font-size: 13px
}

body.aniwave-home .aniwave-home-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 20px
}

body.aniwave-home .aniwave-home-cards .flw-item {
    min-width: 0;
    margin: 0;
    transition: transform .2s ease
}

body.aniwave-home .aniwave-home-cards .flw-item:hover {
    transform: translateY(-4px)
}

body.aniwave-home .aniwave-az-list .aniwave-home-cards {
    margin: 0;
    padding: 0
}

body.aniwave-home .aniwave-az-list .aniwave-home-cards .flw-item {
    width: 100% !important
}

body.aniwave-home .aniwave-home-cards .film-poster {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 7px;
    background: #202020;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35)
}

body.aniwave-home .aniwave-home-cards .film-poster>.film-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease
}

body.aniwave-home .aniwave-home-cards .flw-item:hover .film-poster>.film-poster-img {
    transform: scale(1.04)
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 3px 6px;
    background: rgba(28, 28, 28, .94);
    font-size: 9px
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .tick-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    margin: 0;
    padding: 1px 6px;
    border-radius: 0;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 12px;
    text-align: center;
    transform: skewX(-15deg)
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .tick-sub {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    background: #5c2494
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .tick-dub {
    background: #b58404
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .tick-eps {
    background: #666
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .aniwave-tick-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transform: skewX(15deg);
    font-size: 10px;
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .aniwave-cc-icon {
    display: block;
    width: 10px;
    height: 9px;
    margin-right: 2px;
    object-fit: contain
}

body.aniwave-home .aniwave-home-cards .film-poster>.tick.ltr .aniwave-card-kind {
    margin-left: auto;
    color: #ddd;
    font-size: 9.5px;
    line-height: 12px
}

body.aniwave-home .aniwave-home-cards .film-poster-ahref {
    z-index: 3
}

body.aniwave-home .aniwave-home-cards .film-detail {
    padding-top: 9px
}

body.aniwave-home .aniwave-home-cards .film-name {
    display: -webkit-box;
    max-height: 38px;
    margin: 0;
    overflow: hidden;
    color: #d6deea;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.aniwave-home .aniwave-home-cards .fd-infor {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    color: #777;
    font-size: 11px;
    white-space: nowrap
}

body.aniwave-home .aniwave-home-cards .fd-infor .dot {
    flex: 0 0 4px;
    margin: 0 3px
}

body.aniwave-home .aniwave-home-lists {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 52px 0
}

body.aniwave-home .aniwave-home-lists .aniwave-home-section {
    min-width: 0;
    margin: 0
}

body.aniwave-home .aniwave-home-lists h2 {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 14px;
    color: #bfc9d6;
    font-size: 16px;
    font-weight: 500
}

body.aniwave-home .aniwave-home-lists h2 a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #d1dae6;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    transition: color .18s ease
}

body.aniwave-home .aniwave-home-lists h2 a:hover {
    color: #a978ee
}

body.aniwave-home .aniwave-home-lists h2 a .aniwave-list-arrow {
    display: block;
    width: 21px;
    height: 13px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round
}

body.aniwave-home .aniwave-home-lists ul {
    margin: 0;
    padding: 0;
    list-style: none
}

body.aniwave-home .aniwave-home-lists .anif-block-ul ul {
    margin: 0;
    padding: 0;
    list-style: none
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li {
    display: flex;
    align-items: center;
    min-height: 92px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .03);
    border-radius: 7px;
    background: #1c1c1c;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li:hover {
    background: #232323;
    border-color: rgba(135, 81, 213, .35);
    transform: translateX(2px)
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .film-poster {
    flex: 0 0 56px;
    width: 56px;
    height: 74px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .film-detail {
    min-width: 0;
    padding: 0 0 0 12px;
    font-size: 12px
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .film-name {
    max-height: 36px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #d6deea;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .film-name a {
    color: inherit
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    color: #888;
    font-size: 10.5px;
    line-height: 14px;
    white-space: nowrap
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .film-detail .fd-infor {
    overflow: visible
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor .tick {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    padding: 0
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor .tick-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 1px 5px;
    border-radius: 2px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 12px;
    transform: skewX(-14deg)
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor .tick-sub {
    background: #5c2494
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor .tick-dub {
    background: #b58404
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor .tick-eps {
    background: #52545c
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .aniwave-cc-icon {
    width: 11px;
    height: 10px;
    object-fit: contain
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .aniwave-list-tick-content {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    transform: skewX(14deg)
}

body.aniwave-home .aniwave-home-lists .anif-block-ul li .fd-infor .dot {
    width: 3px;
    height: 3px;
    margin: 0 2px
}

body.aniwave-home .aniwave-home-schedule {
    margin: 28px 0 50px
}

/* Existing ranked sidebar becomes the reference Top Anime widget. */
body.aniwave-home .aniwave-home-sidebar .hianime-genres-widget,
body.aniwave-home .aniwave-home-sidebar .sidebar-ad,
body.aniwave-home .aniwave-home-sidebar>.ad-section {
    display: none !important
}

body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget {
    margin: 0 0 24px
}

body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget,
body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .block_area-content,
body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .cbox,
body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .cbox-content,
body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .tab-content,
body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .anif-block-chart {
    background: transparent !important
}

body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .cbox.cbox-list .cbox-content {
    padding: 0 !important
}

body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .anif-block-chart>ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent !important
}

body.aniwave-home .aniwave-home-sidebar .block_area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

body.aniwave-home .aniwave-home-sidebar .block_area-header .float-left,
body.aniwave-home .aniwave-home-sidebar .block_area-header .float-right {
    float: none !important
}

body.aniwave-home .aniwave-home-sidebar .cat-heading {
    margin: 0;
    color: #f2f2f2;
    font-size: 23px;
    font-weight: 600
}

body.aniwave-home .aniwave-home-sidebar .anw-tabs {
    gap: 2px;
    padding: 3px;
    border-radius: 6px;
    background: #242424
}

body.aniwave-home .aniwave-home-sidebar .anw-tabs .nav-link {
    border-radius: 4px;
    color: #999;
    font-size: 11px
}

body.aniwave-home .aniwave-home-sidebar .anw-tabs .nav-link.active {
    background: #60309a;
    color: #fff
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li.anime-item {
    display: flex;
    align-items: center;
    min-height: 72px;
    margin: 0;
    padding: 4px 10px;
    border: 0;
    border-right: 3px solid transparent;
    border-radius: 7px;
    background: #1c1c1c !important;
    overflow: hidden;
    transition: background-color .18s ease, transform .18s ease
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li.anime-item:hover {
    background: #242424 !important;
    transform: translateX(-2px)
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li:nth-child(1) {
    border-right-color: #8a3ffc
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li:nth-child(2) {
    border-right-color: #fa4d56
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li:nth-child(3) {
    border-right-color: #d2a106
}

body.aniwave-home .aniwave-home-sidebar .cbox.cbox-list .anif-block-chart li {
    margin-left: 0;
    padding-right: 10px
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-number {
    position: static;
    top: auto;
    left: auto;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    margin: 0;
    transform: none;
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    text-align: center
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-number .top-anime-rank-image {
    display: block;
    width: auto;
    height: 58px;
    max-width: 39px;
    margin: 0 auto;
    object-fit: contain
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-number span {
    display: inline-block;
    padding: 0;
    border: 0;
    border-bottom: 0;
    color: transparent;
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    -webkit-text-stroke: 1.5px #4a4d55;
    text-shadow: none
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li:nth-child(1) .film-number span {
    -webkit-text-stroke-color: #8a3ffc
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li:nth-child(2) .film-number span {
    -webkit-text-stroke-color: #fa4d56
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li:nth-child(3) .film-number span {
    -webkit-text-stroke-color: #d2a106
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-poster {
    flex: 0 0 52px;
    width: 52px;
    height: 68px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    overflow: hidden
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-detail {
    min-width: 0;
    flex: 1;
    padding: 0 8px 0 12px;
    font-size: 12px
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-name {
    display: -webkit-box;
    max-height: 36px;
    margin: 0 0 4px;
    overflow: hidden;
    color: #e4e6eb;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .film-name a {
    color: inherit
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #858585;
    font-size: 10px;
    line-height: 15px;
    white-space: nowrap
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks {
    display: flex;
    align-items: center;
    gap: 1px
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .tick-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 2px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 13px;
    transform: skewX(-14deg)
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .tick-sub {
    background: #5c1896
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .tick-dub {
    background: #b58404
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .tick-eps {
    background: #52545c
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-tick-content {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transform: skewX(14deg)
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .tick-sub {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    transform: none
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .tick-sub .top-anime-tick-content {
    transform: none
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .aniwave-cc-icon {
    width: 12px;
    height: 11px;
    object-fit: contain
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-ticks .fa-microphone {
    font-size: 9px
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-dot {
    color: #777
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .top-anime-type {
    color: #777
}

body.aniwave-home .aniwave-home-sidebar .anif-block-chart li .dropdown {
    display: none
}

body.aniwave-home #footer {
    margin-top: 45px;
    background: #111
}

body.aniwave-home #footer-about {
    padding-bottom: 64px;
    background: url('../images/aniwave-footer-bg.jpg') center top/cover no-repeat
}

/* Anime hover detail card, scoped to the Aniwave homepage. */
body.aniwave-home .qtip-default {
    width: 320px !important;
    max-width: min(320px, calc(100vw - 20px));
    border: 1px solid #292929;
    background: #222 !important;
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden
}

body.aniwave-home .qtip-default .qtip-content {
    padding: 0 !important;
    color: #aaa
}

body.aniwave-home .qtip-default .pre-qtip-content {
    padding: 20px 26px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.45
}

body.aniwave-home .qtip-default .pre-qtip-title {
    margin: 0 0 8px;
    color: #9a66df;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35
}

body.aniwave-home .qtip-default .pre-qtip-detail {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    font-size: 11px
}

body.aniwave-home .qtip-default .pre-qtip-detail>.pqd-li {
    float: none;
    margin: 0;
    color: #aaa
}

body.aniwave-home .qtip-default .pre-qtip-detail>.pqd-li .tick {
    display: inline-flex;
    align-items: center;
    gap: 2px
}

body.aniwave-home .qtip-default .pre-qtip-detail .tick-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 2px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    transform: skewX(-14deg)
}

body.aniwave-home .qtip-default .pre-qtip-detail .tick-quality {
    background: #66339b
}

body.aniwave-home .qtip-default .pre-qtip-detail .tick-sub {
    background: #5c2494
}

body.aniwave-home .qtip-default .pre-qtip-detail .tick-dub {
    background: #b58404
}

body.aniwave-home .qtip-default .pre-qtip-detail .tick-eps {
    background: #666
}

body.aniwave-home .qtip-default .pre-qtip-detail .qtip-tick-content {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transform: skewX(14deg)
}

body.aniwave-home .qtip-default .pre-qtip-detail .aniwave-cc-icon {
    display: block;
    width: 12px;
    height: 11px;
    object-fit: contain
}

body.aniwave-home .qtip-default .pre-qtip-detail .fa-microphone {
    font-size: 10px
}

body.aniwave-home .qtip-default .pre-qtip-detail .badge-quality {
    margin: 0 !important;
    padding: 1px 5px;
    border: 1px solid #666;
    border-radius: 2px !important;
    background: #555 !important;
    color: #ddd;
    font-size: 10px;
    font-weight: 500
}

body.aniwave-home .qtip-default .pre-qtip-description {
    margin: 0 0 13px;
    color: #bbb;
    font-size: 12px;
    line-height: 1.55
}

body.aniwave-home .qtip-default .pre-qtip-line {
    margin: 0 0 3px;
    color: #aaa;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere
}

body.aniwave-home .qtip-default .pre-qtip-line .stick {
    color: #777
}

body.aniwave-home .qtip-default .pre-qtip-line a {
    color: #9a66df
}

body.aniwave-home .qtip-default .pre-qtip-button {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px
}

body.aniwave-home .qtip-default .pre-qtip-button .btn.btn-play {
    float: none;
    width: auto;
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border: 0 !important;
    border-radius: 3px;
    background: #aaa !important;
    color: #171717 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 32px;
    text-align: center
}

body.aniwave-home .qtip-default .pre-qtip-button .btn.btn-play:hover {
    background: #c4c4c4 !important
}

body.aniwave-home .qtip-default .pre-qtip-button .dr-tip-fav {
    float: none;
    flex: 0 0 32px;
    width: 32px;
    height: 32px
}

body.aniwave-home .qtip-default .pre-qtip-button .btn-fav {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: #666;
    color: #222 !important
}

body.aniwave-home .qtip-default .pre-qtip-button .btn-fav:hover {
    background: #888
}

/* Aniwave schedule: keep the existing schedule API and day navigation, while
   matching the dark, illustrated schedule panel used by the reference. */
body.aniwave-home .aniwave-home-schedule .block_area-schedule {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 38px 0 0;
    border: 0;
    border-radius: 7px;
    background: #181818
}

body.aniwave-home .aniwave-home-schedule .block_area-schedule:before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 205px;
    content: "";
    background-image: url(../images/bg-schedule.png), var(--aniwave-schedule-bg);
    background-position: center top, center top, center top;
    background-size: cover, 150% auto, 150% auto;
    background-repeat: no-repeat;
    pointer-events: none
}

body.aniwave-home .aniwave-home-schedule .block_area-header {
    position: relative;
    z-index: 1;
    padding: 21px 60px 0;
    margin: 0;
    background: transparent
}

body.aniwave-home .aniwave-home-schedule .bah-heading {
    float: none !important;
    margin: 0 !important
}

body.aniwave-home .aniwave-home-schedule .cat-heading {
    margin: 0;
    color: #e4e4e4;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.35
}

body.aniwave-home .aniwave-home-schedule .bah-time {
    position: static !important;
    float: none !important;
    display: inline-block;
    margin-left: 7px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #7a7a7a !important;
    font-size: 15px;
    vertical-align: 2px
}

body.aniwave-home .aniwave-home-schedule .block_area-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 10px
}

body.aniwave-home .aniwave-home-schedule .block_area-header>.clearfix {
    display: none
}

body.aniwave-home .aniwave-home-schedule .block_area-header .bah-heading {
    order: 1
}

body.aniwave-home .aniwave-home-schedule .block_area-header .bah-time {
    order: 2;
    margin: 0
}

body.aniwave-home .aniwave-home-schedule .block_area-header .aniwave-schedule-audio {
    order: 3;
    flex: 0 0 100%
}

body.aniwave-home .aniwave-home-schedule .current-time {
    display: inline;
    background: transparent !important;
    color: #7a7a7a !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3
}

body.aniwave-home .aniwave-home-schedule #timezone[hidden] {
    display: none !important
}

body.aniwave-home .aniwave-home-schedule .aniwave-schedule-audio {
    display: none !important
}

body.aniwave-home .aniwave-home-schedule .block_area-content,
body.aniwave-home .aniwave-home-schedule .table_schedule {
    background: transparent
}

body.aniwave-home .aniwave-home-schedule .table_schedule-date {
    position: relative;
    min-height: 126px;
    padding: 13px 60px 15px;
    background: transparent
}

body.aniwave-home .aniwave-home-schedule .table_schedule-date .swiper-container {
    height: 100%
}

body.aniwave-home .aniwave-home-schedule .table_schedule-date .swiper-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0
}

body.aniwave-home .aniwave-home-schedule .table_schedule-date .swiper-slide {
    width: calc((100% - 78px)/7) !important;
    min-width: 0
}

body.aniwave-home .aniwave-home-schedule .table_schedule-date .swiper-wrapper {
    align-items: stretch
}

body.aniwave-home .aniwave-home-schedule .tsd-item {
    display: flex;
    min-height: 93px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 8px;
    border-radius: 0;
    background: transparent;
    color: #777;
    text-align: left
}

body.aniwave-home .aniwave-home-schedule .tsd-item span {
    order: 2;
    color: #555;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.05
}

body.aniwave-home .aniwave-home-schedule .tsd-item .date {
    order: 1;
    margin: 0 0 7px;
    color: #555;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase
}

body.aniwave-home .aniwave-home-schedule .tsd-item.active {
    border-bottom: 2px solid #aaa;
    background: transparent !important;
    color: #ddd !important
}

body.aniwave-home .aniwave-home-schedule .tsd-item.active span {
    color: #aaa
}

body.aniwave-home .aniwave-home-schedule .tsd-item.active .date {
    color: #aaa
}

body.aniwave-home .aniwave-home-schedule .ts-navigation .btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 36px;
    height: 46px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent !important;
    color: #aaa !important;
    box-shadow: none;
    font-size: 0
}

body.aniwave-home .aniwave-home-schedule .ts-navigation .btn i {
    font-size: 32px;
    font-weight: 700
}

body.aniwave-home .aniwave-home-schedule .ts-navigation .tsn-prev {
    left: 17px
}

body.aniwave-home .aniwave-home-schedule .ts-navigation .tsn-next {
    right: 17px
}

body.aniwave-home .aniwave-home-schedule .table_schedule-list {
    position: relative;
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
    background: #181818
}

body.aniwave-home .aniwave-home-schedule .table_schedule-list>ul.tsl-schedule {
    margin: 0;
    padding: 0;
    list-style: none
}

body.aniwave-home .aniwave-home-schedule .table_schedule-list li {
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .025);
    background: transparent
}

body.aniwave-home .aniwave-home-schedule .tsl-link {
    display: flex !important;
    align-items: center !important;
    column-gap: 20px;
    gap: 20px !important;
    width: 100%;
    box-sizing: border-box;
    min-height: 49px;
    padding: 8px 36px;
    color: #555
}

body.aniwave-home .aniwave-home-schedule .tsl-link {
    transition: background-color .2s ease, color .2s ease
}

body.aniwave-home .aniwave-home-schedule .tsl-link:hover {
    background: #222 !important
}

body.aniwave-home .aniwave-home-schedule .tsl-link:hover .film-name {
    color: #b36cff
}

body.aniwave-home .aniwave-home-schedule .tsl-link .time {
    order: 1 !important;
    position: static;
    left: auto;
    width: auto !important;
    min-width: 110px;
    max-width: 125px;
    margin: 0 !important;
    padding: 0 !important;
    transform: none;
    color: #777;
    font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    white-space: nowrap;
    transition: color .2s ease;
    overflow: visible;
    flex-shrink: 0 !important
}

body.aniwave-home .aniwave-home-schedule .tsl-link .film-detail {
    order: 2 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important
}

body.aniwave-home .aniwave-home-schedule .tsl-link .film-name {
    order: 1 !important;
    min-width: 0;
    flex: 1 1 auto !important;
    margin: 0;
    color: #ccc;
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

body.aniwave-home .aniwave-home-schedule .tsl-link .fd-play {
    order: 2 !important;
    width: 140px !important;
    min-width: 140px;
    flex: 0 0 140px;
    margin: 0 !important;
    padding: 0 !important
}

body.aniwave-home .aniwave-home-schedule .tsl-link .btn-play {
    display: block;
    width: 100% !important;
    min-width: 140px;
    height: 29px;
    padding: 0 13px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .035) !important;
    color: #555 !important;
    font-size: 11px;
}

body.aniwave-home .aniwave-home-schedule .tsl-link .btn-play i {
    margin-right: 7px;
    color: #555
}

body.aniwave-home .aniwave-home-schedule .tsl-link:hover .btn-play {
    background: #5c2494 !important;
    color: #fff !important
}

body.aniwave-home .aniwave-home-schedule .tsl-link:hover .btn-play i {
    color: #fff
}

body.aniwave-home .aniwave-home-schedule .tsl-link:hover .time {
    color: #aaa
}

body.aniwave-home .aniwave-home-schedule .table_schedule-list li.empty_film_list {
    padding: 18px 0;
    color: #777;
    font-size: 13px
}

body.aniwave-home .aniwave-home-schedule #scl-more {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 320px !important;
    height: 42px !important;
    margin: 20px auto 16px !important;
    padding: 0 28px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 21px !important;
    background: rgba(255, 255, 255, .06) !important;
    color: #f0f0f0 !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 42px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all .25s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25) !important
}

body.aniwave-home .aniwave-home-schedule #scl-more:hover {
    background: #5c2494 !important;
    border-color: #8751d5 !important;
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(92, 36, 148, .45) !important;
    transform: translateY(-2px) !important
}

body.aniwave-home .aniwave-home-schedule #scl-more:active {
    transform: translateY(0) !important
}

body.aniwave-home .aniwave-home-schedule #scl-more::after,
body.aniwave-home .aniwave-home-schedule #scl-more::before,
#scl-more::after,
#scl-more::before {
    display: none !important;
    content: none !important
}

@media(max-width:780px) {
    body.aniwave-home .aniwave-home-schedule .block_area-header {
        padding: 20px 22px 0
    }

    body.aniwave-home .aniwave-home-schedule .table_schedule-date {
        padding-right: 42px;
        padding-left: 42px
    }

    body.aniwave-home .aniwave-home-schedule .table_schedule-list {
        padding-right: 0;
        padding-left: 0
    }

    body.aniwave-home .aniwave-home-schedule .ts-navigation .tsn-prev {
        left: 3px
    }

    body.aniwave-home .aniwave-home-schedule .tsn-next {
        right: 3px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link {
        display: flex !important;
        gap: 12px !important;
        padding-right: 18px;
        padding-left: 18px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .time {
        width: auto !important;
        min-width: 75px;
        font-size: 1.2rem
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .fd-play {
        flex-basis: 112px;
        width: 112px !important;
        min-width: 112px
    }
}

@media(min-width:781px) and (max-width:1200px) {
    body.aniwave-home .aniwave-home-schedule .tsl-link {
        display: flex !important;
        gap: 16px !important;
        padding: 8px 24px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .time {
        width: auto !important;
        min-width: 100px;
        font-size: 1.35rem
    }
}

@media(min-width:781px) and (max-width:1100px) {
    body.aniwave-home .aniwave-home-container {
        padding-right: 24px;
        padding-left: 24px
    }

    body.aniwave-home .deslide-item .deslide-cover {
        left: 42%
    }

    body.aniwave-home .deslide-item .deslide-item-content {
        width: 42%;
        padding-right: 16px
    }

    body.aniwave-home .deslide-item .desi-head-title {
        font-size: clamp(28px, 3.3vw, 36px)
    }

    body.aniwave-home #slider .swiper-pagination {
        width: 42%
    }

    body.aniwave-home .aniwave-home-columns {
        grid-template-columns: minmax(0, 1fr) 285px;
        gap: 14px
    }

    body.aniwave-home .aniwave-home-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 14px
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 8px
    }
}

@media(max-width:780px) {
    body.aniwave-home #header .container {
        gap: 8px;
        padding: 0 8px
    }

    body.aniwave-home #logo {
        height: 32px;
        margin-left: 40px
    }

    body.aniwave-home #logo img {
        height: 32px
    }

    body.aniwave-home #search {
        flex: 1 1 auto
    }

    body.aniwave-home .header-setting .hst-item .name {
        display: none
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 8px
    }

    body.aniwave-home #header_right {
        margin-left: 2px
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 7px 10px;
        font-size: 12px
    }

    body.aniwave-home .aniwave-home-container {
        padding: 8px
    }

    body.aniwave-home #slider,
    body.aniwave-home #slider .swiper-wrapper,
    body.aniwave-home #slider .swiper-slide,
    body.aniwave-home .deslide-item {
        height: 440px
    }

    body.aniwave-home #slider {
        margin-bottom: 28px
    }

    body.aniwave-home .deslide-item .deslide-cover {
        top: 0;
        left: 0;
        bottom: 40%;
        opacity: .7
    }

    body.aniwave-home .deslide-item .deslide-item-content {
        top: auto;
        bottom: 28px;
        width: 100%;
        padding: 0 12px
    }

    body.aniwave-home .deslide-item .desi-head-title {
        font-size: 30px
    }

    body.aniwave-home .deslide-item .desi-description {
        max-width: 520px;
        margin-bottom: 14px
    }

    body.aniwave-home #slider .swiper-pagination {
        bottom: 8px;
        width: 100%;
        padding-left: 12px
    }

    body.aniwave-home .aniwave-home-columns {
        grid-template-columns: minmax(0, 1fr)
    }

    body.aniwave-home .aniwave-home-sidebar {
        grid-row: 1
    }

    body.aniwave-home .aniwave-home-sidebar .anif-block-chart ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px
    }

    body.aniwave-home .aniwave-home-sidebar .anif-block-chart li {
        margin: 0
    }

    body.aniwave-home .aniwave-home-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 12px
    }

    body.aniwave-home .aniwave-home-lists {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 36px 0
    }
}

@media(max-width:780px) {
    body.aniwave-home #sidebar_menu {
        width: 86px
    }

    body.aniwave-home #sidebar_menu.is-genre-open {
        width: calc(100vw - 20px)
    }

    body.aniwave-home #sidebar_menu.is-types-open {
        width: 230px
    }

    body.aniwave-home .aniwave-menu-layout {
        grid-template-columns: 86px
    }

    body.aniwave-home .aniwave-menu-layout.is-genre-open {
        grid-template-columns: 86px minmax(0, 1fr)
    }

    body.aniwave-home .aniwave-menu-layout.is-types-open {
        grid-template-columns: 86px minmax(0, 144px)
    }

    body.aniwave-home .aniwave-menu-categories a,
    body.aniwave-home .aniwave-menu-categories button {
        padding: 0 12px;
        font-size: 11px
    }

    body.aniwave-home .aniwave-menu-genres {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 10px;
        padding-left: 12px
    }
}

@media(max-width:480px) {
    body.aniwave-home .header-setting {
        display: none
    }

    body.aniwave-home #logo {
        margin-left: 38px
    }

    body.aniwave-home #search .search-input {
        font-size: 12px
    }

    body.aniwave-home .aniwave-home-share .st-btn {
        min-width: 78px
    }

    body.aniwave-home .aniwave-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

/* Small-screen layout: keep the header usable, prevent share controls from
   overflowing, and make the seven-day schedule readable on phone widths. */
@media(max-width:780px) {
    body.aniwave-home #header .container {
        display: grid !important;
        grid-template-columns: 34px 108px minmax(36px, 1fr) auto auto;
        grid-template-rows: 60px;
        align-items: center;
        column-gap: 6px;
        flex-wrap: nowrap;
        padding: 0 8px
    }

    body.aniwave-home #mobile_menu {
        position: static !important;
        grid-column: 1;
        grid-row: 1;
        width: 30px;
        height: 36px;
        margin: 0;
        padding: 0
    }

    body.aniwave-home #logo {
        grid-column: 2;
        grid-row: 1;
        width: 108px;
        height: 32px;
        margin: 0;
        overflow: hidden
    }

    body.aniwave-home #logo img {
        max-width: 108px;
        height: 32px;
        object-fit: contain
    }

    body.aniwave-home #search {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        min-width: 36px;
        max-width: none;
        margin: 0
    }

    body.aniwave-home #search .search-content {
        width: 100%
    }

    body.aniwave-home .header-setting {
        grid-column: 4;
        grid-row: 1;
        display: block !important;
        margin: 0 !important
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 6px
    }

    body.aniwave-home #header_right {
        grid-column: 5;
        grid-row: 1;
        margin: 0 !important
    }

    body.aniwave-home #sidebar_menu .sb-setting {
        display: none !important
    }

    body.aniwave-home .aniwave-menu-layout {
        grid-template-columns: 86px !important
    }

    body.aniwave-home .aniwave-menu-categories {
        width: 86px;
        min-width: 86px;
        overflow: hidden
    }

    body.aniwave-home .aniwave-menu-categories a,
    body.aniwave-home .aniwave-menu-categories button {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding-right: 8px;
        padding-left: 12px;
        font-size: 10px
    }

    html:has(body.aniwave-home),
    body.aniwave-home {
        margin-top: 0 !important;
        padding-top: 0 !important
    }

    body.aniwave-home #header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        margin-top: 0 !important;
        transform: none !important
    }

    body.aniwave-home #wrapper {
        padding-top: 60px !important;
        margin-top: 0 !important
    }

    body.aniwave-home .aniwave-home-sidebar {
        grid-row: auto !important
    }

    body.aniwave-home #slider,
    body.aniwave-home #slider .swiper-wrapper,
    body.aniwave-home #slider .swiper-slide,
    body.aniwave-home .deslide-item {
        height: 330px
    }

    body.aniwave-home #slider {
        margin-bottom: 62px
    }

    body.aniwave-home .deslide-item .deslide-cover {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: .62
    }

    body.aniwave-home .deslide-item .deslide-cover .deslide-cover-img:after {
        display: block;
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .08) 72%)
    }

    body.aniwave-home .deslide-item .deslide-item-content {
        top: auto;
        right: 42px;
        bottom: 24px;
        left: 0;
        width: auto;
        padding: 0 12px
    }

    body.aniwave-home .deslide-item .desi-head-title {
        font-size: 22px;
        line-height: 1.08
    }

    body.aniwave-home .deslide-item .desi-description {
        display: -webkit-box;
        max-width: 360px;
        margin: 5px 0 10px;
        font-size: 12px;
        line-height: 1.45;
        -webkit-line-clamp: 2
    }

    body.aniwave-home .deslide-item .desi-buttons .btn {
        padding: 7px 14px;
        font-size: 14px
    }

    body.aniwave-home #slider .swiper-pagination {
        top: 50%;
        right: 8px;
        bottom: auto;
        left: auto;
        display: flex;
        width: auto;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0;
        text-align: center;
        transform: translateY(-50%)
    }

    body.aniwave-home #slider .swiper-pagination-bullet,
    body.aniwave-home #slider .swiper-pagination-bullet-active {
        width: 9px !important;
        height: 9px !important;
        margin: 0 !important;
        border-radius: 50% !important
    }

    body.aniwave-home .aniwave-home-share .sbb-social,
    body.aniwave-watch .share-buttons.share-buttons-detail .sbb-social {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important
    }

    body.aniwave-home .aniwave-home-share .st-total,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-total {
        display: none
    }

    body.aniwave-home .aniwave-home-share .st-btn:not([data-network='native']),
    body.aniwave-watch .share-buttons.share-buttons-detail .st-btn:not([data-network='native']) {
        display: inline-flex !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 34px !important;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 6px !important;
        align-items: center !important;
        justify-content: center !important
    }

    body.aniwave-home .aniwave-home-share .st-btn>svg,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-btn>svg {
        width: 17px !important;
        height: 17px !important;
        margin: 0 !important
    }

    body.aniwave-home .aniwave-home-share .st-inline-share-buttons.st-has-labels .st-btn:not(.st-remove-label)>span,
    body.aniwave-home .aniwave-home-share .st-inline-share-buttons.st-has-labels .st-btn>span,
    body.aniwave-home .aniwave-home-share .st-btn .st-label,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-inline-share-buttons.st-has-labels .st-btn:not(.st-remove-label)>span,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-inline-share-buttons.st-has-labels .st-btn>span,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-btn .st-label {
        display: none !important
    }

    body.aniwave-home .aniwave-home-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px
    }

    body.aniwave-home .aniwave-home-section-head nav {
        width: 100%;
        flex-wrap: nowrap;
        gap: 11px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        white-space: nowrap
    }

    body.aniwave-home .aniwave-home-section-head nav::-webkit-scrollbar {
        display: none
    }

    body.aniwave-home .aniwave-home-schedule .table_schedule-date {
        padding-right: 36px;
        padding-left: 36px
    }

    body.aniwave-home .aniwave-home-schedule .table_schedule-date .swiper-slide {
        width: calc(100% / 7) !important
    }

    body.aniwave-home .aniwave-home-schedule .tsd-item {
        min-width: 0;
        overflow: hidden
    }

    body.aniwave-home .aniwave-home-schedule .tsd-item span {
        font-size: clamp(16px, 5.8vw, 23px);
        white-space: nowrap
    }

    body.aniwave-home .aniwave-home-schedule .tsd-item .date {
        font-size: 8px;
        white-space: nowrap
    }

    body.aniwave-home .aniwave-home-schedule .ts-navigation .tsn-prev {
        left: 0
    }

    body.aniwave-home .aniwave-home-schedule .ts-navigation .tsn-next {
        right: 0
    }
}

@media(max-width:480px) {
    body.aniwave-home #header .container {
        grid-template-columns: 30px 88px minmax(30px, 1fr) auto auto;
        column-gap: 4px;
        padding: 0 6px
    }

    body.aniwave-home #mobile_menu {
        left: auto;
        width: 30px
    }

    body.aniwave-home #logo {
        width: 88px;
        height: 30px;
        margin: 0
    }

    body.aniwave-home #logo img {
        max-width: 88px;
        height: 30px
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 22px;
        line-height: 30px
    }

    body.aniwave-home #search {
        width: auto;
        min-width: 30px;
        max-width: none
    }

    body.aniwave-home #header_right {
        min-width: 0
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 4px
    }

    body.aniwave-home .header-setting .hst-item .hst-icon {
        font-size: 13px
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 3px;
        font-size: 9px
    }

    body.aniwave-home #slider,
    body.aniwave-home #slider .swiper-wrapper,
    body.aniwave-home #slider .swiper-slide,
    body.aniwave-home .deslide-item {
        height: 300px
    }

    body.aniwave-home #slider {
        margin-bottom: 62px
    }

    body.aniwave-home .deslide-item .deslide-item-content {
        right: 34px;
        bottom: 20px
    }

    body.aniwave-home .deslide-item .desi-head-title {
        font-size: 20px
    }

    body.aniwave-home .deslide-item .desi-description {
        font-size: 11px
    }

    body.aniwave-home #header .container {
        display: grid !important;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0 5px
    }

    body.aniwave-home #mobile_menu {
        order: 0;
        left: auto;
        width: 30px;
        height: 36px
    }

    body.aniwave-home #mobile_menu i {
        font-size: 22px
    }

    body.aniwave-home #mobile_menu.active:after {
        font-size: 34px;
        line-height: 34px
    }

    body.aniwave-home #logo {
        order: 1;
        flex: 0 0 88px;
        width: 88px;
        height: 30px;
        margin: 0;
        overflow: hidden
    }

    body.aniwave-home #logo img {
        max-width: 88px;
        height: 30px;
        object-fit: contain
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -1.5px
    }

    body.aniwave-home #search {
        order: 2;
        flex: 1 1 72px;
        width: auto;
        min-width: 30px;
        max-width: none;
        margin: 0
    }

    body.aniwave-home #search .search-content {
        width: 100%
    }

    body.aniwave-home #search form {
        height: 34px
    }

    body.aniwave-home #search .search-icon {
        flex: 0 0 30px;
        width: 30px;
        height: 34px
    }

    body.aniwave-home #search .search-input {
        height: 34px;
        padding: 0 1px;
        font-size: 10px
    }

    body.aniwave-home #search .aniwave-search-shortcut {
        display: none
    }

    body.aniwave-home .header-setting {
        display: block !important;
        order: 3;
        flex: 0 0 auto;
        margin-left: 0
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 6px
    }

    body.aniwave-home .header-setting .hst-item {
        flex: 0 0 auto
    }

    body.aniwave-home .header-setting .hst-item .hst-icon {
        margin-right: 0
    }

    body.aniwave-home .header-setting .select-anime-name {
        font-size: 10px
    }

    body.aniwave-home #header_right {
        order: 4;
        flex: 0 0 auto;
        margin-left: 0
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 6px 8px;
        font-size: 11px;
        white-space: nowrap
    }

    body.aniwave-home #user-slot .header_right-user.logged {
        margin: 0
    }

    body.aniwave-home #user-slot .btn-user-avatar {
        width: 34px;
        height: 34px
    }

    body.aniwave-home #user-slot .profile-avatar,
    body.aniwave-home #user-slot .profile-avatar img {
        width: 30px;
        height: 30px
    }

    body.aniwave-home .aniwave-home-hero {
        margin-bottom: 24px
    }

    body.aniwave-home .deslide-item .desi-head-title {
        font-size: 26px
    }

    body.aniwave-home .aniwave-home-share-panel {
        padding: 10px 8px
    }

    body.aniwave-home .aniwave-home-share .st-btn:not([data-network='native']) {
        flex: 1 1 0 !important;
        height: 30px !important;
        padding: 0 !important
    }

    body.aniwave-home .aniwave-home-cards {
        gap: 16px 10px
    }

    body.aniwave-home .aniwave-home-schedule .block_area-header {
        padding: 16px 14px 0
    }

    body.aniwave-home .aniwave-home-schedule .cat-heading {
        font-size: 19px
    }

    body.aniwave-home .aniwave-home-schedule .bah-time {
        font-size: 12px
    }

    body.aniwave-home .aniwave-home-schedule .table_schedule-date {
        min-height: 98px;
        padding: 8px 28px 10px
    }

    body.aniwave-home .aniwave-home-schedule .tsd-item {
        min-height: 72px;
        padding-bottom: 5px
    }

    body.aniwave-home .aniwave-home-schedule .tsd-item span {
        font-size: clamp(14px, 5vw, 19px)
    }

    body.aniwave-home .aniwave-home-schedule .ts-navigation .btn {
        width: 26px;
        height: 36px
    }

    body.aniwave-home .aniwave-home-schedule .ts-navigation .btn i {
        font-size: 24px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link {
        display: flex !important;
        gap: 8px !important;
        min-height: 44px;
        padding: 7px 10px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .time {
        width: 62px;
        margin-right: 8px !important;
        font-size: 1.15rem
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .film-detail {
        gap: 6px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .film-name {
        font-size: 11px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .fd-play {
        width: 92px !important;
        min-width: 92px;
        flex-basis: 92px
    }

    body.aniwave-home .aniwave-home-schedule .tsl-link .btn-play {
        min-width: 92px;
        height: 26px;
        padding: 0 7px;
        font-size: 10px
    }
}

@media(max-width:360px) {
    body.aniwave-home #header .container {
        grid-template-columns: 28px 78px minmax(28px, 1fr) auto auto;
        column-gap: 3px;
        padding: 0 5px
    }

    body.aniwave-home #mobile_menu {
        width: 28px
    }

    body.aniwave-home #logo {
        flex-basis: 78px;
        width: 78px
    }

    body.aniwave-home #logo img {
        max-width: 78px
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 20px
    }

    body.aniwave-home #search {
        flex-basis: auto;
        max-width: none;
        min-width: 28px
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 4px
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 3px
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 5px 6px;
        font-size: 10px
    }

    body.aniwave-home #search .search-input {
        font-size: 10px
    }

    body.aniwave-home .aniwave-home-share .st-btn:not([data-network='native']) {
        flex: 1 1 0 !important
    }
}

/* Final mobile header placement: logo, search, options, then profile. */
@media(max-width:780px) {
    body.aniwave-home #header .container {
        display: grid !important;
        grid-template-columns: 34px 108px minmax(32px, 1fr) auto auto;
        grid-template-rows: 60px;
        align-items: center;
        gap: 6px;
        padding: 0 8px;
        overflow: visible
    }

    body.aniwave-home #header .container>.clearfix {
        display: none !important
    }

    body.aniwave-home #mobile_menu {
        position: static !important;
        grid-column: 1;
        grid-row: 1;
        width: 30px;
        height: 36px;
        margin: 0;
        padding: 0
    }

    body.aniwave-home #logo {
        grid-column: 2;
        grid-row: 1;
        width: 108px;
        height: 32px;
        margin: 0;
        overflow: hidden
    }

    body.aniwave-home #logo img {
        width: auto;
        max-width: 108px;
        height: 32px;
        object-fit: contain
    }

    body.aniwave-home #search {
        position: relative;
        grid-column: 3;
        grid-row: 1;
        width: 100%;
        min-width: 32px;
        max-width: none;
        margin: 0;
        float: none
    }

    body.aniwave-home #search .search-content {
        width: 100%;
        min-width: 0
    }

    body.aniwave-home #search form {
        position: relative;
        display: flex;
        width: 100%;
        min-width: 0
    }

    body.aniwave-home #search .search-icon {
        position: static !important;
        order: 1 !important;
        flex: 0 0 34px;
        width: 34px;
        height: 36px
    }

    body.aniwave-home #search .search-input {
        position: static !important;
        order: 2 !important;
        flex: 1 1 auto;
        width: auto;
        min-width: 0
    }

    body.aniwave-home #search .aniwave-search-shortcut {
        order: 3 !important
    }

    body.aniwave-home .header-setting {
        display: block !important;
        grid-column: 4;
        grid-row: 1;
        width: auto;
        margin: 0 !important;
        white-space: nowrap
    }

    body.aniwave-home .header-setting .hs-toggles {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap
    }

    body.aniwave-home #header_right {
        grid-column: 5;
        grid-row: 1;
        width: auto;
        margin: 0 !important;
        justify-self: end
    }

    body.aniwave-home #sidebar_menu {
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto
    }

    body.aniwave-home #sidebar_menu .sb-setting {
        display: none !important
    }

    body.aniwave-home .aniwave-menu-layout {
        width: 100%;
        grid-template-columns: 86px !important
    }

    body.aniwave-home .aniwave-menu-categories {
        width: 86px;
        min-width: 86px;
        overflow: hidden
    }

    body.aniwave-home .aniwave-menu-categories a,
    body.aniwave-home .aniwave-menu-categories button {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding-right: 7px;
        padding-left: 11px;
        font-size: 10px
    }
}

@media(max-width:480px) {
    body.aniwave-home #header .container {
        grid-template-columns: 30px 84px minmax(28px, 1fr) auto auto;
        gap: 4px;
        padding: 0 6px
    }

    body.aniwave-home #mobile_menu {
        width: 28px
    }

    body.aniwave-home #logo {
        width: 84px;
        height: 30px
    }

    body.aniwave-home #logo img {
        max-width: 84px;
        height: 30px
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 22px;
        line-height: 30px
    }

    body.aniwave-home #search {
        min-width: 28px
    }

    body.aniwave-home #search form {
        height: 34px
    }

    body.aniwave-home #search .search-icon {
        flex-basis: 30px;
        width: 30px;
        height: 34px
    }

    body.aniwave-home #search .search-input {
        height: 34px;
        padding: 0 2px;
        font-size: 10px
    }

    body.aniwave-home #search .aniwave-search-shortcut {
        display: none
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 4px
    }

    body.aniwave-home .header-setting .hst-item .hst-icon {
        margin: 0;
        font-size: 12px
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 3px;
        font-size: 9px
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 5px 7px;
        font-size: 10px;
        white-space: nowrap
    }

    body.aniwave-home #user-slot .btn-user-avatar {
        width: 30px;
        height: 30px
    }

    body.aniwave-home #user-slot .profile-avatar,
    body.aniwave-home #user-slot .profile-avatar img {
        width: 28px;
        height: 28px
    }

    body.aniwave-home #sidebar_menu {
        width: 86px
    }

    body.aniwave-home #sidebar_menu.is-genre-open {
        width: calc(100vw - 20px)
    }

    body.aniwave-home #sidebar_menu.is-types-open {
        width: 230px
    }

    body.aniwave-home .aniwave-menu-layout.is-genre-open {
        grid-template-columns: 86px minmax(0, 1fr) !important
    }

    body.aniwave-home .aniwave-menu-layout.is-types-open {
        grid-template-columns: 86px minmax(0, 144px) !important
    }
}

@media(max-width:360px) {
    body.aniwave-home #header .container {
        grid-template-columns: 28px 76px minmax(26px, 1fr) auto auto;
        gap: 3px;
        padding: 0 5px
    }

    body.aniwave-home #mobile_menu {
        width: 26px
    }

    body.aniwave-home #logo {
        width: 76px
    }

    body.aniwave-home #logo img {
        max-width: 76px
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 20px
    }

    body.aniwave-home #search {
        min-width: 26px
    }

    body.aniwave-home #search .search-icon {
        flex-basis: 26px;
        width: 26px
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 3px
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 2px
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 4px 5px;
        font-size: 9px
    }
}

/* Mobile header: keep the magnifier after the wordmark, and the account at
   the far right. Flex avoids the overlapping grid tracks on narrow devices. */
@media(max-width:780px) {
    body.aniwave-home #header .container {
        position: relative;
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center;
        gap: 4px;
        padding: 0 7px;
        overflow: visible
    }

    body.aniwave-home #header .container>.clearfix {
        display: none !important
    }

    body.aniwave-home #mobile_menu {
        position: absolute !important;
        top: 12px !important;
        left: 7px !important;
        right: auto !important;
        bottom: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 36px;
        margin: 0;
        padding: 0;
        z-index: 2
    }

    body.aniwave-home #mobile_menu i {
        display: block !important;
        font-size: 21px
    }

    body.aniwave-home #mobile_menu.active i {
        display: none !important
    }

    body.aniwave-home #logo {
        position: static;
        flex: 0 0 86px;
        width: 86px;
        height: 30px;
        margin: 0 0 0 32px !important;
        overflow: hidden
    }

    body.aniwave-home #logo img {
        width: auto;
        max-width: 86px;
        height: 30px;
        object-fit: contain
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 22px;
        line-height: 30px;
        letter-spacing: -1.4px
    }

    body.aniwave-home #search {
        position: relative;
        float: none;
        flex: 1 1 100px;
        width: auto;
        min-width: 44px;
        max-width: none;
        margin: 0
    }

    body.aniwave-home #search .search-content {
        width: 100%;
        min-width: 0
    }

    body.aniwave-home #search form {
        position: relative;
        display: flex;
        width: 100%;
        height: 34px;
        min-width: 0;
        padding: 0;
        border-radius: 6px;
        background: #111
    }

    body.aniwave-home #search .search-icon {
        position: static !important;
        inset: auto !important;
        order: 1 !important;
        display: flex;
        flex: 0 0 32px;
        width: 32px;
        height: 34px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #aaa
    }

    body.aniwave-home #search .search-input {
        position: static !important;
        order: 2 !important;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 34px;
        padding: 0 2px;
        border: 0;
        background: transparent;
        color: #eee;
        font-size: 10px
    }

    body.aniwave-home #search .aniwave-search-shortcut {
        display: none
    }

    body.aniwave-home .header-setting {
        display: block !important;
        position: static;
        flex: 0 0 auto;
        width: auto;
        margin: 0 !important
    }

    body.aniwave-home .header-setting .hs-toggles {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        gap: 5px
    }

    body.aniwave-home .header-setting .hst-item {
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap
    }

    body.aniwave-home .header-setting .hst-item .name {
        display: none !important
    }

    body.aniwave-home .header-setting .hst-item .hst-icon {
        margin: 0;
        font-size: 12px
    }

    body.aniwave-home .header-setting .select-anime-name {
        font-size: 9px
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 3px
    }

    body.aniwave-home #header_right {
        position: static;
        flex: 0 0 auto;
        width: auto;
        margin: 0 0 0 2px !important
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 5px 7px;
        font-size: 10px;
        white-space: nowrap
    }

    body.aniwave-home #user-slot .btn-user-avatar {
        width: 30px;
        height: 30px
    }

    body.aniwave-home #user-slot .profile-avatar,
    body.aniwave-home #user-slot .profile-avatar img {
        width: 28px;
        height: 28px
    }

    body.aniwave-home #sidebar_menu .sb-setting,
    body.aniwave-home #sidebar_menu .sb-donate {
        display: none !important
    }

    body.aniwave-home #sidebar_menu {
        box-sizing: border-box;
        max-width: calc(100vw - 20px);
        overflow-x: hidden;
        overflow-y: auto
    }

    body.aniwave-home .aniwave-menu-categories {
        width: 86px;
        min-width: 86px;
        overflow: hidden
    }

    body.aniwave-home .aniwave-menu-categories a,
    body.aniwave-home .aniwave-menu-categories button {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding-right: 7px;
        padding-left: 11px;
        font-size: 10px
    }
}

@media(max-width:360px) {
    body.aniwave-home #logo {
        flex-basis: 78px;
        width: 78px;
        margin-left: 31px !important
    }

    body.aniwave-home #logo img {
        max-width: 78px
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 20px
    }

    body.aniwave-home #search {
        min-width: 34px
    }

    body.aniwave-home #search .search-icon {
        flex-basis: 28px;
        width: 28px
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 3px
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 2px
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 4px 5px;
        font-size: 9px
    }
}

/* Final narrow-screen header layout: keep every control in one predictable row. */
@media(max-width:780px) {
    body.aniwave-home #header .container {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 7px !important;
        overflow: visible !important
    }

    body.aniwave-home #header .container>.clearfix {
        display: none !important
    }

    body.aniwave-home #mobile_menu {
        position: absolute !important;
        top: 50% !important;
        left: 7px !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 27px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 5
    }

    body.aniwave-home #mobile_menu .aniwave-menu-icon {
        display: block !important;
        width: 23px;
        height: 23px;
        color: #eee
    }

    body.aniwave-home #mobile_menu.active .aniwave-menu-icon {
        display: none !important
    }

    body.aniwave-home #mobile_menu.active:after {
        content: "\00d7" !important;
        display: block;
        color: #eee;
        font: 400 34px/34px Arial, sans-serif
    }

    body.aniwave-home #logo {
        position: static !important;
        order: 0 !important;
        flex: 0 0 82px !important;
        width: 82px !important;
        height: 30px !important;
        min-width: 0 !important;
        margin: 0 0 0 32px !important;
        padding: 0 !important;
        overflow: hidden
    }

    body.aniwave-home #logo img {
        display: block;
        width: auto;
        max-width: 82px;
        height: 30px;
        object-fit: contain
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        display: block;
        font-size: 21px;
        line-height: 30px;
        letter-spacing: -1.4px;
        white-space: nowrap
    }

    body.aniwave-home #search {
        position: static !important;
        order: 1 !important;
        float: none !important;
        flex: 1 1 40px !important;
        width: auto !important;
        min-width: 30px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important
    }

    body.aniwave-home #search .search-content {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important
    }

    body.aniwave-home #search form {
        position: relative !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #111 !important;
        overflow: hidden
    }

    body.aniwave-home #search form .filter-icon {
        display: none !important
    }

    body.aniwave-home #search form .search-icon {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        order: 0 !important;
        display: flex !important;
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #aaa !important
    }

    body.aniwave-home #search .aniwave-search-icon {
        display: block !important;
        width: 18px;
        height: 18px;
        color: currentColor
    }

    body.aniwave-home #search .search-input,
    body.aniwave-home #search .aniwave-header-search-input {
        position: static !important;
        order: 1 !important;
        display: block !important;
        flex: 1 1 auto !important;
        width: 1px !important;
        min-width: 0 !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 2px !important;
        border: 0 !important;
        background: transparent !important;
        color: #eee !important;
        font-size: 10px !important
    }

    body.aniwave-home #search .aniwave-search-shortcut {
        display: none !important
    }

    body.aniwave-home .header-setting {
        position: static !important;
        order: 2 !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important
    }

    body.aniwave-home .header-setting .hs-toggles {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        gap: 4px !important
    }

    body.aniwave-home .header-setting .hst-item {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap
    }

    body.aniwave-home .header-setting .hst-item .name {
        display: none !important
    }

    body.aniwave-home .header-setting .hst-item .hst-icon {
        margin: 0 !important;
        font-size: 12px !important
    }

    body.aniwave-home .header-setting .select-anime-name {
        display: inline-flex !important;
        font-size: 9px !important
    }

    body.aniwave-home .header-setting .select-anime-name .en,
    body.aniwave-home .header-setting .select-anime-name .jp {
        padding: 1px 2px !important
    }

    body.aniwave-home #header_right {
        position: static !important;
        order: 3 !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important
    }

    body.aniwave-home #user-slot .btn-user-avatar {
        width: 28px !important;
        height: 28px !important
    }

    body.aniwave-home #user-slot .profile-avatar,
    body.aniwave-home #user-slot .profile-avatar img {
        width: 26px !important;
        height: 26px !important
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        padding: 4px 6px !important;
        font-size: 9px !important;
        white-space: nowrap
    }
}

@media(max-width:360px) {
    body.aniwave-home #logo {
        flex-basis: 76px !important;
        width: 76px !important;
        margin-left: 31px !important
    }

    body.aniwave-home #logo img {
        max-width: 76px
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 20px
    }

    body.aniwave-home #search form .search-icon {
        flex-basis: 25px !important;
        width: 25px !important;
        min-width: 25px !important
    }

    body.aniwave-home #search .aniwave-search-icon {
        width: 17px;
        height: 17px
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 3px !important
    }
}

/* Keep search, random/language controls, and profile together at the right. */
@media(max-width:780px) {
    body.aniwave-home #header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important
    }

    body.aniwave-home #header .container {
        position: static !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-right: 0 !important;
        margin-left: 0 !important
    }

    body.aniwave-home #mobile_search {
        display: none !important
    }

    body.aniwave-home #header #search,
    body.aniwave-home #header #search .search-icon {
        display: none !important
    }

    body.aniwave-home #search form {
        width: 30px !important;
        background: transparent !important;
        overflow: visible !important
    }

    body.aniwave-home #search form .search-icon {
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important
    }

    body.aniwave-home #search .search-input {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-width: 1px !important;
        padding: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important
    }

    body.aniwave-home .header-setting {
        position: absolute !important;
        top: 50% !important;
        right: 39px !important;
        transform: translateY(-50%) !important
    }

    body.aniwave-home #header_right {
        position: absolute !important;
        top: 50% !important;
        right: 7px !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        margin: 0 !important
    }
}

/* Aniwave watch page skin: preserve the existing player and episode controls. */
body.aniwave-watch #wrapper {
    padding-top: 60px !important;
    overflow: visible !important
}

body.aniwave-watch #main-wrapper {
    position: relative;
    display: block !important;
    padding-top: 20px;
    overflow: visible
}

body.aniwave-watch #ani_detail {
    width: calc(100% - 340px);
    max-width: none;
    margin: 0 0 0 10px
}

body.aniwave-watch .ani_detail-stage {
    display: block;
    width: 100%;
    margin: 0 0 28px
}

body.aniwave-watch .ani_detail-stage>.container {
    width: 100%;
    max-width: none;
    padding: 0
}

body.aniwave-watch .anis-cover-wrap {
    display: none
}

body.aniwave-watch .anis-watch-wrap {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 2
}

body.aniwave-watch .prebreadcrumb {
    display: none
}

body.aniwave-watch .aniwave-watch-notice {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 0 16px;
    border-radius: 5px;
    background: #1c1c1c;
    color: #b8c4d4;
    font-size: 11px;
    line-height: 1.45
}

body.aniwave-watch .aniwave-watch-notice i {
    color: #9baec8;
    font-size: 13px
}

body.aniwave-watch .prebreadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 11px
}

body.aniwave-watch .prebreadcrumb .breadcrumb-item,
body.aniwave-watch .prebreadcrumb .breadcrumb-item a {
    color: #858585
}

body.aniwave-watch .anis-watch {
    width: 100%;
    margin: 0;
    padding: 0
}

body.aniwave-watch .anis-watch-tv {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0
}

body.aniwave-watch .watch-player {
    width: 100%;
    background: #000
}

body.aniwave-watch .player-frame,
body.aniwave-watch .anis-watch-tv .player-frame {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding-bottom: 56.25% !important;
    overflow: hidden;
    background: #000
}

body.aniwave-watch .player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important
}

body.aniwave-watch .player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 10px;
    background: #080808
}

body.aniwave-watch .player-controls .pc-item {
    float: none;
    margin: 0
}

body.aniwave-watch .player-controls .pc-item .btn,
body.aniwave-watch .player-controls .toggle-basic {
    padding: 3px 6px;
    color: #999;
    font-size: 11px
}

body.aniwave-watch .player-controls .pc-right {
    display: flex;
    align-items: center;
    gap: 12px;
    float: none;
    margin-left: auto
}

body.aniwave-watch .player-controls .pc-right .pc-item {
    margin: 0;
    display: inline-flex;
    align-items: center
}

body.aniwave-watch .player-controls .pc-right .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px
}

body.aniwave-watch .player-controls .clearfix {
    display: none
}

body.aniwave-watch .player-servers {
    position: relative;
    margin: 10px 0 0;
    padding: 0 0 0 27%;
    overflow: hidden;
    border-radius: 4px;
    background: #080808
}

body.aniwave-watch .player-servers #servers-content {
    min-height: 100px;
    overflow: hidden;
    border-radius: 0;
    background: #080808
}

body.aniwave-watch .player-servers .ps_-status {
    top: 0;
    left: 0;
    bottom: 0;
    width: 27%;
    margin: 0;
    border-radius: 0;
    background: #1d1d1d
}

body.aniwave-watch .player-servers .ps_-status .server-notice {
    color: #aaa;
    font-size: 12px;
    font-weight: 400
}

body.aniwave-watch .player-servers .ps_-status .server-notice strong {
    color: #ddd;
    font-weight: 500
}

body.aniwave-watch .player-servers .ps_-block {
    padding: 10px 12px 10px 96px;
    border-color: #242424
}

body.aniwave-watch .player-servers .ps_-block .ps__-title {
    top: 7px;
    left: 12px;
    color: #aaa;
    font-size: 11px
}

body.aniwave-watch .player-servers .ps_-block .ps__-title i {
    color: #b9c4d4
}

body.aniwave-watch .player-servers .ps_-block .ps__-server .btn,
body.aniwave-watch .player-servers .ps_-block .ps__-server a {
    font-size: 11px
}

body.aniwave-watch .schedule-alert {
    margin: 10px 0
}

body.aniwave-watch .schedule-alert .alert {
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: #1d1d1d;
    color: #aaa;
    font-size: 11px
}

body.aniwave-watch #episodes-content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    border-radius: 4px;
    background: #080808
}

body.aniwave-watch #episodes-content .ss-list {
    padding: 10px
}

body.aniwave-watch #episodes-content .ssl-item {
    background: #1c1c1c;
    border-radius: 4px
}

body.aniwave-watch #episodes-content .ssl-item.active {
    background: #60309a !important
}

body.aniwave-watch #episodes-content .ssli-order {
    color: #bbb
}

body.aniwave-watch #episodes-content .ssc-quick .form-control {
    border-color: #353535 !important;
    background: #111;
    color: #aaa
}

body.aniwave-watch .anis-watch-detail {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 24px 0 0;
    padding: 0
}

body.aniwave-watch .anis-watch-detail .anis-content {
    position: relative;
    min-height: 210px;
    padding: 0 0 0 215px !important
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 195px !important;
    margin: 0
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail {
    padding: 0 !important
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-name {
    margin: 0 0 6px;
    color: #e6e6e6;
    font-size: 24px;
    line-height: 1.35
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-stats {
    margin: 0 0 8px
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-description {
    max-height: none;
    min-height: 0;
    margin: 8px 0;
    color: #aaa;
    font-size: 12px;
    line-height: 1.6
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-text {
    color: #888;
    font-size: 11px
}

body.aniwave-watch #main-wrapper>.container {
    width: calc(100% - 20px);
    max-width: none;
    margin: 0 10px;
    padding: 0
}

body.aniwave-watch #main-content {
    float: none;
    width: 100%;
    max-width: none
}

body.aniwave-watch #main-sidebar {
    position: absolute;
    top: 20px;
    right: 10px;
    float: none;
    width: 300px;
    margin: 0;
    padding: 0
}

body.aniwave-watch #main-sidebar .block_area {
    margin: 0 0 18px
}

body.aniwave-watch #main-sidebar .block_area-header {
    margin: 0 0 14px;
    padding: 0
}

body.aniwave-watch #main-sidebar .block_area-header .cat-heading {
    color: #e5e5e5;
    font-size: 21px
}

body.aniwave-watch #main-sidebar .cbox.cbox-list {
    padding: 0;
    background: transparent
}

body.aniwave-watch #main-sidebar .cbox.cbox-list .cbox-content {
    padding: 0;
    background: transparent
}

body.aniwave-watch #main-sidebar .anif-block-ul>ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent
}

body.aniwave-watch #main-sidebar .anif-block-ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 90px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 5px;
    background: #1c1c1c !important
}

body.aniwave-watch #main-sidebar .anif-block-ul li .film-detail {
    min-width: 0;
    padding: 0 8px 0 14px
}

body.aniwave-watch #main-sidebar .anif-block-ul li .film-detail .film-name {
    color: #c9d2df;
    font-size: 13px;
    line-height: 1.45
}

body.aniwave-watch #main-sidebar .anif-block-ul li .film-detail .fd-infor {
    font-size: 10px
}

body.aniwave-watch #main-sidebar .anif-block-ul li .film-poster {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 70px;
    width: 70px;
    height: 74px;
    padding: 0
}

body.aniwave-watch #main-sidebar .anif-block-ul li .film-poster .film-poster-img {
    height: 100%;
    object-fit: cover
}

body.aniwave-watch #main-sidebar .anif-block-ul li .film-fav {
    display: none !important
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .anif-block-ul li {
    min-height: 90px;
    padding: 0
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .anif-block-ul li .film-poster {
    flex-basis: 70px;
    width: 70px;
    height: 90px;
    border-radius: 5px 0 0 5px
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .anif-block-ul li .film-detail {
    padding: 0 12px 0 14px
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .anif-block-ul li .film-detail .film-name {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .anif-block-ul li .fd-infor {
    margin: 0 !important;
    color: #777;
    font-size: 12px;
    line-height: 1.35
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .aniwave-sidebar-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .aniwave-sidebar-meta .rating {
    color: #9d7912
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .aniwave-sidebar-meta .rating i {
    color: #9d7912;
    font-size: 11px
}

body.aniwave-watch #main-sidebar .aniwave-compact-sidebar .aniwave-sidebar-meta .dot {
    width: 3px;
    height: 3px;
    margin: 0 1px;
    background: #555
}

/* Aniwave episode controls and information area below the video. */
body.aniwave-watch .player-servers {
    margin-top: 10px;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    border-radius: 4px;
    background: #080808
}

body.aniwave-watch .player-servers #servers-content {
    min-height: 110px;
    padding-top: 0;
    padding-bottom: 0;
    background: #080808
}

body.aniwave-watch .player-servers .ps_-status {
    border-radius: 4px 0 0 4px
}

body.aniwave-watch .player-servers .ps_-status .server-notice {
    padding: 8px 14px;
    color: #b6c1d1;
    line-height: 1.5
}

body.aniwave-watch .player-servers .ps_-status .server-notice strong {
    margin-bottom: 4px;
    color: #b6c1d1
}

body.aniwave-watch .player-servers .ps_-status .server-notice b {
    display: inline;
    color: #8d5bd0;
    line-height: inherit
}

body.aniwave-watch .player-servers .ps_-block {
    min-height: 55px;
    padding: 10px 12px 10px 96px;
    border-bottom: 1px dashed #242424
}

body.aniwave-watch .player-servers .ps_-block .ps__-title {
    top: 7px;
    line-height: 30px;
    font-weight: 400
}

body.aniwave-watch .player-servers .ps_-block .ps__-list .item .btn {
    min-width: 80px;
    padding: 0 10px;
    border-radius: 4px;
    background: #1d1d1d;
    color: #9199a5;
    font-size: 11px;
    line-height: 28px
}

body.aniwave-watch .player-servers .ps_-block .ps__-list .item .btn.active {
    background: #60309a;
    color: #fff
}

body.aniwave-watch #episodes-content {
    min-height: 130px;
    margin: 10px 0 0;
    border-radius: 4px;
    background: #080808
}

body.aniwave-watch #episodes-content .seasons-block {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    background: #080808
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .detail-infor-content {
    position: relative;
    background: #080808
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 80px;
    margin: 0;
    padding: 10px 12px 38px;
    background: #080808;
    border-bottom: 1px solid #242424
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-choice>.clearfix {
    display: none
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-toggle,
body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-name {
    display: inline-flex !important;
    align-items: center;
    min-width: 82px;
    height: 26px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #1d1d1d;
    color: #9299a5;
    font-size: 11px;
    line-height: 26px;
    white-space: nowrap
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-toggle:after {
    margin-left: 6px
}

body.aniwave-watch #episodes-content .aniwave-episode-filter {
    position: relative;
    flex: 0 0 145px;
    width: 145px
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-toggle {
    width: 100%;
    justify-content: space-between
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: auto;
    left: 0;
    width: 145px !important;
    min-width: 145px !important;
    max-width: calc(100vw - 24px);
    padding: 4px 0;
    border: 1px solid #353535;
    border-radius: 4px;
    background: #1d1d1d;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45)
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-item {
    color: #aab0ba;
    font-size: 11px
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-item {
    padding: 7px 10px;
    line-height: 1.35
}

body.aniwave-watch #episodes-content .aniwave-episode-filter .dropdown-item.active {
    background: #60309a;
    color: #fff
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-list {
    position: absolute !important;
    z-index: 2;
    top: 10px !important;
    right: auto;
    bottom: auto;
    left: 50% !important;
    float: none;
    display: flex;
    align-items: flex-start;
    transform: translateX(-50%) !important
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-button {
    font-size: 11px
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-label {
    display: none
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-button .ssc-name {
    display: inline-flex !important;
    cursor: pointer
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-button .ssc-name i:first-child {
    display: none
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-button .ssc-name i:last-child {
    margin-left: 5px !important
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-quick {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    width: 32%;
    height: fit-content;
    max-width: 330px
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-quick .form-control {
    width: 100%;
    height: 26px;
    padding: 4px 10px 4px 36px;
    border-radius: 4px !important;
    background: #1d1d1d !important;
    color: #aab0ba;
    font-size: 11px
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-quick .sscq-icon {
    left: 4px;
    display: flex;
    width: 24px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #c5cbd4;
    font-size: 12px;
    pointer-events: none
}

body.aniwave-watch #episodes-content .aniwave-episode-mode {
    position: absolute;
    z-index: 5;
    bottom: 8px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #1d1d1d;
    color: #87909d;
    font-size: 12px;
    pointer-events: auto;
    cursor: pointer
}

body.aniwave-watch #episodes-content .aniwave-episode-mode:hover {
    background: #292929;
    color: #fff
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: none;
    margin: 0;
    padding: 10px 12px;
    overflow: visible;
    background: #080808
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item {
    display: flex;
    float: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 27px;
    margin: 0;
    border: 0 !important;
    border-radius: 4px;
    background: #1d1d1d;
    color: #aab0ba
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item:hover {
    background: #292929 !important
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item.active {
    background: #60309a !important;
    color: #fff
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-order {
    width: auto;
    line-height: 27px;
    color: inherit;
    font-size: 12px
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-detail,
body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-btn {
    display: none
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item {
    width: 64px;
    height: 40px
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item .ssli-order {
    line-height: 40px
}

body.aniwave-watch .anis-watch-detail {
    margin: 30px 0 0
}

body.aniwave-watch .anis-watch-detail .anis-content {
    min-height: 0;
    padding: 0 0 0 215px !important
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-poster {
    width: 199px !important
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-poster .film-poster {
    padding-bottom: 140%
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-name {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.3;
    overflow-wrap: anywhere
}

body.aniwave-watch .anis-watch-detail .anis-content .dt-comment {
    display: none
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-text {
    display: none
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-description {
    margin: 14px 0 0;
    color: #aab0ba;
    font-size: 13px;
    line-height: 1.7
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-description .text {
    line-height: 1.7;
    overflow-wrap: anywhere
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .aniwave-description-label {
    margin: 0 0 5px;
    color: #c2c8d2;
    font-size: 12px;
    font-weight: 500
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-stats .tick-item {
    min-width: 20px;
    margin-right: 5px;
    padding: 0 4px;
    border: 1px solid #555;
    border-radius: 2px;
    background: transparent;
    color: #c4c4c4;
    font-size: 10px;
    line-height: 16px;
    text-align: center
}

body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-stats .tick-item.tick-sub,
body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-stats .tick-item.tick-dub {
    border: 0;
    color: #aaa
}

body.aniwave-watch .aniwave-watch-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #242424;
    color: #9299a5;
    font-size: 12px;
    line-height: 1.8
}

body.aniwave-watch .aniwave-watch-info-grid .info-column {
    min-width: 0
}

body.aniwave-watch .aniwave-watch-info-grid .info-column>div {
    overflow-wrap: anywhere
}

body.aniwave-watch .aniwave-watch-info-grid .info-column>div>span:first-child {
    color: #7e8794
}

body.aniwave-watch .aniwave-watch-info-grid a {
    color: #9b59d0
}

body.aniwave-watch .aniwave-watch-info-grid .info-genres a {
    white-space: normal
}

body.aniwave-watch .share-buttons.share-buttons-detail {
    width: calc(100% - 340px);
    margin: 18px 0 0 10px;
    padding: 0;
    background: #080808
}

body.aniwave-watch .share-buttons.share-buttons-detail>.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0
}

body.aniwave-watch .share-buttons.share-buttons-detail .share-buttons-block {
    padding: 12px
}

body.aniwave-watch .share-buttons.share-buttons-detail .share-icon,
body.aniwave-watch .share-buttons.share-buttons-detail .sbb-title {
    display: none !important
}

body.aniwave-watch #comment-block {
    box-sizing: border-box;
    width: calc(100% - 340px);
    margin: 18px 0 0 10px
}

@media(max-width:900px) {
    body.aniwave-watch .share-buttons.share-buttons-detail {
        width: calc(100% - 20px);
        margin: 18px 10px 0
    }

    body.aniwave-watch #comment-block {
        width: calc(100% - 20px);
        margin: 18px 10px 0
    }
}

@media(max-width:600px) {
    body.aniwave-watch .aniwave-watch-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 12px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-choice {
        min-height: 82px;
        padding-right: 10px;
        padding-left: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-list {
        right: 10px;
        left: auto !important;
        transform: none !important
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-quick {
        top: 43px;
        right: 10px;
        left: 48px !important;
        width: auto;
        max-width: none
    }

    body.aniwave-watch #episodes-content .aniwave-episode-mode {
        top: 43px;
        right: auto;
        bottom: auto;
        left: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list {
        gap: 4px;
        padding: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item {
        width: 40px;
        height: 28px
    }

    body.aniwave-watch .share-buttons.share-buttons-detail .share-buttons-block {
        padding: 8px
    }
}

@media(max-width:900px) {
    body.aniwave-watch #ani_detail {
        width: 100%;
        margin: 0
    }

    body.aniwave-watch .ani_detail-stage>.container {
        padding: 0 10px
    }

    body.aniwave-watch #main-wrapper>.container {
        width: 100%;
        margin: 0;
        padding: 0 10px
    }

    body.aniwave-watch #main-sidebar {
        position: static;
        width: auto;
        margin: 24px 10px 0
    }

    body.aniwave-watch .share-buttons.share-buttons-detail {
        width: calc(100% - 20px);
        margin: 18px 10px 0
    }

    body.aniwave-watch .anis-watch-detail .anis-content {
        padding-left: 110px !important
    }

    body.aniwave-watch .anis-watch-detail .anis-content .anisc-poster {
        width: 96px !important
    }
}

@media(max-width:600px) {
    body.aniwave-watch #main-wrapper {
        padding-top: 8px
    }

    body.aniwave-watch .aniwave-watch-notice {
        min-height: 38px;
        margin-bottom: 8px;
        padding: 7px 10px;
        font-size: 10px
    }

    body.aniwave-watch .prebreadcrumb {
        font-size: 10px
    }

    body.aniwave-watch .player-controls {
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 8px;
        padding: 6px 8px
    }

    body.aniwave-watch .player-controls .pc-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin: 4px 0 0;
        padding-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, .05)
    }

    body.aniwave-watch .player-controls .pc-right .pc-item {
        margin: 0;
        flex-shrink: 0
    }

    body.aniwave-watch .player-controls .pc-right .pc-item .btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 7px !important;
        font-size: 11px !important;
        white-space: nowrap
    }

    body.aniwave-watch .player-controls .pc-right .pc-live a {
        gap: 4px
    }

    body.aniwave-watch .player-controls .pc-right .pc-live i.zicon-live {
        margin-right: 2px !important
    }

    body.aniwave-watch .player-controls .pc-item .btn,
    body.aniwave-watch .player-controls .toggle-basic {
        font-size: 11px
    }

    body.aniwave-watch .player-servers {
        padding-left: 0
    }

    body.aniwave-watch .player-servers .ps_-status {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-height: 62px
    }

    body.aniwave-watch .player-servers .ps_-status .server-notice {
        padding: 10px 12px
    }

    body.aniwave-watch .player-servers #servers-content {
        min-height: 0
    }

    body.aniwave-watch .player-servers .ps_-block {
        padding: 8px 8px 8px 86px
    }

    body.aniwave-watch .player-servers .ps_-block .ps__-title {
        left: 8px;
        font-size: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-choice {
        min-height: 82px;
        padding-right: 10px;
        padding-left: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-list {
        right: 10px;
        left: auto !important;
        transform: none !important
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ssc-quick {
        top: 43px;
        right: 10px;
        left: 48px !important;
        width: auto;
        max-width: none
    }

    body.aniwave-watch #episodes-content .aniwave-episode-mode {
        top: 43px;
        right: auto;
        bottom: auto;
        left: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list {
        gap: 4px;
        padding: 10px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item {
        width: 40px;
        height: 28px
    }

    body.aniwave-watch .share-buttons.share-buttons-detail .share-buttons-block {
        padding: 8px
    }

    body.aniwave-watch .anis-watch-detail .anis-content {
        padding-left: 90px !important
    }

    body.aniwave-watch .anis-watch-detail .anis-content .anisc-poster {
        width: 78px !important
    }

    body.aniwave-watch .anis-watch-detail .anis-content .anisc-detail .film-name {
        font-size: 18px
    }
}

/* Aniwave watch episode rows: readable title list by default, compact grid on toggle. */
body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    flex: none;
    width: 100%;
    max-height: 300px;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #080808;
    scrollbar-color: #5d5d5d #181818;
    scrollbar-width: thin
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list:not(.active) {
    display: none !important
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list.active {
    display: block !important
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
    float: none;
    width: 100% !important;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0;
    background: #191919;
    color: #aab0ba;
    text-align: left
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item:nth-child(even) {
    background: #101010
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item:hover {
    background: #292929 !important
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item.active,
body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item.active:hover {
    background: #60309a !important;
    color: #fff
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-order {
    display: block;
    position: static;
    transform: none;
    top: auto;
    left: auto;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 40px;
    color: inherit !important;
    font-size: 12px;
    text-align: left
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-detail {
    display: block !important;
    position: static;
    transform: none;
    visibility: visible !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    text-align: left
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-detail .ep-name {
    display: block !important;
    position: static;
    transform: none;
    visibility: visible !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: inherit !important;
    font-size: 12px;
    line-height: 1.3;
    opacity: 1 !important;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: static;
    width: 24px;
    height: 100%;
    margin: 0
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-btn .btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .clearfix {
    display: none
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list.active {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
    padding: 10px
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    text-align: center
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item .ssli-order {
    line-height: 40px;
    text-align: center
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item .ssli-detail,
body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item .ssli-btn {
    display: none !important
}

body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item .ssli-detail {
    display: none !important
}

@media(max-width:600px) {
    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list {
        max-height: 320px;
        padding: 8px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item {
        grid-template-columns: 22px minmax(0, 1fr) 22px;
        height: 42px;
        padding: 0 8px
    }

    body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item .ssli-order {
        line-height: 42px
    }
}

/* Aniwave filter page */
body.aniwave-filter #main-wrapper.aniwave-filter-page {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 26px clamp(16px, 2vw, 32px) 64px;
    background: #0d0d0d
}

body.aniwave-filter .aniwave-filter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(322px, 22vw, 380px);
    gap: clamp(20px, 1.8vw, 32px);
    width: 100%;
    max-width: none;
    margin: 0 auto
}

body.aniwave-filter .aniwave-filter-main {
    min-width: 0
}

body.aniwave-filter .aniwave-filter-heading h1 {
    margin: 0 0 14px;
    color: #e8e8e8;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.35
}

body.aniwave-filter .aniwave-filter-heading h1 span {
    font-weight: 400
}

body.aniwave-filter #filter-block {
    margin: 0 0 22px
}

body.aniwave-filter #filter-block>#toggle-filter {
    display: none !important
}

body.aniwave-filter #filter-block #cate-filter {
    display: block !important;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent
}

body.aniwave-filter #filter-block .category_filter-content {
    padding: 0;
    background: transparent
}

body.aniwave-filter #filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 10px
}

body.aniwave-filter #filter-form .aniwave-filter-keyword {
    order: -2;
    flex: 1 1 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #292929;
    border-radius: 5px;
    outline: 0;
    background: #1c1c1c;
    color: #eee;
    font-family: inherit;
    font-size: 13px
}

body.aniwave-filter #filter-form .aniwave-filter-keyword:focus {
    border-color: #444;
    box-shadow: none
}

body.aniwave-filter #filter-form .cfc-min-block {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0
}

body.aniwave-filter #filter-form .cfc-min-block>.ni-head {
    display: none
}

body.aniwave-filter #filter-form .cmb-item {
    min-width: 0;
    margin: 0;
    padding: 0
}

body.aniwave-filter #filter-form .cmb-item>.ni-head {
    margin: 0 0 5px;
    color: #929292;
    font-size: 11px;
    font-weight: 400
}

body.aniwave-filter #filter-form .cmb-item .nl-item,
body.aniwave-filter #filter-form .cmb-item .nli-select {
    width: 100%;
    margin: 0
}

body.aniwave-filter #filter-form .cmb-item select {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    background: #202020;
    color: #c9d2df;
    font-size: 12px
}

body.aniwave-filter #filter-form .cmb-date .nl-item {
    gap: 4px !important
}

body.aniwave-filter #filter-form .cfc-genre {
    flex: 1 1 100%;
    margin: 0;
    padding: 12px;
    border-radius: 5px;
    background: #171717
}

body.aniwave-filter #filter-form .cfc-genre>.ni-head {
    margin: 0 0 9px;
    color: #ddd;
    font-size: 13px
}

body.aniwave-filter #filter-form .cfc-genre .ni-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

body.aniwave-filter #filter-form .cfc-genre .btn-filter-item {
    margin: 0;
    padding: 5px 9px;
    border: 0;
    border-radius: 4px;
    background: #242424;
    color: #aaa;
    font-size: 11px
}

body.aniwave-filter #filter-form .cfc-genre .btn-filter-item.active {
    background: #60309a;
    color: #fff
}

body.aniwave-filter #filter-form .cfc-button {
    flex: 1 1 100%;
    margin: 0 !important
}

body.aniwave-filter #filter-form .cfc-button .btn {
    min-width: 112px;
    padding: 9px 16px;
    border: 0;
    border-radius: 5px;
    background: #60309a;
    color: #fff;
    font-size: 13px
}

body.aniwave-filter .aniwave-filter-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px
}

body.aniwave-filter .aniwave-filter-results-heading h2 {
    min-width: 0;
    margin: 0;
    color: #e7e7e7;
    font-size: 21px;
    font-weight: 500;
    overflow-wrap: anywhere
}

body.aniwave-filter .aniwave-filter-results-heading>span {
    flex: none;
    color: #777;
    font-size: 11px
}

body.aniwave-filter .aniwave-filter-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px
}

body.aniwave-filter .aniwave-filter-sidebar {
    min-width: 0;
    padding-top: 2px
}

body.aniwave-filter .aniwave-filter-sidebar>h2 {
    margin: 0;
    color: #eee;
    font-size: 23px;
    font-weight: 500
}

body.aniwave-filter .aniwave-filter-sidebar>p {
    margin: 2px 0 12px;
    color: #777;
    font-size: 11px
}

body.aniwave-filter .aniwave-filter-top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none
}

body.aniwave-filter .aniwave-filter-top-list>li {
    display: flex;
    align-items: center;
    min-height: 90px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #1c1c1c;
    overflow: hidden
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-poster {
    flex: 0 0 72px;
    width: 72px;
    height: 90px;
    margin: 0;
    border-radius: 0;
    background: #242424
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-detail {
    flex: 1;
    min-width: 0;
    padding: 8px 12px
}

body.aniwave-filter .aniwave-filter-top-list .film-name {
    display: -webkit-box;
    max-height: 42px;
    margin: 0 0 4px;
    overflow: hidden;
    color: #d7dce5;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.aniwave-filter .aniwave-filter-top-list .film-name a {
    color: inherit
}

body.aniwave-filter .aniwave-filter-top-list .fd-infor {
    margin: 0 !important;
    color: #777;
    font-size: 11px
}

body.aniwave-filter .aniwave-filter-top-list .aniwave-sidebar-meta {
    display: flex;
    align-items: center;
    gap: 6px
}

body.aniwave-filter .aniwave-filter-top-list .aniwave-sidebar-meta .rating {
    color: #d2a106
}

body.aniwave-filter .aniwave-filter-top-list .aniwave-sidebar-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #777
}

body.aniwave-filter .aniwave-filter-top-list>.clearfix,
body.aniwave-filter .aniwave-filter-top-list .dropdown {
    display: none !important
}

body.aniwave-filter .aniwave-filter-empty {
    padding: 30px 12px;
    border-radius: 5px;
    background: #181818;
    color: #888;
    text-align: center
}

body.aniwave-filter .aniwave-filter-main .pagination .page-link {
    border: 0;
    border-radius: 4px;
    background: #202020;
    color: #aaa
}

body.aniwave-filter .aniwave-filter-main .pagination .active .page-link {
    background: #60309a;
    color: #fff
}

@media(max-width:1100px) {
    body.aniwave-filter .aniwave-filter-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 18px
    }

    body.aniwave-filter .aniwave-filter-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    body.aniwave-filter #filter-form .cfc-min-block {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:780px) {
    body.aniwave-filter #main-wrapper.aniwave-filter-page {
        padding: 18px 10px 40px
    }

    body.aniwave-filter .aniwave-filter-layout {
        grid-template-columns: minmax(0, 1fr)
    }

    body.aniwave-filter .aniwave-filter-sidebar {
        grid-row: 1
    }

    body.aniwave-filter .aniwave-filter-top-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px
    }

    body.aniwave-filter .aniwave-filter-top-list>li {
        min-height: 70px
    }

    body.aniwave-filter .aniwave-filter-top-list>li>.film-poster {
        flex-basis: 55px;
        width: 55px;
        height: 70px
    }

    body.aniwave-filter .aniwave-filter-top-list>li>.film-detail {
        padding: 6px 8px
    }

    body.aniwave-filter .aniwave-filter-top-list .film-name {
        font-size: 11px
    }

    body.aniwave-filter .aniwave-filter-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 12px
    }

    body.aniwave-filter #filter-form .cfc-min-block {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:480px) {
    body.aniwave-filter .aniwave-filter-heading h1 {
        font-size: 19px
    }

    body.aniwave-filter .aniwave-filter-heading h1 span {
        display: block
    }

    body.aniwave-filter .aniwave-filter-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    body.aniwave-filter #filter-form .cfc-min-block {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    body.aniwave-filter #filter-form .cfc-date {
        grid-column: span 2
    }

    body.aniwave-filter .aniwave-filter-top-list {
        grid-template-columns: 1fr
    }
}

/* Keep filter sidebar rows compact like the Aniwave home/watch lists. */
body.aniwave-filter .aniwave-filter-top-list>li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    margin: 0;
    padding: 0 8px 0 0;
    overflow: hidden
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-poster {
    position: relative !important;
    inset: auto !important;
    display: block;
    flex: 0 0 70px !important;
    width: 70px !important;
    min-width: 70px;
    height: 90px !important;
    min-height: 90px;
    max-height: 90px !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: #292929
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-poster .film-poster-img {
    position: static !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-detail {
    position: static !important;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 6px 8px 6px 12px
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-detail .film-name {
    width: 100%;
    max-height: 36px;
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.35
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-detail .fd-infor {
    width: 100%;
    margin: 0 !important
}

body.aniwave-filter .aniwave-filter-top-list>li>.film-fav,
body.aniwave-filter .aniwave-filter-top-list>li>.dropdown,
body.aniwave-filter .aniwave-filter-top-list>li>.clearfix {
    display: none !important
}

@media(max-width:780px) {
    body.aniwave-filter .aniwave-filter-top-list>li {
        height: 76px !important;
        min-height: 76px !important;
        max-height: 76px !important
    }

    body.aniwave-filter .aniwave-filter-top-list>li>.film-poster {
        flex-basis: 58px !important;
        width: 58px !important;
        min-width: 58px;
        height: 76px !important;
        min-height: 76px;
        max-height: 76px !important
    }
}

/* Compact Aniwave filter controls matching the home/search field style. */
body.aniwave-filter #filter-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center
}

body.aniwave-filter #filter-form>.aniwave-filter-keyword {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: #1d1d1d;
    color: #e5e5e5;
    font-size: 12px
}

body.aniwave-filter #filter-form>.cfc-min-block {
    display: contents
}

body.aniwave-filter #filter-form>.cfc-min-block>.ni-head,
body.aniwave-filter #filter-form .cmb-item>.ni-head,
body.aniwave-filter #filter-form .cmb-item>.clearfix,
body.aniwave-filter #filter-form>.clearfix {
    display: none !important
}

body.aniwave-filter #filter-form .cmb-item {
    min-width: 0;
    margin: 0;
    padding: 0
}

body.aniwave-filter #filter-form .cmb-item .nl-item,
body.aniwave-filter #filter-form .cmb-item .nli-select {
    display: block;
    width: 100%;
    margin: 0
}

body.aniwave-filter #filter-form .cmb-item select {
    display: block;
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: #1d1d1d;
    color: #737b88;
    font-size: 12px;
    line-height: 32px
}

body.aniwave-filter #filter-form .cmb-type {
    grid-column: 6;
    grid-row: 1
}

body.aniwave-filter #filter-form .aniwave-filter-genre {
    grid-column: 2;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="country[]"]) {
    grid-column: 3;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="season"]) {
    grid-column: 4;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="year[]"]) {
    grid-column: 5;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-status {
    grid-column: 1;
    grid-row: 2
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="language"]) {
    grid-column: 2;
    grid-row: 2
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="rating"]) {
    grid-column: 3;
    grid-row: 2
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="sort"]) {
    grid-column: 4;
    grid-row: 2
}

body.aniwave-filter #filter-form .cmb-item:has(select[name="score"]),
body.aniwave-filter #filter-form .cmb-date {
    display: none !important
}

body.aniwave-filter #filter-form>.cfc-button {
    grid-column: 5;
    grid-row: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0 !important
}

body.aniwave-filter #filter-form>.cfc-button .btn {
    height: 32px;
    min-width: 70px;
    padding: 0 12px;
    border-radius: 5px;
    background: #60309a;
    color: #fff;
    font-size: 12px;
    line-height: 32px
}

body.aniwave-filter #filter-form>.cfc-button .clearfix {
    display: none
}

@media(max-width:900px) {
    body.aniwave-filter #filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px 12px
    }

    body.aniwave-filter #filter-form>.aniwave-filter-keyword {
        grid-column: 1;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .aniwave-filter-genre {
        grid-column: 2;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="country[]"]) {
        grid-column: 3;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="season"]) {
        grid-column: 1;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="year[]"]) {
        grid-column: 2;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-type {
        grid-column: 3;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-status {
        grid-column: 1;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="language"]) {
        grid-column: 2;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="rating"]) {
        grid-column: 3;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="sort"]) {
        grid-column: 1;
        grid-row: 4
    }

    body.aniwave-filter #filter-form>.cfc-button {
        grid-column: 2;
        grid-row: 4
    }
}

@media(max-width:480px) {
    body.aniwave-filter #filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px
    }

    body.aniwave-filter #filter-form>.aniwave-filter-keyword {
        grid-column: 1;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .aniwave-filter-genre {
        grid-column: 2;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="country[]"]) {
        grid-column: 1;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="season"]) {
        grid-column: 2;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="year[]"]) {
        grid-column: 1;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-type {
        grid-column: 2;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-status {
        grid-column: 1;
        grid-row: 4
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="language"]) {
        grid-column: 2;
        grid-row: 4
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="rating"]) {
        grid-column: 1;
        grid-row: 5
    }

    body.aniwave-filter #filter-form .cmb-item:has(select[name="sort"]) {
        grid-column: 2;
        grid-row: 5
    }

    body.aniwave-filter #filter-form>.cfc-button {
        grid-column: 1;
        grid-row: 6
    }
}

/* Aniwave checkbox dropdowns for multi-select filter values. */
body.aniwave-filter #filter-form .aniwave-filter-dropdown {
    position: relative;
    width: 100%;
    z-index: 4
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown.is-open {
    z-index: 30
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: #1d1d1d;
    color: #737b88;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle i {
    margin-left: 8px;
    color: #858585;
    font-size: 10px;
    transition: transform .15s ease
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown.is-open .aniwave-filter-dropdown-toggle i {
    transform: rotate(180deg)
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: min(600px, calc(100vw - 32px));
    max-height: min(420px, 65vh);
    padding: 8px 10px;
    overflow: auto;
    border-radius: 4px;
    background: #1d1d1d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55)
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown.is-open .aniwave-filter-dropdown-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px 10px
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu label {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 21px;
    margin: 0;
    padding: 1px 3px;
    color: #8c929d;
    font-size: 11px;
    line-height: 1.3;
    cursor: pointer
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu label:hover {
    color: #eee
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu input {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 0 5px 0 0;
    accent-color: #60309a
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.aniwave-filter #filter-form .aniwave-filter-type-dropdown .aniwave-filter-dropdown-menu {
    right: 0;
    left: auto;
    width: 160px
}

body.aniwave-filter #filter-form .aniwave-filter-type-dropdown.is-open .aniwave-filter-dropdown-menu {
    grid-template-columns: 1fr
}

body.aniwave-filter #filter-form .aniwave-filter-genre {
    grid-column: 2;
    grid-row: 1
}

@media(max-width:900px) {
    body.aniwave-filter #filter-form .aniwave-filter-genre {
        grid-column: 2;
        grid-row: 1
    }
}

@media(max-width:480px) {
    body.aniwave-filter #filter-form .aniwave-filter-genre {
        grid-column: 2;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }
}

/* All filter selectors use the same checkbox-menu control. */
body.aniwave-filter #filter-form .cmb-country {
    grid-column: 3;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-season {
    grid-column: 4;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-year {
    grid-column: 5;
    grid-row: 1
}

body.aniwave-filter #filter-form .cmb-language {
    grid-column: 2;
    grid-row: 2
}

body.aniwave-filter #filter-form .cmb-rating {
    grid-column: 3;
    grid-row: 2
}

body.aniwave-filter #filter-form .cmb-sort {
    grid-column: 4;
    grid-row: 2
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu input[type="radio"] {
    appearance: none;
    border: 1px solid #646464;
    border-radius: 2px;
    background: #292929
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu input[type="radio"]:checked {
    border-color: #60309a;
    background: #60309a;
    box-shadow: inset 0 0 0 3px #1d1d1d
}

@media(max-width:900px) {
    body.aniwave-filter #filter-form .cmb-country {
        grid-column: 3;
        grid-row: 1
    }

    body.aniwave-filter #filter-form .cmb-season {
        grid-column: 1;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-year {
        grid-column: 2;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-language {
        grid-column: 2;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-rating {
        grid-column: 3;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-sort {
        grid-column: 1;
        grid-row: 4
    }
}

@media(max-width:480px) {
    body.aniwave-filter #filter-form .cmb-country {
        grid-column: 1;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-season {
        grid-column: 2;
        grid-row: 2
    }

    body.aniwave-filter #filter-form .cmb-year {
        grid-column: 1;
        grid-row: 3
    }

    body.aniwave-filter #filter-form .cmb-language {
        grid-column: 2;
        grid-row: 4
    }

    body.aniwave-filter #filter-form .cmb-rating {
        grid-column: 1;
        grid-row: 5
    }

    body.aniwave-filter #filter-form .cmb-sort {
        grid-column: 2;
        grid-row: 5
    }
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu {
    width: 240px
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown.is-open .aniwave-filter-dropdown-menu {
    grid-template-columns: 1fr
}

body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown .aniwave-filter-dropdown-menu {
    width: min(600px, calc(100vw - 32px))
}

body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown.is-open .aniwave-filter-dropdown-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

/* Keep long option lists readable without an inner scroll area. */
body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown .aniwave-filter-dropdown-menu,
body.aniwave-filter #filter-form .aniwave-filter-year-dropdown .aniwave-filter-dropdown-menu {
    max-height: none;
    overflow: visible
}

body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown.is-open .aniwave-filter-dropdown-menu,
body.aniwave-filter #filter-form .aniwave-filter-year-dropdown.is-open .aniwave-filter-dropdown-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

body.aniwave-filter #filter-form .aniwave-filter-year-dropdown .aniwave-filter-dropdown-menu {
    width: min(360px, calc(100vw - 32px))
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

body.aniwave-filter #filter-form .cmb-sort .aniwave-filter-dropdown-toggle {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px
}

@media(max-width:480px) {

    body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown.is-open .aniwave-filter-dropdown-menu,
    body.aniwave-filter #filter-form .aniwave-filter-year-dropdown.is-open .aniwave-filter-dropdown-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important
    }
}

/* On mobile, show filter controls and results before the top-rated sidebar. */
@media(max-width:780px) {
    body.aniwave-filter .aniwave-filter-sidebar {
        grid-row: 2 !important
    }
}

@media(max-width:480px) {
    body.aniwave-filter #filter-form>.cfc-button {
        grid-column: 1/-1 !important;
        width: 100% !important
    }

    body.aniwave-filter #filter-form>.cfc-button .btn {
        display: flex !important;
        justify-content: center;
        width: 100% !important
    }

    body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown .aniwave-filter-dropdown-menu,
    body.aniwave-filter #filter-form .aniwave-filter-year-dropdown .aniwave-filter-dropdown-menu {
        left: 50% !important;
        right: auto !important;
        width: calc(100vw - 20px) !important;
        transform: translateX(-50%);
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important
    }
}

/* Remove the legacy filter panel inset only on the Aniwave filter page. */
body.aniwave-filter #filter-block.category_filter,
body.aniwave-filter #filter-block .category_filter,
body.aniwave-filter #filter-block .category_filter-content,
body.aniwave-filter #filter-block .no-content-block {
    padding: 0 !important
}

/* Aniwave filter fields: flat surfaces, no focus/hover outlines. */
body.aniwave-filter #filter-form .aniwave-filter-keyword,
body.aniwave-filter #filter-form .cmb-item select,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-filter #filter-form .aniwave-filter-keyword:hover,
body.aniwave-filter #filter-form .aniwave-filter-keyword:focus,
body.aniwave-filter #filter-form .cmb-item select:hover,
body.aniwave-filter #filter-form .cmb-item select:focus,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle:hover,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle:focus,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle[aria-expanded="true"] {
    background-color: #1c1c1c !important;
    color: #c9d2df
}

/* Remove legacy .cmb-item outlines (the visible boxes around each filter). */
body.aniwave-filter #filter-form .cmb-item {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle,
body.aniwave-filter #filter-form .aniwave-filter-keyword,
body.aniwave-filter #filter-form .cmb-item select {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle:hover,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle:focus,
body.aniwave-filter #filter-form .aniwave-filter-dropdown-toggle[aria-expanded="true"],
body.aniwave-filter #filter-form .aniwave-filter-keyword:hover,
body.aniwave-filter #filter-form .aniwave-filter-keyword:focus,
body.aniwave-filter #filter-form .cmb-item select:hover,
body.aniwave-filter #filter-form .cmb-item select:focus {
    background: #1c1c1c !important;
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-filter #filter-form>.cfc-button .btn {
    background: #5a2e98 !important;
    color: #fff !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important
}

body.aniwave-filter #filter-form>.cfc-button .btn i {
    margin-right: 5px
}

/* Single-column dropdowns should match their trigger field width. */
body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu {
    width: 100% !important
}

body.aniwave-filter #filter-form .aniwave-filter-type-dropdown .aniwave-filter-dropdown-menu {
    width: 100% !important
}

body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown .aniwave-filter-dropdown-menu {
    width: min(600px, calc(100vw - 32px)) !important
}

body.aniwave-filter #filter-form .aniwave-filter-year-dropdown .aniwave-filter-dropdown-menu {
    width: min(360px, calc(100vw - 32px)) !important
}

/* Reflect chosen values in each Aniwave filter trigger. */
body.aniwave-filter #filter-form .aniwave-filter-dropdown-label {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu input[type="checkbox"] {
    accent-color: #8751d5
}

body.aniwave-filter #filter-form .aniwave-filter-dropdown-menu label:has(input:checked) {
    color: #b57cff
}

/* The open Aniwave menu uses one centered close icon in place of the hamburger. */
body.aniwave-home #mobile_menu.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important
}

body.aniwave-home #mobile_menu.active .aniwave-menu-icon,
body.aniwave-home #mobile_menu.active i {
    display: none !important
}

body.aniwave-home #mobile_menu.active:after {
    content: "\00d7" !important;
    display: block !important;
    margin: 0 !important;
    color: #eee !important;
    font: 400 34px/1 Arial, sans-serif !important
}

@media(max-width:480px) {
    body.aniwave-filter #filter-form>.cfc-button {
        grid-column: 1/-1 !important;
        width: 100% !important
    }

    body.aniwave-filter #filter-form>.cfc-button .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        text-align: center !important
    }

    body.aniwave-filter #filter-form>.cfc-button .btn i {
        display: inline-block !important;
        margin: 0 !important;
        line-height: 1 !important
    }

    body.aniwave-filter #filter-form>.cfc-button .btn strong {
        display: inline-block !important;
        margin: 0 !important
    }

    body.aniwave-filter #filter-form .aniwave-filter-genre-dropdown.is-open .aniwave-filter-dropdown-menu {
        position: fixed !important;
        top: var(--aniwave-dropdown-top, 150px) !important;
        left: 10px !important;
        right: auto !important;
        box-sizing: border-box !important;
        width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
        max-height: 70vh !important;
        overflow: auto !important;
        transform: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important
    }

    body.aniwave-filter #filter-form .aniwave-filter-year-dropdown.is-open .aniwave-filter-dropdown-menu {
        left: 10px !important;
        right: auto !important;
        box-sizing: border-box !important;
        width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
        max-height: 70vh !important;
        overflow: auto !important;
        transform: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important
    }
}

/* Restore the collaboration shortcuts in Aniwave's header with its purple accent. */
body.aniwave-home .header-setting .hs-toggles .hst-item {
    min-width: 0 !important;
    height: auto !important
}

body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"],
body.aniwave-home .header-setting .hs-toggles>a[href*="/random"],
body.aniwave-home .header-setting .hs-toggles>a[href*="/news"],
body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 6px;
    background: #242424;
    color: #ddd !important;
    text-decoration: none
}

body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"]:hover,
body.aniwave-home .header-setting .hs-toggles>a[href*="/random"]:hover,
body.aniwave-home .header-setting .hs-toggles>a[href*="/news"]:hover,
body.aniwave-home .header-setting .hs-toggles>a[href*="/community"]:hover {
    background: #30223c;
    color: #fff !important
}

body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .hst-icon,
body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .hst-icon,
body.aniwave-home .header-setting .hs-toggles>a[href*="/news"] .hst-icon,
body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .hst-icon {
    display: flex;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #a16ae5;
    font-size: 16px
}

body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .name,
body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .name,
body.aniwave-home .header-setting .hs-toggles>a[href*="/news"] .name,
body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .name {
    display: block;
    color: inherit;
    font-size: 12px;
    line-height: 1
}

@media(min-width:781px) {
    body.aniwave-home .aniwave-menu-categories .aniwave-menu-mobile-only {
        display: none !important;
    }
}

@media(max-width:780px) {

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] {
        display: none !important;
    }

    body.aniwave-home #sidebar_menu {
        width: 132px !important;
        background: #171717 !important;
    }

    body.aniwave-home #sidebar_menu.is-genre-open {
        width: calc(100vw - 20px) !important;
        background: #0d0d0d !important;
    }

    body.aniwave-home #sidebar_menu.is-types-open {
        width: min(260px, calc(100vw - 20px)) !important;
        background: #0d0d0d !important;
    }

    body.aniwave-home .aniwave-menu-layout {
        grid-template-columns: 132px !important;
        min-height: 0 !important;
    }

    body.aniwave-home .aniwave-menu-layout.is-genre-open {
        grid-template-columns: 132px minmax(0, 1fr) !important;
    }

    body.aniwave-home .aniwave-menu-layout.is-types-open {
        grid-template-columns: 132px minmax(0, 1fr) !important;
    }

    body.aniwave-home .aniwave-menu-categories {
        width: 132px !important;
        min-width: 132px !important;
        padding: 4px 0 6px !important;
    }

    body.aniwave-home .aniwave-menu-categories a,
    body.aniwave-home .aniwave-menu-categories button {
        min-height: 32px !important;
        padding: 0 12px !important;
        font-size: 11.5px !important;
    }
}

@media(max-width:780px) {

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .name {
        display: none !important
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .hst-icon,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .hst-icon,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .hst-icon {
        width: auto !important;
        height: auto !important;
        font-size: 13px !important
    }
}

@media(min-width:781px) {
    body.aniwave-home .header-setting .hs-toggles {
        align-items: center !important;
        gap: 8px !important
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 11px !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #242424 !important;
        color: #d4d4d4 !important;
        white-space: nowrap
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"]:hover,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"]:hover,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"]:hover,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"]:hover {
        background: #30223c !important;
        color: #fff !important
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .hst-icon,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .hst-icon,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"] .hst-icon,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .hst-icon {
        display: flex !important;
        flex: 0 0 16px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: #a16ae5 !important;
        font-size: 14px !important;
        line-height: 1
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/news"] .name,
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] .name {
        display: block !important;
        margin: 0 !important;
        color: inherit !important;
        font-size: 12px !important;
        line-height: 1 !important
    }

    body.aniwave-home .header-setting .hs-toggles>.hst-item:has(.select-anime-name) {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 7px !important;
        border-radius: 6px !important;
    }

    body.aniwave-home .header-setting .hs-toggles>.hst-item:has(.select-anime-name) .select-anime-name {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important
    }
}

body.aniwave-home .aniwave-watch2gether-icon {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    color: #a16ae5 !important
}

/* Prevent inherited/responsive icon sizing from the shared theme header. */
body.aniwave-home .header-setting .hs-toggles .hst-item .hst-icon {
    font-size: inherit !important
}

body.aniwave-home .header-setting .hs-toggles .hst-item .hst-icon i {
    font-size: inherit !important
}

body.aniwave-home #header,
body.aniwave-home #header.header-home {
    background-color: #1c1c1c !important;
    background-image: none !important
}

/* Tablet/laptop viewport: let the feed use the full central width instead of
   squeezing it beside the fixed-width Top Anime rail. */
@media(min-width:781px) and (max-width:1100px) {
    body.aniwave-home .aniwave-home-container {
        width: 100% !important;
        max-width: none !important;
        padding-right: 16px !important;
        padding-left: 16px !important
    }

    body.aniwave-home .aniwave-home-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px
    }

    body.aniwave-home .aniwave-home-main,
    body.aniwave-home .aniwave-home-sidebar {
        grid-column: 1;
        grid-row: auto
    }

    body.aniwave-home .aniwave-home-cards {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px 14px
    }

    body.aniwave-home .aniwave-home-share .sbb-social {
        flex-wrap: wrap
    }

    body.aniwave-home .aniwave-home-share .st-btn {
        flex: 1 1 100px;
        min-width: 0
    }

    body.aniwave-home .aniwave-home-sidebar .hianime-top10-widget .anif-block-chart>ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px
    }
}

@media(min-width:781px) {
    body.aniwave-home #mobile_search {
        display: none !important;
    }
}

@media(max-width:780px) {
    body.aniwave-home #mobile_search {
        position: absolute !important;
        top: 50% !important;
        right: 7px !important;
        left: auto !important;
        z-index: 1000203 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #ddd !important;
        font-size: 18px !important;
        cursor: pointer !important;
        transform: translateY(-50%) !important;
    }

    body.aniwave-home #mobile_search.active {
        color: #a983d8 !important;
    }

    body.aniwave-home #header #search:not(.is-mobile-open) {
        display: none !important;
    }

    body.aniwave-home #header #search {
        position: absolute !important;
        top: 60px !important;
        right: 12px !important;
        left: 12px !important;
        z-index: 1000202 !important;
        display: block !important;
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.aniwave-home #header #search .search-content {
        width: 100% !important;
    }

    body.aniwave-home #header #search form {
        width: 100% !important;
        height: 42px !important;
        overflow: hidden !important;
        background: #171717 !important;
    }

    body.aniwave-home #header #search form .search-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 40px !important;
        padding: 0 !important;
        color: #ddd !important;
    }

    body.aniwave-home #header #search .search-input,
    body.aniwave-home #header #search .aniwave-header-search-input {
        display: none !important
    }

    body.aniwave-home #header #search:not(.is-mobile-open) .aniwave-header-search-clear,
    body.aniwave-home #header #search:not(.is-mobile-open) .aniwave-search-shortcut {
        display: none !important;
        pointer-events: none !important
    }

    body.aniwave-home #header #search:not(.is-mobile-open) .aniwave-header-search-suggest,
    body.aniwave-home #header #search:not(.is-mobile-open) .search-result-pop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important
    }

    body.aniwave-home #header #search.is-mobile-open {
        top: 60px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important
    }

    body.aniwave-home #header #search.is-mobile-open .search-content {
        width: 100% !important
    }

    body.aniwave-home #header #search.is-mobile-open form {
        width: 100% !important;
        height: 42px !important;
        overflow: hidden !important;
        border: 1px solid #353535 !important;
        border-radius: 6px !important;
        background: #171717 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .4) !important
    }

    body.aniwave-home #header #search.is-mobile-open .search-input,
    body.aniwave-home #header #search.is-mobile-open .aniwave-header-search-input {
        position: static !important;
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 52px 0 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #eee !important;
        font-size: 14px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: none !important
    }

    body.aniwave-home #header #search.is-mobile-open form.has-query .aniwave-header-search-clear {
        display: block !important;
        height: 40px !important;
        right: 8px !important;
        z-index: 3 !important
    }

    body.aniwave-home #header .header-setting {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        order: 2 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: right !important;
        margin: 0 auto !important
    }

    body.aniwave-home #header .header-setting .hs-toggles {
        justify-content: center !important
    }

    body.aniwave-home #header #header_right {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        order: 3 !important;
        margin: 0 36px 0 0 !important
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 28px !important;
        padding: 0 9px !important;
        border-radius: 5px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        white-space: nowrap !important
    }

    body.aniwave-home #user-slot .header_right-user .btn i {
        display: none !important
    }

    body.aniwave-home #header #search.is-mobile-open .aniwave-header-search-suggest {
        position: absolute !important;
        top: 42px !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1000202 !important;
        width: auto !important;
        max-width: none !important;
        max-height: 0 !important;
        overflow-y: auto !important;
        border: 1px solid #353535 !important;
        border-radius: 0 0 6px 6px !important;
        background: #1d1d1d !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .48) !important
    }

    body.aniwave-home #header #search.is-mobile-open .search-result-pop {
        position: absolute !important;
        top: 42px !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1000202 !important;
        width: auto !important;
        max-width: none !important;
        max-height: min(65vh, 480px) !important;
        overflow-y: auto !important;
        border: 1px solid #353535 !important;
        border-radius: 0 0 6px 6px !important;
        background: #1d1d1d !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .48) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.aniwave-home #header #search.is-mobile-open .aniwave-header-search-suggest.is-open {
        max-height: min(65vh, 480px) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        visibility: visible !important
    }

    body.aniwave-home #header #search .aniwave-header-search-suggest:not(.is-open) {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important
    }
}

@media(max-width:400px) {
    body.aniwave-home #logo {
        flex: 0 0 74px !important;
        width: 74px !important;
        margin-left: 29px !important
    }

    body.aniwave-home #logo img {
        max-width: 74px !important
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 19px !important
    }

    body.aniwave-home .header-setting .hs-toggles {
        gap: 3px !important
    }

    body.aniwave-home .header-setting .hs-toggles>a[href*="watch2gather"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/random"],
    body.aniwave-home .header-setting .hs-toggles>a[href*="/community"] {
        width: 24px !important;
        min-width: 24px !important;
        height: 26px !important;
        min-height: 26px !important
    }

    body.aniwave-home #header #header_right {
        margin: 0 34px 0 4px !important
    }

    body.aniwave-home #user-slot .header_right-user .btn {
        height: 26px !important;
        padding: 0 7px !important;
        font-size: 10px !important
    }
}

/* Ensure Aniwave logo wordmark is never clipped or overlapped */
body.aniwave-home #logo {
    display: inline-flex !important;
    align-items: center !important;
    min-width: max-content !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    margin-left: 52px !important
}

body.aniwave-home #logo .aniwave-header-wordmark {
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    letter-spacing: -1px !important;
    font-size: 26px !important;
    line-height: 1 !important
}

body.aniwave-home #logo img {
    max-width: none !important;
    object-fit: contain !important
}

@media (max-width:780px) {
    body.aniwave-home #logo {
        margin-left: 42px !important
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 22px !important
    }
}

@media (max-width:480px) {
    body.aniwave-home #logo {
        margin-left: 38px !important
    }

    body.aniwave-home #logo .aniwave-header-wordmark {
        font-size: 20px !important
    }
}

/* Watch Page Sidebar & Footer Overlay Fix — Align Sidebar to Top beside Player */
@media (min-width: 1101px) {
    body.aniwave-watch #main-wrapper {
        position: relative !important;
    }

    body.aniwave-watch #main-sidebar {
        position: absolute !important;
        top: 18px !important;
        right: 15px !important;
        width: 300px !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    body.aniwave-watch .aniwave-watch-popular,
    body.aniwave-watch #main-sidebar .aniwave-watch-popular,
    body.aniwave-watch section.aniwave-watch-popular {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-top: 24px !important;
    }
}

@media (max-width: 1100px) {
    body.aniwave-watch #main-sidebar {
        position: relative !important;
        float: none !important;
        width: 100% !important;
        margin-top: 30px !important;
    }
}

.layout-page-watchtv .container,
#main-wrapper .container {
    display: block !important;
}

.layout-page-watchtv .container::after,
#main-wrapper .container::after,
#main-wrapper::after,
.layout-page-watchtv::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

#footer {
    clear: both !important;
    position: relative !important;
    z-index: 20 !important;
    margin-top: 40px !important;
}

/* Scroll To Top (#totop) Button Fix — Always on top of cards & sidebars */
#totop,
div#totop {
    position: fixed !important;
    bottom: 30px !important;
    right: 25px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    opacity: 0.9 !important;
}

#totop:not(.active) {
    display: none !important;
}

#totop.active {
    display: flex !important;
}

#totop:hover {
    opacity: 1 !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.7) !important;
}

#totop i {
    color: #111111 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

body.aniwave-home .aniwave-sidebar-community .zr-connect {
    background: #1c1c1c !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 7px !important;
    padding: 16px !important;
    margin-top: 24px !important;
}

body.aniwave-home .aniwave-sidebar-community .heading-news {
    color: #f2f2f2 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 14px !important;
}

body.aniwave-home .aniwave-sidebar-community .connecting-list .item {
    background: #232323 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    transition: background-color .18s ease !important;
}

body.aniwave-home .aniwave-sidebar-community .connecting-list .item:hover {
    background: #282828 !important;
}

body.aniwave-home .aniwave-sidebar-community .connecting-list .item .item-name a {
    color: #e4e6eb !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

body.aniwave-home .aniwave-sidebar-community .connecting-list .item .item-name a:hover {
    color: var(--accent-color, #a978ee) !important;
}

body.aniwave-home .aniwave-sidebar-community .connecting-list .item .subject {
    color: #888899 !important;
    font-size: 12px !important;
    margin: 4px 0 8px !important;
}

/* Aniwave Episode List & Filler Styling */
.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler .ssli-filler,
.detail-seasons .ssl-item.ssl-item-filler .ssli-filler,
.ssl-item.ssl-item-filler .ssli-filler {
    display: none !important;
}

.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler,
.detail-seasons .ssl-item.ssl-item-filler,
.ssl-item.ssl-item-filler {
    background: #5d381e !important;
    border: 1px solid rgba(246, 173, 85, 0.45) !important;
}

.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler:after,
.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler:before,
.detail-seasons .ssl-item.ssl-item-filler:after,
.detail-seasons .ssl-item.ssl-item-filler:before,
.ssl-item.ssl-item-filler:after,
.ssl-item.ssl-item-filler:before {
    display: none !important;
    content: none !important;
}

.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler .ssli-order,
.detail-seasons .ssl-item.ssl-item-filler .ssli-order,
.ssl-item.ssl-item-filler .ssli-order {
    color: #fbd38d !important;
}

.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler:hover,
.detail-seasons .ssl-item.ssl-item-filler:hover,
.ssl-item.ssl-item-filler:hover {
    background: #7a4825 !important;
    border-color: #f6ad55 !important;
}

.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler.active,
.detail-seasons .ssl-item.ssl-item-filler.active,
.ssl-item.ssl-item-filler.active {
    background: #60309a !important;
    border-color: #60309a !important;
}

.detail-seasons.aniwave-episode-ui .ss-list .ssl-item.ssl-item-filler.active .ssli-order,
.detail-seasons .ssl-item.ssl-item-filler.active .ssli-order,
.ssl-item.ssl-item-filler.active .ssli-order {
    color: #fff !important;
}

body.aniwave-watch #episodes-content .aniwave-episode-ui .ss-list .ssl-item.ep-filter-hidden,
body.aniwave-watch #episodes-content.aniwave-grid-mode .aniwave-episode-ui .ss-list .ssl-item.ep-filter-hidden,
#episodes-content .ssl-item.ep-filter-hidden,
#detail-ss-list .ssl-item.ep-filter-hidden,
.ssl-item.ep-filter-hidden {
    display: none !important;
}

body.aniwave-watch #episodes-content .aniwave-episode-ui #detail-ss-list[data-ep-filter="sub"] .ssl-item:not([data-has-sub="1"]),
body.aniwave-watch #episodes-content .aniwave-episode-ui #detail-ss-list[data-ep-filter="dub"] .ssl-item:not([data-has-dub="1"]),
#detail-ss-list[data-ep-filter="sub"] .ssl-item:not([data-has-sub="1"]),
#detail-ss-list[data-ep-filter="dub"] .ssl-item:not([data-has-dub="1"]) {
    display: none !important;
}

/* Mobile-only Share Buttons: non-squashed circular icons (Desktop remains untouched like v3) */
@media (max-width: 780px) {

    body.aniwave-home .aniwave-home-share-panel {
        margin: 0 0 14px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
    }

    body.aniwave-home #slider {
        margin-bottom: 14px !important;
    }

    body.aniwave-home .aniwave-home-share,
    body.aniwave-home .aniwave-home-share .share-buttons-block {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    body.aniwave-home .aniwave-home-share .sbb-title {
        margin: 0 0 6px !important;
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    body.aniwave-home .aniwave-home-notes {
        margin-top: 6px !important;
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    body.aniwave-home .aniwave-home-notes p {
        margin: 0 !important;
    }

    body.aniwave-home .aniwave-home-share .sbb-social,
    body.aniwave-watch .share-buttons.share-buttons-detail .sbb-social {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.aniwave-home .aniwave-home-share .st-btn:not([data-network='native']),
    body.aniwave-watch .share-buttons.share-buttons-detail .st-btn,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-btn:not([data-network='native']) {
        display: inline-flex !important;
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    body.aniwave-home .aniwave-home-share .st-btn>svg,
    body.aniwave-watch .share-buttons.share-buttons-detail .st-btn>svg {
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
    }

    html,
    body,
    #wrapper,
    #main-wrapper {
        max-width: 100% !important;
        overflow-x: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    body.aniwave-watch .player-controls {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 5px 8px !important;
        gap: 5px !important;
    }

    body.aniwave-watch .player-controls .pc-left,
    body.aniwave-watch .player-controls .pc-right {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    body.aniwave-watch .player-controls .pc-left::-webkit-scrollbar,
    body.aniwave-watch .player-controls .pc-right::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    body.aniwave-watch .player-controls .pc-left {
        gap: 10px !important;
        padding: 1px 0 !important;
    }

    body.aniwave-watch .player-controls .pc-right {
        gap: 6px !important;
        margin: 0 !important;
        padding-top: 5px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    body.aniwave-watch .player-controls .pc-left .pc-item,
    body.aniwave-watch .player-controls .pc-right .pc-item {
        margin: 0 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    body.aniwave-watch .player-controls .pc-right .pc-item .btn {
        padding: 3px 4px !important;
        font-size: 10.5px !important;
        gap: 3px !important;
        white-space: nowrap !important;
    }

    body.aniwave-watch .player-controls .pc-right .pc-item .btn i,
    body.aniwave-watch .player-controls .pc-right .pc-item .btn .mr-1,
    body.aniwave-watch .player-controls .pc-right .pc-item .btn .mr-2,
    body.aniwave-watch .player-controls .pc-right .pc-item .btn .ml-2 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    #wrapper::-webkit-scrollbar,
    #main-wrapper::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Mobile Watch Page balanced padding & no horizontal overflow */
@media (max-width: 1100px) {
    body.aniwave-watch #ani_detail {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        float: none !important;
    }

    body.aniwave-watch #main-wrapper>.container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    body.aniwave-watch .anis-watch-wrap,
    body.aniwave-watch .anis-watch,
    body.aniwave-watch .anis-watch-tv,
    body.aniwave-watch .watch-player,
    body.aniwave-watch .anis-watch-detail,
    body.aniwave-watch #episodes-content,
    body.aniwave-watch .player-servers,
    body.aniwave-watch .share-buttons,
    body.aniwave-watch #comment-block {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    body.aniwave-watch #main-sidebar {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px auto 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.aniwave-watch #main-sidebar .block_area,
    body.aniwave-watch #main-sidebar .block_area_sidebar,
    body.aniwave-watch #main-sidebar .cbox,
    body.aniwave-watch #main-sidebar .anif-block-ul,
    body.aniwave-watch #main-sidebar .anif-block-ul>ul,
    body.aniwave-watch #main-sidebar .anif-block-ul li {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Community Board Mobile Polish (Filter Bar & Create Post button) */
@media (max-width: 767px) {
    .new-connect .nc-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
        padding: 0 !important;
    }

    .new-connect .nc-head .is-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        float: none !important;
    }

    .new-connect .nc-head .is-right {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        margin-left: auto !important;
    }

    .new-connect .nc-head .zcate,
    .new-connect .nc-head .zsort {
        margin: 0 !important;
    }

    .new-connect .nc-head .zcate .btn,
    .new-connect .nc-head .zsort .btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 11px !important;
        border-radius: 8px !important;
        background: #1c1c22 !important;
        border: 1px solid #2e2e38 !important;
        color: #e5e5e5 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .new-connect .nc-head .zcate .btn i,
    .new-connect .nc-head .zsort .btn i {
        margin: 0 !important;
        font-size: 11px !important;
    }

    .new-connect .nc-head #btn-create-post {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #60309a !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(96, 48, 154, 0.4) !important;
    }

    .new-connect .nc-head #btn-create-post i {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }

    .new-connect .nc-head #btn-create-post span {
        display: none !important;
    }
}