/* Auto-extracted from index.html */

.page-shell {
    width: 1554px;
    max-width: calc(100% - 32px);
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
    margin: 0 auto;
    padding: 36px 0;
    gap: 36px;
    box-sizing: border-box;
}

.hero-section {
    align-self: stretch;
    height: auto;
    padding: 0;
    background: #0A0A0A;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
    display: flex;
}

.hero-banner {
    width: 100%;
    height: 343px;
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid #3A3A3A;
}

.hero-swiper .swiper-slide {
    height: 100%;
}

.hero-card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hero-image {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    object-fit: cover;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(180deg, rgba(5.10, 6.38, 15.30, 0.18) 0%, rgba(5.10, 5.10, 12.75, 0.35) 55%, rgba(3.82, 5.10, 12.75, 0.95) 100%);
    pointer-events: none;
}

.hero-info {
    width: 414px;
    left: 102px;
    bottom: 42px;
    position: absolute;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    display: flex;
    z-index: 2;
}

.hero-title {
    align-self: stretch;
    color: white;
    font-size: 22px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
}

.hero-summary {
    align-self: stretch;
    opacity: 0.6;
    color: white;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-play-button {
    width: 142px;
    height: 43px;
    background: #FADC44;
    box-shadow: 0 7px 17px rgba(250, 220, 68, 0.28);
    overflow: hidden;
    border-radius: 9px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: flex;
    text-decoration: none;
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
}

.hero-play-icon {
    width: 20px;
    height: 20px;
}

.text-white-xs {
    color: #181818;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.hero-thumbs {
    display: none;
}

.hero-thumb {
    width: 87px;
    height: 126px;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.hero-thumb.is-active {
    width: 95px;
    height: 137px;
    border: none;
}

.hero-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 9px;
}

.hero-thumb-overlay {
    inset: 0;
    position: absolute;
    background: rgba(0, 0, 0, 0.52);
    border-radius: 9px;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hero-thumb.is-active .hero-thumb-overlay {
    opacity: 0;
}

.hero-thumb:hover:not(.is-active) .hero-thumb-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.hero-tags {
    position: relative;
    left: auto;
    top: auto;
    overflow: hidden;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 7px;
    display: flex;
    flex-wrap: wrap;
    z-index: 2;
}

.hero-tag {
    padding: 5px 10px;
    background: rgba(24, 24, 24, 0.60);
    overflow: hidden;
    border-radius: 5px;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
}

.hero-tag-text {
    color: white;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.content-section {
    align-self: stretch;
    padding: 0;
    background: #0A0A0A;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    display: flex;
}

.section-header {
    width: 100%;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.section-heading {
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    display: flex;
}

.section-title {
    color: white;
    font-size: 22px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
}

.section-subtitle {
    color: #8A8A8A;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.flex-spacer {
    flex: 1 1 0;
    height: 9px;
    position: relative;
}

.ghost-action-button {
    padding: 8px 14px;
    background: #181818;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #2A2A2A;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ghost-action-text {
    color: #F5F5F5;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    display: inline-flex;
    align-items: center;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    position: relative;
    overflow: hidden;
}

.chevron-icon-stroke {
    width: 3px;
    height: 6px;
    left: 6px;
    top: 4px;
    position: absolute;
    border: 2px solid #8F8F9F;
}

.chevron-icon-img {
    width: 14px;
    height: 14px;
    display: block;
}

.card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 14px 16px;
}

.card-row {
    display: contents;
}

.poster-card {
    width: 100%;
    min-width: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.poster-cover {
    align-self: stretch;
    height: auto;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

.poster-cover-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-like-badge {
    height: 24px;
    padding: 5px 7px;
    left: 8px;
    right: auto;
    top: auto;
    bottom: 8px;
    position: absolute;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    box-sizing: border-box;
    z-index: 2;
}

.poster-like-badge-icon {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.55));
}

.poster-like-badge-count {
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 400;
    line-height: 14px;
    white-space: nowrap;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.55);
}

.episode-badge {
    height: 28px;
    padding: 4px 8px;
    left: auto;
    right: 8px;
    top: auto;
    bottom: 8px;
    position: absolute;
    background: rgba(0, 0, 0, 0.60);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 12px;
    color: #fff;
}

.episode-badge .text-white-xs,
.episode-badge-shifted .text-white-xs,
.ranking-episode-badge .text-white-xs {
    color: #fff;
}

.poster-card-body {
    align-self: stretch;
    flex: 1 1 auto;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    display: flex;
    box-sizing: border-box;
}

.poster-card-title {
    align-self: stretch;
    min-height: 20px;
    color: #F5F5F5;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.poster-card-subtitle {
    align-self: stretch;
    min-height: 18px;
    color: #A3A3A3;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.poster-card-meta {
    align-self: stretch;
    margin-top: auto;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.poster-card-tag {
    color: #8A8A8A;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.poster-card-heat {
    color: #808080;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.free-badge-large {
    padding: 4px 8px;
    left: 132px;
    top: 8px;
    position: absolute;
    background: #10B981;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.poster-corner-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.poster-corner-badges .free-badge-large,
.poster-corner-badges .hot-badge-large,
.poster-corner-badges .community-badge,
.poster-corner-badges .ranking-hot-badge,
.poster-corner-badges .ranking-free-badge {
    position: static;
    left: auto;
    top: auto;
}

.episode-badge-shifted {
    height: 28px;
    padding: 4px 8px;
    left: 131px;
    top: 204px;
    position: absolute;
    background: rgba(0, 0, 0, 0.60);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.hot-badge-large {
    padding: 4px 8px;
    left: 132px;
    top: 8px;
    position: absolute;
    background: linear-gradient(90deg, #FF5A5F 0%, #D9152F 100%);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    box-sizing: border-box;
}

.hot-badge-large .text-white-xs {
    color: white;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.ranking-section {
    align-self: stretch;
    padding: 0;
    background: #0A0A0A;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    display: flex;
}

.ranking-main {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    display: flex;
}

.ranking-header {
    align-self: stretch;
    height: 30px;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.ranking-title {
    width: 160px;
    height: 30px;
    color: white;
    font-size: 22px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
}

.ranking-more {
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.ranking-more-text {
    color: #808080;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.ranking-list {
    align-self: stretch;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 14px 16px;
}

.ranking-card {
    width: 100%;
    min-width: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    display: flex;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.section-empty {
    width: 100%;
    grid-column: 1 / -1;
    padding: 32px 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    text-align: center;
}

.ranking-cover {
    align-self: stretch;
    height: auto;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

.ranking-cover-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.ranking-hot-badge {
    padding: 4px 8px;
    left: auto;
    right: 8px;
    top: 8px;
    position: absolute;
    z-index: 2;
    background: linear-gradient(90deg, #FF5A5F 0%, #D9152F 100%);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.ranking-episode-badge {
    height: 28px;
    padding: 4px 8px;
    left: auto;
    right: 8px;
    top: auto;
    bottom: 8px;
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.60);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
    box-sizing: border-box;
}

.ranking-badge {
    width: 43px;
    height: 34px;
    left: 0;
    bottom: 0;
    top: auto;
    position: absolute;
    z-index: 2;
}

.rank-bg-gold,
.rank-bg-silver,
.rank-bg-bronze,
.rank-bg-dark {
    width: 43px;
    height: 34px;
    left: 0;
    top: 0;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.rank-bg-gold {
    background-image: url("/static/images/r_1.png");
}

.rank-bg-silver {
    background-image: url("/static/images/r_2.png");
}

.rank-bg-bronze {
    background-image: url("/static/images/r_3.png");
}

.rank-bg-dark {
    background-image: url("/static/images/r_4.png");
}

.rank-text {
    width: 43px;
    height: 35px;
    left: 0;
    top: 0;
    position: absolute;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 18px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
}

.ranking-card-body {
    align-self: stretch;
    flex: 1 1 auto;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    display: flex;
    box-sizing: border-box;
}

.ranking-card-title {
    align-self: stretch;
    min-height: 20px;
    color: #F5F5F5;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-card-subtitle {
    align-self: stretch;
    color: #A3A3A3;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-card-meta {
    align-self: stretch;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.ranking-card-tag {
    color: #8A8A8A;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    flex-shrink: 0;
}

.ranking-card-heat {
    color: #808080;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    flex-shrink: 0;
}

.rank-spacer {
    flex: 1 1 0;
    height: 8px;
    position: relative;
    min-width: 4px;
}

.ranking-free-badge {
    padding: 4px 8px;
    left: auto;
    right: 8px;
    top: 8px;
    position: absolute;
    z-index: 2;
    background: #10B981;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.sidebar-column {
    display: none;
}

.sidebar-pc {
    display: none;
}

.sidebar-h5 {
    display: none;
}

.sidebar-item {
    align-self: stretch;
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    gap: 11px;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.sidebar-cover {
    width: 114px;
    height: 151px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.sidebar-content {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    display: flex;
}

.sidebar-title {
    align-self: stretch;
    color: white;
    font-size: 16px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 22px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-summary {
    align-self: stretch;
    color: #8A8A8A;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-meta {
    align-self: stretch;
    color: #8A8A8A;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.sidebar-list {
    align-self: stretch;
    max-height: 391px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    -webkit-overflow-scrolling: touch;
}

.sidebar-list-item {
    align-self: stretch;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.sidebar-list-title {
    width: 196px;
    height: 18px;
    color: white;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.sidebar-list-meta {
    color: #A3A3A3;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    flex-shrink: 0;
    white-space: nowrap;
}

.latest-section {
    align-self: stretch;
    padding: 0;
    background: #0A0A0A;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    display: flex;
}

.community-badge {
    padding: 4px 8px;
    left: 132px;
    top: 8px;
    position: absolute;
    background: linear-gradient(90deg, #6AA9FF 0%, #3568FF 100%);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    box-sizing: border-box;
}

.community-badge .text-white-xs {
    color: white;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.legacy-footer-layout {
    align-self: stretch;
    height: 160px;
    background: #0A0A0A;
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    display: flex;
}

.legacy-footer-spacer {
    width: 520px;
    height: 9px;
    position: relative;
}

.footer-meta-text {
    color: #615970;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}


/* —— H5 —— */
.hero-swiper .swiper-pagination.hero-dots {
    width: auto;
    left: auto;
    right: 60px;
    top: auto;
    bottom: 30px;
    position: absolute;
    overflow: visible;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    display: flex !important;
    z-index: 3;
    padding: 0;
    transform: none;
}

.hero-dots .hero-dot,
.hero-dot {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.3;
    border-radius: 9999px;
    flex-shrink: 0;
    margin: 0 !important;
}

.hero-dots .hero-dot--active,
.hero-dot--active {
    width: 36px;
    height: 12px;
    opacity: 1;
    border-radius: 6px;
    background: white;
}

@media (max-width: 767px) {
    .page-shell {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        box-sizing: border-box;
        gap: 18px;
        align-items: stretch;
    }

    /* Hero banner */
    .hero-section {
        height: auto;
        padding: 0;
        background: transparent;
        gap: 0;
    }

    .hero-banner {
        width: 100%;
        height: 146px;
    }

    .hero-swiper {
        border-radius: 7.69px;
        border: 0.3px solid #3A3A3A;
        overflow: hidden;
    }

    /* H5：Swiper 未初始化前只展示首帧，避免多 slide 占位与布局抖动 */
    .hero-swiper.hero-swiper--h5-pending .swiper-wrapper {
        display: block;
    }

    .hero-swiper.hero-swiper--h5-pending .swiper-slide:not(:first-child) {
        display: none;
    }

    .hero-swiper.hero-swiper--h5-pending .hero-dots {
        display: none;
    }

    .hero-card {
        width: 100%;
        height: 146px;
    }

    .hero-image {
        width: 100%;
        height: 146px;
        left: 0;
        top: 0;
        object-fit: cover;
    }

    .hero-overlay {
        width: 100%;
        height: 146px;
        left: 0;
        top: 0;
    }

    /* H5 轮播也要显示标题/标签/介绍/播放按钮（此前这里把它们隐藏了） */
    .hero-thumbs {
        display: none !important;
    }

    .hero-info {
        display: flex !important;
        left: 18px;
        top: 27px;
        right: auto;
        bottom: auto;
        width: 207px;
        gap: 6px;
        z-index: 2;
    }

    .hero-title {
        font-size: 12px;
        line-height: 18px;
    }

    .hero-tags {
        gap: 3.5px;
    }

    .hero-tag {
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 2.5px;
        padding-bottom: 2.5px;
        border-radius: 2.5px;
        background: rgba(24, 24, 24, 0.6);
    }

    .hero-tag-text {
        font-size: 8px;
        line-height: 9px;
    }

    .hero-summary {
        opacity: 0.6;
        font-size: 10px;
        line-height: 16px;
    }

    .hero-play-button {
        width: 71px;
        height: 22px;
        border-radius: 4.5px;
        box-shadow: none;
        gap: 4px;
    }

    .hero-play-icon {
        display: block;
        width: 12px;
        height: 12px;
        object-fit: contain;
    }

    .hero-play-button .text-white-xs {
        font-size: 10px;
        line-height: 16px;
    }

    .hero-swiper .swiper-pagination.hero-dots {
        width: 100%;
        padding: 0 16px;
        left: 0;
        right: auto;
        top: auto;
        bottom: 12px;
        position: absolute;
        overflow: visible;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        display: inline-flex !important;
        box-sizing: border-box;
        z-index: 2;
        transform: none;
    }

    .hero-dots .hero-dot,
    .hero-dot {
        width: 6px;
        height: 6px;
        background: white;
        border-radius: 9999px;
        flex-shrink: 0;
        opacity: 1;
        margin: 0 !important;
    }

    .hero-dots .hero-dot--active,
    .hero-dot--active {
        width: 18px;
        height: 6px;
        background: white;
        border-radius: 4px;
        opacity: 1;
    }

    /* Sections */
    .content-section,
    .latest-section {
        padding: 0;
        background: transparent;
        gap: 18px;
        width: 100%;
    }

    .content-section {
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

    .content-section::after,
    .latest-section::before {
        content: none;
    }

    .section-header,
    .ranking-header {
        width: 100%;
        height: auto;
        align-items: center;
        overflow: visible;
    }

    .section-heading {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .section-subtitle {
        display: none;
    }

    .section-title,
    .ranking-title {
        width: auto;
        height: auto;
        font-size: 18px;
        line-height: 24px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .section-title::before,
    .ranking-title::before {
        content: "";
        width: 6px;
        height: 16px;
        background: #FADC44;
        border-radius: 3px;
        flex-shrink: 0;
    }

    .flex-spacer {
        display: none;
    }

    .ghost-action-button {
        padding: 0;
        background: transparent;
        border: none;
        border: none;
        border-radius: 0;
        gap: 2px;
    }

    .ghost-action-text {
        font-size: 0;
        color: white;
        line-height: 18px;
    }

    .ghost-action-text::after {
        content: "更多";
        font-size: 12px;
        font-family: PingFang SC, sans-serif;
        font-weight: 400;
        line-height: 18px;
        color: white;
    }

    .ranking-more-text {
        color: white;
    }

    .chevron-icon-img {
        width: 18px;
        height: 18px;
        opacity: 1;
        filter: brightness(0) invert(1);
    }

    /* Poster grids → 2 columns */
    .card-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        gap: 7px;
    }

    .card-row {
        display: contents;
    }

    .poster-card {
        width: 100%;
        border-radius: 6px;
        flex-shrink: 1;
    }

    .poster-cover {
        height: 0;
        padding-bottom: 133.33%;
    }

    .poster-cover-img {
        position: absolute;
        inset: 0;
    }

    .episode-badge,
    .episode-badge-shifted {
        left: auto;
        right: 8px;
        top: auto;
        bottom: 8px;
        height: auto;
        min-height: 28px;
    }

    .free-badge-large,
    .hot-badge-large {
        left: auto;
        right: 8px;
        top: 8px;
    }

    .poster-corner-badges {
        top: 8px;
        right: 8px;
    }

    .community-badge {
        left: auto;
        right: 8px;
        top: 8px;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .poster-card-title {
        font-family: "Noto Sans SC", "PingFang SC", sans-serif;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .poster-card-tag,
    .poster-card-subtitle {
        color: #A3A3A3;
    }

    .poster-card-heat {
        color: #D4D4D4;
    }

    /* Ranking + updates stack */
    .ranking-section {
        flex-direction: column;
        padding: 0;
        background: transparent;
        gap: 18px;
        width: 100%;
        border: none;
        flex-wrap: nowrap;
    }

    .ranking-main {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        max-width: none;
    }

    .ranking-main > .ranking-header {
        grid-column: auto;
    }

    .ranking-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        gap: 7px;
        width: 100%;
    }

    .ranking-card {
        width: 100%;
        border-radius: 6px;
    }

    .ranking-cover {
        height: 0;
        padding-bottom: 133.33%;
    }

    .ranking-episode-badge {
        left: auto;
        right: 8px;
        top: auto;
        bottom: 8px;
    }

    .ranking-hot-badge,
    .ranking-free-badge {
        left: auto;
        right: 8px;
        top: 8px;
    }

    .ranking-corner-badges {
        top: 8px;
        right: 8px;
    }

    .ranking-badge {
        top: auto;
        bottom: 0;
        left: 0;
    }

    .ranking-card-title {
        font-size: 14px;
        line-height: 20px;
        font-family: "Noto Sans SC", "PingFang SC", sans-serif;
        font-weight: 700;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ranking-card-body {
        padding: 8px 10px;
        gap: 4px;
    }

    .ranking-card-tag,
    .ranking-card-subtitle {
        color: #A3A3A3;
    }

    .ranking-card-heat {
        color: #D4D4D4;
    }

    .ranking-more {
        text-decoration: none;
        gap: 2px;
    }

    /* 今日更新 list */
    .sidebar-column {
        width: 100%;
        gap: 16px;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        padding-top: 0;
        padding-bottom: 18px;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .update-grid-pc,
    .sidebar-pc {
        display: none;
    }

    .sidebar-h5 {
        align-self: stretch;
        overflow: hidden;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 16px;
        display: inline-flex;
        width: 100%;
    }

    .sidebar-item {
        align-self: stretch;
        align-items: center;
        gap: 11px;
        width: 100%;
    }

    .sidebar-cover {
        width: 114px;
        height: 151px;
        border-radius: 7px;
        flex-shrink: 0;
        object-fit: cover;
    }

    .sidebar-content {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        gap: 11px;
    }

    .sidebar-title {
        font-size: 16px;
        font-family: "Noto Sans SC", "PingFang SC", sans-serif;
        font-weight: 700;
        line-height: 22px;
        color: white;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: unset;
    }

    .sidebar-summary {
        color: #A3A3A3;
        font-size: 12px;
        line-height: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sidebar-meta {
        color: #A3A3A3;
    }

    .latest-section {
        gap: 18px;
        padding-top: 0;
    }

    .latest-section .card-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        gap: 7px;
    }

    .latest-section .poster-card {
        width: 100%;
        flex: 1 1 auto;
        border-radius: 6px;
    }
}

/* Homepage — Figma 40001:93698 / 40001:106658. Scoped to preserve other pages. */
.home-page { --home-accent: #ff4b02; --home-width: 1552px; }
.home-page .page-shell { width: 100%; max-width: none; padding: 0 0 36px; gap: 36px; }
.home-page .page-shell > .content-section,
.home-page .home-notice,
:is(.home-page,.drama-ad-scope) .home-ads { width: var(--home-width); max-width: calc(100% - 64px); margin-inline: auto; }
.home-page .hero-section { width: 100%; background: #0a0a0a; }
.home-page .hero-banner { height: clamp(440px, 36.98vw, 710px); }
.home-page .hero-card, .home-page .hero-image, .home-page .hero-overlay { height: 100%; }
.home-page .hero-swiper { border: 0; border-radius: 0; }
.home-page .hero-overlay { background: linear-gradient(0deg, #0a0a0a 0%, rgba(10,10,10,.6) 22%, transparent 68%), linear-gradient(90deg, rgba(0,0,0,.32), transparent 70%); }
.home-page .hero-info { left: max(32px, calc((100% - var(--home-width)) / 2)); bottom: 70px; width: min(787px, 44%); gap: 16px; }
.home-page .hero-title { font-size: 36px; line-height: 50px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-page .hero-recommend-label { color: var(--home-accent); font-size: 18px; line-height: 24px; padding: 4px 12px; border-radius: 8px; background: rgba(255,75,2,.08); }
.home-page .hero-summary { font-size: 18px; line-height: 25px; opacity: .8; -webkit-line-clamp: 3; }
.home-page .hero-tag-text { font-size: 16px; line-height: 22px; }
.home-page .hero-tags { max-height: 64px; }
.home-page .hero-play-button { background: var(--home-accent); box-shadow: none; }
.home-page .hero-play-button .text-white-xs { color: #fff; font-size: 16px; }
.home-page .hero-play-icon { width: 16px; height: 17px; flex: 0 0 16px; object-fit: contain; }
.home-page .hero-controls { display: flex; position: absolute; z-index: 3; right: max(32px, calc((100% - var(--home-width)) / 2)); bottom: 60px; align-items: center; gap: 14px; max-width: 46%; }
.home-page .hero-thumbs { display: flex; gap: 14px; align-items: center; overflow-x: auto; scrollbar-width: none; min-height: 166px; padding: 2px; }
.home-page .hero-thumbs::-webkit-scrollbar { display: none; }
.home-page .hero-thumb { width: 100px; height: 140px; border-radius: 10px; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.home-page .hero-thumb.is-active { width: 116px; height: 162px; border: 2px solid #fff; }
.home-page .hero-arrow { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-page .hero-swiper .hero-dots { display: none !important; }
.home-page .home-notice { display: flex; align-items: center; gap: 7px; }
.home-page .home-notice-label { flex-shrink: 0; width: 69px; height: 48px; }
.home-page .home-notice-message { min-width: 0; flex: 1; background: #261715; border: 1px solid rgba(255,75,2,.12); border-radius: 8px; color: #ddd; font-size: 18px; line-height: 24px; padding: 11px 18px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #79341a transparent; }
.home-page .home-notice-message span { white-space: nowrap; }
:is(.home-page,.drama-ad-scope) .home-ads { display: grid; grid-template-columns: repeat(16, minmax(0,1fr)); gap: 18px; }
:is(.home-page,.drama-ad-scope) .home-ad { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; text-decoration: none; color: #aaa; font-size: 12px; line-height: 18px; }
:is(.home-page,.drama-ad-scope) .home-ad img { width: 100%; max-width: 80px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 0; border: 0; }
:is(.home-page,.drama-ad-scope) .home-ad span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-page .section-heading { gap: 12px; }
.home-page .section-title { display: flex; gap: 8px; align-items: center; font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; }
.home-page .section-title::before { content: ''; width: 4px; height: 24px; background: var(--home-accent); border-radius: 2px; flex-shrink: 0; }
.home-page .section-subtitle { margin: 0; font-size: 16px; line-height: 22px; }
.home-page .card-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; }
:is(.home-page,.drama-shared-cards) .poster-card { background: #181818; border-radius: 12px; transition: background .2s; }
:is(.home-page,.drama-shared-cards) .poster-card:hover { background: #242424; }
:is(.home-page,.drama-shared-cards) .poster-cover { aspect-ratio: 242 / 323; }
:is(.home-page,.drama-shared-cards) .poster-card-body { padding: 12px 10px; gap: 6px; }
:is(.home-page,.drama-shared-cards) .poster-card-title { font-size: 16px; line-height: 22px; font-weight: 500; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
:is(.home-page,.drama-shared-cards) .poster-card-subtitle { font-size: 14px; line-height: 20px; min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
:is(.home-page,.drama-shared-cards) .poster-card-heat { font-size: 14px; line-height: 20px; }
:is(.home-page,.drama-shared-cards) .poster-card-tag { color: var(--home-accent); background: #2c1a16; }
.home-page :is(.hero-thumb,.hero-arrow,.hero-card,.home-ad,.poster-card,.ghost-action-button,.home-notice-message):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1300px) {
    .home-page .hero-info { bottom: 48px; gap: 12px; }
    .home-page .hero-title { font-size: 28px; line-height: 38px; }
    .home-page .hero-summary { font-size: 15px; line-height: 22px; -webkit-line-clamp: 2; }
    .home-page .hero-controls { bottom: 48px; gap: 8px; }
    .home-page .hero-thumbs { gap: 8px; min-height: 116px; }
    .home-page .hero-thumb { width: 66px; height: 94px; }
    .home-page .hero-thumb.is-active { width: 78px; height: 110px; }
    :is(.home-page,.drama-ad-scope) .home-ads { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 14px; }
    .home-page .card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .home-page .page-shell { gap: 20px; padding-bottom: 24px; }
    .home-page .page-shell > .content-section,
    .home-page .home-notice,
    :is(.home-page,.drama-ad-scope) .home-ads { max-width: calc(100% - 32px); }
    .home-page .hero-banner { height: clamp(280px, 64vw, 390px); }
    .home-page .hero-info { top: auto; left: 16px; bottom: 32px; width: calc(100% - 32px); gap: 8px; }
    .home-page .hero-title { font-size: 22px; line-height: 30px; -webkit-line-clamp: 1; }
    .home-page .hero-recommend-label { font-size: 12px; line-height: 18px; padding: 2px 6px; }
    .home-page .hero-summary { max-width: 85%; font-size: 12px; line-height: 18px; -webkit-line-clamp: 2; }
    .home-page .hero-tag-text { font-size: 10px; line-height: 16px; }
    .home-page .hero-tags { max-height: 22px; }
    .home-page .hero-play-button { width: 96px; height: 32px; gap: 5px; border-radius: 6px; }
    .home-page .hero-play-button .text-white-xs { font-size: 12px; }
    .home-page .hero-play-icon { width: 16px; height: 16px; }
    .home-page .hero-controls { display: none; }
    .home-page .hero-swiper .hero-dots { display: flex !important; }
    .home-page .home-notice { gap: 5px; }
    .home-page .home-notice-label { width: 46px; height: 32px; }
    .home-page .home-notice-message { font-size: 12px; line-height: 18px; padding: 6px 10px; border-radius: 5px; }
    :is(.home-page,.drama-ad-scope) .home-ads { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
    :is(.home-page,.drama-ad-scope) .home-ad img { max-width: 64px; }
    :is(.home-page,.drama-ad-scope) .home-ad { font-size: 10px; line-height: 16px; }
    .home-page .section-heading { gap: 4px; }
    .home-page .section-title { font-size: 18px; line-height: 24px; gap: 6px; }
    .home-page .section-title::before { height: 18px; width: 3px; }
    .home-page .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; }
    :is(.home-page,.drama-shared-cards) .poster-cover { height: auto; padding: 0; }
    :is(.home-page,.drama-shared-cards) .poster-card { border-radius: 8px; }
    :is(.home-page,.drama-shared-cards) .poster-card-body { padding: 8px; gap: 4px; }
    :is(.home-page,.drama-shared-cards) .poster-card-title { font-size: 14px; line-height: 20px; }
    :is(.home-page,.drama-shared-cards) .poster-card-subtitle, :is(.home-page,.drama-shared-cards) .poster-card-heat { font-size: 11px; line-height: 16px; min-height: 16px; }
    :is(.home-page,.drama-shared-cards) .poster-card-meta { flex-wrap: nowrap; gap: 4px; }
    :is(.home-page,.drama-shared-cards) .poster-card-meta .flex-spacer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .hero-thumb, :is(.home-page,.drama-shared-cards) .poster-card { transition: none; }
}

/* Figma homepage: fixed-size ad strip, marquee and aligned poster details. */
.home-page .home-notice-message, :is(.home-page,.drama-ad-scope) .home-ads { overflow: hidden; }
:is(.home-page,.drama-ad-scope) .home-ads { display: block; }
.home-page .home-marquee-track { display: block; width: max-content; will-change: transform; }
:is(.home-page,.drama-ad-scope) .home-ads-track { display: flex; align-items: flex-start; gap: 18px; }
:is(.home-page,.drama-ad-scope) .home-ad { flex: 0 0 80px; width: 80px; gap: 4px; font-size: 12px; line-height: 18px; }
:is(.home-page,.drama-ad-scope) .home-ad img { display: block; width: 80px; height: 80px; max-width: none; border-radius: 12px; }
:is(.home-page,.drama-ad-scope) .home-ad span { width: 100%; text-align: center; }
:is(.home-page,.drama-shared-cards) .poster-cover { aspect-ratio: 242 / 321; border-radius: 12px 12px 0 0; }
:is(.home-page,.drama-shared-cards) .poster-card-body { background: transparent; min-height: 104px; }
:is(.home-page,.drama-shared-cards) .poster-card-tag { border: 1px solid rgba(255,75,2,.2); border-radius: 8px; padding: 2px 8px; line-height: 20px; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.home-page,.drama-shared-cards) .poster-card-heat { white-space: nowrap; color: #808080; }
:is(.home-page,.drama-shared-cards) .poster-like-badge { left: 12px; bottom: 12px; padding: 0; }
:is(.home-page,.drama-shared-cards) .episode-badge { right: 12px; bottom: 12px; height: 24px; min-height: 24px; padding: 2px 8px; }
@media (max-width: 767px) {
    :is(.home-page,.drama-ad-scope) .home-ads-track { gap: 12px; }
    :is(.home-page,.drama-ad-scope) .home-ad { flex-basis: 64px; width: 64px; font-size: 12px; line-height: 18px; }
    :is(.home-page,.drama-ad-scope) .home-ad img { width: 64px; height: 64px; max-width: none; border-radius: 10px; }
    .home-page .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
    .home-page .section-subtitle { display: block; font-size: 12px; line-height: 18px; }
    .home-page .section-header { align-items: flex-start; gap: 8px; }
    :is(.home-page,.drama-shared-cards) .poster-card { background: transparent; border-radius: 0; }
    :is(.home-page,.drama-shared-cards) .poster-cover { border-radius: 12px; aspect-ratio: 168 / 224; }
    :is(.home-page,.drama-shared-cards) .poster-card-body { padding: 8px 0 0; min-height: 86px; gap: 4px; }
    :is(.home-page,.drama-shared-cards) .poster-card-title { font-size: 14px; line-height: 20px; font-weight: 400; }
    :is(.home-page,.drama-shared-cards) .poster-card-subtitle, :is(.home-page,.drama-shared-cards) .poster-card-heat { font-size: 12px; line-height: 18px; min-height: 18px; }
    :is(.home-page,.drama-shared-cards) .poster-card-tag { font-size: 12px; line-height: 18px; }
    :is(.home-page,.drama-shared-cards) .poster-like-badge { left: 8px; bottom: 8px; }
    :is(.home-page,.drama-shared-cards) .episode-badge { right: 8px; bottom: 8px; }
}

:is(.home-page,.drama-shared-cards) .home-corner-badge { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; min-height: 30px; border-radius: 6px; color: #fff; font-size: 14px; line-height: 20px; font-weight: 400; }
:is(.home-page,.drama-shared-cards) .home-corner-badge--hot { background: #ff4d60; }
:is(.home-page,.drama-shared-cards) .home-corner-badge--new { background: #7065ff; }
:is(.home-page,.drama-shared-cards) .home-corner-badge--free { background: #0bbba9; }
:is(.home-page,.drama-shared-cards) .home-corner-badge--vip { background: linear-gradient(115deg, #ffe6b3, #ffd04d); color: #320000; font-family: Georgia, serif; font-size: 18px; }
@media (max-width: 767px) {
  :is(.home-page,.drama-shared-cards) .home-corner-badge { padding: 4px 8px; min-height: 26px; font-size: 12px; line-height: 18px; }
  :is(.home-page,.drama-shared-cards) .home-corner-badge--vip { font-size: 16px; }
}

.home-page .home-rank-badge { position: absolute; left: 0; bottom: 0; z-index: 2; width: 43px; height: 34px; display: grid; place-items: center; border-radius: 8px 8px 8px 0; color: white; font-size: 18px; line-height: 24px; font-weight: 600; background: linear-gradient(225deg,#878787,#494949); }
.home-page .home-rank-badge--1 { background: linear-gradient(225deg,#ffcd9a,#e88933); }
.home-page .home-rank-badge--2 { background: linear-gradient(225deg,#cce9ff,#8da9bf); }
.home-page .home-rank-badge--3 { background: linear-gradient(225deg,#ffbfa4,#d88867); }
@media (max-width:767px) {
 .home-page .ghost-action-button { padding: 3px 8px; min-height: 24px; background: #181818; border: 1px solid #2a2a2a; border-radius: 16px; gap: 4px; flex-shrink: 0; }
 .home-page .home-rank-badge { width: 32px; height: 26px; font-size: 14px; line-height: 18px; border-radius: 6px 6px 6px 0; }
}

/* Shared breadcrumb used by library, detail and playback pages. */
.site-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#999;font-size:14px;line-height:20px;min-width:0}
.site-breadcrumb a{color:inherit;text-decoration:none}
.site-breadcrumb a:hover{color:#fff}
.site-breadcrumb [aria-current]{color:#ff5000;overflow-wrap:anywhere}
@media(max-width:767px){.site-breadcrumb{font-size:12px}.is-detail-page .site-breadcrumb,.is-play-page .site-breadcrumb{display:none}}
