/*
Theme Name:   AnimeStream Child
Theme URI:    https://themesia.com/animestream-wordpress-theme
Author:       Themesia
Author URI:   https://themesia.com
Description:  Anikoto-style child theme for AnimeStream.
Template:     animestream
Version:      2.0.0
Tags:         dark, anime, two-columns, right-sidebar
Text Domain:  animestream-child
*/

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES  (match anikoto colour palette)
═══════════════════════════════════════════════════════════ */
:root {
    --color-bg: #0b1622;
    --color-bg2: #111927;
    --color-secondary: #142030;
    --color-secondary1: #20334d;
    --color-border: #1a2a3e;
    --color-primary: #26A3D6;
    --color-text: #a0b1c5;
    --color-gray: #515f75;
    --color-gray2: #8097b2;
    --color-white: #fff;
    --color-sub: #0c70de;
    --color-dub: #1f7a47;
    --color-card-bg: #0f1923;
    --font-main: 'Inter', 'Roboto', -apple-system, sans-serif;
    --radius: 6px;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESETS / BASE
═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.home {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   HOME BODY WRAPPER  (wraps the two-column area)
═══════════════════════════════════════════════════════════ */
.asc-home-body {
    margin-top: 0;
    padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT — aside-wrapper  (main + sidebar columns)
═══════════════════════════════════════════════════════════ */
.aside-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px 0 30px;
}

aside.main {
    min-width: 0;
    flex: 1 1 0;
}

aside.sidebar {
    flex: 0 0 300px;
    width: 300px;
}

@media (max-width: 991px) {
    .aside-wrapper {
        flex-direction: column;
    }

    aside.sidebar {
        width: 100%;
        flex: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEAD  (.head  / .head.with-tabs)
═══════════════════════════════════════════════════════════ */
.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
    gap: 8px;
}

.head .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
    position: relative;
    padding-left: 10px;
}

.head .title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

.head .end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   SPOTLIGHT SLIDER  (.hotest  /  #hotest  swiper)
═══════════════════════════════════════════════════════════ */
.hotest.container {
    padding-bottom: 0;
    margin-bottom: 0;
}

#hotest {
    /* Swiper container essentials (replaces .swiper-container class) */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: var(--radius);
}

#hotest .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}


#hotest .swiper-slide.item {
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

@media (max-width: 767px) {
    #hotest .swiper-slide.item {
        min-height: 250px;
    }
}

/* image side */
#hotest .image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#hotest .image>div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform .6s ease;
}

#hotest .swiper-slide.item:hover .image>div {
    transform: scale(1.03);
}

/* gradient overlay */
#hotest .image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(11, 22, 34, .97) 0%,
            rgba(11, 22, 34, .85) 35%,
            rgba(11, 22, 34, .35) 65%,
            rgba(11, 22, 34, .05) 100%);
    z-index: 1;
}

/* info / text side */
#hotest .info {
    position: relative;
    z-index: 2;
    padding: 40px 40px 50px;
    max-width: 55%;
}

@media (max-width: 767px) {
    #hotest .info {
        max-width: 90%;
        padding: 24px 20px 36px;
    }
}

#hotest .title {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#hotest .meta.icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

#hotest .meta.icons i {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .1);
    color: #c8d6e5;
    border: 1px solid rgba(255, 255, 255, .12);
}

#hotest .meta.icons i.rating {
    background: var(--color-secondary1);
}

#hotest .meta.icons i.quality {
    background: #1c4f8a;
    color: #7fd7f7;
    border-color: #2279c3;
}

#hotest .meta.icons i.dub {
    background: #1a3a2a;
    color: #5cb85c;
    border-color: #198754;
}

#hotest .meta.icons i.sub {
    background: #1a3a5c;
    color: #7cb9ff;
    border-color: #0d6efd;
}

#hotest .meta.icons i.date {
    background: rgba(255, 255, 255, .07);
}

#hotest .synopsis {
    color: var(--color-gray2);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#hotest .actions {
    display: flex;
    gap: 10px;
}

#hotest .btn.play {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    transition: background .2s, transform .15s;
}

#hotest .btn.play:hover {
    background: #1e8bbf;
    transform: translateY(-1px);
}

/* no-banner fallback */
.asc-no-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111827 0%, #1e2a3a 100%);
}

/* swiper pagination */
#hotest .swiper-pagination {
    bottom: 14px;
}

#hotest .swiper-pagination-bullet {
    background: rgba(255, 255, 255, .35);
    opacity: 1;
    width: 7px;
    height: 7px;
    transition: background .2s, width .2s;
}

#hotest .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 22px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   LATEST EPISODE  (#recent-update)
═══════════════════════════════════════════════════════════ */
#recent-update {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

/* Tab strip */
.text-tabs.asc-latest-tabs,
.asc-latest-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.asc-latest-tabs .tab {
    cursor: pointer;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray2);
    background: transparent;
    transition: color .2s, background .2s;
    user-select: none;
    line-height: 1.8;
    white-space: nowrap;
}

.asc-latest-tabs .tab:hover {
    color: var(--color-white);
}

.asc-latest-tabs .tab.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Tab panels */
.asc-tab-panel {
    display: none;
}

.asc-tab-panel.active {
    display: block;
}

/* Paging arrows */
.paging {
    display: flex;
    align-items: center;
    gap: 4px;
}

.paging span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--color-secondary1);
    color: var(--color-text);
    cursor: pointer;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.paging span:hover:not(.disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

.paging span.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.paging.bottom {
    justify-content: center;
    margin-top: 12px;
}

/* Anime items grid  (.ani.items) */
#recent-update .body {
    margin-top: 4px;
}

.ani.items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px 10px;
}

@media (max-width: 1199px) {
    .ani.items {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) {
    .ani.items {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .ani.items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 479px) {
    .ani.items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Anime poster card  (.item) */
.ani.items .item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ani.items .ani.poster {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--color-card-bg);
}

.ani.items .ani.poster a {
    display: block;
    width: 100%;
    height: 100%;
}

.ani.items .ani.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.ani.items .ani.poster:hover img {
    transform: scale(1.04);
}

/* overlay meta (badges) */
.ani.items .meta {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    padding: 18px 6px 5px;
}

.ani.items .meta .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
}

.ani.items .meta .left {
    display: flex;
    gap: 3px;
}

.ani.items .meta .right {
    color: var(--color-gray2);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── Episode badges  (.ep-status.sub / .ep-status.dub) ─────────────
   HTML:  <span class="ep-status sub"><span>12</span></span>
   FA icon is added via CSS ::before — no icon in the markup.
   Colors exactly match anikotu (extracted from home.php tooltip).
─────────────────────────────────────────────────────────────────── */
.ep-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

/* SUB pill — CC icon + episode count  [#1a3a5c / #0d6efd / #7cb9ff] */
.ep-status.sub {
    background: #1a3a5c;
    border: 1px solid #0d6efd;
    color: #7cb9ff;
}

/* DUB pill — mic icon + episode count  [#1a3a2a / #198754 / #5cb85c] */
.ep-status.dub {
    background: #1a3a2a;
    border: 1px solid #198754;
    color: #5cb85c;
}

/* Font Awesome icon injected before the number */
.ep-status::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    display: inline-block;
}

.ep-status.sub::before {
    content: '\f20a';
}

/* fa-closed-captioning */
.ep-status.dub::before {
    content: '\f130';
}

/* fa-microphone */

/* The inner <span> holds the count number */
.ep-status>span {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* anime title below the poster */
.ani.items .info {
    padding: 0 2px;
}

.ani.items .info .name,
.ani.items .info a.name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}

.ani.items .info .name:hover,
.ani.items .info a.name:hover {
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════
   TOP TABLES  (.top-tables)
   — New Release / Newly Added / Just Completed
═══════════════════════════════════════════════════════════ */
.top-tables {
    margin-bottom: 16px;
}

.top-tables .head {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.top-tables .head>.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.top-tables .head>.tabs .tab {
    cursor: pointer;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray2);
    transition: color .2s, background .2s;
    user-select: none;
    line-height: 1.8;
}

.top-tables .head>.tabs .tab:hover {
    color: var(--color-white);
}

.top-tables .head>.tabs .tab.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.top-tables .body {
    background: var(--color-bg2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 4px 0;
}

/* inner section head (e.g. "New Release →") */
.top-table>.head {
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.top-table>.head .title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-white);
}

.top-table>.head .title::before {
    display: none;
}

.top-table>.head a {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
}

.top-table>.head a:hover {
    color: var(--color-primary);
}

/* scaffold items list */
.scaff.items {
    display: flex;
    flex-direction: column;
}

/* scaffold card  (a.item) */
.scaff.items a.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    transition: background .15s;
}

.scaff.items a.item:last-child {
    border-bottom: none;
}

.scaff.items a.item:hover {
    background: rgba(255, 255, 255, .03);
}

.scaff.items .poster {
    flex: 0 0 46px;
    width: 46px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-card-bg);
}

.scaff.items .poster span {
    display: block;
    width: 100%;
    height: 100%;
}

.scaff.items .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scaff.items .info {
    flex: 1 1 0;
    min-width: 0;
}

.scaff.items .name,
.scaff.items .name.d-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color .2s;
}

.scaff.items a.item:hover .name {
    color: var(--color-primary);
}

.scaff.items .meta.one-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 11px;
    color: var(--color-gray2);
}

.scaff.items .ep-wrap {
    display: inline-flex;
    gap: 3px;
    margin-right: 4px;
}

.scaff.items .dot+.dot::before {
    content: '·';
    margin: 0 4px;
    color: var(--color-gray);
}

/* ═══════════════════════════════════════════════════════════
   TOP ANIME SIDEBAR  (#top-anime)
═══════════════════════════════════════════════════════════ */
#top-anime {
    background: var(--color-bg2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

#top-anime .head {
    padding: 12px 14px 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}

#top-anime .head .title {
    font-size: 14px;
}

#top-anime .head .tabs {
    display: flex;
    gap: 4px;
}

#top-anime .head .tabs .tab {
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray2);
    transition: color .2s, background .2s;
    user-select: none;
    line-height: 1.8;
}

#top-anime .head .tabs .tab:hover {
    color: var(--color-white);
}

#top-anime .head .tabs .tab.active {
    background: var(--color-primary);
    color: var(--color-white);
}

#top-anime .body {
    padding: 4px 0;
}

/* rank cards  (.scaff.side.items) */
.scaff.side.items {
    display: flex;
    flex-direction: column;
}

.scaff.side.items a.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--color-border);
    transition: background .15s;
    position: relative;
}

.scaff.side.items a.item:last-child {
    border-bottom: none;
}

.scaff.side.items a.item:hover {
    background: rgba(255, 255, 255, .03);
}

/* numbered rank pseudo-element */
.scaff.side.items a.item .inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    counter-increment: rank-counter;
}

/* rank number */
.scaff.side.items a.item .rank {
    flex: 0 0 22px;
    font-size: 16px;
    font-weight: 900;
    color: var(--color-gray);
    text-align: center;
    line-height: 1;
    font-style: italic;
}

/* rank 1-3 gold/silver/bronze */
.scaff.side.items a.item.rank1 .rank {
    color: #f5a623;
}

.scaff.side.items a.item.rank2 .rank {
    color: #b0bec5;
}

.scaff.side.items a.item.rank3 .rank {
    color: #c87941;
}

/* We inject rank number via CSS counter trick (fallback: rank shown via PHP class) */
.scaff.side.items a.item.rank1 .rank::after {
    content: '1';
}

.scaff.side.items a.item.rank2 .rank::after {
    content: '2';
}

.scaff.side.items a.item.rank3 .rank::after {
    content: '3';
}

.scaff.side.items a.item.rank4 .rank::after {
    content: '4';
}

.scaff.side.items a.item.rank5 .rank::after {
    content: '5';
}

.scaff.side.items a.item.rank6 .rank::after {
    content: '6';
}

.scaff.side.items a.item.rank7 .rank::after {
    content: '7';
}

.scaff.side.items a.item.rank8 .rank::after {
    content: '8';
}

.scaff.side.items a.item.rank9 .rank::after {
    content: '9';
}

.scaff.side.items .poster {
    flex: 0 0 40px;
    width: 40px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-card-bg);
}

.scaff.side.items .poster span {
    display: block;
    width: 100%;
    height: 100%;
}

.scaff.side.items .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scaff.side.items .info {
    flex: 1 1 0;
    min-width: 0;
}

.scaff.side.items .name,
.scaff.side.items .name.d-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color .2s;
}

.scaff.side.items a.item:hover .name {
    color: var(--color-primary);
}

.scaff.side.items .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10px;
    color: var(--color-gray2);
}

.scaff.side.items .ep-wrap {
    display: inline-flex;
    gap: 3px;
}

/* ═══════════════════════════════════════════════════════════
   EP-WRAP DOT  separator in scaff .meta.one-line
═══════════════════════════════════════════════════════════ */
.meta.one-line .dot+.dot::before,
.meta .dot+.dot::before {
    content: '·';
    margin: 0 4px;
    color: var(--color-gray);
}

/* ═══════════════════════════════════════════════════════════
   TAB-CONTENT for top-anime  (generic .tabs[data-tabs] panels)
═══════════════════════════════════════════════════════════ */
.tab-content {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   GENERAL — ensure #recent-update doesn't clip
═══════════════════════════════════════════════════════════ */
#recent-update {
    z-index: 1;
}

#recent-update .asc-home-pagination {
    margin-top: 12px;
    margin-bottom: 2px;
}

/* Anikotu home polish */
body.home,
body.home.darkmode {
    background: #071426;
    color: #8ea9c4;
}

body.home .container {
    max-width: 1480px;
    width: calc(100% - 20px);
}

body.home .asc-home-body {
    padding-bottom: 26px;
}

body.home .aside-wrapper {
    gap: 16px;
    padding-top: 14px;
}

body.home aside.sidebar {
    flex: 0 0 360px;
    width: 360px;
}

body.home #hotest {
    border-radius: 12px;
    border: 1px solid #113458;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.home #hotest .swiper-slide.item {
    min-height: 420px;
}

body.home #hotest .image::after {
    background: linear-gradient(90deg, rgba(6, 22, 40, 0.98) 0%, rgba(6, 22, 40, 0.9) 33%, rgba(6, 22, 40, 0.45) 63%, rgba(6, 22, 40, 0.15) 100%);
}

body.home #hotest .title {
    font-size: 56px;
    letter-spacing: 0.01em;
    line-height: 1;
    max-width: 580px;
}

body.home #hotest .info {
    padding: 46px 40px 54px;
}

body.home #hotest .btn.play {
    background: #34b2e7;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.home #hotest .btn.play:hover {
    background: #2a9fd1;
}

body.home #recent-update .head,
body.home #top-anime .head,
body.home .top-tables > .head {
    border-bottom: 0;
    margin-bottom: 10px;
}

body.home #recent-update .title,
body.home #top-anime .title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-left: 0;
}

body.home #recent-update .title::before,
body.home #top-anime .title::before {
    display: none;
}

body.home .asc-latest-tabs .tab,
body.home #top-anime .tabs .tab,
body.home .top-tables .tabs .tab {
    background: transparent;
    color: #7e97b2;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
}

body.home .asc-latest-tabs .tab.active,
body.home #top-anime .tabs .tab.active,
body.home .top-tables .tabs .tab.active {
    color: #dff4ff;
    border-color: #1f7db8;
    background: #0f3252;
}

body.home #recent-update .ani.items {
    gap: 14px 12px;
}

body.home #recent-update .ani.items .item {
    gap: 8px;
}

body.home #recent-update .ani.items .ani.poster {
    border: 1px solid #113459;
    border-radius: 8px;
    background: #0a1f35;
}

body.home #recent-update .ani.items .meta {
    padding: 18px 6px 6px;
}

body.home #recent-update .ani.items .info .name,
body.home #recent-update .ani.items .info a.name {
    color: #d7e7f8;
    font-weight: 500;
}

body.home #recent-update .ani.items .info .name:hover,
body.home #recent-update .ani.items .info a.name:hover {
    color: #6bcaf3;
}

body.home #top-anime,
body.home .top-tables .body {
    background: transparent;
    border: 0;
}

body.home #top-anime .body,
body.home .top-tables .body {
    padding: 0;
}

body.home .scaff.side.items a.item,
body.home .scaff.items a.item {
    background: #0b2239;
    border: 1px solid #123554;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px 10px;
}

body.home .scaff.side.items a.item:last-child,
body.home .scaff.items a.item:last-child {
    margin-bottom: 0;
}

body.home .scaff.side.items a.item:hover,
body.home .scaff.items a.item:hover {
    background: #0e2944;
    border-color: #1a4d77;
}

body.home .scaff.side.items .rank {
    font-size: 56px;
    line-height: .85;
    min-width: 32px;
    opacity: .9;
}

body.home .scaff.side.items .name,
body.home .scaff.items .name {
    color: #d6e8fa;
}

body.home .scaff.side.items .meta,
body.home .scaff.items .meta.one-line {
    color: #7f98b4;
}

body.home .top-table > .head {
    padding: 8px 2px 8px;
    border-bottom: 0;
    margin-bottom: 4px;
}

body.home .top-table > .head .title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .01em;
}

body.home .top-table > .head a {
    color: #d9ebfc;
}

body.home .top-table > .head a:hover {
    color: #70cff5;
}

body.home .pagination.asc-home-pagination .page-numbers {
    background: #0f2f4d;
    color: #cfe7fb;
    border: 1px solid #174f7d;
}

body.home .pagination.asc-home-pagination .page-numbers.current {
    background: #2da6db !important;
    border-color: #2da6db;
    color: #fff;
}

body.home .footer-az {
    margin-top: 36px;
}

body.home .footer-az .az-list li a {
    background: #102d49;
    color: #d0e4f8 !important;
    border: 1px solid #1a4c77;
}

body.home .footer-az .az-list li a:hover {
    background: #1b4f7c;
}

@media (max-width: 1220px) {
    body.home aside.sidebar {
        flex: 0 0 320px;
        width: 320px;
    }

    body.home #recent-update .title,
    body.home #top-anime .title,
    body.home .top-table > .head .title {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    body.home .container {
        width: calc(100% - 14px);
    }

    body.home #hotest .swiper-slide.item {
        min-height: 300px;
    }

    body.home #hotest .title {
        font-size: 34px;
    }

    body.home aside.sidebar {
        width: 100%;
        flex: none;
    }
}

/* Requested anikotu parity */
body.home .searchx #form #s {
    background: #0f2338;
    border: 1px solid #1a3e63;
    color: #d7e8f8;
    border-radius: 8px;
    height: 42px;
    padding: 0 44px 0 14px;
}

body.home .searchx #form #submitsearch {
    height: 42px;
    width: 40px;
    right: 0;
    top: 0;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: #95b2cc;
}

body.home .searchx #form #submitsearch:hover {
    color: #d9efff;
}

body.home #recent-update .end {
    gap: 10px;
}

.asc-tab-pager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #89a6c1;
}

.asc-tab-pager button {
    width: 26px;
    height: 26px;
    border: 1px solid #214b72;
    background: #0f2c47;
    color: #cde5f7;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1;
}

.asc-tab-pager button.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.asc-tab-pager .page-indicator {
    font-size: 11px;
    color: #7f9ab6;
    min-width: 42px;
    text-align: center;
}

#recent-update.asc-loading .ani.items {
    opacity: .55;
    transition: opacity .18s ease;
}

body.home .ani.items {
    margin: 0 -10px;
    display: block;
}

body.home .ani.items:after {
    content: "";
    display: table;
    clear: both;
}

body.home .ani.items .item {
    padding: 0 10px;
    width: 16.6666666667%;
    float: left;
    margin-bottom: 20px;
}

body.home .ani.poster {
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

body.home .ani.poster > a {
    display: block;
    width: 100%;
    padding-bottom: 140%;
    position: relative;
    z-index: 3;
}

body.home .ani.poster > a img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    border-radius: 0 0 6px 6px;
}

body.home .ani.poster > a:before {
    content: "";
    background: rgba(11, 22, 34, .6);
    width: 100%;
    height: 100%;
    z-index: 4;
    position: absolute;
    opacity: 0;
    transition: all .4s;
}

body.home .ani.poster > a:after {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    content: "\f04b";
    font-family: "Font Awesome 6 Free";
    top: 50%;
    left: 50%;
    position: absolute;
    font-weight: 900;
    color: #fff;
    font-size: 2.6rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .3s;
}

body.home .ani.poster > a:hover:after,
body.home .ani.poster > a:hover:before {
    opacity: 1;
}

body.home .ani.items .item .poster .meta,
body.home .ani.items .item .ani.poster .meta {
    background: #19273b;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    z-index: 4;
    font-size: .86rem;
    font-weight: 600;
    color: #a0b1c5;
    padding: 0;
}

body.home .ani.items .item .poster .meta .inner,
body.home .ani.items .item .ani.poster .meta .inner {
    position: relative;
    padding: 0 5px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
}

body.home .ani.items .item .poster .meta .inner .left,
body.home .ani.items .item .ani.poster .meta .inner .left {
    display: flex;
    align-items: center;
}

body.home .ep-wrap {
    display: inline-flex;
}

body.home .ep-status {
    padding: 0 3px;
    position: relative;
    height: 1.29rem;
    line-height: 1.29rem;
    margin-right: 4px;
    display: inline-block;
    border-radius: 1.5px;
    vertical-align: 0;
}

body.home .ep-status > span {
    position: relative;
    z-index: 3;
    font-size: .9rem !important;
    line-height: inherit !important;
    font-weight: 600 !important;
}

body.home .ep-status > span:before {
    opacity: .8;
    font-family: "Font Awesome 6 Free";
    margin-right: 2px;
    font-weight: 900;
}

body.home .ep-status:before {
    position: absolute;
    left: -2.5px;
    top: 0;
    width: calc(100% + 5px);
    height: 1.29rem;
    content: "";
    transform: skewX(345deg);
    border-radius: 1.5px;
}

body.home .ep-status:first-child {
    padding-left: 4px;
}

body.home .ep-status.sub,
body.home .ep-status.sub > span,
body.home .ep-status.dub,
body.home .ep-status.dub > span {
    color: rgba(255, 255, 255, .84) !important;
}

body.home .ep-status.sub > span:before {
    content: "\f20a";
}

body.home .ep-status.sub:before {
    background: #0084b9;
}

body.home .ep-status.dub > span:before {
    content: "\f130";
}

body.home .ep-status.dub:before {
    background: #b1495c;
}

body.home .ani.items .item .info .name {
    margin-top: .9rem;
    color: #a0b1c5;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: .75rem;
    -webkit-line-clamp: 2;
    line-height: 1.4rem;
    max-height: 3rem;
    height: 3rem;
}

.asc-top-tables-desktop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.asc-top-tables-desktop .top-table-col .head {
    margin-bottom: 6px;
}

.asc-top-tables-desktop .top-table-col .title {
    font-size: 13px;
    text-transform: uppercase;
}

.asc-top-tables-mobile {
    display: none;
}

.asc-top-tables-desktop .scaff.items a.item,
.asc-top-tables-mobile .scaff.items a.item {
    background: #10253c;
    border: 1px solid #173f63;
    border-radius: 6px;
    margin-bottom: 10px;
}

.asc-top-tables-desktop .scaff.items .meta.one-line,
.asc-top-tables-mobile .scaff.items .meta.one-line {
    font-size: .82rem;
}

@media (max-width: 1199px) {
    body.home .ani.items .item {
        width: 20%;
    }
}

@media (max-width: 991px) {
    body.home .ani.items .item {
        width: 25%;
    }

    .asc-top-tables-desktop {
        display: none;
    }

    .asc-top-tables-mobile {
        display: block;
    }
}

@media (max-width: 767px) {
    body.home .ani.items .item {
        width: 33.333333%;
    }
}

@media (max-width: 520px) {
    body.home .ani.items .item {
        width: 50%;
    }
}

/* Tooltip style */
.tooltipster-sidetip .tooltipster-box {
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 5px;
    background: #19273b;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .3);
}

.tooltipster-sidetip .tooltipster-content {
    padding: 20px;
    color: #a0b1c5;
}

.tooltipster-sidetip .tooltipster-content .title,
.qtip-content .iftitle {
    color: #28a6d9;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tooltipster-sidetip .tooltipster-content .synopsis,
.qtip-content .ingdesc .contexcerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.45rem;
    max-height: 4.35rem;
    overflow: hidden;
    margin-bottom: 10px;
}

.tooltipster-sidetip .tooltipster-content .actions .watch {
    height: 2.6rem;
    line-height: 2.6rem;
    background: #a0b1c5;
    border-radius: 5px;
    font-weight: 600;
    color: #222;
    transition: all .3s;
}

.tooltipster-sidetip .tooltipster-content .actions .watch:hover {
    background: #26a3d6;
    color: #eee;
}

/* Split spotlight */
#hotest .asc-slide-shell {
    display: flex;
    width: 100%;
    min-height: inherit;
    position: relative;
}

#hotest .asc-slide-shell .info {
    width: 41%;
    z-index: 3;
    padding: 44px 34px 46px;
    background: linear-gradient(90deg, rgba(8, 28, 47, .96) 0%, rgba(8, 28, 47, .9) 100%);
}

#hotest .asc-slide-shell .image {
    width: 59%;
    position: relative;
    z-index: 1;
}

#hotest .asc-slide-shell .image > div {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

#hotest .asc-slide-shell .image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 28, 47, .5) 0%, rgba(8, 28, 47, .1) 24%, rgba(8, 28, 47, .06) 100%);
}

@media (max-width: 860px) {
    #hotest .swiper-slide.item {
        min-height: 320px;
    }

    #hotest .asc-slide-shell {
        display: block;
    }

    #hotest .asc-slide-shell .image,
    #hotest .asc-slide-shell .info {
        width: 100%;
    }

    #hotest .asc-slide-shell .image {
        position: absolute;
        inset: 0;
    }

    #hotest .asc-slide-shell .image::after {
        background: linear-gradient(90deg, rgba(8, 28, 47, .85) 0%, rgba(8, 28, 47, .6) 42%, rgba(8, 28, 47, .3) 100%);
    }

    #hotest .asc-slide-shell .info {
        position: relative;
        z-index: 3;
        background: transparent;
        padding: 36px 24px 24px;
    }

    #hotest .title {
        font-size: 2.1rem;
        max-width: 85%;
    }

    #hotest .swiper-pagination {
        right: 10px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #hotest .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }

    #hotest .swiper-pagination-bullet-active {
        width: 9px;
        height: 9px;
    }
}


