/* Wrapper */
.ps-hero-nyt { width: 100%; }

/* Font presets */
.ps-hero-nyt-font-inter { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.ps-hero-nyt-font-serif { font-family: Georgia, "Times New Roman", Times, serif; }
.ps-hero-nyt-font-system { font-family: inherit; }

/* Spacing presets */
.ps-hero-nyt-normal { --ps-nyt-gap: 28px; --ps-nyt-vgap: 16px; --ps-nyt-divider: rgba(0,0,0,.10); }
.ps-hero-nyt-compact { --ps-nyt-gap: 20px; --ps-nyt-vgap: 12px; --ps-nyt-divider: rgba(0,0,0,.10); }

/* 3-col grid */
.ps-hero-nyt-grid{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.1fr;
  gap: var(--ps-nyt-gap);
  align-items: start;
}

/* TITOLI */
.ps-hero-nyt-opening-title,
.ps-hero-nyt-item-title,
.ps-hero-nyt-right-title{
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ps-hero-nyt-opening-title{
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 10px 0;
}

.ps-hero-nyt-item-title{
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.ps-hero-nyt-right-title{
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

/* Link */
.ps-hero-nyt-left a,
.ps-hero-nyt-right a{ text-decoration: none; }

.ps-hero-nyt-left a:hover,
.ps-hero-nyt-right a:hover{ text-decoration: underline; }

/* Excerpt */
.ps-hero-nyt-opening-excerpt,
.ps-hero-nyt-item-excerpt{
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(0,0,0,.72);
}

/* IMPORTANT: rimosso clamp fisso sull'apertura (il limite parole lo gestisce il widget) */
.ps-hero-nyt-opening-excerpt{
  display: block;
  overflow: visible;
}

/* left items testo breve (invariato: due righe) */
.ps-hero-nyt-item-excerpt{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

.ps-hero-nyt-left-list{ margin-top: var(--ps-nyt-vgap); display: grid; gap: var(--ps-nyt-vgap); }

/* CENTER media */
.ps-hero-nyt-media img,
.ps-hero-nyt-video iframe{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.ps-hero-nyt-media img{ border-radius: 10px; }

.ps-hero-nyt-video{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.ps-hero-nyt-video iframe{
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

/* Clickable overlay: porta all'articolo */
.ps-hero-nyt-video-link{
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}

/* SCORE BAND */
.ps-hero-nyt-score{
  margin-top: 10px;
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
}

.ps-hero-nyt-score-link{ display: block; color: inherit; text-decoration: none; }
.ps-hero-nyt-score-link:hover{ text-decoration: none; opacity: 0.95; }

.ps-hero-nyt-score-top{
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px 6px 12px;
  font-weight: 700;
  font-size: 12px;
  opacity: 0.95;
}

.ps-hero-nyt-score-status{ text-transform: uppercase; letter-spacing: 0.03em; }

.ps-hero-nyt-score-row{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 12px 12px;
}

.ps-hero-nyt-score-side{ display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ps-hero-nyt-score-side-right{ justify-content: flex-end; }

.ps-hero-nyt-score-logo{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  flex: 0 0 30px;
}

.ps-hero-nyt-score-logo img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.ps-hero-nyt-score-team{
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-hero-nyt-score-mid{ text-align: center; font-weight: 800; }
.ps-hero-nyt-score-goals{ font-size: 18px; letter-spacing: 0.02em; }
.ps-hero-nyt-score-vs{ font-size: 12px; opacity: 0.95; text-transform: uppercase; letter-spacing: 0.08em; }

/* Status accents */
.ps-hero-nyt-score-live{ box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
.ps-hero-nyt-score-final{ box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset; }
.ps-hero-nyt-score-pre{ box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset; }

/* RIGHT + LEFT: stanghette desktop (come NYT): separatori tra articoli */
.ps-hero-nyt-article{
  margin: 0;
}

.ps-hero-nyt-left .ps-hero-nyt-article + .ps-hero-nyt-article{
  border-top: 1px solid var(--ps-nyt-divider);
  padding-top: 12px;
  margin-top: 12px;
}

.ps-hero-nyt-right .ps-hero-nyt-article + .ps-hero-nyt-article{
  border-top: 1px solid var(--ps-nyt-divider);
  padding-top: 10px;
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 920px){
  .ps-hero-nyt-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Mobile order: center media first */
  .ps-hero-nyt-center{ order: 1; }
  .ps-hero-nyt-left{ order: 2; }
  .ps-hero-nyt-right{ order: 3; }

  .ps-hero-nyt-opening-title{ font-size: 30px; }

  .ps-hero-nyt-score-hide-mobile{ display: none; }

  /* Mobile: separatore tra ARTICOLI (main + left + right) */
  .ps-hero-nyt-left .ps-hero-nyt-article + .ps-hero-nyt-article{
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: 14px;
    margin-top: 14px;
  }

  .ps-hero-nyt-right{
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: 14px;
  }

  .ps-hero-nyt-right .ps-hero-nyt-article + .ps-hero-nyt-article{
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: 14px;
    margin-top: 14px;
  }
}
/* v1.3 additions (safe) */
.ps-hero-nyt-live{
  display:inline-block;
  font-weight:800;
  font-size:12px;
  letter-spacing:.06em;
  color:#b50000;
  text-transform:uppercase;
  margin-bottom:8px;
}

.ps-hero-nyt-related-title{
  font-size:18px;
  font-weight:800;
  margin: 0 0 10px 0;
}

.ps-hero-nyt-score--desktop-only{display:block;}
@media (max-width: 768px){.ps-hero-nyt-score--desktop-only{display:none;}}
