.addcatdesc{
	border-top: 1px solid #D0D3D8;margin-top:10px;padding-top:5px;
}

.but_desc_manage{
    padding-bottom:20px;
}

.but_desc_manage span{
    color: #333;
    border-bottom: 1px dotted rgba(51,51,51,.5);
    cursor: pointer;
}

.addcatdesc_wrapper::after {
    content: '';
    position: absolute;
    z-index: 10;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 76px;
    background: linear-gradient(to bottom,rgba(241,241,241,0) 0%,rgba(241,241,241,.85) 71%,rgba(241,241,241,1) 100%);
    background-size: 100%;
    pointer-events: none;
}

.addcatdesc_wrapper {
    position: relative;
    max-height: 140px;
    overflow: hidden;
    margin-bottom: 15px;
}

.addcatdesc_wrapper.full_height{
    position: static;
    max-height: 100%;
    overflow: visible;    
}

.addcatdesc_wrapper.full_height::after {
    background: none;
}
/* Îáùàÿ îáîëî÷êà */
.video-wrapper {
  max-width: 100%;
  margin: 20px 0;
}

/* Êîíòåéíåð äëÿ ïðåâüþ è âèäåî (àäàïòèâíàÿ ïðîïîðöèÿ 16:9) */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

/* === ÏÐÅÂÜÞ === */
.video-thumbnail {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Êíîïêà Play */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
}

.video-play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent white;
}

/* === ÂÈÄÅÎ === */
/* Âèäåî çàíèìàåò òî÷íî òî æå ìåñòî, ÷òî è ïðåâüþ, íî ñêðûòî */
.video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
