@charset "utf-8";

/* Homepage-only desktop hero. The legacy mobile banner remains untouched. */
.home-pc-hero {
    display: none;
}

.home-banner-mobile {
    display: block;
}

@keyframes homePcHeroProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (min-width: 768px) {
    /* Reserve both header rows even while the first row scrolls out of view. */
    .page-home.bstem {
        --home-header-height: 2.75rem;
        --home-header-bg: rgba(255, 255, 255, .96);
        --home-header-solid: #fff;
        --home-header-text: #252936;
        --home-header-muted: #606774;
        --home-header-search-hint: #aaa;
        --home-header-line: rgba(37, 41, 54, .045);
        --home-header-search-bg: rgba(37, 41, 54, .05);
        --home-header-logo-light: none;
        --home-header-logo-dark: block;
    }

    /* Follow the stylesheet href used by the existing live theme switch. */
    html:has(link[name="color"][href*="black.css"]) .page-home.bstem {
        --home-header-bg: rgba(34, 34, 34, .96);
        --home-header-solid: #222;
        --home-header-text: #eee;
        --home-header-muted: #b8bdc7;
        --home-header-search-hint: var(--home-header-muted);
        --home-header-line: rgba(255, 255, 255, .06);
        --home-header-search-bg: rgba(255, 255, 255, .08);
        --home-header-logo-light: block;
        --home-header-logo-dark: none;
    }

    .page-home.bstem .head_box {
        background: var(--home-header-bg);
        box-shadow: 0 1px 0 var(--home-header-line);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .page-home.bstem .head_box.nav_top {
        background: var(--home-header-solid);
        box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
    }

    .page-home.bstem .head_box .head_menu_a li:not(.active) > a,
    .page-home.bstem .head_box .head_menu_b a.menu,
    .page-home.bstem .head_box .head_hot_search a,
    .page-home.bstem .head_box .head_search .form_control {
        color: var(--home-header-text);
    }

    .page-home.bstem .head_box .top_ico > a,
    .page-home.bstem .head_box .hot_search_tit {
        color: var(--home-header-muted);
    }

    /* Keep search hints quiet without fading typed text or other header icons. */
    .page-home.bstem .head_box .head_search i {
        color: var(--home-header-search-hint);
    }

    .page-home.bstem .head_box .head_search form:focus-within i {
        color: var(--home-header-muted);
    }

    .page-home.bstem .head_box .head_search input::placeholder {
        color: var(--home-header-search-hint);
        opacity: 1;
    }

    .page-home.bstem .head_box .head_search .form_control {
        background: transparent;
    }

    /* Keep the idle search field integrated with the header; reveal its
       surface on mouse or keyboard interaction. */
    .page-home.bstem .head_box .head_search form:hover .form_control,
    .page-home.bstem .head_box .head_search form:focus-within .form_control {
        background: var(--home-header-search-bg);
    }

    .page-home.bstem .head_box .head_menu_a li:not(.active) > a:hover,
    .page-home.bstem .head_box .top_ico > a:hover,
    .page-home.bstem .head_box .head_hot_search a:hover {
        color: #fb7299;
    }

    .page-home.bstem .head_box .head_menu_b:hover a.menu {
        color: #fff;
    }

    .page-home.bstem .head_box .header::after {
        border-bottom-color: var(--home-header-line);
    }

    .page-home.bstem .head_box .head_menu_b a.menu {
        border-right-color: var(--home-header-line);
    }

    /* Shared logo visibility rules already use !important. */
    .page-home.bstem .head_box .head_logo .logo_b {
        display: var(--home-header-logo-dark) !important;
    }

    .page-home.bstem .head_box .head_logo .logo_w {
        display: var(--home-header-logo-light) !important;
    }

    .home-banner-mobile {
        display: none !important;
    }

    .home-pc-hero,
    .home-pc-hero * {
        box-sizing: border-box;
    }

    .home-pc-hero {
        --home-hero-accent: #fb7299;
        --home-hero-blue: #29b6f6;
        --home-hero-content-max: 1400px;
        --home-hero-card-radius: 16px;
        --home-hero-ambient-image: none;
        --home-hero-play-state: running;
        --home-hero-top-space: calc(var(--home-header-height, 2.75rem) + 14px);
        --home-hero-card-height: clamp(454px, calc(68vh - 106px), 554px);
        position: relative;
        display: block;
        width: 100%;
        height: calc(var(--home-hero-top-space) + var(--home-hero-card-height) + 18px);
        min-height: calc(var(--home-hero-top-space) + 472px);
        margin: 0 0 20px;
        padding: var(--home-hero-top-space) max(24px, calc((100vw - var(--home-hero-content-max)) / 2)) 18px;
        overflow: hidden;
        color: #fff;
        background: #f7f8fb;
        isolation: isolate;
        perspective: none;
    }

    .home-pc-hero::before {
        content: "";
        position: absolute;
        inset: -46px;
        z-index: 0;
        opacity: .16;
        background-color: #f7f8fb;
        background-image: var(--home-hero-ambient-image);
        background-position: center;
        background-size: cover;
        filter: blur(54px) saturate(132%) brightness(1.04);
        transform: scale(1.07);
        pointer-events: none;
        transition: background-image .35s ease;
    }

    .home-pc-hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        /* Fade the ambient background without washing out the cards above. */
        z-index: 1;
        height: 72px;
        background: linear-gradient(to bottom, rgba(247, 248, 251, 0), #f7f8fb 92%);
        pointer-events: none;
    }

    .home-pc-hero.is-dark,
    .home-pc-hero.is-dark::before {
        background-color: #222;
    }

    .home-pc-hero.is-dark::after {
        background: linear-gradient(to bottom, rgba(34, 34, 34, 0), #222 92%);
    }

    .home-pc-hero__slides {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        overflow: visible;
        perspective: 1600px;
        perspective-origin: 50% 48%;
    }

    .home-pc-hero__slide {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: visible;
        opacity: 0;
        transform: translate3d(0, 0, -120px) scale(.88);
        transform-style: preserve-3d;
        pointer-events: none;
        transition: opacity .48s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
    }

    .home-pc-hero__slide.is-active {
        z-index: 4;
        opacity: 1;
        transform: translate3d(var(--home-hero-swipe-x, 0), 0, 0) rotateY(0) scale(1);
    }

    .home-pc-hero__slide.is-previous {
        z-index: 2;
        opacity: .42;
        transform: translate3d(calc(-69% + var(--home-hero-swipe-x, 0px)), 0, -96px) rotateY(6deg) scale(.875);
        pointer-events: auto;
        cursor: pointer;
    }

    .home-pc-hero__slide.is-next {
        z-index: 3;
        opacity: .42;
        transform: translate3d(calc(69% + var(--home-hero-swipe-x, 0px)), 0, -96px) rotateY(-6deg) scale(.875);
        pointer-events: auto;
        cursor: pointer;
    }

    .home-pc-hero.is-animating .home-pc-hero__slide {
        will-change: transform, opacity;
    }

    .home-pc-hero__image-link {
        position: absolute;
        inset: 0 auto 0 12%;
        display: block;
        width: 76%;
        height: auto;
        color: inherit;
        text-decoration: none;
    }

    .home-pc-hero__slide.is-active .home-pc-hero__image-link {
        pointer-events: auto;
    }

    .home-pc-hero__card {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: var(--home-hero-card-radius);
        background: #11121a;
        box-shadow: 0 26px 68px rgba(28, 31, 40, .20), 0 14px 36px -18px rgba(251, 114, 153, .16);
    }

    .home-pc-hero__card::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background: radial-gradient(ellipse 72% 108% at 0% 72%, rgba(5, 6, 9, .76) 0%, rgba(5, 6, 9, .52) 34%, rgba(5, 6, 9, .22) 58%, rgba(5, 6, 9, .05) 72%, transparent 84%);
        pointer-events: none;
    }

    .home-pc-hero__slide.is-previous .home-pc-hero__card::after,
    .home-pc-hero__slide.is-next .home-pc-hero__card::after {
        background: rgba(12, 14, 19, .38);
    }

    .home-pc-hero__image {
        display: block;
        width: 100%;
        height: 100%;
        background-color: #14151c;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        transform: scale(1.015);
        transition: transform .5s cubic-bezier(.22, 1, .36, 1);
    }

    .home-pc-hero__slide.is-active .home-pc-hero__image {
        transform: scale(1.025);
    }

    .home-pc-hero__info {
        position: absolute;
        bottom: 38px;
        left: calc(12% + 40px);
        z-index: 7;
        width: min(430px, calc(55% - 64px));
        opacity: 0;
        transform: translateY(18px);
        pointer-events: none;
        transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
    }

    .home-pc-hero__slide.is-active .home-pc-hero__info {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .home-pc-hero__title {
        max-width: 100%;
        margin: 0 0 10px;
        overflow: hidden;
        color: #fff;
        font-size: clamp(38px, 3.5vw, 54px);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -.02em;
        text-overflow: ellipsis;
        text-shadow: 0 1px 2px #000, 0 4px 14px rgba(0, 0, 0, .85);
        white-space: nowrap;
    }

    .home-pc-hero__summary {
        display: -webkit-box;
        max-width: 420px;
        margin: 0;
        overflow: hidden;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.65;
        text-shadow: 0 1px 2px #000, 0 3px 9px rgba(0, 0, 0, .82);
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-pc-hero__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 14px;
        text-shadow: 0 1px 4px rgba(0, 0, 0, .78);
    }

    .home-pc-hero__meta > span {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 10px;
        color: rgba(255, 255, 255, .88);
        font-size: 12px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 999px;
        background: rgba(255, 255, 255, .14);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .home-pc-hero__score {
        color: #ffe083 !important;
        border-color: rgba(255, 224, 131, .30) !important;
        background: rgba(100, 75, 15, .26) !important;
    }

    .home-pc-hero__score i {
        margin-right: 4px;
    }

    .home-pc-hero__actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 18px;
    }

    .home-pc-hero__play,
    .home-pc-hero__follow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 124px;
        height: 42px;
        padding: 0 14px;
        color: #fff !important;
        font-size: 13px;
        border-radius: 10px;
        text-decoration: none !important;
        transition: transform .16s ease, box-shadow .25s ease, background-color .25s ease;
    }

    .home-pc-hero__play {
        border: 0;
        background: var(--home-hero-accent);
        font-weight: 600;
        box-shadow: 0 6px 18px rgba(251, 114, 153, .20);
    }

    .home-pc-hero__follow {
        border: 1px solid var(--home-hero-blue);
        background: var(--home-hero-blue);
        box-shadow: 0 10px 26px rgba(41, 182, 246, .22);
    }

    .home-pc-hero__play:hover,
    .home-pc-hero__follow:hover {
        color: #fff !important;
        transform: translateY(-2px);
    }

    .home-pc-hero__play:hover {
        background: #f45f8b;
        box-shadow: 0 8px 22px rgba(251, 114, 153, .28);
    }

    .home-pc-hero__follow:hover {
        background: #42c0f7;
        box-shadow: 0 12px 30px rgba(41, 182, 246, .32);
    }

    .home-pc-hero__play:active,
    .home-pc-hero__follow:active {
        transform: scale(.96);
    }

    .home-pc-hero__follow.disabled {
        opacity: .68;
        pointer-events: none;
    }

    .home-pc-hero__controls {
        position: absolute;
        bottom: 34px;
        left: calc(50% + min(20vw, 280px));
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        height: 44px;
        padding: 5px 7px;
        border: 1px solid rgba(255, 255, 255, .20);
        border-radius: 12px;
        background: rgba(15, 17, 23, .58);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .20);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
        transform: translateX(-50%);
    }

    .home-pc-hero__previous,
    .home-pc-hero__next,
    .home-pc-hero__toggle {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        padding: 0;
        color: #fff;
        border: 0;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
        transition: color .18s ease, background-color .18s ease, transform .12s ease;
    }

    .home-pc-hero__previous:hover,
    .home-pc-hero__next:hover,
    .home-pc-hero__toggle:hover {
        color: var(--home-hero-accent);
        background: rgba(255, 255, 255, .11);
    }

    .home-pc-hero__previous:active,
    .home-pc-hero__next:active,
    .home-pc-hero__toggle:active {
        transform: scale(.9);
    }

    .home-pc-hero__pause {
        display: block;
        width: 10px;
        height: 12px;
        border-right: 3px solid currentColor;
        border-left: 3px solid currentColor;
    }

    .home-pc-hero__resume {
        display: none;
        width: 0;
        height: 0;
        margin-left: 2px;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 9px solid currentColor;
    }

    .home-pc-hero__toggle.is-paused .home-pc-hero__pause {
        display: none;
    }

    .home-pc-hero__toggle.is-paused .home-pc-hero__resume {
        display: block;
    }

    .home-pc-hero__progress {
        display: block;
        width: 92px;
        height: 3px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(255, 255, 255, .18);
    }

    .home-pc-hero__progress > span {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        background: var(--home-hero-accent);
        box-shadow: 0 0 9px rgba(251, 114, 153, .58);
        transform: scaleX(0);
        transform-origin: left center;
        animation: homePcHeroProgress var(--home-hero-duration, 8s) linear forwards;
        animation-play-state: var(--home-hero-play-state, running);
    }

    .home-pc-hero__count {
        display: flex;
        align-items: baseline;
        gap: 3px;
        min-width: 43px;
        color: rgba(255, 255, 255, .55);
        font-size: 10px;
        font-variant-numeric: tabular-nums;
    }

    .home-pc-hero__count b {
        color: #fff;
        font-size: 12px;
        font-weight: 650;
    }

    .home-pc-hero__count em {
        font-style: normal;
    }

    .home-pc-hero:not([data-controller-ready="1"]) .home-pc-hero__controls,
    .home-pc-hero.is-single-slide .home-pc-hero__controls {
        display: none;
    }

    .home-pc-hero__previous:focus-visible,
    .home-pc-hero__next:focus-visible,
    .home-pc-hero__toggle:focus-visible,
    .home-pc-hero__play:focus-visible,
    .home-pc-hero__follow:focus-visible,
    .home-pc-hero__image-link:focus-visible {
        outline: 2px solid var(--home-hero-accent);
        outline-offset: 3px;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .home-pc-hero__controls {
        left: calc(50% + 170px);
    }

    .home-pc-hero__progress {
        width: 60px;
    }

    .home-pc-hero__count,
    .home-pc-hero__summary {
        display: none;
    }

    .home-pc-hero__title {
        font-size: clamp(32px, 4.4vw, 44px);
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .page-home.bstem {
        --home-header-height: 2.5rem;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .home-pc-hero__slide.is-previous:hover,
    .home-pc-hero__slide.is-next:hover {
        opacity: .52;
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
    .home-pc-hero__slide,
    .home-pc-hero__image,
    .home-pc-hero__info {
        transition: none !important;
    }

    .home-pc-hero__slide.is-active .home-pc-hero__image {
        transform: scale(1) !important;
    }

    .home-pc-hero__progress > span {
        animation: none;
        transform: scaleX(1);
    }
}
