body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    width: 100%;
    height: 400px;
    background-color: #1a1a1a;
    position: relative;
}

.wrapper_inner {
    width: 69%;
    height: 100%;
    background-image: url(../picture/type1.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    margin: auto;
    color: #fff;
}

.wrapper_inner::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    /* background: linear-gradient(to right, rgb(32, 33, 36) 0, rgba(0, 0, 0, 0) 56%), 
                linear-gradient(to top, rgb(32, 33, 36) 0, rgba(0, 0, 0, 0) 56%), 
                linear-gradient(to left, rgb(32, 33, 36) 0, rgba(0, 0, 0, 0) 56%); */
}

.wrapper_info {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 10;
    max-width: 500px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h2 {
    line-height: 1.8;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.wrapper_info p {
    line-height: 1.8;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer {
    margin-bottom: 0px;
}

.main {
    flex: 1;
    width: 65%;
    margin: auto;
    padding: 20px 2%;
    display: block;
    background-color: #fff;
}

.m-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #00a6ed;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sort-controls label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-controls select:hover {
    border-color: #00a6ed;
}

.sort-controls select:focus {
    outline: none;
    border-color: #00a6ed;
    box-shadow: 0 0 0 3px rgba(0, 166, 237, 0.1);
}

.list1 {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.l1-box {
    width: 29%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.l1-box:hover {
    box-shadow: 0 4px 12px rgba(0,166,237,0.15);
    transform: translateY(-3px);
    border-color: #00a6ed;
}

.l1-img {
    display: block;
    width: 31%;
    height: 80px;
    border-radius: 12px;
    margin-right: 12px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    object-fit: cover;
}

.l1-text {
    width: 65%;
    flex: 1;
}

.game-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.l1-box:hover .game-name {
    color: #00a6ed;
}

.game-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.game-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #F88A28;
    font-weight: 500;
}

.star {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-left: 4px;
}

.l2-box {
    margin: 0 16px 20px 0;
}

.l2-box:nth-of-type(4n) {
    margin-right: 0px;
}

@media (max-width:1000px) {
    .wrapper {
        width: 100%;
        height: 270px;
    }

    .wrapper_info {
        left: 20px;
        bottom: 20px;
        padding: 20px;
        max-width: 300px;
    }

    h2 {
        font-size: 24px;
    }

    .wrapper_info p {
        font-size: 14px;
    }

    .main {
        width: 96%;
        padding: 20px 2%;
    }

    .l1-box {
        width: 100%;
    }

    .m-title {
        font-size: 20px;
    }

    .sort-controls {
        flex-wrap: wrap;
    }
}