:root {
    --gc-red: #df3f3f;
    --gc-blue: #267bd8;
    --gc-green: #259d62;
    --gc-bg: #f4f5f7;
    --gc-text: #20242b;
    --gc-muted: #7b8490;
    --gc-line: #e6e9ee;
    --gc-soft: #fafbfc;
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    background: var(--gc-bg);
    color: var(--gc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button { font: inherit; }

.gc-shell {
    width: min(100%, 980px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding-bottom: 0;
    overflow: visible;
}

.gc-game-tabs {
    flex: 0 0 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-bottom: 1px solid var(--gc-line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.gc-tab {
    height: 52px;
    border: 0;
    background: #fff;
    color: #626b76;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}

.gc-tab.active { color: var(--gc-red); }
.gc-tab.active::after {
    content: "";
    position: absolute;
    left: 24%;
    right: 24%;
    bottom: 0;
    height: 3px;
    background: var(--gc-red);
}

.gc-draw-card {
    flex: 0 0 auto;
    background: #fff;
    margin: 12px;
    border: 1px solid var(--gc-line);
    border-radius: 8px;
    overflow: hidden;
}

.gc-view {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 72px;
}

.gc-draw-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gc-line);
}

.gc-draw-title span { color: var(--gc-red); font-size: 13px; }
.gc-draw-title h1 { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.gc-history-btn { border: 0; background: transparent; color: var(--gc-muted); cursor: pointer; }

.gc-balls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 1.5vw, 8px);
    flex-wrap: nowrap;
    padding: 20px 12px 12px;
}

.gc-ball-wrap { flex: 0 1 auto; min-width: 0; text-align: center; }
.gc-ball {
    width: clamp(26px, 8vw, 42px);
    height: clamp(26px, 8vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: clamp(13px, 3.8vw, 18px);
    font-weight: 700;
}
.gc-ball.red { background: var(--gc-red); }
.gc-ball.blue { background: var(--gc-blue); }
.gc-ball.green { background: var(--gc-green); }
.gc-ball-zodiac { margin-top: 5px; color: var(--gc-muted); font-size: clamp(10px, 2.8vw, 12px); }
.gc-plus { flex: 0 0 auto; color: var(--gc-muted); font-size: clamp(18px, 5vw, 24px); }
.gc-draw-meta { padding: 0 12px 16px; color: var(--gc-muted); font-size: 12px; text-align: center; }

.gc-next {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff8f7;
    border-top: 1px solid #f3d9d5;
    text-align: center;
}
.gc-next > div:first-child { flex: 1 1 auto; text-align: left; }
.gc-next-date { order: 2; color: var(--gc-muted); font-size: 12px; text-align: center; white-space: nowrap; }
.gc-countdown { order: 3; min-width: 112px; color: var(--gc-red); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.gc-category-tabs { display: none; }
.gc-board-list { padding: 0 12px; }

.gc-board {
    width: 100%;
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid var(--gc-line);
    border-radius: 8px;
    overflow: hidden;
}

.gc-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    background: linear-gradient(110deg, #a11123 0%, #ea1e37 100%);
    border-bottom: 0;
}
.gc-board-heading { min-width: 0; }
.gc-board-head h2 { min-width: 0; margin: 0; color: #fff; font-size: 16px; font-weight: 600; }
.gc-board-head h2.gc-board-title-zodiac918 { font-size: 16px; }
.gc-board-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.gc-board-badge { padding: 2px 6px; border: 1px solid #fff; border-radius: 3px; background: #fff; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.gc-board-badge:first-child { color: var(--gc-blue); }
.gc-board-badge:last-child { color: var(--gc-red); }
.gc-history-link { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.gc-history-link:hover { text-decoration: underline; }

.gc-inside17-list { width: 100%; }
.gc-inside17-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gc-line);
}
.gc-inside17-row:last-child { border-bottom: 0; }
.gc-inside17-row.pending { background: #fffdf4; }
.gc-inside17-row.pending .gc-inside17-summary { min-height: 38px; align-items: center; }
.gc-inside17-summary {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 14px;
    min-width: 0;
}
.gc-inside17-issue { flex: 0 0 76px; font-size: 14px; white-space: nowrap; }
.gc-inside17-notice { color: #9a6a18; font-size: 14px; }
.gc-inside17-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}
.gc-inside17-number {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dee5;
    border-radius: 50%;
    background: #fff;
    color: #333a43;
    font-size: 12px;
    font-weight: 600;
}
.gc-inside17-number.hit {
    border-color: transparent;
    color: #fff;
}
.gc-inside17-number.hit.red { background: var(--gc-red); }
.gc-inside17-number.hit.blue { background: var(--gc-blue); }
.gc-inside17-number.hit.green { background: var(--gc-green); }
.gc-inside17-result { flex: 0 0 auto; color: var(--gc-muted); font-size: 12px; white-space: nowrap; }
.gc-inside17-result.hit { color: var(--gc-red); font-weight: 600; }
.gc-inside17-update { flex: 0 0 150px; color: var(--gc-muted); font-size: 12px; text-align: right; white-space: nowrap; }

.gc-oez-list { width: 100%; }
.gc-oez-row { min-height: 58px; padding: 10px 16px; border-bottom: 1px solid var(--gc-line); }
.gc-oez-row:last-child { border-bottom: 0; }
.gc-oez-row.pending { background: #fffdf4; }
.gc-oez-row.pending .gc-oez-summary { align-items: center; min-height: 38px; }
.gc-oez-summary { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.gc-oez-issue { flex: 0 0 76px; font-size: 14px; white-space: nowrap; }
.gc-oez-summary .gc-oez-issue { align-self: center; }
.gc-oez-notice { color: #9a6a18; font-size: 14px; }
.gc-oez-parts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gc-oez-part { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--gc-line); border-radius: 5px; background: #fff; white-space: nowrap; }
.gc-oez-part small { color: var(--gc-muted); font-size: 12px; }
.gc-oez-part strong { color: #303640; font-size: 14px; }
.gc-oez-part.hit { border-color: #efb1b1; background: #fff0f0; }
.gc-oez-part.hit strong { color: var(--gc-red); }
.gc-oez-parity.hit { background: #fff0f0; }
.gc-oez-zodiacs.hit { background: #fff0f0; }
.gc-oez-plus { color: var(--gc-muted); font-size: 18px; }
.gc-oez-history-row { display: block; }
.gc-oez-history-row .gc-oez-summary { gap: 16px; }

.gc-z918-list { width: 100%; }
.gc-z918-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 106px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gc-line);
}
.gc-z918-row:last-child { border-bottom: 0; }
.gc-z918-row.pending { grid-template-columns: 78px minmax(0, 1fr); min-height: 58px; background: #fffdf4; }
.gc-z918-issue { align-self: center; color: #1d59a8; font-size: 14px; white-space: nowrap; }
.gc-z918-notice { justify-self: center; color: #9a6a18; font-size: 14px; }
.gc-z918-grid { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 8px 7px; align-items: center; min-width: 0; }
.gc-z918-group { display: flex; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; color: #252a31; font-size: 16px; white-space: nowrap; }
.gc-z918-zodiac { font-weight: 600; }
.gc-z918-numbers { font-variant-numeric: tabular-nums; }
.gc-z918-number.hit, .gc-z918-group.hit { color: var(--gc-red); }
.gc-z918-group.hit.blue, .gc-z918-number.hit.blue { color: var(--gc-blue); }
.gc-z918-group.hit.green, .gc-z918-number.hit.green { color: var(--gc-green); }
.gc-z918-result { display: inline-flex; align-items: center; gap: 2px; min-width: 68px; color: var(--gc-blue); font-size: 15px; white-space: nowrap; }
.gc-z918-result small { font-size: 14px; }
.gc-z918-result strong { color: #20242b; font-size: 15px; font-weight: 600; }
.gc-z918-result.hit strong { color: var(--gc-red); }
.gc-z918-history-row { min-height: 106px; }

.gc-kill-half-list { width: 100%; }
.gc-kill-half-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gc-line);
}
.gc-kill-half-row:last-child { border-bottom: 0; }
.gc-kill-half-row.pending { grid-template-columns: 78px minmax(0, 1fr); background: #fffdf4; }
.gc-kill-half-issue { color: #1d59a8; font-size: 14px; white-space: nowrap; }
.gc-kill-half-notice { justify-self: center; color: #9a6a18; font-size: 14px; }
.gc-kill-half-prediction { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gc-kill-half-title { color: #252a31; font-size: 15px; white-space: nowrap; }
.gc-kill-half-label { color: var(--gc-red); font-size: 15px; white-space: nowrap; }
.gc-kill-half-result { display: inline-flex; align-items: center; gap: 2px; min-width: 74px; color: #252a31; font-size: 14px; white-space: nowrap; }
.gc-kill-half-result small { color: var(--gc-muted); font-size: 13px; }
.gc-kill-half-result strong { font-size: 14px; font-weight: 600; }
.gc-kill-half-result em { color: var(--gc-muted); font-size: 13px; font-style: normal; }
.gc-kill-half-result.hit strong, .gc-kill-half-result.hit em { color: var(--gc-red); }
.gc-kill-half-label.hit { font-weight: 600; }
.gc-kill-half-history-row { min-height: 58px; }

.gc-qqsh-list { width: 100%; }
.gc-qqsh-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 118px;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--gc-line);
}
.gc-qqsh-row:last-child { border-bottom: 0; }
.gc-qqsh-row.pending {
    grid-template-columns: 56px minmax(0, 1fr);
    background: #fffdf4;
}
.gc-qqsh-issue {
    color: #1d59a8;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.gc-qqsh-main {
    display: flex;
    align-items: center;
    min-width: 0;
}
.gc-qqsh-groups {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
}
.gc-qqsh-legend { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.gc-qqsh-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
}
.gc-qqsh-legend-item strong { font-size: 12px; }
.gc-qqsh-legend-item.gc-qqsh-qin { color: #159dcc; background: #dff6ff; }
.gc-qqsh-legend-item.gc-qqsh-qi { color: #9844e8; background: #eedfff; }
.gc-qqsh-legend-item.gc-qqsh-shu { color: #d28a00; background: #fff0d1; }
.gc-qqsh-legend-item.gc-qqsh-hua { color: #e54772; background: #ffdce8; }
.gc-qqsh-group {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    padding: 3px 8px;
    border: 0;
    border-radius: 5px;
    background: #f0f3f5;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.gc-qqsh-group-name { font-weight: 700; }
.gc-qqsh-zodiacs { letter-spacing: 0; font-weight: 500; }
.gc-qqsh-zodiac.hit { color: var(--gc-red); font-weight: 700; }
.gc-qqsh-qin { color: #159dcc; background: #dff6ff; }
.gc-qqsh-qi { color: #9844e8; background: #eedfff; }
.gc-qqsh-shu { color: #d28a00; background: #fff0d1; }
.gc-qqsh-hua { color: #e54772; background: #ffdce8; }
.gc-qqsh-group:not(.selected) { opacity: 1; }
.gc-qqsh-group.selected { opacity: 1; }
.gc-qqsh-group.hit::after {
    display: block;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border-radius: 50%;
    background: #ed3348;
    box-shadow: 0 0 0 1px #fff;
    content: '';
}
.gc-qqsh-notice {
    overflow: hidden;
    color: #9a6a18;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gc-qqsh-result {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 118px;
    color: #4c99e6;
    font-size: 12px;
    white-space: nowrap;
}
.gc-qqsh-result small { color: var(--gc-muted); font-size: 11px; }
.gc-qqsh-result strong { color: #252a31; font-size: 13px; font-weight: 700; }
.gc-qqsh-result.hit strong { color: #ff0000; }
.gc-qqsh-result em { color: #8e98a5; font-size: 12px; font-style: normal; font-weight: 600; }
.gc-qqsh-check { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border: 1px solid #ed3348; border-radius: 50%; color: #ed3348; font-size: 10px; font-weight: 700; line-height: 1; }
.gc-qqsh-history-row { min-height: 54px; }

.gc-fbz-list { width: 100%; }
.gc-fbz-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 118px;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--gc-line);
}
.gc-fbz-row:last-child { border-bottom: 0; }
.gc-fbz-issue { color: #1d59a8; font-size: 13px; font-weight: 600; white-space: nowrap; }
.gc-fbz-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gc-fbz-prediction { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.gc-fbz-title { color: #252a31; font-size: 14px; white-space: nowrap; }
.gc-fbz-label { position: relative; padding: 3px 8px; border-radius: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.gc-fbz-front { color: #159dcc; background: #dff6ff; }
.gc-fbz-back { color: #e54772; background: #ffdce8; }
.gc-fbz-label.hit::after {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ed3348;
    box-shadow: 0 0 0 1px #fff;
    content: '';
}
.gc-fbz-notice { color: #9a6a18; font-size: 11px; white-space: nowrap; }
.gc-fbz-result { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 118px; color: #4c99e6; font-size: 12px; white-space: nowrap; }
.gc-fbz-result small { color: var(--gc-muted); font-size: 11px; }
.gc-fbz-result strong { color: #252a31; font-size: 13px; font-weight: 700; }
.gc-fbz-result.hit strong { color: #ff0000; }
.gc-fbz-check { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border: 1px solid #ed3348; border-radius: 50%; color: #ed3348; font-size: 10px; font-weight: 700; line-height: 1; }
.gc-fbz-legend { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.gc-fbz-legend-item { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 5px; font-size: 11px; line-height: 1.25; white-space: nowrap; }
.gc-fbz-legend-item strong { font-size: 12px; }
.gc-fbz-legend-item.gc-fbz-front { color: #159dcc; background: #dff6ff; }
.gc-fbz-legend-item.gc-fbz-back { color: #e54772; background: #ffdce8; }
.gc-fbz-history-row { min-height: 54px; }

.gc-board-body { padding: 16px; }
.gc-content-extra { width: 100%; }
.gc-board-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 16px 14px; }
.gc-board-actions button { border: 0; background: transparent; color: var(--gc-muted); cursor: pointer; }
.gc-entry-line { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gc-line); }
.gc-entry-label { flex: 0 0 72px; color: var(--gc-muted); }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-tag { padding: 3px 8px; border: 1px solid var(--gc-line); border-radius: 4px; font-size: 13px; }
.gc-empty { padding: 24px; color: var(--gc-muted); text-align: center; }

.gc-modal[hidden] { display: none; }
.gc-modal { position: fixed; inset: 0; z-index: 40; padding: 8vh 12px; background: rgba(25, 30, 38, .42); }
.gc-modal-panel { width: min(760px, 100%); max-height: 84vh; margin: 0 auto; overflow: auto; background: #fff; border-radius: 8px; }
.gc-modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: #fff; border-bottom: 1px solid var(--gc-line); box-shadow: 0 1px 5px rgba(25, 30, 38, .06); }
.gc-modal-head button { border: 0; background: transparent; color: var(--gc-muted); font-size: 22px; cursor: pointer; }
.gc-modal-content { padding: 12px 16px; }
.gc-history-row { padding: 12px 0; border-bottom: 1px solid var(--gc-line); }
.gc-history-row:last-child { border-bottom: 0; }
.gc-history-inside17 { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.gc-history-detail, .gc-history-row small { display: block; margin-top: 5px; color: var(--gc-muted); font-size: 12px; }
.gc-inside17-history-row { display: flex; align-items: center; gap: 16px; }
.gc-inside17-history-row > strong { flex: 0 0 76px; white-space: nowrap; }
.gc-inside17-history-row .gc-history-inside17 { flex: 1 1 auto; min-width: 0; margin: 0; }

@media (max-width: 700px) {
    .gc-draw-title h1 { font-size: 16px; }
    .gc-inside17-row { display: block; padding: 12px; }
    .gc-inside17-summary { align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
    .gc-inside17-issue { flex-basis: 68px; }
    .gc-inside17-update { display: block; margin: 8px 0 0 80px; text-align: left; }
    .gc-inside17-result { margin-left: 80px; }
    .gc-oez-row { padding: 12px; }
    .gc-oez-summary { align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
    .gc-oez-issue { flex-basis: 68px; }
    .gc-oez-parts { flex: 1 1 auto; flex-wrap: wrap; }
    .gc-oez-history-row .gc-oez-summary { gap: 8px 12px; }
    .gc-z918-row { grid-template-columns: 48px minmax(0, 1fr) 64px; gap: 4px; min-height: 92px; padding: 8px 6px; }
    .gc-z918-row.pending { display: flex; min-height: 58px; padding: 12px; }
    .gc-z918-issue { font-size: 12px; }
    .gc-z918-grid { grid-template-columns: repeat(3, max-content); gap: 6px 4px; }
    .gc-z918-group { gap: 1px; font-size: 14px; }
    .gc-z918-number { font-size: 13px; }
    .gc-z918-result { min-width: 64px; font-size: 13px; }
    .gc-z918-result small { font-size: 12px; }
    .gc-z918-result strong { font-size: 13px; }
    .gc-z918-history-row { min-height: 92px; }
    .gc-kill-half-row { grid-template-columns: 48px minmax(0, 1fr) 64px; gap: 4px; min-height: 58px; padding: 8px 6px; }
    .gc-kill-half-row.pending { display: flex; min-height: 58px; padding: 12px; }
    .gc-kill-half-issue { font-size: 12px; }
    .gc-kill-half-prediction { gap: 3px; flex-wrap: wrap; }
    .gc-kill-half-title, .gc-kill-half-label { font-size: 13px; }
    .gc-kill-half-result { min-width: 64px; font-size: 13px; }
    .gc-kill-half-result small, .gc-kill-half-result em { font-size: 11px; }
    .gc-kill-half-result strong { font-size: 12px; }
    .gc-qqsh-row {
        grid-template-columns: 42px minmax(0, 1fr) 82px;
        grid-template-areas: "issue main result";
        align-items: center;
        gap: 5px;
        min-height: 60px;
        padding: 8px;
    }
    .gc-qqsh-row.pending {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-areas: "issue main";
        min-height: 52px;
        padding: 8px;
    }
    .gc-qqsh-issue { grid-area: issue; padding-top: 0; font-size: 12px; }
    .gc-qqsh-main { grid-area: main; display: block; min-width: 0; }
    .gc-qqsh-groups {
        display: flex;
        gap: 8px;
        overflow: visible;
        white-space: nowrap;
    }
    .gc-qqsh-group {
        min-width: 0;
        height: auto;
        padding: 3px 6px;
        font-size: 12px;
        white-space: nowrap;
    }
    .gc-qqsh-group-name { flex: 0 0 auto; }
    .gc-qqsh-zodiacs { min-width: 0; overflow: visible; text-overflow: clip; white-space: nowrap; }
    .gc-qqsh-notice { font-size: 11px; }
    .gc-qqsh-result {
        grid-area: result;
        align-self: center;
        justify-content: flex-start;
        min-width: 0;
        gap: 2px;
        padding-top: 0;
        font-size: 10px;
    }
    .gc-qqsh-result small { font-size: 9px; }
    .gc-qqsh-result strong { font-size: 11px; }
    .gc-qqsh-result em { font-size: 10px; }
    .gc-qqsh-check { width: 12px; height: 12px; font-size: 9px; }
    .gc-qqsh-history-row { min-height: 60px; }
    .gc-fbz-row {
        grid-template-columns: 42px minmax(0, 1fr) 82px;
        gap: 5px;
        min-height: 60px;
        padding: 8px;
    }
    .gc-fbz-issue { font-size: 12px; }
    .gc-fbz-main { display: block; min-width: 0; }
    .gc-fbz-prediction { gap: 3px; }
    .gc-fbz-title, .gc-fbz-label { font-size: 12px; }
    .gc-fbz-label { padding: 3px 6px; }
    .gc-fbz-notice { display: block; margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
    .gc-fbz-result { min-width: 0; justify-content: flex-start; gap: 2px; font-size: 10px; }
    .gc-fbz-result small { font-size: 9px; }
    .gc-fbz-result strong { font-size: 11px; }
    .gc-fbz-check { width: 12px; height: 12px; font-size: 9px; }
    .gc-fbz-history-row { min-height: 60px; }
    .gc-next { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; }
    .gc-next > div:first-child { grid-column: 1; grid-row: 1; text-align: left; }
    .gc-next-date { grid-column: 1; grid-row: 2; text-align: left; }
    .gc-countdown { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
    .gc-inside17-history-row { display: block; }
    .gc-inside17-history-row .gc-history-inside17 { margin-top: 8px; }
}

.gc-view[hidden] { display: none; }

#gallery-view {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0 12px 14px;
    box-sizing: border-box;
}

.gc-gallery-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.gc-gallery-board {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0 0 14px !important;
    overflow: hidden;
    box-sizing: border-box;
}
.gc-gallery-board .gc-board-head,
.gc-gallery-board .gc-board-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.gc-gallery-board .gc-board-head {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.gc-gallery-board .gc-board-heading {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.gc-gallery-board .gc-board-head h2 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gc-gallery-board .gc-history-link {
    flex: 0 0 auto;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gc-gallery-board .gc-board-body {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding: 12px;
}
.gc-gallery-image {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    max-height: min(66vh, 720px);
    object-fit: contain;
    background: #f7f8fa;
    cursor: zoom-in;
}
.gc-gallery-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 100%; }
.gc-gallery-history-item { min-width: 0; max-width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--gc-line); border-radius: 5px; background: #fff; cursor: pointer; text-align: left; }
.gc-gallery-history-item img { display: block; width: 100%; max-width: 100%; aspect-ratio: 1.38; object-fit: cover; background: #f4f5f7; }
.gc-gallery-history-item strong { display: block; padding: 7px 8px; color: #414954; font-size: 12px; font-weight: 600; }
.gc-gallery-history-preview { display: block; width: 100%; max-width: 100%; max-height: 70vh; object-fit: contain; background: #f4f5f7; }

.gc-image-lightbox[hidden] { display: none; }
.gc-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 27, 34, .88);
}
.gc-image-lightbox img {
    display: block;
    max-width: 96vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-out;
}
.gc-image-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}
.gc-image-lightbox-close:hover { background: rgba(255, 255, 255, .3); }
body.gc-lightbox-open { overflow: hidden; }

.gc-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 980px);
    min-height: 58px;
    margin: 0 auto;
    border-top: 1px solid var(--gc-line);
    background: rgba(255, 255, 255, .98);
}
.gc-bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--gc-muted); cursor: pointer; font-size: 11px; }
.gc-bottom-item i { font-size: 18px; }
.gc-bottom-item.active { color: var(--gc-red); }

.gc-back-top {
    position: fixed;
    right: max(14px, calc((100vw - 980px) / 2 + 14px));
    bottom: 72px;
    z-index: 31;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #8d949c;
    border-radius: 50%;
    background: #777e86;
    color: #fff;
    box-shadow: 0 2px 7px rgba(25, 30, 38, .22);
    cursor: pointer;
}
.gc-back-top[hidden] { display: none; }
.gc-back-top:hover { background: #686f77; }
.gc-back-top:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.gc-back-top i { font-size: 17px; }

@media (max-width: 700px) {
    .gc-shell { padding-bottom: 72px; }
    .gc-gallery-board .gc-board-body { padding: 8px; }
    .gc-gallery-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; padding: 8px; }
    .gc-gallery-meta small { grid-column: 1 / -1; margin-left: 0; }
    .gc-gallery-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
