:root{
    --plyr-range-thumb-height: 26px;
    --plyr-range-track-height: 12px;
    /* --plyr-progress-marker-width: 8px; */


    --plyr-control-spacing:15px;
}

html {
    background: black;
    user-select: none;
}

a {
    text-decoration: none;
}

body {
    background: black;
    color:white;
    overflow: hidden;
    width: 100%;
    text-align: center;

    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    padding: 0;
    margin: 0;

    zoom: 100%;
    -webkit-text-size-adjust:100%

}

button {
    background: black;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
}

button.active {
    background: #e5e5e5;
    color: black;
}


.plyr__poster {
    cursor: pointer!important;
}


.plyr__captions {
    margin: 0;
    transform: translateY(-34px);
    padding: 0;
}

.plyr__caption {
    display: block;
    font-size: 26px;
}


.plyr.plyr--stopped .plyr__controls { display: none }
.plyr--full-ui.plyr--video .plyr__control--overlaid { opacity: 0!important; }



.container-video {
    text-align: left;
    width: 100vw;
    margin: auto;
    max-width: 960px;
    max-height: 540px;
    height: calc(100vh - 40px);
    position: relative;
}

.toolbar {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: auto;
    display: grid;

    top: 0;
    padding: 10px;
}

.toolbar-left {
    grid-column-start: 1;
}

.toolbar-right {
    grid-column-start: 2;
    text-align: right;
    padding: 0 10px;
}

.toolbar button {
    margin-right: 10px;
}

#watermark {
    float: left;
    margin-right: 0px;
}

#score {
    background-color: black;
    width: 60px;
    text-align: center;
    white-space: nowrap;
    color: white;
    padding: 5px;
    margin-top: 10px;
    display: inline-block;
}



#main_video {
    width: 100%;
    height: 100%;
}

#main_video[poster] {
    cursor: pointer;
}

#pip_video {
    width: 250px;
    position: absolute;
    bottom: 90px;
    right: 20px;
    background: black;
    border: 2px solid #666;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

#pip_video.active {border-color:red;}


.actions-canvas  {

    display: none;
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);

}



.actions  {
    background-color: #333;
    position: absolute;
    z-index: -1;

    right: 0px;
    top: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    width: 0;
    transition: width 0.5s ease-in-out;
}

.actions.active {
    z-index: 1000;
    width: 400px;
    overflow-y: scroll;
}


.actions .action {
    padding: 15px 10px;
    border-bottom: 1px solid #666;


    display: grid;
    grid-template-columns: 140px 1fr 80px;
    gap: 30px;
    align-items: stretch;


    width: 100%;
    height: 90px;
}

.actions .action.active .action-thumbnail img {
    border-color: darkred;
}

.actions .action .action-thumbnail a.action-link {
    /*position: relative;*/
}

.actions .action .action-thumbnail a.action-link::after {
    content: attr(data-camera);
    position: absolute;
    z-index: 1;
    right: -4px;
    bottom: 8px;
    background-color: #000;
    color: white;
    font-size: 12px;
    padding: 3px 5px;
    filter: grayscale(100%);
}

.actions .action .action-col {
    align-content: center;
}

.actions .action .action-info {
    font-size: 20px;
}

.actions .action .action-thumbnail {
    position: relative;
}


.actions .action-chrono {
    font-size: 26px;
    font-weight: normal;
    color: white;
    opacity: 0.5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    text-align: center;
}


.actions .action .action-thumbnail img {
    width:100%;
    height: auto;
    border:4px solid #000;
    position: relative;
}

.actions .action:hover {
    background-color: #111;
}


/* statistics */
.window  {

    display: none;

    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    width: calc(100%);
    height: calc(100%);
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #303440;
}

.window .window-title  {
    background: #303440;
    color: white;
    font-size: 22px;
    padding: 5px 20px;
    letter-spacing: 1px;
    overflow: hidden;
    height: 30px;
    border-bottom: 2px solid #666;
}

.window-title .btn-close {
    display: inline-block;
    background: black;
    color: white;
    font-size: 40px;
    float: right;
    position: relative;
    top: -10px;
    right: -20px;
    padding: 0 10px;

}

.window-title .btn-close:hover {
    background: #ccc;
    color: #000;
}

.window-body {
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.tabs {
    /*border-bottom: 1px solid #666;*/
    margin-bottom: 20px;
}

.tabs a {
    background: #000;
    color: white;
    padding: 8px 20px;
    font-size: 18px;
    text-align: center;
    min-width: 150px;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.tabs a.active {
    background: #21232f;
    color: #c3f64f;
    border-bottom: 2px solid #f71658;
}


.tab-content {

    display: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;

}
.tab-content.active {display: block!important;}

.window table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.window table .col-label {width: auto; white-space: nowrap; text-align: left;}

.window small {color: #ccc; background: #303440; padding: 2px 3px; border-radius: 3px; font-size: 11px;}

.window table th {padding: 5px 10px; background: #303440; text-align: center; font-weight: normal;  }
.window table td {padding: 5px 10px; text-align: center;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

.window table tr:hover td {
    background: #aaa;
    color: black;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    /* box-shadow: 0 0 10px #e5e5e5; */
    background-color: #303440;
    color: #fff;
    text-align: center;
    /* border-radius: 5px; */
    position: absolute;
    bottom: 125%; /* Ajuste en fonction de la position souhaitée */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    padding: 10px;
    line-height: 24px;
}

/* Triangle en bas de la tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


.alert-message {

    box-sizing: border-box;
    display: block;
    font-size: 16px;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}