/* Подпись (Click to expand) для свернутого Trending Mods */
.trending-mods-expand-note {
  font-size: 0.85em;
  color: #b0b0b0;
  font-weight: 400;
  opacity: 0.85;
  margin-left: 0.5em;
}
.trending-mods-expand-note {
  display: none;
}
.trending-mods-expand-note.show-expand-note {
  display: inline;
}
.trending-mods-toggle-header {
  user-select: none;
}
.trending-mods-toggle-arrow {
  display: flex;
  align-items: center;
  font-size: 1.3em;
  margin-left: 0.5em;
  transition: color 0.2s;
  color: var(--nexus-text-muted,#b0b0b0);
}
.trending-mods-toggle-header.collapsed .trending-mods-toggle-arrow {
  color: #888;
}
.trending-mods-block {
  background: #23232b;
  max-width: 1252px;
  margin-left:1.5rem;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.nexus-top-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 2px 8px #000;
  margin-bottom: 0.2em;
}
.nexus-top-meta {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.89rem;
  color: var(--nexus-text-muted,#b0b0b0);
  margin-bottom: 0.2em;
}
.nexus-top-sep-tight {
  margin: 0 0.25em;
}
.nexus-top-likes-small {
  font-size: 0.87em;
}
.nexus-muted, .nexus-top-author a, .trending-mod-author-compact a {
  color: var(--nexus-text-muted,#b0b0b0) !important;
}
.nexus-top-author a {
  color: var(--nexus-text-muted,#b0b0b0);
  text-decoration: none;
  font-weight: 500;
}
.nexus-top-author a:hover {
  color: var(--nexus-gold, #ffb700);
}
.nexus-top-sep {
  font-size: 1.2em;
  margin: 0 0.5em;
  color: rgba(176,176,176,0.45); /* полупрозрачный, как на Nexus */
  font-weight: 700;
}
.nexus-top-likes {
  color: var(--nexus-text-muted,#b0b0b0);
  font-weight: 600;
}
.nexus-top-desc {
  margin-top: 0.3em;
  color: var(--nexus-text-muted,#b0b0b0);
  font-size: 0.89rem;
  line-height: 1.3;
  text-shadow: 0 1px 6px #000;
}
.trending-mod-meta-compact {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.87rem;
  color: var(--nexus-text-muted,#b0b0b0);
}

.trending-mod-likes-compact-small {
  font-size: 0.83em;
  color: var(--nexus-text-muted,#b0b0b0) !important;
}
.trending-mod-author-compact a {
  color: var(--nexus-text-muted,#b0b0b0);
  text-decoration: none;
  font-weight: 500;
}
.trending-mod-author-compact a:hover {
  color: var(--nexus-gold, #ffb700);
}
.trending-mod-sep {
  color: rgba(176,176,176,0.45);
}
.trending-mod-likes-compact {
  color: var(--nexus-text-muted,#b0b0b0);
  font-weight: 600;
}
.trending-mod-card {
  background: var(--nexus-bg-card, #23232b);
  overflow: hidden;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  position: relative;
}
.trending-mod-card-nexus-top {
  min-height: 320px;
  height: 320px;
  background: #23232b;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  margin-bottom: 0;
  transition: box-shadow 0.2s;
}
.nexus-top-thumb {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0;
  transition: filter 0.2s, box-shadow 0.2s;
  border: 0.2px solid #84848473;
}
.trending-mod-card-nexus-top {
  position: relative;
  overflow: hidden;
}
.trending-mod-card-nexus-top .nexus-top-thumb {
  transition: filter 0.25s, box-shadow 0.25s;
}
.trending-mod-card-nexus-top:hover .nexus-top-thumb {
  filter: brightness(1.15) saturate(1.1);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18);
}
.trending-mod-card-nexus-top::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  opacity: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0.0) 100%);
  transition: opacity 0.25s;
  z-index: 2;
}
.trending-mod-card-nexus-top:hover::after {
  opacity: 1;
}
.nexus-top-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.1) 100%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.trending-mod-card-compact-no-bg {
  position: relative;
  overflow: hidden;
}
.trending-mod-card-compact-no-bg .trending-thumb-compact {
  transition: filter 0.25s, box-shadow 0.25s;
}
.trending-mod-card-compact-no-bg:hover .trending-thumb-compact {
  filter: brightness(1.15) saturate(1.1);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18);
}
.trending-mod-card-compact-no-bg::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  opacity: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0.0) 100%);
  transition: opacity 0.25s;
  z-index: 2;
}
.trending-mod-card-compact-no-bg:hover::after {
  opacity: 1;
}
/* Removed stray properties block that was outside of any selector */
.trending-thumb-compact:hover {
  /* убираем старый hover, теперь через .trending-mod-card-compact-no-bg:hover .trending-thumb-compact */
}
.trending-mod-card-compact-no-bg::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  opacity: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0.0) 100%);
  transition: opacity 0.25s;
  z-index: 2;
}
.trending-thumb-compact {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  border: 0.2px solid #84848473;
}
.trending-mod-info-compact {
  background: none;
  border-radius: 0;
  margin-top: 0.2rem;
}
.trending-mod-title-compact a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}
.trending-mod-title-compact a:hover {
  color: #fff;
  text-decoration: underline;
}
.trending-mod-meta-compact {
  font-size: 0.93rem;
  color: #aaa;
  gap: 0.5em;
}
.trending-mod-author-compact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.trending-mod-author-compact a:hover {
  color: var(--nexus-gold, #ffb700);
}
.trending-mod-likes-compact {
  color: #ffb700;
  font-weight: 600;
}
.trending-mod-desc-compact {
  color: #bbb;
  font-size: 0.87rem;
  margin-bottom: 0;
  line-height: 1.2;
}
.trending-mod-author-link {
  color: var(--nexus-text-muted,#b0b0b0) !important;
  font-size: 0.97em;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.15s;
}
.trending-mod-author-link:hover {
  color: #fff !important;
  text-decoration: underline;
}
@media (max-width: 991px) {
  .trending-thumb-compact {
    height: 120px;
  }
}
.trending-thumb-wrapper {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  max-width: 220px;
  width: 220px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trending-mod-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 0 0;
  transition: filter 0.2s, box-shadow 0.2s;
}
.trending-mod-card:hover .trending-mod-thumb {
  filter: brightness(1.08) drop-shadow(0 0 8px #fff8);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}
.trending-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, #ffb700 60%, #fffbe6 100%);
  color: #222;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 6px;
  padding: 2px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}
.trending-mod-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trending-mod-title a {
  color: var(--nexus-gold, #ffb700);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  transition: color 0.15s;
}
.trending-mod-title a:hover {
  color: #fffbe6;
  text-decoration: underline;
}
.trending-mod-meta {
  font-size: 1rem;
  color: #aaa;
}
.trending-mod-author a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.trending-mod-author a:hover {
  color: var(--nexus-gold, #ffb700);
}
.trending-mod-likes {
  color: #ffb700;
  font-weight: 600;
}
.trending-mod-desc {
  margin-top: 0.5em;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.3;
}
@media (max-width: 991px) {
  .trending-mod-card-nexus-top {
    min-height: 180px;
    height: 180px;
  }
  .nexus-top-thumb {
    height: 180px;
  }
}
@media (max-width: 767px) {
  .trending-mods-block {
    padding: 1rem 0.5rem;
  }
  .trending-mod-card-nexus-top {
    min-height: 120px;
    height: 120px;
  }
  .nexus-top-thumb {
    height: 120px;
  }
}
