/* ─────────────────────────────────────────────
 * Player Profile Page v3.0
 * Left/right two-tone hero matching Dynasty Rankings widget modal.
 * Brand palette: Navy #1a2f4a, Red #B2150D, Blue #297DB9,
 *   Light #EEF3F8, Border #D7E1EB
 * ───────────────────────────────────────────── */

/* ── Reset & Layout ── */
#player-profile {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    color: #1e293b;
    line-height: 1.6;
    background: #EEF3F8;
    border-radius: 0;
    overflow-x: hidden;
}

/* Full-width background behind the profile */
#content:has(#player-profile) {
    background: #EEF3F8;
    overflow-x: hidden;
}

/* Full-width background behind the profile */
#content:has(#player-profile) {
    background: #EEF3F8;
}

#player-profile *,
#player-profile *::before,
#player-profile *::after {
    box-sizing: border-box;
}

/* ── Breadcrumb ── */
.pp-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    padding: 16px 0 0;
}
.pp-breadcrumb a { color: #64748b; text-decoration: none; }
.pp-breadcrumb a:hover { color: #1a2f4a; }
.pp-breadcrumb span { margin: 0 6px; color: #d1d5db; }

/* ══════════════════════════════════════════════
 * TWO-TONE SPLIT HERO — LEFT/RIGHT like Rankings widget modal
 * Team color left strip, accent stripe, headshot on boundary, info right
 * ══════════════════════════════════════════════ */
.pp-hero {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #EEF3F8 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    min-height: 180px;
}

.pp-hero-left {
    width: 16.67%;
    min-width: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    padding-top: 16px;
}

.pp-jersey {
    font-family: 'Teko', sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: rgba(255,255,255,0.25);
    line-height: 1;
}

.pp-hero-stripe {
    width: 10px;
    flex-shrink: 0;
    align-self: stretch;
}

.pp-headshot {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: absolute;
    left: calc(16.67% - 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.pp-headshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #94a3b8;
    background: #EEF3F8;
}

.pp-hero-right {
    flex: 1;
    padding: 20px 24px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pp-hero-right h1 {
    font-family: 'Teko', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 6px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pp-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

/* Combo badge — exact match to Dynasty Rankings widget dr-combo-badge */
.pp-combo-badge {
    display: inline-flex;
    align-items: stretch;
    border-radius: 5px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    height: 24px;
}

.pp-combo-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.pp-combo-divider {
    width: 3px;
    flex-shrink: 0;
}

.pp-combo-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #cbd5e1;
    color: #1e293b;
    font-weight: 800;
    font-size: 12px;
}

/* Small combo badge variant */
.pp-combo-badge-sm {
    height: 20px;
    font-size: 10px;
    border-radius: 4px;
}
.pp-combo-badge-sm .pp-combo-team { padding: 0 6px; font-size: 10px; }
.pp-combo-badge-sm .pp-combo-divider { width: 2px; }
.pp-combo-badge-sm .pp-combo-pos { padding: 0 6px; font-size: 10px; }

.pp-rookie-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 24px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pp-team-name {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

.pp-hero-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
}

.pp-hero-details span {
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
 * STATS BAR — Dynasty value KPIs below hero
 * ══════════════════════════════════════════════ */
.pp-stats-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #D7E1EB;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 16px 0 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pp-kpi {
    flex: 1;
    text-align: center;
}

.pp-kpi-value {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #1e293b;
}

.pp-kpi-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.pp-kpi-tier {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pp-kpi-divider {
    width: 1px;
    height: 40px;
    background: #D7E1EB;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
 * CONTENT GRID
 * ══════════════════════════════════════════════ */
.pp-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

/* Prevent grid children from expanding past their column due to wide content (default min-width: auto) */
.pp-content-grid > .pp-main,
.pp-content-grid > .pp-sidebar {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* ── Cards ── */
.pp-card {
    background: #fff;
    border: 1px solid #D7E1EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Card title with colored left accent bar */
.pp-card-title {
    font-family: 'Teko', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a2f4a !important;
    margin: 0 0 16px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #EEF3F8;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2 !important;
}

.pp-title-accent {
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Tables — modern, not Excel ── */
.pp-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-size: 14px;
}

.pp-table th,
.pp-table td,
.pp-table tr,
.pp-table thead,
.pp-table tbody {
    border: none !important;
}

.pp-table thead tr {
    background: none;
}

.pp-table th {
    text-align: center;
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #EEF3F8;
    border-bottom: none;
}

.pp-table th:first-child {
    text-align: left;
}


.pp-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: none;
    color: #374151;
}

.pp-table td:first-child {
    text-align: left;
}

.pp-table tbody tr:last-child td {
    border-bottom: none;
}

.pp-table tbody tr {
    transition: background 0.15s;
}

.pp-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.pp-table tbody tr:hover {
    background: #e8f4fd;
}

.pp-row-active {
    background: #e8f4fd;
}

.pp-row-active td {
    font-weight: 600;
}

.pp-td-value {
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.pp-pos-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.pp-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pp-table-stats th,
.pp-table-stats td {
    font-size: 13px;
    padding: 10px 10px;
    white-space: nowrap;
}

.pp-th-left, .pp-td-left { text-align: left !important; }

/* ── Expert Grid (Variation A — equal columns regardless of count) ── */
.pp-expert-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
}

.pp-expert-item {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
}

.pp-expert-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

.pp-expert-ranks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pp-expert-overall {
    font-family: 'Teko', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.pp-expert-pos {
    font-size: 10px;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* ── Spread Row (Option 2 — anchored range bar) ── */
.pp-spread-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #EEF3F8;
}

.pp-spread-anchor {
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.pp-spread-anchor-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 2px;
}

.pp-spread-anchor-value {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.pp-spread-best .pp-spread-anchor-value { color: #22c55e; }
.pp-spread-worst .pp-spread-anchor-value { color: #ef4444; }

.pp-spread-track {
    flex: 1;
    min-width: 0;
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    position: relative;
}

.pp-spread-fill {
    position: absolute;
    height: 100%;
    left: 20%;
    right: 20%;
    background: linear-gradient(90deg, #22c55e 0%, #fbbf24 50%, #ef4444 100%);
    border-radius: 5px;
}

.pp-spread-marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid #0f172a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pp-spread-meta {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

.pp-spread-meta strong {
    color: #0f172a;
    font-family: 'Teko', sans-serif;
    font-size: 16px;
    vertical-align: -1px;
}

/* ══════════════════════════════════════════════
 * VALUE TREND CHART
 * ══════════════════════════════════════════════ */
.pp-trend-chart {
    display: flex;
    gap: 0;
}

.pp-trend-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 4px 8px 24px 0;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    min-width: 50px;
}

.pp-trend-body {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}

.pp-trend-svg {
    width: 100%;
    height: 180px;
    display: block;
}

.pp-trend-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #94a3b8;
    font-weight: 600;
    padding-top: 6px;
    overflow: hidden;
}

.pp-trend-x-axis span {
    white-space: nowrap;
    text-align: center;
    flex: 1;
}

/* ── Blur Teaser ── */
.pp-blur-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.pp-blur-content {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.pp-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    z-index: 2;
}

.pp-blur-overlay svg {
    opacity: 0.5;
}

.pp-blur-overlay span {
    font-size: 14px;
    font-weight: 600;
    color: #1a2f4a;
}

/* ── Similarly Valued Players ── */
.pp-adjacent-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-adj-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.pp-adj-card:hover {
    background: #e8f4fd;
    border-color: #D7E1EB;
}

.pp-adj-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #EEF3F8;
    object-fit: cover;
    flex-shrink: 0;
}

.pp-adj-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF3F8;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
}

.pp-adj-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pp-adj-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-adj-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.pp-adj-value {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pp-adj-value > span:first-child {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.pp-adj-rank {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* ── SEO Content ── */
.pp-card-seo {
    background: linear-gradient(135deg, #f8fafc 0%, #EEF3F8 100%);
}

.pp-seo-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.pp-seo-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a2f4a;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.pp-seo-content a {
    color: #B2150D;
    font-weight: 600;
    text-decoration: none;
}
.pp-seo-content a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
 * SIDEBAR
 * ══════════════════════════════════════════════ */
.pp-sidebar .pp-card {
    margin-bottom: 16px;
}

/* ── CTA Card ── */
.pp-cta-card {
    background: linear-gradient(135deg, #0f1923 0%, #1a2f4a 100%);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 16px;
}

.pp-cta-icon {
    margin-bottom: 8px;
    opacity: 0.6;
}

.pp-cta-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #fff;
    text-transform: uppercase;
}

.pp-cta-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 16px;
    line-height: 1.5;
}

.pp-btn-premium {
    display: inline-block;
    background: #B2150D;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.pp-btn-premium:hover {
    background: #991B1B;
    color: #fff !important;
}

.pp-btn-free {
    display: inline-block !important;
    background: #d1fae5 !important;
    color: #065f46 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background 0.2s;
    border: none !important;
}

.pp-btn-free:hover {
    background: #a7f3d0 !important;
    color: #065f46 !important;
}

.pp-blur-or {
    display: block !important;
    margin-top: 8px !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.6) !important;
}

.pp-blur-or a {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.pp-cta-price {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ── App Download Card ── */
.pp-app-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    text-align: center !important;
    margin-bottom: 16px !important;
}

.pp-app-card .pp-app-img {
    margin: 0 auto 12px !important;
    padding: 0 !important;
}

.pp-app-card .pp-app-img img {
    width: 180px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15)) !important;
}

.pp-app-card .pp-app-title {
    font-family: 'Teko', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a2f4a !important;
    margin: 0 0 4px !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
}

.pp-app-card .pp-app-desc {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 4px 0 0 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.pp-app-card .pp-app-try-btn {
    display: block !important;
    background: #d1fae5 !important;
    color: #065f46 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background 0.2s;
    margin: 12px 0 10px !important;
    border: none !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
}

.pp-app-card .pp-app-try-btn:hover {
    background: #a7f3d0 !important;
    color: #065f46 !important;
}

.pp-app-card .pp-app-stores {
    display: flex !important;
    gap: 8px !important;
}

.pp-app-card .pp-store-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 1 !important;
    background: #0f1923 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background 0.2s;
    border: none !important;
    line-height: 1.2 !important;
}

.pp-app-card .pp-store-btn span {
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.pp-app-card .pp-store-btn:hover {
    background: #1a2f4a !important;
    color: #fff !important;
}

/* ── Detail List ── */
.pp-detail-list {
    margin: 0;
}

.pp-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #EEF3F8;
}

.pp-detail-row:last-child {
    border-bottom: none;
}

.pp-detail-row dt {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0;
    flex-shrink: 0;
}

.pp-detail-row dd {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    min-width: 0;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── Articles with Thumbnails ── */
.pp-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-articles-list li {
    padding: 10px 0;
    border-bottom: 1px solid #EEF3F8;
}
.pp-articles-list li:last-child { border-bottom: none; }

.pp-article-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: opacity 0.15s;
}
.pp-article-link:hover { opacity: 0.8; }

.pp-article-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #EEF3F8;
}

.pp-article-text {
    flex: 1;
    min-width: 0;
}

.pp-article-text span {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-article-link:hover .pp-article-text span { color: #B2150D; }

.pp-article-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* ── Tools Card — icon + text, no badges ── */
.pp-tools-card {
    background: linear-gradient(135deg, #0f1923 0%, #1a2f4a 100%);
    border-color: #1a2f4a;
}

.pp-tools-card .pp-card-title {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.1);
}

.pp-tools-card .pp-title-accent {
    background: #B2150D !important;
}

.pp-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.pp-tool-link:last-child { border-bottom: none; }
.pp-tool-link:hover { color: #fff !important; }

.pp-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #B2150D;
    color: #fff;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
 * RESPONSIVE
 * ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .pp-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #player-profile {
        padding: 0 12px 40px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .pp-main,
    .pp-content-grid {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Hero — keep left/right split, taller for jersey + headshot */
    .pp-hero {
        min-height: 180px;
    }

    .pp-hero-left {
        min-width: 70px;
    }

    .pp-jersey {
        font-size: 48px;
    }

    .pp-headshot {
        width: 70px;
        height: 70px;
        left: calc(16.67% - 30px);
    }

    .pp-hero-right {
        padding: 12px 12px 12px 48px;
    }

    .pp-hero-right h1 {
        font-size: 22px;
    }

    .pp-hero-details {
        gap: 6px;
        font-size: 11px;
    }

    .pp-team-name {
        font-size: 12px;
    }

    /* Stats bar — 2x2 grid on mobile */
    .pp-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        gap: 0;
    }

    .pp-kpi {
        padding: 8px 4px;
    }

    .pp-kpi-value {
        font-size: 22px;
    }

    .pp-kpi-label {
        font-size: 9px;
    }

    .pp-kpi-tier {
        font-size: 9px;
        padding: 2px 6px;
    }

    .pp-kpi-divider {
        display: none;
    }

    /* Cards */
    .pp-card {
        padding: 16px 12px 20px;
        border-radius: 10px;
        overflow-x: auto;
    }

    .pp-card-title {
        font-size: 18px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        max-width: 100%;
    }

    .pp-title-accent {
        display: none !important;
    }

    /* Tables — scroll horizontally, don't clip bottom */
    .pp-table-scroll {
        overflow-x: auto;
        overflow-y: visible;
        margin: 0 -16px;
        padding: 0 16px 8px;
    }

    .pp-table {
        font-size: 14px;
        min-width: 0;
    }

    .pp-table th {
        padding: 8px 4px;
        font-size: 9px;
    }

    .pp-table td {
        padding: 10px 4px;
        font-size: 12px;
    }

    .pp-td-value {
        font-size: 18px;
    }

    .pp-pos-chip {
        font-size: 10px;
        padding: 1px 5px;
    }

    .pp-table-stats th,
    .pp-table-stats td {
        font-size: 12px;
        padding: 8px 5px;
    }

    /* Expert grid */
    .pp-expert-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .pp-expert-item {
        padding: 10px 8px;
    }

    .pp-expert-name {
        font-size: 10px;
    }

    .pp-expert-overall {
        font-size: 22px;
    }

    .pp-expert-pos {
        font-size: 9px;
    }

    .pp-spread-row {
        gap: 10px;
    }

    .pp-spread-anchor {
        min-width: 50px;
    }

    .pp-spread-anchor-value {
        font-size: 18px;
    }

    /* Trend chart */
    .pp-trend-y-axis {
        display: none;
    }

    .pp-trend-body {
        padding-left: 0;
    }

    .pp-trend-x-axis span {
        font-size: 8px;
    }

    /* Adjacent players */
    .pp-adj-card {
        padding: 8px;
    }

    .pp-adj-name {
        font-size: 13px;
    }

    .pp-adj-value > span:first-child {
        font-size: 18px;
    }

    /* CTA */
    .pp-cta-card {
        padding: 20px 16px;
    }

    .pp-cta-card h3 {
        font-size: 24px;
    }

    /* Tools card */
    .pp-tool-link {
        font-size: 13px;
        padding: 8px 0;
    }
}

@media (max-width: 400px) {
    .pp-hero-right h1 {
        font-size: 24px;
    }

    .pp-expert-grid {
        grid-template-columns: 1fr;
    }

    .pp-kpi-value {
        font-size: 20px;
    }
}
