
body {
    background-color: #f8f9fa;
}
.card {
    margin-bottom: 15px;
}
.card img {
    height: 250px;
    object-fit: cover;
}
.offcanvas {
    transition: transform 0.3s ease-in-out;
}
.movie-thumbnail {
    width: 120px;
    height: 160px;
    object-fit: cover;
}
/* 让 video.js 播放器的容器宽高自适应 */
.ratio {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 确保视频播放器自适应填满容器 */
video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
 .video-container video {
    max-width: 800px; /* 设置最大宽度 */
    max-height: 450px; /* 设置最大高度 */
    width: 100%; /* 让它自适应 */
    height: auto;
}

    /* 确保视频播放器充满容器 */
    #videoPlayer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
        /* 设置 DPlayer 容器 */
        #dplayer {
            position: relative;
            height: 760px;  /* 设置固定高度 */
            width: 100%;    /* 容器宽度自适应 */
            background-color: black;  /* 背景色 */
        }