body {
    margin: 0;
    background: #050505;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root, *, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}


.back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 22px;
    z-index: 1000;
}
.back-btn img {
    width: 22px;
    height: 22px;
    filter: invert(1); 
}

.btn .icon {
    width: 18px;
    height: 18px;
}



.series-hero {
    position: relative;
    padding: 60px 0 40px;
    background-size: cover;
    background-position: center;
}

.series-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.95));
    backdrop-filter: blur(6px);
}

.series-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 28px;
}

.series-cover {
    width: 190px;
    height: 270px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.7);
    flex-shrink: 0;
    position: relative;
}

.series-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-hero-right {
    flex: 1;
}

.series-title {
    font-size: 36px;
    margin: 0 0 6px;
}

.series-subtitle {
    margin: 0 0 10px;
    font-size: 14px;
    color: #cfcfcf;
}


.series-alt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 12px;
}

.series-alt-title {
    font-size: 14px;
    font-weight: 600;
    color: #f1f1f1;
    padding: 4px 0;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    color: #eee;
    border: 1px solid rgba(255,255,255,0.12);
}



.series-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.series-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 12px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f1f1f1;
    font-weight: 600;
    font-size: 13px;
}

.stat-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.stat-chip.rating {
    color: #f5a623;
}

.stat-chip.rating .stat-icon {
    filter: invert(61%) sepia(54%) saturate(1380%) hue-rotate(2deg) brightness(102%) contrast(99%);
}

.btn {
    border-radius: 999px;
    padding: 9px 18px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none
}

.btn.primary {
    background: #7b41ff;
    color: #fff;
}

.btn.primary:hover { filter: brightness(0.75); }

.btn.ghost {
    background: rgba(153, 50, 204 ,0.7);
    color: #fff;
}

.btn.ghost:hover { filter: brightness(0.75); }

.btn.outline {
    background: transparent;
    border: 1px solid #444;
    color: #bbb;
}

.series-desc {
    font-size: 14px;
    color: #e1e1e1;
    line-height: 1.7;
    margin: 10px 0 6px;
}

.series-desc.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: 1px solid #2a2a2a;
    color: #cfcfcf;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.read-more-btn:hover {
    border-color: #7b41ff;
    color: #fff;
    background: rgba(123,65,255,0.08);
}

.series-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 6px 0 4px;
}

.tag-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-label {
    font-weight: 700;
    color: #f5f5f5;
    font-size: 13px;
    min-width: 70px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f5f5f5;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.tag-pill:hover,
.tag-pill:focus-visible {
    background: #f05454;
    border-color: #f05454;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}
.tag-pill:active {
    transform: translateY(0);
}
.tag-pill-cta {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #f5f5f5;
}
.tag-pill-cta:hover,
.tag-pill-cta:focus-visible {
    background: #f05454;
    border-color: #f05454;
    color: #f6f6f6;
}


.series-main {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 18px;
}

.series-summary {
    background: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.series-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid #222;
    margin-top: 10px;
}

.series-tab {
    background: transparent;
    border: none;
    padding: 12px 4px;
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
    position: relative;
}

.series-tab.active {
    color: #fff;
}

.series-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #7b41ff;
}

.series-tab-content { display: none; }
.series-tab-content.active { display: block; }

.info-empty {
    padding: 16px;
    border-radius: 12px;
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    color: #9aa0a6;
    text-align: center;
}


.chapter-search-box {
    margin: 16px 0 10px;
}

.chapter-search-box input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #141414;
    color: #fff;
}



.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0;
}



.chapter-card {
    display: flex;
    flex-direction: row;
    gap: 14px;
    background: #111;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    transition: all .25s ease;
    text-decoration: none;
    color: white;

    
    transform: translateY(0);
}

.chapter-card:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}


.chapter-thumb {
    width: 112px;
    height: 63px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all .25s ease;
    align-self: center
}

.chapter-card:hover .chapter-thumb {
    transform: scale(1.03);
    box-shadow: 0px 6px 18px rgba(0,0,0,0.25);
}



.chapter-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.chapter-title {
    font-size: 18px;
    font-weight: 600;
}

.chapter-sub {
    color: #c0c0c0;
    font-size: 14px;
}

.chapter-time {
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

.novel-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 24px;
}

.novel-volume {
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    background: #0d0d0d;
    overflow: hidden;
}

.novel-volume-head {
    width: 100%;
    padding: 14px 16px;
    background: #0d0d0d;
    border: none;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
}
.novel-volume.open .novel-volume-head {
    background: #30475e;
}

.nv-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nv-cover-thumb {
    width: 60px;
    height: 86px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.nv-cover-thumb.empty {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nv-cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nv-meta {
    font-size: 13px;
    color: #b7bac0;
    letter-spacing: 0.2px;
}

.nv-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin: 2px 0;
}

.nv-count {
    font-size: 12px;
    color: #9aa0a6;
}

.nv-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.novel-volume.open .nv-chevron {
    transform: rotate(180deg);
}

.nv-chevron-icon {
    width: 16px;
    height: 16px;
    display: block;
    filter: invert(1);
}

.novel-volume-body {
    display: none;
    padding: 14px;
    border-top: 1px solid #1a1a1a;
}

.novel-volume.open .novel-volume-body {
    display: block;
}

.nv-body-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
}
.nv-body-grid.single-col {
    grid-template-columns: 1fr;
    text-align: center;
}

.nv-cover-block {
    background: #0b0b0b;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
    display: grid;
    place-items: center;
}
.nv-cover-block.center img {
    max-width: clamp(300px , 30vw ,320px);
    width: auto;
    height: auto;
}

.nv-cover-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nv-cover-placeholder {
    padding: 12px;
    text-align: center;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nv-table {
    background: #0b0b0b;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.nv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #121212;
}
.nv-row.link-row {
    text-decoration: none;
    color: inherit;
}

.nv-row:last-child {
    border-bottom: none;
}

.nv-row.empty {
    color: #9aa0a6;
}

.nv-row.illu {
    background: rgba(48,71,94,0.08);
    border-left: 2px solid #30475e;
}

.nv-row-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nv-chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.nv-row-title {
    font-weight: 700;
    color: #f5f5f5;
}

.nv-row-sub {
    color: #8f95a2;
    font-size: 12px;
}
.nv-row-sub.right {
    margin-left: auto;
}

.nv-read {
    padding: 9px 12px;
    border-radius: 10px;
    background: #f05454;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #f05454;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.nv-read:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.pag-btn {
    padding: 8px 14px;
    background: #222;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.pag-btn.active { background: #6b46ff; }
.pag-btn:hover { background: #333; }



.rules-box {
    padding: 20px;
    background: #111;
    border-radius: 12px;
    margin: 40px 0;
}

.rules-box li {
    color: #bbb;
    margin-bottom: 8px;
}



.reaction-box {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.react-flex {
    display: flex;
    gap: 18px;
}

.react-item span {
    font-weight: 600;
}




.react-item {
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    border: 1px solid #222;
    transition: 
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.react-item:hover {
    background: #1b1b1b;
    transform: translateY(-2px);
}



.react-item.active-upvote {
    background: #ffcc00;
    border-color: #ffe680;
    box-shadow: 0 0 12px rgba(255, 220, 0, 0.5);
    color: #4a3800;
    transform: translateY(-2px) scale(1.05);
}

.react-item.active-suki {
    background: #ff4d4d;
    border-color: #ff9999;
    box-shadow: 0 0 14px rgba(255, 60, 60, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.react-item.active-apsih {
    background: #3da9ff;
    border-color: #8ccfff;
    box-shadow: 0 0 14px rgba(60, 170, 255, 0.4);
    color: #062033;
    transform: translateY(-2px) scale(1.05);
}



.comment-box {
    background: #111;
    padding: 20px;
    border-radius: 12px;
}

.comment-text {
    width: 100%;
    background: #222;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
}

.comment-btn {
    background: #6c63ff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
}

.comment-item {
    background: #181818;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.comment-time {
    color: #777;
    font-size: 11px;
}

.comment-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-reply-btn,
.comment-delete-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.comment-reply-btn:hover,
.comment-delete-btn:hover {
    color: #fff;
}

.comment-reply-box {
    margin-top: 6px;
}


.footer {
    padding: 20px 0;
    text-align: center;
    background: #1a1a1a;
    border-top: 1px solid #333;
    color: #aaa;
    margin-top: 40px;
    font-size: 14px;
}


.flag-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    padding: 3px;
    z-index: 5;
}

.flag-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.star-wrap {
    margin-left: 6px;
    color: #ffbf47;
    letter-spacing: 2px;
    font-size: 14px;
}

.bookmark-btn.active {
    border-color: #ffbf47;
    background: rgba(255,191,71,0.12);
    color: #ffbf47;
}
.bookmark-btn {
    cursor: pointer;
}



@media (max-width: 1280px) {
    .series-hero {
        padding: 52px 0 36px;
    }
    .series-hero-inner {
        max-width: 1120px;
        padding: 0 20px;
        gap: 20px;
    }
    .series-main {
        padding: 0 20px;
    }
    .series-title {
        font-size: 34px;
    }
    .chapter-grid {
        gap: 14px;
    }

}

@media (max-width: 1024px) {
    .series-hero {
        padding: 50px 0 32px;
    }
    .series-hero-inner {
        gap: 16px;
        align-items: center;
    }
    .series-cover {
        width: 192px;
        height: 273px;
    }
    .series-title {
        font-size: 30px;
    }
    .series-actions,
    .series-stats {
        width: 100%;
        justify-content: flex-start;
    }
    .series-stats .stat-chip,
    .series-actions .btn {
        font-size: 13px;
    }
    .series-summary {
        padding: 12px 14px;
    }
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .chapter-card {
        padding: 12px;
    }
    .nv-body-grid {
        grid-template-columns: 1fr;
    }
    .nv-cover-block {
        min-height: 220px;
    }

}

@media (max-width: 768px) {
    .series-hero {
        padding-top: 72px;
    }
    .series-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px;
    }
    .series-cover {
        margin: 0 auto;
    }
    .series-hero-right {
        width: 100%;
    }
    .series-title {
        font-size: 26px;
    }
    .series-actions {
        justify-content: center;
    }
    .series-stats {
        justify-content: center;
    }
    .series-alt-row {
        justify-content: center;
    }
    .series-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        text-align: left;
    }
    .tag-row {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
    .tag-label {
        min-width: 70px;
        text-align: left;
    }
    .series-main {
        padding: 0 16px;
    }
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chapter-title {
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    .series-hero-inner {
        padding: 0 14px;
    }
    .series-cover {
        width: 192px;
        height: 273px;
    }
    .series-title {
        font-size: 24px;
    }
    .series-actions {
        gap: 8px;
    }
    .series-tags {
        gap: 10px;
    }
    .tag-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .tag-label {
        min-width: auto;
    }
    .stat-chip {
        padding: 7px 10px;
        font-size: 12px;
    }
    .chapter-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .chapter-card {
        gap: 10px;
    }
    .series-tabs {
        gap: 12px;
    }
    .novel-volume-head {
        align-items: flex-start;
    }
    .nv-left {
        align-items: flex-start;
    }
    .nv-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .nv-read {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .back-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        left: 12px;
    }
    .series-hero {
        padding-top: 68px;
    }
    .series-hero-inner {
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
    .series-cover {
        width: 192px;
        height: 273px;
    }
    .series-title {
        text-align: center;
        font-size: 23px;
        line-height: 1.2;
    }
    .series-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .series-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .series-stats {
        justify-content: flex-start;
        gap: 8px;
    }
    .series-tags {
        align-items: flex-start;
    }
    .tag-row {
        justify-content: flex-start;
    }
    .chapter-info {
        align-items: flex-start;
    }
    .pagination {
        gap: 6px;
    }
    .pag-btn {
        padding: 8px 10px;
    }
    .comment-box {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .series-main {
        padding: 0 12px;
    }
    .series-hero-inner {
        padding: 0 12px;
    }
    .series-title {
        text-align: center;
        font-size: 21px;
    }
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .stat-chip {
        padding: 6px 9px;
        font-size: 11px;
    }
    .tag-pill {
        padding: 5px 8px;
        font-size: 11px;
    }
    .chapter-card {
        padding: 10px;
    }
    .chapter-sub {
        font-size: 13px;
    }
    .chapter-info {
    gap: 0;
    }
}
