
/* ==========================================
   PLAYMAKER PRIME
   PUBLIC TEAM INTELLIGENCE V2

   Loaded AFTER teams.css, only on team.html.
   Does not alter the Teams Hub or paid tool.
========================================== */

.pm-team-page {
    background: #0b0f1a;
}

/* HERO */

.pm-team-page .pm-team-hero {
    min-height: 0;
    display: block;
    padding: 42px 24px 38px;
    text-align: left;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(102,255,153,.085),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #111b2a,
            #0b0f1a 75%
        );
    border-bottom: 1px solid rgba(102,255,153,.15);
    overflow: hidden;
}

.pm-team-page .pm-team-hero .hero-glow {
    opacity: .35;
    pointer-events: none;
}

.pm-team-page .pm-team-hero-inner {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

/* BACK NAVIGATION */

.pm-team-page .pm-team-back {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    margin-bottom: 34px;
    color: #a3aabf;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pm-team-page .pm-team-back:hover {
    color: #66ff99;
}

/* TEAM IDENTITY */

.pm-team-page .pm-team-identity {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.pm-team-page .pm-team-logo-box {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    margin: 0;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(102,255,153,.18);
}

.pm-team-page .pm-team-logo-box .team-hero-logo {
    width: 100%;
    height: 100%;
    max-width: 94px;
    max-height: 94px;
    object-fit: contain;
    animation: none;
    filter: none;
}

.pm-team-page .pm-team-identity-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.pm-team-page .pm-team-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #66ff99;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pm-team-page #team-title {
    margin: 0 0 10px;
    color: #f5f7fb;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.pm-team-page #team-subtitle {
    max-width: 720px;
    margin: 0;
    color: #a3aabf;
    font-size: 15px;
    line-height: 1.7;
}

/* LIVE RECORD & CONTEXT */

.pm-team-page .pm-team-hero-meta {
    justify-content: flex-start;
    margin-top: 20px;
    gap: 9px;
}

.pm-team-page .pm-team-hero-meta .meta-chip {
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.35;
    transform: none;
}

/* SECTION NAVIGATION */

.pm-team-page .pm-team-section-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.085);
}

.pm-team-page .pm-team-section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 999px;

    color: #c3cfda;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.pm-team-page .pm-team-section-nav a:hover,
.pm-team-page .pm-team-section-nav a:focus-visible {
    color: #66ff99;
    background: rgba(102,255,153,.09);
    border-color: rgba(102,255,153,.3);
    outline: none;
}

/* PAGE SPACING */

.pm-team-page .hq-section {
    padding-top: 48px;
    padding-bottom: 48px;
    scroll-margin-top: 95px;
}

.pm-team-page .section-header {
    margin-bottom: 28px;
}

.pm-team-page .section-header h3 {
    font-size: clamp(23px, 2.5vw, 31px);
}

.pm-team-page .hq-section-alt {
    background: #111827;
}

@media (prefers-reduced-motion: reduce) {
    .pm-team-page .pm-team-section-nav a {
        transition: none;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .pm-team-page .pm-team-hero {
        padding: 26px 18px 24px;
    }

    .pm-team-page .pm-team-back {
        margin-bottom: 24px;
    }

    .pm-team-page .pm-team-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .pm-team-page .pm-team-logo-box {
        flex-basis: auto;
        width: 86px;
        height: 86px;
        padding: 10px;
        border-radius: 17px;
    }

    .pm-team-page .pm-team-logo-box .team-hero-logo {
        max-width: 66px;
        max-height: 66px;
    }

    .pm-team-page #team-title {
        font-size: clamp(29px, 8vw, 40px);
    }

    .pm-team-page #team-subtitle {
        font-size: 14px;
    }

    .pm-team-page .pm-team-section-nav {
        margin-top: 24px;
        padding-top: 17px;
        gap: 7px;
    }

    .pm-team-page .pm-team-section-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pm-team-page .hq-section {
        padding-top: 35px;
        padding-bottom: 35px;
    }
}



/* TEAM INTELLIGENCE V2 — RESEARCH DASHBOARD */

/* Connected snapshot and analysis area */

.pm-team-page .pm-team-dashboard {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;

    padding: 42px 20px 24px;

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;

    box-sizing: border-box;
}

.pm-team-page .pm-team-dashboard > .hq-section {
    width: 100%;
    min-width: 0;

    padding: 0;
    margin: 0;

    background: transparent;
}

.pm-team-page .pm-team-dashboard .section-header {
    max-width: none;
    margin: 0 0 16px;
    text-align: left;
}

.pm-team-page .pm-team-dashboard .section-header h3 {
    margin: 0 0 6px;
    color: #f5f7fb;
    font-size: clamp(21px, 2.5vw, 27px);
}

.pm-team-page .pm-team-dashboard .section-header p {
    color: #a3aabf;
    font-size: 13px;
    line-height: 1.6;
}

/* Live team statistics */

.pm-team-page #team-snapshot .intel-grid {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pm-team-page #team-snapshot .intel-card {
    min-width: 0;
    min-height: 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px 20px;
    background: linear-gradient(145deg, #142031, #0c1421);

    border: 1px solid rgba(102, 255, 153, .16);
    border-radius: 15px;
    box-shadow: none;
}

.pm-team-page #team-snapshot .intel-card h4 {
    margin: 0 0 14px;

    color: #a3aabf;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.pm-team-page #team-snapshot .intel-card p {
    margin: 0;

    color: #f5f7fb;
    font-size: clamp(21px, 2.5vw, 31px);
    font-weight: 850;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

/* AI analysis */

.pm-team-page #team-overview .ai-summary-card {
    width: 100%;
    max-width: none;

    padding: 25px;
    border-radius: 17px;

    background: linear-gradient(145deg, #101a29, #0b111d);
    border: 1px solid rgba(102, 255, 153, .20);
    box-shadow: none;
}

.pm-team-page #team-overview .ai-summary-header {
    gap: 15px;
    flex-wrap: wrap;
}

.pm-team-page #team-overview #ai-summary-title {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.35;
    margin: 0;
}

.pm-team-page #team-overview #ai-summary-text {
    margin: 18px 0 0;
    color: #c0cad6;
    font-size: 14px;
    line-height: 1.8;
}

.pm-team-page #team-overview .ai-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.pm-team-page #team-overview .ai-insight {
    min-width: 0;
    padding: 17px;

    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
}

.pm-team-page #team-overview .ai-insight:hover {
    transform: none;
}

.pm-team-page #team-overview .ai-insight .label {
    display: block;
    margin-bottom: 8px;

    color: #a3aabf;
    opacity: 1;
    font-size: 11px;
    font-weight: 700;
}

.pm-team-page #team-overview .ai-insight > span:last-child {
    display: block;

    color: #f5f7fb;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Latest game: tighter scoreboard */

.pm-team-page #latest-game-section .latest-game-card {
    max-width: 1050px;

    padding: 24px;
    background: linear-gradient(145deg, #101a29, #0b111d);

    border: 1px solid rgba(102, 255, 153, .14);
    border-radius: 17px;
    box-shadow: none;
}

.pm-team-page #latest-game-section .latest-game-teams {
    gap: 16px;
}

.pm-team-page #latest-game-section .latest-game-team {
    gap: 7px;
}

.pm-team-page #latest-game-section .latest-game-team img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.pm-team-page #latest-game-section .latest-game-details {
    margin-top: 22px;
    padding-top: 22px;
}

/* Recent form: readable without huge row spacing */

.pm-team-page #last10-list {
    max-width: 1050px;
    gap: 10px;
}

.pm-team-page #last10-list .report-row {
    min-height: 68px;
    padding: 14px 17px;

    background: #0f1725;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    box-shadow: none;
}

.pm-team-page #last10-list .report-row h4 {
    font-size: 14px;
}

.pm-team-page #last10-list .report-row p {
    font-size: 12px;
    line-height: 1.5;
}

/* Offense and defense — consistent intelligence cards */

.pm-team-page #team-offense .logic-grid,
.pm-team-page #team-defense .logic-grid {
    max-width: 1100px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pm-team-page #team-offense .logic-card,
.pm-team-page #team-defense .logic-card {
    min-width: 0;
    min-height: 150px;
    padding: 22px;

    background: linear-gradient(145deg, #101a29, #0b111d);
    border: 1px solid rgba(102, 255, 153, .16);
    border-radius: 15px;
    box-shadow: none;
}

.pm-team-page #team-offense .logic-card:hover,
.pm-team-page #team-defense .logic-card:hover {
    transform: none;
    border-color: rgba(102, 255, 153, .36);
    box-shadow: none;
}

.pm-team-page #team-offense .logic-card h4,
.pm-team-page #team-defense .logic-card h4 {
    margin: 0 0 12px;
    color: #66ff99;
    font-size: 14px;
    font-weight: 800;
}

.pm-team-page #team-offense .logic-card p,
.pm-team-page #team-defense .logic-card p {
    color: #c0cad6;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Tablet */

@media (max-width: 900px) {
    .pm-team-page #team-snapshot .intel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-team-page #team-offense .logic-grid,
    .pm-team-page #team-defense .logic-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Mobile */

@media (max-width: 650px) {
    .pm-team-page .pm-team-dashboard {
        padding: 28px 16px 12px;
        gap: 18px;
    }

    .pm-team-page #team-snapshot .intel-grid {
        gap: 9px;
    }

    .pm-team-page #team-snapshot .intel-card {
        min-height: 100px;
        padding: 16px 13px;
    }

    .pm-team-page #team-snapshot .intel-card h4 {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .pm-team-page #team-snapshot .intel-card p {
        font-size: 22px;
    }

    .pm-team-page #team-overview .ai-summary-card {
        padding: 19px;
    }

    .pm-team-page #team-overview .ai-insight-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pm-team-page #latest-game-section .latest-game-card {
        padding: 17px 12px;
    }

    .pm-team-page #latest-game-section .latest-game-team img {
        width: 43px;
        height: 43px;
    }

    .pm-team-page #latest-game-section .latest-game-teams {
        gap: 7px;
    }

    .pm-team-page #team-offense .logic-card,
    .pm-team-page #team-defense .logic-card {
        min-height: 0;
        padding: 19px;
    }
}



/* TEAM INTELLIGENCE V2 — PLAYER AND PROP RESEARCH */

/* Shared lower-half section rhythm */

.pm-team-page #team-players,
.pm-team-page #team-history {
    scroll-margin-top: 95px;
}

.pm-team-page #team-players .section-header,
.pm-team-page #team-history .section-header {
    max-width: 900px;
}

.pm-team-page .pm-research-disclosure {
    max-width: 730px;
    margin: 10px auto 0;
    color: #a3aabf;
    font-size: 13px;
    line-height: 1.7;
}

/* ========================================
   PLAYER POOLS & LEADERS
======================================== */

.pm-team-page #player-pools,
.pm-team-page #team-leaders {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pm-team-page #player-pools .player-card,
.pm-team-page #team-leaders .player-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 21px;
    margin: 0;

    background: linear-gradient(
        145deg, #111d2c, #0c1421
    );

    border: 1px solid rgba(102,255,153,.16);
    border-radius: 16px;
    box-shadow: none;

    transition: border-color .2s ease;
}

.pm-team-page #player-pools .player-card:hover,
.pm-team-page #team-leaders .player-card:hover {
    transform: none;
    border-color: rgba(102,255,153,.4);
    box-shadow: none;
}

.pm-team-page #player-pools .player-top,
.pm-team-page #team-leaders .player-top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.pm-team-page #player-pools .player-top > div,
.pm-team-page #team-leaders .player-top > div {
    min-width: 0;
}

.pm-team-page #player-pools .player-headshot,
.pm-team-page #team-leaders .player-headshot {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    border-radius: 13px;
    object-fit: cover;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(102,255,153,.2);
    box-shadow: none;
}

.pm-team-page #player-pools .player-card h4,
.pm-team-page #team-leaders .player-card h4 {
    margin: 0 0 5px;
    color: #f5f7fb;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pm-team-page #player-pools .player-card p,
.pm-team-page #team-leaders .player-card p {
    margin: 0;
    color: #a3aabf;
    font-size: 13px;
    line-height: 1.6;
}

.pm-team-page #player-pools .role-tag {
    width: fit-content;
    max-width: 100%;
    margin-top: auto;
    padding: 7px 12px;

    background: rgba(102,255,153,.08);
    border: 1px solid rgba(102,255,153,.22);
    border-radius: 999px;

    color: #66ff99;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* ========================================
   SIMILAR TEAMS
======================================== */

.pm-team-page #similar-teams {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pm-team-page #similar-teams .team-card {
    min-width: 0;
    padding: 21px;

    background: linear-gradient(
        145deg, #111d2c, #0c1421
    );

    border: 1px solid rgba(102,255,153,.16);
    border-radius: 16px;
    box-shadow: none;
}

.pm-team-page #similar-teams .team-card:hover {
    transform: none;
    border-color: rgba(102,255,153,.4);
    box-shadow: none;
}

.pm-team-page #similar-teams h4 {
    color: #f5f7fb;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pm-team-page #similar-teams p {
    color: #a3aabf;
    font-size: 13px;
    line-height: 1.7;
}

/* ========================================
   HISTORICAL PLAYMAKER RESULTS
======================================== */

.pm-team-page #team-results {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pm-team-page #team-results .player-history-row {
    min-width: 0;
    min-height: 82px;

    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    background: #101a29;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 13px;
    box-shadow: none;
}

.pm-team-page #team-results .player-history-row > div {
    min-width: 0;
}

.pm-team-page #team-results .player-history-row h4 {
    margin: 0 0 5px;
    color: #f5f7fb;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pm-team-page #team-results .player-history-row p {
    margin: 0;
    color: #a3aabf;
    font-size: 12px;
    line-height: 1.5;
}

.pm-team-page #team-results .player-history-row > span {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 12px;
    font-weight: 800;
}

/* ========================================
   PROP PERFORMANCE
======================================== */

.pm-team-page #team-props {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pm-team-page #team-props .prop-card {
    min-width: 0;
    padding: 23px;

    background: linear-gradient(
        145deg, #111d2c, #0c1421
    );

    border: 1px solid rgba(102,255,153,.16);
    border-radius: 16px;
    box-shadow: none;
}

.pm-team-page #team-props .prop-card:hover {
    transform: none;
    border-color: rgba(102,255,153,.38);
}

.pm-team-page #team-props .prop-card h4 {
    margin: 0 0 14px;

    color: #f5f7fb;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pm-team-page #team-props .prop-card p {
    color: #c0cad6;
    font-size: 13px;
    line-height: 1.85;
}

/* ========================================
   FAQ
======================================== */

.pm-team-page .faq-grid {
    max-width: 850px;
    gap: 10px;
}

.pm-team-page .faq-card {
    background: #101a29;
    border: 1px solid rgba(102,255,153,.16);
    border-radius: 13px;
    box-shadow: none;
}

.pm-team-page .faq-card[open] {
    border-color: rgba(102,255,153,.38);
}

.pm-team-page .faq-card summary {
    padding: 18px 50px 18px 20px;
    color: #f5f7fb;
    font-size: 14px;
    line-height: 1.5;
}

.pm-team-page .faq-card p {
    padding: 0 20px 20px;
    color: #a3aabf;
    font-size: 13px;
    line-height: 1.8;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1000px) {
    .pm-team-page #player-pools,
    .pm-team-page #team-leaders,
    .pm-team-page #similar-teams,
    .pm-team-page #team-props {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pm-team-page #player-pools,
    .pm-team-page #team-leaders,
    .pm-team-page #similar-teams,
    .pm-team-page #team-results,
    .pm-team-page #team-props {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .pm-team-page #player-pools .player-card,
    .pm-team-page #team-leaders .player-card,
    .pm-team-page #similar-teams .team-card,
    .pm-team-page #team-props .prop-card {
        padding: 17px;
    }

    .pm-team-page #team-results .player-history-row {
        padding: 14px;
        min-height: 72px;
    }

    .pm-team-page .pm-research-disclosure {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-team-page #player-pools *,
    .pm-team-page #team-leaders *,
    .pm-team-page #similar-teams *,
    .pm-team-page #team-props * {
        transition: none;
    }
}
