.page-wrap {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== CONTENT AREA ===== */
.content-area {
    padding: 32px 28px;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.row-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-more {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.row-more:hover {
    text-decoration: underline;
}

/* ===== GAME GRID ===== */
.games-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

.game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg2);
    transition: transform 0.2s;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--bg3);
}

.game-meta {
    padding: 8px 10px;
}

.game-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-type {
    font-size: 11px;
    color: var(--text2);
    margin-top: 2px;
}

/* ===== CATEGORY BANNER ROW ===== */
.cat-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 36px;
    padding-bottom: 4px;
}

.cat-row::-webkit-scrollbar {
    display: none;
}

.cat-card {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--bg2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.cat-card:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 28px;
    height: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text2);
}

.footer-info {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.footer-info a {
    color: var(--text2);
    font-size: 12px;
}

.footer-info a:hover {
    color: var(--primary);
}

/* ===== RESPONSIVE: CONTENT ===== */
@media (max-width: 1199px) {
    .games-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .games-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 769px) {
    .games-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .content-area {
        padding: 16px 12px;
    }

    .row-header {
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .row-title {
        font-size: 14px;
        white-space: nowrap;
    }

    .row-more {
        white-space: nowrap;
        flex-shrink: 0;
    }

    footer {
        padding: 16px 14px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .games-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-wrap  {
        margin: 0;
    }
}
