/* finesse · component: game top carousel · tokens: inherited from Zibll */
.fluid-widget-wrap .zib-widget.zibll-child-game-top-widget {
    margin: 0 0 clamp(20px, 2vw, 32px);
    padding: 0;
    border-radius: 0;
    background: var(--main-bg-color);
    box-shadow: none;
    overflow: hidden;
}
.fluid-widget-wrap .zib-widget.zibll-child-game-top-widget .widget-container {
    width: 100%;
    max-width: none;
    padding: 0;
}
/* CSF 全宽区域使用 zib-widget-wrap，外层并不带小工具 classname。 */
.fluid-widget-wrap .zib-widget-wrap:has(> .widget-container > .zibll-child-game-top-widget-inner) {
    margin-bottom: clamp(20px, 2vw, 32px);
}
.zcgt {
    --zcgt-accent: var(--focus-color);
    --zcgt-ink: var(--main-color);
    --zcgt-muted: var(--muted-color);
    --zcgt-line: var(--main-border-color);
    color: var(--zcgt-ink);
    background: var(--main-bg-color);
    font: 15px/1.6 "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
.zcgt *, .zcgt *::before, .zcgt *::after { box-sizing: border-box; }
.zcgt [hidden] { display: none !important; }
.zcgt button { font: inherit; cursor: pointer; }
.zcgt-stage { position: relative; height: clamp(520px, 42vw, 760px); isolation: isolate; overflow: hidden; background: #111517; }
.zcgt-stage::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(9,12,14,.58), transparent 38%), linear-gradient(90deg, transparent 52%, rgba(9,12,14,.32)); }
.zcgt-slide { position: absolute; inset: 0; }
.zcgt-slide img, .zcgt-slide video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.zcgt-panel {
    --zcgt-ink: #fff;
    --zcgt-muted: #fff;
    --zcgt-line: rgba(255, 255, 255, .2);
    color: var(--zcgt-ink);
    position: absolute;
    z-index: 3;
    right: max(30px, calc((100vw - 1640px) / 2));
    top: 50%;
    transform: translateY(-50%);
    width: 330px;
    padding: 22px;
    border: 1px solid var(--zcgt-line);
    border-radius: var(--main-radius, 12px);
    background: rgba(20, 20, 20, .2);
    background: color-mix(in srgb, var(--main-bg-color) 20%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(5, 10, 12, .26);
}
.zcgt-panel h2 { margin: 0; color: var(--zcgt-ink); font-size: 22px; line-height: 1.28; font-weight: 800; overflow-wrap: anywhere; }
.zcgt-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.zcgt-categories span { padding: 3px 8px; border: 1px solid var(--zcgt-line); border-radius: 6px; background: rgba(20, 24, 30, .45); color: var(--zcgt-ink); font-size: 11px; }
.zcgt-panel dl { margin: 17px 0 0; }
.zcgt-panel dl div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--zcgt-line); font-size: 12px; }
.zcgt-panel dl div:last-child { border-bottom: 0; }
.zcgt-panel dt { color: var(--zcgt-muted); }
.zcgt-panel dd { min-width: 0; margin: 0; color: var(--zcgt-ink); font-weight: 700; overflow-wrap: anywhere; }
.zcgt-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; margin-top: 18px; }
.zcgt-actions a, .zcgt-action-disabled { display: flex; align-items: center; justify-content: center; min-height: 43px; padding: 8px; border: 0; border-radius: 8px; background: rgba(20, 24, 30, .65); color: var(--zcgt-ink) !important; font-size: 12px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.zcgt-actions a:hover { background: rgba(20, 24, 30, .8); color: var(--zcgt-ink) !important; }
.zcgt-actions a:active { transform: translateY(1px); }
.zcgt-action-disabled { cursor: not-allowed; opacity: .52; }
.zcgt-filmstrip { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 14px max(14px, calc((100vw - 1450px) / 2)); border-top: 1px solid var(--zcgt-line); background: var(--main-bg-color); }
.zcgt-filmstrip > button { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--zcgt-line); border-radius: 50%; background: var(--muted-bg-2-color); color: var(--zcgt-ink); font-size: 28px; line-height: 1; }
.zcgt-filmstrip > button:hover { border-color: var(--zcgt-accent); color: var(--zcgt-accent); }
.zcgt-filmstrip > button:active { transform: translateY(1px); }
.zcgt-thumbs { display: flex; flex: 0 1 auto; width: max-content; max-width: calc(100% - 108px); min-width: 0; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.zcgt-thumbs::-webkit-scrollbar { display: none; }
.zcgt-filmstrip:has([data-zcgt-toggle]) .zcgt-thumbs { max-width: calc(100% - 162px); }
.zcgt-thumbs button { position: relative; flex: 0 0 118px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: var(--muted-bg-color); color: var(--zcgt-ink); opacity: .72; }
.zcgt-thumbs button:hover, .zcgt-thumbs button[aria-pressed="true"] { opacity: 1; }
.zcgt-thumbs button[aria-pressed="true"] { border-color: var(--zcgt-accent); }
.zcgt-thumbs img, .zcgt-thumbs video { display: block; width: 100%; height: 100%; object-fit: cover; }
.zcgt-thumbs video { pointer-events: none; }
.zcgt-video-badge { position: absolute; left: 6px; bottom: 5px; padding: 2px 6px; border-radius: 4px; background: rgba(6, 14, 15, .82); color: #f5f7f7; font-size: 10px; }
.zcgt :focus-visible { outline: 2px solid var(--zcgt-accent); outline-offset: 3px; }
@media (max-width: 900px) {
    .zcgt-stage { --zcgt-stage-height: clamp(380px, 56vw, 520px); height: auto; overflow: visible; padding-bottom: 22px; }
    .zcgt-stage::before { content: ""; display: block; height: var(--zcgt-stage-height); }
    .zcgt-stage::after { inset: 0 0 auto; height: var(--zcgt-stage-height); }
    .zcgt-slide { bottom: auto; height: var(--zcgt-stage-height); }
    .zcgt-panel { position: relative; z-index: 5; top: auto; right: auto; transform: none; width: min(540px, calc(100% - 32px)); margin: -24px auto 0; }
}
@media (max-width: 560px) {
    .zcgt-stage { --zcgt-stage-height: clamp(230px, 62vw, 350px); }
    .zcgt-panel { padding: 17px; margin-top: -15px; }
    .zcgt-filmstrip { gap: 7px; padding: 10px; }
    .zcgt-filmstrip > button { flex-basis: 38px; width: 38px; height: 38px; }
    .zcgt-thumbs { max-width: calc(100% - 90px); gap: 7px; }
    .zcgt-filmstrip:has([data-zcgt-toggle]) .zcgt-thumbs { max-width: calc(100% - 135px); }
    .zcgt-thumbs button { flex-basis: 96px; }
}
@media (prefers-reduced-transparency: reduce) { .zcgt-panel { background: var(--main-bg-color); backdrop-filter: none; } }
.zcgt-thumbs,
.zcgt-thumbs img,
.zcgt-thumbs video {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}
