.site-content > .ast-container,
.ast-separate-container .site-content > .ast-container {
  display: block;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#primary.ply-history,
.ast-right-sidebar #primary.ply-history,
.ast-left-sidebar #primary.ply-history,
.ast-separate-container #primary.ply-history,
.site-content #primary.ply-history {
  float: none;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: 0;
  padding-left: 0;
}

.ast-right-sidebar #secondary,
.ast-left-sidebar #secondary {
  display: none;
}

.ply-history {
  --ply-history-bg: #071321;
  --ply-history-panel: #112541;
  --ply-history-line: rgba(199, 220, 242, .17);
  --ply-history-text: #f7f9fc;
  --ply-history-muted: #b6c3d3;
  --ply-history-accent: #55e7ef;
  min-height: 70vh;
  padding: 10px 0 76px;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 77, 122, .28), transparent 34%),
    linear-gradient(180deg, #081522 0%, var(--ply-history-bg) 44%, #040a13 100%);
  color: var(--ply-history-text);
}

.ply-history *,
.ply-history *::before,
.ply-history *::after {
  box-sizing: border-box;
}

.ply-history a {
  color: inherit;
  text-decoration: none;
}

.ply-history__shell {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0 32px;
}

.ply-history__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ply-history-line);
}

.ply-history__intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .92;
}

.ply-history__method {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 17px 0 0;
  padding: 0;
  color: var(--ply-history-accent);
  list-style: none;
}

.ply-history__method li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.ply-history__method li:not(:last-child)::after {
  width: 24px;
  height: 1px;
  margin-left: 5px;
  background: rgba(85, 231, 239, .58);
  content: "";
}

.ply-history__method-number {
  font-size: .61rem;
  letter-spacing: .035em;
  opacity: .72;
}

.ply-history__lead {
  align-self: center;
  max-width: 490px;
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid rgba(85, 231, 239, .42);
  color: #edf3f8;
  font-size: 1.06rem;
  line-height: 1.7;
  text-wrap: balance;
}

.ply-history__featured-section {
  padding-top: 44px;
}

.ply-history__section-head,
.ply-history__more-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.ply-history__section-head h2,
.ply-history__more-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.ply-history-featured {
  position: relative;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  background: var(--ply-history-panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
}

.ply-history-feature {
  position: relative;
  isolation: isolate;
  flex: 1 1 50%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  transition: flex .42s cubic-bezier(.2, .7, .2, 1);
}

.ply-history-feature:first-child:not(:only-child) {
  border-right: 3px solid rgba(255, 255, 255, .38);
}

.ply-history-featured:has(.ply-history-feature:hover) .ply-history-feature:hover {
  flex-grow: 1.24;
}

.ply-history-featured:has(.ply-history-feature:hover) .ply-history-feature:not(:hover) {
  flex-grow: .76;
}

.ply-history-feature__surface {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
}

.ply-history-feature__surface::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 8, 18, .03) 13%, rgba(4, 12, 24, .30) 48%, rgba(3, 10, 21, .97) 100%);
  content: '';
}

.ply-history-feature__surface:focus-visible {
  outline: 3px solid var(--ply-history-accent);
  outline-offset: -3px;
}

.ply-history-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10223b;
  transition: transform .55s ease;
}

.ply-history-feature__image--cover {
  object-fit: contain;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(75, 106, 148, .34), transparent 42%),
    #0b1729;
}

.ply-history-feature:hover .ply-history-feature__image {
  transform: scale(1.035);
}

.ply-history-feature__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #1b3352, #09111e);
  font-size: 7rem;
  font-weight: 800;
}

.ply-history-feature__number {
  position: absolute;
  top: 23px;
  left: 25px;
  z-index: 1;
  color: rgba(255, 255, 255, .92);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.ply-history-feature__published {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  color: rgba(255, 255, 255, .72);
  font-size: .67rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.ply-history-feature__copy {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 1;
  display: block;
}

.ply-history-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--ply-history-accent);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ply-history-feature__meta > span + span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.ply-history-feature h3 {
  max-width: 560px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
}

.ply-history-feature__lead {
  display: -webkit-box;
  max-width: 530px;
  margin-bottom: 16px;
  overflow: hidden;
  color: #dce5ee;
  font-size: .82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ply-history-feature__link,
.ply-history-grid__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.ply-history-feature__link span,
.ply-history-grid__link span {
  transition: transform .2s ease;
}

.ply-history-feature__surface:hover .ply-history-feature__link span,
.ply-history-feature__surface:focus-visible .ply-history-feature__link span,
.ply-history-grid__link:hover span,
.ply-history-grid__link:focus-visible span {
  transform: translate(2px, -2px);
}

.ply-history__more {
  padding-top: 48px;
}

.ply-history-sort {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ply-history-sort > span {
  margin-right: 5px;
  color: var(--ply-history-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ply-history-sort button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ply-history-muted);
  cursor: pointer;
  font-size: .76rem;
}

.ply-history-sort button:hover,
.ply-history-sort button:focus-visible,
.ply-history-sort button[aria-pressed='true'] {
  border-bottom-color: var(--ply-history-accent);
  color: var(--ply-history-text);
}

.ply-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ply-history-line);
  border-left: 1px solid var(--ply-history-line);
}

.ply-history-grid__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 18px 18px 22px;
  border-right: 1px solid var(--ply-history-line);
  border-bottom: 1px solid var(--ply-history-line);
}

.ply-history-grid__item[hidden] {
  display: none;
}

.ply-history-grid__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--ply-history-panel);
}

.ply-history-grid__media:focus-visible {
  outline: 3px solid var(--ply-history-accent);
  outline-offset: -3px;
}

.ply-history-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ply-history-grid__media--cover img {
  object-fit: contain;
  padding: 14px;
  background:
    radial-gradient(circle at center, rgba(75, 106, 148, .34), transparent 42%),
    #0b1729;
}

.ply-history-grid__item:hover .ply-history-grid__media img {
  transform: scale(1.035);
}

.ply-history-grid__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #1b3352, #09111e);
  font-size: 4rem;
  font-weight: 800;
}

.ply-history-grid__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ply-history-accent);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .095em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ply-history-grid h3 {
  min-height: 2.55em;
  margin: 9px 0 13px;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.27;
}

.ply-history-grid h3 a:hover,
.ply-history-grid h3 a:focus-visible,
.ply-history-grid__link:hover,
.ply-history-grid__link:focus-visible {
  color: #b9f7fa;
}

.ply-history-grid__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.ply-history-grid__published {
  color: var(--ply-history-muted);
  font-size: .65rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.ply-history-grid__more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

.ply-history-grid__more[hidden] {
  display: none;
}

.ply-history-grid__more button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(85, 231, 239, .55);
  background: transparent;
  color: var(--ply-history-text);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.ply-history-grid__more button:hover,
.ply-history-grid__more button:focus-visible {
  border-color: rgba(85, 231, 239, .55);
  background: rgba(85, 231, 239, .08);
}

.ply-history__empty {
  margin: 42px 0 0;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, .18);
  color: var(--ply-history-muted);
}

/* Il login wishlist è globale; nell'hub non esistono pulsanti che possano aprirlo. */
body.page-template-page-gaming-history #wishlist-login-modal,
body:has(.ply-history) #wishlist-login-modal {
  display: none !important;
}

@media (max-width: 900px) {
  .ply-history__intro {
    grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr);
    gap: 36px;
  }

  .ply-history-featured {
    min-height: 400px;
  }

  .ply-history-feature__lead {
    -webkit-line-clamp: 3;
  }

  .ply-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ply-history {
    padding: 32px 0 54px;
  }

  .ply-history__shell {
    padding: 0 18px;
  }

  .ply-history__intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 28px;
  }

  .ply-history__lead {
    max-width: none;
    padding-left: 0;
    border-left: 0;
    font-size: .93rem;
    line-height: 1.62;
  }

  .ply-history__method {
    margin-top: 14px;
  }

  .ply-history__method li {
    font-size: .64rem;
  }

  .ply-history__featured-section {
    padding-top: 31px;
  }

  .ply-history__section-head {
    align-items: flex-start;
  }

  .ply-history-featured:not(.ply-history-featured--single) {
    display: grid;
    grid-auto-columns: 86%;
    grid-auto-flow: column;
    min-height: 420px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ply-history-featured:not(.ply-history-featured--single)::-webkit-scrollbar {
    display: none;
  }

  .ply-history-featured:not(.ply-history-featured--single) .ply-history-feature {
    min-width: 0;
    border-right: 3px solid rgba(255, 255, 255, .28);
    scroll-snap-align: start;
  }

  .ply-history-featured:has(.ply-history-feature:hover) .ply-history-feature,
  .ply-history-featured:has(.ply-history-feature:hover) .ply-history-feature:not(:hover) {
    flex-grow: 1;
  }

  .ply-history-feature__copy {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .ply-history-feature__published {
    right: 20px;
    bottom: 22px;
  }

  .ply-history-feature h3 {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
  }

  .ply-history-feature__lead {
    font-size: .76rem;
  }

  .ply-history__more {
    padding-top: 36px;
  }

  .ply-history__more-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .ply-history-sort {
    width: 100%;
    justify-content: space-between;
  }

  .ply-history-sort > span {
    display: none;
  }

  .ply-history-grid {
    grid-template-columns: 1fr;
  }

  .ply-history-grid__item {
    padding: 14px 14px 18px;
  }

  .ply-history-grid h3 {
    min-height: 0;
    font-size: 1.05rem;
  }
}

@media (max-width: 400px) {
  .ply-history__method {
    gap: 7px;
  }

  .ply-history__method li {
    gap: 4px;
    font-size: .58rem;
    letter-spacing: .075em;
  }

  .ply-history__method li:not(:last-child)::after {
    width: 11px;
    margin-left: 3px;
  }

  .ply-history__method-number {
    font-size: .54rem;
  }
}

@media (hover: none) {
  .ply-history-featured:has(.ply-history-feature:hover) .ply-history-feature,
  .ply-history-featured:has(.ply-history-feature:hover) .ply-history-feature:not(:hover) {
    flex-grow: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ply-history-feature,
  .ply-history-feature__image,
  .ply-history-grid__media img,
  .ply-history-feature__link span,
  .ply-history-grid__link span {
    transition: none;
  }
}
