/* 右侧推荐卡片 */


.recommend-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 15px;
}

.recommend-card_out {
    position: relative;
    width: 100%;
    padding-top: 48%;
    border-radius: 10px;
}

/* 移动端 */
@media (max-width: 768px) {
    .recommend-card_out {
        margin-top: 20px;
    }
}

.recommend-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.top_play_border {
    position: absolute;
    top: 2rem;
    left: 0.8rem;
    z-index: 55;
    width: 100%;
    height: 85%;
}

@media (max-width: 768px) {
    .top_play_border {
        top: 0.5rem;
        left: 0.8rem;
        width: 100%;
        height: 100%;
    }
}

.recommend-card:hover {
    border-color: rgba(255, 200, 100, 0.8);
    box-shadow: 0 15px 40px rgba(255, 200, 100, 0.2);
    transform: translateY(-10px);
}

.recommend-image {
    width: 45%;
    min-width: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.recommend-content {
    display: flex;
    flex: 1;
    height: 85%;
    flex-direction: column;
    padding: 10px 20px;
}

.recommend-content .recommend-icon {
    width: 16%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.recommend-text {
    margin-top: 10px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-btn {
    position: absolute;
    bottom: 5%;
    left: calc(50% - 138px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 30%;
    color: #fff;
    font-weight: 400;
    font-size: 1.3rem;
    text-decoration: none;
    background: url("../pictures/small/lookmore.png") no-repeat center;
    background-size: contain;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
}

.recommend-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}


/* 视频播放器区域 */

.video-section {
    position: relative;
    width: 100%;
    padding-top: 67.5%;
    /* border: 3px solid #fff6bc; */
    /* box-shadow:
        inset 0 0 10px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2); */
    border-radius: 10px;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-frame .v_l_up {
    position: absolute;
    top: -35px;
    left: -30px;
    z-index: 99;
    width: 52px;
    height: auto;
}

.video-frame .v_r_up {
    position: absolute;
    top: -35px;
    right: -30px;
    z-index: 99;
    width: 52px;
    height: auto;
}

.video-frame .v_r_bt {
    position: absolute;
    right: -15px;
    bottom: -15px;
    z-index: 99;
    width: 52px;
    height: auto;
}

.video-frame .v_l_bt {
    position: absolute;
    bottom: -15px;
    left: -15px;
    z-index: 99;
    width: 52px;
    height: auto;
}

.video-frame .v_big_B {
    position: absolute;
    bottom: -25px;
    left: calc(50% - 110px);
    z-index: 99;
    width: 220px;
    height: auto;
}

.video-frame .v_big_C {
    position: absolute;
    top: -42px;
    left: calc(50% - 150px);
    z-index: 99;
    width: 300px;
    height: auto;
}

.video-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    overflow: visible;
    position: relative;
    background-size: 100% 100%;
    box-sizing: border-box;
    padding: 3% 2% 2% 2%;
}

.video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: url("../pictures/borderbg/video_border.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
}

.video_box {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play_btn {
    position: absolute;
    width: 30%;
    height: auto;
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s;
}

.play_btn:hover {
    transform: scale(1.2);
}

.video_box video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.video-poster {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.play-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 205px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.15);
}

.play-button i {
    margin-left: 2px;
    /* 微调播放图标位置 */
}


/* 游戏卡片样式 */

.game-card {
    position: relative;
    width: 100%;
    height: 569px;
    padding: 0.8rem;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.7);
    background-image: url("../pictures/borderbg/user_border.png");
    background-size: 100% 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.game-back-content {
    padding: 30px;
}

.game-card:hover {
    border-color: rgba(255, 200, 100, 0.8);
    box-shadow: 0 15px 40px rgba(255, 200, 100, 0.4);
    transform: translateY(-10px);
}

.game-image {
    width: 100%;
    height: 273px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.game-image img:hover {
    transform: scale(1.1);
}

.game-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    margin-bottom: 10px;
    color: #ffd699;
    font-weight: bold;
    font-size: 18px;
}

.game-desc {
    height: 60px;
    margin-bottom: 20px;
    overflow: hidden;
    color: #b3b3b3;
    font-size: 13px;
    line-height: 1.6;
}

.game-btn {
    text-align: center;
    line-height: 50px;
    width: 200px;
    height: 55px;
    color: #76491d;
    font-weight: 400;
    font-size: 20px;
    text-decoration: none;
    background-image: url("../pictures/small/userlook.png");
    background-size: 100% 100%;
    transition: all 0.3s;
    margin: 0 auto;
}

.game-btn:hover {
    transform: scale(1.05);
}


/* 翻转卡片容器 */

.trans_card_container {
    box-sizing: border-box;
    width: 100%;
    min-height: 569px;
    perspective: 1000px;
    margin-top: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .trans_card_container {
        min-height: 469px;
        margin-top: 0;
    }

    .card-face {
        height: 469px;
    }

    .game-card {
        height: 469px;
        padding: 0.5rem;
    }
}

.trans_card_container:hover {
    transform: translateY(-15px);
    transition: all 0.6s ease;
}

.trans_card_container:hover .trans_card_area.flipped {
    transform: rotateY(180deg) !important;
}


/* 翻转卡片区域 */

.trans_card_area {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.6s ease;
}

.trans_card_area.flipped {
    transform: rotateY(180deg) !important;
}


/* 卡片正反面 */

.card-face {
    position: absolute;
    width: 100%;
    height: 569px;
    height: fit-content;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(0);
}

.card-back {
    transform: rotateY(-180deg);
}




/* 响应式设计 */


/*平板电脑和PC端 */

@media (max-width: 991px) {
    .recommend-section {
        margin-left: 0;
    }

    .recommend-card_out {
        transform: scale(0.95);
    }
}

/* 小屏幕端 (平板) */
@media (max-width: 1024px) and (min-width: 768px) {

    .modal-wrapper {
        width: 75vw;
    }

    .home_video_mask .pop_video_area {
        padding: 1rem;
    }

}

/*标准手机 */

@media (max-width: 767px) {

    .video-section {
        transform: scale(1);
    }

    .game-card {
        padding: 0.6rem;
        transform: scale(0.95);
    }

    .recommend-text {
        font-size: 0.6rem;
    }

    .recommend-btn {
        font-size: 0.8rem;
    }

    .trans_card_container:hover {
        transform: unset;
    }

    .trans_card_container .trans_card_area.flipped {
        transform: rotateY(180deg) !important;
    }
}


/*小型手机 */

@media (max-width: 480px) {


    .recommend-text {
        font-size: 0.8rem;
    }

    .recommend-btn {
        font-size: 0.8rem;
    }
}