/* Shared auction player card (MyResult page + Results page download). */
.bp-pcard {
    position: relative;
    width: 440px;
    max-width: 100%;
    border-radius: 24px;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0c0728;
    background-image:
        var(--pc-tint, linear-gradient(170deg, rgba(109,40,217,0.58) 0%, rgba(76,29,149,0.35) 35%, rgba(46,16,101,0.55) 70%, rgba(10,4,28,0.88) 100%)),
        url('../images/player-card-bg.webp');
    background-size: cover, cover;
    background-position: center, center top;
    background-repeat: no-repeat;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    image-rendering: -webkit-optimize-contrast;
}
.bp-pcard *, .bp-pcard *::before, .bp-pcard *::after { box-sizing: border-box; }

/* Header: Tournament logo on left, Tournament Name + Season in the remaining space */
.bp-pcard-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 8px;
}
.bp-pcard-tlogo {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 45%, #fef3c7 75%, #b45309 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.bp-pcard-tlogo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    color: #d97706;
    font-size: 30px;
}
.bp-pcard-tinfo {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.bp-pcard-tname {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    word-break: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.bp-pcard-tsub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #facc15;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.bp-pcard-tsub-text {
    min-width: 0;
    word-break: break-word;
}
.bp-pcard-tline {
    flex: 1;
    max-width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0), #facc15);
}
.bp-pcard-tline.is-right {
    background: linear-gradient(90deg, #facc15, rgba(250, 204, 21, 0));
}

/* Unified Central Card Frame */
.bp-pcard-frame {
    margin: 6px 18px 0;
    border-radius: 20px;
    border: 2.5px solid #facc15;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(254, 240, 138, 0.35);
    background: #ffffff;
    position: relative;
    overflow: visible;
}

/* Photo Section - 330px height */
.bp-pcard-photo {
    height: 330px;
    width: 100%;
    border-radius: 17px 17px 0 0;
    overflow: hidden;
    position: relative;
    background-color: #0f172a;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: -webkit-optimize-contrast;
}
.bp-pcard-photo-ph {
    font-size: 96px;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.bp-pcard-icontag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffbeb 0%, #fde047 50%, #eab308 100%);
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Status Banner Ribbon overlapping Photo & Plaque */
.bp-pcard-banner-wrap {
    position: relative;
    z-index: 5;
    margin: -34px -16px -24px;
    pointer-events: none;
}
.bp-pcard-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: rotate(-2.2deg);
    border-radius: 38% 12% 36% 10% / 28% 54% 20% 64%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.bp-pcard-banner-text {
    display: block;
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1;
    text-transform: uppercase;
}

/* Sold banner */
.bp-pcard-banner.is-sold {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 6px, rgba(0, 0, 0, 0.14) 6px 7px, transparent 7px 11px),
        linear-gradient(90deg, rgba(30, 10, 60, 0) 0%, rgba(46, 16, 101, 0.98) 5%, #4c1d95 18%, #581c87 50%, #4c1d95 82%, rgba(46, 16, 101, 0.98) 95%, rgba(30, 10, 60, 0) 100%);
    padding: 12px 28px 10px;
}
.bp-pcard-banner.is-sold .bp-pcard-banner-text {
    font-size: 3.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 3px;
    color: #fde047;
    text-shadow: 0 3px 0 #ca8a04, 0 6px 14px rgba(0, 0, 0, 0.55);
}

/* Icon banner */
.bp-pcard-banner.is-icon {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 6px, rgba(120, 70, 0, 0.1) 6px 7px, transparent 7px 11px),
        linear-gradient(90deg, rgba(202, 138, 4, 0) 0%, #ca8a04 5%, #eab308 15%, #fde047 38%, #fffbeb 50%, #facc15 72%, #d97706 95%, rgba(217, 119, 6, 0) 100%);
    padding: 10px 24px 8px;
}
.bp-pcard-banner.is-icon .bp-pcard-banner-text {
    font-size: 2.6rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1.5px;
    color: #0b132b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.bp-pcard-crown {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2.5px solid #0b132b;
    background: radial-gradient(circle at 35% 30%, #1e1b4b 0%, #0b132b 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.bp-pcard-crown svg { display: block; }

/* Unsold banner */
.bp-pcard-banner.is-unsold {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 6px, rgba(15, 23, 42, 0.08) 6px 7px, transparent 7px 11px),
        linear-gradient(90deg, rgba(71, 85, 105, 0) 0%, #64748b 5%, #94a3b8 18%, #e2e8f0 50%, #94a3b8 82%, #64748b 95%, rgba(71, 85, 105, 0) 100%);
    padding: 12px 28px 10px;
}
.bp-pcard-banner.is-unsold .bp-pcard-banner-text {
    font-size: 3.4rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 3px;
    color: #0f172a;
}

/* Pending banner */
.bp-pcard-banner.is-pending {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 6px, rgba(15, 23, 42, 0.1) 6px 7px, transparent 7px 11px),
        linear-gradient(90deg, rgba(30, 64, 175, 0) 0%, #1e40af 5%, #3b82f6 20%, #93c5fd 50%, #3b82f6 80%, #1e40af 95%, rgba(30, 64, 175, 0) 100%);
    padding: 12px 28px 10px;
}
.bp-pcard-banner.is-pending .bp-pcard-banner-text {
    font-size: 3.4rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 3px;
    color: #ffffff;
}

/* White Plaque Lower Portion */
.bp-pcard-plaque {
    background: #ffffff;
    border-radius: 0 0 17px 17px;
    padding: 32px 14px 14px;
    position: relative;
    z-index: 2;
    color: #0f172a;
}
.bp-pcard-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: #0b132b;
    word-break: break-word;
    margin-bottom: 12px;
}
.bp-pcard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f1f4f9;
}

/* Left: Sold Points */
.bp-pcard-points {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}
.bp-pcard-coin {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}
.bp-pcard-points-content {
    min-width: 0;
}
.bp-pcard-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}
.bp-pcard-points-val {
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 0.95;
    color: #4c1d95;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.bp-pcard-points-val.is-lg-val {
    font-size: 1.8rem;
    letter-spacing: -0.6px;
}
.bp-pcard-points-val.is-xl-val {
    font-size: 1.55rem;
    letter-spacing: -0.6px;
}

/* Middle Divider */
.bp-pcard-divider {
    width: 1.5px;
    height: 48px;
    flex-shrink: 0;
    background: #cbd5e1;
    margin: 0 2px;
}

/* Right: Sold To Club */
.bp-pcard-club {
    flex: 1.45;
    min-width: 0;
}
.bp-pcard-club-text {
    min-width: 0;
}
.bp-pcard-club-body {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}
.bp-pcard-club-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #1e3a8a;
    font-size: 32px;
}
.bp-pcard-club-name {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 8px;
    background: #0d285a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: left;
}

/* Assigned / Icon Player: Single centered club card */
.bp-pcard-row.is-club-only {
    padding: 12px 14px;
}
.bp-pcard-row.is-club-only .bp-pcard-club {
    flex: 0 1 auto;
    width: 100%;
}
.bp-pcard-row.is-club-only .bp-pcard-club-text {
    text-align: center;
}
.bp-pcard-row.is-club-only .bp-pcard-club-body {
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}
.bp-pcard-row.is-club-only .bp-pcard-club-logo {
    width: 52px;
    height: 52px;
    font-size: 38px;
}
.bp-pcard-row.is-club-only .bp-pcard-club-name {
    flex: 0 1 auto;
    min-width: 170px;
    font-size: 0.98rem;
    padding: 8px 16px;
    text-align: center;
}

/* Footer Branding */
.bp-pcard-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 16px 20px;
}
.bp-pcard-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-pcard-brand-img {
    display: block;
    height: 28px;
    width: auto;
}
.bp-pcard-site {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.85);
}

/* Off-screen exports (.is-export) lock fixed 440px desktop dimensions */
.bp-pcard.is-export {
    width: 440px !important;
    max-width: 440px !important;
    border-radius: 24px !important;
}

/* Mobile Responsiveness for preview cards */
@media (max-width: 520px) {
    .bp-pcard:not(.is-export) {
        width: 100%;
        border-radius: 20px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-head {
        padding: 14px 14px 6px;
        gap: 10px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-tlogo {
        width: 64px;
        height: 64px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-tname {
        font-size: 1.1rem;
    }
    .bp-pcard:not(.is-export) .bp-pcard-frame {
        margin: 4px 12px 0;
        border-radius: 16px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-photo {
        height: 280px;
        border-radius: 13px 13px 0 0;
    }
    .bp-pcard:not(.is-export) .bp-pcard-banner-wrap {
        margin: -30px -10px -18px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-banner.is-sold .bp-pcard-banner-text {
        font-size: 3rem;
    }
    .bp-pcard:not(.is-export) .bp-pcard-banner.is-icon .bp-pcard-banner-text {
        font-size: 2.1rem;
    }
    .bp-pcard:not(.is-export) .bp-pcard-crown {
        width: 40px;
        height: 40px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-plaque {
        border-radius: 0 0 13px 13px;
        padding: 26px 10px 10px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-name {
        font-size: 1.6rem;
    }
    .bp-pcard:not(.is-export) .bp-pcard-points-val {
        font-size: 1.8rem;
    }
    .bp-pcard:not(.is-export) .bp-pcard-points-val.is-lg-val {
        font-size: 1.55rem;
    }
    .bp-pcard:not(.is-export) .bp-pcard-club-logo {
        width: 40px;
        height: 40px;
    }
    .bp-pcard:not(.is-export) .bp-pcard-club-name {
        font-size: 0.82rem;
        padding: 6px 8px;
    }
}
