.khh {
  --khh-bg: #0e0e15;
  margin: 0 0 32px;
  direction: rtl;
}

.khh_frame {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: var(--khh-bg);
  color: #fff;
}

.khh_bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.khh_bg img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%);
}

.khh_bg.is-poster img {
  width: 100%;
  height: 100%;
  filter: blur(26px) saturate(1.1);
  transform: scale(1.2);
  opacity: 0.55;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}

.khh_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    var(--khh-bg) 0%,
    rgba(14, 14, 21, 0.96) 36%,
    rgba(14, 14, 21, 0.6) 58%,
    rgba(14, 14, 21, 0) 100%
  );
}

.khh_in {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 34px;
  width: 100%;
  padding: 42px 48px;
}

.khh_poster {
  flex: 0 0 auto;
  width: 215px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #1a1a24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.khh_poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khh_info {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}

.khh_title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
}

.khh_title a {
  color: #fff;
}

.khh_en {
  margin-top: 4px;
  color: #a2a2ae;
  font-size: 16px;
}

.khh_genres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.khh_genres a,
.khh_genres span {
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s, border-color 0.2s;
}

.khh_genres a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.khh_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 14px;
  color: #c4c4cd;
  font-size: 14px;
}

.khh_m {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.khh_m i {
  color: #fff;
  font-size: 15px;
}

.khh_imdb {
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.khh_imdb b {
  padding: 2px 7px;
  border-radius: 4px;
  background: #f5c518;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.khh_age {
  padding: 3px 10px;
  border-radius: 6px;
  background: #ff7a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.khh_story {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 18px 0 0;
  overflow: hidden;
  color: #a9a9b5;
  font-size: 14px;
  line-height: 1.9;
}

.khh_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-top: 22px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: background-color 0.2s, transform 0.2s;
}

.khh_btn i {
  font-size: 18px;
}

.khh_btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.khh a:focus-visible,
.khh button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .khh_frame {
    min-height: 380px;
  }

  .khh_in {
    gap: 24px;
    padding: 34px 28px;
  }

  .khh_poster {
    width: 170px;
  }

  .khh_title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .khh {
    margin-bottom: 24px;
  }

  .khh_frame {
    border-radius: 20px;
  }

  .khh_frame {
    display: block;
    min-height: 0;
  }

  .khh_bg::after {
    background: linear-gradient(
      to top,
      var(--khh-bg) 28%,
      rgba(14, 14, 21, 0.8) 62%,
      rgba(14, 14, 21, 0.4) 100%
    );
  }

  .khh_bg img {
    left: 0;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }

  .khh_in {
    flex-direction: column;
    gap: 18px;
    padding: 26px 16px 30px;
    text-align: center;
  }

  .khh_poster {
    width: 125px;
    border-radius: 10px;
  }

  .khh_info {
    max-width: none;
  }

  .khh_title {
    font-size: 21px;
  }

  .khh_en {
    font-size: 14px;
  }

  .khh_genres {
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .khh_genres a,
  .khh_genres span {
    padding: 6px 16px;
    font-size: 13px;
  }

  .khh_meta {
    justify-content: center;
    gap: 10px 16px;
    margin-top: 14px;
    font-size: 13px;
  }

  .khh_story {
    margin-top: 14px;
    font-size: 13px;
    line-height: 2;
  }

  .khh_btn {
    height: 44px;
    margin-top: 18px;
    padding: 0 26px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .khh_btn {
    transition: none;
  }
}

.khb {
  display: none;
}

@media (max-width: 767px) {
  .khh {
    display: none;
  }

  .khb {
    display: block;
    margin: 0 0 24px;
    direction: rtl;
  }

  .khb_media {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg2);
  }

  .khb_img {
    display: block;
    width: 100%;
    height: auto;
  }
}
