.ml-video-archive {
    --ml-video-blue: #046eb8;
    --ml-video-wrap: 1440px;
    --ml-video-font: "Poppins", "Noto Sans TC", "Noto Sans JP", Helvetica, Arial, "微軟正黑體", sans-serif;
    color: #181818;
    font-family: var(--ml-video-font);
}

.ml-video-archive *,
.ml-video-archive *::before,
.ml-video-archive *::after {
    box-sizing: border-box;
}

.ml-video-archive a {
    color: #000;
    text-decoration: none;
    transition: all 0.4s ease;
}

.ml-video-archive a:hover {
    color: var(--ml-video-blue);
}

.ml-video-archive #primary {
    padding-bottom: 0;
}

.ml-video-bannerArea {
    clear: both;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.ml-video-bannerArea .wrap {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.ml-video-bannerArea .bannerBox {
    position: relative;
}

.ml-video-bannerArea #banner {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-video-bannerArea #banner > li {
    position: relative;
}

.ml-video-bannerArea #banner > li > img {
    display: block;
    width: 100%;
    object-fit: cover;
    backface-visibility: hidden;
}

@media (max-width: 1900px) {
    .ml-video-bannerArea #banner > li > img {
        height: 450px;
    }
}

@media (max-width: 720px) {
    .ml-video-bannerArea #banner > li > img {
        height: 400px;
    }
}

@media (max-width: 540px) {
    .ml-video-bannerArea #banner > li > img {
        height: 360px;
    }
}

.ml-video-bannerArea #banner::after {
    content: "";
    width: 100%;
    position: absolute;
    height: 130px;
    -webkit-mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    background:
        repeat-y url("/wp-content/uploads/2026/03/line4.png") left 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") right 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
        no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .ml-video-bannerArea #banner::after {
        height: 100px;
        background:
            repeat-y url("/wp-content/uploads/2026/03/line4.png") left 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") right 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
            no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    }
}

@media (max-width: 720px) {
    .ml-video-bannerArea #banner::after {
        height: 80px;
    }
}

@media (min-width: 1921px) {
    .ml-video-bannerArea #banner::after {
        -webkit-mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center/100% 100%;
        mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center/100% 100%;
        background:
            repeat-y url("/wp-content/uploads/2026/03/line4.png") left 36px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") right 36px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
            no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% 100%;
    }
}

.ml-video-bannerArea .titleBox {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: calc(100% - 40px);
    padding: 0;
    transform: translate(-50%, -50%);
}

.ml-video-bannerArea .titleBox em {
    margin: 0;
    font-size: 50px;
    font-style: normal;
    font-weight: 500;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .ml-video-bannerArea .titleBox em {
        font-size: 42px;
    }
}

.ml-video-bannerArea .bannerUnitTitle {
    position: relative;
    margin: 0;
    padding: 0 0 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 20px;
    font-weight: 400;
}

@media (max-width: 480px) {
    .ml-video-bannerArea .bannerUnitTitle {
        font-size: 16px;
    }
}

.ml-video-bannerArea .bannerUnitTitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 26px;
    height: 3px;
    background-color: #fff;
}

.ml-video-bannerArea .bread {
    position: static;
    margin-bottom: 0;
    padding: 30px 0 0;
}

.ml-video-bannerArea .bread .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.ml-video-bannerArea .bread a,
.ml-video-bannerArea .bread span {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ml-video-bannerArea .bread a::after,
.ml-video-bannerArea .bread span::after {
    content: "/";
    padding: 0 9px;
    color: #fff;
    font-size: 13px;
}

.ml-video-bannerArea .bread a:last-child::after,
.ml-video-bannerArea .bread span:last-child::after {
    content: normal;
}

@media (max-width: 1200px) {
    .ml-video-bannerArea .bread {
        display: none;
    }
}

.ml-video-mainArea {
    background:
        repeat-y url("/wp-content/uploads/2026/03/line4.png") left 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") right 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
        repeat url("/wp-content/uploads/2025/11/Bg.png") center border-box;
    padding: 80px 0 60px;
}

@media (max-width: 1200px) {
    .ml-video-mainArea {
        background:
            repeat-y url("/wp-content/uploads/2026/03/line4.png") left 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") right 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
            repeat url("/wp-content/uploads/2025/11/Bg.png") center border-box;
        padding-top: 50px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .ml-video-mainArea {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.ml-video-wrap {
    max-width: var(--ml-video-wrap);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.ml-video-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ml-video-contentBox {
    clear: both;
    width: 100%;
}

.ml-video-classRowBox {
    position: relative;
    z-index: 3;
    margin-bottom: 30px;
    padding: 0 0 20px;
}

.ml-video-classLink {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-video-classLink li {
    margin-bottom: 10px;
}

.ml-video-classLink a {
    display: block;
    padding: 10px 15px;
    border: 1px solid rgba(4, 110, 184, 0.23);
    background-color: #fff;
    color: #000;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
}

.ml-video-classLink a.current,
.ml-video-classLink a:hover {
    color: #fff;
    background-color: var(--ml-video-blue);
    border-color: var(--ml-video-blue);
}

@media (max-width: 1200px) {
    .ml-video-classLink {
        display: none;
    }
}

.ml-video-mClassLink {
    position: relative;
    z-index: 3;
    display: none;
}

@media (max-width: 1200px) {
    .ml-video-mClassLink {
        display: block;
    }
}

.ml-video-mClassLink.open > ul {
    display: block;
}

.ml-video-mClassLink .main {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px 44px 10px 10px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background-color: var(--ml-video-blue);
    font: inherit;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.ml-video-mClassLink .main::before {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.ml-video-mClassLink.open .main::before {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.ml-video-mClassLink > ul {
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    z-index: 4;
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ml-video-mClassLink > ul > li + li {
    border-top: 1px solid #f2f2f2;
}

.ml-video-mClassLink > ul > li.current > a,
.ml-video-mClassLink > ul a.current {
    color: var(--ml-video-blue);
}

.ml-video-mClassLink > ul a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 14px 20px;
    color: #000;
    background-color: #fff;
    font-size: 14px;
}

.ml-video-newsMediaList {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 0;
    list-style: none;
}

.ml-video-newsMediaList > li {
    width: 25%;
    margin-bottom: 36px;
    padding: 0 10px;
}

@media (max-width: 1300px) {
    .ml-video-newsMediaList > li {
        width: 33.333333%;
    }
}

@media (max-width: 840px) {
    .ml-video-newsMediaList > li {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .ml-video-newsMediaList > li {
        width: 100%;
    }
}

.ml-video-item {
    display: flex;
    flex-direction: column;
}

.ml-video-image {
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

.ml-video-image a {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.ml-video-image img,
.ml-video-image__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    transition: all 0.3s linear;
    backface-visibility: hidden;
}

.ml-video-image__placeholder {
    background:
        linear-gradient(135deg, rgba(4, 110, 184, 0.14), rgba(4, 110, 184, 0.02)),
        #f4f8fb;
}

.ml-video-image:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

.ml-video-text .head {
    display: flex;
    padding: 10px 0;
}

.ml-video-text .left {
    flex: 0 0 auto;
}

.ml-video-text .right {
    min-width: 0;
    flex: 1 1 auto;
}

.ml-video-date {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 10px;
    color: #a5a5a5;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 540px) {
    .ml-video-date {
        width: auto;
        margin-right: 10px;
        padding-right: 0;
    }
}

.ml-video-date span {
    margin-top: 2px;
    color: #808080;
    font-size: 27px;
    line-height: 1.3;
}

@media (max-width: 540px) {
    .ml-video-date span {
        font-size: 24px;
    }
}

.ml-video-newIcon {
    padding: 6px 0 0;
    color: var(--ml-video-blue);
    background-color: transparent;
    font-size: 14px;
    line-height: normal;
}

.ml-video-text h3 {
    display: flex;
    max-height: 30px;
    margin: 0;
    overflow: hidden;
    font-weight: 400;
    line-height: normal;
}

.ml-video-text h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #181818;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.ml-video-text h3 a:hover {
    color: var(--ml-video-blue);
}

.ml-video-text p {
    display: -webkit-box;
    height: 45px;
    margin: 0;
    overflow: hidden;
    color: #403f3f;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ml-video-empty {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.ml-video-empty h2 {
    margin: 0 0 10px;
    color: #181818;
    font-size: 24px;
    font-weight: 500;
}

.ml-video-empty p {
    margin: 0;
    color: #595959;
    font-size: 16px;
}

.ml-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ml-video-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.ml-video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.78);
}

.ml-video-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
}

.ml-video-lightbox__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.ml-video-lightbox__frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ml-video-lightbox__close {
    position: absolute;
    right: -18px;
    top: -18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
}

.ml-video-lightbox__close::before,
.ml-video-lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #181818;
}

.ml-video-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ml-video-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ml-video-lock {
    overflow: hidden;
}
