/* 影片 watch page / 列表(/video)、屋苑新盤頁「相關影片」、新聞列表「地產影片」 */

/* mobile 外框(唔用 ui grid,左右留白喺度) */
.video_page {
    padding: 12px 14px 28px;
}

/* ===== watch page ===== */
.video_watch_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.video_watch_player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video_watch_media {
    display: block;
    width: 100%;
    max-height: 75vh;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video_watch_iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video_watch_iframe iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video_watch_part_label {
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
}

.video_watch_title {
    margin: 16px 0 6px;
    color: #1b1c1d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.video_watch_meta {
    display: flex;
    flex-wrap: wrap;
    color: #767676;
    font-size: 14px;
}

.video_watch_meta span + span::before {
    content: '·';
    margin: 0 8px;
}

.video_watch_estates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.video_watch_estates_label {
    margin-right: 2px;
    color: #767676;
    font-size: 13px;
}

.video_watch_chip {
    padding: 4px 12px;
    background: #f1f2f3;
    border-radius: 999px;
    color: #1b1c1d;
    font-size: 13px;
    line-height: 1.5;
}

.video_watch_chip:hover {
    background: #e2e4e6;
    color: #1b1c1d;
}

/* 描述：預設收起 5 行，JS 見到超出先出「顯示全文」 */
.video_watch_desc_box {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f5f6f7;
    border-radius: 8px;
}

.video_watch_desc {
    max-height: 9em;
    overflow: hidden;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

.video_watch_desc p {
    margin: 0 0 .8em;
}

.video_watch_desc_box.is_collapsible:not(.is_open) .video_watch_desc {
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}

.video_watch_desc_box.is_open .video_watch_desc {
    max-height: none;
}

.video_watch_desc_toggle {
    display: none;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: 0;
    color: #1b1c1d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.video_watch_desc_box.is_collapsible .video_watch_desc_toggle {
    display: inline-block;
}

.video_watch_article {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid #e1e3e6;
    border-radius: 8px;
    color: inherit;
}

.video_watch_article:hover {
    border-color: #b9bdc2;
    color: inherit;
}

.video_watch_article_label {
    color: #767676;
    font-size: 13px;
}

.video_watch_article_title {
    color: #1b1c1d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.video_watch_article_title::after {
    content: ' ›';
}

.video_watch_aside_heading,
.video_watch_links h3 {
    margin: 0 0 12px;
    color: #1b1c1d;
    font-size: 18px;
}

.video_watch_all {
    display: block;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid #d4d6d9;
    border-radius: 8px;
    color: #1b1c1d;
    font-weight: 600;
    text-align: center;
}

.video_watch_all:hover {
    border-color: #1b1c1d;
    color: #1b1c1d;
}

/* 屋苑 / 新盤頁「相關影片」 */
.video_watch_links {
    margin: 20px 0;
}

/* ===== 卡片 ===== */
.video_card {
    display: block;
    color: inherit;
}

.video_card:hover {
    color: inherit;
}

.video_card_thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #e8e9eb;
    border-radius: 8px;
    overflow: hidden;
}

.video_card_thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.video_card:hover .video_card_thumb img {
    transform: scale(1.03);
}

.video_card_duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 1px 6px;
    background: rgba(0, 0, 0, .78);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}

.video_card_body {
    display: block;
}

.video_card_title {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #1b1c1d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video_card:hover .video_card_title {
    text-decoration: underline;
}

.video_card_date {
    display: block;
    margin-top: 4px;
    color: #8a8d91;
    font-size: 13px;
}

/* grid:列表頁 / 相關影片 */
.video_cards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px 16px;
}

/* list:縮圖喺左 */
.video_cards_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.video_cards_list .video_card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.video_cards_list .video_card_thumb {
    flex: 0 0 150px;
    border-radius: 6px;
}

.video_cards_list .video_card_body {
    flex: 1;
    min-width: 0;
}

.video_cards_list .video_card_title {
    margin-top: 0;
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.video_cards_list .video_card_date {
    font-size: 12px;
}

/* strip:橫向捲動 */
.video_cards_strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.video_cards_strip::-webkit-scrollbar {
    display: none;
}

.video_cards_strip .video_card {
    flex: 0 0 62%;
    max-width: 260px;
    scroll-snap-align: start;
}

.video_cards_strip .video_card_title {
    font-size: 14px;
}

/* ===== 新聞列表「地產影片」 ===== */
.video_latest_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.video_latest_box .video_latest_head .ui.header {
    margin: 0;
}

.video_latest_box .video_cards_list .video_card_thumb {
    flex-basis: 128px;
}

.video_latest_more {
    font-size: 14px;
    white-space: nowrap;
}

.video_latest_title {
    margin: 0;
    color: #1b1c1d;
    font-size: 17px;
}

.video_latest_strip {
    padding: 14px 0 16px;
    border-bottom: 8px solid #f2f3f5;
}

.video_latest_strip .video_latest_head,
.video_latest_strip .video_cards_strip {
    padding: 0 14px;
}

.video_latest_strip .video_cards_strip {
    scroll-padding: 0 14px;
}

/* ===== 列表 ===== */
.video_listing_head {
    margin-bottom: 20px;
}

.video_listing_heading {
    margin: 0;
    color: #1b1c1d;
    font-size: 26px;
}

.video_listing_intro {
    margin: 6px 0 0;
    color: #767676;
    font-size: 14px;
    line-height: 1.6;
}

.video_pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 36px 0 12px;
}

.video_pagination_pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.video_pagination_pages > a,
.video_pagination_pages > .is_active,
.video_pagination_step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d4d6d9;
    border-radius: 8px;
    color: #1b1c1d;
    font-size: 14px;
}

.video_pagination_pages > a:hover,
a.video_pagination_step:hover {
    border-color: #1b1c1d;
    color: #1b1c1d;
}

.video_pagination_pages > .is_active {
    background: #1b1c1d;
    border-color: #1b1c1d;
    color: #fff;
    font-weight: 600;
}

.video_pagination_step.is_disabled {
    border-color: #eceef0;
    color: #c2c5c9;
}

.video_pagination_gap {
    padding: 0 2px;
    color: #8a8d91;
}

.video_pagination_status {
    display: none;
}

/* ===== 細 mon ===== */
@media (max-width: 991px) {
    .video_watch_layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 767px) {
    /* mobile player 頂住兩邊 */
    .video_page .video_watch_player {
        margin: -12px -14px 0;
        border-radius: 0;
    }

    .video_watch_title {
        margin-top: 14px;
        font-size: 19px;
    }

    .video_watch_desc {
        font-size: 15px;
    }

    .video_listing_heading {
        font-size: 22px;
    }

    .video_listing_head {
        margin-bottom: 16px;
    }

    .video_cards_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .video_card_title {
        font-size: 14px;
    }

    .video_cards_list .video_card_thumb {
        flex-basis: 42%;
    }

    /* mobile 分頁:上一頁 / 2 / 25 / 下一頁(頁碼仍然喺 HTML 度畀 Google) */
    .video_pagination {
        flex-wrap: nowrap;
        justify-content: space-between;
        margin-top: 28px;
    }

    .video_pagination_pages {
        display: none;
    }

    .video_pagination_status {
        display: block;
        color: #555;
        font-size: 14px;
    }

    .video_pagination_step {
        height: 42px;
        padding: 0 16px;
    }
}
