.player-page {
    width: 100%;
    max-width: 100%;
    padding: 18px 20px 28px;

    box-sizing: border-box;
    overflow-x: hidden;
}

.player-page--embedded {
    padding-top: 14px;
}

.player-page *,
.player-page *::before,
.player-page *::after {
    box-sizing: border-box;
}

.player-hero {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 14px;
    padding: 16px;
    background: #0b1728;
    border-top: 3px solid #f0c545;
    border-radius: 5px;
}

.player-hero__image-wrap {
    width: 210px;
    height: 210px;
    overflow: hidden;
    background: #07111f;
    border-radius: 4px;
}

.player-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.player-hero__identity {
    min-width: 0;
    padding: 5px 0;
}

.player-hero__identity > span,
.player-section__heading span,
.player-milestones span,
.player-not-found > span {
    display: block;
    margin-bottom: 7px;
    color: #f0c545;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-hero__identity h1,
.player-not-found h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.player-hero__club {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 7px 12px;
    background: #101d31;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
}

.player-hero__club:hover {
    color: #f0c545;
}

.player-hero__club img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.player-hero__club strong {
    font-size: 15px;
    font-weight: 900;
}

.player-hero__club--plain {
    cursor: default;
}

.player-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.player-hero__facts > div {
    min-width: 0;
    padding: 10px 11px;
    background: #101d31;
    border-radius: 4px;
}

.player-hero__facts span,
.player-ratings h2,
.player-rating span,
.player-ratings__ability span,
.player-stat span,
.player-current-card > span,
.player-growth-card span {
    display: block;
    color: #93a1b6;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-hero__facts strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.player-nation {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.player-nation__flag {
    width: 54px;
    height: 36px;
    display: block;
    flex: 0 0 54px;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.player-ratings {
    padding: 14px;
    background: #101d31;
    border-radius: 5px;
}

.player-ratings h2 {
    margin: 0 0 12px;
    color: #f0c545;
    font-size: 11px;
}

.player-ratings__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.player-rating {
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #07111f;
    border-radius: 4px;
}

.player-rating strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.player-ratings__ability {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.player-ratings__ability > div {
    padding: 8px 3px;
    background: #07111f;
    border-radius: 3px;
    text-align: center;
}

.player-ratings__ability strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.player-ratings__copy {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 12px;
    appearance: none;
    background: #162b6f;
    border: 1px solid #31559a;
    border-radius: 4px;
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.player-ratings__copy:hover {
    background: #1c3689;
    border-color: #4b70b7;
    color: #f0c545;
}

.player-ratings__copy:focus-visible {
    outline: 2px solid #f0c545;
    outline-offset: 2px;
}

.player-ratings__copy.is-copied {
    background: #1d653d;
    border-color: #318759;
    color: #ffffff;
}

.player-ratings__copy.is-error {
    background: #8a3038;
    border-color: #b24a55;
}

.player-ratings__copy-status {
    min-height: 14px;
    margin-top: 6px;
    display: block;
    color: #93a1b6;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.player-ratings__empty {
    margin: 0;
    color: #93a1b6;
    font-size: 13px;
    font-weight: 700;
}

.player-section {
    margin-bottom: 14px;
    padding: 15px;
    background: #0b1728;
    border-radius: 5px;
}

.player-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.player-section__heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.player-current-grid {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.6fr;
    gap: 8px;
}

.player-current-card {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    background: #101d31;
    border-radius: 4px;
}

.player-current-card > strong {
    display: block;
    margin-top: 10px;
    color: #f0c545;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.player-current-card--minutes {
    justify-content: space-between;
}

.player-current-card__topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.player-current-card__topline span {
    display: block;
    color: #93a1b6;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-current-card__topline strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 21px;
    line-height: 1;
    font-weight: 900;
}

.player-current-card__topline em {
    color: #f0c545;
    font-size: 12px;
    line-height: 1.2;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.player-minutes-progress {
    height: 9px;
    margin-top: 15px;
    overflow: hidden;
    background: #07111f;
    border-radius: 2px;
}

.player-minutes-progress span {
    height: 100%;
    display: block;
    background: #f0c545;
}

.player-minutes-progress.is-complete span {
    background: #ffffff;
}

.player-growth-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.player-growth-card__summary,
.player-growth-card__breakdown > div {
    padding: 14px;
    background: #101d31;
    border-radius: 4px;
}

.player-growth-card__summary {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-growth-card__summary strong {
    display: block;
    margin-top: 8px;
    color: #f0c545;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.player-growth-card__summary small {
    display: block;
    margin-top: 7px;
    color: #93a1b6;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.player-growth-card__breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.player-growth-card__breakdown > div {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.player-growth-card__breakdown strong {
    display: block;
    margin-top: 9px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
}

.player-stat-grid {
    display: grid;
    gap: 8px;
}

.player-stat-grid--career {
    grid-template-columns: repeat(7, 1fr);
}

.player-stat-grid--season {
    grid-template-columns: repeat(6, 1fr);
}

.player-stat {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #101d31;
    border-radius: 4px;
    text-align: center;
}

.player-stat--small {
    min-height: 72px;
}

.player-stat strong {
    display: block;
    margin-bottom: 7px;
    color: #f0c545;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.player-stat--small strong {
    font-size: 21px;
}

.player-two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
}

.player-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #07111f;
    border-radius: 4px;
}

.player-table {
    width: 100%;
    border-collapse: collapse;
}

.player-table th,
.player-table td {
    padding: 10px 11px;
    border-bottom: 1px solid #1b2b40;
    color: #dce3ed;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
}

.player-table th {
    background: #162b6f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-table tbody tr:last-child td {
    border-bottom: 0;
}

.player-table tbody tr:hover td {
    background: #101d31;
}

.player-table a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.player-table a:hover {
    color: #f0c545;
}

.player-table--matches {
    min-width: 880px;
}

.player-page--embedded .player-table-wrap {
    overflow-x: hidden;
}

.player-page--embedded .player-table--matches {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.player-page--embedded .player-table--matches th,
.player-page--embedded .player-table--matches td {
    overflow: hidden;
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-page--embedded .player-table--matches th:nth-child(1),
.player-page--embedded .player-table--matches td:nth-child(1) {
    width: 82px;
}

.player-page--embedded .player-table--matches th:nth-child(2),
.player-page--embedded .player-table--matches td:nth-child(2) {
    width: 130px;
}

.player-page--embedded .player-table--matches th:nth-child(3),
.player-page--embedded .player-table--matches td:nth-child(3) {
    width: 112px;
}

.player-page--embedded .player-table--matches th:nth-child(5),
.player-page--embedded .player-table--matches td:nth-child(5) {
    width: 72px;
}

.player-page--embedded .player-table--matches th:nth-child(6),
.player-page--embedded .player-table--matches td:nth-child(6) {
    width: 42px;
}

.player-page--embedded .player-table--matches th:nth-child(7),
.player-page--embedded .player-table--matches td:nth-child(7) {
    width: 55px;
}

.player-page--embedded .player-table--matches th:nth-child(8),
.player-page--embedded .player-table--matches td:nth-child(8) {
    width: 42px;
}

.player-page--embedded .player-table--matches th:nth-child(9),
.player-page--embedded .player-table--matches td:nth-child(9),
.player-page--embedded .player-table--matches th:nth-child(10),
.player-page--embedded .player-table--matches td:nth-child(10) {
    width: 32px;
}

.player-page--embedded .player-table--matches th:nth-child(11),
.player-page--embedded .player-table--matches td:nth-child(11) {
    width: 58px;
}

.player-result {
    display: inline-block;
    min-width: 54px;
    padding: 5px 7px;
    background: #23334a;
    color: #ffffff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.player-result.is-win {
    background: #1d653d;
}

.player-result.is-draw {
    background: #5f6672;
}

.player-result.is-loss {
    background: #8a3038;
}

.player-match-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: #162b6f;
    color: #ffffff !important;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-match-link:hover {
    color: #f0c545 !important;
}

.player-match-link--disabled {
    min-width: 0;
    padding: 0;
    background: transparent;
    color: #59677a !important;
}

.player-milestones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.player-milestones article {
    padding: 15px;
    background: #0b1728;
    border-radius: 5px;
}

.player-milestones strong {
    display: block;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 900;
}

.player-milestones p {
    margin: 7px 0 0;
    color: #aeb9c8;
    font-size: 12px;
    font-weight: 700;
}

.player-not-found {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #0b1728;
    border-top: 3px solid #f0c545;
    border-radius: 5px;
    text-align: center;
}

.player-not-found p {
    margin: 0 0 20px;
    color: #aeb9c8;
    font-size: 14px;
    font-weight: 700;
}

.player-not-found a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #162b6f;
    color: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.player-not-found a:hover {
    color: #f0c545;
}
