/* Portale GamesTranslator 2.3 — categorie dei download come griglia di copertine */
body[data-pageapp="downloads"][data-pagecontroller="browse"] .cDownloadsCategoryTable ol.ipsDataList[data-role="tableRows"]{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:18px;width:auto!important;border:0!important;
}
@media(min-width:760px){body[data-pageapp="downloads"][data-pagecontroller="browse"] .cDownloadsCategoryTable ol.ipsDataList[data-role="tableRows"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1080px){body[data-pageapp="downloads"][data-pagecontroller="browse"] .cDownloadsCategoryTable ol.ipsDataList[data-role="tableRows"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1500px){body[data-pageapp="downloads"][data-pagecontroller="browse"] .cDownloadsCategoryTable ol.ipsDataList[data-role="tableRows"]{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Scheda */
.cDownloadsCategoryTable ol[data-role="tableRows"] > li.ipsDataItem{
  position:relative;display:flex!important;flex-direction:column;width:auto!important;padding:0!important;margin:0!important;
  border-radius:14px;overflow:hidden;background:var(--gx-surface)!important;border:1px solid var(--gx-line)!important;
  transition:transform .2s ease,box-shadow .25s ease,border-color .2s;
}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li.ipsDataItem:hover{
  transform:translateY(-4px);border-color:rgba(0,87,255,.6)!important;box-shadow:0 18px 40px -18px rgba(0,87,255,.65)
}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li.ipsDataItem > *{display:block!important;width:auto!important;border:0!important;float:none!important}

/* Copertina */
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_size3{padding:0!important;position:relative;overflow:hidden;background:var(--gx-raised)}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_size3::after{
  content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(13,10,18,.7),transparent 55%);pointer-events:none
}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsThumb{
  display:block!important;width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:16/10;margin:0!important;
  border:0!important;border-radius:0!important;background-size:cover!important;background-position:center!important;transition:transform .5s ease
}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li:hover .ipsThumb{transform:scale(1.07)}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsThumb img{width:100%;height:100%;object-fit:cover}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsNoThumb{width:100%!important;height:auto!important;aspect-ratio:16/10;display:grid!important;place-items:center}

/* Testi */
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_main{padding:12px 14px 4px!important;flex:1}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_title{
  font-family:var(--gx-display)!important;font-size:1.12rem!important;font-weight:700!important;line-height:1.15!important;margin:0 0 4px!important;
  display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_title a{color:#fff!important}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_title .ipsBadge{vertical-align:2px}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_main > p.ipsType_light{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_main > .ipsType_richText{display:none!important}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_main > p.ipsType_normal{margin:6px 0 0!important;font-size:.8rem;color:var(--gx-ink-2)}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsDataItem_main > p.ipsType_normal .fa{color:var(--gx-yellow)}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsTags{margin-top:8px!important}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsTag{font-size:.66rem!important}

/* Commenti e data in fondo */
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_size8{
  display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
  padding:8px 14px 12px!important;margin-top:auto;font-size:.76rem;color:var(--gx-ink-3);border-top:1px solid var(--gx-line)!important;text-align:left!important
}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_size8 p{margin:0!important;font-size:inherit!important}
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_size8 strong{font-weight:500}

/* Casella di moderazione */
.cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_modCheck{position:absolute!important;top:8px;right:8px;z-index:3;padding:4px!important;border-radius:6px;background:rgba(13,10,18,.7)}

@media(max-width:560px){
  body[data-pageapp="downloads"][data-pagecontroller="browse"] .cDownloadsCategoryTable ol.ipsDataList[data-role="tableRows"]{gap:10px;padding:10px}
  .cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_main{padding:10px 10px 2px!important}
  .cDownloadsCategoryTable ol[data-role="tableRows"] > li > .ipsDataItem_size8{padding:6px 10px 10px!important}
  .cDownloadsCategoryTable ol[data-role="tableRows"] > li .ipsTags{display:none!important}
}
