/* 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: .5em;
    }

    .section-title::before,
    .ranking-title::before {
        content: "";
        width: calc(1em / 3);
        height: .916667em;
        background: #ff4b02;
        border-radius: .25em;
        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-badges { display: flex; align-items: center; gap: 8px; }
.home-page .hero-mobile-only { display: none; }
.home-page .hero-play-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-page .hero-tags--no-tags { display: none; }
.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: fill; 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: .5em; align-items: center; font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; }
/* Figma 40012:369142: 8 x 22px with 6px corners and a 12px gap at 24px type. */
.home-page .section-title::before { content: ''; width: calc(1em / 3); height: .916667em; background: var(--home-accent); border-radius: .25em; 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; }
@media (min-width: 861px) {
    html body.home-page .home-recent-updates .card-grid { grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
}
: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); }
    /* Figma 44979:232182 — 375 × 426, portrait cover and bottom content. */
    .home-page .hero-banner { height: 113.6vw; min-height: 390px; max-height: 600px; }
    .home-page .hero-image { top: -12px; height: calc(100% + 1px); object-position: center; }
    .home-page .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.6), transparent 50%), linear-gradient(0deg, #0a0a0c, rgba(10,10,12,.5) 50%, transparent); }
    .home-page .hero-info { top: auto; left: 16px; bottom: 16px; width: calc(100% - 32px); gap: 0; }
    .home-page .hero-desktop-only { display: none; }
    .home-page .hero-mobile-only { display: inline; }
    .home-page .hero-badges { margin-bottom: 6px; min-height: 22px; }
    /* Figma 44979:232189 / 232192: resolved Orange/Yellow variables. */
    .home-page .hero-recommend-label,
    .home-page .hero-rating { box-sizing: border-box; flex: 0 0 auto; font-family: "PingFang SC", sans-serif; font-size: 10px; white-space: nowrap; border-radius: 6px; }
    .home-page .hero-recommend-label { display: inline-flex; align-items: center; gap: 4px; color: #f89300; font-weight: 500; line-height: 15px; letter-spacing: .5px; padding: 1px 7px; border: 1px solid rgba(248,147,0,.08); background: rgba(248,147,0,.08); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
    .home-page .hero-recommend-label::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: rgba(255,255,255,.05); }
    .home-page .hero-rating { display: inline-block; min-width: 90px; color: #ffe120; font-weight: 400; padding: 2px 8px; border: 1px solid rgba(255,225,32,.1); line-height: 16px; letter-spacing: 0; background: rgba(255,225,32,.1); box-shadow: none; }
    .home-page .hero-title { font-size: 20px; line-height: 28px; font-weight: 500; -webkit-line-clamp: 1; text-shadow: 0 2px 1px rgba(0,0,0,.06), 0 4px 1.5px rgba(0,0,0,.07); }
    .home-page .hero-tags { display: flex; flex-wrap: nowrap; align-items: center; max-height: 18px; margin-top: 4px; gap: 8px; max-width: 100%; color: #eee; }
    .home-page .hero-tag { flex: 0 0 auto; padding: 0; border-radius: 0; background: none; gap: 8px; align-items: center; }
    .home-page .hero-tag:nth-of-type(n+4) { display: none; }
    .home-page .hero-tag + .hero-tag::before, .home-page .hero-tag ~ .hero-audience::before { content: '•'; font-size: 12px; line-height: 18px; }
    .home-page .hero-tag-text { color: inherit; font-size: 12px; line-height: 18px; white-space: nowrap; }
    .home-page .hero-audience { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: 12px; line-height: 18px; white-space: nowrap; }
    .home-page .hero-summary { max-width: 100%; margin-top: 6px; font-size: 12px; line-height: 18px; opacity: 1; color: #8b8b8b; -webkit-line-clamp: 2; }
    .home-page .hero-play-button { width: 100%; height: 40px; flex-shrink: 0; margin-top: 12px; gap: 8px; border-radius: 10px; }
    .home-page .hero-play-button .text-white-xs { font-size: 12px; line-height: 18px; }
    .home-page .hero-play-icon { width: 16px; height: 16px; }
    .home-page .hero-controls { display: none; }
    .home-page .hero-swiper .hero-dots { display: none !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; }
    .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: flex; width: max-content; }
.home-page .home-marquee-group { display: flex; flex: 0 0 auto; align-items: inherit; gap: inherit; width: max-content; }
.home-page .home-notice-message .home-marquee-track { gap: 24px; }
: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; }
}

@media(max-width:767px){.is-detail-page .site-breadcrumb,.is-play-page .site-breadcrumb{display:none}}

/* 本地占位图保持 cover；实际广告图片使用 fill。 */
:is(.home-page,.drama-ad-scope) .home-ad img[src*="/static/images/placeholder-"] { object-fit: cover; }

/* 首页分类展示项由后台设置控制；窄屏仍保持两列。 */
.home-page .home-category-card { display: contents; }
.home-page .home-category-card[hidden] { display: none !important; }
.home-page .home-category-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.home-page .home-category-actions .ghost-action-button,
.home-page .home-refresh-button,
.home-page .home-recent-updates .ghost-action-button,
.home-page .home-hot-more {
  min-height: 28px;
  padding: 4px 4px 4px 10px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #1e1e1e;
  color: #aaa;
  font: 400 12px/18px "PingFang SC", sans-serif;
  gap: 4px;
}
.home-page .home-refresh-button { display: inline-flex; align-items: center; cursor: pointer; }
.home-page .home-refresh-button:disabled { opacity: .45; cursor: default; }
.home-page .home-mobile-chevron { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; }
.home-page .home-refresh-button img,
.home-page .home-category-actions .chevron-icon-img,
.home-page .home-recent-updates .chevron-icon-img,
.home-page .home-hot-more .chevron-icon-img { width: 16px; height: 16px; filter: invert(1); }
.home-page .home-refresh-mobile-icon { display: none; }
.home-page .home-category-actions .ghost-action-text,
.home-page .home-recent-updates .ghost-action-text,
.home-page .home-hot-more .ghost-action-text { color: #aaa; }
.home-page .home-topic-more-mobile { display: none; }
.home-page .home-refresh-button:not(:disabled):hover,
.home-page .home-category-actions .ghost-action-button:hover,
.home-page .home-recent-updates .ghost-action-button:hover,
.home-page .home-hot-more:hover { background: #2a2a2a; color: #fff; }
.home-page .home-refresh-button:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }

/* 最新短剧与按观看量排序的热播榜。 */
.home-page .home-latest-layout { width: var(--home-width); max-width: calc(100% - 64px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .38fr); gap: 20px; align-items: start; }
.home-page .home-latest-layout:not(.has-hot-rank) { display: block; }
.home-page .home-recent-updates, .home-page .home-hot-rank { width: 100%; min-width: 0; }
.home-page .home-hot-rank { display: flex; flex-direction: column; gap: 24px; }
.home-page .home-hot-rank-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-page .home-hot-rank .section-title::before, .home-page .home-hot-mobile-title, .home-page .home-hot-live-label, .home-page .home-hot-more-mobile { display: none; }
.home-page .home-hot-list { display: flex; flex-direction: column; margin: 0; padding: 16px 18px; list-style: none; background: #202020; border-radius: 16px; }
.home-page .home-hot-item { min-width: 0; }
.home-page .home-hot-summary { display: flex; align-items: center; width: 100%; min-height: 60px; padding: 0; gap: 12px; border: 0; background: transparent; color: #eee; text-align: left; font: 400 14px/20px "PingFang SC", sans-serif; cursor: pointer; }
.home-page .home-hot-summary:focus-visible, .home-page .home-hot-detail a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.home-page .home-hot-compact-cover, .home-page .home-hot-compact-subtitle { display: none; }
.home-page .home-hot-compact-copy { display: block; min-width: 0; flex: 1; }
.home-page .home-hot-compact-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-page .home-hot-title-line { display: flex; align-items: center; min-width: 0; gap: 6px; }
.home-page .home-hot-title-line :is(.home-hot-compact-title,.home-hot-detail-title) { min-width: 0; flex: 0 1 auto; }
.home-page .home-hot-score { flex: 0 0 auto; color: #999; font-size: 12px; line-height: 18px; font-weight: 400; white-space: nowrap; }
.home-page .home-hot-badge { position: relative; display: block; flex: 0 0 43px; width: 43px; height: 34px; color: #fff; }
.home-page .home-hot-badge img { display: block; width: 43px; height: 34px; object-fit: contain; }
.home-page .home-hot-badge span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; line-height: 24px; }
.home-page .home-hot-views { display: inline-flex; align-items: center; justify-content: flex-end; flex: 0 0 82px; gap: 4px; color: #999; font-size: 14px; white-space: nowrap; }
.home-page .home-hot-views img, .home-page .home-hot-detail-views img { width: 14px; height: 14px; object-fit: contain; }
.home-page .home-hot-flame-desktop { filter: invert(.65); }
.home-page .home-hot-flame-mobile { display: none; }
.home-page .home-hot-detail { display: none; min-width: 0; min-height: 200px; padding: 16px 0; gap: 16px; }
.home-page .home-hot-item.is-active .home-hot-summary { display: none; }
.home-page .home-hot-item.is-active .home-hot-detail { display: flex; }
.home-page .home-hot-detail-cover { position: relative; display: block; flex: 0 0 126px; width: 126px; height: 168px; border-radius: 8px; overflow: hidden; }
.home-page .home-hot-detail-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-page .home-hot-detail-cover .home-hot-badge { position: absolute; left: 0; bottom: 0; }
.home-page .home-hot-detail-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; gap: 8px; }
.home-page .home-hot-detail-title { color: #ff4b02; font-size: 16px; line-height: 22px; font-weight: 600; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-page .home-hot-detail-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: #999; font-size: 14px; line-height: 20px; }
.home-page .home-hot-detail-meta, .home-page .home-hot-detail-views { margin: 0; color: #999; font-size: 12px; line-height: 18px; }
.home-page .home-hot-detail-views { display: flex; align-items: center; gap: 4px; }
.home-page .home-hot-play { display: none; }
@media (min-width: 861px) {
  .home-page .home-latest-layout.has-hot-rank { position: relative; }
  .home-page .home-latest-layout.has-hot-rank .home-hot-rank {
    position: absolute;
    inset: 0 0 0 auto;
    width: max(340px, calc((100% - 20px) * .38 / 1.38));
  }
  .home-page .home-latest-layout.has-hot-rank .home-hot-list { flex: 1; min-height: 0; }
  .home-page .home-latest-layout.has-hot-rank .home-hot-item { flex: 1 1 0; min-height: 0; }
  .home-page .home-latest-layout.has-hot-rank .home-hot-item.is-active { flex: 0 0 200px; }
  .home-page .home-latest-layout.has-hot-rank .home-hot-summary { height: 100%; min-height: 0; }
}
@media (min-width: 1180px) and (max-width: 1220px) {
  .home-page .home-hot-summary .home-hot-badge,
  .home-page .home-hot-summary .home-hot-badge img { height: 30px; }
}
@media (max-width: 860px) {
  .home-page .home-latest-layout { display: flex; flex-direction: column; }
}
@media (max-width: 767px) {
  .home-page .home-latest-layout { max-width: calc(100% - 32px); gap: 20px; }
  .home-page .home-hot-rank { gap: 10px; }
  .home-page .home-hot-rank .section-title { font-size: 16px; line-height: 22px; font-weight: 400; }
  .home-page .home-hot-rank .section-title::before { display: block; }
  .home-page .home-hot-desktop-title, .home-page .home-hot-more-desktop { display: none; }
  .home-page .home-hot-mobile-title, .home-page .home-hot-more-mobile { display: inline; }
  .home-page .home-hot-live-label { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 58px; height: 22px; padding: 0; border: 1px solid rgba(248,147,0,.08); border-radius: 6px; background: rgba(248,147,0,.08); color: #f89300; font-size: 10px; line-height: 16px; white-space: nowrap; }
  .home-page .home-hot-list { gap: 6px; padding: 0; border-radius: 0; background: transparent; }
  .home-page .home-hot-item.is-active { position: relative; z-index: 11; }
  .home-page .home-hot-summary { box-sizing: border-box; height: 84px; min-height: 84px; padding: 8px 9px; gap: 10px; border: 1px solid #2b2b2b; border-radius: 8px; background: #202020; }
  .home-page .home-hot-summary .home-hot-badge { flex: 0 0 16px; width: 16px; height: auto; color: #999; }
  .home-page .home-hot-summary .home-hot-badge img { display: none; }
  .home-page .home-hot-summary .home-hot-badge span { position: static; display: block; text-align: center; font-size: 12px; line-height: 18px; }
  .home-page .home-hot-compact-cover { display: block; box-sizing: border-box; flex: 0 0 50px; width: 50px; height: 66px; border: 1px solid rgba(0,0,0,.05); object-fit: cover; border-radius: 4px; }
  .home-page .home-hot-compact-title { color: #aaa; font-size: 12px; line-height: 18px; }
  .home-page .home-hot-score { color: #aaa; font-size: 10px; line-height: 16px; }
  .home-page .home-hot-compact-subtitle { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #888; font-size: 10px; line-height: 16px; }
  .home-page .home-hot-views { flex-basis: auto; gap: 2px; font-size: 10px; }
  .home-page .home-hot-flame-desktop { display: none; }
  .home-page .home-hot-flame-mobile { display: inline-block; }
  .home-page .home-hot-views img, .home-page .home-hot-detail-views img { width: 10px; height: 10px; }
  .home-page .home-hot-detail { box-sizing: border-box; height: 158px; min-height: 158px; padding: 14px 13px 12px; align-items: center; gap: 12px; border: 1px solid #d4af37; border-radius: 12px; background: linear-gradient(100deg, rgba(245,158,11,.1), rgba(255,255,255,.04) 52%, transparent), #161616; }
  .home-page .home-hot-detail-cover { box-sizing: border-box; flex: 0 0 98px; width: 98px; height: 130px; border-radius: 8px; border: 1px solid #d4af37; box-shadow: 0 4px 10px rgba(0,0,0,.24); }
  .home-page .home-hot-detail-cover .home-hot-badge { top: 0; bottom: auto; width: 20px; height: 20px; background: linear-gradient(135deg, #ffe09c, #f5a623); border-radius: 0 0 6px 0; color: rgba(0,0,0,.9); }
  .home-page .home-hot-detail-cover .home-hot-badge img { display: none; }
  .home-page .home-hot-detail-cover .home-hot-badge span { font-size: 12px; line-height: 20px; }
  .home-page .home-hot-detail-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: center; column-gap: 4px; row-gap: 4px; }
  .home-page .home-hot-detail-title { color: #aaa; font-size: 12px; line-height: 18px; font-weight: 400; }
  .home-page .home-hot-detail-copy > .home-hot-title-line, .home-page .home-hot-detail-desc { grid-column: 1 / -1; }
  .home-page .home-hot-detail-desc { min-height: 36px; color: #999; font-size: 12px; line-height: 18px; -webkit-line-clamp: 2; }
  .home-page .home-hot-detail-meta { display: none; }
  .home-page .home-hot-detail-views { min-width: 0; color: #aaa; font-size: 10px; line-height: 16px; white-space: nowrap; }
  .home-page .home-hot-play { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 24px; padding: 3px 9px; border: 1px solid #ff4b02; border-radius: 4px; background: #ff4b02; color: #fff; font-size: 10px; line-height: 16px; white-space: nowrap; text-decoration: none; }
}
@media (max-width: 360px) {
  .home-page .home-hot-detail-views,
  .home-page .home-hot-play { grid-column: 1 / -1; }
  .home-page .home-hot-play { justify-self: start; }
}
@media (min-width: 861px) {
  html body.home-page .home-category-section.home-columns-5 .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  html body.home-page .home-category-section.home-columns-6 .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  html body.home-page .home-category-section.home-columns-7 .card-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  .home-page .home-category-actions { gap: 8px; }
  .home-page .home-category-actions .home-refresh-button,
  .home-page .home-category-actions .ghost-action-button,
  .home-page .home-hot-more {
    min-height: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #aaa;
    font: 400 12px/18px "PingFang SC", sans-serif;
    gap: 4px;
  }
  .home-page .home-category-actions .home-refresh-button .home-refresh-desktop-icon { display: none; }
  .home-page .home-category-actions .home-refresh-button .home-refresh-mobile-icon { display: block; width: 12px; height: 12px; filter: none; }
  .home-page .home-category-actions .home-refresh-button + .ghost-action-button::before {
    content: "|";
    margin-right: 4px;
    color: #777;
  }
  .home-page .home-category-actions .chevron-icon-img,
  .home-page .home-hot-more .chevron-icon-img { display: block; width: 12px; height: 12px; }
  .home-page .home-mobile-chevron { width: 12px; height: 12px; }
  .home-page .home-category-actions .home-mobile-chevron .chevron-icon-img,
  .home-page .home-recent-updates .home-mobile-chevron .chevron-icon-img,
  .home-page .home-hot-more .home-mobile-chevron .chevron-icon-img { filter: none; }
  .home-page .home-topic-more-desktop { display: none; }
  .home-page .home-topic-more-mobile { display: inline-flex; }
  .home-page .home-category-actions .ghost-action-text,
  .home-page .home-recent-updates .ghost-action-text,
  .home-page .home-hot-more .ghost-action-text { font-size: 12px; }
  .home-page .home-category-actions .ghost-action-text::after,
  .home-page .home-recent-updates .ghost-action-text::after,
  .home-page .home-hot-more .ghost-action-text::after { content: none; }
  .home-page .home-category-actions .home-refresh-button:not(:disabled):hover,
  .home-page .home-category-actions .ghost-action-button:hover,
  .home-page .home-hot-more:hover { background: transparent; color: #fff; }
}
