﻿
html {
    scrollbar-gutter: auto;
}
.pointer-event-none{
    pointer-events:none;
}

.container-page-shortPlayer {
    position: relative;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    background: black;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container-page-shortPlayer, .container-page-shortPlayer *{
    max-width:100vw;
}

.short-playerpage-height-adjust {
    margin-top: 131px;
    height: calc(100vh - 131px);
    display: flex;
    align-items: center;
    transition: left 0.4s ease, max-width 0.4s ease;
}
.layout-mobile .short-playerpage-height-adjust {
    margin-top: 145px;
    height: calc(100vh - 145px);
}

.container-page-shortPlayer .short-player-padding, .container-page-shortPlayer .short-player-padding video {
    height: calc(100vh - 151px);
    position: relative;
    max-width: calc(100vw - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.layout-mobile .container-page-shortPlayer .short-player-padding, .layout-mobile .container-page-shortPlayer .short-player-padding video {
    height: calc(100vh - 165px);
}
@media only screen and (max-width: 1199px){
    .layout-mobile .container-page-shortPlayer .short-player-padding, .layout-mobile .container-page-shortPlayer .short-player-padding video {
        height: calc(100vh - 205px);
    }
}

.player-corners {
    overflow: hidden;
    border-radius: 16px;
}

.container-page-shortPlayer video {
    overflow: hidden;
    border-radius: 16px;
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

    .container-page-shortPlayer .modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        font-size: 18px;
        cursor: pointer;
    }

.videoControls {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
}

.container-page-shortPlayer .video-volume, .container-page-shortPlayer muted is-muted {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 20px;
    /* Desktop uniquement (souris / trackpad) */
    /* Mobile tactile : jamais de slider */
}

        .container-page-shortPlayer .video-volume .volume-btn, .container-page-shortPlayer muted is-muted .volume-btn {
            background: none;
            border: none;
            margin: 0px;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            border: none;
            outline: none;
            color:white;
            font-size:18px;
        }

        .container-page-shortPlayer .video-volume input, .container-page-shortPlayer muted is-muted input {
            width: 0;
            opacity: 0;
            transition: width 0.25s ease, opacity 0.25s ease;
            cursor: pointer;
        }

@media (hover: hover) and (pointer: fine) {
    .container-page-shortPlayer .video-volume, .container-page-shortPlayer muted is-muted {
        background: rgba(0, 0, 0, 0.55);
    }

    .container-page-shortPlayer .video-volume:hover input, .container-page-shortPlayer muted is-muted:hover input {
        width: 70px;
        opacity: 1;
    }
}

@media (hover: none) and (pointer: coarse) {
    .container-page-shortPlayer .video-volume input, .container-page-shortPlayer muted is-muted input {
        width: 0 !important;
        opacity: 0 !important;
        pointer-events: none;
        display: none;
    }
}

.container-page-shortPlayer .video-title {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    color: white;
    font-size: 20px;
    line-height: 1.4;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35), transparent);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.date-author-line {
    font-size: 18px;
    align-items: flex-start;
}

.short-videoDate {
    white-space: nowrap;
    margin-right: 5px;
}

.short-videoAuteur {
    word-break: break-word;
}

.video-title .title-padding {
    padding: 12px 14px;
    width: 100%;
}

.container-page-shortPlayer .short-player-padding:hover .video-title {
    opacity: 1;
}


.container-page-shortPlayer .video-progress {
    width: 100%;
    height: 4px;
    margin: 10px 0px;
    appearance: none;
    padding: 0px;
    background: linear-gradient(to right, white 0%, white 0%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
    cursor: pointer;
}

    .container-page-shortPlayer .video-progress::-webkit-slider-thumb {
        appearance: none;
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
    }

.short-page-control{
    pointer-events:auto;
}
.short-page-control.close-btn {
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 50%;
    padding:7px 10px;
    margin-top:0px;
    margin-bottom:0px;
    margin-right:6px;
    color: white;
    font-size: 25px;
    line-height: 25px;
    background: rgba(0, 0, 0, 0.55);
}

.short-page-control.up-btn {
    top: 50%;
    right: 10px;
    transform: translateY(-150%);
    cursor: pointer;
    z-index: 10;
    position: absolute;
    position: absolute;
    width: 35px;
    height: 35px;
    font-size:18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #D9D9D9;
    border-radius: 50%;
    overflow: hidden;
}

.short-page-control.down-btn {
    top: 50%;
    right: 10px;
    z-index: 10;
    position: absolute;
    width: 35px;
    height: 35px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #D9D9D9;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}


.short-interaction-icons {
    position: absolute;
    bottom: 12px;
    /*right: -50px;*/
    right:clamp(-50px, 12px, calc(100% - 100vw - 50px));
    display: flex;
    flex-direction: column;
}

.short-interaction-icons i{
    width:25px;
    height:25px;
    font-size:25px;
    margin-top:12px;
}
.short-info-area .self-ad-detail-info {
    height: 100%;
    color: black;
    top: 0px;
    height:100%!important;
    background-color:white;
}

.short-info-area {
    position: fixed;
    height: calc(100vh - 131px);
    right: -500px;
    bottom: 0px;
    z-index: 1000;
    width: 500px;
    transition: right 0.4s ease;
}
.layout-mobile .short-info-area {
    height: calc(100vh - 145px);
}

@media only screen and (max-width: 1199px) {
    .short-info-area {
        bottom: 30px;
        height: calc(100vh - 161px);
    }

    .layout-mobile .short-info-area {
        bottom: 30px;
        height: calc(100vh - 175px);
    }
}

.short-info-area .close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 18px;
    color: black;
    z-index: 1000;
}

.voir-plus-short {
    cursor: pointer;
}

.shortCommentSection .newMainCommentForm {
    display: flex;
}

.shortCommentSection .comments-area {
    display: flex;
    border-top:none;
}

.shortCommentSection .commentText{
    width:100%;
}

.short-page-controls-wrappers {
    position: absolute;
    height: calc(100vh - 131px);
    width: 75px;
    right: 0px;
}