#bofang_box {
    height: 520px;
}

@media screen and (max-width:980px) {

    #bofang_box {
        height: 253px;
    }
}

.back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 8px 0 0;
    padding: 0;
}

.video-info {
    width: 100%;
    display: flex;
    color: #4F4F4F;         
    background-color: #f3f0f0;
}


.vod-class {
    display: inline-block;
    margin-bottom: 15px;
    margin-left: 6px;
    padding: 4px 12px;     
    font-size: 13px;
    color: #FF8C00;
    background-color: #FFF7ED;
    border: 1px solid #FFD9AC;
    border-radius: 4px;
    line-height: 1.4;      
    align-self: flex-start;
}



.list-videos.big-video .item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
}

/* a 裡面左右排列 */
.list-videos.big-video .item > a {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important; /* 文字靠上 */
    width: 100% !important;
    text-decoration: none !important;
}

/* 左右各半 */
.list-videos.big-video .item > a .img,
.list-videos.big-video .item > a .text-desc {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
}

.list-videos.big-video .item > a .img {
    width: 100% !important;          /* 撐滿左側 flex 50% */
    aspect-ratio: 16 / 9 !important; /* 16:9 橫長 */
    overflow: hidden !important;
    position: relative !important;
    height: auto !important;   
}

.list-videos.big-video .item > a .img img.thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 右邊文字區塊 */
.list-videos.big-video .item > a .text-desc {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* 文字靠上 */
    padding-left: 16px !important;
    padding-right: 16px !important;
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 100% !important; /* 保證 btn 推到底 */
}

/* btn_vod_class 按鈕靠下 */
.list-videos.big-video .item > a .btn_vod_class {
    /* margin-top: auto !important; 推到最下面 */
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important; /* 按鈕間距 */
    align-items: center;
}

.play_container {
    background-color: white !important;
}


.top-navbar ul {
    display: flex;
    border-bottom: 1px solid #ccc; 
    padding: 0;
    margin: 0;
    list-style: none;
}

.top-navbar li {
    padding: 10px 16px;
    cursor: pointer;
    color: #4F4F4F; 
    border-bottom: 3px solid transparent; 
    transition: all 0.2s;
}

.top-navbar li.active {
    color: #FF8C00;
    border-bottom: 3px solid #FF8C00;
}


.navigation .primary li.swiper-slide a.category-btn {
    padding: 8px 16px !important;
    border-radius: 12px !important;     
    background-color: #f0f0f0 !important;
    color: #4F4F4F !important;            
}

.navigation .primary li.swiper-slide.selected a.category-btn {
    background-color: #FFE5CC !important; 
    color: #FF8C00 !important;           
    text-decoration: none;
}

.btn_vod_class .genre-button {
    display: flex;             /* 啟用彈性布局 */
    align-items: center;       /* 垂直置中 */
    justify-content: center;   /* 水平置中 */
    padding: 0 12px !important;           
}
