/* Diziaura News — сетка списка и полная страница */

/* Категория новостей: не стили каталога сериалов */
.catalog-grid:has(.news-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.catalog-grid:has(.news-card) .news-card {
  grid-column: auto;
  max-width: none;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.news-card-media {
  display: block;
  overflow: hidden;
  background: #151a1f;
  aspect-ratio: 16 / 9;
  width: 100%;
  flex-shrink: 0;
}

.news-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding-top: 0.85rem;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--muted, #9aa3ad);
}

.news-card-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 650;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
}

.news-card-excerpt {
  color: var(--muted, #9aa3ad);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt p {
  margin: 0;
}

.news-card-more {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--accent, #c9a227);
  text-decoration: none;
  align-self: flex-start;
}

/* Полная новость */
.news-article {
  max-width: 900px;
  margin: 0 auto;
  min-height: 0 !important;
  height: auto !important;
  position: relative;
}

.news-article-head {
  margin-bottom: 1rem;
}

.news-article-h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.news-article-meta {
  color: var(--muted, #9aa3ad);
  font-size: 0.9rem;
}

.news-article-cover {
  margin: 0 0 1.75rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  overflow: hidden;
  background: #151a1f;
}

.news-article-cover img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.news-article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: none;
  position: static !important;
  min-height: 0 !important;
}

.news-article-body p {
  margin: 0 0 1.1rem;
}

.news-source-line {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted, #9aa3ad);
}

.news-related-series {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-related-title {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.news-related-series ul {
  margin: 0;
  padding-left: 1.1rem;
}

.news-related-series a {
  color: var(--accent, #c9a227);
}

@media (max-width: 1024px) {
  .catalog-grid:has(.news-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .catalog-grid:has(.news-card) {
    grid-template-columns: 1fr;
  }
}
