.vjs-poster {
    background-size: contain; /* 保持比例 */
    background-position: center; /* 圖片居中顯示 */
    background-repeat: no-repeat; /* 防止圖片重複 */
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: auto;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.oauth-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Google 按鈕 */
.oauth-btn.google {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #555;
}

.oauth-btn.google:hover {
    background-color: #f1f1f1;
}

/* Facebook 按鈕 */
.oauth-btn.facebook {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #555;
}

.oauth-btn.facebook:hover {
    background-color: #f1f1f1;
}

/* LINE 按鈕 */
.oauth-btn.line {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #555;
}

.oauth-btn.line:hover {
    background-color: #f1f1f1;
}


.search {
    background: none !important;
}

.h3-md {
    font-size: 22px;
}

.page-item.active .page-link {
    background-color: #de201b;
    border-color: #de201b;
}
.page-item .page-link {
    background-color: #090812;
    color: #b8babc;
    border-color: #de201b;
}
.page-item.disabled .page-link {
    background-color: #090812;
    color: #b8babc;
    border-color: #de201b;
}

.owl-box-top {
    background-color: #de201b;
    padding: 5px 10px;
    font-size: 1.1253125rem;
    color: #edeeef;
}
.owl-item-title {
    padding: 5px 10px;
    color: #edeeef;
    background-color: rgba(0, 0, 0, .5);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;  /* 限制最多顯示 2 行 */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; /* 確保長單字換行 */
    max-height: 3.8em; /* 依據行高調整 (2 行 x 1.5em) */
    line-height: 1.6em; /* 設定行高 */
    height: 3.8em;
}
.owl-nav {
    pointer-events: none; /* 讓 nav 本身無法點擊 */
    position: absolute;
    width: 100%;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}
.owl-nav button svg:hover {
    color: #de201b;
}
.owl-nav button svg {
    pointer-events: auto;
    color: #fff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .3);
}
.owl-prev {
    margin-left: 10px;
}
.owl-next {
    margin-right: 10px;
}

.cus-img-actor{
    width: 100%; /* 讓圖片區塊自適應 */
    max-height: 200px; /* 限制最大高度 */
    height: 200px; /* 強制區塊固定高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* 上下填補黑底 */
}
.cus-img-actor img {
    max-height: 100%; /* 讓圖片最大不超過 176px */
    width: auto; /* 保持原比例 */
    object-fit: contain; /* 讓較矮的圖片上下留空 */
}

.cus-img-banner{
    max-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cus-img-item{
    max-height: 181px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-js{
    width: 100%;
    height: 480px;
}

@media screen and (min-width:1200px) and (max-width:1600px) {
    .cus-img-item{
        width: 100%; /* 讓圖片區塊自適應 */
        max-height: 176px; /* 限制最大高度 */
        height: 176px; /* 強制區塊固定高度 */
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: black; /* 上下填補黑底 */
    }
    .cus-img-item img {
        max-height: 100%; /* 讓圖片最大不超過 176px */
        width: auto; /* 保持原比例 */
        object-fit: contain; /* 讓較矮的圖片上下留空 */
    }
}

@media screen and (min-width:576px) and (max-width:1200px) {
    .cus-img-banner{
        max-height: 149px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cus-img-item{
        width: 100%; /* 讓圖片區塊自適應 */
        max-height: 147px; /* 限制最大高度 */
        height: 147px; /* 強制區塊固定高度 */
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: black; /* 上下填補黑底 */
    }
    .cus-img-item img {
        max-height: 100%; /* 讓圖片最大不超過 176px */
        width: auto; /* 保持原比例 */
        object-fit: contain; /* 讓較矮的圖片上下留空 */
    }
}

@media screen and (max-width:576px) {
    .cus-img-banner{
        max-height: 115px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cus-img-item{
        width: 100%; /* 讓圖片區塊自適應 */
        max-height: 106px; /* 限制最大高度 */
        height: 106px; /* 強制區塊固定高度 */
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: black; /* 上下填補黑底 */
    }
    .cus-img-item img {
        max-height: 100%; /* 讓圖片最大不超過 176px */
        width: auto; /* 保持原比例 */
        object-fit: contain; /* 讓較矮的圖片上下留空 */
    }

    .video-js{
        width: 100%;
        height: 300px;
    }
}

.today-news a {
    white-space: nowrap;
    padding: 0 1rem;
    color: #fff;
    font-size: .9368125rem;
    font-weight: 600;
    line-height: 65px;
}
