/* 凯叔的游戏小屋 — 延续主页暗色与渐变氛围 */

body.games-hut-page .container {
    max-width: none;
}

/* 顶部全宽视频背景，叠 Logo / 返回 */
.games-hut-hero-video {
    position: relative;
    width: 100%;
    min-height: min(62vh, 36rem);
    overflow: hidden;
    background: var(--bg-primary);
}

.games-hut-hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 压暗视频并接到纯色底；拉长过渡、多色阶，减弱底边「台阶感」 */
.games-hut-hero-video__to-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent min(10%, 2.75rem),
        rgba(10, 10, 10, 0.015) 18%,
        rgba(10, 10, 10, 0.04) 26%,
        rgba(10, 10, 10, 0.09) 34%,
        rgba(10, 10, 10, 0.16) 42%,
        rgba(10, 10, 10, 0.25) 50%,
        rgba(10, 10, 10, 0.36) 57%,
        rgba(10, 10, 10, 0.48) 64%,
        rgba(10, 10, 10, 0.6) 70%,
        rgba(10, 10, 10, 0.71) 76%,
        rgba(10, 10, 10, 0.8) 81%,
        rgba(10, 10, 10, 0.87) 86%,
        rgba(10, 10, 10, 0.92) 90%,
        rgba(10, 10, 10, 0.96) 94%,
        rgba(10, 10, 10, 0.985) 97%,
        var(--bg-primary) 100%
    );
}

/* 与 body::before 同图层 + fixed；mask 更早、更缓地引入氛围，与 __to-bg 长过渡叠合 */
.games-hut-hero-video__ambience {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--bg-ambience-layers);
    background-attachment: fixed;
    animation: backgroundShift 20s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent min(8%, 2.25rem),
        rgba(0, 0, 0, 0.06) 22%,
        rgba(0, 0, 0, 0.14) 34%,
        rgba(0, 0, 0, 0.24) 45%,
        rgba(0, 0, 0, 0.38) 56%,
        rgba(0, 0, 0, 0.54) 66%,
        rgba(0, 0, 0, 0.7) 75%,
        rgba(0, 0, 0, 0.82) 83%,
        rgba(0, 0, 0, 0.9) 89%,
        rgba(0, 0, 0, 0.96) 94%,
        #000 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent min(8%, 2.25rem),
        rgba(0, 0, 0, 0.06) 22%,
        rgba(0, 0, 0, 0.14) 34%,
        rgba(0, 0, 0, 0.24) 45%,
        rgba(0, 0, 0, 0.38) 56%,
        rgba(0, 0, 0, 0.54) 66%,
        rgba(0, 0, 0, 0.7) 75%,
        rgba(0, 0, 0, 0.82) 83%,
        rgba(0, 0, 0, 0.9) 89%,
        rgba(0, 0, 0, 0.96) 94%,
        #000 100%
    );
}

.games-hut-hero-video__scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    /* 压暗上部；下部渐隐，避免与 __to-bg 叠出明显交界 */
    background:
        linear-gradient(
            180deg,
            rgba(8, 8, 10, 0.52) 0%,
            rgba(8, 8, 10, 0.14) 28%,
            transparent 48%,
            transparent 100%
        ),
        linear-gradient(
            90deg,
            rgba(8, 8, 10, 0.32) 0%,
            transparent 16%,
            transparent 84%,
            rgba(8, 8, 10, 0.32) 100%
        );
}

.games-hut-hero-video__inner {
    position: relative;
    z-index: 4;
    min-height: min(62vh, 36rem);
    display: flex;
    flex-direction: column;
    padding: 2.75rem 1.25rem 0;
}

.games-hut-hero-video__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.games-hut-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.15s ease;
}

.games-hut-back:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.games-hut-back--hero {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
}

.games-hut-hero-logo {
    display: block;
    width: min(72%, 13.5rem);
    height: auto;
    max-height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.5));
    margin-top: 0;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
    align-self: center;
}

/* 叠在视频上的计时器：头图文案偏展示级，数字区保持易读 */
.games-hut-timer-block--hero {
    width: 100%;
    max-width: 40rem;
    margin-top: auto;
    margin-bottom: clamp(1.5rem, 5vh, 2.75rem);
    padding: 1.65rem 1.35rem 1.75rem;
    border-radius: 20px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.games-hut-timer-block--hero .games-hut-timer-mode {
    font-size: clamp(1.08rem, 4.2vw, 1.52rem);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 1.35rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-wrap: balance;
    background: linear-gradient(
        120deg,
        #ffffff 0%,
        #f2fbfb 38%,
        #7fe0d6 72%,
        #6ec4e8 100%
    );
    background-size: 160% 160%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
    animation: gamesHutHeroTaglineGlow 10s ease-in-out infinite;
}

.games-hut-timer-block--hero .games-hut-timer-digits {
    gap: 0.4rem 0.55rem;
    align-items: stretch;
    justify-content: center;
}

.games-hut-timer-block--hero .games-hut-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: clamp(3.85rem, 11vw, 5.75rem);
    min-height: 5.25rem;
    padding: 0.55rem 0.45rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 24px rgba(0, 0, 0, 0.12);
}

.games-hut-timer-block--hero .games-hut-timer-unit span {
    font-size: clamp(2rem, 7.25vw, 3.15rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.08;
    color: #fafafa;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.45),
        0 0 28px rgba(78, 205, 196, 0.12);
    background: none;
    -webkit-text-fill-color: #fafafa;
    animation: none;
    width: 100%;
    text-align: center;
}

.games-hut-timer-block--hero .games-hut-timer-unit small {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.12em;
    width: 100%;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .games-hut-hero-video__ambience {
        animation: none;
    }

    .games-hut-timer-block--hero .games-hut-timer-mode {
        animation: none;
        background: none;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
        color: rgba(255, 255, 255, 0.96);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
    }

    .games-hut-season-title {
        animation: none;
        background: none;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
        color: rgba(255, 255, 255, 0.95);
        filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
    }

    .games-hut-hero-video__scrim {
        background:
            linear-gradient(
                180deg,
                rgba(8, 8, 10, 0.52) 0%,
                rgba(8, 8, 10, 0.12) 30%,
                transparent 48%
            ),
            linear-gradient(
                90deg,
                rgba(8, 8, 10, 0.3) 0%,
                transparent 16%,
                transparent 84%,
                rgba(8, 8, 10, 0.3) 100%
            );
    }
}

.games-hut-main {
    max-width: 1100px;
    margin: 0 auto;
    /* 与主页 main-flow 一致，为固定页脚留出空间 */
    padding: 1.5rem 1.5rem 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.games-hut-timer-block:not(.games-hut-timer-block--hero) {
    width: 100%;
    max-width: 36rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    text-align: center;
}

.games-hut-timer-mode {
    text-align: center;
}

.games-hut-timer-block:not(.games-hut-timer-block--hero) .games-hut-timer-mode {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.games-hut-timer-digits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    font-variant-numeric: tabular-nums;
}

.games-hut-timer-unit {
    min-width: 4.5rem;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.games-hut-timer-unit span {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gamesHutTimerGlow 5s ease-in-out infinite;
}

.games-hut-timer-unit small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

@keyframes gamesHutTimerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gamesHutHeroTaglineGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .games-hut-timer-unit span {
        animation: none;
        -webkit-text-fill-color: #fff;
        background: none;
    }
}

/* 门店地址（悬停显示高德/百度按钮）与团购联系说明 — 位于播单上方 */
.games-hut-venue {
    width: 100%;
}

.games-hut-venue-card {
    width: 100%;
    padding: 1.15rem 1.35rem;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    overflow: visible;
}

.games-hut-venue-row--address {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1rem;
    margin-bottom: 0.9rem;
    overflow: visible;
}

.games-hut-venue-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.42);
    padding-top: 0.38em;
    min-width: 2.35rem;
}

.games-hut-venue-address-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    flex: 1 1 14rem;
    min-width: 0;
    overflow: visible;
}

/* 填补地址与上方弹层之间的空隙，避免移入示意图时 :hover 丢失导致弹层瞬间消失 */
@media (hover: hover) {
    .games-hut-venue-address-wrap::after {
        content: '';
        position: absolute;
        left: 0;
        width: min(100%, min(calc(100vw - 2rem), 420px));
        height: 18px;
        bottom: 100%;
        z-index: 119;
    }
}

.games-hut-venue-address {
    font-size: clamp(0.9rem, 2.4vw, 1.03rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px dashed rgba(78, 205, 196, 0.42);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.games-hut-venue-address--trigger {
    cursor: help;
    display: inline;
}

.games-hut-venue-address:hover,
.games-hut-venue-address:focus-visible {
    color: #c5f5ef;
    border-bottom-color: rgba(78, 205, 196, 0.88);
    outline: none;
}

.games-hut-venue-address--trigger:focus-visible {
    outline: 2px solid rgba(78, 205, 196, 0.65);
    outline-offset: 3px;
    border-radius: 2px;
}

.games-hut-venue-map-pop {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 120;
    padding: 6px;
    border-radius: 14px;
    background: rgba(8, 10, 12, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
    max-width: min(calc(100vw - 2rem), 420px);
}

/* :hover / :focus-within + JS 类 is-venue-map-open（见 games-hut.js），不依赖 (hover:hover) 媒体查询 */
.games-hut-venue-address-wrap:hover .games-hut-venue-map-pop,
.games-hut-venue-address-wrap:focus-within .games-hut-venue-map-pop,
.games-hut-venue-address-wrap.is-venue-map-open .games-hut-venue-map-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 520px) {
    .games-hut-venue-map-pop {
        bottom: auto;
        top: calc(100% + 8px);
        transform: translateY(-6px);
    }

    .games-hut-venue-address-wrap:hover .games-hut-venue-map-pop,
    .games-hut-venue-address-wrap:focus-within .games-hut-venue-map-pop,
    .games-hut-venue-address-wrap.is-venue-map-open .games-hut-venue-map-pop {
        transform: translateY(0);
    }
}

.games-hut-venue-nav-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0;
}

.games-hut-venue-nav-btn {
    flex: 1 1 8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.65rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.games-hut-venue-nav-btn--amap {
    color: #e8fbff;
    background: rgba(0, 168, 255, 0.22);
    border-color: rgba(0, 168, 255, 0.45);
}

.games-hut-venue-nav-btn--amap:hover {
    background: rgba(0, 168, 255, 0.38);
    transform: translateY(-1px);
}

.games-hut-venue-nav-btn--baidu {
    color: #fff5f8;
    background: rgba(251, 114, 153, 0.22);
    border-color: rgba(251, 114, 153, 0.5);
}

.games-hut-venue-nav-btn--baidu:hover {
    background: rgba(251, 114, 153, 0.38);
    transform: translateY(-1px);
}

.games-hut-venue-nav-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

/* 触屏无精细悬停：由 games-hut.js 点击地址切换 is-venue-map-open，默认不展开 */
@media (hover: none) {
    .games-hut-venue-address--trigger {
        cursor: pointer;
    }
}

.games-hut-venue-contact {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1rem;
    font-size: clamp(0.84rem, 2.2vw, 0.95rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.games-hut-venue-contact .games-hut-venue-label {
    padding-top: 0;
}

.games-hut-venue-contact-text strong {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.games-hut-contact-trigger {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    cursor: pointer;
    border-bottom: 1px dashed rgba(78, 205, 196, 0.42);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.games-hut-contact-trigger:hover,
.games-hut-contact-trigger:focus-visible {
    color: #c5f5ef;
    border-bottom-color: rgba(78, 205, 196, 0.88);
    outline: none;
}

.games-hut-contact-trigger:focus-visible {
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.45);
}

.games-hut-contact-trigger strong {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.games-hut-wechat-modal {
    z-index: 2100;
}

.games-hut-wechat-sheet {
    position: relative;
    width: min(100%, 20rem);
    max-width: calc(100vw - 2rem);
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(28, 32, 38, 0.98), rgba(16, 18, 22, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.games-hut-wechat-modal.is-open .games-hut-wechat-sheet {
    transform: scale(1);
}

.games-hut-wechat-sheet .games-hut-wechat-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.games-hut-wechat-title {
    margin: 0 2.25rem 0.85rem 0;
    padding: 0;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.04em;
}

.games-hut-wechat-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 0.85rem;
    padding: 0.5rem;
    border-radius: 12px;
    background: #fff;
}

.games-hut-wechat-qr {
    display: block;
    width: min(260px, 72vw);
    height: auto;
    max-width: 100%;
    border-radius: 6px;
}

.games-hut-wechat-hint {
    margin: 0;
    font-size: clamp(0.8rem, 2.6vw, 0.88rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .games-hut-venue-map-pop {
        transition: none;
        transform: none;
    }

    .games-hut-venue-address-wrap:hover .games-hut-venue-map-pop,
    .games-hut-venue-address-wrap:focus-within .games-hut-venue-map-pop,
    .games-hut-venue-address-wrap.is-venue-map-open .games-hut-venue-map-pop {
        transform: none;
    }

    .games-hut-wechat-sheet,
    .games-hut-wechat-modal.is-open .games-hut-wechat-sheet {
        transition: none;
        transform: none;
    }
}

.games-hut-videos {
    width: 100%;
}

.games-hut-videos-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    width: 100%;
    margin-bottom: 0.85rem;
}

.games-hut-season-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 12rem;
    min-width: 0;
}

.games-hut-season-row .games-hut-bili-link--space {
    flex-shrink: 0;
}

.games-hut-season-title {
    margin: 0;
    padding: 0.2rem 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: clamp(1.05rem, 3.4vw, 1.48rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-wrap: balance;
    background: linear-gradient(
        122deg,
        #ffffff 0%,
        #eefaf8 32%,
        #7ad9cf 62%,
        #6ab8e5 100%
    );
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5));
}

.games-hut-videos-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.games-hut-bili-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* 文件名含 @，url 中写作 %40 避免解析歧义 */
.games-hut-bili-link--space {
    background-color: rgba(0, 0, 0, 0.28);
    background-image: url('assets/images/logo-150w_150h.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: rgba(255, 255, 255, 0.22);
}

.games-hut-bili-link:not(.games-hut-bili-link--space):hover {
    background: #fb7299;
    border-color: transparent;
    transform: translateY(-2px);
}

.games-hut-bili-link--space:hover {
    border-color: rgba(251, 114, 153, 0.65);
    box-shadow: 0 0 0 1px rgba(251, 114, 153, 0.35);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.games-hut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.1rem;
    align-items: start;
}

.games-hut-card {
    text-align: left;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.games-hut-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.25);
}

.games-hut-card:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.games-hut-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #111;
    /* 部分 WebKit 在 grid 子项上 aspect-ratio 偶发高度为 0，给下限避免封面区域塌缩 */
    min-height: 5.5rem;
}

.games-hut-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.games-hut-card-duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.games-hut-card-body {
    padding: 0.75rem 0.85rem 0.95rem;
}

.games-hut-card-title {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.games-hut-error {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.games-hut-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px) saturate(0.85);
    -webkit-backdrop-filter: blur(14px) saturate(0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.games-hut-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.games-hut-modal-box {
    width: min(960px, 100%);
    max-height: min(90vh, 720px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.games-hut-modal.is-open .games-hut-modal-box {
    transform: scale(1);
}

.games-hut-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.games-hut-modal-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.games-hut-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.games-hut-modal-bilibili {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.42rem 0.78rem;
    border-radius: 10px;
    font-size: clamp(0.75rem, 2.4vw, 0.82rem);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(251, 114, 153, 0.22);
    border: 1px solid rgba(251, 114, 153, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.games-hut-modal-bilibili:hover {
    background: rgba(251, 114, 153, 0.38);
    border-color: rgba(251, 114, 153, 0.75);
}

.games-hut-modal-bilibili:focus-visible {
    outline: 2px solid rgba(251, 114, 153, 0.9);
    outline-offset: 2px;
}

.games-hut-modal-bilibili i {
    font-size: 1rem;
    opacity: 0.95;
}

.games-hut-modal-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.15s ease;
}

.games-hut-modal-close:hover {
    background: rgba(255, 107, 107, 0.35);
}

.games-hut-modal-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.games-hut-modal-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
