/* =========================================================
   H2HFACTS PLAYER PAGE - NEW DESIGN
   File: public/css/players.css
   ========================================================= */

.player-x-shell {
    grid-template-columns: 300px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
    padding-top: 14px !important;
}

.player-x-main {
    grid-column: 2 !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 14px !important;
}

/* HERO */
.px-hero {
    min-height: 320px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr) 250px;
    align-items: stretch;
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 0%, rgba(83,255,80,.18), transparent 30%),
        radial-gradient(circle at 72% 15%, rgba(83,255,80,.10), transparent 34%),
        linear-gradient(135deg, rgba(4,24,10,.98), rgba(1,8,4,.98) 54%, rgba(0,0,0,.98));
    border: 1px solid rgba(83,255,80,.18);
    box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.px-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(83,255,80,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83,255,80,.025) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: .45;
    mask-image: linear-gradient(90deg, black, transparent 80%);
}

.px-hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    left: -110px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(83,255,80,.13);
    filter: blur(38px);
}

.px-photo-zone,
.px-identity,
.px-hero-metrics {
    position: relative;
    z-index: 2;
}

.px-photo-zone {
    display: grid;
    place-items: center;
    padding: 24px;
    border-right: 1px solid rgba(83,255,80,.10);
    background: rgba(0,0,0,.12);
}

.px-shirt-card {
    width: 190px;
    min-height: 238px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at center, rgba(83,255,80,.16), transparent 62%),
        rgba(255,255,255,.035);
    border: 1px solid rgba(83,255,80,.22);
    box-shadow: inset 0 0 40px rgba(83,255,80,.05), 0 24px 38px rgba(0,0,0,.24);
}

.px-player-photo {
    width: 134px;
    height: 134px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(83,255,80,.22);
}

.px-player-photo img,
.px-player-photo b {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    object-fit: cover;
    color: #55f041;
    font-size: 44px;
    font-weight: 1000;
}

.px-number {
    min-width: 92px;
    min-height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(83,255,80,.10);
    border: 1px solid rgba(83,255,80,.20);
}

.px-number span {
    color: rgba(230,255,232,.48);
    font-size: 10px;
    font-weight: 1000;
}

.px-number strong {
    margin-top: -4px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 1000;
}

.px-identity {
    min-width: 0;
    display: grid;
    align-content: center;
    padding: 34px;
}

.px-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.px-kicker span,
.px-kicker em {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(83,255,80,.10);
    border: 1px solid rgba(83,255,80,.20);
    color: #55f041;
    font-size: 10px;
    font-style: normal;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.px-kicker em {
    color: rgba(230,255,232,.78);
}

.px-identity h1 {
    margin: 0;
    max-width: 860px;
    color: #fff;
    font-size: clamp(42px, 5.5vw, 84px);
    line-height: .90;
    letter-spacing: -.07em;
    font-weight: 1000;
    overflow-wrap: anywhere;
}

.px-identity p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(230,255,232,.64);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 820;
}

.px-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.px-meta span {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.20);
    border: 1px solid rgba(255,255,255,.07);
    color: rgba(230,255,232,.76);
    font-size: 12px;
    font-weight: 900;
}

.px-meta img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.px-meta i {
    color: #55f041;
}

.px-form-strip {
    margin-top: 22px;
}

.px-form-strip small {
    display: block;
    margin-bottom: 8px;
    color: rgba(230,255,232,.48);
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.px-form-strip div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.px-form-strip i,
.px-form-strip em,
.px-match-result i {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 1000;
    background: rgba(255,255,255,.12);
}

.px-result-w { background: #18ca44 !important; }
.px-result-d { background: #c99d24 !important; }
.px-result-l { background: #e23a3a !important; }

.px-hero-metrics {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 22px;
    border-left: 1px solid rgba(83,255,80,.10);
    background: rgba(0,0,0,.12);
}

.px-radar-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(83,255,80,.08);
    border: 1px solid rgba(83,255,80,.16);
    text-align: center;
}

.px-radar-card span {
    color: rgba(230,255,232,.58);
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.px-ring {
    width: 102px;
    height: 102px;
    display: grid;
    place-items: center;
    margin: 12px auto;
    border-radius: 50%;
    background:
        conic-gradient(#ffd84a calc(var(--p) * 1%), rgba(255,255,255,.13) 0),
        rgba(0,0,0,.24);
}

.px-ring.green {
    background:
        conic-gradient(#55f041 calc(var(--p) * 1%), rgba(255,255,255,.13) 0),
        rgba(0,0,0,.24);
}

.px-ring strong {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: #041009;
    color: #fff;
    font-size: 25px;
    font-weight: 1000;
}

.px-radar-card small {
    color: rgba(230,255,232,.52);
    font-size: 11px;
    font-weight: 850;
}

/* STATS */
.px-stat-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.px-stat-card {
    min-height: 112px;
    display: grid;
    align-content: space-between;
    gap: 9px;
    padding: 15px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(83,255,80,.10), transparent 40%),
        linear-gradient(180deg, rgba(4,22,10,.96), rgba(1,9,5,.98));
    border: 1px solid rgba(83,255,80,.15);
    box-shadow: 0 16px 36px rgba(0,0,0,.18);
}

.px-stat-card span {
    color: rgba(230,255,232,.54);
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.px-stat-card strong {
    color: #fff;
    font-size: 38px;
    line-height: .92;
    font-weight: 1000;
    letter-spacing: -.055em;
}

.px-stat-card em {
    color: rgba(230,255,232,.55);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.px-stat-card.goal strong,
.px-stat-card.assist strong,
.px-stat-card.main strong {
    color: #55f041;
}

.px-stat-card.cards strong {
    color: #ffd84a;
}

/* PANELS */
.px-grid {
    display: grid;
    gap: 14px;
}

.px-grid-main {
    grid-template-columns: .95fr 1.05fr .95fr;
}

.px-grid-secondary {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.px-panel {
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(83,255,80,.08), transparent 36%),
        linear-gradient(180deg, rgba(4,22,10,.96), rgba(1,9,5,.98));
    border: 1px solid rgba(83,255,80,.15);
    box-shadow: 0 18px 44px rgba(0,0,0,.20);
}

.px-panel-head {
    margin-bottom: 15px;
}

.px-panel-head span {
    color: #55f041;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.px-panel-head h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -.03em;
}

/* INFO */
.px-info-list {
    display: grid;
    gap: 9px;
}

.px-info-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    min-height: 38px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 13px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.055);
}

.px-info-list span {
    color: rgba(230,255,232,.48);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.px-info-list strong {
    min-width: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PULSE */
.px-pulse-list {
    display: grid;
    gap: 14px;
}

.px-pulse-list > div {
    display: grid;
    gap: 8px;
}

.px-pulse-list > div > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.px-pulse-list span {
    color: rgba(230,255,232,.70);
    font-size: 13px;
    font-weight: 900;
}

.px-pulse-list strong {
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
}

.px-pulse-list i {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}

.px-pulse-list i::before {
    content: "";
    width: var(--w, 0%);
    min-width: 4px;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #55f041, #13bd2d);
    box-shadow: 0 0 14px rgba(83,255,80,.35);
}

.px-pulse-list i.warning::before {
    background: linear-gradient(90deg, #ffd84a, #d79016);
}

/* CAREER */
.px-timeline {
    position: relative;
    display: grid;
    gap: 10px;
}

.px-timeline-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.px-timeline-row time {
    color: #55f041;
    font-size: 12px;
    font-weight: 1000;
}

.px-timeline-row > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 13px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.055);
}

.px-timeline-row img,
.px-timeline-row b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    object-fit: contain;
    background: rgba(83,255,80,.08);
    color: #55f041;
    font-weight: 1000;
}

.px-timeline-row strong,
.px-timeline-row span {
    grid-column: 2;
    min-width: 0;
}

.px-timeline-row strong {
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-timeline-row span {
    color: rgba(230,255,232,.48);
    font-size: 10px;
    font-weight: 850;
}

/* COMPETITIONS */
.px-competition-list {
    display: grid;
    gap: 10px;
}

.px-comp-row {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.055);
}

.px-comp-name {
    min-width: 0;
}

.px-comp-name span {
    color: #55f041;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
}

.px-comp-name strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 1000;
}

.px-comp-name em {
    display: block;
    margin-top: 5px;
    color: rgba(230,255,232,.48);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.px-comp-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.px-comp-stats div {
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(83,255,80,.07);
    border: 1px solid rgba(83,255,80,.12);
}

.px-comp-stats strong {
    color: #fff;
    font-size: 17px;
    line-height: 1;
    font-weight: 1000;
}

.px-comp-stats span {
    color: rgba(230,255,232,.50);
    font-size: 9px;
    font-weight: 1000;
    text-transform: uppercase;
}

/* BEST */
.px-best-inner {
    min-height: 280px;
    display: grid;
    align-content: center;
    text-align: center;
}

.px-best-inner > span {
    color: #55f041;
    font-size: 12px;
    font-weight: 1000;
}

.px-best-inner > strong {
    margin: 12px 0;
    color: #fff;
    font-size: 72px;
    line-height: .85;
    font-weight: 1000;
    letter-spacing: -.07em;
}

.px-best-inner > em {
    color: rgba(230,255,232,.56);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.px-best-inner div {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.px-best-inner p {
    margin: 4px 0;
    color: rgba(230,255,232,.74);
    font-size: 12px;
    font-weight: 900;
}

/* MATCH LOG */
.px-match-log {
    display: grid;
    gap: 8px;
}

.px-match-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 64px minmax(270px, .8fr);
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 15px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.055);
    color: inherit;
    text-decoration: none;
    transition: .18s ease;
}

.px-match-row:hover {
    transform: translateX(3px);
    border-color: rgba(83,255,80,.28);
}

.px-match-date strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
}

.px-match-date span {
    display: block;
    margin-top: 4px;
    color: rgba(230,255,232,.48);
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-match-teams {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.px-match-teams div {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.px-match-teams div:last-child {
    justify-content: flex-end;
}

.px-match-teams img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.px-match-teams strong {
    min-width: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-match-teams em {
    color: #55f041;
    font-size: 18px;
    font-style: normal;
    font-weight: 1000;
    text-align: center;
}

.px-match-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.px-match-result span {
    color: rgba(230,255,232,.56);
    font-size: 11px;
    font-weight: 1000;
}

.px-match-numbers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.px-match-numbers span,
.px-match-numbers strong {
    min-height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(83,255,80,.07);
    border: 1px solid rgba(83,255,80,.10);
    color: rgba(230,255,232,.76);
    font-size: 11px;
    font-weight: 1000;
}

.px-match-numbers strong {
    color: #55f041;
}

.px-empty {
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    color: rgba(230,255,232,.58);
    font-size: 13px;
    font-weight: 900;
}

/* MOBILE */
@media (max-width: 1550px) {
    .player-x-shell {
        grid-template-columns: 280px minmax(0, 1fr) !important;
    }

    .px-stat-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .px-grid-main,
    .px-grid-secondary {
        grid-template-columns: 1fr;
    }

    .px-match-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .px-match-result,
    .px-match-numbers {
        grid-column: 2;
    }
}

@media (max-width: 1180px) {
    .player-x-shell {
        grid-template-columns: 250px minmax(0, 1fr) !important;
    }

    .px-hero {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .px-hero-metrics {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-left: 0;
        border-top: 1px solid rgba(83,255,80,.10);
    }

    .px-photo-zone {
        padding: 18px;
    }

    .px-shirt-card {
        width: 150px;
        min-height: 200px;
    }

    .px-player-photo {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 900px) {
    .player-x-shell {
        display: block !important;
        padding: 10px !important;
    }

    .player-x-main {
        grid-column: auto !important;
        gap: 10px !important;
    }

    .px-hero {
        grid-template-columns: 1fr !important;
        border-radius: 18px;
    }

    .px-photo-zone {
        border-right: 0;
        border-bottom: 1px solid rgba(83,255,80,.10);
    }

    .px-shirt-card {
        width: 100%;
        min-height: auto;
        grid-template-columns: 96px minmax(0, 1fr);
        justify-items: start;
        align-items: center;
        padding: 14px;
    }

    .px-player-photo {
        width: 86px;
        height: 86px;
        border-radius: 18px;
    }

    .px-number {
        justify-self: stretch;
    }

    .px-identity {
        padding: 18px;
    }

    .px-identity h1 {
        font-size: 34px;
    }

    .px-identity p {
        font-size: 12px;
    }

    .px-hero-metrics {
        grid-template-columns: 1fr 1fr;
        padding: 14px;
    }

    .px-ring {
        width: 82px;
        height: 82px;
    }

    .px-ring strong {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .px-stat-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .px-stat-card {
        min-height: 92px;
        padding: 12px;
    }

    .px-stat-card strong {
        font-size: 30px;
    }

    .px-info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .px-comp-row {
        grid-template-columns: 1fr;
    }

    .px-comp-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .px-match-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .px-match-result,
    .px-match-numbers {
        grid-column: auto;
    }

    .px-match-teams {
        grid-template-columns: 1fr;
    }

    .px-match-teams em {
        text-align: left;
    }

    .px-match-teams div:last-child {
        justify-content: flex-start;
    }

    .px-match-numbers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .px-stat-board {
        grid-template-columns: 1fr 1fr;
    }

    .px-hero-metrics {
        grid-template-columns: 1fr;
    }

    .px-meta span {
        width: 100%;
    }

    .px-comp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* =========================================================
   PLAYER PAGE COMPACT SIZE FIX
   smaller photo + names/titles max around 20px
   ========================================================= */

.player-x-main {
    gap: 10px !important;
}

.px-hero {
    min-height: 210px !important;
    grid-template-columns: 150px minmax(0, 1fr) 160px !important;
    border-radius: 16px !important;
}

.px-photo-zone {
    padding: 14px !important;
}

.px-shirt-card {
    width: 118px !important;
    min-height: 155px !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 18px !important;
}

.px-player-photo {
    width: 82px !important;
    height: 82px !important;
    border-radius: 16px !important;
}

.px-player-photo img,
.px-player-photo b {
    font-size: 26px !important;
}

.px-number {
    min-width: 66px !important;
    min-height: 36px !important;
    border-radius: 12px !important;
}

.px-number span {
    font-size: 8px !important;
}

.px-number strong {
    font-size: 20px !important;
}

.px-identity {
    padding: 20px 22px !important;
}

.px-kicker {
    margin-bottom: 8px !important;
}

.px-kicker span,
.px-kicker em {
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
}

.px-identity h1 {
    font-size: 32px !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
}

.px-identity p {
    max-width: 640px !important;
    margin-top: 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.px-meta {
    gap: 7px !important;
    margin-top: 14px !important;
}

.px-meta span {
    min-height: 28px !important;
    padding: 0 9px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
}

.px-meta img {
    width: 17px !important;
    height: 17px !important;
}

.px-form-strip {
    margin-top: 13px !important;
}

.px-form-strip small {
    margin-bottom: 6px !important;
    font-size: 9px !important;
}

.px-form-strip i,
.px-form-strip em,
.px-match-result i {
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
}

.px-hero-metrics {
    gap: 10px !important;
    padding: 14px !important;
}

.px-radar-card {
    padding: 10px !important;
    border-radius: 15px !important;
}

.px-radar-card span {
    font-size: 9px !important;
}

.px-ring {
    width: 74px !important;
    height: 74px !important;
    margin: 8px auto !important;
}

.px-ring strong {
    width: 54px !important;
    height: 54px !important;
    font-size: 19px !important;
}

.px-radar-card small {
    font-size: 9px !important;
}

/* KPI cards smaller */
.px-stat-board {
    gap: 8px !important;
}

.px-stat-card {
    min-height: 82px !important;
    padding: 11px !important;
    border-radius: 14px !important;
}

.px-stat-card span {
    font-size: 9px !important;
}

.px-stat-card strong {
    font-size: 26px !important;
}

.px-stat-card em {
    font-size: 10px !important;
}

/* Panel titles max around 20px */
.px-panel {
    padding: 13px !important;
    border-radius: 15px !important;
}

.px-panel-head {
    margin-bottom: 10px !important;
}

.px-panel-head span {
    font-size: 9px !important;
}

.px-panel-head h2 {
    font-size: 20px !important;
    line-height: 1.05 !important;
}

/* text/name sizes smaller */
.px-info-list div {
    min-height: 32px !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    padding: 7px 9px !important;
    border-radius: 11px !important;
}

.px-info-list span {
    font-size: 9px !important;
}

.px-info-list strong {
    font-size: 12px !important;
}

.px-pulse-list {
    gap: 10px !important;
}

.px-pulse-list span {
    font-size: 12px !important;
}

.px-pulse-list strong {
    font-size: 13px !important;
}

.px-timeline-row {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 9px !important;
}

.px-timeline-row > div {
    padding: 7px !important;
}

.px-timeline-row strong {
    font-size: 11px !important;
}

.px-comp-row {
    padding: 10px !important;
    border-radius: 13px !important;
}

.px-comp-name strong {
    font-size: 13px !important;
}

.px-comp-stats div {
    min-height: 46px !important;
    border-radius: 10px !important;
}

.px-comp-stats strong {
    font-size: 14px !important;
}

.px-comp-stats span {
    font-size: 8px !important;
}

.px-best-inner {
    min-height: 220px !important;
}

.px-best-inner > strong {
    font-size: 48px !important;
}

.px-match-row {
    min-height: 54px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
}

.px-match-date strong,
.px-match-teams strong {
    font-size: 11px !important;
}

.px-match-date span {
    font-size: 9px !important;
}

.px-match-teams img {
    width: 20px !important;
    height: 20px !important;
}

.px-match-teams em {
    font-size: 15px !important;
}

.px-match-numbers span,
.px-match-numbers strong {
    min-height: 26px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
}

/* Mobile compact */
@media (max-width: 900px) {
    .px-hero {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
    }

    .px-shirt-card {
        width: 100% !important;
        min-height: auto !important;
        grid-template-columns: 70px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .px-player-photo {
        width: 64px !important;
        height: 64px !important;
        border-radius: 14px !important;
    }

    .px-number {
        justify-self: start !important;
        min-width: 58px !important;
        min-height: 32px !important;
    }

    .px-number strong {
        font-size: 18px !important;
    }

    .px-identity {
        padding: 14px !important;
    }

    .px-identity h1 {
        font-size: 24px !important;
        max-width: 100% !important;
    }

    .px-identity p {
        font-size: 11px !important;
    }

    .px-hero-metrics {
        grid-template-columns: 1fr 1fr !important;
        padding: 10px !important;
    }

    .px-ring {
        width: 62px !important;
        height: 62px !important;
    }

    .px-ring strong {
        width: 46px !important;
        height: 46px !important;
        font-size: 16px !important;
    }

    .px-stat-board {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .px-stat-card {
        min-height: 76px !important;
    }

    .px-stat-card strong {
        font-size: 24px !important;
    }

    .px-panel-head h2 {
        font-size: 18px !important;
    }
}

@media (max-width: 520px) {
    .px-identity h1 {
        font-size: 22px !important;
    }

    .px-meta span {
        width: auto !important;
        max-width: 100% !important;
    }
}