/* YaToon - Common / Header / Banner / Search / Category / Webtoon / Footer */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    min-width: 320px;

    background:
        radial-gradient(
            circle at 50% 0%,
            #35101f 0,
            #181014 360px,
            #0d090c 720px
        );

    background-color: #0d090c;

    color: #ffffff;

    font-family:
        Arial,
        "Apple SD Gothic Neo",
        "Noto Sans KR",
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    word-break: keep-all;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button,
input {
    margin: 0;

    border: 0;
    outline: 0;

    font: inherit;
}

button {
    padding: 0;

    cursor: pointer;

    background: none;
}

img {
    display: block;

    max-width: 100%;
}

svg {
    display: block;
}

.container {
    width: min(
        1200px,
        calc(100% - 32px)
    );

    margin: 0 auto;
}

.site-main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(13, 9, 12, 0.92);

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

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;

    height: 68px;
}

.site-logo {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    font-size: 25px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -1.3px;
}

.logo-ya {
    color: #ff3368;
}

.logo-toon {
    color: #ffffff;
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 28px;

    margin-left: 48px;
}

.main-nav > a {
    position: relative;

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

    min-height: 68px;

    color: #a89fa3;

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

    transition:
        color 0.18s ease;
}

.main-nav > a:hover,
.main-nav > a.active {
    color: #ffffff;
}

.main-nav > a.active::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            #ff1744,
            #f43f78
        );
}

.bookmark-nav {
    gap: 5px;
}

.bookmark-nav svg,
.mobile-bookmark svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.header-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: auto;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    color: #ffffff;

    transition:
        background 0.18s ease;
}

.header-icon-btn:hover {
    background:
        rgba(255, 255, 255, 0.07);
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.mobile-menu-btn {
    display: none;

    position: relative;

    width: 38px;
    height: 38px;
}

.mobile-menu-btn span {
    position: absolute;
    left: 8px;

    width: 22px;
    height: 2px;

    border-radius: 2px;

    background: #ffffff;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 11px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 18px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 25px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 18px;

    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 18px;

    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
}

.banner-section {
    padding-top: 14px;
}

.banner-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 5px;
}

.banner-item {
    display: block;

    width: 100%;
    min-width: 0;

    overflow: hidden;

    border-radius: 6px;

    background: #181015;

    aspect-ratio: 4 / 1;
}

.banner-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* 긴 배너 그리드 */
.wide-banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    width: 100%;
    max-width: 1200px;

    gap: 5px;
    margin: 5px auto 0;
}

/* 긴 배너 영역 */
.wide-banner-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100px;

    overflow: hidden;
    border-radius: 6px;
    background: #181015;
}

/* 긴 배너 이미지 */
.wide-banner-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}
.search-section {
    padding-top: 18px;
}

.search-area {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 14px 16px;

    border:
        1px solid rgba(255, 255, 255, 0.05);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);
}

.search-heading {
    display: flex;
    flex-direction: column;

    flex: 0 0 auto;

    gap: 1px;
}

.search-heading strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.search-heading span {
    color: #786f73;

    font-size: 11px;
}

.main-search {
    display: flex;
    align-items: center;

    width: min(100%, 500px);
    height: 42px;

    padding-left: 13px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 8px;

    background: #151014;
}

.main-search .search-icon {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    fill: none;
    stroke: #776d71;
    stroke-width: 1.8;
}

.main-search input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 10px;

    background: transparent;

    color: #ffffff;

    font-size: 13px;
}

.main-search input::placeholder {
    color: #6e6569;
}

.search-submit {
    flex: 0 0 auto;

    height: 100%;

    padding: 0 18px;

    background:
        linear-gradient(
            135deg,
            #ff1744,
            #f43f78
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

/* ========================================
   모바일 긴 배너 공백 제거
======================================== */

@media (max-width: 768px) {

    .wide-banner-grid {
        gap: 3px;
        margin-top: 3px;
    }

    .wide-banner-item {
        height: auto;
        aspect-ratio: 8 / 1;
        min-height: 0;
    }

    .wide-banner-item img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

}

.category-section {
    padding-top: 12px;
}

.category-box {
    padding: 14px 16px;

    border:
        1px solid rgba(255, 255, 255, 0.05);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);
}

.weekday-area,
.category-row {
    display: flex;
    align-items: flex-start;

    gap: 15px;
}

.category-row {
    margin-top: 10px;
}

.category-title {
    display: flex;
    align-items: center;

    flex: 0 0 40px;

    min-height: 32px;

    color: #776d71;

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

.weekday-list,
.category-list {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 32px;

    padding: 6px 12px;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.04);

    color: #978d91;

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

    transition:
        background 0.16s ease,
        color 0.16s ease;
}

.category-btn:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);
}

.category-btn.active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff1744,
            #f43f78
        );
}

.category-detail {
    margin-top: 10px;

    padding-top: 2px;

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

.mobile-filter-bar {
    display: none;
}

.webtoon-section {
    padding: 26px 0 50px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;
}

.section-label {
    display: block;

    margin-bottom: 2px;

    color: #ff4773;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.section-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 21px;
    font-weight: 900;

    line-height: 1.3;

    letter-spacing: -0.6px;
}

.webtoon-count {
    color: #71686c;

    font-size: 11px;
}

.webtoon-grid {
    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 20px 10px;
}

.webtoon-card {
    min-width: 0;
}

.webtoon-card > a {
    display: block;
    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.webtoon-thumb {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 11px;

    background: #1b1518;

    aspect-ratio: 3 / 4;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.22);

    transform: translateZ(0);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.webtoon-thumb::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 1;

    height: 38%;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(8, 6, 8, 0.62) 0%,
            rgba(8, 6, 8, 0.20) 55%,
            rgba(8, 6, 8, 0) 100%
        );
}

.webtoon-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);

    transition:
        transform 0.26s ease,
        filter 0.26s ease;
}

@media (hover: hover) and (pointer: fine) {

    .webtoon-card:hover
    .webtoon-thumb {
        transform: translateY(-3px);

        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.36);
    }

    .webtoon-card:hover
    .webtoon-thumb img {
        transform: scale(1.045);

        filter:
            brightness(0.92)
            saturate(1.04);
    }

    .webtoon-card:hover
    .webtoon-info h3 {
        color: #ffffff;
    }
}

.webtoon-badge {
    position: absolute;
    top: 7px;
    left: 7px;

    z-index: 3;

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

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

    padding: 0 7px;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 23, 68, 0.96),
            rgba(244, 63, 120, 0.96)
        );

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.28);

    color: #ffffff;

    font-size: 9px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -0.1px;

    white-space: nowrap;
}

.webtoon-badge.new {
    background:
        linear-gradient(
            135deg,
            #ff3368,
            #ff5d89
        );
}

.adult-badge {
    position: absolute;
    top: 7px;
    right: 7px;

    z-index: 3;

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

    width: 25px;
    height: 25px;

    border:
        1px solid rgba(255, 71, 115, 0.78);

    border-radius: 50%;

    background:
        rgba(13, 9, 12, 0.88);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    color: #ff5f88;

    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.webtoon-company {
    position: absolute;
    left: 7px;
    bottom: 7px;

    z-index: 3;

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

    max-width:
        calc(100% - 14px);

    height: 23px;

    padding: 0 8px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 6px;

    background:
        rgba(10, 7, 9, 0.76);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    color: #ff6d94;

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

    white-space: nowrap;
    text-overflow: ellipsis;
}

.webtoon-info {
    padding:
        9px 2px 0;
}

.webtoon-info h3 {
    margin: 0;

    overflow: hidden;

    color: #f5f2f3;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;

    letter-spacing: -0.25px;

    white-space: nowrap;
    text-overflow: ellipsis;

    transition:
        color 0.16s ease;
}

.webtoon-meta-row {
    display: flex;
    align-items: center;

    min-width: 0;

    margin-top: 5px;
}

.webtoon-info p {
    margin:
        4px 0 0;

    overflow: hidden;

    color: #766d71;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.webtoon-sub-info {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 5px;

    margin-top: 5px;

    overflow: hidden;
}

.webtoon-card-bottom {
    display: flex;
    align-items: center;

    min-width: 0;

    margin-top: 4px;
}

.webtoon-status {
    overflow: hidden;

    color: #70666a;

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

    white-space: nowrap;
    text-overflow: ellipsis;
}

.webtoon-genre {
    display: block;

    min-width: 0;

    overflow: hidden;

    color: #92888c;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.webtoon-meta-dot {
    margin:
        0 4px;

    color: #5f565a;
}

.webtoon-episode-count {
    color: #bdb3b7;

    font-size: inherit;
    font-weight: 800;

    white-space: nowrap;
}

.webtoon-empty {
    grid-column: 1 / -1;

    padding: 80px 20px;

    text-align: center;

    color: #776d71;

    font-size: 13px;
}

.webtoon-loader {
    display: flex;
    align-items: center;
    justify-content: center;

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

    margin-top: 15px;
}

.webtoon-loading {
    color: #81777b;

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

    opacity: 0;
}

.webtoon-loader.loading
.webtoon-loading {
    opacity: 1;
}

.site-footer {
    margin-top: 20px;

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

    background: #090709;
}

.footer-inner {
    padding-top: 35px;
    padding-bottom: 35px;

    text-align: center;
}

.footer-logo {
    display: inline-block;

    color: #ffffff;

    font-size: 21px;
    font-weight: 900;

    letter-spacing: -1px;
}

.footer-logo span {
    color: #ff3368;
}

.footer-description {
    margin: 9px 0 0;

    color: #71686c;

    font-size: 11px;
}

.footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-top: 15px;
}

.footer-menu a {
    color: #83797d;

    font-size: 11px;
}

.footer-menu a:hover {
    color: #ffffff;
}

.copyright {
    margin: 15px 0 0;

    color: #51494d;

    font-size: 10px;
}

@media (max-width: 1024px) {

    .webtoon-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 18px 9px;
    }

}

@media (max-width: 768px) {

    .container {
        width:
            calc(100% - 20px);
    }

    .header-inner {
        height: 58px;
    }

    .site-logo {
        font-size: 22px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    .mobile-nav.open {
        display: flex;

        flex-direction: row;
        flex-wrap: nowrap;

        align-items: center;

        gap: 5px;

        padding:
            7px 10px 9px;

        overflow-x: auto;
        overflow-y: hidden;

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

        background: #100c0f;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .mobile-nav.open::-webkit-scrollbar {
        display: none;
    }

    .mobile-nav a {
        display: flex;

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

        flex:
            1 0 auto;

        min-width: 68px;
        min-height: 38px;

        padding:
            0 12px;

        border-radius: 7px;

        color: #978d91;

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

        white-space: nowrap;
    }

    .mobile-nav a.active {
        color: #ffffff;

        background:
            rgba(255, 51, 104, 0.09);
    }

    .mobile-bookmark {
        gap: 6px;
    }

    .banner-section {
        padding-top: 8px;
    }

    .banner-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 4px;
    }

    .banner-item {
        border-radius: 5px;
    }

    .wide-banner-grid {
        gap: 4px;

        margin-top: 4px;
    }

    .wide-banner-item {
        border-radius: 5px;
    }

    .search-section {
        padding-top: 10px;
    }

    .search-area {
        display: block;

        padding: 0;

        border: 0;

        background: none;
    }

    .search-heading {
        display: none;
    }

    .main-search {
        width: 100%;
        height: 40px;
    }

    .main-search input {
        font-size: 12px;
    }

    .search-submit {
        padding: 0 16px;

        font-size: 11px;
    }

    .category-section {
        padding-top: 8px;
    }

    .category-box {
        padding: 10px;

        border-radius: 8px;
    }

    .weekday-area {
        display: block;
    }

    .weekday-area
    .category-title {
        display: none;
    }

    .weekday-list {
        display: grid;

        grid-template-columns:
            repeat(8, minmax(0, 1fr));

        gap: 4px;
    }

    .weekday-list
    .category-btn {
        width: 100%;
        min-width: 0;
        min-height: 32px;

        padding: 5px 2px;

        font-size: 10px;
    }

    .mobile-filter-bar {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 5px;

        margin-top: 7px;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-width: 0;
        height: 36px;

        gap: 5px;

        padding: 0 10px;

        overflow: hidden;

        border-radius: 8px;

        background:
            rgba(255, 255, 255, 0.05);

        color: #aaa0a4;

        font-size: 11px;
        font-weight: 700;
    }

    .mobile-filter-btn span {
        min-width: 0;

        overflow: hidden;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mobile-filter-btn svg {
        flex: 0 0 auto;

        width: 14px;
        height: 14px;

        fill: none;
        stroke: currentColor;
        stroke-width: 2;

        transition:
            transform 0.18s ease;
    }

    .mobile-filter-btn.active {
        color: #ffffff;

        background:
            linear-gradient(
                135deg,
                rgba(255, 23, 68, 0.22),
                rgba(244, 63, 120, 0.16)
            );
    }

    .mobile-filter-btn.active svg {
        transform: rotate(180deg);
    }

    .category-detail {
        margin: 0;
        padding: 0;

        border: 0;
    }

    .filter-panel {
        display: none;

        margin-top: 7px !important;

        padding: 10px;

        border:
            1px solid rgba(255, 255, 255, 0.05);

        border-radius: 9px;

        background: #181216;
    }

    .filter-panel.open {
        display: block;
    }

    .filter-panel
    .category-title {
        display: none;
    }

    .filter-panel
    .category-list {
        display: flex;
        flex-wrap: wrap;

        gap: 6px;
    }

    .filter-panel
    .category-btn {
        min-height: 32px;

        padding: 6px 12px;

        background:
            rgba(255, 255, 255, 0.05);

        color: #9f9599;

        font-size: 11px;
    }

    .filter-panel
    .category-btn.active {
        color: #ffffff;

        background:
            linear-gradient(
                135deg,
                #ff1744,
                #f43f78
            );
    }

    .webtoon-section {
        padding:
            20px 0 35px;
    }

    .section-header {
        margin-bottom: 11px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-label {
        font-size: 9px;
    }

    .webtoon-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 15px 7px;
    }

    .webtoon-thumb {
        border-radius: 6px;
    }

    .webtoon-info {
        padding-top: 6px;
    }

    .webtoon-info h3 {
        font-size: 13px;
    }

    .webtoon-info p {
        margin-top: 3px;

        font-size: 9px;
    }

    .webtoon-sub-info {
        gap: 4px;
        margin-top: 4px;
    }

    .webtoon-company {
        left: 5px;
        bottom: 5px;

        height: 19px;
        padding: 0 5px;

        border-radius: 4px;

        font-size: 9px;
    }

    .webtoon-meta-row {
        margin-top: 4px;
    }

    .webtoon-genre {
        font-size: 10px;
    }

    .webtoon-episode-count {
        font-size: 10px;
    }

    .webtoon-meta-dot {
        margin: 0 3px;
    }

    .webtoon-badge {
        top: 5px;
        left: 5px;

        min-width: 27px;
        height: 18px;

        padding: 0 5px;

        font-size: 8px;
    }

    .adult-badge {
        top: 5px;
        right: 5px;

        width: 20px;
        height: 20px;

        font-size: 8px;
    }

    .webtoon-loader {
        min-height: 50px;

        margin-top: 8px;
    }

}

@media (max-width: 480px) {

    .container {
        width:
            calc(100% - 16px);
    }

    .banner-section
    .container {
        width:
            calc(100% - 12px);
    }

    .webtoon-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 13px 6px;
    }

    .webtoon-info h3 {
        font-size: 11px;
    }

    .webtoon-info p {
        font-size: 9px;
    }

}

@media (max-width: 360px) {

    .container {
        width:
            calc(100% - 12px);
    }

    .webtoon-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 11px 5px;
    }

    .webtoon-info h3 {
        font-size: 10px;
    }

    .webtoon-info p {
        font-size: 8px;
    }

    .weekday-list {
        gap: 3px;
    }

}

.webtoon-thumb img.is-placeholder {
    object-fit: cover;

    opacity: 0.75;

    filter:
        saturate(0.75)
        brightness(0.85);
}

.webtoon-grid {
    transition:
        opacity 0.15s ease;
}

.webtoon-grid.is-loading {
    opacity: 0.3;

    pointer-events: none;
}

.webtoon-ajax-loading {
    display: none;

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

    min-height: 45px;

    color: #81777b;

    font-size: 11px;
    font-weight: 600;
}

.webtoon-ajax-loading.show {
    display: flex;
}

@media (
    prefers-reduced-motion: reduce
) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}

.webtoon-inline-loading {
    grid-column: 1 / -1;

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

    display: flex;
    flex-direction: column;

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

    gap: 14px;
}

.webtoon-inline-spinner {
    width: 38px;
    height: 38px;

    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #ff3368;

    border-radius: 50%;

    animation:
        webtoon-inline-spin
        0.7s
        linear
        infinite;
}

.webtoon-inline-loading-text {
    color: #aaa;

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

    text-align: center;
}

@keyframes webtoon-inline-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.webtoon-inline-error {
    grid-column: 1 / -1;

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

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    text-align: center;
}

.webtoon-inline-error strong {
    color: #ddd;

    font-size: 15px;
}

.webtoon-inline-error span {
    color: #888;

    font-size: 13px;
}

@media (max-width: 768px) {

    .webtoon-inline-loading {
        min-height: 250px;
    }

    .webtoon-inline-spinner {
        width: 34px;
        height: 34px;
    }

    .webtoon-inline-loading-text {
        font-size: 13px;
    }

}

.webtoon-scroll-loading {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.webtoon-scroll-spinner {
    width: 22px;
    height: 22px;

    border: 2px solid rgba(255, 255, 255, .12);
    border-top-color: #ff3368;

    border-radius: 50%;

    animation:
        webtoon-scroll-spin
        .7s
        linear
        infinite;
}

.webtoon-scroll-loading-text {
    line-height: 1.4;
}

@keyframes webtoon-scroll-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

    .webtoon-scroll-loading {
        min-height: 75px;
        font-size: 12px;
    }

    .webtoon-scroll-spinner {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1024px) {

    .webtoon-thumb {
        border-radius: 9px;
    }

}

@media (max-width: 768px) {

    .webtoon-thumb {
        border-radius: 8px;

        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.20);
    }

    .webtoon-info {
        padding:
            7px 1px 0;
    }

    .webtoon-info h3 {
        font-size: 13px;
        font-weight: 800;

        letter-spacing: -0.2px;
    }

    .webtoon-meta-row {
        margin-top: 4px;
    }

    .webtoon-genre {
        font-size: 10px;
    }

    .webtoon-episode-count {
        font-size: 10px;
    }

    .webtoon-meta-dot {
        margin:
            0 3px;
    }

    .webtoon-company {
        left: 5px;
        bottom: 5px;

        max-width:
            calc(100% - 10px);

        height: 20px;

        padding:
            0 6px;

        border-radius: 5px;

        font-size: 9px;
    }

    .webtoon-badge {
        top: 5px;
        left: 5px;

        min-width: 27px;
        height: 19px;

        padding:
            0 5px;

        border-radius: 5px;

        font-size: 8px;
    }

    .adult-badge {
        top: 5px;
        right: 5px;

        width: 21px;
        height: 21px;

        font-size: 8px;
    }

}

@media (max-width: 480px) {

    .webtoon-info h3 {
        font-size: 12px;
    }

    .webtoon-thumb {
        border-radius: 7px;
    }

}

@media (max-width: 360px) {

    .webtoon-info h3 {
        font-size: 11px;
    }

    .webtoon-genre,
    .webtoon-episode-count {
        font-size: 9px;
    }

}

@media (max-width: 768px) {

    .mobile-filter-bar {
        display: none !important;
    }

    .category-box {
        padding:
            11px 10px 12px;

        overflow: hidden;

        border-radius: 9px;
    }

    .weekday-area,
    .category-row,
    .filter-panel,
    .filter-panel.open {
        display: block !important;

        width: 100%;

        margin:
            0 0 10px !important;

        padding: 0 !important;

        border: 0 !important;

        background: transparent !important;
    }

    .category-detail {
        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
    }

    .category-detail
    .category-row:last-child {
        margin-bottom: 0 !important;
    }

    .weekday-area
    .category-title,
    .filter-panel
    .category-title,
    .category-title {
        display: block !important;

        min-height: 0;

        margin:
            0 0 6px;

        color: #8f8589;

        font-size: 10px;
        font-weight: 800;
        line-height: 1.2;

        letter-spacing: -0.1px;
    }

    .weekday-list,
    .category-list,
    .filter-panel
    .category-list {
        display: flex !important;
        flex-wrap: nowrap !important;

        width: 100%;

        gap: 5px;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            0 2px 4px 0;

        scroll-behavior: smooth;
        scroll-snap-type: x proximity;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .weekday-list::-webkit-scrollbar,
    .category-list::-webkit-scrollbar {
        display: none;
    }

    .weekday-list
    .category-btn,
    .category-list
    .category-btn,
    .filter-panel
    .category-btn {
        flex:
            0 0 auto !important;

        width: auto !important;
        min-width: 42px;
        min-height: 32px;

        padding:
            6px 11px;

        border-radius: 7px;

        background:
            rgba(255, 255, 255, 0.045);

        color: #9b9195;

        font-size: 10px;
        font-weight: 700;
        line-height: 1;

        white-space: nowrap;

        scroll-snap-align: start;

        transition:
            background 0.16s ease,
            color 0.16s ease;
    }

    .weekday-list
    .category-btn.active,
    .category-list
    .category-btn.active,
    .filter-panel
    .category-btn.active {
        color: #ffffff;

        background:
            linear-gradient(
                135deg,
                #ff1744,
                #f43f78
            );

        box-shadow:
            0 2px 7px rgba(244, 63, 120, 0.18);
    }

    .weekday-list {
        grid-template-columns: none !important;
    }

}

@media (max-width: 480px) {

    .category-box {
        padding:
            10px 8px 11px;
    }

    .weekday-list,
    .category-list,
    .filter-panel
    .category-list {
        gap: 4px;

        padding-bottom: 3px;
    }

    .weekday-list
    .category-btn,
    .category-list
    .category-btn,
    .filter-panel
    .category-btn {
        min-width: 40px;
        min-height: 31px;

        padding:
            6px 10px;

        font-size: 10px;
    }

}


#episodeScrollSentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}


#webtoonAjaxLoading {
    display: none;
}

#webtoonAjaxLoading.show {
    display: flex;
}

.webtoon-grid.is-filter-loading {
    display: flex !important;

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

    align-items: flex-start !important;
    justify-content: center !important;
}

.webtoon-grid.is-filter-loading .filter-loading-box {
    width: 100%;

    display: flex;
    flex-direction: column;

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

    gap: 12px;

    text-align: center;

    padding-top: 70px;
}

.webtoon-grid.is-filter-loading .webtoon-scroll-spinner {
    margin: 0 auto;
}

.webtoon-grid.is-filter-loading .filter-loading-text {
    width: 100%;

    text-align: center;

    color: #978d91;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {

    .webtoon-grid.is-filter-loading {
        min-height: 320px;
    }

    .webtoon-grid.is-filter-loading .filter-loading-box {
        padding-top: 45px;
    }
}

.search-area {
    width: 100%;
}

.main-search {
    width: 100%;
    max-width: none;

    display: flex;
    align-items: center;
}

.main-search input {
    flex: 1 1 auto;
    min-width: 0;
}

.main-search .search-submit {
    flex: 0 0 auto;
}

.webtoon-badge.update-now {
    background: #ff1744;
    color: #fff;
}

.webtoon-badge.update-1 {
    background: #e91e4d;
    color: #fff;
}

.webtoon-badge.update-2 {
    background: #c71f48;
    color: #fff;
}

.webtoon-badge.update-3 {
    background: #a51e40;
    color: #fff;
}

.webtoon-badge.update-4 {
    background: #781b35;
    color: #fff;
}

.webtoon-badge.update-old {
    background: #45333a;
    color: #d7cbd0;
}

.scroll-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 48px;
    height: 48px;

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

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;

    background: #35101f;
    color: #ffffff;

    font-size: 24px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;

    z-index: 999;
}

.scroll-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background: #ff1744;
}

@media (max-width: 768px) {

    .scroll-top-button {
        right: 14px;
        bottom: 18px;

        width: 44px;
        height: 44px;

        font-size: 21px;
    }
}

.scroll-top-button svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {

    .scroll-top-button svg {
        width: 22px;
        height: 22px;
    }
}





/* =========================================================
   EPISODE BOOKMARK + MOBILE INFO FINAL
========================================================= */


/* =========================================================
   EPISODE META
   작품 / 장르 / 작가 자동 열 개수
========================================================= */


/* 필드명 */


/* 데이터 */




/* ========================================
   북마크 페이지 최초 로딩 중앙정렬
======================================== */

#webtoonGrid[data-mode="bookmark"] .filter-loading-box {
    grid-column: 1 / -1;

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

    display: flex;
    flex-direction: column;

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

    gap: 12px;

    text-align: center;
}

#webtoonGrid[data-mode="bookmark"] .webtoon-scroll-spinner {
    margin-left: auto;
    margin-right: auto;
}

#webtoonGrid[data-mode="bookmark"] .filter-loading-text {
    width: 100%;
    text-align: center;
}



.webtoon-card {
    position: relative;
}

.webtoon-bookmark-delete {
    position: absolute;

    top: 8px;
    right: 8px;

    z-index: 20;

    width: 32px;
    height: 32px;

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

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.72);
    color: #fff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}