/* Kezdőlapi hírek: egy vezető hír, alatta kompakt sorok, kategóriaszűrővel */
.hv-news {
  --hv-red: #e10600;
  --hv-card: #1c1c1c;
  --hv-line: rgba(255, 255, 255, 0.09);
}

.hv-news__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hv-filter {
  padding: 6px 14px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cfcfcf;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hv-filter:hover {
  color: #fff;
  border-color: #fff;
}

.hv-filter[aria-pressed="true"] {
  color: #fff;
  background: var(--hv-red);
  border-color: var(--hv-red);
}

.hv-filter:focus-visible,
.hv-lead:focus-visible,
.hv-row:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hv-news [hidden] {
  display: none !important;
}

/* Vezető hír */
.hv-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-bottom: 20px;
  color: inherit;
  text-decoration: none;
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.hv-lead:hover {
  border-color: rgba(225, 6, 0, 0.6);
}

.hv-lead__media,
.hv-row__media {
  position: relative;
  background: #000;
  overflow: hidden;
}

.hv-lead__media {
  aspect-ratio: 16 / 9;
}

.hv-lead__media img,
.hv-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hv-lead:hover .hv-lead__media img,
.hv-row:hover .hv-row__media img {
  transform: scale(1.04);
}

.hv-news__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.22);
}

.hv-lead__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 22px;
  min-width: 0;
}

.hv-news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.82rem;
  color: #9a9a9a;
}

.hv-news__cat {
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff5a55;
}

.hv-news__new {
  padding: 1px 7px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hv-red);
  border-radius: 3px;
}

.hv-lead__title {
  margin: 0;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}

.hv-lead__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #bdbdbd;
}

.hv-news__stats {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: #7f7f7f;
}

/* Kompakt sorok */
.hv-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.hv-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hv-row:hover {
  background: #222;
  border-color: rgba(225, 6, 0, 0.6);
}

.hv-row__media {
  flex: 0 0 128px;
  aspect-ratio: 16 / 9;
  align-self: center;
  border-radius: 4px;
}

.hv-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.hv-row__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f0f0f0;
}

.hv-news__more {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 767.98px) {
  .hv-news__filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hv-news__filters::-webkit-scrollbar {
    display: none;
  }

  .hv-filter {
    flex: 0 0 auto;
  }

  .hv-lead {
    grid-template-columns: 1fr;
  }

  .hv-lead__body {
    padding: 16px;
  }

  .hv-rows {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hv-row__media {
    flex-basis: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-lead__media img,
  .hv-row__media img {
    transition: none;
  }

  .hv-lead:hover .hv-lead__media img,
  .hv-row:hover .hv-row__media img {
    transform: none;
  }
}
