/* Media Videos Page Styles */
/* 專用於 media_videos.html 頁面 */

/* Container */
.psd-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

/* ========================================
   Banner 區域
   ======================================== */
.psd-banner-section {
    position: relative;
    width: 100%;
    margin-top: 7vw;
}

/* banner 圖片 */
.psd-banner-img {
    width: 100%;
    height: auto;
}

/* 頁面標題 */
.psd-page-title {
    position: absolute;
    left: min(13.073vw, 251px);
    bottom: min(7vw, 192px);
    margin: 0;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    font-size: min(2.3vw, 48px);
    color: #ffffff;
    white-space: nowrap;
}

/* ========================================
   麵包屑與分享區域 - 正常文件流
   ======================================== */
.psd-breadcrumb-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: min(3.385vw, 65px) min(13.021vw, 250px);
}

/* 麵包屑 */
.psd-breadcrumb {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 300;
    font-size: min(1.15vw, 24px);
    color: #000000;
    white-space: nowrap;
}

/* 分享群組 */
.psd-share-group {
    display: flex;
    align-items: center;
    gap: min(0.833vw, 16px);
}

/* 分享文字 */
.psd-share-text {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: min(1.25vw, 24px);
    color: #000000;
}

/* 分享圖示 */
.psd-share-icons {
    width: min(7.656vw, 147px);
    height: min(1.823vw, 35px);
}

/* ========================================
   內容區域 - 影片網格
   ======================================== */
.psd-content-area {
    position: relative;
    width: 76vw;
    margin: 0 auto;
    padding: min(2vw, 40px) min(1.615vw, 31px) min(5.208vw, 100px);
}

/* ========================================
   影片網格 - 使用 CSS Grid，2欄
   ======================================== */
.psd-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw 7vw;
}

/* 影片卡片 */
.psd-video-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow: hidden;
}

/* 影片縮圖容器 */
.psd-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background-color: #000;
}

.psd-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* YouTube 播放按鈕覆蓋層 */
.psd-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(4.167vw, 80px);
    height: min(4.167vw, 80px);
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.psd-video-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: min(0.833vw, 16px) 0 min(0.833vw, 16px) min(1.354vw, 26px);
    border-color: transparent transparent transparent #ffffff;
    margin-left: min(0.26vw, 5px);
}

.psd-video-card:hover .psd-video-play-btn {
    background-color: rgba(204, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 影片時間標籤 */
.psd-video-duration {
    position: absolute;
    right: min(0.521vw, 10px);
    bottom: min(0.521vw, 10px);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: min(0.729vw, 14px);
    padding: min(0.156vw, 3px) min(0.417vw, 8px);
    border-radius: min(0.208vw, 4px);
}

/* ========================================
   影片說明區域
   ======================================== */
.psd-video-info {
    display: flex;
    flex-direction: column;
    padding: min(1.042vw, 20px) 0;

}

/* 影片標題 */
.psd-video-title {
    margin: 0;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: min(1.042vw, 20px);
    color: #000000;
    line-height: 1.6;
}

/* ========================================
   分頁
   ======================================== */
.psd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: min(1.5vw, 30px);
    margin-top: min(4vw, 80px);
}

.psd-pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Sans TC", sans-serif;
    font-size: min(1.25vw, 24px);
    color: #666666;
    cursor: pointer;
    transition: color 0.2s;
}

.psd-pagination-arrow:hover {
    color: #004a89;
}

.psd-pagination-num {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: min(1.25vw, 24px);
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s;
}

.psd-pagination-num:hover {
    opacity: 0.7;
}

.psd-pagination-num--active {
    font-weight: 500;
    position: relative;
}

.psd-pagination-num--active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: min(1.615vw, 31px);
    height: min(0.116vw, 2px);
    background-color: #333;
}

/* ========================================
   響應式調整
   ======================================== */
@media (max-width: 1200px) {
    .psd-video-grid {
        gap: min(2.5vw, 40px) min(2vw, 30px);
    }
}

@media (max-width: 768px) {
    .psd-banner-section {
        margin-top: 60px;
    }

    .psd-page-title {
        left: 5vw;
        bottom: 5vw;
        font-size: 24px;
    }

    .psd-breadcrumb-section {
        padding: min(3vw, 30px) min(5vw, 20px);
        flex-direction: column;
        align-items: flex-start;
        gap: min(2vw, 10px);
    }

    .psd-breadcrumb {
        font-size: 14px;
    }

    .psd-share-text {
        font-size: 14px;
    }

    .psd-content-area {
        width: 95%;
        padding: min(3vw, 30px) min(2vw, 20px) min(5vw, 50px);
    }

    .psd-video-grid {
        grid-template-columns: 1fr;
        gap: min(4vw, 30px);
    }

    .psd-video-play-btn {
        width: 60px;
        height: 60px;
    }

    .psd-video-play-btn::before {
        border-width: 12px 0 12px 20px;
        margin-left: 4px;
    }

    .psd-video-title {
        font-size: 16px;
    }

    .psd-video-duration {
        font-size: 12px;
    }

    .psd-pagination {
        gap: 20px;
        margin-top: 40px;
    }

    .psd-pagination-num,
    .psd-pagination-arrow {
        font-size: 18px;
    }
}
