/* FC 26 Player Card Background for Squad Builder */

/* --- ABSOLUTE OVERRIDE: FC 26 FULL GOLD CARD BACKGROUND --- */
.sb-slot, .sb-player {
    position: relative !important;
    background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat !important;
    border-radius: 16px !important;
    border: 2px solid #d6b75c !important;
    overflow: hidden !important;
    z-index: 1;
}
.sb-slot .sf, .sb-face-sm {
    background: none !important;
}

/* --- FORCE GOLD CARD BACKGROUND FOR ENTIRE CARD SLOT AND PLAYER ROW --- */
.sb-slot {
    position: relative;
    background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat !important;
    z-index: 0;
}

.sb-player {
    position: relative;
    background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat !important;
    z-index: 0;
}

/* Remove background from .sf and .sb-face-sm so PNG is not covered */
.sb-slot .sf, .sb-face-sm {
    background: none !important;
}

.sb-slot .sf::before, .sb-face-sm::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat;
    border-radius: 50%;
    opacity: 1;
    pointer-events: none;
}

.sb-slot .sf img, .sb-face-sm img {
    position: relative;
    z-index: 2;
    background: none !important;
}


/* --- FC 26 FULL CARD BACKGROUND --- */
.sb-slot, .sb-player {
    position: relative;
    background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat !important;
    border-radius: 16px !important;
    border: 1px solid #d6b75c !important; /* Optional: gold border for effect */
    overflow: hidden;
    z-index: 1;
}
.sb-slot .sf, .sb-face-sm {
    background: none !important;
}
.sb-slot .sf img, .sb-face-sm img {
    background: none !important;
    z-index: 2;
    position: relative;
}


/* --- FORCE FULL GOLD CARD BACKGROUND FOR FC 26 SQUAD BUILDER --- */
.sb-slot, .sb-player {
    position: relative;
    background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat !important;
    border-radius: 16px !important;
    border: 1.5px solid #d6b75c !important;
    overflow: hidden;
    z-index: 1;
}
.sb-slot .sf, .sb-face-sm {
    background: none !important;
}

/* --- FUT-STYLE CARD ART BACKGROUND --- */
.card-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 92px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('/img/fc/26/cards/1_gold.png') center center/cover no-repeat;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}
.card-art > * {
  position: relative;
  z-index: 2;
}

/* Remove previous global gold backgrounds */
.sb-slot, .sb-player {
  background: none !important;
  border-radius: 16px;
}

/* ------------------------------------------------------------------ */
/* Players Page: FC26 Player Detail Card                              */
/* ------------------------------------------------------------------ */
@font-face {
    font-family: "Cruyff Sans";
    src: url("/css/fonts/CruyffSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cruyff Sans";
    src: url("/css/fonts/CruyffSans-Medium.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cruyff Sans Condensed";
    src: url("/css/fonts/CruyffSansCondensed-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cruyff Sans Condensed";
    src: url("/css/fonts/CruyffSansCondensed-Medium.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FC Chemistry";
    src: url("/css/fonts/chem.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.fc26-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    container-type: inline-size;
}

.fc26-card {
    position: relative;
    width: min(100%, 344px);
    aspect-ratio: 799 / 1117;
    margin: 0 auto;
    font-family: "Cruyff Sans Condensed", "Cruyff Sans", Arial, sans-serif;
    color: #f9ecb7;
    transition: transform 0.18s ease;
    transform-origin: center center;
}

.fc26-card-wrap:hover .fc26-card {
    transform: scale(1.035);
}

.fc26-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.fc26-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 50% 58%, rgba(255, 244, 200, 0.08) 0%, rgba(255, 244, 200, 0) 28%);
    pointer-events: none;
}

.fc26-card-photo {
    position: absolute;
    left: 5.9%;
    top: 9.1%;
    width: 92.6%;
    z-index: 3;
    pointer-events: none;
}

.fc26-card--base .fc26-card-photo {
    left: 10.8%;
    top: 13.70%;
    width: 78.4%;
    height: 49.6%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.fc26-card-photo img {
    width: 100%;
    display: block;
    filter: grayscale(16%) contrast(1.09) brightness(1.02) drop-shadow(0 0.35cqi 0.35cqi rgba(0, 0, 0, 0.32));
}

.fc26-card--base .fc26-card-photo img {
    width: auto;
    height: 100%;
    max-width: none;
    filter: grayscale(4%) contrast(1.03) brightness(1.01) drop-shadow(0 0.22cqi 0.28cqi rgba(0, 0, 0, 0.2));
}

.fc26-card-topleft,
.fc26-card-ps-col,
.fc26-card-alts-col,
.fc26-card-meta-col,
.fc26-card-footer {
    position: absolute;
    z-index: 6;
}

.fc26-card-topleft {
    left: 14.52%;
    top: 23.01%;
    text-align: left;
}

.fc26-card--base .fc26-card-topleft {
    left: 12.05%;
    top: 22.5%;
    width: 13.4cqi;
    display: grid;
    justify-items: center;
    text-align: center;
}

.fc26-card-rating,
.fc26-card-pos,
.fc26-card-name,
.fc26-card-stats,
.fc26-card-alt-pos,
.fc26-card-meta-pill {
    color: #f9ecb7;
    text-shadow: 0 0.14cqi 0 rgba(0, 0, 0, 0.08);
}

.fc26-card--base.fc26-card--tone-gold .fc26-card-rating,
.fc26-card--base.fc26-card--tone-gold .fc26-card-pos,
.fc26-card--base.fc26-card--tone-gold .fc26-card-name,
.fc26-card--base.fc26-card--tone-gold .fc26-stat-lbl,
.fc26-card--base.fc26-card--tone-gold .fc26-stat-val {
    color: #2f2612;
    text-shadow: none;
}

.fc26-card--base.fc26-card--tone-silver .fc26-card-rating,
.fc26-card--base.fc26-card--tone-silver .fc26-card-pos,
.fc26-card--base.fc26-card--tone-silver .fc26-card-name,
.fc26-card--base.fc26-card--tone-silver .fc26-stat-lbl,
.fc26-card--base.fc26-card--tone-silver .fc26-stat-val {
    color: #1e2936;
    text-shadow: none;
}

.fc26-card--base.fc26-card--tone-bronze .fc26-card-rating,
.fc26-card--base.fc26-card--tone-bronze .fc26-card-pos,
.fc26-card--base.fc26-card--tone-bronze .fc26-card-name,
.fc26-card--base.fc26-card--tone-bronze .fc26-stat-lbl,
.fc26-card--base.fc26-card--tone-bronze .fc26-stat-val {
    color: #3f1f13;
    text-shadow: none;
}

.fc26-card-rating {
    font-size: 10.76cqi;
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.25cqi;
}

.fc26-card-pos {
    margin-top: 0.5cqi;
    margin-left: 1.5cqi;
    font-size: 5.63cqi;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
}

.fc26-card--base .fc26-card-pos {
    margin-top: 0.24cqi;
    margin-left: 0;
    font-size: 5.42cqi;
    line-height: 0.92;
}

.fc26-card-ps-col {
    left: 4.38%;
    top: 41.27%;
    display: grid;
    gap: 0.9cqi;
}

.fc26-card-ps-icon {
    width: 13.5cqi;
    height: 13.5cqi;
    display: grid;
    place-items: center;
}

.fc26-card-ps-icon .fc26-inline-ps {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    line-height: 0;
}

.fc26-card-ps-icon .fc26-inline-ps__layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: block;
    transform: translate(-50%, -50%);
}

.fc26-card-ps-icon .fc26-inline-ps__layer svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translate(-50%, -50%);
}

.fc26-card-ps-icon .fc26-inline-ps__layer--fg svg {
    filter: drop-shadow(0 0.2cqi 0.35cqi rgba(0, 0, 0, 0.45));
}

.fc26-card-ps-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0.2cqi 0.35cqi rgba(0, 0, 0, 0.45));
}

.fc26-card-alts-col,
.fc26-card-meta-col {
    right: 3.88%;
    display: grid;
    gap: 1.13cqi;
    justify-items: end;
}

.fc26-card-alts-col {
    top: 25.87%;
}

.fc26-card-meta-col {
    top: 58.55%;
}

.fc26-card-alt-pos,
.fc26-card-meta-pill {
    min-width: 12.02cqi;
    height: 7.13cqi;
    padding: 0 1.55cqi;
    border: 0.5cqi solid #f5e5a6;
    border-radius: 1.88cqi;
    background: #15506c;
    box-shadow: inset 0 0 0 0.12cqi rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-size: 5.05cqi;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.03cqi;
    white-space: nowrap;
}

.fc26-card-footer {
    left: 15.77%;
    top: 65.62%;
    width: 71.34%;
    text-align: center;
}

.fc26-card-name {
    margin: 0 auto 2.7cqi;
    width: 38.6%;
    font-size: 7.63cqi;
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.13cqi;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc26-card-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 4.25%;
    row-gap: 1cqi;
    align-items: end;
}

.fc26-stat-lbl,
.fc26-stat-val {
    display: block;
    text-align: left;
    white-space: nowrap;
}

.fc26-stat-lbl {
    font-size: 3.88cqi;
    line-height: 1;
    font-weight: 700;
}

.fc26-stat-val {
    font-size: 6.51cqi;
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.13cqi;
}

.fc26-card-emblems {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.25cqi;
    height: 7.52cqi;
    margin-top: 3.1cqi;
}

.fc26-card-emblems img {
    width: auto;
    max-width: 10.4cqi;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0.18cqi 0.35cqi rgba(0, 0, 0, 0.35));
}

@supports not (font-size: 1cqi) {
    .fc26-card-rating { font-size: 2.65rem; }
    .fc26-card-pos { font-size: 1.38rem; }
    .fc26-card-alt-pos,
    .fc26-card-meta-pill { font-size: 1.25rem; }
    .fc26-card-name { font-size: 1.92rem; }
    .fc26-stat-lbl { font-size: 0.98rem; }
    .fc26-stat-val { font-size: 1.62rem; }
}

@media (max-width: 575px) {
    .fc26-card {
        width: min(100%, 340px);
    }
}
