.video-block {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: move;

    pointer-events: none;

    /*width: 1296px;*/
    /*height: 858px;*/

    /*min-height: 180px;*/
    /*min-width: 320px;*/
}

.video-block > * {
    pointer-events: auto;
}

.video-block.active {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-block video, .stack-container .stack-block video {
    width: 100%;
    height: auto;
    display: block;

    pointer-events: auto;
}

.video-container .video-content {
    height: 100%;

}

.video-content iframe {
    width: 100%;
    height: 90%;
    border: none;
    pointer-events: auto;
}

.iframe-controls {
    position: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.iframe-controls .top-bar {
    display: flex;
    padding: 8px;
}

.video-container > .top-bar > .btn, .iframe-controls .btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    /* padding: 15px; */
    /*pointer-events: all; !* Включаем клики *!*/
}

.video-container > .top-bar > .btn::before, .iframe-controls .btn::before {
    content: "";
    position: absolute;
    top: -10px; /* Увеличение зоны сверху */
    left: -10px; /* Увеличение зоны слева */
    right: -10px; /* Увеличение зоны справа */
    bottom: -10px; /* Увеличение зоны снизу */
    background: transparent;
    /* padding: 15px; */
    /*pointer-events: all; !* Включаем клики *!*/
}

.iframe-controls .btn.buy-record {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: fit-content;
    height: 24px;
}

.iframe-controls .btn:hover {
    background-color: #81b71a;
}

.video-wrapper video::-webkit-media-controls-timeline,
.video-wrapper video::-webkit-media-controls-time-remaining-display,
.video-wrapper video::-webkit-media-controls-current-time-display {
    display: none !important; /* Убирает таймлайн и отображение времени */
}

/* Центральная кнопка Play/Pause */
.play-pause {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    cursor: pointer;
    pointer-events: all;
}

/*.stack-container {*/
/*    position: fixed;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 250px;*/
/*    display: flex;*/
/*    overflow-x: auto;*/
/*    padding: 10px;*/
/*    z-index: 1000;*/
/*}*/

/*.stack-container .stack-block {*/
/*    flex: 0 0 auto;*/
/*    width: calc(250px * 16 / 9);*/
/*    height: 250px;*/
/*    background-color: transparent;*/
/*    margin-right: 10px;*/
/*    position: relative;*/
/*}*/

/*.stack-container .top-bar {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    height: 30px;*/
/*    background-color: rgba(0, 0, 0, 0.7);*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    width: 100%;*/
/*    padding: 0 5px;*/
/*}*/

.video-container {
    width: 1296px;
    height: 858px;

    min-height: 350px;
    min-width: 500px;

    /*position: relative;*/
    background-color: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;

    position: absolute;
    top: 30px;
    left: 250px;
}

.video-container .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    /* justify-content: space-between; */
    /* for one btn for now */
    justify-content: flex-end;
    align-items: center;
    padding: 0 10px;
    background: transparent;
    color: #fff;
    z-index: 10;
}

.video-container .top-bar .btn:hover {
    background-color: #575cdc;
}

.video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-container .bottom-bar {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 0 10px;*/
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    font-size: 16px;
    color: #333;

    gap: 10px;
    padding: 10px 20px;
}

.title-container {
    /*width: 70%;*/
    background: #EFF3FF;
    padding: 5px 10px;
    border-radius: 12px;
}

.actions-container {
    /*width: 30%;*/
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.video-title {
    color: #5D62D3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    padding: 0 10px;
    /*max-width: 70%;*/
}

.video-record-days {
    font-size: 12px;
    /*color: #606060;*/
}

.action-btn {
    background: #5D62D3;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    /*font-size: 16px;*/

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 45px;
    height: 45px;

    transition: background 0.3s;
}

.action-btn:hover, .action-btn:focus {
    background: #373a7a;
    text-decoration: none;
    color: white;
}

.action-btn img.icon {
    width: 16px;
    height: 16px;
}

.w-100 {
    width: 100%;
}

.w-70 {
    width: 70%;
}

.w-30 {
    width: 30%;
}

.f-16 {
    font-size: 16px !important;
}

.f-14 {
    font-size: 14px !important;
}
.f-12 {
    font-size: 12px !important;
}

.stack-outer-wrapper {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    pointer-events: all;
}

.stack-video-block {
    width: 320px;
    height: 240px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.stack-video-block .top-bar {
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5px;
    background: transparent;
    color: #fff;
}

.stack-video-block .top-bar .btn {
    background: #444;
    color: white;
    border: none;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.stack-video-block .top-bar .btn:hover {
    background-color: #575cdc;
}

.stack-video-block .stack-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stack-video-block .stack-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .action-btn {
        width: 30px;
        height: 30px;

        padding: 4px 8px;
    }
}



