/* YaToon - Episode detail / Episode list / Bookmark */
.episode-ajax-loading {
    width: 100%;
    min-height: 420px;

    display: flex;
    flex-direction: column;

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

    gap: 12px;

    text-align: center;
}.episode-ajax-loading .webtoon-scroll-spinner {
    margin: 0;
}.episode-ajax-loading-text {
    color: #978d91;

    font-size: 13px;
    font-weight: 600;
}@media (max-width: 768px) {.episode-ajax-loading {
        min-height: 320px;
    }}.webtoon-grid.episode-mode {
    display: block;
}.episode-view {
    width: 100%;
    max-width: 100%;
}.episode-header {
    display: flex;
    align-items: flex-start;

    gap: 24px;

    width: 100%;

    padding: 24px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;

    background: #1b1518;
}.episode-cover {
    position: relative;

    flex: 0 0 180px;

    width: 180px;

    overflow: hidden;

    border-radius: 9px;

    background: #0d090c;
}.episode-cover img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 3 / 4;

    object-fit: cover;
}.episode-status {
    position: absolute;

    top: 9px;
    left: 9px;

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

    min-height: 25px;

    padding: 0 9px;

    border-radius: 5px;

    background: #ff3368;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;
}.episode-info {
    flex: 1;

    min-width: 0;

    padding-top: 3px;
}.episode-webtoon-title {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.35;

    word-break: keep-all;
}.episode-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-bottom: 17px;
}.episode-meta-item {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;
}.episode-meta-label {
    color: #7f7479;

    font-size: 12px;
    font-weight: 700;
}.episode-meta-value {
    color: #d8d0d3;

    font-size: 13px;
    font-weight: 600;

    word-break: break-word;
}.episode-intro {
    max-width: 850px;

    margin-top: 4px;

    color: #a99fa3;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.75;

    word-break: keep-all;
}.episode-summary {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color: #81777b;

    font-size: 14px;
}.episode-summary strong {
    color: #ff4773;

    font-weight: 800;
}.episode-summary-divider {
    color: #4d4549;
}.episode-content {
    width: 100%;

    margin-top: 22px;
}.episode-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 50px;

    margin-bottom: 8px;

    padding: 0 3px;
}.episode-list-title-wrap {
    display: flex;
    align-items: center;

    gap: 8px;
}.episode-list-title {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}.episode-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 22px;

    padding: 0 7px;

    border-radius: 11px;

    background: rgba(255, 51, 104, 0.1);

    color: #ff4773;

    font-size: 11px;
    font-weight: 800;
}.episode-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;

    outline: none;

    background: #1b1518;

    color: #b7adb1;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}.episode-back-btn:hover {
    border-color: rgba(255, 51, 104, 0.25);

    background: rgba(255, 51, 104, 0.08);

    color: #ffffff;
}.episode-list {
    width: 100%;

    overflow: hidden;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}.episode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
    min-height: 67px;

    padding: 12px 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    color: inherit;
    text-decoration: none;

    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}.episode-item:hover {
    padding-left: 20px;

    background: rgba(255, 51, 104, 0.045);
}.episode-item-main {
    flex: 1;

    min-width: 0;
}.episode-item-title {
    display: block;

    overflow: hidden;

    color: #ddd6d9;

    font-size: 14px;
    font-weight: 650;

    line-height: 1.45;

    text-overflow: ellipsis;
    white-space: nowrap;
}.episode-item-meta {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 6px;
}.episode-item-date,
.episode-item-hit {
    color: #746b6f;

    font-size: 11px;
    font-weight: 500;
}.episode-item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    color: #5d5559;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}.episode-item:hover .episode-item-arrow {
    color: #ff4773;

    transform: translateX(2px);
}.episode-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    padding: 40px 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    text-align: center;
}.episode-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    color: #62595d;
}.episode-empty strong {
    margin-bottom: 6px;

    color: #c9c0c4;

    font-size: 14px;
}.episode-empty span {
    color: #746b6f;

    font-size: 12px;
}.episode-ajax-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 420px;

    gap: 12px;

    text-align: center;
}.episode-ajax-loading .webtoon-scroll-spinner {
    margin: 0;
}.episode-ajax-loading-text {
    color: #978d91;

    font-size: 13px;
    font-weight: 600;
}.episode-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 300px;

    gap: 8px;

    padding: 30px;

    text-align: center;
}.episode-error strong {
    color: #ffffff;

    font-size: 15px;
}.episode-error span {
    color: #81777b;

    font-size: 12px;
}.episode-error .episode-back-btn {
    margin-top: 12px;
}@media (max-width: 768px) {.episode-header {
        gap: 15px;

        padding: 15px;

        border-radius: 9px;
    }.episode-cover {
        flex-basis: 120px;

        width: 120px;

        border-radius: 7px;
    }.episode-webtoon-title {
        margin-bottom: 11px;

        font-size: 19px;
    }.episode-meta {
        flex-direction: column;

        gap: 5px;

        margin-bottom: 10px;
    }.episode-meta-item {
        gap: 6px;
    }.episode-meta-label {
        min-width: 27px;

        font-size: 11px;
    }.episode-meta-value {
        font-size: 12px;
    }.episode-intro {
        display: -webkit-box;

        overflow: hidden;

        font-size: 12px;
        line-height: 1.6;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }.episode-summary {
        margin-top: 11px;

        font-size: 11px;
    }.episode-content {
        margin-top: 17px;
    }.episode-list-header {
        min-height: 44px;
    }.episode-list-title {
        font-size: 16px;
    }.episode-item {
        min-height: 62px;

        padding: 10px 8px;
    }.episode-item:hover {
        padding-left: 8px;

        background: transparent;
    }.episode-item-title {
        font-size: 13px;
    }.episode-item-meta {
        gap: 9px;

        margin-top: 5px;
    }.episode-item-arrow {
        flex-basis: 24px;

        width: 24px;
    }.episode-ajax-loading {
        min-height: 320px;
    }}@media (max-width: 480px) {.episode-header {
        gap: 12px;

        padding: 12px;
    }.episode-cover {
        flex-basis: 100px;

        width: 100px;
    }.episode-status {
        top: 6px;
        left: 6px;

        min-height: 21px;

        padding: 0 7px;

        font-size: 10px;
    }.episode-webtoon-title {
        margin-bottom: 9px;

        font-size: 17px;
    }.episode-intro {
        -webkit-line-clamp: 2;
    }.episode-list-header {
        padding: 0;
    }.episode-back-btn {
        height: 32px;

        padding: 0 11px;

        font-size: 11px;
    }}.episode-scroll-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100px;

    gap: 10px;

    padding: 20px 0;
}.episode-scroll-loading .webtoon-scroll-spinner {
    margin: 0;
}.episode-scroll-loading-text {
    color: #81777b;
    font-size: 12px;
    font-weight: 600;
}.episode-bookmark-wrap {
    margin-top: 12px;
    margin-bottom: 16px;
}.episode-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    height: 38px;

    padding: 0 15px;

    border: 1px solid rgba(255, 71, 115, 0.35);
    border-radius: 7px;

    background: rgba(255, 71, 115, 0.08);

    color: #ff4773;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}.episode-bookmark-btn:hover {
    background: rgba(255, 71, 115, 0.16);

    border-color: #ff4773;
}.episode-bookmark-icon {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}.episode-bookmark-btn.is-bookmarked {
    background: #ff1744;
    border-color: #ff1744;

    color: #ffffff;
}.episode-bookmark-btn.is-bookmarked
.episode-bookmark-icon {
    fill: currentColor;
}@media (max-width: 768px) {.episode-bookmark-wrap {
        margin-top: 10px;
        margin-bottom: 13px;
    }.episode-bookmark-btn {
        height: 36px;

        padding: 0 13px;

        font-size: 12px;
    }.episode-bookmark-icon {
        width: 16px;
        height: 16px;
    }}@media (max-width: 768px) {.episode-header {
        display: block !important;

        width: 100%;

        padding: 0 !important;

        overflow: hidden;

        border: 0 !important;
        border-radius: 0 !important;

        background: #0d090c !important;
    }.episode-cover {
        position: relative;

        display: block;

        width: 100% !important;
        height: auto !important;

        flex: none !important;
        flex-basis: auto !important;

        margin: 0 !important;

        overflow: hidden;

        border: 0;
        border-radius: 0 !important;

        background: #0d090c;
    }.episode-cover img {
        display: block;

        width: 100% !important;

        height: 115vw !important;

        min-height: 0 !important;
        max-height: 560px !important;

        margin: 0;

        object-fit: cover;
        object-position: center top;

        border: 0;
        border-radius: 0 !important;

        -webkit-mask-image:
            linear-gradient(
                to bottom,

                #000 0%,
                #000 62%,

                rgba(0, 0, 0, 0.95) 68%,
                rgba(0, 0, 0, 0.80) 75%,
                rgba(0, 0, 0, 0.55) 82%,
                rgba(0, 0, 0, 0.30) 89%,
                rgba(0, 0, 0, 0.10) 95%,

                transparent 100%
            );

        mask-image:
            linear-gradient(
                to bottom,

                #000 0%,
                #000 62%,

                rgba(0, 0, 0, 0.95) 68%,
                rgba(0, 0, 0, 0.80) 75%,
                rgba(0, 0, 0, 0.55) 82%,
                rgba(0, 0, 0, 0.30) 89%,
                rgba(0, 0, 0, 0.10) 95%,

                transparent 100%
            );

        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;

        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }.episode-cover::after {
        display: none !important;
        content: none !important;
    }.episode-status {
        position: absolute;

        top: 14px;
        left: 14px;

        z-index: 5;
    }.episode-info {
        position: relative !important;

        z-index: 3;

        display: block;

        width: 100% !important;

        margin: 0 !important;

        padding:
            4px
            18px
            24px !important;

        background: #0d090c !important;
    }.episode-webtoon-title {
        margin:
            0
            0
            12px !important;

        color: #ffffff;

        font-size: 24px !important;
        font-weight: 800;

        line-height: 1.35;

        letter-spacing: -0.5px;
    }.episode-bookmark-wrap {
        margin:
            0
            0
            18px !important;
    }.episode-meta {
        display: flex;

        flex-direction: column;

        gap: 8px;

        margin:
            0
            0
            16px;
    }.episode-meta-item {
        display: flex;

        align-items: flex-start;

        gap: 12px;
    }.episode-meta-label {
        flex: 0 0 38px;

        width: 38px;

        color: #81777b;

        font-size: 12px;
        font-weight: 600;
    }.episode-meta-value {
        flex: 1;

        min-width: 0;

        color: #d7cdd1;

        font-size: 13px;

        line-height: 1.5;
    }.episode-intro {
        margin:
            15px
            0
            0 !important;

        color: #aaa0a5;

        font-size: 13px;

        line-height: 1.75;

        word-break: keep-all;
    }.episode-summary {
        margin-top: 17px !important;
    }.episode-content {
        margin-top: 0 !important;

        background: #0d090c;
    }}.episode-bookmark-wrap {
    margin-top: 12px;
    margin-bottom: 16px;
}.episode-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255, 71, 115, 0.35);
    border-radius: 19px;
    background: rgba(255, 71, 115, 0.08);
    color: #ff4773;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}.episode-bookmark-btn:hover {
    background: rgba(255, 71, 115, 0.16);
    border-color: #ff4773;
}.episode-bookmark-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}.episode-bookmark-btn.is-bookmarked {
    background: #ff1744;
    border-color: #ff1744;
    color: #fff;
}.episode-bookmark-btn.is-bookmarked .episode-bookmark-icon {
    fill: currentColor;
}@media (max-width: 768px) {.episode-info {
        width: 100% !important;
        padding: 4px 18px 24px !important;
        text-align: center !important;
    }.episode-webtoon-title {
        width: 100%;
        margin: 0 0 14px !important;
        font-size: 24px !important;
        font-weight: 800;
        line-height: 1.4;
        text-align: center !important;
        word-break: keep-all;
        overflow-wrap: break-word;
    }.episode-bookmark-wrap {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        width: 100%;
        margin: 0 0 28px !important;
    }.episode-bookmark-btn {
        width: auto !important;
        height: 36px;
        padding: 0 14px !important;
        border-radius: 18px !important;
        box-shadow: none !important;
        font-size: 12px;
    }.episode-bookmark-icon {
        width: 16px;
        height: 16px;
    }.episode-meta-grid {
        display: block !important;
        width: 100%;
        margin: 0 0 24px !important;
        padding: 0 !important;
        text-align: center !important;
    }.episode-meta-label-row,
.episode-meta-value-row {
    display: grid;

    grid-template-columns:
        repeat(
            var(--episode-meta-count, 1),
            minmax(0, 1fr)
        );

    width: 100%;

    justify-content: center;
}.episode-meta-label-row {
        margin-bottom: 8px;
    }.episode-meta-label-row .episode-meta-label {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        color: #81777b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
        text-align: center !important;
    }.episode-meta-value-row .episode-meta-value {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 0 5px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.45;
        text-align: center !important;
        word-break: keep-all;
        overflow-wrap: break-word;
    }.episode-intro {
        width: 100%;
        margin: 0 auto !important;
        color: #aaa0a5;
        font-size: 13px;
        line-height: 1.75;
        text-align: center !important;
        word-break: keep-all;
    }.episode-summary {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 18px !important;
        text-align: center !important;
    }
}
    
    