.video_popup{
	height: 100vh;
}

.video_popup.full_screen{
	height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
}

/* Основной контейнер занимает всё доступное пространство */
.video-work-cont {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #000;
}

/* Боковая панель инструментов на всю высоту */
.block-tools {
  height: 100%;
  flex-shrink: 0;
}

/* Контейнер видео занимает оставшееся пространство */
.content-video {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/*

.window-video {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 0; 
}


.window-video-iframe {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.window-video-iframe iframe,
.window-video-iframe video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.window-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transition: all 0.5s;
  transform-origin: top left;
}
*/
#canvas.active-drawing {
    pointer-events: auto;
}

#canvas.inactive-drawing {
    pointer-events: none;
    border: 5px solid rgba(255, 193, 7, 0.5);
}

.overlay-canvas{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	border: none!important;
}

.overlay-canvas.inactive-drawing,
.overlay-canvas.deactivate{
	display: none;
}

/* Переключатель видео всегда внизу */
.switching-video {
  display: flex;
  padding: 24px;
  align-items: center;
  flex-shrink: 0;
  min-height: 174px;
}

/* Остальные стили без изменений */
.section-info {
  display: flex;
  background-color: black;
  width: 100%;
  height: 100vh; /* Добавлено для полной высоты */
}

.switching-video-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.switching-video-item {
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  border-radius: 12px;
}

.switching-video-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  appearance: none;
  border: none;
  width: 163px;
  height: 91px;
  border-radius: 8px;
  cursor: pointer;
  background: url("../../images/photos/exp.jpg");
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

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

.switching-video-button .iframe-go {
  padding: 13px;
}

.switching-video-button:hover .iframe-go {
  opacity: 1;
}

.switching-button-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-left: 23px;
  list-style: none;
  padding: 0;
}

.switching-button-item-button {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: none;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  border-radius: 12px;
  cursor: pointer;
  padding: 27px 16px 20px 17px;
  transition: background 250ms linear;
  text-decoration: none;
}

.switching-button-item-button:hover {
  background: #ffffff;
}

.switching-button-item-button:hover .switching-button-item-text {
  color: #0a84ff;
}

.switching-button-item-button:hover .switching-button-item-icon {
  fill: #0a84ff;
}

.switching-button-item-text {
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 130%;
  display: flex;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 13px;
  transition: color 250ms linear;
}

.switching-button-item-icon {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  transition: fill 250ms linear;
}

.preloader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.preloader.show {
  display: flex;
}

.preloader svg {
  width: 100px;
  height: 100px;
}

.convas-block {
  height: auto;
  margin-top: 32px;
}

.convas-block textarea {
  outline: none;
  border: none;
  border-radius: 6px;
  padding: 5px 7px;
  resize: horizontal;
  -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

.edit-tools {
  background-color: #565454;
  max-height: 0;
  transition: max-height 0.15s ease-out;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
}

.edit-tools.show {
  max-height: 500px;
  transition: max-height 0.25s ease-in;
  height: 100%;
}

.tools-2 {
  z-index: 11;
}

.tools-2-button {
  padding: 13px 9px;
  text-align: center;
}

.tools-2-text {
  display: block;
}

.tools-1-list {
  justify-content: start;
}

@media (max-height: 850px) {
  .tools-1-text {
    display: none;
  }
}

.textCont {
  background-color: #ffffff;
  padding: 5px 5px;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 50px;
  cursor: pointer;
}

.textCont span {
  text-align: center;
}

.text-delim {
  width: 100%;
  background-color: #000000;
  height: 1px;
  border: none;
}

button[disabled] {
  pointer-events: none;
  filter: opacity(0.5);
}

.scale-video {
  height: 6px;
  background-color: grey;
  cursor: pointer;
}

.scale-video-ind {
  background-color: red;
  height: 6px;
}

.tools-2-list2 a.tools-2-button-link {
  display: none;
}

.window-canvas.hidecanvas {
  border: 1px solid #fff;
  transform: scale(0.2) translate(5%, 5%);
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.window-canvas.hidecanvas:before {
  content: 'Board';
  font-size: 200px;
  opacity: 0.5;
}

.window-canvas.hidecanvas .konvajs-content {
  display: none;
}

.revers {
  justify-content: space-between;
  flex-direction: row-reverse;
}


.marker-btn-group {
    margin: 5px;
    display: inline-block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 2. Визуализация на Слайдере */

.progress-container {
    padding: 5px 0 0;
    position: relative;
}

.marker-wrapper {
    background-color: #000;
    width: 100%;
    height: 16px;
    border-radius: 3px;
}

.marker-conteiner {
    background-color: #000;
    width: 99%;
    margin: 0 auto;
    height: 16px;
    border-radius: 3px;
    position: relative;
}

.marker-tick {
    position: absolute;
    top: 1px;
    width: 14px;
    height: 14px;
    background-color: #8d8484;
    z-index: 5;
    border-radius: 3px;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.5s;
}

.marker-tick:hover{
	background-color: #fd9b09;
}

.activeMarker.marker-tick{
	background-color: #fdba56;
}

/* Стили для Оверлея */
#overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: transparent;
    pointer-events: none;
}

#overlay-layer.active-drawing {
    pointer-events: auto;
}

#overlay-layer.inactive-drawing {
    pointer-events: none;
    border: 5px solid rgba(255, 193, 7, 0.5);
    /* Желтая полупрозрачная рамка */
}

.marker-input-group {
    width: 270px;
}


.player-panel {
    width: 100%;
    min-width: 1100px;
    height: 174px;
    background: #343434;
    padding: 10px;
    color: #d2d2d2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== TOP BAR ===== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
}

.time-display {
    font-size: 13px;
}

.current-marker-display {
    font-size: 13px;
}

/* ===== MAIN AREA ===== */

.main-area {
    flex: 1;
    display: grid;
    grid-template-columns: calc(100% - 300px) 300px;
    gap: 10px;
    overflow: hidden;
}

/* ===== LEFT COLUMN ===== */

.left-column {
    display: flex;
    flex-direction: column;
}

/* ===== SLIDER ===== */

.video-range {
    width: 100%;
    border-radius: 4px;
}

/* ===== CONTROLS ZONE ===== */

.controls-zone {
    display: flex;
    gap: 10px;
    height: 50px;
    margin-top: 10px;
    justify-content: space-between;
}

/* left controls */
.controls-left {
    display: flex;
    align-items: top;
    gap: 8px;
}

.controls-center {
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    align-items: top;
}

/* right controls (two rows) */
.controls-right {
    display: flex;
    flex-direction: row-reverse;
    gap: 6px;
    align-items: start;
}

.controls-right .row {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* buttons */

.ctrl-btn {
    width: 50px;
    height: 50px;
    background: #1d1d1d;
    color: #fff;
    border: none;
    border-radius: 12px;
    outline: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    outline: none;
}

.ctrl-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.ctrl-btn:focus,
.ctrl-btn:active {
    outline: none;
}

.ctrl-btn:hover {
    background: #0a84ff;
}

.ctrl-btn:disabled:hover {
    background: #1d1d1d;
}

.ctrl-btn.sm {
    line-height: 1.2;
}

.ctrl-btn.sm span {
    font-size: 10px;
}

.ctrl-btn svg{
	width: 25px;
	height: 25px;
}

.link-btn{
	display: flex;
	justify-content: center;
	align-items: center;
}

.link-btn:hover{
	color: #fff;
}

.dangerButton{
	background-color: red;
}

/* time input */

.inline-form {
    margin-left: 20px;
    background: #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 229px;
    border: 1px solid rgb(255 255 255 / 37%);
}

.inline-form small {
    color: #ffa3a3;
    font-size: 10px;
    padding: 0 8px;
    display: block;
    line-height: 11px;
}

.inline-input-form {
    display: flex;
    height: 30px;
}

.time-input {
    width: 150px;
    padding: 5px 7px;
    background: #fff;
    border: none;
    border-radius: 8px 0 0 0;
    color: #000;
    outline: none;
    font-size: 12px;
}

.inline-input-form button {
    border-radius: 0 8px 0 0;
    width: 77px;
    height: 100%;
    font-size: 12px;
    outline: none;
    white-space: nowrap;
    white-space: nowrap;
}

/* ===== TAG PANEL RIGHT ===== */

.tags-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tags-label {
    font-size: 13px;
    margin-bottom: 4px;
}

.tags-cloud {
    flex: 1;
    background: #1d1d1d;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 400px;
    overflow-y: scroll;
}

.tags-cloud::-webkit-scrollbar {
  width: 15px;
}

.tags-cloud::-webkit-scrollbar-track {
  background-color: darkgrey;
}

.tags-cloud::-webkit-scrollbar-thumb {
  background-color: #7a8185;
}

.tag-item {
    list-style: none;
    position: relative;
    font-size: 13px;
}

.btn-tag-main {
    width: 100%;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 6px;
    color: #f0f0f0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}

.btn-tag-main:hover {
    background: #3a3a3a;
}

.activeMarker .btn-tag-main{
	border-color: #fdba56;
}

.tag-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.tag-label {
    background: #444;
    color: #ccc;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-left: 10px;
}

.tag-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.tag-item:hover .tag-actions {
    opacity: 1;
}

.btn-tag-action {
    width: 30px;
    height: 100%;
    background: #333;
    border: 1px solid #555;
    border-left: none;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-tag-action:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-left: 1px solid #555;
}

.btn-tag-action:hover {
    background: #444;
    color: #fff;
}

.btn-tag-action:last-child {
    border-left: 1px solid #555;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.marker-input-group {
    display: flex;
    align-items: stretch; /* чтобы элементы растягивались по высоте */
    width: 100%;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
}

.marker-input-group input[type="text"] {
    flex-grow: 1;
    background: #fff;
    border: none;
    color: #000;
    padding: 6px 8px;
    font-size: 1em;
    outline: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 100%; /* добавить для гарантии */
}

.input-marker-append {
    display: flex;
    align-items: stretch; /* растянуть по высоте */
    background: #333;
    border-left: 1px solid #555;
}

.btn-tag-success {
    width: 30px;
    background: #444;
    border: none;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    border-radius: 0 6px 6px 0;
    height: 100%; /* гарантируем высоту */
    padding: 0; /* убрать внутренние отступы, если есть */
}

.btn-tag-success:hover {
    background: #555;
    color: #fff;
}

.text-warning-info {
    font-size: 12px;
    color: #fdba56;
    margin-top: 15px;
}


.window-video {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    background-image: repeating-linear-gradient(
    45deg,
    #343434 0px,
    #343434 15px,
    #1d1d1d 15px,
    #1d1d1d 30px
  );
}

.window-video-iframe {
    position: relative;
    width: 100%;
    height: 100%;
    /* Магия: вписываем 16:9 в доступную область */
    aspect-ratio: 16 / 9; 
    
    /* Если экран слишком широкий, ограничиваем ширину по высоте */
    max-width: calc((100vh - 80px) * 16 / 9); /* 80px — примерная высота панели + отступы */
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
    box-shadow: 2px 3px 20px black;
}

.window-video-iframe video,
.window-video-iframe iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.window-canvas {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
}

.window-video-iframe video {
    object-fit: contain;
}

.canvasEditBlock .tools-1-button,
.canvasEditBlock .tools-2-list-button,
.canvasEditBlock .tools-2-button,
.noActive .marker-tick,
.noActive .tag-item{
	opacity: 0.5;
	pointer-events: none;
}

.noActive.tags-cloud{
	overflow: hidden;
}

.vm-player-toggle{
    display:inline-flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    user-select:none;
    color:#fff;
    font-size:14px;
    margin-left: 30px;
}

/* скрываем стандартный */
.vm-player-toggle__input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

/* сам переключатель */
.vm-player-toggle__switch{
    width:42px;
    height:20px;
    background:#8d8484;
    border-radius:999px;
    position:relative;
    transition:background .25s ease;
    flex-shrink:0;
}

/* круг */
.vm-player-toggle__switch::after{
    content:"";
    position:absolute;
    width:16px;
    height:16px;
    background:white;
    border-radius:50%;
    top:2px;
    left:2px;
    transition:transform .25s ease;
}

/* включено */
.vm-player-toggle__input:checked + .vm-player-toggle__switch{
    background:#0a84ff;
}

.vm-player-toggle__input:checked + .vm-player-toggle__switch::after{
    transform:translateX(22px);
}

.vm-player-toggle__text{
    color:#fff;
    line-height:1;
}


.marker-tooltip{
    position:absolute;
    bottom:120%;
    left:50%;
    transform:translateX(-50%) translateY(5px);

    background: #0a84ff;
    color:#fff;
    padding:3px 6px;
    font-size:12px;
    white-space:nowrap;

    border-radius:6px;
    pointer-events:none;

    opacity:0;
    transition:.18s ease;
}

.marker-tick:hover .marker-tooltip{
    opacity:1;
    transform:translateX(-50%) translateY(1px);
}

.marker-tooltip::after{
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);

    border:6px solid transparent;
    border-top-color: #0a84ff;
}