﻿

.video-short-bg {
    width: 100vw;
    height: 90%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    filter: blur(50px);
    transition: all 1s;
    z-index: -5;
    position: absolute;
}

.surf-page {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    /* background-image: url(../asset/background\ tv\ 2.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-image: 
    linear-gradient(193.42deg, rgba(126, 126, 126, 0.2) -4.45%, rgba(0, 0, 0, 0.2) 90.05%)
        fill 1; */
}

    .surf-page .video-holder {
        justify-content: center;
        display: flex;
        align-items: stretch;
        height: 100%;
        padding: 32px 0px;
    }

        .surf-page .video-holder .video-main {
            --ratio: calc( 9 / 16);
            --max-h: calc(100vh - 86px - (32px * 2));
            --h: min(calc(80vw / var(--ratio)), var(--max-h));
            height: var(--h);
            width: calc(var(--h) * var(--ratio));
            max-width: 528px;
            position: relative;
        }

            .surf-page .video-holder .video-main .asp-9-16 {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border-radius: 20px !important;
            }

            .surf-page .video-holder .video-main .video-info {
                position: absolute;
                bottom: 0;
                width: 100%;
                color: #fff;
            }

                .surf-page .video-holder .video-main .video-info > * {
                }

            .surf-page .video-holder .video-main .type {
                padding: 0px 8px 2px 8px;
                border-radius: 4px;
                background-color: var(--bg-blue);
                width: fit-content;
            }

                .surf-page .video-holder .video-main .type > * {
                    font-size: 12px;
                    font-weight: 700;
                    line-height: 18px;
                    text-transform: uppercase;
                }

            .surf-page .video-holder .video-main .title > * {
                font-size: 24px;
                font-weight: 800;
                line-height: 35.76px;
                color: #ffffff;
            }

            .surf-page .video-holder .video-main .description {
                font-size: 16px;
                font-weight: 400;
                line-height: 23.84px;
                color: #ffffff;
            }

            .surf-page .video-holder .video-main .post-time {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 2px 8px;
                border-radius: 999px;
                background: rgba(0, 0, 0, .55);
                font-size: .75rem;
                line-height: 1.4;
            }

        .surf-page .video-holder .video-toolbar {
            margin-left: 24px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 0px 16px;
        }

            .surf-page .video-holder .video-toolbar > * {
                display: flex;
                flex-direction: column;
            }

            .surf-page .video-holder .video-toolbar .check-btn {
                position: relative;
            }

                .surf-page .video-holder .video-toolbar .check-btn input[type="radio"] {
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    opacity: 0.011;
                    z-index: 100;
                    cursor: pointer;
                }

            .surf-page .video-holder .video-toolbar .upper-block > button {
                padding: 16px;
                border-radius: 50%;
                border: none;
                width: 56px;
                height: 56px;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-bottom: 16px;
            }

            .surf-page .video-holder .video-toolbar .upper-block .check-btn {
                background-color: var(--txt-gray);
                border-radius: 50%;
                width: 56px;
                height: 56px;
            }

                .surf-page .video-holder .video-toolbar .upper-block .check-btn svg {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                }

        .surf-page .video-holder .video-main .under-block {
            --mar: 24px;
            --pad: 16px;
            position: absolute;
            bottom: 40px;
            right: -114px;
            display: flex;
            flex-direction: column;
            z-index: 999999;
        }

        .surf-page .video-holder .under-block > *:nth-last-child(n+2) {
            margin-bottom: 16px;
        }

        .surf-page .video-holder .under-block > * {
            background-color: transparent;
            border: none;
        }

            .surf-page .video-holder .under-block > * svg {
                display: block;
                margin: 0 auto;
            }

            .surf-page .video-holder .under-block > * span {
                display: inline-block;
                width: 100%;
                text-align: center;
                color: var(--txt-black);
                font-size: 14px;
                font-weight: 400;
                line-height: 20.86px;
            }

    .surf-page #menu-drawer .menu-body {
        padding: 24px 16px;
    }

        .surf-page #menu-drawer .menu-body .active {
            color: var(--light-yellow);
        }

        .surf-page #menu-drawer .menu-body p {
            font: 900 16px/24px var(--merri-font);
            color: var(--txt-black);
            margin-bottom: 16px;
        }

        .surf-page #menu-drawer .menu-body ul {
            list-style: none;
            padding-left: 32px;
        }

            .surf-page #menu-drawer .menu-body ul li:nth-last-child(n+2) {
                margin-bottom: 16px;
            }

            .surf-page #menu-drawer .menu-body ul li a {
                font: 700 16px/24px var(--roboto-font);
                color: var(--txt-black);
            }

    .surf-page #menu-drawer .close {
        display: none;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        border: none;
        padding: 16px;
        background-color: var(--red-color);
        position: absolute;
        bottom: 24px;
        right: 16px;
    }

    .surf-page #chat-drawer .chat-body {
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: 100%;
    }

        .surf-page #chat-drawer .chat-body > p {
            font: 900 16px/24px var(--merri-font);
        }

        .surf-page #chat-drawer .chat-body .chat-container {
            flex: 1;
            max-height: calc(100% - 108px);
        }

            .surf-page #chat-drawer .chat-body .chat-container .chat-scroll {
                height: 100%;
                overflow-y: scroll;
            }

                .surf-page #chat-drawer .chat-body .chat-container .chat-scroll::-webkit-scrollbar {
                    display: none;
                }

            .surf-page #chat-drawer .chat-body .chat-container .comment-block {
                background-color: var(--bg-gray);
                padding: 16px;
                border-radius: 8px;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-item > *:nth-last-child(n+2) {
                margin-bottom: 16px;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-item .user-status > * {
                display: inline-block;
                vertical-align: middle;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-item .user-icon img {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                margin-right: 16px;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-item .user-info .name {
                font: 700 14px/18px var(--roboto-font);
                color: var(--txt-black);
                margin-bottom: 4px;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-item .user-info .comment-time {
                font: 400 10px/16px var(--roboto-font);
                color: var(--txt-gray);
                margin-bottom: 0px;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-content p {
                margin-bottom: 4px;
                font: 14px/21px var(--roboto-font);
                color: var(--txt-black);
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-content label {
                cursor: pointer;
                font: 800 14px/16px var(--roboto-font);
                color: var(--red-color);
            }

            .surf-page #chat-drawer .chat-body .chat-container .comment-content input[type="checkbox"] {
                display: none;
            }

                .surf-page #chat-drawer .chat-body .chat-container .comment-content input[type="checkbox"]:checked ~ p {
                    overflow: visible;
                    display: block;
                }

                .surf-page #chat-drawer .chat-body .chat-container .comment-content input[type="checkbox"]:checked ~ label {
                    display: none;
                }

            .surf-page #chat-drawer .chat-body .chat-container .comment-item .comment-utility {
                display: flex;
            }

                .surf-page #chat-drawer .chat-body .chat-container .comment-item .comment-utility > *:nth-child(-n+3) svg {
                    margin-right: 14px;
                }

                .surf-page #chat-drawer .chat-body .chat-container .comment-item .comment-utility button {
                    margin-right: 16px;
                    border: none;
                    outline: none;
                    background-color: transparent;
                }

                    .surf-page #chat-drawer .chat-body .chat-container .comment-item .comment-utility button span {
                        font: 800 14px/16px var(--roboto-font);
                        color: var(--txt-gray);
                        vertical-align: middle;
                    }

                .surf-page #chat-drawer .chat-body .chat-container .comment-item .comment-utility > *:last-child {
                    margin-left: auto;
                }

                    .surf-page #chat-drawer .chat-body .chat-container .comment-item .comment-utility > *:last-child span {
                        font: 400 14px/21px var(--roboto-font);
                        color: var(--txt-gray);
                    }

            .surf-page #chat-drawer .chat-body .chat-container .sub-comment {
                border-left: 2px solid var(--gray-border);
                margin-top: 16px;
                padding-left: 24px;
            }

                .surf-page #chat-drawer .chat-body .chat-container .sub-comment > * {
                    padding: 16px 0px;
                }

        .surf-page #chat-drawer .chat-body .input-box {
            display: flex;
            padding: 13px 16px;
            background-color: var(--bg-gray);
            border: 1px solid var(--gray-border);
            border-radius: 8px;
        }

            .surf-page #chat-drawer .chat-body .input-box input {
                flex: 1;
                margin-right: 5px;
                background-color: transparent;
                border: none;
                outline: none;
            }

            .surf-page #chat-drawer .chat-body .input-box button {
                width: 24px;
                height: 24px;
                background-color: transparent;
                border: none;
                outline: none;
            }

    .surf-page .offcanvas-end {
        top: 50%;
        width: 100%;
    }

    .surf-page .mobi-header {
        display: none;
        padding: 2.25rem 1rem 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1;
    }

.share-content {
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
}

    .share-content > *:nth-last-child(n+2) {
        border-bottom: 1px solid var(--border-gray);
    }

    .share-content .share-header {
        text-align: center;
        font: 800 20px/28px var(--roboto-font);
        color: var(--txt-gray);
    }

        .share-content .share-header button {
            position: absolute;
            width: 2rem;
            height: 2rem;
            top: -15px;
            right: -15px;
            border-radius: 50%;
            background-color: #EFEFEF;
            border: none;
            display: flex;
            justify-content: center;
            align-items: center;
        }

    .share-content .share-social {
        padding: 1.5rem 0px 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .share-content .share-social > * {
            background-color: transparent;
            border: none;
        }

            .share-content .share-social > *:nth-last-child(n+2) {
                margin-right: 24px;
            }

    .share-content .share-input {
        margin-top: 16px;
        border-radius: 8px;
        border: 1px solid var(--gray-border);
        background-color: var(--bg-gray);
        padding: .75rem 1rem;
        display: flex;
    }

        .share-content .share-input input[type="text"] {
            flex: 1;
            margin-right: 12px;
            border: none;
            background-color: transparent;
        }

        .share-content .share-input .copy {
            padding: .5rem 1rem;
            border-radius: 8px;
            border: none;
            background-color: var(--red-color);
            color: #fff;
            font: 500 14px/16px var(--roboto-font);
        }

@media only screen and (max-width: 40em) {

    .surf-page .video-holder .video-main .asp-9-16 {
        height: 103%;
    }

    .media-header {
        display: none;
    }

    .surf-page .video-holder .video-toolbar {
        display: none;
    }

    .surf-page .video-holder {
        padding: 0px;
    }

        .surf-page .video-holder .video-main {
            height: 100%;
            width: 100%;
        }

            .surf-page .video-holder .video-main .under-block {
                right: 16px;
                bottom: 10% !important;
            }

        .surf-page .video-holder .under-block > * svg path {
            fill: #ffffff !important;
        }

    .surf-page .mobi-header {
        display: flex;
        justify-content: space-between;
    }

        .surf-page .mobi-header button {
            background: #FFFFFF33;
            width: 44px;
            height: 44px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            border: none;
        }

            .surf-page .mobi-header button svg path {
                fill: #ffffff !important;
            }

        .surf-page .mobi-header > *:last-child button {
            margin-right: 14px;
        }

            .surf-page .mobi-header > *:last-child button:last-child {
                display: none;
            }

    .surf-page #menu-drawer {
        top: 0 !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        width: 100%;
        background-color: rgba(28, 28, 28, 0.8);
        padding-top: 5.5rem;
        text-align: center;
    }

        .surf-page #menu-drawer .menu-body ul {
            padding-left: 0;
        }

            .surf-page #menu-drawer .menu-body p,
            .surf-page #menu-drawer .menu-body ul li a {
                color: #fff;
            }

        .surf-page #menu-drawer .close {
            outline: none;
            display: flex;
            justify-content: center;
            align-items: center;
        }

    .surf-page .video-holder .video-main .video-info {
        /*padding: 0px 16px 32px 16px;*/
    }

    .carousel__media {
        bottom: -20px;
    }
}

@media only screen and (max-width: 40em) {
    .carousel__media {
        bottom: 0; /* Đặt lại vị trí */
        height: auto;
        min-height: 120px; /* Giảm chiều cao tối thiểu nếu cần */
    }
}

.carousel__media {
    position: relative;
    border-radius: 20px !important;
    overflow: hidden;
    height: auto; /* Để chiều cao tự động */
    height: 100px; /* Đảm bảo chiều cao tối thiểu */
    box-shadow: none;
    background: none;
    z-index: 2; /* Đảm bảo carousel__media ở trên các phần tử khác */
    padding: 10px; /* Thêm padding để tránh nội dung bị cắt */
}

.like-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #606770;
    transition: all 0.2s ease;
    display: block;
}

    .like-button.liked {
        color: #1877F2;
    }

        .like-button.liked span {
            color: #1877F2 !important;
        }

        .like-button.liked svg path {
            fill: #1877F2;
        }

    .like-button:hover {
        background-color: #f0f2f5;
    }

    .like-button:active {
        transform: scale(0.95);
    }

.like-count {
    font-weight: normal;
}

.dislike-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #606770;
    transition: all 0.2s ease;
    display: block;
}

    .dislike-button.disliked {
        color: #FF0000;
    }

        .dislike-button.disliked span {
            color: #FF0000 !important;
        }

        .dislike-button.disliked svg path {
            fill: #FF0000;
        }

    .dislike-button:hover {
        background-color: #f0f2f5;
    }

    .dislike-button:active {
        transform: scale(0.95);
    }
