/* Player profile layout. Scoped to this page so shared cards keep their layout. */
.profile-hero {
  padding: 24px 0 32px;
  background: radial-gradient(circle at 18% 0, rgba(131, 255, 50, .1), transparent 42%), #0b100d;
}
.profile-breadcrumbs { margin-bottom: 22px; color: var(--text-muted); font-size: .82rem; }
.profile-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.profile-breadcrumbs li + li::before { content: '/'; margin-inline-end: 8px; opacity: .5; }
.profile-breadcrumbs a:hover { color: var(--accent); }
.profile-hero-inner { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.profile-visual-column { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.profile-image-wrap.ef-card { width: 100%; min-width: 0; aspect-ratio: 7 / 10; align-self: start; border: 1px solid #3d493e; border-radius: 6px !important; background: #182019; }
.profile-info { min-width: 0; padding: 26px; border: 1px solid #303a34; border-radius: 6px; background: #101512; }
.profile-name { font-size: clamp(1.65rem, 3vw, 2.5rem); margin-bottom: 3px; }
.profile-edition { margin: 0 0 14px; color: var(--text-muted); font-size: .82rem; }
.profile-rating-position { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.profile-overall { display: inline-flex; align-items: baseline; gap: 7px; font-size: 2.35rem; }
.profile-overall small { color: var(--text-muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.profile-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid #303a34; }
.profile-detail { min-width: 0; gap: 5px; padding: 13px 8px 13px 0; }
.profile-detail-value { overflow-wrap: anywhere; }
.profile-info .position-badges { margin-top: 16px; }
.profile-info .level-section { margin-top: 17px; }
.profile-page-layout .profile-tool-actions { display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: 100%; margin-top: 10px; }
.profile-page-layout .profile-action { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 44px; padding: 5px 10px; border: 1px solid #a3ff12; border-radius: 4px; background: #a3ff12; color: #081008; font-size: .81rem; font-weight: 800; line-height: 1.25; text-align: start; transition: background .16s, border-color .16s, transform .16s; }
.profile-page-layout .profile-action:hover, .profile-page-layout .profile-action:focus-visible { transform: translateY(-1px); border-color: #c2ff68; background: #c2ff68; color: #081008; }
.profile-page-layout .profile-action--primary,
.profile-page-layout .profile-action--compare,
.profile-page-layout .profile-action--squad { border-color: #a3ff12; background: #a3ff12; color: #081008; }
.profile-action-icon { flex: 0 0 31px; width: 31px; height: 31px; background-image: url('/assets/images/home-actions-sprite.webp?v=1681515'); background-size: 300% 300%; background-repeat: no-repeat; }
.profile-action-icon--progression { background-position: 50% 50%; }
.profile-action-icon--compare { background-position: 0 50%; }
.profile-action-icon--squad { background-position: 100% 50%; }
.profile-content { padding-top: 22px; }
.profile-jump-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; padding: 7px; margin-bottom: 22px; border: 1px solid #303a34; border-radius: 6px; background: rgba(16, 21, 18, .98); scrollbar-width: thin; }
.profile-jump-nav a { flex: 0 0 auto; padding: 10px 14px; border-radius: 4px; color: var(--text-secondary); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.profile-jump-nav a:hover, .profile-jump-nav a:focus-visible { color: #071006; background: var(--accent, #83ff32); }
.profile-fact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; margin-bottom: 16px; padding: 9px 12px; border: 1px solid #303a34; border-radius: 4px; background: #171b19; }
.profile-fact-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; white-space: nowrap; }
.profile-fact-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #a7f600; }
.profile-fact-label { color: #a9b4a9; font-size: .74rem; }
.profile-fact-value { color: #eff9ed; font-size: .81rem; }
.profile-fact-stars { display: inline-flex; gap: 1px; color: #52604e; font-size: .91rem; }
.profile-fact-stars .is-filled { color: #a7f600; }
.profile-fact-chip--accuracy .profile-fact-stars .is-filled { color: #00dfc7; }
.profile-fact-footprint { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.profile-fact-footprint.is-reversed { transform: scaleX(-1); }
.profile-sections { gap: 16px; }
.profile-section { padding: 20px; scroll-margin-top: 76px; }
.profile-section .section-title { margin-bottom: 16px; }
.profile-section .stat-row { min-width: 0; }
.profile-stat-board.profile-section,
.profile-position-panel.profile-section,
.profile-skills-panel.profile-section,
.profile-model-panel.profile-section {
  border: 1px solid #303a34 !important;
  border-radius: 4px !important;
  background: #101512 !important;
  box-shadow: none !important;
  padding: 16px !important;
}
.profile-stat-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.profile-stat-column { min-width: 0; }
.profile-stat-heading { margin: 0 0 11px; color: #a3a3a3; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.profile-stat-list { display: grid; gap: 6px; }
.profile-stat-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 37px; padding: 6px 9px 6px 12px; border-radius: 4px; background: #1c241e; }
.profile-stat-label { min-width: 0; color: var(--profile-stat-color); font-size: .9rem; font-weight: 650; line-height: 1.15; }
.profile-stat-number.badge { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 38px; height: 27px; padding: 0 8px; border: 0; border-radius: 3px; background: var(--profile-stat-color); color: #101010; font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-stat-item--cyan { --profile-stat-color: #00e4c3; }
.profile-stat-item--lime { --profile-stat-color: #a7f600; }
.profile-stat-item--amber { --profile-stat-color: #ffbb13; }
.profile-stat-item--red { --profile-stat-color: #ff353f; }
.profile-skills-panel .section-title,
.profile-position-panel .section-title { border-color: #383838; }
.profile-skills-panel .skills-grid { gap: 8px; }
.profile-skills-panel .skill-badge.active { padding: 8px 12px; border-color: #363636; border-radius: 4px; background: #171717; color: #f6f6f6; font-size: .82rem; }
.profile-skills-panel .skill-badge.active:hover { border-color: #a7f600; color: #a7f600; }
.profile-position-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr); gap: 18px; }
.profile-position-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 9px; margin-bottom: 13px; }
.profile-position-summary > div { display: flex; flex-direction: column; justify-content: space-between; gap: 7px; min-height: 66px; padding: 11px 13px; border: 1px solid #304332; border-radius: 4px; background: #17211a; }
.profile-position-summary span { color: #a6b5a5; font-size: .74rem; }
.profile-position-summary strong { color: #a7f600; font-size: 1.34rem; line-height: 1; }
.profile-position-pitch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(7, 46px); gap: 4px; padding: 13px; border: 1px solid #343434; border-radius: 4px; background: #171d19; }
.profile-position-tile { display: grid; place-items: center; min-width: 0; border: 1px solid #444; border-radius: 4px; background: #272727; color: #858585; font-size: .73rem; font-weight: 800; }
.profile-position-tile--full { border-color: #7cbd1b; background: #3f7e27; color: #edffd9; }
.profile-position-tile--half { border-color: #455e30; background: #314b29; color: #c9efad; }
.profile-position-tile.is-main { outline: 2px solid #a7f600; outline-offset: -3px; }
.profile-position-tile--lwf { grid-area: 1 / 1 / 3 / 2; }
.profile-position-tile--cf { grid-area: 1 / 2; }
.profile-position-tile--rwf { grid-area: 1 / 3 / 3 / 4; }
.profile-position-tile--ss { grid-area: 2 / 2; }
.profile-position-tile--lmf { grid-area: 3 / 1 / 6 / 2; }
.profile-position-tile--amf { grid-area: 3 / 2; }
.profile-position-tile--rmf { grid-area: 3 / 3 / 6 / 4; }
.profile-position-tile--cmf { grid-area: 4 / 2; }
.profile-position-tile--dmf { grid-area: 5 / 2; }
.profile-position-tile--lb { grid-area: 6 / 1 / 8 / 2; }
.profile-position-tile--cb { grid-area: 6 / 2; }
.profile-position-tile--rb { grid-area: 6 / 3 / 8 / 4; }
.profile-position-tile--gk { grid-area: 7 / 2; }
.profile-position-side { display: flex; flex-direction: column; align-self: start; gap: 14px; padding: 18px; border: 1px solid #344336; border-radius: 4px; background: #1a211c; }
.profile-playstyle-header { display: flex; align-items: center; gap: 11px; }
.profile-playstyle-header > div { display: grid; gap: 3px; }
.profile-playstyle-header > div > span { color: #a7b4a4; font-size: .72rem; }
.profile-style-icon { flex: 0 0 38px; width: 38px; height: 38px; background: url('/assets/images/home-actions-sprite.webp?v=1681515') 100% 0 / 300% 300% no-repeat; }
.profile-playstyle-name { color: #dfffbb; font-size: 1.08rem; font-weight: 800; }
.profile-position-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid #334234; }
.profile-position-tag { padding: 5px 8px; border-radius: 4px; font-size: .76rem; font-weight: 800; }
.profile-position-tag--full { background: #315b1c; color: #d4ffb6; }
.profile-position-tag--half { background: #384039; color: #dce6d7; }
.profile-position-legend { display: flex; flex-wrap: wrap; gap: 14px; color: #b7b7b7; font-size: .8rem; }
.profile-position-legend span { display: inline-flex; align-items: center; gap: 6px; }
.profile-position-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.profile-position-dot--full { background: #6fba24; }
.profile-position-dot--half { background: #314b29; }
[dir="rtl"] .profile-position-layout { direction: ltr; }
[dir="rtl"] .profile-position-side { direction: rtl; }
.profile-model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.profile-model-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 4px; background: #1a211c; color: #bcbcbc; font-size: .8rem; }
.profile-model-item strong { color: #f5f5f5; font-variant-numeric: tabular-nums; }
.profile-build-panel.profile-section { border: 1px solid #303a34; border-radius: 4px; background: #101512; }
.profile-build-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.profile-build-heading .section-title { margin-bottom: 4px; padding-bottom: 0; border: 0; }
.profile-build-heading p { margin: 0; color: var(--text-muted); font-size: .84rem; }
.profile-build-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border-radius: 4px; background: #a7f600; color: #101810; font-size: .82rem; font-weight: 800; }
.profile-build-link:hover { background: #c1ff48; color: #101810; }
.profile-build-focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.profile-build-focus div { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; padding: 9px 12px; border-radius: 4px; background: #1a241c; }
.profile-build-focus dt { color: #d8ebd2; font-size: .82rem; }
.profile-build-focus dd { margin: 0; color: #a7f600; font-weight: 800; }
.profile-sidebar-cta { margin-top: 14px; }
.profile-sidebar-cta .pro-cta-card { width: 100%; }
.profile-sidebar-cta .pro-cta-card__body { padding: 15px; }
.profile-sidebar-cta .pro-cta-card h2 { font-size: 1.05rem; }
.profile-sidebar-cta .pro-cta-card p { font-size: .78rem; }
.profile-progression { margin-top: 14px; padding: 14px; border: 1px solid #3b4d38; border-radius: 4px; background: #101713; scroll-margin-top: 88px; }
.profile-progression-heading, .profile-progression-totals, .profile-progression-group-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.profile-progression-heading { margin-bottom: 10px; }
.profile-progression-heading h2 { margin: 0; color: #f2f9ee; font-size: 1rem; }
.profile-progression-reset { border: 1px solid #425342; border-radius: 4px; background: #1e2b20; color: #c8d7c5; padding: 5px 7px; font-size: .7rem; cursor: pointer; }
.profile-progression-budget-label { display: block; margin-bottom: 5px; color: #b2bfb1; font-size: .72rem; }
.profile-progression-budget { width: 100%; height: 34px; padding: 5px 9px; border: 1px solid #465943; border-radius: 4px; background: #1c291e; color: #f2f9ee; font-size: .82rem; }
.profile-progression-budget::placeholder { color: #a5b5a0; font-size: .72rem; }
.profile-progression-totals { margin: 10px 0 6px; color: #b6c3b1; font-size: .72rem; }
.profile-progression-totals strong { color: #a7f600; font-size: .86rem; }
.profile-progression-totals .is-overspent { color: #ff575d; }
.profile-progression-track { height: 6px; overflow: hidden; border-radius: 20px; background: #28322a; }
.profile-progression-track span { display: block; width: 0; height: 100%; background: #a7f600; transition: width .15s; }
.profile-progression-recommend { display: block; width: 100%; margin: 10px 0 0; padding: 7px 9px; border: 1px solid #a7f600; border-radius: 4px; background: #314b18; color: #e5ffbd; font-size: .73rem; font-weight: 800; cursor: pointer; }
.profile-progression-groups { display: grid; gap: 10px; margin-top: 14px; }
.profile-progression-group { min-width: 0; }
.profile-progression-group-top { min-height: 26px; }
.profile-progression-group-top img { flex: 0 0 22px; object-fit: contain; }
.profile-progression-group-top label { flex: 1 1 auto; min-width: 0; color: #e5f0e0; font-size: .73rem; font-weight: 650; }
.profile-progression-group-top output { min-width: 17px; color: #a7f600; text-align: center; font-size: .8rem; font-weight: 800; }
.profile-progression-group-top button { width: 20px; height: 20px; padding: 0; border: 0; background: none; color: #dae7d4; font-size: 1rem; cursor: pointer; }
.profile-progression-group-top button:disabled { color: #61705c; cursor: default; }
.profile-progression-group input[type='range'] { display: block; width: 100%; height: 7px; margin: 5px 0 0; appearance: none; border-radius: 9px; background: linear-gradient(to right, #a7f600 var(--profile-level-fill, 0%), #26312a var(--profile-level-fill, 0%)); cursor: pointer; }
html[lang="ar"] .profile-progression-group input[type='range'] { background: linear-gradient(to left, #a7f600 var(--profile-level-fill, 0%), #26312a var(--profile-level-fill, 0%)); }
.profile-progression-group input[type='range']::-webkit-slider-thumb { width: 15px; height: 15px; appearance: none; border: 2px solid #a7f600; border-radius: 50%; background: #101713; }
.profile-progression-group input[type='range']::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #a7f600; border-radius: 50%; background: #101713; }
.profile-progression-group input[type='range']:disabled { opacity: .48; cursor: default; }
.profile-progression-note { margin: 13px 0 0; color: #94a392; font-size: .69rem; line-height: 1.45; }
.profile-progression-preview { display: grid; gap: 8px; margin-top: 15px; padding: 12px; border: 1px solid #3b4d38; border-radius: 5px; color: #e5f0e0; font-size: .75rem; }
.profile-progression-preview output { color: #a7f600; font-size: 1.1rem; }
.profile-progression-preview > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.profile-progression-preview > div > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px; background: #1c291e; }
.profile-progression-preview > div strong { color: #a7f600; white-space: nowrap; }
@media (max-width: 560px) { .profile-progression-preview > div { grid-template-columns: 1fr; } }
.profile-inline-banner { grid-column: 1 / -1; min-width: 0; }
.profile-inline-banner > .plinkod-game-banner { width: 100%; max-width: none; height: auto; margin: 0; }
.profile-inline-banner:has(.profile-house-banner) .pes-ad-wrapper:not(:has(iframe, img)) { display: none !important; }
.profile-inline-banner:has(.pes-ad-wrapper iframe, .pes-ad-wrapper img) .profile-house-banner { display: none; }
.profile-house-banner { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); align-items: center; min-height: 112px; overflow: hidden; border: 1px solid #43653b; border-radius: 4px; background: linear-gradient(110deg, #17281a, #101713); color: #edffe5; }
.profile-house-banner:hover { border-color: #a7f600; color: #edffe5; }
.profile-house-banner > img { display: block; width: 100%; height: 112px; object-fit: cover; }
.profile-house-banner > span { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 20px; }
.profile-house-banner small { color: #a7f600; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.profile-house-banner strong { flex: 1; font-size: 1.1rem; }
.profile-house-banner b { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 4px; background: #a7f600; color: #12200d; }
@media (min-width: 641px) {
  .profile-inline-banner .plinkod-game-banner__games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-hero-inner { grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
  .profile-info { padding: 18px; }
  .profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stat-columns { gap: 12px; }
  .profile-position-layout { grid-template-columns: 1fr; }
  .profile-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profile-hero { padding-top: 16px; }
  .profile-hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: start; }
  .profile-visual-column { width: min(220px, 70vw); }
  .profile-image-wrap.ef-card { width: min(190px, 52vw); align-self: center; }
  .profile-info { width: 100%; }
  .profile-name, .profile-edition { text-align: center; }
  .profile-rating-position, .profile-details { justify-content: start; }
  .profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-jump-nav { margin-inline: -16px; border-radius: 0; }
  .profile-stat-board.profile-section,
  .profile-position-panel.profile-section,
  .profile-skills-panel.profile-section { padding: 16px !important; }
  .profile-stat-columns { grid-template-columns: 1fr; gap: 23px; }
  .profile-stat-item { min-height: 41px; }
  .profile-position-pitch { grid-template-rows: repeat(7, 39px); padding: 8px; }
  .profile-model-grid { grid-template-columns: 1fr; }
  .profile-build-focus { grid-template-columns: 1fr; }
  .profile-fact-strip { gap: 6px; }
  .profile-position-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-position-summary > div { padding: 9px; }
  .profile-house-banner { grid-template-columns: 96px minmax(0, 1fr); min-height: 96px; }
  .profile-house-banner > img { height: 96px; }
  .profile-house-banner > span { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 9px; }
  .profile-house-banner small { grid-column: 1; }
  .profile-house-banner strong { grid-column: 1; font-size: .88rem; }
  .profile-house-banner b { grid-column: 2; grid-row: 1 / 3; }
}

@media (min-width: 1000px) {
  .profile-page-layout { display: grid; grid-template-columns: minmax(270px, 310px) minmax(0, 1fr); gap: 18px 22px; align-items: start; width: min(1500px, 100%); margin: 24px auto 60px; padding: 0 24px; }
  .profile-page-layout > .profile-hero { grid-column: 1; grid-row: 1; }
  .profile-page-layout > .profile-content { grid-column: 2; grid-row: 1; }
  .profile-page-layout .container { width: 100%; max-width: none; padding: 0; }
  .profile-page-layout .profile-hero { padding: 0; border: 0; background: transparent; }
  .profile-page-layout .profile-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .profile-page-layout .profile-breadcrumbs { margin-bottom: 12px; }
  .profile-page-layout .profile-image-wrap.ef-card { width: min(100%, 200px); align-self: center; }
  .profile-page-layout .profile-info { width: 100%; padding: 14px; border-radius: 4px; }
  .profile-page-layout .profile-name { font-size: 1.65rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .profile-page-layout .profile-edition { margin-bottom: 8px; }
  .profile-page-layout .profile-rating-position { gap: 6px; margin-bottom: 10px; }
  .profile-page-layout .profile-overall { font-size: 1.75rem; }
  .profile-page-layout .profile-position-badge { padding: 5px 8px; font-size: .7rem; }
  .profile-page-layout .profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-page-layout .profile-detail { padding: 7px 3px 7px 0; gap: 2px; }
  .profile-page-layout .profile-detail-label { font-size: .58rem; letter-spacing: .035em; }
  .profile-page-layout .profile-detail-value { font-size: .77rem; }
  .profile-page-layout .profile-info .position-badges { margin-top: 9px; }
  .profile-page-layout .profile-info .level-section { margin-top: 10px; }
  .profile-page-layout .profile-content { min-width: 0; padding: 0; }
  .profile-page-layout .profile-jump-nav { top: 64px; }
  .profile-page-layout .profile-stat-columns { gap: 12px; }
  .profile-page-layout .profile-stat-board.profile-section { padding: 16px !important; }
  .profile-page-layout .profile-stat-label { font-size: .76rem; }
  [dir="rtl"] .profile-page-layout { direction: ltr; }
  [dir="rtl"] .profile-page-layout > .profile-hero,
  [dir="rtl"] .profile-page-layout > .profile-content { direction: rtl; }
}
@media (max-width: 999px) {
  .profile-page-layout { display: block; }
}
