/* Latest releases: a compact library grid with clear reading hierarchy. */
.home-latest-section {
    --latest-bg: #14151c;
    --latest-row: #1c1e27;
    --latest-border: #ffffff0e;
    --latest-text: #f4f4f7;
    --latest-muted: #9599aa;
    --latest-accent: var(--jade-primary);
    padding: 16px 12px 24px;
    color: var(--latest-text);
    direction: ltr;
    scroll-margin-top: 92px
}
.home-latest-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 20px;
    margin-bottom: 4px
}
.home-latest-heading-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}
.home-latest-heading-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border: 1px solid rgba(var(--jade-glow-rgb), 0.149);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(var(--jade-glow-rgb), 0.1098), rgba(var(--jade-glow-rgb), 0.0314));
    color: var(--jade-accent)
}
.home-latest-heading-icon .jd-icon {
    width: 22px;
    height: 22px
}
.home-latest-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25
}
.home-latest-heading p {
    margin: 5px 0 0;
    color: var(--latest-muted);
    font-size: 12px;
    line-height: 1.4
}
.home-latest-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none
}
.home-latest-tabs {
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--latest-border);
    border-radius: 13px;
    background: var(--latest-bg)
}
.home-latest-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--latest-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s
}
.home-latest-tabs svg, .home-latest-browse svg {
    width: 17px;
    height: 17px;
    flex: none
}
.home-latest-tabs button:hover {
    background: #ffffff05;
    color: var(--latest-text)
}
.home-latest-tabs button[aria-selected="true"] {
    background: #eeeeee12;
    color: #fff;
}
.home-latest-browse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 42px;
    padding: 0 15px;
    border: 1px solid var(--latest-border);
    border-radius: 12px;
    color: var(--latest-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s, border-color .2s
}
.home-latest-browse:hover {
    color: var(--latest-text);
    border-color: rgba(var(--jade-glow-rgb), 0.3333)
}
[data-jd-latest-panel] {
    display: grid;
    grid-template-columns:minmax(0, 1fr);
    gap: 16px
}
[data-jd-latest-panel][hidden] {
    display: none !important
}
.home-latest-card {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--latest-border);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--latest-bg), color-mix(in srgb, var(--latest-bg) 94%, #292c3c));
    box-shadow: 0 5px 20px #00000012;
    transition: border-color .2s, box-shadow .2s
}
.home-latest-card:hover {
    border-color: rgba(var(--jade-glow-rgb), 0.2235);
    box-shadow: 0 8px 28px #00000020
}
.home-latest-card-layout {
    display: grid;
    grid-template-columns:112px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px
}
.home-latest-cover {
    position: relative;
    display: block;
    width: 112px;
    height: 174px;
    overflow: hidden;
    border-radius: 10px;
    background: #08090f
}
.home-latest-cover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}
.home-latest-card:hover .home-latest-cover > img {
    transform: scale(1.035)
}
.home-latest-type {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: max-content;
    max-width: calc(100% - 12px);
    padding: 4px 7px;
    border: 1px solid #ffffff26;
    border-radius: 6px;
    background: #0a0b15bf;
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}
.home-latest-type .jd-icon {
    width: 12px;
    height: 12px;
    flex: none
}
.home-latest-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 174px;
    padding: 3px 1px 0
}
.home-latest-title {
    display: block
}
.home-latest-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color .2s
}
.home-latest-title:hover h3 {
    color: var(--jade-accent)
}
.home-latest-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    margin: 9px 0 11px
}
.home-latest-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--latest-muted);
    font-size: 10px;
    line-height: 1.3
}
.home-latest-rating .jd-icon {
    width: 12px;
    height: 12px;
    fill: #f4bf4d;
    stroke: #f4bf4d;
    flex: none
}
.home-latest-meta .jd-status {
    gap: 5px;
    font-size: 10px;
    line-height: 1.3;
    padding: 3px 6px;
    border: 1px solid color-mix(in srgb, var(--jd-status-color) 15%, transparent);
    border-radius: 6px;
    background: color-mix(in srgb, var(--jd-status-color) 8%, transparent)
}
.home-latest-meta .jd-status-dot {
    width: 5px;
    height: 5px
}
.home-latest-chapter-heading {
    display: none;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    color: var(--latest-muted);
    font-size: 10px;
    font-weight: 500
}
.home-latest-chapter-heading > span {
    height: 1px;
    flex: 1;
    background: var(--latest-border)
}
.home-latest-chapters {
    display: grid;
    gap: 5px
}
.home-latest-chapter {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 29px;
    padding: 6px 8px;
    border: 1px solid var(--latest-border);
    border-radius: 7px;
    background: var(--latest-row);
    color: var(--latest-text);
    font-size: 11px;
    line-height: 1.2;
    transition: background .2s, border-color .2s
}
.home-latest-chapter.is-latest {
    background: linear-gradient(100deg, rgba(var(--jade-glow-rgb), 0.0431), var(--latest-row));
    border-left: 2px solid rgba(var(--jade-glow-rgb), 0.6)
}
.home-latest-chapter:hover {
    background: color-mix(in srgb, var(--latest-row) 90%, var(--jade-primary));
    border-color: rgba(var(--jade-glow-rgb), 0.2588)
}
.home-latest-chapter-number {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: none;
    white-space: nowrap
}
.home-latest-chapter-number strong {
    font-size: inherit;
    font-weight: 600
}
.home-latest-chapter-number i {
    width: 4px;
    height: 4px;
    flex: none;
    background: var(--latest-muted);
    border-radius: 50%
}
.home-latest-chapter.is-latest .home-latest-chapter-number i {
    background: var(--jade-primary)
}
.home-latest-chapter-number svg {
    width: 12px;
    height: 12px;
    color: #f4bf4d
}
.home-latest-chapter time {
    margin-left: auto;
    min-width: 0;
    color: var(--latest-muted);
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}
.home-latest-row-arrow {
    display: none;
    flex: none;
    color: var(--latest-muted)
}
.home-latest-row-arrow .jd-icon {
    width: 12px;
    height: 12px;
    transform: rotate(-90deg)
}
.home-latest-empty {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 10px 8px;
    border: 1px dashed var(--latest-border);
    border-radius: 8px;
    color: var(--latest-muted);
    font-size: 11px
}
.home-latest-empty .jd-icon {
    width: 14px;
    height: 14px;
    flex: none
}
.home-latest-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 12px 2px 3px;
    color: var(--latest-muted);
    font-size: 10px;
    font-weight: 500
}
.home-latest-open .jd-icon {
    width: 14px;
    height: 14px;
    transform: rotate(-90deg);
    color: var(--jade-accent)
}
.home-latest-open:hover {
    color: var(--jade-accent)
}
.home-latest-section-empty {
    margin: 0;
    padding: 32px;
    border: 1px dashed var(--latest-border);
    border-radius: 16px;
    color: var(--latest-muted);
    font-size: 14px;
    grid-column: 1 / -1
}
.home-latest-section :is(a,button):focus-visible, [data-jd-latest-panel]:focus-visible {
    outline: 2px solid var(--jade-primary);
    outline-offset: 3px
}
@media (min-width: 640px) {
    .home-latest-card-layout {
        grid-template-columns:180px minmax(0, 1fr);
        gap: 16px
    }

    .home-latest-cover {
        width: 180px;
        height: 270px
    }

    .home-latest-content {
        min-height: 270px;
        padding: 5px 5px 1px 0
    }

    .home-latest-content h3 {
        font-size: 20px;
        line-height: 1.35
    }

    .home-latest-meta {
        margin: 8px 0 10px;
        gap: 6px 10px
    }

    .home-latest-rating, .home-latest-meta .jd-status {
        font-size: 11px
    }

    .home-latest-rating .jd-icon {
        width: 13px;
        height: 13px
    }

    .home-latest-chapter-heading {
        display: flex;
        margin-bottom: 6px
    }

    .home-latest-chapters {
        gap: 4px
    }

    .home-latest-chapter {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 12px
    }

    .home-latest-chapter time {
        font-size: 10px
    }

    .home-latest-row-arrow {
        display: block
    }

    .home-latest-open {
        font-size: 11px;
        padding-top: 6px;
        padding-bottom: 1px
    }

    .home-latest-type {
        bottom: 9px;
        left: 9px;
        font-size: 11px;
        padding: 5px 9px
    }
}
@media (min-width: 768px) {
    [data-jd-latest-panel] {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .home-latest-card-layout {
        grid-template-columns:136px minmax(0, 1fr);
        gap: 12px
    }

    .home-latest-cover {
        width: 136px;
        height: 204px
    }

    .home-latest-content {
        min-height: 204px
    }

    .home-latest-content h3 {
        font-size: 18px
    }
}
@media (min-width: 1536px) {
    [data-jd-latest-panel] {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}
@media (max-width: 640px) {
    .home-latest-section {
        padding: 12px 0 20px
    }

    .home-latest-heading {
        flex-wrap: wrap;
        gap: 15px;
        padding-bottom: 16px
    }

    .home-latest-heading h2 {
        font-size: 21px
    }

    .home-latest-heading p {
        font-size: 11px
    }

    .home-latest-heading-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px
    }

    .home-latest-heading-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px
    }

    .home-latest-tabs button {
        min-height: 32px;
        padding: 0 16px;
        font-size: 12px
    }

    .home-latest-browse {
        height: 40px;
        font-size: 11px
    }
}
html[data-theme="light"] .home-latest-section {
    --latest-bg: #fff;
    --latest-row: #f3f4f8;
    --latest-border: #15182812;
    --latest-text: #282c3a;
    --latest-muted: #72788b
}
html[data-theme="light"] .home-latest-card {
    box-shadow: 0 5px 20px #15182807
}
@media (prefers-reduced-motion: reduce) {
    .home-latest-section * {
        transition: none !important
    }

    .home-latest-card:hover .home-latest-cover > img {
        transform: none
    }
}


.jd-home-slider {
    position: relative;
    width: min(1360px, calc(100% - 32px));
    margin: 22px auto 26px;
    overflow: hidden;
    border: 1px solid #ffffff15;
    border-radius: 20px;
    background: #111218
}
.jd-home-slider .swiper {
    width: 100%;
    height: clamp(280px, 40vw, 530px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
}
.jd-home-slider .swiper::-webkit-scrollbar {
    display: none
}
.jd-home-slider .swiper-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: flex-start;
    gap: 0
}
.jd-home-slider .swiper-slide {
    flex: 0 0 100%;
    width: 100% !important;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 1
}
.jd-home-slide-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden
}
.jd-home-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover
}
.jd-home-slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 9px;
    padding: 32px 40px 72px;
    color: #fff;
    background: linear-gradient(0deg, #050608e8, transparent 70%);
    pointer-events: none
}
.jd-home-slide-caption small {
    padding: 4px 10px;
    border: 1px solid #ffffff35;
    border-radius: 6px;
    background: #1118;
    font-size: 11px;
    letter-spacing: .08em
}
.jd-home-slide-caption strong {
    max-width: 75%;
    font-family: var(--jd-font-manga) !important;
    font-size: clamp(20px, 2.4vw, 34px);
    line-height: 1.3
}
.jd-home-slide-caption > span {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #ffffffc7
}
.jd-home-slider-controls {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 40px;
    display: flex;
    gap: 8px;
    align-items: center
}
.jd-home-slider-controls > button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: #13141ba8;
    border: 1px solid #ffffff28;
    border-radius: 9px;
    color: #fff;
    font-size: 22px;
    cursor: pointer
}
.jd-home-slider-controls [data-slider-pause] {
    font-size: 12px;
    margin-left: 6px
}
.jd-home-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 4px
}
.jd-home-slider-dots button {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 6px;
    background: #ffffff60;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 0 5px transparent
}
.jd-home-slider-dots button[aria-pressed="true"] {
    width: 22px;
    background: var(--jade-primary)
}
.jd-home-slider-controls button:focus-visible {
    outline: 2px solid var(--jade-primary);
    outline-offset: 4px
}
@media (max-width: 600px) {
    .jd-home-slider {
        width: calc(100% - 24px);
        margin: 12px auto 20px;
        border-radius: 14px
    }

    .jd-home-slider .swiper {
        height: 240px
    }

    .jd-home-slide-caption {
        padding: 20px 20px 60px;
        gap: 6px
    }

    .jd-home-slide-caption strong {
        max-width: 100%;
        font-size: 20px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden
    }

    .jd-home-slide-caption small {
        font-size: 10px
    }

    .jd-home-slide-caption > span {
        font-size: 11px
    }

    .jd-home-slider-controls {
        left: 20px;
        bottom: 12px
    }
}
html[data-theme="light"] .home-latest-section {
    background: #f7f8fc;
    border-radius: 20px;
    --latest-muted: #626a7d
}
html[data-theme="light"] .home-latest-meta .jd-status[data-status="ongoing"] {
    --jd-status-color: #147d46
}
html[data-theme="light"] .home-latest-meta .jd-status[data-status="complete"] {
    --jd-status-color: #1471b9
}
html[data-theme="light"] .home-latest-meta .jd-status[data-status="drop"] {
    --jd-status-color: #bc2640
}
#home-latest-heading {
    scroll-margin-top: 104px
}

/* Poster shelf: perspective is on a stable hit area, with a hinge along the bottom edge. */
.home-popular-section {
    --popular-text: #f4f4f7;
    --popular-muted: #9599aa;
    --popular-line: #ffffff10;
    width: min(1280px, calc(100% - 32px));
    margin: 12px auto 24px;
    direction: ltr;
    color: var(--popular-text);
    scroll-margin-top: 94px
}
.home-popular-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px
}
.home-popular-heading-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}
.home-popular-heading-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--jade-glow-rgb), 0.149);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(var(--jade-glow-rgb), 0.1098), rgba(var(--jade-glow-rgb), 0.0314));
    color: var(--jade-accent)
}
.home-popular-heading-icon svg {
    width: 24px;
    height: 24px
}
.home-popular-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    scroll-margin-top: 104px
}
.home-popular-heading p {
    margin: 5px 0 0;
    color: var(--popular-muted);
    font-size: 12px;
    line-height: 1.4
}
.home-popular-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none
}
.home-popular-actions > a, .home-popular-actions > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 40px;
    border: 1px solid var(--popular-line);
    border-radius: 12px;
    background: transparent;
    color: var(--popular-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s
}
.home-popular-actions > a {
    padding: 0 15px
}
.home-popular-actions > button {
    width: 36px;
    padding: 0
}
.home-popular-actions svg {
    width: 17px;
    height: 17px;
    flex: none
}
.home-popular-actions [data-popular-prev] svg {
    transform: rotate(90deg)
}
.home-popular-actions [data-popular-next] svg {
    transform: rotate(-90deg)
}
.home-popular-actions > :hover:not(:disabled) {
    border-color: rgba(var(--jade-glow-rgb), 0.3137);
    background: rgba(var(--jade-glow-rgb), 0.0392);
    color: var(--popular-text)
}
.home-popular-actions > button:disabled {
    opacity: .35;
    cursor: default
}
.home-popular-track {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 2px;
    padding: 26px 12px 34px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain
}
.home-popular-track::-webkit-scrollbar {
    display: none
}
.home-popular-card-shell {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    height: 300px;
    perspective: 950px;
    scroll-snap-align: start
}
.home-popular-card {
    position: relative;
    display: block;
    width: 200px !important;
    height: 300px;
    border-radius: 15px;
    background: #12141d;
    box-shadow: 0 8px 18px #0003;
    transform-origin: 50% 100%;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform .45s cubic-bezier(.2, .65, .25, 1), box-shadow .45s ease;
    isolation: isolate;
    outline-offset: 5px
}
.home-popular-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit
}
.home-popular-card:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid #ffffff20;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color .35s
}
.home-popular-card:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 20%, #ffffff16 40%, #ffffff03 55%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s
}
.home-popular-type {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 8px;
    border: 1px solid #ffffff26;
    border-radius: 6px;
    background: #0b0d19a8;
    backdrop-filter: blur(9px);
    color: #fff;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
    z-index: 1
}
.home-popular-rank {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid #ffffff30;
    border-radius: 9px;
    background: #0b0d19a8;
    backdrop-filter: blur(9px);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    z-index: 1
}
.home-popular-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    color: #fff;
    border-radius: inherit;
    background: linear-gradient(0deg, #080911fa 0%, #080911bb 22%, transparent 60%)
}
.home-popular-caption > strong {
    font-family: var(--jd-font-manga) !important;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden
}
.home-popular-read {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #ffffffb0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4
}
.home-popular-read i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border: 1px solid #ffffff26;
    border-radius: 8px;
    background: #ffffff0a;
    color: #fff;
    transition: background .35s, border-color .35s
}
.home-popular-read svg {
    width: 13px;
    height: 13px;
    transform: rotate(-90deg)
}
.home-popular-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--popular-line);
    border-radius: 14px;
    color: var(--popular-muted);
    font-size: 13px
}
.home-popular-section :is(a,button):focus-visible, .home-popular-track:focus-visible {
    outline: 2px solid var(--jade-primary);
    outline-offset: 4px
}
.home-popular-card:focus-visible {
    box-shadow: 0 12px 28px rgba(var(--jade-glow-rgb), 0.1451)
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .home-popular-card-shell:hover .home-popular-card {
        transform: translateY(-4px) rotateX(11deg) rotateY(-6deg);
        box-shadow: 8px 22px 34px #0006, -1px 0 0 rgba(var(--jade-glow-rgb), 0.2)
    }

    .home-popular-card-shell:hover .home-popular-card:before {
        border-color: rgba(var(--jade-glow-rgb), 0.4196)
    }

    .home-popular-card-shell:hover .home-popular-card:after {
        opacity: 1
    }

    .home-popular-card-shell:hover .home-popular-read i {
        background: var(--jade-primary);
        border-color: var(--jade-primary)
    }
}
@media (max-width: 600px) {
    .home-popular-section {
        width: calc(100% - 24px);
        margin-top: 18px;
        margin-bottom: 18px
    }

    .home-popular-heading {
        padding: 0;
        gap: 10px
    }

    .home-popular-heading-copy {
        gap: 9px
    }

    .home-popular-heading-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px
    }

    .home-popular-heading-icon svg {
        width: 20px;
        height: 20px
    }

    .home-popular-heading h2 {
        font-size: 20px
    }

    .home-popular-heading p {
        font-size: 10px
    }

    .home-popular-actions > a {
        height: 36px;
        padding: 0 10px;
        font-size: 10px
    }

    .home-popular-actions > button {
        display: none
    }

    .home-popular-track {
        gap: 16px;
        padding: 20px 0 26px;
        scroll-padding-inline: 0
    }
}
html[data-theme="light"] .home-popular-section {
    --popular-text: #282c3a;
    --popular-muted: #626a7d;
    --popular-line: #15182812;
    background: #f7f8fc;
    border-radius: 20px;
    padding-top: 16px
}
@media (prefers-reduced-motion: reduce) {
    .home-popular-section *, .home-popular-card:before, .home-popular-card:after {
        transition: none !important
    }

    .home-popular-card-shell:hover .home-popular-card {
        transform: none
    }
}
/* Continue Reading uses the same heading, surfaces and accent as the other shelves. */
.home-history-section {
    --history-bg: #14151c;
    --history-row: #1c1e27;
    --history-line: #ffffff0e;
    --history-text: #f4f4f7;
    --history-muted: #9599aa;
    margin: 20px 0 32px;
    padding: 0 12px;
    color: var(--history-text);
    direction: ltr;
    scroll-margin-top: 94px
}
.home-history-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}
.home-history-heading-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--jade-glow-rgb), 0.149);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(var(--jade-glow-rgb), 0.1098), rgba(var(--jade-glow-rgb), 0.0314));
    color: var(--jade-accent)
}
.home-history-heading-icon svg {
    width: 23px;
    height: 23px
}
.home-history-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    scroll-margin-top: 104px
}
.home-history-heading p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--history-muted)
}
.home-history-sync {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--history-line);
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(var(--jade-glow-rgb), 0.0235), var(--history-bg))
}
.home-history-sync-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 11px;
    background: rgba(var(--jade-glow-rgb), 0.0706);
    color: var(--jade-accent)
}
.home-history-sync-icon svg {
    width: 20px;
    height: 20px
}
.home-history-sync > div {
    flex: 1;
    min-width: 0
}
.home-history-sync strong {
    font-size: 13px;
    font-weight: 650
}
.home-history-sync p {
    margin: 3px 0 0;
    color: var(--history-muted);
    font-size: 11px;
    line-height: 1.5
}
.home-history-sync > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(var(--jade-glow-rgb), 0.1608);
    border-radius: 10px;
    background: rgba(var(--jade-glow-rgb), 0.0745);
    color: var(--jade-accent);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s
}
.home-history-sync > a:hover {
    background: rgba(var(--jade-glow-rgb), 0.149)
}
.home-history-sync > a .jd-icon {
    width: 15px;
    height: 15px;
    transform: rotate(-90deg)
}
.home-history-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr);
    gap: 16px
}
.home-history-card {
    display: grid;
    grid-template-columns:104px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--history-line);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--history-bg), color-mix(in srgb, var(--history-bg) 94%, #292c3c));
    box-shadow: 0 5px 20px #00000012;
    transition: border-color .2s, box-shadow .2s
}
.home-history-card:hover {
    border-color: rgba(var(--jade-glow-rgb), 0.2235);
    box-shadow: 0 8px 28px #00000020
}
.home-history-cover {
    position: relative;
    display: block;
    width: 104px;
    min-height: 156px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--history-row)
}
.home-history-cover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}
.home-history-card:hover .home-history-cover > img {
    transform: scale(1.035)
}
.home-history-cover-placeholder {
    display: grid;
    position: absolute;
    inset: 0;
    place-items: center;
    color: var(--history-muted)
}
.home-history-cover-placeholder svg {
    width: 32px;
    height: 32px
}
.home-history-chapter {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    padding: 22px 6px 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(0deg, #080911f5, transparent)
}
.home-history-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 156px;
    padding: 2px 2px 0 0
}
.home-history-title h3 {
    margin: 0;
    font-family: var(--jd-font-manga) !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden
}
.home-history-title:hover {
    color: var(--jade-accent)
}
.home-history-updated {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 10px;
    color: var(--history-muted);
    font-size: 10px;
    line-height: 1.3
}
.home-history-updated svg {
    width: 12px;
    height: 12px;
    flex: none
}
.home-history-updated > span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}
.home-history-progress {
    margin-top: auto
}
.home-history-progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 10px;
    line-height: 1.3
}
.home-history-progress-labels strong {
    font-weight: 650;
    color: var(--jade-accent)
}
.home-history-progress-labels > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--history-muted)
}
.home-history-progress-track {
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--history-row);
    border: 1px solid var(--history-line)
}
.home-history-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--jade-primary), var(--jade-accent))
}
.home-history-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(var(--jade-glow-rgb), 0.1882);
    border-radius: 8px;
    background: rgba(var(--jade-glow-rgb), 0.0667);
    color: var(--jade-accent);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    transition: background .2s
}
.home-history-resume svg {
    width: 14px;
    height: 14px;
    flex: none
}
.home-history-resume:hover {
    background: var(--jade-primary);
    border-color: var(--jade-primary);
    color: #fff
}
.home-history-card.is-complete .home-history-progress-labels strong {
    color: #38c17f
}
.home-history-card.is-complete .home-history-progress-track > span {
    background: linear-gradient(90deg, #198a55, #38c17f)
}
.home-history-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border: 1px dashed var(--history-line);
    border-radius: 16px;
    background: var(--history-bg)
}
.home-history-empty > span {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #ffffff04;
    color: var(--history-muted)
}
.home-history-empty .jd-icon {
    width: 22px;
    height: 22px
}
.home-history-empty > div {
    flex: 1;
    min-width: 0
}
.home-history-empty strong {
    font-size: 14px;
    font-weight: 600
}
.home-history-empty p {
    margin: 5px 0 0;
    color: var(--history-muted);
    font-size: 12px;
    line-height: 1.5
}
.home-history-empty > a {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    font-size: 12px;
    font-weight: 600
}
.home-history-empty > a .jd-icon {
    width: 14px;
    height: 14px;
    transform: rotate(-90deg)
}
.home-history-section a:focus-visible {
    outline: 2px solid var(--jade-primary);
    outline-offset: 3px
}
@media (min-width: 768px) {
    .home-history-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}
@media (min-width: 1200px) {
    .home-history-grid {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}
@media (max-width: 600px) {
    .home-history-section {
        margin: 16px 0 24px;
        padding: 0
    }

    .home-history-heading {
        gap: 9px;
        margin-bottom: 16px
    }

    .home-history-heading-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px
    }

    .home-history-heading-icon svg {
        width: 20px;
        height: 20px
    }

    .home-history-heading h2 {
        font-size: 20px
    }

    .home-history-heading p {
        font-size: 11px
    }

    .home-history-card {
        grid-template-columns:96px minmax(0, 1fr);
        gap: 12px;
        padding: 8px
    }

    .home-history-cover {
        width: 96px;
        min-height: 144px
    }

    .home-history-content {
        min-height: 144px
    }

    .home-history-title h3 {
        font-size: 17px
    }

    .home-history-sync {
        flex-wrap: wrap;
        padding: 12px
    }

    .home-history-sync > a {
        margin-left: 48px;
        min-height: 34px
    }

    .home-history-empty {
        flex-wrap: wrap;
        padding: 18px
    }

    .home-history-empty > a {
        margin-left: 60px
    }
}
html[data-theme="light"] .home-history-section {
    --history-bg: #fff;
    --history-row: #f1f3f8;
    --history-line: #15182812;
    --history-text: #282c3a;
    --history-muted: #626a7d;
    background: #f7f8fc;
    border-radius: 20px;
    padding-top: 18px;
    padding-bottom: 18px
}
html[data-theme="light"] .home-history-progress-labels strong, html[data-theme="light"] .home-history-sync > a, html[data-theme="light"] .home-history-empty > a, html[data-theme="light"] .home-history-resume {
    color: var(--jade-accent)
}
html[data-theme="light"] .home-history-card.is-complete .home-history-progress-labels strong {
    color: #147d46
}
html[data-theme="light"] .home-history-resume:hover {
    color: #fff
}
@media (prefers-reduced-motion: reduce) {
    .home-history-section * {
        transition: none !important
    }

    .home-history-card:hover .home-history-cover > img {
        transform: none
    }
}

/* A visible, descriptive homepage heading complements the individual series titles. */
.jd-home-intro{padding:4px 0 26px;border-bottom:1px solid rgba(var(--jade-glow-rgb),.15);margin-bottom:30px}
.jd-home-intro h1{font-size:clamp(22px,2.2vw,32px);font-weight:700;line-height:1.35;letter-spacing:-.7px;margin:0 0 10px;color:inherit}
.jd-home-intro p{font-size:12px;line-height:1.8;color:#95aaa0;margin:0}
html[data-theme=light] .jd-home-intro p{color:#536e61}
@media(max-width:600px){.jd-home-intro{padding-bottom:22px;margin-bottom:24px}.jd-home-intro p{font-size:11px}}
