
/*
 * PlayMaker Prime — Matchups Hub V2
 * Public hub only. Loaded by matchups.html.
 * Stage 1: hero, season snapshot, search controls.
 */

.matchups-hub-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(54px, 7vw, 100px) 20px 60px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(51, 130, 99, .19),
            transparent 62%
        ),
        linear-gradient(
            165deg,
            #101c2a 0%,
            #0b111d 65%,
            #0c1520 100%
        );
}

.matchups-hub-hero .hero-glow {
    pointer-events: none;
    opacity: .55;
}

.matchups-hub-hero .matchups-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    max-width: 1120px;
    margin-inline: auto;
}

.matchups-hub-hero .hq-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(102, 255, 153, .28);
    background: rgba(102, 255, 153, .065);
    color: #92ffb5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.matchups-hub-hero h1 {
    max-width: 900px;
    margin: 22px auto 18px;
    color: #f7fbff;
    font-size: clamp(38px, 5.8vw, 68px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.matchups-hub-hero h1 span {
    display: block;
    margin-top: 14px;
    font-size: clamp(17px, 2.2vw, 25px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: #a8c3b5;
}

.matchups-hub-hero .matchups-hero-content > p {
    max-width: 750px;
    margin: 0 auto 29px;
    color: #b9c9d6;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.8;
}

/* Season snapshot */

.pm-matchup-season-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 760px);
    gap: 12px;
    margin: 28px auto 30px;
}

.pm-matchup-season-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 105px;
    padding: 16px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(137, 181, 170, .15);
    border-radius: 15px;
    background: linear-gradient(
        150deg,
        rgba(28, 47, 63, .85),
        rgba(15, 28, 43, .9)
    );
}

.pm-matchup-season-stat strong {
    color: #fff;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.pm-matchup-season-stat span {
    margin-top: 8px;
    color: #aebfce;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Preserve existing search functionality and selectors. */

.matchups-hub-hero .hub-search-card {
    box-sizing: border-box;
    width: min(100%, 1040px);
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(102, 255, 153, .20);
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(22, 40, 55, .97),
        rgba(12, 24, 38, .97)
    );
    box-shadow: 0 18px 55px rgba(0, 0, 0, .20);
}

.matchups-hub-hero .hub-search-card > label {
    display: block;
    margin-bottom: 14px;
    color: #e9f7ee;
    font-size: 14px;
    font-weight: 800;
}

.matchups-hub-hero .hub-filter-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.matchups-hub-hero .hub-search-input {
    flex: 2 1 260px;
    min-width: 0;
}

.matchups-hub-hero #matchup-search,
.matchups-hub-hero #week-filter {
    box-sizing: border-box;
    height: 52px;
    border: 1px solid rgba(143, 185, 175, .23);
    border-radius: 11px;
    background: #0d1b2b;
    color: #f5f7fb;
    font: inherit;
    font-size: 14px;
}

.matchups-hub-hero #matchup-search {
    width: 100%;
    padding: 0 16px;
}

.matchups-hub-hero #matchup-search::placeholder {
    color: #869aa9;
}

.matchups-hub-hero #week-filter {
    flex: 1 1 150px;
    min-width: 140px;
    padding: 0 14px;
    color-scheme: dark;
}

.matchups-hub-hero .hub-filter-row > button {
    flex: 0 1 auto;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid #66ff99;
    border-radius: 11px;
    background: #66ff99;
    color: #092014;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition:
        background .18s ease,
        transform .18s ease;
}

.matchups-hub-hero .hub-filter-row > button:hover {
    background: #9dffbc;
}

.matchups-hub-hero #matchup-search:focus-visible,
.matchups-hub-hero #week-filter:focus-visible,
.matchups-hub-hero .hub-filter-row > button:focus-visible {
    outline: 2px solid #66ff99;
    outline-offset: 3px;
}

.matchups-hub-hero .hub-search-card .matchups-search-note {
    margin-top: 12px;
    color: #98adba;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .matchups-hub-hero {
        padding: 48px 16px 44px;
    }

    .pm-matchup-season-stats {
        gap: 7px;
    }

    .pm-matchup-season-stat {
        min-height: 95px;
        padding: 12px 7px;
    }

    .pm-matchup-season-stat span {
        font-size: 10px;
    }

    .matchups-hub-hero .hub-search-card {
        padding: 16px;
    }

    .matchups-hub-hero .hub-filter-row {
        flex-direction: column;
    }

    .matchups-hub-hero .hub-filter-row > *,
    .matchups-hub-hero #week-filter {
        width: 100%;
        flex: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .matchups-hub-hero .hub-filter-row > button {
        transition: none;
    }
}



/* MATCHUPS HUB V2 — GAME CARDS */

/* Game board layout */

body .week-board-section {
    max-width: 1240px;
    margin-inline: auto;
}

body .week-board-section .section-header h3 {
    color: #f5fbff;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.035em;
}

body .week-board-section .section-header p {
    max-width: 680px;
    color: #a9bbc8;
    line-height: 1.7;
}

body .week-board-section .matchup-grid {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 18px;
    align-items: stretch;
    margin-top: 24px;
}

/* Individual cards */

body .week-board-section .matchup-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid rgba(124, 176, 159, .18);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(65, 132, 108, .07),
            transparent 62%
        ),
        linear-gradient(
            150deg,
            #172738,
            #0d1725
        );
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

body .week-board-section .matchup-card:hover {
    border-color: rgba(102,255,153,.43);
    box-shadow: 0 16px 38px rgba(0,0,0,.22);
    transform: translateY(-3px);
}

/* Week and status */

body .matchup-card .pm-mc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
}

body .pm-mc-top .game-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(102,255,153,.22);
    border-radius: 999px;
    background: rgba(102,255,153,.07);
    color: #a1ffc2;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.pm-mc-status-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.pm-mc-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #b5c4d3;
    background: rgba(255,255,255,.035);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
}

.pm-mc-status-final {
    color: #b9cbd9;
}

.pm-mc-status-live {
    color: #a5ffbb;
    border-color: rgba(102,255,153,.3);
    background: rgba(102,255,153,.08);
}

.pm-mc-score {
    font-size: 15px;
    font-weight: 850;
    color: #f5f7fb;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Main matchup */

body .matchup-card .matchup-teams {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        48px
        minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

body .matchup-card .team-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    width: 100%;
    margin: 0;
    text-align: center;
}

body .matchup-card .team-inline img {
    display: block;
    width: 79px;
    height: 79px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 5px 13px rgba(0,0,0,.21));
}

.pm-mc-team-role {
    order: -1;
    color: #8197a8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

body .matchup-card .team-inline > span:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #f3f8ff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body .matchup-card .team-inline small {
    color: #92aabb;
    font-size: 11px;
    font-weight: 700;
}

body .matchup-card .vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin: auto;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    background: #0c1928;
    color: #91a4b4;
    font-size: 18px;
    font-weight: 800;
}

/* Model information: visually quieter than the teams */

body .matchup-card .card-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px 12px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid rgba(102,255,153,.13);
    background: rgba(102,255,153,.035);
}

body .matchup-card .card-rating span {
    color: #9ab8af;
    font-size: 11px;
    font-weight: 700;
}

body .matchup-card .card-rating strong {
    color: #d2ffe0;
    font-size: 19px;
    font-weight: 850;
}

body .matchup-card .card-rating em {
    color: #a9c9b7;
    font-size: 11px;
    font-style: normal;
}

/* Compact context grid */

body .matchup-card .matchup-details {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
    margin: 15px 0 20px;
    padding: 0;
}

body .matchup-card .matchup-details > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body .matchup-card .matchup-details > div:first-child {
    grid-column: 1 / -1;
}

body .matchup-card .matchup-details span {
    color: #829bad;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .035em;
}

body .matchup-card .matchup-details strong {
    color: #dbe7f0;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Consistent card actions */

body .matchup-card .card-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.08);
}

body .matchup-card .card-actions .card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 45px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #66ff99;
    background: #66ff99;
    color: #081b10;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    line-height: 1.35;
    cursor: pointer;
}

body .matchup-card .card-actions .secondary-link {
    background: #142e29;
    border-color: rgba(102,255,153,.29);
    color: #a6ffc5;
}

body .matchup-card .card-actions .card-link:hover {
    background: #96ffb9;
    color: #081b10;
}

body .matchup-card .card-actions .secondary-link:hover {
    background: #204338;
    color: #caffdc;
}

body .matchup-card .card-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 850px) {
    body .week-board-section .matchup-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 500px) {
    body .week-board-section .matchup-card {
        padding: 16px;
        border-radius: 15px;
    }

    body .matchup-card .team-inline img {
        width: 65px;
        height: 65px;
    }

    body .matchup-card .team-inline > span:last-child {
        font-size: 13px;
    }

    body .matchup-card .matchup-teams {
        grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr);
        gap: 5px;
    }

    body .matchup-card .vs {
        width: 37px;
        height: 37px;
    }

    body .matchup-card .card-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .week-board-section .matchup-card {
        transition: none;
    }

    body .week-board-section .matchup-card:hover {
        transform: none;
    }
}



/* MATCHUPS HUB V2 — COMPACT MIDDLE SECTION */

body .pm-matchups-board-v2 {
  padding-top: 28px;
  margin-top: 0;
}

.pm-matchups-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pm-matchups-board-heading .section-header {
  flex: 1 1 330px;
  margin: 0;
  text-align: left;
}

.pm-matchups-board-heading .section-header h3 {
  margin: 0 0 7px;
  line-height: 1.2;
}

.pm-matchups-board-heading .section-header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.pm-matchups-board-heading > .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  box-sizing: border-box;
  padding: 10px 17px;
  margin: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.pm-matchups-quick-links {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(102,255,153,.13);
  border-radius: 13px;
  background: #111e2c;
}

.pm-matchups-quick-links .internal-link-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.pm-matchups-quick-links .internal-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 12px;
  margin: 0;
  border: 1px solid rgba(102,255,153,.15);
  border-radius: 8px;
  background: rgba(102,255,153,.035);
  color: #b4eac7;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
}

.pm-matchups-quick-links .internal-link-row a:hover {
  background: rgba(102,255,153,.12);
  border-color: rgba(102,255,153,.4);
  color: #66ff99;
}

.pm-matchups-quick-links .internal-link-row a:focus-visible {
  outline: 2px solid #66ff99;
  outline-offset: 2px;
}

/* Remove excessive spacing before the game grid. */

.pm-matchups-board-v2 .matchup-grid {
  margin-top: 12px !important;
}

@media (max-width: 700px) {
  .pm-matchups-board-heading {
    align-items: stretch;
    gap: 13px;
  }

  .pm-matchups-board-heading .section-header {
    flex-basis: 100%;
  }

  .pm-matchups-board-heading > .btn-primary {
    width: 100%;
  }

  .pm-matchups-quick-links {
    padding: 10px;
  }

  .pm-matchups-quick-links .internal-link-row {
    gap: 6px;
  }

  .pm-matchups-quick-links .internal-link-row a {
    flex: 1 1 auto;
    font-size: 10px;
  }
}



/* ========================================
   MATCHUPS HUB V2 — LOWER PAGE
======================================== */

.pm-hub-research-v2 {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 30px auto 20px;
  padding: 28px 22px;
  border: 1px solid rgba(102,255,153,.14);
  border-radius: 19px;
  background: linear-gradient(
    145deg,
    #142333,
    #0b1623
  );
  color: #f5f7fb;
}

.pm-hub-research-heading {
  margin-bottom: 21px;
}

.pm-hub-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #66ff99;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}

.pm-hub-research-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(22px,3vw,30px);
  letter-spacing: -.03em;
  color: #f5f7fb;
}

.pm-hub-research-heading p {
  margin: 0;
  color: #a8bac9;
  font-size: 13px;
  line-height: 1.6;
}

/* Research destinations */

.pm-hub-resource-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0,1fr)
  );
  gap: 10px;
}

.pm-hub-resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(102,255,153,.13);
  border-radius: 12px;
  background: #102031;
  text-decoration: none;
  transition:
    border-color .18s ease,
    background .18s ease;
}

.pm-hub-resource-card:hover {
  background: #172c37;
  border-color: rgba(102,255,153,.42);
}

.pm-hub-resource-card:focus-visible {
  outline: 2px solid #66ff99;
  outline-offset: 3px;
}

.pm-hub-resource-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pm-hub-resource-copy strong {
  color: #e9f7ef;
  font-size: 13px;
  font-weight: 800;
}

.pm-hub-resource-copy small {
  color: #a1b5c5;
  font-size: 11px;
  line-height: 1.5;
}

.pm-hub-resource-arrow {
  flex-shrink: 0;
  font-size: 19px;
  color: #66ff99;
}

/* Optional full research descriptions */

.pm-hub-extra-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.pm-hub-extra-details > summary {
  padding: 16px 4px 4px;
  color: #aaffc6;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.pm-hub-extra-details > summary:focus-visible {
  outline: 2px solid #66ff99;
  outline-offset: 3px;
}

.pm-hub-extra-content {
  padding-top: 16px;
}

.pm-hub-extra-content .pm-hub-archived-section {
  display: block;
  max-width: none;
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.pm-hub-extra-content
.pm-hub-archived-section > * {
  display: block;
  visibility: visible;
  opacity: 1;
  max-height: none;
}

.pm-hub-extra-content .section-header {
  text-align: left;
  margin: 0 0 12px;
}

.pm-hub-extra-content .section-header h3 {
  margin: 0 0 7px;
  font-size: 17px;
  color: #e5f5e9;
}

.pm-hub-extra-content .section-header p {
  margin: 0;
  font-size: 12px;
  color: #a9bac6;
}

.pm-hub-extra-content .logic-grid,
.pm-hub-extra-content .stack-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0,1fr)
  );
  gap: 9px;
}

.pm-hub-extra-content .report-list {
  display: grid;
  gap: 8px;
}

.pm-hub-extra-content .logic-card,
.pm-hub-extra-content .stack-card,
.pm-hub-extra-content .report-row {
  padding: 13px;
  border-radius: 10px;
}

/* Compact FAQ */

body .pm-hub-faq-v2 {
  max-width: 1200px;
  margin: 18px auto;
  padding-top: 15px;
  padding-bottom: 15px;
}

body .pm-hub-faq-v2 .section-header {
  margin-bottom: 14px;
}

body .pm-hub-faq-v2 .section-header h3 {
  font-size: clamp(22px,3vw,28px);
}

body .pm-hub-faq-v2 .faq-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0,1fr)
  );
  gap: 10px;
}

body .pm-hub-faq-v2 .faq-card {
  padding: 0;
  margin: 0;
  border-radius: 11px;
  background: #111f2e;
  border: 1px solid rgba(102,255,153,.12);
}

body .pm-hub-faq-v2 .faq-card summary {
  padding: 14px 16px;
  color: #dff5e8;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

body .pm-hub-faq-v2 .faq-card p {
  margin: 0;
  padding: 0 16px 15px;
  color: #aabac7;
  font-size: 12px;
  line-height: 1.7;
}

/* Final PlayMaker CTA */

body .pm-hub-final-cta-v2 {
  max-width: 1050px;
  margin: 20px auto;
  padding: 26px;
  border-radius: 17px;
  border: 1px solid rgba(102,255,153,.18);
}

body .pm-hub-final-cta-v2 h3 {
  font-size: clamp(21px,3vw,29px);
}

body .pm-hub-final-cta-v2 p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 660px;
}

body .pm-hub-final-cta-v2 .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 19px;
  font-size: 12px;
  border-radius: 10px;
}

/* Responsive */

@media(max-width:850px) {
  .pm-hub-resource-grid {
    grid-template-columns: repeat(
      2,
      minmax(0,1fr)
    );
  }

  .pm-hub-extra-content .logic-grid,
  .pm-hub-extra-content .stack-grid {
    grid-template-columns: repeat(
      2,
      minmax(0,1fr)
    );
  }
}

@media(max-width:600px) {
  .pm-hub-research-v2 {
    margin: 18px 12px;
    padding: 17px;
  }

  .pm-hub-resource-grid,
  .pm-hub-extra-content .logic-grid,
  .pm-hub-extra-content .stack-grid,
  body .pm-hub-faq-v2 .faq-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .pm-hub-resource-card {
    padding: 13px;
  }

  .pm-hub-resource-copy small {
    font-size: 10px;
  }

  body .pm-hub-final-cta-v2 {
    padding: 18px;
  }
}

@media(prefers-reduced-motion: reduce) {
  .pm-hub-resource-card {
    transition: none;
  }
}
