/* Hub layout guard: normal-flow top navigation and stable game grids. */
/* Keep content stable before external resources finish loading. */
.page-home #lodcvb-game-body { min-width: 0; }
.page-home #lodcvb-game-body > div[style] { grid-column: 1 / -1; min-width: 0; }
.page-home #carousel-container { min-width: 0; }
.page-home #carousel-wrapper { width: 100%; }
.page-home #carousel-wrapper > div {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.page-home #carousel-wrapper > div > a { display: block; width: 100%; height: 100%; }
.page-home #carousel-wrapper > div > a > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-home .category-grid-container { min-width: 0; }

@media (min-width: 1001px) {
    .page-home #lodcvb-game-body > .carousel-container { grid-row: 1; grid-column: 1 / 10; }
    .page-home #lodcvb-game-body > .category-grid-container { grid-row: 1; grid-column: 10 / -1; }
}
/* Responsive navigation: expands in normal document flow. */
@media (min-width: 901px) {
    .site-header .lodcvb-navbar {
        flex-wrap: wrap;
        height: auto !important;
        min-height: 78px;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        gap: 12px !important;
    }
    .site-header .site-nav {
        display: flex !important;
        flex: 1 1 620px;
        flex-wrap: wrap;
        height: auto;
        justify-content: flex-end;
        gap: 6px !important;
    }
    .site-header .site-nav a {
        display: flex !important;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: .82rem;
    }
}
@media (max-width: 900px) {
    .site-header .site-nav.open .nav-home { grid-column: 1 / -1; }
}
.site-header .mobile-nav-toggle { display: none; }
@media (max-width: 900px) {
    .site-header .lodcvb-navbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: auto !important;
        min-height: 66px;
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .site-header .lodcvb-nav-logo { flex: 0 0 auto; }
    .site-header .lodcvb-nav-logo img { height: 38px !important; width: auto !important; }
    .site-header .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
        border: 2px solid #cbd5e1;
        border-radius: 10px;
        background: #fff;
        color: #13243a;
        font: 700 14px/1.2 Arial, sans-serif;
        cursor: pointer;
    }
    .site-header .mobile-nav-toggle svg { width: 22px; height: 22px; }
    .site-header .mobile-nav-toggle[aria-expanded="true"] { background: #13243a; color: #fff; }
    .site-header .mobile-nav-toggle:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
    .site-header .site-nav { display: none !important; flex-basis: 100%; width: 100%; height: auto; }
    .site-header .site-nav.open {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        padding: 8px 0 4px;
    }
    .site-header .site-nav.open a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 10px !important;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #fff;
        color: #13243a;
        font-size: 14px !important;
        text-decoration: none;
        clip-path: none;
    }
    .site-header .site-nav.open a:hover,
    .site-header .site-nav.open a:focus-visible {
        background: #13243a;
        color: #fff;
        outline: 2px solid #fbbf24;
        outline-offset: 1px;
    }
}
body { padding-left: 0 !important; }
.site-header {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom: 2px solid #14b8a6 !important;
}
.lodcvb-navbar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 1400px !important;
    height: 82px !important;
    margin: 0 auto !important;
    padding: 0 28px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 18px !important;
}
.lodcvb-nav-logo { padding: 5px 9px !important; border: 0 !important; background: #fff !important; border-radius: 12px !important; }
.lodcvb-nav-logo img { width: auto !important; height: 52px !important; }
.footer-brand img { padding: 6px 10px; background: #fff; border-radius: 12px; }
.site-nav { flex-direction: row !important; gap: 8px !important; }
.page-home #lodcvb-game-body > .lodcvb-recomed-div { min-width: 0 !important; width: auto !important; }
.lodcvb-recommend-content-scrollable,.lodcvb-game-item-div,.lodcvb-common-recommend-content,.lodcvb-recommend-content { min-width: 0; }
.recommend-item,.lodcvb-game-item { min-width: 0 !important; width: 100% !important; justify-self: stretch !important; }
.recommend-item a,.lodcvb-game-item a,.lodcvb-game-info { display: block; width: 100%; min-width: 0; }
.badge-content { display: flex; flex: 1; width: auto; min-width: 0; }
.badge-title,.badge-subtitle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recommend-item img,.lodcvb-game-item img { display: block; width: 100%; max-width: 100%; }
.recommend-item .lodcvb-game-info p,.lodcvb-game-item .lodcvb-game-info p { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
    .page-home #lodcvb-game-body > .lodcvb-recomed-div { grid-column: 1 / -1 !important; }
    .page-home .lodcvb-recommend-content-scrollable,.lodcvb-game-item-div,.lodcvb-common-recommend-content,.lodcvb-recommend-content { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width: 620px) {
    .lodcvb-navbar { height: 64px !important; padding: 0 10px !important; }
    .lodcvb-nav-logo img { height: 38px !important; }
    .site-nav a { padding: 8px 9px !important; font-size: .75rem !important; }
    .site-nav a:nth-child(2),.site-nav a:nth-child(3),.site-nav a:nth-child(4) { display: none !important; }
}
@media (max-width: 560px) {
    .page-home .lodcvb-recommend-content-scrollable,.lodcvb-game-item-div,.lodcvb-common-recommend-content,.lodcvb-recommend-content { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .recommend-item,.lodcvb-game-item { padding: 6px !important; }
    .recommend-item .lodcvb-game-info,.lodcvb-game-item .lodcvb-game-info { padding: 7px 2px 2px !important; }
    .recommend-item .lodcvb-game-info p:first-child,.lodcvb-game-item .lodcvb-game-info p:first-child { color: var(--text-primary) !important; font-size: .78rem !important; line-height: 1.3 !important; }
    .recommend-item .lodcvb-game-info p:last-child,.lodcvb-game-item .lodcvb-game-info p:last-child { display: none !important; }
}
