.item__cover.gallery-video-player {
    width: 100% !important;
    max-width: 300px !important;
    aspect-ratio: 16/9 !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 修復 tab 內容中的圖片顯示問題 - 桌面版 */
@media (min-width: 768px) {
    .content .tab-pane .item__cover.gallery-video-player {
        width: 100% !important;
        max-width: 300px !important;
        min-width: 300px !important;
        height: 168.75px !important;
        aspect-ratio: 16/9 !important;
        position: relative !important;
        display: block !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }
    
    .content .tab-pane .gallery-preview-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 1 !important;
        display: block !important;
    }
}

/* 統一所有區塊的手機版樣式 - 以猜您喜歡為基礎 */
@media (max-width: 767.98px) {
    /* 針對 tab 內容的特殊修復 */
    .content .tab-content .tab-pane .item .item__cover.gallery-video-player {
        width: 100% !important;
        max-width: 300px !important;
        height: 84px !important;
        margin: 0px auto 8px !important;
        padding: 0px !important;
        position: relative !important;
        display: flex !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        aspect-ratio: 16/9 !important;
    }
}

.gallery-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.2s;
}

.gallery-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.item__rate {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.item__rate--green {
    background: #21d07a;
}

.item__rate--yellow {
    background: #d2d531;
    color: #222;
}

.item__rate--red {
    background: #db2360;
}

.item__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 11;
    transform: translate(-50%, -50%);
}

.plyr__control--overlaid {
    display: none !important;
}

/* 新增四等分 col-5th */
.col-5th {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 1200px) {
    .col-5th {
        max-width: 33.3333%;
        flex-basis: 33.3333%;
    }
}

@media (max-width: 992px) {
    .col-5th {
        max-width: 50%;
        flex-basis: 50%;
    }
}

@media (max-width: 768px) {
    .col-5th {
        max-width: 50%;
        flex-basis: 50%;
    }
}

@media (max-width: 575.98px) {
    .splide--home {
        display: none !important;
    }

    .home__list {
        display: block !important;
    }

    .col-5th {
        max-width: 50%;
        flex-basis: 50%;
    }

    .item__cover.gallery-video-player {
        width: 150px;
        height: 84px;
    }

    .home__list ul.list-unstyled {
        display: flex;
        flex-wrap: wrap;
        margin-left: -8px;
        margin-right: -8px;
    }

    .home__list ul.list-unstyled>li {
        width: 50%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }
}

@media (min-width: 576px) {
    .home__list {
        display: none !important;
    }

    .splide--home {
        display: block !important;
    }
}

.home__title {
    margin-bottom: 2rem;
}

/* 強制 Splide 輪播間距，解決緊黏問題 */
.splide__list {
    display: flex !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.splide__slide {
    margin: 0 !important;
}

@media (max-width: 1199px) {
    .splide__list {
        gap: 24px !important;
    }
}

@media (max-width: 575.98px) {
    .splide__list {
        gap: 0 !important;
    }
}

/* 猜您喜歡輪播卡片寬度與標題省略 */
.splide--content .splide__slide {
    width: auto !important;
    flex: 0 0 auto !important;
}

.splide--content .item--carousel {
    max-width: 235px !important;
}

.splide--content .item__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@media (max-width: 991.98px) {

    .gallery .row,
    .guess-like-row {
        justify-content: center !important;
        gap: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gallery .col-6,
    .guess-like-row .col-6 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gallery-video-player,
    .item__cover.gallery-video-player {
        width: 100% !important;
        max-width: 300px !important;
        aspect-ratio: 16/9 !important;
        margin: 0 auto 8px auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #000 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    .gallery-preview-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block !important;
        position: static !important;
    }
}