.back{
    display: flex;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 24px;
}
.back:hover{
    cursor: pointer;
    p{
        color:#484848;
    }
    img{
        content: url(../element/back-active.svg);
    }
}
.back img{
    width: 24px;
    height: 24px;  
    object-fit: contain;
}
.back p{
    color: var(--Eerie-Black-300, #A3A3A3);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%; /* 22px */
}
.ph{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}
.ph .btn-gp{
    display: flex;
    gap: 16px;
    height: fit-content;
}
.page-title{
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}
.videoSection{
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.video,
.swiper{
    width: 100%;
    max-width: 69%;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px;
    object-fit: cover;
}

.swiper{
    display: none !important;
    width: 100%;
    height: fit-content;
}

.swiper.fullScreen{
    display: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50%);
    z-index: 102;
    width: 90%;
}

.swiper.active, .swiper.fullScreen.active{
    display: block !important;
}

.swiper .close{
    position: absolute;
    display: none;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: center center / cover no-repeat url("../element/close.svg");
    z-index: 103;
}

.swiper .expandButton{
    position: absolute;
    width: 32px;
    height: 32px;
    bottom: 16px;
    right: 16px;
    background: center center / cover no-repeat url("../element/expand.svg");
    z-index: 100;
}

.swiper .expandButton:hover,
.swiper .close:hover{
    cursor: pointer;
}

.swiper .swiper-slide img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.overlay{
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.overlay.active{
    display: block;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  --swiper-navigation-size: 24px;
  color: #484848 !important;
}

.swiper-horizontal>.swiper-pagination-progressbar, .swiper-pagination-progressbar.swiper-pagination-horizontal{
    top: calc(100% - 4px) !important;
}

.swiper-pagination-bullet-active{
    background-color: #484848 !important;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{
    background: #050505 !important;
}

video[poster]{
    object-fit: cover;
}

.playlist{
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    background: #FFF;
    grid-column: span 5;
    border: 1.5px solid transparent;
}
.playlist .lh{
    display: flex;
    padding: 20px 16px;
    align-items: center;
    background: #484848;
    color: #FFF;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%; /* 22px */
}
.playlist .list{
    display: flex;
    flex-direction: column;
    align-self: stretch;
    overflow-y: scroll;
}
.playlist .list .item{
    display: flex;
    flex-wrap: wrap;
    padding: 20px 16px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-bottom: 2px solid var(--Eerie-Black-100, #E8E8E8);
    line-height: 150%;
    color: #A3A3A3;
}
.playlist .list .item img{
    opacity: 0.2;
}
.playlist .list .item.active{
    color: #484848;
    background: var(--Eerie-Black-100, #E8E8E8);
    border-bottom: 1.5px solid var(--Eerie-Black-1000, #050505);
}
.playlist .list .item.active::after{
    content: "(現正播放)";
}
.playlist .list .item.active{
    img{
        opacity:1;
    }
}
.playlist .list .item:hover{
    background: #F7F7F7;
}
.playlist .list .item .dropdown{
    display: none;
}




/* Reference Section */

.ref{
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding-top: 24px;
    border-top: 2px solid #E8E8E8;
    margin-bottom: 180px;
}

.ref .link-list{
    display: flex;
    flex-direction: column;
}

.ref .links{
    display: none;
    align-items: center;
    column-gap: 10px;
    color: var(--Eerie-Black-400, #767676);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 16px */
    text-decoration-line: underline;
}

.ref .links:hover{
    color:#484848;
    img{
        content: url(../element/link-active.svg);
    }
}
.ref .links.active{
    display: inline-flex;
    padding: 8px 0;
}

@media (max-width:1440px) {
    .video,.swiper{
        max-width: 860px;
    }
    .playlist{
        height: 480px;
    }
    .back{
        gap: 6px;
    }
    .back img{
        width: 20px;
        height: 20px;
    }
    .back p{
        font-size: 16px;
    }
    .ph{
        margin-bottom: 24px;
    }
    .videoSection{
        gap: 24px;
        margin-bottom: 24px;
    }
    .ref{
        row-gap: 20px;
        padding-top: 16px;
        margin-bottom: 180px;
    }
    .ref li a{
        gap: 10px;
        font-size: 16px;
    }
    .ref .links.active{
        padding: 6px 0;
    }
}

@media (max-width:1200px) {
    .video,.swiper{
        max-width: 760px;
        border-radius: 6px;
    }
    .playlist{
        height: 420px;
        border-radius: 6px;
    }
    .playlist .lh{
        font-size: 16px;
    }
    .playlist .list .item{
        padding: 20px;
        font-size: 16px;
    }
    .playlist .list .item img{
        display: none;
    }
    .back{
        gap: 6px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    .back img{
        width: 20px;
        height: 20px;
    }
    .back p{
        font-size: 16px;
    }
}

@media (max-width:1040px) {
    .videoSection{
        gap: 16px;
    }
    .video,.swiper{
        max-width: 640px;
        border-radius: 4px;
    }
    .playlist{
        height: 360px;
        border-radius: 4px;
    }
    .playlist .lh{
        padding: 16px;
    }
    .playlist .list .item{
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width:768px) {
    .videoSection{
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }
    .video,.swiper{
        max-width: none;
    }
    .playlist{
        border: 1.5px solid var(--Eerie-Black-200, #D1D1D1);
        height: fit-content;
        width: 100%;
        flex: auto;
    }
    .playlist .lh{
        display: none;
    }
    .playlist .list{
        height: 70px;
        overflow: hidden;
        transition: all ease-out 300ms;
    }
    .playlist .list.expand{
        height: 360px;
        overflow-y: scroll;
        transition: all ease-out 300ms;
    }
    .playlist .list .item{
        flex-direction: column;
        align-items: flex-start;
        row-gap: 4px;
        color: #767676;
        background-color: #FFF;
        order: 2;
    }
    .playlist .list .item.active{
        display: flex;
        height: fit-content;
        padding: 12px 16px;
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        border: none;
        font-weight: 500;
        background-color: #FFF;
        order: 1;
    }
    .playlist .list .item.active.expand{
        border-bottom: 2px solid var(--Eerie-Black-100, #E8E8E8);
    }
    .playlist .list .item.active .dropdown{
        display: block;
        width: 24px;
        height: 24px;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        transition: all ease-out 300ms;
    }
    .playlist .list .item.active .dropdown.active{
        transform: rotate(180deg) translateY(50%);
        transition: all ease-out 300ms;
    }
    .playlist .list .item.active::after{
        display: none;
    }
    .playlist .list .item.active::before{
        content: "現正播放";
        color: #A3A3A3;
        font-size: 12px;
    }
    .back{
        gap: 4px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .back img{
        width: 16px;
        height: 16px;
    }
    .back p{
        font-size: 14px;
    }
    .ph{
        
        margin-bottom: 16px;
    }

    .ref{
        row-gap: 12px;
        padding-top: 16px;
        margin-bottom: 180px;
    }
    .ref li a{
        gap: 10px;
        font-size: 16px;
    }
    .swiper-button-prev,
    .swiper-button-next{
        display: none !important;
}
    .swiper .close, .swiper .expandButton{
        width: 24px;
        height: 24px;
    }
    .swiper .expandButton{
        bottom: 12px;
        right: 12px;
    }
}

@media (max-width:540px) {
    .playlist .list.expand{
        height: 280px;
    }
}