/* Modern /lastnews/ layout. Scoped so category, search and full-story pages keep their own layout. */
@supports selector(.content:has(> .lastnews-modern)) {
  .content:has(> .lastnews-modern) {
    margin-right: 0;
  }
}

.lastnews-modern {
  width: 100%;
  max-width: 100%;
  margin: 24px 0 0;
}

.lastnews-modern__header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 18px 24px 18px 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e9ef;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(35, 54, 70, .07);
}

.lastnews-modern__header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: #31a8cb;
  border-radius: 0 4px 4px 0;
}

.lastnews-modern__header h1 {
  margin: 0;
  color: #172235;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.lastnews-modern__header p {
  margin: 5px 0 0;
  color: #73808d;
  font-size: 13px;
  line-height: 1.5;
}

.lastnews-modern__list {
  min-width: 0;
  margin-top: 16px;
}

.lastnews-modern__list > br,
.lastnews-modern__list > hr {
  display: none !important;
}

.lastnews-modern__list .mov {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "cover title"
    "cover body"
    "cover rating";
  column-gap: 24px;
  row-gap: 12px;
  float: none !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 0 18px !important;
  padding: 18px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e9ef;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(35, 54, 70, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.lastnews-modern__list .mov:hover {
  transform: translateY(-2px);
  border-color: #bddde7;
  box-shadow: 0 13px 34px rgba(35, 54, 70, .12);
}

.lastnews-modern__list .mov-i {
  grid-area: cover;
  align-self: start;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0;
  min-height: 0 !important;
  aspect-ratio: 564 / 716;
  margin: 0 !important;
  overflow: hidden;
  background: #f3f6f8;
  border: 1px solid #dce5ea;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(31, 46, 61, .13);
}

.lastnews-modern__list .mov-i > img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease;
}

.lastnews-modern__list .mov:hover .mov-i > img {
  transform: scale(1.015);
}

.lastnews-modern__list .mov-mask {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(17, 31, 46, .36);
  border-radius: 11px;
  opacity: 0;
}

.lastnews-modern__list .mov-mask span.fa {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  color: #188eae;
  font-size: 18px;
  background: #fff;
  background-image: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.lastnews-modern__list .mov:hover .mov-mask,
.lastnews-modern__list .mov-i:focus-within .mov-mask {
  opacity: 1;
}

.lastnews-modern__list .mov-t {
  grid-area: title;
  position: static !important;
  display: block;
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  overflow: visible;
  color: #233143;
  white-space: normal;
  text-overflow: clip;
}

.lastnews-modern__list .mov-t h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lastnews-modern__list .mov-t:hover,
.lastnews-modern__list .mov-t:focus-visible {
  color: #188eae;
}

.lastnews-modern__list .mov-t:focus-visible {
  outline: 3px solid rgba(49, 168, 203, .25);
  outline-offset: 4px;
  border-radius: 4px;
}

.lastnews-modern__list .movie-text {
  grid-area: body;
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
}

.lastnews-modern__list .movie-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 14px;
}

.lastnews-modern__list .movie-lines li {
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 0 !important;
  font-size: 13px;
}

.lastnews-modern__list .movie-lines li::after {
  display: none;
}

.lastnews-modern__list .ml-label {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 8px;
  color: #177f9d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  background: #eaf7fb;
  border-radius: 6px;
}

.lastnews-modern__list .ml-desc {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding-top: 3px;
  color: #4e5d6b;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lastnews-modern__list .movie-desc2 {
  display: -webkit-box;
  margin-top: auto;
  overflow: hidden;
  color: #556474;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.lastnews-modern__list .frate {
  grid-area: rating;
  justify-self: end;
  float: none !important;
  height: auto;
  min-height: 24px;
  margin: 0 !important;
}

.lastnews-modern__list .entry__rating-value {
  font-size: 18px;
}

.lastnews-modern__list .pagi-nav {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e1e9ef;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(35, 54, 70, .06);
}

@media (max-width: 860px) {
  .lastnews-modern__list .mov {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 20px;
  }

  .lastnews-modern__list .movie-lines {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .lastnews-modern__list .movie-desc2 {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 560px) {
  .lastnews-modern {
    margin-top: 16px;
  }

  .lastnews-modern__header {
    min-height: 0;
    padding: 16px 16px 16px 22px;
    border-radius: 13px;
  }

  .lastnews-modern__header::before {
    top: 14px;
    bottom: 14px;
  }

  .lastnews-modern__header h1 {
    font-size: 20px;
  }

  .lastnews-modern__header p {
    font-size: 12px;
  }

  .lastnews-modern__list {
    margin-top: 12px;
  }

  .lastnews-modern__list .mov {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "cover"
      "title"
      "body"
      "rating";
    row-gap: 13px;
    padding: 14px !important;
    border-radius: 13px;
  }

  .lastnews-modern__list .mov-i {
    width: min(210px, 100%) !important;
    justify-self: center;
    border-radius: 10px;
  }

  .lastnews-modern__list .mov-t h2 {
    font-size: 18px;
    line-height: 1.42;
    -webkit-line-clamp: 3;
  }

  .lastnews-modern__list .movie-lines li {
    grid-template-columns: minmax(104px, max-content) minmax(0, 1fr);
  }

  .lastnews-modern__list .movie-desc2 {
    font-size: 13px;
    -webkit-line-clamp: 6;
  }
}

@media (max-width: 360px) {
  .lastnews-modern__header p {
    display: none;
  }

  .lastnews-modern__list .mov {
    padding: 12px !important;
  }

  .lastnews-modern__list .movie-lines li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .lastnews-modern__list .ml-label {
    justify-self: start;
  }

  .lastnews-modern__list .ml-desc {
    padding: 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lastnews-modern__list .mov,
  .lastnews-modern__list .mov-i > img {
    transition: none;
  }
}
