/* ==========================================================================
   1. БАЗОВАЯ ДИЗАЙН-СИСТЕМА И ОБЕРТКИ
   ========================================================================== */
.media-page-container {
    max-width: 1000px; /* Сужен для идеальной верстки в одну колонку */
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2d3748;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Шапка страницы */
.media-view-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 35px;
}

.section-title-lined {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    padding-left: 15px;
    border-left: 5px solid #8B2516; /* Наш фирменный бордовый маркер */
    line-height: 1.2;
}

.media-intro-text {
    font-size: 16px;
    color: #4a5568;
    margin: 0;
}

/* Заголовки крупных подразделов */
.media-block-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
}

/* ==========================================================================
   2. ФОТО-БЛОКИ ПО АНАЛИЗУ ОБЪЕКТОВ (ОДНА КОЛОНКА)
   ========================================================================== */
.photo-one-column-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.media-analysis-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}

/* Контейнеры картинок */
.media-image-wrapper {
    width: 100%;
    background: #000000;
    line-height: 0;
}

.media-img-element {
    width: 100%;
    height: auto;
    display: block;
}

/* Двойные картинки для строения №173 */
.media-image-wrapper.double-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

/* Текстовая область под фото */
.media-text-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-text-wrapper h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.media-text-wrapper p {
    margin: 0;
    font-size: 15px;
    color: #4a5568;
}

/* Блоки разоблачений манипуляций Роспотребнадзора */
.media-counter-evidence {
    background: #fff5f5;
    border: 1px dashed #feb2b2;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    font-size: 14.5px;
    color: #2d3748;
}
.media-counter-evidence strong {
    color: #8B2516;
}

/* ==========================================================================
   3. АДАПТИВНАЯ ВИДЕО-ГАЛЕРЕЯ YOUTUBE (ЖЕСТКИЙ ПЛИТОЧНЫЙ СТИЛЬ С IFRAME)
   ========================================================================== */
.video-grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки для плееров на ПК */
    gap: 24px;
    width: 100%;
}

.video-yt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

/* Контейнер адаптивности: держит пропорции 16:9 на любом экране */
.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%; /* Магическое соотношение сторон (315 / 600) */
    padding-top: 0;
    height: 0;
    overflow: hidden;
    background: #000000;
}

/* Растягиваем iframe на 100% ширины и высоты родительской плитки */
.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Инфо-блок под видеоплеером */
.yt-card-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: space-between;
}

.yt-card-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Ссылка под фреймом */
.yt-watch-btn {
    font-size: 13px;
    font-weight: 700;
    color: #2b5797; /* Синий цвет из вашего макета */
    text-decoration: none;
    align-self: flex-start;
}
.yt-watch-btn:hover {
    color: #8B2516; /* Наш бордовый при наведении */
    text-decoration: underline;
}

/* ==========================================================================
   4. МОБИЛЬНАЯ АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 768px) {
    .video-grid-gallery {
        grid-template-columns: 1fr; /* На смартфонах плееры встают в одну колонку */
        gap: 16px;
    }
    .media-view-header { 
        padding: 20px; 
    }
    .section-title-lined { 
        font-size: 22px; 
    }
    .media-text-wrapper { 
        padding: 15px; 
    }
    .media-text-wrapper h3 { 
        font-size: 16px; 
    }
    /* Картинки строения №173 падают друг под друга на узких экранах */
    .media-image-wrapper.double-images { 
        grid-template-columns: 1fr; 
    } 
}
