/* Player page (/career/players/{id}): photo between OVR and POT, value/wage strip, key facts,
   tabs (Overview, Positions, Contract, IRL), card stats and attribute groups. */
.pp-page { max-width: 1120px; margin: 0 auto; padding: 14px 18px 48px; font-variant-numeric: tabular-nums; }
.pp-page h1, .pp-page h2, .pp-page h3 { letter-spacing: -.02em; }

/* Colour steps for ratings (text). */
.pp-tone-5 { color: #82eca8; } .pp-tone-4 { color: #b6e46a; } .pp-tone-3 { color: #f2c35b; }
.pp-tone-2 { color: #f09a5b; } .pp-tone-1 { color: #ef6f6f; } .pp-tone-none { color: #8fa0b4; }
.pp-up { color: #82eca8; } .pp-down { color: #ef6f6f; }

.pp-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8rem; }
.pp-back { display: inline-flex; gap: 6px; color: #b7c5d6; text-decoration: none; }
.pp-back:hover { color: #fff; }
.pp-squad { display: inline-flex; align-items: center; gap: 7px; color: #c8d5e4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-squad i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #3d8ff0; }

/* Hero. */
.pp-hero { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto; align-items: end; max-width: 760px; margin: 6px auto 0; text-align: center; }
.pp-rating { grid-row: 1; display: grid; gap: 2px; align-self: center; padding-top: 30px; }
.pp-rating--left { grid-column: 1; justify-self: start; text-align: left; }
.pp-rating--right { grid-column: 3; justify-self: end; text-align: right; }
.pp-rating > span { color: #b7c5d6; font-size: .86rem; }
.pp-rating strong { position: relative; font-size: clamp(2.6rem, 11vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.pp-rating sup { position: absolute; top: .15em; margin-left: 4px; font-size: .3em; font-weight: 800; letter-spacing: 0; }
.pp-photo { grid-column: 2; grid-row: 1; position: relative; width: clamp(150px, 42vw, 220px); aspect-ratio: 11 / 12; margin: 0 auto; }
.pp-photo::before { content: ""; position: absolute; inset: 18% 8% 0; border-radius: 50%; background: radial-gradient(circle, #2a6fd033, transparent 70%); filter: blur(6px); }
.pp-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: bottom; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.pp-hero h1 { grid-column: 1 / -1; grid-row: 2; margin: 2px 0 0; font-size: clamp(1.75rem, 7vw, 2.3rem); line-height: 1.05; font-weight: 500; color: #c9d6e5; }
.pp-hero h1 strong { color: #fff; font-weight: 800; }
.pp-meta { grid-column: 1 / -1; grid-row: 3; position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; }
.pp-meta__badges { display: inline-flex; align-items: center; gap: 12px; }
.pp-meta__badges a { display: inline-flex; }
.pp-meta .nation-flag { width: 24px !important; height: 18px !important; object-fit: contain; border-radius: 2px; }
.pp-pos { display: inline-grid !important; place-items: center; min-width: 34px; height: 26px; padding: 0 7px; border: 1px solid #3d8ff066; border-radius: 6px; background: #12345a; color: #d7e9ff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.pp-actions { position: absolute; right: 0; display: inline-flex; gap: 8px; }
.pp-actions form { margin: 0; }
.pp-icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff2a; border-radius: 10px; background: #0f1720; color: #e6eef8; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.pp-icon-button:hover { border-color: #3d8ff0; }
.pp-icon-button[aria-pressed="true"] { color: #f2c35b; border-color: #f2c35b66; }
.pp-hero .cp-status { grid-column: 1 / -1; margin: 4px 0 0; font-size: .78rem; color: #9fb0c4; }
.pp-hero .cp-status:empty { display: none; }

/* Value and wage. */
.pp-money { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; margin: 14px auto 0; border-top: 1px solid #ffffff14; border-bottom: 1px solid #ffffff14; }
.pp-money > div { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; }
.pp-money > div + div { border-left: 1px solid #ffffff14; }
.pp-money span { color: #9fb0c4; font-size: .78rem; }
.pp-money strong { color: #fff; font-size: 1.12rem; font-weight: 800; white-space: nowrap; }

/* Key facts. */
.pp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; max-width: 760px; margin: 14px auto 0; padding: 0 2px; }
.pp-facts div { min-width: 0; }
.pp-facts dt { color: #9fb0c4; font-size: .74rem; }
.pp-facts dd { margin: 2px 0 0; color: #fff; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.pp-facts dd small { color: #9fb0c4; font-size: .7rem; font-weight: 500; }
.pp-facts__styles { display: flex; align-items: center; gap: 6px; }
.pp-facts__styles img { width: 20px; height: 20px; object-fit: contain; filter: brightness(1.4); }

/* Tabs. */
.pp-tabs.cp-section-nav { display: flex !important; justify-content: space-between; gap: 0; max-width: none; margin: 18px 0 0 !important; padding: 0 !important; border: 0 !important; border-bottom: 1px solid #ffffff14 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; position: sticky; top: var(--header-height, 58px); z-index: 5; backdrop-filter: blur(10px); }
.pp-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 0 8px !important; border: 0 !important; border-radius: 0 !important; border-bottom: 2px solid transparent !important; background: none !important; box-shadow: none !important; color: #b7c5d6; font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.pp-tabs a[aria-selected="true"] { color: #6fb2ff; border-bottom-color: #3d8ff0 !important; }
.pp-tabs .pp-tabs__compare { display: none !important; }
.pp-dot { width: 5px; height: 5px; border-radius: 50%; background: #6fb2ff; }
@media (min-width: 900px) { .pp-tabs a { flex: 0 0 auto; padding: 0 22px !important; } .pp-tabs.cp-section-nav { justify-content: flex-start; } }

.pp-panel { padding-top: 16px; }
.pp-panel[hidden] { display: none !important; }
.pp-title { margin: 0 0 12px; font-size: 1.3rem; }
.pp-note { margin: 10px 0 0; color: #8fa0b4; font-size: .78rem; line-height: 1.5; }
.pp-kicker { margin: 0; color: #e7a35a; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pp-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: #1d2b3b; color: #9fc6f2; font-size: .72rem; font-weight: 700; }

/* Card stats strip. */
.pp-face { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid #ffffff1a; border-radius: 14px; background: #0f161e; overflow: hidden; }
.pp-face > div { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 12px; }
.pp-face > div + div { border-left: 1px solid #ffffff12; }
.pp-face span { color: #b7c5d6; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.pp-face strong { font-size: clamp(1.4rem, 6vw, 1.7rem); font-weight: 800; line-height: 1.1; }
.pp-face i { width: 62%; height: 3px; margin-top: 4px; border-radius: 3px; background: linear-gradient(90deg, currentColor var(--pp-fill), #ffffff1c var(--pp-fill)); }

.pp-changes { margin-top: 12px; padding: 10px 14px; border: 1px solid #ffffff14; border-radius: 12px; background: #0f161e; font-size: .82rem; }
.pp-changes summary { cursor: pointer; color: #dbe7f4; font-weight: 650; }
.pp-changes summary small { color: #8fa0b4; font-weight: 500; }
.pp-changes dl { display: grid; gap: 6px; margin: 10px 0 0; }
.pp-changes dl > div { display: flex; justify-content: space-between; gap: 10px; }
.pp-changes dt { color: #9fb0c4; } .pp-changes dd { margin: 0; color: #fff; }

.pp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.pp-section-head h2 { margin: 0; font-size: 1.25rem; }
.pp-attr-search { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid #ffffff1c; border-radius: 10px; background: #0f161e; color: #9fb0c4; }
.pp-attr-search input { width: 120px; border: 0; background: none; color: #fff; font: inherit; font-size: .8rem; outline: none; }

/* Attribute groups. */
.pp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (min-width: 900px) { .pp-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pp-group { border: 1px solid #ffffff1a; border-radius: 12px; background: #0f161e; padding: 0 10px 6px; }
.pp-group > header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid #ffffff12; cursor: pointer; list-style: none; }
.pp-group h3 { margin: 0; color: #fff; font-size: .86rem; font-weight: 750; }
.pp-group > header b { font-size: .95rem; font-weight: 800; }
.pp-group dl { margin: 0; }
.pp-group .cp-attribute { display: flex !important; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; padding: 0 !important; border: 0 !important; background: none !important; }
.pp-group .cp-attribute[hidden] { display: none !important; }
.pp-group dt { min-width: 0; overflow: hidden; color: #c9d6e5; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.pp-group dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pp-group dd small { font-size: .64rem; font-weight: 800; }
.pp-group dd strong { min-width: 22px; font-size: .92rem; font-weight: 800; text-align: right; }

/* Cards (positions, contract). */
.pp-card { padding: 14px; border: 1px solid #ffffff1a; border-radius: 14px; background: #0f161e; }
.pp-card + .pp-card { margin-top: 12px; }
.pp-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pp-card__head h3 { margin: 0; font-size: .95rem; }
.pp-card__head span { color: #6fb2ff; font-size: .74rem; }
.pp-card__foot { display: flex; justify-content: space-between; margin-top: 10px; color: #9fb0c4; font-size: .74rem; }
.pp-card__foot i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3d8ff0; }
.pp-page .cp-pitch { border-radius: 10px; background: linear-gradient(#173023, #10241a) !important; }
.pp-page .cp-pitch-position b { background: none !important; font-weight: 800; }
.pp-page .cp-pitch-position.is-main { box-shadow: 0 0 0 2px #3d8ff0; border-radius: 10px; }
.pp-styles { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pp-styles button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid #ffffff10; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.pp-styles li:last-child button { border-bottom: 0; }
.pp-styles__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: #1a2735; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.pp-styles__icon img { width: 24px; height: 24px; object-fit: contain; filter: brightness(1.5); }
.pp-styles .is-plus .pp-styles__icon { background: #3a3218; }
.pp-club { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pp-club img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 8px; }
.pp-club > strong { font-size: 1.5rem; }
.pp-club > span { color: #9fb0c4; font-size: .82rem; }
.pp-club > a { color: #6fb2ff; font-size: .8rem; text-decoration: none; }
.pp-club__nation { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid #ffffff12; color: #c9d6e5; font-size: .82rem; }
.pp-club__nation .nation-flag { width: 22px !important; height: 16px !important; object-fit: contain; }
.pp-rows { margin: 0; }
.pp-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #ffffff10; font-size: .86rem; }
.pp-rows dt { color: #9fb0c4; }
.pp-rows dd { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.pp-rows dd.is-missing { color: #8fa0b4; font-weight: 600; }

/* The older player-page panels (IRL, compare) keep their own styles; give them the same box. */
.pp-page .cp-panel { margin-top: 16px; border-radius: 14px; }

@media (max-width: 767px) {
  .pp-page { padding: 10px 14px 40px; }
  .pp-actions { position: static; flex: 1 0 100%; justify-content: center; }
  .pp-meta { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .pp-meta__badges { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .pp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .pp-facts dd { font-size: .92rem; }
  .pp-groups { gap: 8px; }
  .pp-group { padding: 0 8px 4px; }
  .pp-group dt { font-size: .76rem; }
  .pp-attr-search input { width: 90px; }
}

/* Keep the photo between the two ratings, whatever the older player styles say. */
.pp-hero > .pp-photo.cp-portrait { grid-column: 2 !important; grid-row: 1 !important; position: relative !important; inset: auto !important; transform: none !important; margin: 0 auto !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.pp-hero > .pp-photo.cp-portrait::after { display: none !important; }
.pp-rating--left strong { padding-right: 14px; }
.pp-rating--right strong { padding-right: 16px; }
.pp-page .pp-group > header { cursor: default; }
.pp-styles .cp-style-button { justify-content: flex-start !important; min-height: 0 !important; padding: 8px 4px !important; border: 0 !important; border-bottom: 1px solid #ffffff10 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: #fff !important; }
.pp-styles .cp-style-button strong { font-size: .92rem; }
.pp-styles .cp-style-button.is-plus strong { color: #f2c35b; }
.pp-styles .cp-style-button[aria-pressed="true"] strong { color: #6fb2ff; }
/* Older player styles shrink and fade the portrait; the new hero always shows it full size. */
.pp-hero > .pp-photo.cp-portrait img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
/* Big player photo in the hero (older rules squeezed it to ~80px on phones). */
.pp-page .pp-hero > .pp-photo.cp-portrait { width: clamp(200px, 58vw, 300px) !important; min-width: 0 !important; max-width: none !important; height: auto !important; aspect-ratio: 1 / 1 !important; margin: -10px auto -6px !important; }
.pp-page .pp-hero > .pp-photo.cp-portrait img { object-fit: contain !important; object-position: bottom center !important; }
@media (max-width: 420px) {
  .pp-page .pp-hero > .pp-photo.cp-portrait { width: 54vw !important; }
  .pp-page .pp-rating strong { font-size: clamp(2.3rem, 10vw, 2.8rem); }
}
/* Credit line for a Wikimedia Commons photo (players without an EA portrait). */
.pp-photo__credit { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2; overflow: hidden; color: #6d7d90; font-size: .56rem; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }

/* --- Player page v3: positions, all PlayStyles, one attributes box, everything on one page on desktop --- */
/* Primary position filled, secondary positions outlined, side by side. */
.pp-positions { display: inline-flex; flex: none; align-items: center; gap: 5px; }
.pp-pos { flex: none; white-space: nowrap; }
.pp-pos--alt { border-color: #ffffff2e !important; background: transparent !important; color: #b7c5d6 !important; font-weight: 700 !important; }

/* Key facts: six values, one row on desktop, two rows of three on phones. */
.pp-page .pp-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 767px) { .pp-page .pp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* All PlayStyles, gold PlayStyles+ first. */
.pp-playstyles { max-width: 760px; margin: 16px auto 0; padding: 12px 14px; border: 1px solid #ffffff1a; border-radius: 14px; background: #0f161e; }
.pp-playstyles__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pp-playstyles__head h2 { margin: 0; font-size: .95rem; }
.pp-playstyles .pp-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; }
.pp-playstyles .pp-styles .cp-style-button { gap: 10px; padding: 4px 2px !important; border-bottom: 0 !important; }
.pp-playstyles .pp-styles__icon { width: 34px; height: 34px; flex-basis: 34px; }
.pp-playstyles .pp-styles__icon img { width: 20px; height: 20px; }
.pp-playstyles .pp-styles .cp-style-button strong { font-size: .8rem; font-weight: 650; line-height: 1.2; }
.pp-playstyles .is-plus .pp-styles__icon { background: linear-gradient(160deg, #6b5413, #3a2d08); box-shadow: inset 0 0 0 1px #f2c35b88; }
.pp-playstyles .is-plus .pp-styles__icon img { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.3); }
.pp-playstyles .cp-style-reading:empty { display: none; }
@media (max-width: 767px) { .pp-playstyles .pp-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Attributes: one box, the six groups as columns inside it. */
.pp-page .pp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 6px 14px 10px; border: 1px solid #ffffff1a; border-radius: 14px; background: #0f161e; }
@media (min-width: 900px) { .pp-page .pp-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pp-page .pp-group { padding: 0 0 8px; border: 0; border-radius: 0; background: none; }
.pp-page .pp-group > header { min-height: 38px; border-bottom: 1px solid #ffffff14; }
.pp-page .pp-group h3 { color: #8fa0b4; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }


/* PlayStyles in Overview: icons side by side, name appears on hover (tap shows it below). */
.pp-page .pp-playstyles { max-width: none; width: auto; margin: 12px 0 0; padding: 12px 14px; }
.pp-page .pp-playstyles .pp-styles { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-page .pp-playstyles .pp-styles li { position: relative; }
.pp-page .pp-playstyles .cp-style-button { position: relative; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; }
.pp-page .pp-playstyles .pp-styles__icon { width: 46px; height: 46px; flex-basis: 46px; background: #1a2735; transition: transform .12s ease, background .12s ease; }
.pp-page .pp-playstyles .pp-styles__icon img { width: 26px; height: 26px; }
.pp-page .pp-playstyles .cp-style-button:hover .pp-styles__icon, .pp-page .pp-playstyles .cp-style-button:focus-visible .pp-styles__icon { transform: translateY(-2px); background: #24384d; }
.pp-page .pp-playstyles .is-plus .pp-styles__icon { background: linear-gradient(160deg, #7a5f14, #3a2d08); }
.pp-page .pp-playstyles .cp-style-button::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; padding: 5px 9px; border: 1px solid #ffffff24; border-radius: 7px; background: #1a2533; color: #fff; font-size: .74rem; font-weight: 650; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .12s ease; box-shadow: 0 8px 20px #0008; }
.pp-page .pp-playstyles .cp-style-button.is-plus::after { color: #f2c35b; }
.pp-page .pp-playstyles .cp-style-button:is(:hover, :focus-visible)::after { opacity: 1; }
.pp-page .pp-playstyles .cp-style-reading { margin: 8px 0 0; color: #c9d6e5; font-size: .8rem; }
@media (hover: hover) { .pp-page .pp-playstyles .cp-style-reading { display: none; } }

/* Positions: a real (portrait) pitch instead of a stretched box. */
.pp-page .cp-pitch { aspect-ratio: 68 / 100; min-height: 0 !important; height: auto; grid-template-rows: repeat(7, minmax(0, 1fr)) !important; padding: 8px !important; max-width: 360px; margin-inline: auto; }
.pp-page .cp-pitch-position { min-height: 0; padding: 3px 0; border-radius: 8px; }
.pp-page .cp-pitch-position > span { color: #8fa0b4; font-size: .64rem; font-weight: 700; }
.pp-page .cp-pitch-position b { font-size: .86rem; }
.pp-page .cp-pitch-position:not(.is-primary) b { opacity: .7; }
.pp-page .cp-pitch-position.is-primary { background: #12345a; border-color: #3d8ff0aa; }
.pp-page .cp-pitch-position.is-primary > span { color: #d7e9ff; }
.pp-page .cp-pitch-position.is-main { background: #1d4f86; box-shadow: 0 0 0 2px #6fb2ff; }
@media (min-width: 1100px) { .pp-page .cp-pitch { max-width: none; } }

/* --- Player page v4: tabs Overview / Contract / IRL; positions beside the attributes --- */
.pp-overview-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .pp-overview-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.pp-side-title { margin: 22px 0 14px; font-size: 1.25rem; line-height: 1.2; }
.pp-overview-side .pp-card { padding: 12px; }
.pp-overview-side .cp-pitch { max-width: 360px; }
/* Lines under every attribute, so value and name clearly belong together. */
.pp-page .pp-group .cp-attribute { border-bottom: 1px solid #ffffff10 !important; }
.pp-page .pp-group .cp-attribute:last-child { border-bottom: 0 !important; }
/* PlayStyles in squares (same as the database card). */
.pp-page .pp-playstyles .pp-styles__icon { clip-path: none; border-radius: 9px; border: 1px solid #ffffff14; }
.pp-page .pp-playstyles .is-plus .pp-styles__icon { border-color: #f2c35b88; }
.pp-page .pp-hero > .pp-photo.cp-portrait.pp-photo--small { width: clamp(150px, 42vw, 200px) !important; }

/* Phones: value/wage and the key facts centred under the photo, like the ratings above them.
   Label above the amount, so "Wage / week" no longer pushes its amount against the right edge. */
@media (max-width: 767px) {
  .pp-page .pp-money > div { flex-direction: column; gap: 2px; min-height: 64px; padding: 8px 4px; text-align: center; }
  .pp-page .pp-money strong { font-size: 1.18rem; }
  .pp-page .pp-facts { padding: 0; text-align: center; }
  .pp-page .pp-facts dd { justify-content: center; }
}

/* Light sharpening for the small (160/180 px) faces that are stretched in the hero; see career-player.php. */
.pp-sharpen-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pp-page .pp-hero > .pp-photo--soft img { filter: url(#pp-sharpen) !important; }

/* Similar players under the overview (SimilarPlayers). */
.pp-similar { max-width: 760px; margin: 16px auto 0; padding: 12px 14px; border: 1px solid #ffffff1a; border-radius: 14px; background: #0f161e; }
.pp-similar h2 { margin: 0; font-size: .95rem; }
.pp-similar > .pp-note { margin: 2px 0 8px; }
.pp-similar ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.pp-similar li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #ffffff10; color: inherit; text-decoration: none; }
.pp-similar li a:hover strong { color: #8cc2ff; }
.pp-similar img { flex: none; width: 44px; height: 48px; border-radius: 10px; background: #111c29; object-fit: cover; object-position: top; }
.pp-similar__who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp-similar__who strong, .pp-similar__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-similar__who small { color: #9fb0c4; font-size: .76rem; }
.pp-similar__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pp-similar__tags em { padding: 1px 7px; border-radius: 999px; background: #183323; color: #82eca8; font-size: .68rem; font-style: normal; font-weight: 800; }
.pp-similar__tags i { color: #6d7d90; font-size: .7rem; font-style: normal; }
.pp-similar .db-rating { flex: none; display: inline-grid; place-items: center; min-width: 36px; height: 32px; border-radius: 8px; background: #183323; color: #82eca8; font-weight: 800; }
.pp-similar .db-rating.rating--75, .pp-similar .db-rating.rating--65 { background: #2c3216; color: #d6e46a; }
.pp-similar .db-rating.rating--57, .pp-similar .db-rating.rating--47 { background: #35280f; color: #f2c35b; }
