/* Project Dynasty P51 Home pulse styles.
   Clip-first hero stage and the combined League Pulse feed. Loaded after
   shell.css so it only adds new .pd-hp-* surfaces and never renames or
   removes an existing m27-home rule. Light and dark themes included. */

.m27-home .m27-hero-copy h1 strong {
  color: #f1c95b;
  font-weight: 900;
}

.m27-hero.is-solo {
  grid-template-columns: 1fr;
}

.pd-hp-stage {
  min-width: 0;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.pd-hp-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 430px;
  border-radius: 22px;
  background: linear-gradient(160deg, #17304f, #0b1727);
  box-shadow: 0 26px 60px rgba(7, 17, 32, 0.35);
}

.pd-hp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0c1a2e;
}

.pd-hp-bug {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 13, 24, 0.74);
  backdrop-filter: blur(8px);
}

.pd-hp-bug b {
  color: #ffd97a;
  font-family: var(--pd-font-mono, monospace);
  font-size: 9.5px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd-hp-bug span {
  color: #c6d5e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pd-hp-flag {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #c8202f;
  color: #fff;
  font-family: var(--pd-font-mono, monospace);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd-hp-caption {
  display: grid;
  gap: 5px;
  padding: 0 4px;
  color: #122036;
}

.pd-hp-kicker {
  color: #c8202f;
  font-family: var(--pd-font-mono, monospace);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pd-hp-title {
  margin: 0;
  color: inherit;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(22px, 2.5vw, 33px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pd-hp-players {
  color: #5d7391;
  font-size: 12px;
  font-weight: 700;
}

.pd-hp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.pd-hp-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  color: inherit;
  font-family: var(--pd-font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.pd-hp-action.is-primary {
  background: #c8202f;
  color: #fff;
  box-shadow: 0 12px 30px rgba(200, 32, 47, 0.28);
}

.pd-hp-action-note {
  color: #8b9cb3;
  font-size: 11px;
  font-weight: 700;
}

.pd-hp-shelf {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.pd-hp-shelf-item {
  flex: 0 0 auto;
  width: 196px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pd-hp-shelf-item:hover {
  transform: translateY(-1px);
  border-color: #bcd2ec;
}

.pd-hp-shelf-item strong {
  color: #122036;
  font-size: 12.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pd-hp-shelf-item small {
  color: #8b9cb3;
  font-size: 10px;
  font-weight: 700;
}

.pd-hp-shelf-marks {
  display: flex;
  gap: 4px;
}

.pd-hp-stage.is-matchup {
  align-content: center;
  gap: 18px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(130% 150% at 90% -10%, rgba(200, 32, 47, 0.28), transparent 55%),
    linear-gradient(150deg, #0d1d33, #0a1524);
  color: #fff;
  box-shadow: 0 26px 60px rgba(7, 17, 32, 0.35);
}

.pd-hp-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.pd-hp-side {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.pd-hp-side small {
  color: #9fb4cc;
  font-family: var(--pd-font-mono, monospace);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pd-hp-side strong {
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.pd-hp-score {
  color: #ffd97a;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 0.95;
}

.pd-hp-versus-mid {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.pd-hp-versus-mid span {
  color: #9fb4cc;
  font-family: var(--pd-font-mono, monospace);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pd-hp-versus-mid b {
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.pd-hp-versus-mid em {
  color: #6c829d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-hp-stage.is-matchup .pd-hp-caption {
  justify-items: start;
  color: #fff;
}

.pd-hp-stage.is-matchup .pd-hp-kicker {
  color: #ffd97a;
}

.pd-hp-stage.is-matchup .pd-hp-title {
  color: #fff;
}

.pd-hp-stage.is-matchup .pd-hp-action-note,
.pd-hp-stage.is-matchup .pd-hp-players {
  color: #9fb4cc;
}

.pd-hp-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pd-hp-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pd-hp-item:hover {
  transform: translateY(-1px);
  border-color: #bcd2ec;
}

.pd-hp-item.is-clip {
  border-left: 3px solid #c8202f;
}

.pd-hp-item.is-final {
  border-left: 3px solid #2b5fa8;
}

.pd-hp-item.is-trade {
  border-left: 3px solid #5b3fb8;
}

.pd-hp-item-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pd-hp-item-title {
  color: #122036;
  font-size: 13.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pd-hp-item-detail {
  color: #5d7391;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pd-hp-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f0fb;
  color: #2b5fa8;
  font-family: var(--pd-font-mono, monospace);
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pd-hp-chip.is-final {
  background: #fdecee;
  color: #c8202f;
}

.pd-hp-chip.is-signing {
  background: #e7f7ee;
  color: #1f7a4d;
}

.pd-hp-chip.is-re_signing {
  background: #fdf3e2;
  color: #9a6a1c;
}

.pd-hp-chip.is-release {
  background: #f1f3f7;
  color: #5d7391;
}

.pd-hp-chip.is-trade {
  background: #eee9fb;
  color: #5b3fb8;
}

.pd-hp-chip.is-clip {
  background: #fdf3e2;
  color: #9a6a1c;
}

.pd-hp-item-end {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.pd-hp-item-marks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pd-hp-item-marks .player-avatar {
  width: 30px;
  height: 30px;
}

.pd-hp-item-time {
  color: #8b9cb3;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.pd-hp-lead {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.pd-hp-lead .pd-hp-stage {
  max-width: 980px;
  margin-inline: auto;
}

html[data-theme="dark"] .pd-hp-caption {
  color: #eaf1f8;
}

html[data-theme="dark"] .pd-hp-kicker {
  color: #ffd97a;
}

html[data-theme="dark"] .pd-hp-players,
html[data-theme="dark"] .pd-hp-action-note {
  color: #9fb4cc;
}

html[data-theme="dark"] .pd-hp-shelf-item {
  background: #0c192b;
  border-color: #1d3450;
}

html[data-theme="dark"] .pd-hp-shelf-item strong {
  color: #eaf1f8;
}

html[data-theme="dark"] .pd-hp-shelf-item small {
  color: #6c829d;
}

html[data-theme="dark"] .pd-hp-item {
  background: #0c192b;
  border-color: #1d3450;
}

html[data-theme="dark"] .pd-hp-item-title {
  color: #eaf1f8;
}

html[data-theme="dark"] .pd-hp-item-detail {
  color: #9fb4cc;
}

html[data-theme="dark"] .pd-hp-item-time {
  color: #6c829d;
}

html[data-theme="dark"] .pd-hp-chip {
  background: #16283e;
  color: #9cc2ff;
}

html[data-theme="dark"] .pd-hp-chip.is-final {
  background: #2a1218;
  color: #ff9aa4;
}

html[data-theme="dark"] .pd-hp-chip.is-signing {
  background: #12301f;
  color: #8ef0b1;
}

html[data-theme="dark"] .pd-hp-chip.is-re_signing,
html[data-theme="dark"] .pd-hp-chip.is-clip {
  background: #33270f;
  color: #ffd97a;
}

html[data-theme="dark"] .pd-hp-chip.is-release {
  background: #16283e;
  color: #9fb4cc;
}

html[data-theme="dark"] .pd-hp-chip.is-trade {
  background: #241a3d;
  color: #c4b0ff;
}

@media (max-width: 64rem) {
  .pd-hp-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 43.75rem) {
  .pd-hp-media {
    aspect-ratio: 16 / 12;
    min-height: 0;
    border-radius: 18px;
  }

  .pd-hp-stage.is-matchup {
    padding: 18px;
    border-radius: 18px;
    gap: 14px;
  }

  .pd-hp-title {
    font-size: 24px;
  }

  .pd-hp-item {
    padding: 11px 12px;
  }

  .pd-hp-item-title {
    font-size: 12.5px;
  }

  .pd-hp-item-detail {
    font-size: 10.5px;
  }
}

@media (max-width: 26.25rem) {
  .pd-hp-versus {
    gap: 6px;
  }

  .pd-hp-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pd-hp-item-end {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
  }
}
