#video_link2{
    background-color: #fff3cd!important;
    color: #000000!important;
    border-radius: 3px;
    padding: 3px 10px;
    text-align: center;
}
.explore-input{
    position: relative;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.explore-input .icon-search{
    position: absolute;
    top: 13px;
    right: 10px;
}
.explore-input input::placeholder{
    padding-right: 18px ;
}
.explore-input button{
    position: relative;
    cursor: pointer;
    border: 1px solid var(--brn-gray);
    border-radius: 50%;
    padding: 7px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.explore-input button::after{
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 10;
}
.explore-input button:hover::after{
    opacity: 1;
    visibility: visible;
}


.video-box{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--brn-gray-light);
    overflow: hidden;
}
.video-box a img{
    width: 100%;
    padding: 0 10px;
}
.video-box a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--brn-dark-gray) !important;
}
.video-box .icon-play-circle{
    position: absolute;
    bottom: 11px;
    right: 22px;
    font-size: 30px;
}
.video-box .video-time{
    position: absolute;
    bottom: 11px;
    left: 24px;
    font-size: 16px;
}

/*------ Client Explore .....*/

.explore-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 2; /* مربع */
    overflow: hidden;
    cursor: pointer;
}

.explore-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.explore-item:hover img {
    transform: scale(1.08);
}

.icon-play-explore {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 14px;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----------- Video ------------*/

.video-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ⭐ مهم */
.video-wrapper {
    position: relative;
    height: 100%;
    aspect-ratio: 9 / 16; /* استایل ریلز */
    max-width: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top info */
.video-top {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background-color: rgba(0,0,0,0.3);;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-weight: bold;
    font-size: 14px;
}

.video-title {
    font-size: 13px;
    opacity: 0.8;
}

.close-btn-video {
    position: absolute;
    top: 18px;
    left: 18px;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
}

/* Actions */
.video-actions {
    position: absolute;
    right: 15px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
    font-size: 20px;
    text-align: center;
}
.action{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.action-btn{
    background-color: transparent;
    border: none;
    color: #fff;
}
.link-action{
    display: flex;
    color: #fff !important;
}
/* Progress */
.progress-container {
    position: absolute;
    bottom: 60px;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.2);
}

#progressBar {
    height: 100%;
    width: 0%;
    background: #fff;
}
.mute-btn {
    position: absolute;
    left: 15px;
    bottom: 60px;
    color: #fff;
    font-size: 26px;
    z-index: 10;
}

.like-action {
    position: relative;
    cursor: pointer;
}
.product-details{
    position: absolute;
    bottom: 80px;
    right: 18px;
}
.product-details a{
    display: flex;
    align-items: center;
    justify-content: start;
    color: #fff !important;
}
.product-img{
    display: flex;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
    background-color: var(--brn-gray-light);
}
.btn-comment-container{
    position: absolute;
    bottom: 0;
    height: 60px;
    width: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.explore-comment-input{
    width: 100%;
    height: 40px;
    border-radius: 20px;
    background-color: var(--brn-dark-gray);
    color: #fff;
    padding: 10px 20px;
    margin: 0 10px;
    text-align: right;
}

/* این بخش جایگزین بخش overlay فایل style.css شود */

/*--------Overlay --------------*/
.overlay-bg {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}
.overlay-bg.active {
    display: flex;
}

.overlay {
    width: 100%;
    max-width: 576px;
    max-height: 80%;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 15px 15px 0 0 !important;
    background-color: #fff;
}
.overlay-bg.active .overlay {
    transform: translateY(0);
}
.overlay-top-line {
    width: 50px;
    height: 7px;
    border-radius: 5px;
    background-color: var(--brn-dark-gray);
}
.overlay-content {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 15px 15px 0 0 !important;
}
.menu-overlay a{
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 20px;
    color: var(--brn-dark) !important;
    font-size: 20px !important;
}
.menu-bar img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
}


/* مهم

به رنگ های فایل global.css اضافه شود
--brn-gray-text: #a3a3a3;
--brn-gray-dark-text: #888888;

*/


/*---------- comments ----------------*/
.comments-overlay-header{
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid var(--brn-gray);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.comment-input-container{
    position: fixed;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    padding: 10px;
    border-top: 1px solid var(--brn-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}
.comment-input-container input{
    position: relative;
    width: 100%;
    height: 40px;
    border: 1px solid var(--brn-gray) !important;
    border-radius: 20px;
    padding: 10px 20px;
    text-align: right;
}
.comment-input-container button{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.all-comments{
    width: 100%;
    height: 80vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 85px 10px;
}
.user-commnt{
    margin-bottom: 20px;
}
.comment-header , .comment-header-reply{
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
}
.comment-header img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.comment-time{
    font-size: 14px;
    color: var(--brn-gray-text);
    display: flex;
    align-items: center;
}
.reply-btn{
    height: 30px;

    background-color: transparent;
    border: none;
    font-size: 14px;
    color: var(--brn-gray-text);
    border: 1px solid var(--brn-gray);
    border-radius: 15px;
}
.comment-header-reply img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.reply-container .text-comment{
    font-size: 14px;
    color: var(--brn-gray-dark-text);
}
.reply-container img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.text-comment p{
    text-align: justify;
}