/* assets/global-video-player.css */
.global-video-player-wrapper {
    position: fixed;
    z-index: 5000;
}

/*全屏模式*/
.global-video-player-wrapper.player-mode-normal {
    left: 0 !important;
    top: 0 !important;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.global-video-player-wrapper.player-mode-normal #playerPipVolumeBtn {
    display: none;
}

.global-video-player-wrapper.player-mode-normal #playerPipCloseBtn {
    display: none;
}

/*画中画模式*/
.global-video-player-wrapper.player-mode-pip {
    width: 180px;
    height: 320px;
    right: 20px;
    bottom: 20px;
    cursor: move;
}

.global-video-player-wrapper.player-mode-pip #playerNormalMode {
    display: none;
}

@media (max-width: 1024px) {
    .global-video-player-wrapper.player-mode-pip {
        width: 106px;
        height: 188px;
        border-radius: 4px;
    }

    .global-video-player-wrapper.player-mode-pip .player-video-display {
        padding: 0 20px;
    }
}

.global-video-player-wrapper.player-mode-pip .player-pc-action-bar {
    display: none;
}

.global-video-player-wrapper .player-pc-action-bar {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #ffffff;
    z-index: 10;
}

@media (max-width: 769px) {
    .global-video-player-wrapper .player-pc-action-bar {
        display: none;
    }
}

.global-video-player-wrapper .player-icon-item {
    padding: 3px;
    cursor: pointer;
}

.global-video-player-wrapper .player-icon-item.pip {
    margin-top: 5px;
}

.global-video-player-wrapper .player-video-gallery {
    text-align: left;
}

.global-video-player-wrapper .player-video-display {
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 769px) {
    .global-video-player-wrapper .player-video-display {
        height: 100%;
        padding: 0;
    }
}

.global-video-player-wrapper .player-left-img,
.global-video-player-wrapper .player-right-img {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 769px) {
    .global-video-player-wrapper .player-left-img,
    .global-video-player-wrapper .player-right-img {
        display: none;
    }
}

.global-video-player-wrapper .player-left-img .player-video-box,
.global-video-player-wrapper .player-right-img .player-video-box {
    max-width: 50%;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    filter: brightness(0.7);
    box-shadow: rgba(0, 0, 0, 0.6) 0px 0px 30px;
    cursor: pointer;
}

.global-video-player-wrapper .player-left-img .player-video-box.near,
.global-video-player-wrapper .player-right-img .player-video-box.near {
    height: 913px;
    max-height: 913px;
    width: 257px;
}

.global-video-player-wrapper .player-left-img .player-video-box.far,
.global-video-player-wrapper .player-right-img .player-video-box.far {
    height: 730px;
    max-height: 730px;
    width: 205px;
}

.global-video-player-wrapper .player-left-img .player-video-box img,
.global-video-player-wrapper .player-right-img .player-video-box img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.global-video-player-wrapper .player-left-img {
    justify-content: flex-end;
}

.global-video-player-wrapper .player-left-img .player-video-box img {
    border-radius: 6px 0 0 6px;
}

.global-video-player-wrapper .player-right-img .player-video-box img {
    border-radius: 0 6px 6px 0;
}


.global-video-player-wrapper.player-mode-normal .player-center-img {
    height: 100vh;
}


.global-video-player-wrapper .player-center-img {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    background: linear-gradient(-90deg, #eee, #ccc);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /*transition: 300ms;*/
}

@media (min-width: 769px) {
    .global-video-player-wrapper .player-center-img {
        aspect-ratio: 9 / 16;
    }
}

@media (max-width: 769px) {
    .global-video-player-wrapper .player-center-img {
        width: 100%;
    }
}

.global-video-player-wrapper .player-center-img.player-pip-model {
    width: 180px;
    height: 320px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .global-video-player-wrapper .player-center-img.player-pip-model {
        width: 106px;
        height: 188px;
        border-radius: 4px;
    }
}

.global-video-player-wrapper .player-center-img.player-pip-model .player-video-box {
    height: 100%;
}

.global-video-player-wrapper .player-center-img.player-pip-model .player-video-box .player-short-video-item {
    width: 180px;
    height: 320px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .global-video-player-wrapper .player-center-img.player-pip-model .player-video-box .player-short-video-item {
        width: 106px;
        height: 188px;
        border-radius: 4px;
    }
}

.global-video-player-wrapper .player-video-box {
    height: 100%;
}

.global-video-player-wrapper .player-short-video-item {
    width: 100%;
    height: 100%;
    background-color: transparent;
    object-fit: cover;
}

.global-video-player-wrapper .player-short-video-item.blurred {
    filter: blur(60px);
}

/* 视频头部 */
.global-video-player-wrapper .player-video-header {
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    width: 100%;
    z-index: 3;
    color: #ffffff;
    box-sizing: border-box;
}

.global-video-player-wrapper .player-video-header-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.global-video-player-wrapper .player-video-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-video-player-wrapper .player-video-header-volume {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.global-video-player-wrapper .player-icon-arrow-down {
    cursor: pointer;
    display: none;
    padding: 3px;
}

@media (max-width: 769px) {
    .global-video-player-wrapper .player-icon-arrow-down {
        display: block;
    }
}

/* 进度条 */
.global-video-player-wrapper .player-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    position: absolute;
    left: 0;
    bottom: 0;
}

.global-video-player-wrapper .player-progress-bar-filled {
    height: 100%;
    background-color: #ffffff;
    transition: width 0.3s linear;
}

/* 播放图标 */
.global-video-player-wrapper .player-play-icon {
    width: 150px;
    height: 150px;
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

/* 商品列表 */
.global-video-player-wrapper .player-bottom-product-list-box {
    position: absolute;
    left: 0;
    bottom: 0;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    width: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
    z-index: 3;
}

.global-video-player-wrapper .player-bottom-product-list-box::-webkit-scrollbar {
    display: none;
}

.global-video-player-wrapper .player-bottom-product-list {
    padding-inline-start: calc(50% - 120px);
    display: inline-block;
}

.global-video-player-wrapper .player-product-item {
    display: inline-flex;
    flex-direction: column;
    background: #404040;
    border-radius: 6px;
    overflow: hidden;
    width: 230px;
    margin: 12px 5px 20px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.global-video-player-wrapper .player-product-item:hover {
    transform: scale(1.02);
}

.global-video-player-wrapper .player-product-box {
    padding: 10px;
    display: flex;
    gap: 10px;
}

.global-video-player-wrapper .player-product-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.global-video-player-wrapper .player-product-img img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    pointer-events: none;
}

.global-video-player-wrapper .player-product-info {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
}

.global-video-player-wrapper .player-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.global-video-player-wrapper .player-product-price {
    font-weight: 600;
    color: #ff6b6b;
}

.global-video-player-wrapper .player-product-compare-price {
    text-decoration: line-through;
    font-size: 12px;
    color: #949494;
}

.global-video-player-wrapper .player-product-button {
    height: 32px;
    background-color: #d52579;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* 滚动按钮 */
.global-video-player-wrapper .player-scroll-button {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: none;
    position: absolute;
    z-index: 4;
    bottom: 55px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.global-video-player-wrapper .player-scroll-button--left {
    left: 10px;
}

.global-video-player-wrapper .player-scroll-button--right {
    right: 10px;
}

/* 画中画模式按钮 */
.global-video-player-wrapper .player-pip-icon-volume {
    cursor: pointer;
    border: none;
    justify-content: center;
    align-items: center;
    height: 33px;
    width: 33px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: 50%;
    z-index: 5;
    display: flex;
}

.global-video-player-wrapper .player-pip-icon-close {
    cursor: pointer;
    border: none;
    justify-content: center;
    align-items: center;
    height: 33px;
    width: 33px;
    position: absolute;
    right: 5px;
    top: 5px;
    color: #ffffff;
    border-radius: 50%;
    z-index: 5;
    display: flex;
}

/* 切换按钮 */
.global-video-player-wrapper .player-button-fec {
    position: fixed;
    top: 50%;
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 20;
}

.global-video-player-wrapper .player-button-next {
    right: 20px;
}

.global-video-player-wrapper .player-button-prev {
    left: 20px;
}

/* 视频适配样式 */
.global-video-player-wrapper.player-video-fit-1 .player-center-img .player-video-box #playerMainVideo {
    width: auto;
    height: 100%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.global-video-player-wrapper.player-video-fit-2 .player-center-img .player-video-box {
    background-color: #000;
}

.global-video-player-wrapper.player-video-fit-2 .player-center-img .player-video-box #playerMainVideo {
    width: 100%;
    height: auto;
    background-color: #000;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*弹窗模式下，不显示左右箭头*/
.global-video-player-wrapper.player-mode-pip .player-button-fec {
    display: none;
}

/* 视频比例样式 */
.global-video-player-wrapper.player-video-ratio-2.player-mode-pip {
    width: 180px;
    height: 180px;
}

.global-video-player-wrapper.player-video-ratio-2 .player-center-img.player-pip-model {
    width: 180px;
    height: 180px;
}

.global-video-player-wrapper.player-video-ratio-3.player-mode-pip {
    width: 180px;
    height: 135px;
}

.global-video-player-wrapper.player-video-ratio-3 .player-center-img.player-pip-model {
    width: 180px;
    height: 135px;
}

.global-video-player-wrapper.player-video-ratio-4.player-mode-pip {
    width: 320px;
    height: 180px;
}

.global-video-player-wrapper.player-video-ratio-4 .player-center-img.player-pip-model {
    width: 320px;
    height: 180px;
}
