@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    font-family: Kanit, sans-serif;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    box-shadow: none;
    font-family: Kanit, sans-serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    word-break: break-word;
}
.scroll-hint {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: space-between;
    position: fixed;
    right: 50%;
    top: 0;
    transform: translateX(50%)
}

@media (min-width: 768px) {
    .scroll-hint {
        display:none
    }
}

.scroll-hint.hidden {
    display: none;
    opacity: 0;
    transition: opacity .5s linear;
    -webkit-transition: opacity .5s linear;
    -moz-transition: opacity .5s linear;
    -o-transition: opacity .5s linear;
    -ms-transition: opacity .5s linear
}

.scroll-hint .bounce-animation {
    animation: move 2s infinite
}

@keyframes move {
    0%,to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

.rash .header-episode__link {
    display: none;
}

main {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-bottom: 56px;
    padding-top: 0
}

.header-episode.active {
    display: block;
    position: fixed;
    width: 100%;
    z-index: 1
}

.pagination.active {
    transform: translateY(0);
    background: #131313;
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 100;
    transition: opacity .3s, transform .2s ease;
    will-change: transform;
}


.header-episode {
    background: #131313;
    color: #fafafa;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: opacity .3s;
    opacity: 1;

}

.comics_container {
    margin: auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 16px;
}

.header-episode-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    height: 58px;
}

.header-episode-info {
    flex: 1;
    text-align: left;
    margin-left: 8px;
    line-height: 0;
}

.header-episode__link {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    margin-right: 8px
}

.header-episode-content {
    line-height: 0;
}

.header-episode__title {
    overflow: hidden;
    color: #fafafa;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: .16px;
    margin-bottom: 2px;
}

.header-episode__title-number {
    color: #fafafa;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    letter-spacing: .12px;
}

.header-episode__logo {
    display: flex;
    height: 40px;
    width: auto
}

@media (min-width: 768px) {
    .header-episode__logo {
        margin-right:10px
    }
}

.header-episode-esc-inapp {
    align-items: center;
    background: #ffdb26;
    display: flex;
    height: 40px;
    justify-content: end;
    left: 0;
    padding: 0 10px;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%
}

.header-episode-esc-inapp div {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: space-between
}

.header-episode-esc-inapp span {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-align: left
}

.header-episode-esc-inapp span b {
    font-weight: 700
}

.header-episode-esc-inapp img.logo {
    height: 28px;
    width: auto
}

.header-episode-esc-inapp img.dot {
    height: auto;
    width: 15px
}

.header-episode-esc-inapp img.arr {
    height: 36px;
    width: auto
}

.header-episode-esc-inapp+.header-episode.active {
    top: 40px
}

.single {
    margin-bottom: 60px;
}

.single-inner {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    margin: auto;
    background-color: #fff;
    padding-top: 60px;
}

.single .single__item img {
    display: block;
    height: 100%;
    margin: 0 auto;
    max-width: 600px;
    width: 100%
}

.episode-bottom {
    padding-top: 24px;
    padding-bottom: 84px;
}

.episode-bottom .next-episode {
    background: #c7ffc7;
    border-radius: 4px;
    border: 1px solid #131313;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.episode-bottom .next-episode:active,.episode-bottom .next-episode:focus {
    box-shadow: none
}

.episode-bottom .next-episode-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}


.episode-bottom .next-episode__img {

    border-radius: 4px;
    border: 1px solid #131313;
    width: 93px;
    height: 64px;
    overflow: hidden;
}

.episode-bottom .next-episode__img img {
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
    width: 100%
}


.episode-bottom .next-episode__content .desc {
    color: #131313;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: .18px;
}

@media (min-width: 567px) {
    .episode-bottom .next-episode__content .desc {
        font-size:24px;
        line-height: 32px
    }
}

.episode-bottom .next-episode .btn {
    background: #80ff00;
    border-radius: 4px;
    border: 1px solid #131313;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 22px 7px;
}

.episode-bottom__logo {
    display: block;
    filter: grayscale(.9) contrast(.01);
    height: 40px;
    margin: 0 auto 8px;
    text-align: center
}

.episode-bottom__logo img {
    height: 40px;
    width: auto
}

.episode-bottom__desc {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    margin-bottom: 0;
    text-align: center
}

.pagination-list {
    align-items: center;
    display: flex;
    justify-content: space-between
}

.pagination-list__item {
    align-items: center;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none
}

.pagination-list__item.disabled {
    color: #8c877e
}

.pagination-list__item.disabled svg path {
    fill: #8c877e
}

.pagination-list__item svg path {
    fill: #fff
}

.pagination-list__item-center svg,.pagination-list__item-prev svg {
    margin-right: 8px
}

.pagination-list__item-next svg {
    margin-left: 8px
}

.pagination-logo {
    margin-top: 8px;
    text-align: center
}

.pagination-logo img {
    filter: grayscale(.9) contrast(.5);
    height: 30px;
    width: auto
}

.footer-controls {
    display: flex;
    justify-content: space-between;
}

.footer-controls .button {
    border: 1px solid #fafafa;
    display: flex;
    background-color: transparent;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    text-decoration: none;
    color: #fafafa;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: .56px;
    text-transform: uppercase;
}

.button[disabled] {
    opacity: .5;
}

@keyframes swipe-hand-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes swipe-fade-in {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes swipe-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.88);
    }
}

.swipe-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    animation: swipe-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.swipe-overlay.is-leaving {
    animation: swipe-fade-out 0.2s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.swipe-overlay[hidden] {
    display: none;
}

.swipe-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    max-width: 150px;
    padding: 20px 33px 18px;

    border-radius: 8px;
    background: rgba(19, 19, 19, 0.9);

    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.swipe-card__arrow {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    height: 118px;
}

.swipe-card__hand {
    position: absolute;
    top: 70px;
    right: 20px;

    width: 50px;
    height: 50px;

    animation: swipe-hand-float 1.3s ease-in-out infinite;
}

.swipe-card__hand svg {
    display: block;
}

.swipe-card__label {
    color: #fafafa;
    text-align: center;

    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.56px;
    text-transform: uppercase;
}