/* Новости — вариант D «Кино».
   Подключать ПОСЛЕ main.css и theme.css: <link rel="stylesheet" href="/css/news-d-cinema.css">
   Широкие постеры 16:9 на всю карточку, заголовок наезжает на нижний край картинки
   поверх затемнения, под ним текст и подпись. Посты без фото — компактные карточки. */

.newsview .section-title {
  margin: 34px 0 10px; font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(90deg, #c084fc, #ff5fa8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, .4));
}
.news-feed { max-width: 880px; gap: 30px; margin-top: 34px; }
.post {
  display: flex; flex-direction: column; padding: 0 0 12px; overflow: hidden; border-radius: 26px; background: #100c1c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.post:hover { border-color: rgba(255, 95, 168, .5); box-shadow: 0 18px 60px rgba(139, 44, 246, .3); transform: translateY(-3px); }
.post-photo { position: relative; margin: 0; }
.post-photo img { aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 0; }
/* Затемнение к нижнему краю постера */
.post-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #100c1c 0%, rgba(16, 12, 28, .55) 30%, transparent 62%);
}
/* Фото и заголовок — в одной ячейке сетки: заголовок лежит на нижнем крае постера, текст ниже не наезжает */
.post:has(.post-photo) { display: grid; grid-template-columns: minmax(0, 1fr); }
.post:has(.post-photo) > .post-photo { grid-area: 1 / 1; }
.post:has(.post-photo) > .post-title {
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 1; margin: 0 28px 22px;
  font-size: 32px; line-height: 1.15; text-shadow: 0 3px 18px rgba(0, 0, 0, .8);
}
.post:has(.post-photo) > .post-text { margin-top: 18px; }
.post > :not(.post-photo):not(.post-title):not(.post-thread) { margin-left: 28px; margin-right: 28px; }
.post > .post-title:not(:first-child) { margin-left: 28px; margin-right: 28px; }
.post:not(:has(.post-photo)) > .post-title { margin-top: 26px; margin-left: 28px; margin-right: 28px; font-size: 26px; }
.post:not(:has(.post-photo)) > .post-text:first-child { margin-top: 26px; }
.post-text { font-size: 15.5px; line-height: 1.65; color: #c9c3d6; }
.post-author { margin-top: 4px; font: 700 12px/1 'Consolas', 'Courier New', monospace; letter-spacing: .1em; text-transform: uppercase; }
.post-author .post-name { color: #ff8ec4; font-size: 12px; }
.post-thread { margin-left: 28px; margin-right: 28px; }
.post.skeleton { padding: 26px 28px; }

@media (max-width: 720px) {
  .newsview .section-title { margin-top: 24px; letter-spacing: .06em; }
  .post { border-radius: 20px; }
  .post:has(.post-photo) > .post-title { margin: 0 18px 16px; font-size: 24px; }
  .post > :not(.post-photo):not(.post-title):not(.post-thread), .post > .post-title:not(:first-child), .post-thread { margin-left: 18px; margin-right: 18px; }
  .post:not(:has(.post-photo)) > .post-title { margin-left: 18px; margin-right: 18px; font-size: 22px; }
}
