/* FlexMoviez Neo — editorial widget and archives */
.fxm-editorial-widget,
.fxm-editorial-archive {
  direction: rtl;
  width: 100%;
  min-width: 0;
  color: var(--fxm-text, #f5f5f5);
}
.fxm-editorial-widget {
  margin: clamp(22px, 3vw, 38px) 0;
}
.fxm-editorial-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 15px;
}
.fxm-editorial-widget__head h2 {
  position: relative;
  margin: 0;
  padding-right: 12px;
  color: var(--fxm-text, #f5f5f5);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 900;
  line-height: 1.5;
}
.fxm-editorial-widget__head h2:before {
  content: "";
  position: absolute;
  right: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 4px;
  background: var(--fxm-accent, #a4f425);
}
.fxm-editorial-widget__head > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: var(--fxm-link, #aaa);
  font-size: 12px;
  font-weight: 800;
  transition: color .2s ease;
}
.fxm-editorial-widget__head > a:hover {
  color: var(--fxm-accent, #a4f425);
}
.fxm-editorial-widget__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, calc((100% - 28px) / 3));
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(150,150,150,.35) transparent;
}
.fxm-editorial-widget__track::-webkit-scrollbar {
  height: 5px;
}
.fxm-editorial-widget__track::-webkit-scrollbar-track {
  background: transparent;
}
.fxm-editorial-widget__track::-webkit-scrollbar-thumb {
  background: rgba(150,150,150,.35);
  border-radius: 20px;
}
.fxm-editorial-card {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  align-items: stretch;
  gap: 13px;
  min-width: 0;
  min-height: 142px;
  padding: 10px;
  overflow: hidden;
  background: #151519;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  color: var(--fxm-text, #f5f5f5);
  box-sizing: border-box;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.fxm-editorial-widget__track > .fxm-editorial-card {
  width: 100%;
  scroll-snap-align: start;
}
.fxm-editorial-card:hover {
  border-color: rgba(164,244,37,.35);
  transform: translateY(-2px);
}
.fxm-editorial-card__image {
  position: relative;
  display: block;
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #202025;
}
.fxm-editorial-card__image-element {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  transition: transform .35s ease;
}
.fxm-editorial-card:hover .fxm-editorial-card__image-element {
  transform: scale(1.045);
}
.fxm-editorial-card__image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  color: #888;
  background: linear-gradient(135deg, #26262b, #151519);
  font-size: 12px;
  font-weight: 800;
}
.fxm-editorial-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  padding: 2px 0;
}
.fxm-editorial-card__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  margin-bottom: 6px;
  color: #85858d;
  font-size: 10px;
  line-height: 1.5;
}
.fxm-editorial-card__eyebrow a {
  color: var(--fxm-accent, #a4f425);
  font-weight: 800;
}
.fxm-editorial-card__eyebrow time:before {
  content: "•";
  margin-left: 7px;
  color: #555;
}
.fxm-editorial-card__title {
  display: -webkit-box;
  width: 100%;
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--fxm-text, #f5f5f5);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fxm-editorial-card__title a {
  color: inherit;
}
.fxm-editorial-card__title a:hover {
  color: var(--fxm-accent, #a4f425);
}
.fxm-editorial-card__excerpt {
  display: -webkit-box;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #a2a2aa;
  font-size: 10px;
  line-height: 1.85;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fxm-editorial-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 6px;
  color: #b9b9c0;
  font-size: 10px;
  font-weight: 800;
}
.fxm-editorial-card__more:hover {
  color: var(--fxm-accent, #a4f425);
}
.fxm-editorial-widget__empty,
.fxm-editorial-widget__notice {
  padding: 18px;
  color: #aaa;
  background: rgba(255,255,255,.035);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 12px;
  font-size: 12px;
}
.fxm-editorial-archive {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: 48px;
}
.fxm-editorial-archive__heading {
  margin-bottom: 20px;
}
.fxm-editorial-archive__heading h1 {
  margin: 5px 0 8px;
  color: var(--fxm-text, #f5f5f5);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.5;
}
.fxm-editorial-archive__description {
  max-width: 850px;
  color: #999;
  font-size: 13px;
  line-height: 2;
}
.fxm-editorial-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 22px;
  padding: 2px 1px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150,150,150,.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.fxm-editorial-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 13px;
  color: #b5b5bd;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.fxm-editorial-category-chip:hover,
.fxm-editorial-category-chip.is-active {
  color: var(--fxm-accent, #a4f425);
  background: rgba(164,244,37,.08);
  border-color: rgba(164,244,37,.32);
}
.fxm-editorial-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  min-width: 0;
}
.fxm-editorial-archive__grid > .fxm-editorial-card {
  min-height: 166px;
}
.fxm-editorial-archive .navigation.pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.fxm-editorial-archive .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.fxm-editorial-archive .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  color: #bbb;
  background: #17171b;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  font-size: 11px;
}
.fxm-editorial-archive .page-numbers.current,
.fxm-editorial-archive .page-numbers:hover {
  color: #111;
  background: var(--fxm-accent, #a4f425);
  border-color: var(--fxm-accent, #a4f425);
}
body.fxm-neo.fxm-light .fxm-editorial-card {
  color: #222;
  background: #fff;
  border-color: #e7e7e7;
  box-shadow: 0 4px 18px rgba(0,0,0,.035);
}
body.fxm-neo.fxm-light .fxm-editorial-card__title,
body.fxm-neo.fxm-light .fxm-editorial-archive__heading h1,
body.fxm-neo.fxm-light .fxm-editorial-widget__head h2 {
  color: #222;
}
body.fxm-neo.fxm-light .fxm-editorial-card__excerpt,
body.fxm-neo.fxm-light .fxm-editorial-archive__description {
  color: #666;
}
body.fxm-neo.fxm-light .fxm-editorial-category-chip {
  color: #555;
  background: #fff;
  border-color: #e4e4e4;
}
body.fxm-neo.fxm-light .fxm-editorial-category-chip:hover,
body.fxm-neo.fxm-light .fxm-editorial-category-chip.is-active {
  color: #436b10;
  background: #f3f8eb;
  border-color: #d7e8c0;
}
body.fxm-neo.fxm-light .fxm-editorial-archive .page-numbers {
  color: #444;
  background: #fff;
  border-color: #e4e4e4;
}
@media (max-width: 1100px) {
  .fxm-editorial-widget__track {
    grid-auto-columns: minmax(300px, calc((100% - 14px) / 2));
  }
}
@media (max-width: 680px) {
  .fxm-editorial-widget__head h2 {
    font-size: 16px;
  }
  .fxm-editorial-widget__track {
    grid-auto-columns: minmax(280px, 88%);
    gap: 10px;
  }
  .fxm-editorial-card {
    grid-template-columns: minmax(0, 37%) minmax(0, 1fr);
    gap: 10px;
    min-height: 126px;
    padding: 9px;
  }
  .fxm-editorial-card__title {
    font-size: 12px;
    line-height: 1.7;
  }
  .fxm-editorial-card__excerpt {
    font-size: 9px;
    -webkit-line-clamp: 2;
  }
  .fxm-editorial-card__eyebrow {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .fxm-editorial-card__more {
    font-size: 9px;
  }
  .fxm-editorial-archive {
    padding-top: 20px;
  }
  .fxm-editorial-archive__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  .fxm-editorial-archive__grid > .fxm-editorial-card {
    min-height: 135px;
  }
  .fxm-editorial-archive__heading h1 {
    font-size: 22px;
  }
}
