:root {
    --plyr-color-main: #1dbaa5 !important;
}

* {
    outline: none;
    box-sizing: border-box;

    &[hidden],
    &.hidden {
        display: none !important;
    }
}

html,
body {
    margin: 0 auto;
    height: 100%;
    max-height: 100%;
}

html {
    @media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
        html {
            transform: rotate(-90deg);
            transform-origin: left top;
            width: 100vw;
            overflow-x: hidden;
            position: absolute;
            top: 100%;
            left: 0;
        }
    }
}

body {
    background: #232225;
    color: white;
    font: normal normal normal 20px/30px Roboto;
}

.shared-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;

    display: table;
    background: rgb(121, 121, 121);
    background: linear-gradient(
        180deg,
        rgba(121, 121, 121, 1) 0%,
        rgba(35, 34, 37, 1) 500px,
        rgba(35, 34, 37, 1) 100%
    );
}

p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: white;

    ul {
        margin: 0;
    }
}

.results-line {
    width: 100%;
    margin: 3px 0;
}

.content-editable {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: white;

    ul {
        margin: 0;
    }
}

.content-editable[contenteditable="true"] {
    background: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    align-self: flex-start;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    line-height: 2ch;
}

/*h1 {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    font-size: 41px;*/
/*    line-height: 41px;*/
/*    font-weight: 500;*/
/*    color: white;*/
/*    text-align: center;*/
/*}*/

/*h6 {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    font-size: 41px;*/
/*    font-weight: 500;*/
/*    color: white;*/
/*}*/

#player {
    visibility: hidden;
}

.plyr {
    visibility: hidden;
    border-radius: 10px;
}

.icon-button {
    cursor: pointer;
}

.container {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

#body-container {
    min-height: 200px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;

    &.portrait {
        min-width: unset;
    }

    @media (max-width: 575px) {
        min-width: unset !important;
        max-width: unset;
        width: 100%;

        .body {
            width: 100%;
            padding: 63px 26px;
        }
    }
}

#tab-instructions {
    display: none;
}

.owner-element {
    display: none;
}

.shared-link-container {
    position: absolute;
    top: 40px;
    right: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;

    margin: 0 40px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;

    .navbar {
        max-width: 1440px;
        width: 100%;
        padding: 0;

        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;

        @media (max-width: 575px) {
            max-width: unset;
            width: 100%;

            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
        }
    }

    .navbar .logo {
        width: auto;
        height: 42px !important;
    }

    .navbar .avatar {
        width: auto;
        height: 44px !important;
        aspect-ratio: auto;
        object-fit: cover;
        border-radius: 50%;
    }

    .main {
        overflow: hidden;

        max-width: 1440px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 40px;

        margin-bottom: 50px;

        .main-video-container {
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            gap: 40px;

            width: 100%;

            &.portrait {
                width: auto;

                @media (max-width: 1024px) {
                    width: 100%;
                }
            }
        }

        .main-container {
            width: 100%;
            height: auto;

            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            gap: 40px;

            .content {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                gap: 11px;
            }

            .loading-message {
                color: black;

                &.white {
                    color: white;
                }
            }

            p {
                color: black;
            }
        }

        @media (max-width: 575px) {
            max-width: unset;
            width: 100%;

            .video-container {
                justify-content: flex-start;
                min-width: unset !important;
                min-height: unset !important;

                border-radius: 10px;

                .video-content {
                    video {
                        width: 100%;
                        border-radius: 10px;
                        &.portrait {
                            width: 100%;
                        }
                    }
                }
            }
        }

        &.portrait {
            flex-direction: row;

            @media (max-width: 1024px) {
                flex-direction: column;
            }
        }

        .content {
            position: relative;
            max-width: 1440px;
            width: 100%;
            padding: 0;
            gap: 11px;

            &.result {
                display: block;
                font-size: 14px;
                line-height: 14px;
                color: black;

                align-items: flex-start;

                .time {
                    margin: 3px 0;
                }

                .time-results {
                    margin: 3px 0;
                }
            }

            &.video-container {
                background-color: rgba(0, 0, 0, 0.1);
                border-radius: 10px;

                width: 100%;

                &.portrait {
                    min-width: unset;
                    flex: unset;
                }
            }

            &.portrait {
                justify-content: flex-start;
            }

            .body {
                width: 100%;
                position: relative;

                padding: 66px 106px;
                justify-content: flex-start;
                align-items: flex-start;

                background-color: white;
                border-radius: 10px;

                .content-editable {
                    color: black;
                    text-align: left;
                }

                mat-tab-group {
                    width: 100%;
                }
            }

            .video-content {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                border-radius: 10px;

                .message {
                    padding: 16px 32px;
                }

                &.portrait {
                    height: 70%;
                }

                .div {
                    width: 100%;
                    height: 100%;
                }

                video {
                    width: 100%;
                    border-radius: 10px;
                    background-repeat: no-repeat;
                    background-size: contain;

                    &.border-0 {
                        border: 0;
                        border-radius: 0;
                    }

                    &.portrait {
                        width: auto;
                        height: 100%;
                    }

                    @media (max-width: 1280px) {
                        width: 100%;
                    }
                }

                video::-internal-media-controls-download-button {
                    display: none !important;
                }

                video::-webkit-media-controls-enclosure {
                    overflow: hidden !important;
                }

                video::-webkit-media-controls-panel {
                    width: calc(100% + 30px) !important; /* Adjust as needed */
                }
            }
        }
    }

    @media (max-width: 575px) {
        margin: 0 20px;
    }
}

.line-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;

    @media (max-width: 991px) {
        width: 100%;
        flex-wrap: wrap;

        h1 {
            flex: 1;
        }
    }

    .time {
        min-width: 60px;

        font-size: 14px;
        font-weight: 400;
        color: #707070;
        align-self: flex-start;
        opacity: 0.5;

        cursor: pointer;
    }

    .time:hover {
        text-decoration: underline;
    }

    .time-results {
        min-width: 60px;
        font-size: 14px;
        font-weight: 400;
        color: #707070;
        align-self: flex-start;
        opacity: 0.5;
        cursor: pointer;
    }

    .time-results:hover {
        text-decoration: underline;
    }

    /* Ocultar apenas o timestamp NaN:NaN:NaN */
    .time-results[data-time="NaN:NaN:NaN"] {
        display: none !important;
    }

    &.center {
        justify-content: center;

        h1 {
            text-align: center;
        }
    }
}

.pfi-btn-big {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    background-color: transparent !important;
    border: 1px solid white;
    max-height: 37px;
    font-size: 14px;
    font-weight: 500;
    color: white;

    box-shadow: none;

    @media (max-width: 575px) {
        width: 100%;
    }
}

.content-btn {
    height: 37px;
    color: white;
    border-radius: 30px;
    box-shadow: none;
    padding-left: 29px;
    padding-right: 29px;

    &.tertiary {
        background-color: var(--tertiary);
    }
}

.mobile-actions {
    display: none;

    @media (max-width: 1024px) {
        display: flex;

        &.line-item {
            justify-content: center;
        }
    }
}

.top-actions {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1024px) {
    .top-actions {
        display: none;
    }
}

#loading-panel {
    /*display: none;*/
}

.loading {
    &.absolute {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 160px;
        height: max-content;
        margin-left: -80px;
        margin-top: -17px;
    }

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;

    .loading-message {
        color: white;
    }

    /*::ng-deep .mat-progress-bar-buffer, .mat-progress-bar-fill::after {*/
    /*    background-color: darken($ sessions, 40%);*/
    /*}*/
}

.loading-message {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: black;
}

/*.processing {*/
/*    display: none;*/
/*}*/

/*.loading ::ng-deep .mat-progress-bar-fill {*/
/*    background-color: darken($ sessions, 40%);*/
/*}*/

/*.loading ::ng-deep .mat-progress-bar-fill::after {*/
/*    background-color: $ sessions;*/
/*}*/

#shared-link-panel {
    width: 100%;
}

.tab-group {
    position: relative;
    width: 100%;

    .tab-group-header::-webkit-scrollbar {
        display: none;
    }

    .tab-group-header {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 54px;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        overflow-y: hidden;
        overflow-x: auto;

        @media (max-width: 575px) {
            justify-content: flex-start;
        }

        .tab-group-tab-label {
            border-bottom: 3px solid transparent;
            padding: 20px 37px 17px 37px;
            text-wrap: nowrap;

            font-size: 14px;
            line-height: 14px;
            color: rgba(0, 0, 0, 0.5);
            font-weight: 800;

            cursor: pointer;

            &.active {
                border-bottom: 3px solid var(--primary);
                color: black;
            }

            &.disabled {
                pointer-events: none;
                opacity: 0.5;
            }
        }
    }

    .tab-group-tab {
        display: none;

        position: relative;
        top: 120px;
        right: 0;
        left: 0;

        pointer-events: all;

        &.active {
            display: flex;

            padding-bottom: 120px;
        }
    }
}

#blocker {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    /*background-color: rgba(0,0,0,0.5);*/

    z-index: 9;
}

.share-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 450px;
    height: auto;

    z-index: 10;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    background-color: #232225;
    border-radius: 6px;
    padding: 32px;

    /*box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;*/
    /*box-shadow: rgba(0, 0, 0, 0.2) 0 7px 29px 0;*/
    /*box-shadow: rgba(0, 0, 0, 0.1) 0 1px 1px 0 inset, rgba(0, 0, 0, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px;*/
    box-shadow: rgba(0, 0, 0, 0.6) 0 20px 30px -10px;

    .line-item {
        width: 100%;
    }

    @media (max-width: 575px) {
        width: 352px;
    }
}

#log {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;

    padding: 6px;

    opacity: 0.9;

    background-color: #23282f;
    color: white;

    z-index: 1000;
}

.shared-link-panel-top-menu {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    padding: 20px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;

    .shared-link-panel-top-menu-item {
        background-color: transparent;
        border: none;
        outline: none;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        color: #878787;
        font-size: 14px;
        line-height: 14px;
        font-weight: 300;

        padding: 0;

        img {
            height: 18px;
        }
    }

    div {
        gap: 5px;
    }

    button {
        gap: 1px;
        cursor: pointer;
        line-height: 19px;
    }
}

.plyr__control.plyr__control--overlaid {
    background-color: rgba(255, 186, 3, 0.8);
    &:hover {
        background-color: #ffba03;
    }

    svg {
        color: #232225;
    }
}

/* Forçando cor branca para o ícone de play */
.plyr__control--overlaid svg,
.plyr__control.plyr__control--overlaid svg,
.plyr__control.plyr__control--overlaid svg use {
    color: white !important;
    fill: white !important;
}

.plyr__controls__item.plyr__control {
    &:hover {
        background-color: #ffba03;
    }
}

.plyr__control[data-plyr="mute"] {
    &:hover {
        background-color: #ffba03;
    }

    &[aria-pressed="true"] {
        background-color: #ffba03;
    }
}

.plyr__controls__item.plyr__menu .plyr__control {
    &:hover {
        background-color: #ffba03;
    }

    &[aria-expanded="true"] {
        background-color: #ffba03;
    }
}

.plyr__menu__container .plyr__control--back:hover,
.plyr__menu__container .plyr__control[aria-checked="true"] {
    background-color: #ffba03;
}

.plyr--full-ui input[type="range"] {
    color: #ffba03;
}

.plyr__video-wrapper {
    border-radius: 10px !important;
    overflow: hidden;
}
