

/* Start:/local/templates/generica-redesign/components/bitrix/news.list/ws.video.materials/style.css?17633871467075*/
/* Стили для блока видео материалов */
.video-materials-section {
    background-color: #fff;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.mb-40 {
    margin-bottom: 40px;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
    display: flex;
}

.video-card {
    background: #fff;
    border: 1px solid #d6d6d6;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    height: 100%;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-card:hover .video-title {
    color: #86bc25;
}

.video-thumbnail {
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 0.15s;
    width: 100%;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(134, 188, 37, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.15s ease;
    z-index: 2;
}

.video-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-card:hover .video-play-icon {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 3;
}

.video-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
    row-gap: 8px;
    min-height: 120px;
}

.video-title {
    color: #323e48;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3333333333;
    transition: color 0.15s;
    margin: 0;
}

.video-description {
    color: #323e48;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4285714286;
    margin: 0;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.video-category {
    /*background: #86bc25;*/
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}

.video-date {
    color: #a1a5a7;
    font-size: 14px;
    font-weight: 400;
}


/* Мобильная адаптация */
@media (max-width: 1338px) {
    .video-title {
        font-size: 14px;
        line-height: 1.2142857143;
    }

    .video-description {
        font-size: 12px;
        line-height: 1.25;
    }

    .video-date {
        font-size: 12px;
    }
}

@media (max-width: 990px) {
    .video-materials-section {
        padding: 24px 0;
    }

    .col-md-6 {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
        margin-bottom: 20px;
    }

    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
}

/* Стили для модального окна */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.video-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.video-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

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

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.video-placeholder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
    position: relative;
}

.video-placeholder-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.video-placeholder-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid #86bc25;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 1;
}

.video-placeholder-text {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Мобильная адаптация модального окна */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        padding: 15px;
        margin: 20px;
    }

    .video-modal-title {
        font-size: 1.3rem;
    }

    .video-placeholder-icon {
        font-size: 3rem;
    }

    .video-placeholder-text {
        font-size: 1rem;
    }
    .video-card .video-play-icon {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        padding: 10px;
        margin: 10px;
    }

    .video-modal-title {
        font-size: 1.1rem;
    }

    .video-modal-close {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}


/* End */
/* /local/templates/generica-redesign/components/bitrix/news.list/ws.video.materials/style.css?17633871467075 */
