/* =============================================================
   PLAYER PROFILE – style podstrony zawodnika
   Namespace: .pp (BEM)
   Wyekstrahowane z prototypu zawodnik-luczek-jacek.html
   ============================================================= */

/* =============================================================
   TOKENS – zmienne kolorów wyłącznie dla tej podstrony
   Gold = dokładnie odcień z głównej strony (#AE802F → #FFEFA7)
   ============================================================= */
.pp {
    --pp-navy: #1a2332;
    --pp-navy-deep: #0a1421;
    --pp-navy-mid: #11192a;
    --pp-blue: #1E3A8A;
    --pp-gold: #AE802F;
    --pp-gold-light: #FFEFA7;
    --pp-gold-dark: #AE802F;
    --pp-bg-light: #f5f7fa;
    --pp-border: #e5e7eb;
    --pp-text: #1a2332;
    --pp-text-muted: #6b7280;
    --pp-text-faint: #9ca3af;
    --pp-success: #10b981;
    --pp-warn: #f59e0b;
    --pp-danger: #ef4444;
    --pp-shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
    --pp-shadow-md: 0 8px 28px rgba(16, 24, 40, 0.10);
    --pp-shadow-lg: 0 18px 46px rgba(16, 24, 40, 0.18);

    font-family: 'Montserrat', 'Arial', sans-serif;
    color: var(--pp-text);
    -webkit-font-smoothing: antialiased;
}

/* Złoty gradient tekst — identyczny z .gold-sweep w style.css */
.pp .pp-gold-text,
.pp .pp-hero__name .last,
.pp .pp-section-title .pp-accent {
    background: linear-gradient(
        110deg,
        #AE802F 0%,
        #FFEFA7 15%,
        #AE802F 30%,
        #AE802F 42%,
        #fffdf0 48%,
        #fff 50%,
        #fffdf0 52%,
        #AE802F 58%,
        #AE802F 70%,
        #FFEFA7 85%,
        #AE802F 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldSweep 10s ease-in-out infinite;
}

/* Kontener sekcji */
.pp-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nagłówek sekcji */
.pp-section-head {
    margin-bottom: 40px;
}
.pp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--pp-gold);
    padding: 6px 12px;
    border: 1px solid var(--pp-gold);
    border-radius: 999px;
    background: rgba(174, 128, 47, 0.08);
    margin-bottom: 14px;
}
.pp-section-title {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.1;
}

/* =============================================================
   HERO – profil zawodnika (białe tło)
   ============================================================= */
.pp-hero {
    background: #ffffff;
    padding: 50px 0 0;
    position: relative;
    overflow: hidden;
}
.pp-hero__bg-image {
    position: absolute;
    top: 0;
    right: -8%;
    width: 58%;
    height: 100%;
    background-position: center center;
    background-size: auto 90%;
    background-repeat: no-repeat;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 55%, transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 55%, transparent 88%);
    pointer-events: none;
    z-index: 1;
    filter: grayscale(30%);
}

.pp-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    min-height: 500px;
}

.pp-hero__left {
    position: relative;
    padding: 20px 0 40px;
}
.pp-hero__jersey-bg {
    position: absolute;
    top: -30px;
    left: -40px;
    font-size: clamp(220px, 30vw, 420px);
    font-weight: 900;
    line-height: 0.8;
    color: #f0f2f5;
    letter-spacing: -0.08em;
    user-select: none;
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
}
.pp-hero__content {
    position: relative;
    z-index: 3;
}
.pp-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #AE802F, #FFEFA7);
    color: #1a1206;
    border-radius: 3px;
    margin-bottom: 22px;
    box-shadow: 0 2px 14px rgba(174, 128, 47, 0.25);
}
.pp-hero__tag i {
    font-size: 10px;
}
.pp-hero__name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(42px, 7vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    margin: 0 0 6px;
}
.pp-hero__name .first {
    display: block;
    font-weight: 300;
    color: var(--pp-navy);
}
.pp-hero__name .last {
    display: block;
    font-weight: 900;
}
.pp-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 30px;
}
.pp-hero__fact {
    min-width: 110px;
    padding: 12px 16px;
    border: 1px solid var(--pp-border);
    border-left: 3px solid var(--pp-gold);
    border-radius: 4px;
    background: var(--pp-bg-light);
}
.pp-hero__fact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--pp-text-muted);
    margin-bottom: 4px;
}
.pp-hero__fact-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--pp-navy);
}
.pp-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: transparent;
    color: var(--pp-navy);
    border: 2px solid var(--pp-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 180ms ease-out;
    min-height: 48px;
}
.pp-hero__cta:hover,
.pp-hero__cta:focus-visible {
    background: linear-gradient(135deg, #AE802F, #FFEFA7);
    color: #1a1206;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(174, 128, 47, 0.3);
    outline: none;
}
.pp-hero__cta i {
    transition: transform 220ms ease-out;
}
.pp-hero__cta:hover i {
    transform: translateY(3px);
}

/* Zdjęcie */
.pp-hero__right {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 480px;
}
.pp-hero__photo-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.pp-hero__photo {
    position: relative;
    z-index: 2;
    max-height: 540px;
    height: auto;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.12));
}

/* =============================================================
   GOLD BAR – pasek tożsamości
   ============================================================= */
.pp-identity-bar {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg,
        var(--pp-gold-dark) 0%,
        var(--pp-gold-light) 20%,
        var(--pp-gold) 50%,
        var(--pp-gold-light) 80%,
        var(--pp-gold-dark) 100%);
    background-size: 200% 100%;
    animation: pp-gold-sweep 8s linear infinite;
    box-shadow: 0 0 18px rgba(174, 128, 47, 0.45);
}
@keyframes pp-gold-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pp-identity-bar { animation: none; }
    .pp .pp-gold-text,
    .pp .pp-hero__name .last,
    .pp .pp-section-title .pp-accent { animation: none; }
}

/* =============================================================
   PLAYER SWITCHER – nawigator między profilami zawodników
   ============================================================= */
.pp-switcher {
    background: linear-gradient(135deg, var(--pp-navy-deep) 0%, var(--pp-navy) 55%, var(--pp-navy-mid) 100%);
    border-bottom: 1px solid rgba(174, 128, 47, 0.25);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}
.pp-switcher::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(174, 128, 47, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(174, 128, 47, 0.10) 0%, transparent 45%);
    pointer-events: none;
}
.pp-switcher__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.pp-switcher__intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.pp-switcher__kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--pp-gold-light);
    opacity: 0.85;
}
.pp-switcher__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.3px;
}
.pp-switcher__label i {
    color: var(--pp-gold-light);
    font-size: 16px;
}
.pp-switcher__control {
    position: relative;
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 100%;
}
.pp-switcher__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 46px 12px 18px;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--pp-navy);
    background: #fff;
    border: 1.5px solid rgba(174, 128, 47, 0.55);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}
.pp-switcher__select:hover {
    border-color: var(--pp-gold);
    box-shadow: 0 6px 18px rgba(174, 128, 47, 0.35), inset 0 0 0 1px rgba(255, 239, 167, 0.6);
    transform: translateY(-1px);
}
.pp-switcher__select:focus-visible {
    outline: none;
    border-color: var(--pp-gold-light);
    box-shadow: 0 0 0 3px rgba(255, 239, 167, 0.35), 0 6px 18px rgba(174, 128, 47, 0.35);
}
.pp-switcher__select option {
    color: var(--pp-navy);
    font-weight: 500;
    padding: 6px 0;
}
.pp-switcher__select optgroup {
    color: var(--pp-gold);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pp-switcher__chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pp-gold);
    font-size: 12px;
    pointer-events: none;
    transition: transform 180ms ease-out;
}
.pp-switcher__control:hover .pp-switcher__chevron {
    transform: translateY(-50%) translateY(-1px);
}

@media (max-width: 768px) {
    .pp-switcher__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .pp-switcher__intro {
        align-items: center;
        text-align: center;
    }
    .pp-switcher__control {
        min-width: 0;
        width: 100%;
    }
}

/* =============================================================
   PLAYER INFO BAR – dane zawodnika (kompaktowy pasek)
   ============================================================= */
.pp-info {
    background: var(--pp-bg-light);
    padding: 36px 0;
    border-bottom: 1px solid var(--pp-border);
}
.pp-info__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    text-align: center;
}
.pp-info__item {
    padding: 0 8px;
}
.pp-info__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--pp-text-muted);
    margin-bottom: 6px;
}
.pp-info__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--pp-navy);
}
.pp-info__value--muted {
    color: var(--pp-text-faint);
    font-weight: 500;
}
.pp-info__nationality {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pp-flag {
    font-size: 20px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* =============================================================
   STATS GRID – statystyki sezonu
   ============================================================= */
.pp-stats {
    background: #ffffff;
    padding: 90px 0;
}
.pp-stats__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.pp-stat-card {
    position: relative;
    background: var(--pp-bg-light);
    padding: 28px 22px 26px;
    border-left: 4px solid var(--pp-gold);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-left-width 220ms ease;
    min-height: 152px;
}
.pp-stat-card:hover,
.pp-stat-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--pp-shadow-md);
    border-left-width: 6px;
}
.pp-stat-card__icon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 58px;
    color: var(--pp-navy);
    opacity: 0.08;
    pointer-events: none;
}
.pp-stat-card__value {
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    color: var(--pp-navy);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.pp-stat-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--pp-text-muted);
}
.pp-stat-card--warn { border-left-color: var(--pp-warn); }
.pp-stat-card--warn .pp-stat-card__icon { color: var(--pp-warn); opacity: 0.18; }
.pp-stat-card--danger { border-left-color: var(--pp-danger); }
.pp-stat-card--danger .pp-stat-card__icon { color: var(--pp-danger); opacity: 0.18; }

/* =============================================================
   WYKRESY
   ============================================================= */
.pp-charts {
    background: var(--pp-bg-light);
    padding: 90px 0;
}
.pp-charts__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
}
.pp-chart {
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
}
.pp-chart__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--pp-navy);
}
.pp-chart__sub {
    font-size: 12px;
    color: var(--pp-text-muted);
    margin: 0 0 18px;
    letter-spacing: 0.3px;
}
.pp-ovr {
    --pp-ovr-accent: #AE802F;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin: 0 0 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04), rgba(174, 128, 47, 0.06));
    border: 1px solid var(--pp-border);
    border-left: 3px solid var(--pp-ovr-accent);
}
.pp-ovr__badge {
    flex: 0 0 auto;
    min-width: 44px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--pp-ovr-accent);
    color: #fff;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.pp-ovr__value {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.pp-ovr__max {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
}
.pp-ovr__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    flex: 1;
}
.pp-ovr__label {
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--pp-text-muted);
    font-weight: 700;
}
.pp-ovr__tier {
    font-size: 13px;
    font-weight: 800;
    color: var(--pp-navy);
}
.pp-ovr__diff {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}
.pp-ovr__diff small {
    font-weight: 500;
    color: var(--pp-text-muted);
    margin-left: 3px;
}
.pp-ovr__diff.is-pos { color: #10b981; }
.pp-ovr__diff.is-neg { color: #ef4444; }

/* FIFA-style tiers: gold / silver / bronze */
.pp-ovr--gold { --pp-ovr-accent: #AE802F; }
.pp-ovr--gold .pp-ovr__badge {
    background: linear-gradient(
        110deg,
        #AE802F 0%,
        #FFEFA7 15%,
        #AE802F 30%,
        #AE802F 42%,
        #fffdf0 48%,
        #fff 50%,
        #fffdf0 52%,
        #AE802F 58%,
        #AE802F 70%,
        #FFEFA7 85%,
        #AE802F 100%
    );
    background-size: 300% 100%;
    animation: goldSweep 10s ease-in-out infinite;
    color: #3a2b05;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
@media (prefers-reduced-motion: reduce) {
    .pp-ovr--gold .pp-ovr__badge { animation: none; }
}

.pp-ovr--silver { --pp-ovr-accent: #8A94A6; }
.pp-ovr--silver .pp-ovr__badge {
    background: linear-gradient(135deg, #ECEEF3 0%, #B4BCCA 55%, #7A8292 100%);
    color: #1a2332;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pp-ovr--bronze { --pp-ovr-accent: #8B5A2B; }
.pp-ovr--bronze .pp-ovr__badge {
    background: linear-gradient(135deg, #CE9463 0%, #9C6332 55%, #5F3A19 100%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
    .pp-ovr__diff { margin-left: 0; width: 100%; }
    .pp-ovr__diff small { display: block; margin-left: 0; }
}

.pp-chart__svg-wrap {
    width: 100%;
    overflow: visible;
}
.pp-chart__svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.pp-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    color: var(--pp-text-muted);
}
.pp-chart__legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: -1px;
}
.pp-chart__tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--pp-navy);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: var(--pp-shadow-md);
    transform: translate(-50%, -110%);
    opacity: 0;
    transition: opacity 120ms ease;
    white-space: nowrap;
    z-index: 10;
}
.pp-chart__tooltip.is-visible { opacity: 1; }
.pp-chart__tooltip strong { color: var(--pp-gold-light); }
.pp-chart-wrap { position: relative; }

/* =============================================================
   TABELA MECZÓW
   ============================================================= */
.pp-matches {
    background: #fff;
    padding: 90px 0;
}
.pp-matches__wrap {
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--pp-shadow-sm);
}
.pp-matches__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pp-matches__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
    font-variant-numeric: tabular-nums;
}
.pp-matches__table thead th {
    background: var(--pp-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 14px 12px;
    text-align: left;
}
.pp-matches__table thead th.num { text-align: center; }
.pp-matches__table tbody tr {
    border-top: 1px solid var(--pp-border);
    transition: background 150ms ease;
}
.pp-matches__table tbody tr:nth-child(even) { background: #fafbfc; }
.pp-matches__table tbody tr:hover { background: #f1f5fb; }
.pp-matches__table td {
    padding: 14px 12px;
    font-size: 14px;
    color: var(--pp-text);
    vertical-align: middle;
}
.pp-matches__table td.num { text-align: center; }
.pp-matches__date { font-weight: 700; color: var(--pp-navy); white-space: nowrap; }
.pp-date-short { display: none; }
.pp-matches__opp { font-weight: 600; }
.pp-matches__opp-name { text-transform: uppercase; }
.pp-matches__opp small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--pp-text-muted);
}
.pp-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
}
.pp-result--w { background: rgba(16, 185, 129, 0.14); color: #047857; }
.pp-result--l { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.pp-result--d { background: rgba(107, 114, 128, 0.14); color: #374151; }
.pp-venue {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    background: var(--pp-bg-light);
    color: var(--pp-text-muted);
}
.pp-venue.h { background: rgba(30, 58, 138, 0.1); color: var(--pp-blue); }
.pp-card-yellow,
.pp-card-red {
    display: inline-block;
    width: 11px;
    height: 15px;
    border-radius: 1.5px;
    margin-right: 3px;
    vertical-align: -2px;
}
.pp-card-yellow { background: #f1c40f; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15); }
.pp-card-red { background: #e74c3c; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15); }
.pp-rating {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    min-width: 42px;
    text-align: center;
}
.pp-rating--hi { background: var(--pp-success); }
.pp-rating--mid { background: var(--pp-warn); }
.pp-rating--lo { background: var(--pp-danger); }
.pp-matches__table td .muted { color: var(--pp-text-faint); }

.pp-matches__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--pp-bg-light);
    border-top: 1px solid var(--pp-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-navy);
}
.pp-matches__summary strong { color: var(--pp-gold); }

/* =============================================================
   CTA bottom
   ============================================================= */
.pp-cta-bottom {
    background: linear-gradient(135deg, var(--pp-navy) 0%, var(--pp-navy-deep) 100%);
    padding: 70px 0;
    text-align: center;
    color: #fff;
}
.pp-cta-bottom__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin: 0 0 26px;
    color: #fff;
}
.pp-cta-bottom__buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    min-height: 48px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    border: 0;
}
.pp-btn--primary {
    background: linear-gradient(135deg, var(--pp-gold-dark), var(--pp-gold-light));
    color: #1a1206;
    box-shadow: 0 6px 22px rgba(174, 128, 47, 0.35);
}
.pp-btn--primary:hover,
.pp-btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(174, 128, 47, 0.5);
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.pp-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(174, 128, 47, 0.75);
}
.pp-btn--ghost:hover,
.pp-btn--ghost:focus-visible {
    background: rgba(174, 128, 47, 0.12);
    border-color: var(--pp-gold);
    transform: translateY(-2px);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* =============================================================
   NOTA O DANYCH
   ============================================================= */
.pp-data-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--pp-text-faint);
    text-align: center;
}

/* =============================================================
   ŚREDNIA OCENA – karta z wyróżnieniem
   ============================================================= */
.pp-stat-card--rating {
    border-left-color: var(--pp-gold);
    background: linear-gradient(135deg, rgba(174,128,47,0.06) 0%, var(--pp-bg-light) 100%);
}
.pp-stat-card--rating .pp-stat-card__icon {
    color: var(--pp-gold);
    opacity: 0.18;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .pp-stats__grid { grid-template-columns: repeat(3, 1fr); }
    .pp-charts__grid { grid-template-columns: 1fr; }
    .pp-info__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .pp-hero { padding: 30px 0 0; }
    .pp-hero__bg-image {
        left: -37%;
        right: auto;
        width: 200%;
        opacity: 0.15;
    }
    .pp-hero__grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }
    .pp-hero__left { padding: 0 0 30px; order: 2; }
    .pp-hero__right { order: 1; min-height: auto; justify-content: center; }
    .pp-hero__photo { max-height: 380px; }
    .pp-hero__jersey-bg {
        font-size: 260px;
        top: 0;
        left: -20px;
        opacity: 0.6;
    }
    .pp-hero__facts { gap: 10px; }
    .pp-hero__fact { min-width: 100px; padding: 10px 14px; }
    .pp-info__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .pp-stats { padding: 64px 0; }
    .pp-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pp-stat-card { padding: 22px 18px; min-height: 130px; }
    .pp-stat-card__value { font-size: 44px; }
    .pp-stat-card__icon { font-size: 44px; }
    .pp-charts, .pp-matches { padding: 64px 0; }
    .pp-section-head { margin-bottom: 28px; }

    /* Kompaktowa tabela meczów na mobile */
    .pp-matches__table { min-width: 560px; }
    .pp-matches__table thead th {
        padding: 9px 6px;
        font-size: 10px;
        letter-spacing: 0.6px;
    }
    .pp-matches__table td {
        padding: 9px 6px;
        font-size: 12px;
    }
    .pp-matches__table thead th:first-child,
    .pp-matches__table tbody td:first-child { padding-left: 12px; }
    .pp-matches__table thead th:last-child,
    .pp-matches__table tbody td:last-child { padding-right: 12px; }
    .pp-matches__opp small { font-size: 10px; }
    .pp-result {
        padding: 3px 6px;
        font-size: 11px;
        gap: 3px;
        letter-spacing: 0.2px;
    }
    .pp-venue {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
    }
    .pp-rating {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 34px;
    }
    .pp-card-yellow,
    .pp-card-red {
        width: 9px;
        height: 13px;
        margin-right: 2px;
    }

    /* Skrócona data (DD.MM) zamiast pełnej (DD.MM.YYYY) */
    .pp-date-full { display: none; }
    .pp-date-short { display: inline; }

    /* Sticky kolumna "Rywal" (2.) — pozostaje widoczna; przy scrollu w prawo
       zasłania kolumnę "Data", która wyjeżdża poza widok. Po scrollu kolumna
       kurczy się (~do połowy), zyskując miejsce dla pozostałych kolumn. */
    .pp-matches__table thead th:nth-child(2),
    .pp-matches__table tbody td:nth-child(2) {
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 2;
        width: 170px;
        min-width: 170px;
        max-width: 170px;
        transition: width 220ms ease, min-width 220ms ease, max-width 220ms ease;
    }
    .pp-matches__table tbody tr:nth-child(even) td:nth-child(2) { background: #fafbfc; }
    .pp-matches__table tbody tr:hover td:nth-child(2) { background: #f1f5fb; }
    .pp-matches__table thead th:nth-child(2) { background: var(--pp-navy); }

    .pp-matches__opp-name,
    .pp-matches__opp small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Stan "stuck": użytkownik przescrollował w prawo — kurczymy kolumnę Rywal */
    .pp-matches__scroll.is-scrolled .pp-matches__table thead th:nth-child(2),
    .pp-matches__scroll.is-scrolled .pp-matches__table tbody td:nth-child(2) {
        width: 95px;
        min-width: 95px;
        max-width: 95px;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 480px) {
    .pp-container { padding: 0 16px; }
    .pp-hero__facts { gap: 8px; }
    .pp-hero__fact { flex: 1 0 40%; min-width: 0; }
    .pp-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .pp-info__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nadpisanie globalnego a:not(.btn):hover z style.css
   który ustawia -webkit-text-fill-color: transparent na wszystkich linkach */
.pp a:hover {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

/* Focus states – accessibility */
.pp a:focus-visible,
.pp button:focus-visible {
    outline: 2px solid var(--pp-gold);
    outline-offset: 3px;
    border-radius: 2px;
}
