/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Global scrollbar styles (Webkit) */
*::-webkit-scrollbar {
    width: 15px;
}
*::-webkit-scrollbar-track {
    background-color: #1c1c1c;
}
section#w-related .body::-webkit-scrollbar-track {
    background-color: #1c1c1c;
    border-radius: 5px;
}
*::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 10px;
    border: 5px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: #8a8a8a;
}
/* body, * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    cursor: default;
} */
body, * {
    user-select: auto;
    -webkit-user-select: auto;
    -ms-user-select: auto;
    -moz-user-select: auto;
    cursor: auto;
}
.body {
    overflow: hidden;
}
body, html {
    height: 100%;
}
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
#wrapper #body {
    flex-grow: 1;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 5rem;
    padding-bottom: 7rem;
}
@media screen and (max-width: 550px) {
    #wrapper #body {
        margin-top: 10px;
        margin-bottom: 10px;
        padding-top: 0rem;
        padding-bottom: 1rem;
    }
}
body {
    scrollbar-width: none;
}
body {
    margin: 0;
    font-family: Nunito,Archivo,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #aaa;
    text-align: left;
    background-color: #080808;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}
p {
    margin-top: 0;
    margin-bottom: .8rem;
}
header {
    width: 100%;
    z-index: 100000;
    transition: background .2s;
    margin-bottom: 10px;
}
header.fixed {
    background: #1c1c1c;
    margin-top: 0;
    position: fixed;
}
.container {
    max-width: 1800px;
    width: 100%;
    padding: 0px 25px;
    margin: 0 auto;
}
@media screen and (max-width: 550px) {
    .container {
        padding: 0px 10px;
    }
}
section {
    margin-bottom: 40px;
}
a {
    transition: color .3s,background .3s;
    cursor: pointer;
    text-decoration: none;
}
a:hover {
    color: #b083ef !important;
}
img {
    vertical-align: middle;
    border-style: none;
}

/* ad's style */
/* dont show banner ads */
#adds, [id="adds\ not_mobile"] {
    display: none !important;
}

[id="adds\ not_desktop"] {
    display: none;
}
@media screen and (max-width: 880px) {
    [id="adds\ not_mobile"] {
        display: none;
    }
    [id="adds\ not_desktop"] {
        display: block;
    }
}
@media screen and (max-width: 550px) {
    section#adds {
        margin-bottom: 40px !important;
    }
    section[id="adds\ not_desktop"] {
        margin-bottom: 40px !important;
    }
}
section .pizza.pizza-x {
    /* max-width: 800px; */
    /* width: calc(100% - 32px); */
    min-height: 90px;
}
section .pizza {
    margin: 0rem auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: #666;
    font-size: 16px;
    font-weight: 400;
    background-color: #121212;
}
/* dispay ads */
section #ads_html_iframe {
    /* display: none; */
}
/* dispay ads placeholder */
section .pizza.pizza-x {
    display: none;
}

/* alert bar home page */
.alert.notice {
    font-size: .8rem;
    color: #aaa;
}
.alert-secondary {
    color: #aaa;
    background-color: #121212;
    border-color: #121212;
}
.alert {
    position: relative;
    padding: .7rem 1.55rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 5px;
}

/* loading filler */
.skeleton {
    background-color: #1c1c1c;
    background-image: linear-gradient(to right, #101010 25%, #1b1b1b, #0e0e0e 75.63%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.skeleton_image_anime_card {
    width: 100%;
    padding-bottom: 140%;
}
.skeleton_title_anime_card {
    height: 3.75rem;
    max-height: 2.5rem;
    border-radius: 5px;
    margin-top: .9rem;
    margin-bottom: .75rem;
}
.skeleton_image_anime_card_small {
    width: 100%;
    height: 78px;
    animation: shimmer 4s infinite linear;
}
.skeleton_image_anime_card_top_table {
    width: 120%;
    height: 85px;
    border-radius: 5px;
    animation: shimmer 4s infinite linear;
    margin: -10px;
}
section.top-table .body .items .item.skeleton {
    background: transparent;
}
.skeleton_signin_and_user {
    height: 35px;
    width: 100%;
    border-radius: 5px;
}

/* Spotlight Skeletons */
.skeleton_title_spotlight {
    width: 70%;
    height: 2.8rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}
.skeleton_meta_description_spotlight {
    width: 90%;
    height: 5.5rem;
    margin-bottom: 1.2rem;
    border-radius: 5px;
}
.skeleton_button_spotlight {
    width: 160px;
    height: 2.5rem;
    border-radius: 8px;
}
.skeleton_image_spotlight {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* anime page Skeletons */
.skeleton-head-title {
    border-radius: 5px;
}
.skeleton.skeleton-episode-number {
    height: 1em;
    vertical-align: -3px;
    width: 10ch;
    display: inline-block;
    border-radius: 5px;
}
.skeleton-title-anime {
    height: 1.7rem;
    width: 44%;
    border-radius: 5px;
}
i.skeleton.skeleton-meta-icons {
    width: 25%;
    height: 1.5rem;
    display: block;
    margin-top: 0.5rem;
    border-radius: 5px;
}
.skeleton-description-text {
    width: 100%;
    height: 5rem;
    margin-top: 0.5rem;
    border-radius: 5px;
}
.meta.helper-class {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.skeleton-meta-item {
    height: 1.8em;
    width: 100%;
    border-radius: 5px;
}
/* user wathc list */
.skeleton-watch-list-poster {
    height: 130px;
    width: 100px;
    border-radius: 5px;
}
.skeleton-watch-list-detail {
    display: flex;
    width: 70%;
    flex-direction: column;
    align-self: center;
    gap: 5px;
}
.skeleton-watch-list-title {
    margin-left: 20px;
    height: 1.8em;
    width: 45%;
    border-radius: 5px;
}
.skeleton-watch-list-synopsis {
    margin-left: 20px;
    height: 1.8em;
    width: 100%;
    border-radius: 5px;
}
@media screen and (max-width: 435px) {
    .skeleton-watch-list-synopsis {
        width: 95%;
    }
}
@media screen and (max-width: 396px) {
    .skeleton-watch-list-synopsis {
        width: 90%;
    }
}

/* ShareThis Section */
.share_links.container {
    background-color: #121212; 
    border-radius: 5px; 
    padding: 5px 20px;
    margin-bottom: 40px;
}
.share_links_container {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 35px;
}
.share_links_container_ti {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.share_links_text p{
    margin: 0;
}
@media screen and (max-width: 550px) {
    .share_links.container {
        padding: 5px 5px 10px 10px;
    }
    .share_links_container {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .share_pika_gif {
        display: none;
    }
    .share_links_text {
        display: flex;
        flex-direction: row;
        font-size: 14px;
        gap: 5px;
    }
}

/* ani poster tooltipstered hover info */
.tooltipster-fade.tooltipster-show {
    opacity: 1;
}
.tooltipster-fade {
    opacity: 0;
    -webkit-transition-property: opacity;
    -moz-transition-property: opacity;
    -o-transition-property: opacity;
    -ms-transition-property: opacity;
    transition-property: opacity;
}
.tooltipster-base {
    display: flex;
    pointer-events: none;
    position: absolute;
    z-index: 99;
    max-width: 280px;
    width: 280px;
}
.tooltipster-sidetip .tooltipster-box {
    border: none;
    border-radius: 5px;
    background: #242424;
    border: 1px solid rgba(0,0,0,.15);
}
.tooltipster-box {
    flex: 1 1 auto;
}
.tooltipster-sidetip .tooltipster-content {
    font-size: 13px;
    padding: 20px;
    line-height: 18px;
    padding: 14px 14px;
}
.tooltipster-content {
    box-sizing: border-box;
    max-height: 100%;
    max-width: 100%;
    overflow: auto;
}
.tooltipster-sidetip .tooltipster-content .title {
    color: #8c5ece;
    font-size: 18px;
    line-height: 1.4rem;
    /* display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; */
    margin-bottom: 5px;
    font-weight: 500;
    margin-bottom: 10px;
}
.tooltipster-sidetip .tooltipster-content .meta {
    display: flex;
}
.tooltipster-sidetip .tooltipster-content .meta.icons {
    font-size: 12px;
    color: #aaa;
    opacity: 1;
}
.tooltipster-sidetip .tooltipster-content .meta.icons span.ratingg {
    background: #666;
    padding: 0 3px;
    position: relative;
    height: 1.2rem;
    line-height: 1.2rem;
    margin-right: 8px;
    display: inline-block;
    border-radius: 1.5px;
    vertical-align: 0;
}
.tooltipster-sidetip .tooltipster-content .meta.icons span.ratingg:before {
    background: #666;
    color: #bbb!important;
    position: absolute;
    position: absolute;
    left: 4.5px;
    top: 0;
    width: calc(96% + 0px);
    height: 1.2rem;
    content: "";
    border-radius: 1.5px;
}
.tooltipster-sidetip .tooltipster-content .meta.icons span.quality {
    padding: 0 3px;
    position: relative;
    height: 1.2rem;
    line-height: 1.2rem;
    margin-right: 8px;
    display: inline-block;
    border-radius: 1.5px;
    vertical-align: 0;
}
.tooltipster-sidetip .tooltipster-content .meta.icons span.quality:before {
    background: #666;
    color: #bbb!important;
    position: absolute;
    position: absolute;
    left: -2.5px;
    top: 0;
    width: calc(100% + 5px);
    height: 1.2rem;
    content: "";
    transform: skewX(345deg);
    border-radius: 1.5px;
}
.tooltipster-sidetip .tooltipster-content .meta.icons .ep .ep-status {
    padding: 0 3px;
    position: relative;
    height: 1.2rem;
    line-height: 1.2rem;
    margin-right: 5px;
    display: inline-block;
    border-radius: 1.5px;
    vertical-align: 0;
}
.tooltipster-sidetip .tooltipster-content .meta.icons .ep .ep-status.sub {
    background: #242424;
}
.tooltipster-sidetip .tooltipster-content .meta.icons .ep .ep-status:before {
    height: 1.2rem;
}
.tooltipster-sidetip .tooltipster-content .synopsis {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.1rem;
    max-height: 4.5rem;
    overflow: hidden;
    margin-bottom: 10px;
    margin-top: 10px;
}
.tooltipster-sidetip .tooltipster-content .meta-bl {
    margin-bottom: 10px;
}
.tooltipster-sidetip .tooltipster-content .meta-bl>div span:first-child {
    color: #777;
    margin-right: 5px;
}
.tooltipster-sidetip .tooltipster-content .actions {
    display: flex;
}
.tooltipster-sidetip .tooltipster-content .actions .watch {
    padding: .7rem 1rem;
    height: 100%;
    line-height: 1rem;
    flex-grow: 1;
    background: #aaa;
    border-radius: 5px;
    font-weight: 600;
    font-size: .9rem;
    color: #222;
    transition: all .3s;
}
.tooltipster-sidetip .tooltipster-content .actions .watch:hover {
    background: #5a2e98;
    color: #eee;
}
.tooltipster-sidetip .tooltipster-content .actions>a, .tooltipster-sidetip .tooltipster-content .actions>div {
    text-align: center;
    cursor: pointer;
}
.tooltipster-sidetip .tooltipster-content .actions>a+div {
    margin-left: 10px;
}
.tooltipster-sidetip .tooltipster-content .actions .favourite span {
    background: #aaa;
    border-radius: 50%;
    height: 2.3rem;
    width: 2.3rem;
    line-height: 1rem;
    display: block;
    color: #222;
    opacity: .5;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tooltipster-sidetip .tooltipster-content .actions .favourite span:hover {
    opacity: .9;
}
.tooltipster-sidetip .tooltipster-content .actions .favourite span i {
    font-size: 14px;
}
.tooltipster-sidetip .tooltipster-content .actions .favourite .dropdown-menu {
    border: 1px solid #303030;
    max-height: 480px;
    max-width: 160px;
}
.dropup .dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: .125rem;
}
.dropdown-menu-right-tooltip {
    right: 0;
    left: auto;
}
.tooltipster-sidetip .tooltipster-content .actions .favourite .dropdown-menu .dropdown-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-menu.dropdown-menu-right-tooltip.folders {
    position: absolute;
    bottom: 19%;
    right: 1%;
    z-index: 1000;
    display: none;
    float: right;
    height: fit-content;
    padding: .4rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #777;
    text-align: left;
    list-style: none;
    background-color: #242424;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 5px;
}
.dropdown-menu.dropdown-menu-right-tooltip.folders .dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-size: 14px;
    font-weight: 400;
    color: #848484;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}
.dropdown-menu.dropdown-menu-right-tooltip.folders .dropdown-item:hover {
    color: #adadad;
    text-decoration: none;
    background-color: #2e2e2e;
}
.dropdown-menu.dropdown-menu-right-tooltip.folders .dropdown-item.active, .dropdown-menu.dropdown-menu-right-tooltip.folders .dropdown-item:active {
    color: #a885da;
    text-decoration: none;
    background-color: #303030;
}
.dropdown-menu.dropdown-menu-right-tooltip.folders .dropdown-item .text-danger {
    color: #e74c3c;
}

/* toast notifications */
#toast-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    bottom: 2%;
    right: 1%;
    z-index: 9999;
}
.toast {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    margin-bottom: 0px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
    background: #39982e;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: fadeout 4s forwards;
}
.toast i {
    font-size: 14px;
}
.toast.error { 
    background: #c0392b; 
}
.toast.alert { 
    background: #dc8c32; 
}
@keyframes fadeout {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width: 768px) {
    .toast {
        width: 100%;
        max-width: 320px;
    }
}

/* ranks */
.user_rank {
    color: #fff;
    width: 110px;
    font-size: 12px;
    text-align: center;
    align-content: center;
    border-radius: 5px;
    border: 1.5px solid;
    margin: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}
/* Unranked */
#rank_0 {
    color: #666;
    border-color: #666;
}

/* Rookie */
#rank_1 {
    background: #444;
    border-color: #666;
}

/* Hero */
#rank_2 {
    background: #1e3a8a;
    border-color: #3b82f6;
}

/* Blade */
#rank_3 {
    background: #0a0a0a;
    border-color: #9cc3d5;
    color: transparent;
    position: relative;
    overflow: hidden;
}
#rank_3::after {
    content: "Blade";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6f1f5;
    z-index: 1;
    animation: glitchText 5s infinite;
    pointer-events: none;
}
@keyframes glitchText {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-2px, 0); }
    40% { transform: translate(2px, 2px); }
    50% { transform: translate(0, -2px); }
    60% { transform: translate(-1px, 1px); }
    70% { transform: translate(1px, 1px); }
    80% { transform: translate(-1px, -1px); }
    90% { transform: translate(2px, 0); }
    100% { transform: translate(0, 0); }
}

/* Spirit */
#rank_4 {
    background-image: url("/rank-back/rank-spirit.gif");
    border-color: #9777f8;
}

/* Nova */
#rank_5 {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.6) 0%, #002233 100%), url("/rank-back/rank-nova.gif");
    background-blend-mode: screen;
    background-size: cover;
    background-position: center;
    border-color: #0ff;
    box-shadow: 0 0 8px #0ff;
}

/* Phantom */
#rank_6 {
    background: #080808;
    border-color: #888;
    color: transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(200, 200, 255, 0.4), inset 0 0 5px rgba(255, 255, 255, 0.05);
}
#rank_6::before {
    content: "";
    position: absolute;
    width: 250%;
    height: 250%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(200, 200, 255, 0.1) 20%, transparent 80%);
    animation: phantomAura 4s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.4;
}
#rank_6::after {
    content: "Phantom";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    z-index: 1;
    animation: phantomFloat 2.8s ease-in-out infinite, phantomFlicker 4s ease-in-out infinite, phantomPulse 5s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(200,200,255,0.3), 0 0 18px rgba(200,200,255,0.2), 0 0 32px rgba(200,200,255,0.1);
}
@keyframes phantomFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.85;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}
@keyframes phantomFlicker {
    0%, 100% { filter: blur(0); }
    50% { filter: blur(0.5px); opacity: 0.65; }
}
@keyframes phantomPulse {
    0%, 100% {
        text-shadow:
        0 0 5px rgba(255,255,255,0.1),
        0 0 15px rgba(200,200,255,0.1),
        0 0 25px rgba(200,200,255,0.06);
    }
    50% {
        text-shadow:
        0 0 8px rgba(255,255,255,0.2),
        0 0 20px rgba(200,200,255,0.2),
        0 0 30px rgba(200,200,255,0.12);
    }
}
@keyframes phantomAura {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Dragon */
#rank_7 {
    background: url("/rank-back/rank-dragon.gif");
    font-weight: bold;
    color: #ff4d00;
    border-color: #a00000;
    text-shadow: 0 0 6px #ff0000, 0 0 12px #a00000;
    box-shadow: 0 0 8px #ff0000, inset 0 0 4px #a00000;
}

/* Master */
#rank_8 {
    background: url("/rank-back/rank-master.gif");
    border-color: #34d399;
    box-shadow: 0 0 8px #34d399, inset 0 0 4px #10b981;
    font-weight: bold;
    text-shadow: 0 0 6px #000, 0 0 12px #34d399, 0 0 18px #34d399;
    background-repeat: no-repeat;
    background-position: left;
    background-size: cover;
}

/* Mythic */
#rank_9 {
    position: relative;
    background: linear-gradient(135deg, #6a00f4, #ff00c8, #00e0ff);
    background: url("/rank-back/rank-mythic.gif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font-weight: bold;
    text-shadow: 0 0 6px #fff, 0 0 12px #ff00c8, 0 0 18px #00e0ff;
    box-shadow: 0 0 3px #fff, 0 0 6px #ff00c8, 0 0 10px #00e0ff;
    overflow: hidden;
    transition: transform 0.4s ease;
}