/* Project Dynasty Game of the Week band (2026-09-30).
 *
 * Replaces the below-strip "Week Scoreboard" ribbon on the home view with one
 * compact, premium featured-game band. The band speaks the top strip language:
 * the same near-black surface, hairline dividers, gold accents, and condensed
 * display type, with a gold treatment reserved for the owner-vs-owner
 * "OWNER SHOWDOWN" promotion. Always dark in both themes, like the strip it
 * replaces; layout reflows from one row on desktop to four compact rows on
 * phones without ever stretching to a full page. */

.score-ribbon.is-gotw {
  display: block;
  min-height: 0;
  grid-template-columns: none;
}

.pd-gotw {
  --pd-gotw-gold: #f1c95b;
  --pd-gotw-gold-deep: #d7b256;
  --pd-gotw-red: #c92232;
  display: grid;
  grid-template-columns: 178px minmax(300px, 1.05fr) minmax(290px, 1.3fr) auto;
  align-items: stretch;
  min-height: 84px;
  background:
    radial-gradient(120% 190% at 0% 0%, rgba(241, 201, 91, 0.09), transparent 42%),
    linear-gradient(180deg, #191920, #101013);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pd-gotw > * {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-gotw > *:last-child {
  border-right: 0;
}

/* ---- Identity block: week + promotion ---- */

.pd-gotw-id {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 16px;
  background: var(--pd-gotw-red);
  text-transform: uppercase;
}

.pd-gotw-week {
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.pd-gotw-title {
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.pd-gotw-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pd-gotw.is-showdown {
  box-shadow: inset 0 3px 0 var(--pd-gotw-gold);
}

.pd-gotw.is-showdown .pd-gotw-id {
  background: linear-gradient(135deg, #f6d97a, #c9971f);
  color: #1b1503;
}

.pd-gotw.is-showdown .pd-gotw-week {
  color: rgba(27, 21, 3, 0.72);
}

.pd-gotw.is-showdown .pd-gotw-sub {
  color: rgba(27, 21, 3, 0.72);
}

/* ---- Matchup block: away at home with owners and records ---- */

.pd-gotw-board {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.pd-gotw .pd-gotw-side {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.pd-gotw-side.is-home {
  flex-direction: row-reverse;
  text-align: right;
}

.pd-gotw-side .team-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.pd-gotw-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
}

.pd-gotw-side-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pd-gotw-side-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pd-gotw-side-copy strong {
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0.01em;
}

.pd-gotw-side-copy em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-gotw-at {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.pd-gotw-at b {
  color: var(--pd-gotw-gold-deep);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

/* ---- Stakes block: rivalry chip, one stakes line, key players ---- */

.pd-gotw-stakes {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 10px 16px;
}

.pd-gotw-chip {
  padding: 2px 7px;
  border: 1px solid rgba(241, 201, 91, 0.45);
  border-radius: 999px;
  background: rgba(241, 201, 91, 0.14);
  color: var(--pd-gotw-gold);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-gotw-line {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pd-gotw-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-width: 0;
}

.pd-gotw .pd-gotw-key {
  display: grid;
  gap: 0;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.pd-gotw-key small {
  color: var(--pd-gotw-gold-deep);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

.pd-gotw-key strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-gotw-key b {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8.5px;
  font-weight: 850;
}

/* ---- Action block: film / game book + advance countdown ---- */

.pd-gotw-end {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
}

.pd-gotw-action {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.pd-gotw-action.is-tv {
  background: var(--pd-gotw-gold);
  color: #1b1503;
}

.pd-gotw-action.is-book {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.pd-gotw-clock {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pd-gotw-clock small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pd-gotw-clock b {
  color: var(--pd-gotw-gold);
  font-size: 14px;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---- Tablet: two rows, matchup leads ---- */

@media (max-width: 1099px) {
  .pd-gotw {
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-areas:
      "id board"
      "stakes end";
  }

  .pd-gotw-id { grid-area: id; }
  .pd-gotw-board { grid-area: board; }
  .pd-gotw-stakes { grid-area: stakes; }
  .pd-gotw-end { grid-area: end; }

  .pd-gotw-board,
  .pd-gotw-id {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pd-gotw-end {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

/* ---- Phone: four compact rows, no stretched layout ---- */

@media (max-width: 640px) {
  .pd-gotw {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "id"
      "board"
      "stakes"
      "end";
  }

  .pd-gotw > * {
    border-right: 0;
  }

  .pd-gotw-id {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .pd-gotw-week {
    order: 1;
    font-size: 8px;
  }

  .pd-gotw-title {
    order: 2;
    font-size: 12px;
  }

  .pd-gotw-sub {
    order: 3;
    margin-left: auto;
    font-size: 7.5px;
  }

  .pd-gotw-board {
    padding: 8px 12px;
    gap: 8px;
  }

  .pd-gotw-side .team-mark,
  .pd-gotw-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .pd-gotw-side-copy strong {
    font-size: 14px;
  }

  .pd-gotw-side-copy em {
    display: none;
  }

  .pd-gotw-stakes {
    padding: 8px 12px;
    gap: 3px;
  }

  .pd-gotw-line {
    font-size: 10px;
  }

  .pd-gotw-end {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 8px 12px 10px;
  }

  .pd-gotw-action {
    padding: 8px 12px;
  }

  .pd-gotw-clock {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
  }

  .pd-gotw-clock b {
    font-size: 12px;
  }
}
