/* AnimeH pure-PHP helpers */
.ah-ad-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ah-ad-popup-box {
    position: relative;
    max-width: 520px;
    width: 100%;
}
.ah-ad-popup-box img,
.ah-ad-catfish img {
    width: 100%;
    display: block;
    border-radius: 4px;
}
.ah-ad-close {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}
.ah-ad-catfish {
    position: fixed;
    z-index: 99990;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 94vw);
}
.ah-tvc {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #000;
}
.ah-tvc video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ah-tvc-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.ah-tvc button {
    position: absolute;
    right: 14px;
    bottom: 42px;
    z-index: 3;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}
#video-player {
    position: relative;
    background: #000;
    min-height: 210px;
    width: 100%;
}
#video-player iframe,
#video-player video {
    width: 100%;
    height: 100%;
    min-height: 210px;
    border: 0;
    display: block;
}
@media (min-width: 700px) {
    #video-player,
    #video-player iframe,
    #video-player video {
        min-height: 480px;
    }
}
#result {
    margin-top: 30px;
    background-color: #333;
    list-style-type: none;
    width: 100%;
    position: absolute;
    top: 32px;
    z-index: 100;
    padding: 0;
    max-height: 420px;
    overflow-y: auto;
}
#result a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px solid #222;
}
#result a:hover {
    background: #1f1f1f;
}
#result img {
    width: 40px;
    height: 56px;
    object-fit: cover;
    background: #111;
}
.streaming-server.bg-green {
    background: #2e7d32 !important;
}
.ah-pagination a {
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
}
.ah-pagination a.current {
    color: #fff !important;
}
.list-item-episode a.active {
    background: #55928c;
    color: #fff;
}
.logo img,
.logo span {
    max-width: 50px;
    height: auto;
    vertical-align: middle;
}
