/* ─── Player profile (CricX-inspired, CricFly branding) ─── */
.player-profile {
    background: #fafafa;
}

.player-profile__hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    margin-top: -1px;
}

.player-profile__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(18px) brightness(0.45);
    transform: scale(1.08);
}

.player-profile__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 27, 27, 0.92) 0%, rgba(225, 6, 0, 0.75) 55%, rgba(176, 141, 87, 0.55) 100%);
}

.player-profile__hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 420px;
    padding-top: 120px;
    padding-bottom: 48px;
}

.player-profile__hero-content {
    flex: 1;
    max-width: 560px;
    color: #fff;
}

.player-profile__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b08d57;
    margin-bottom: 0.75rem;
}

.player-profile__name {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.player-profile__role {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b08d57;
    margin-bottom: 1.75rem;
}

.player-profile__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.player-profile__btn {
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
}

.player-profile__hero-photo {
    flex-shrink: 0;
    width: 240px;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    border: 5px solid #b08d57;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.player-profile__hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.player-profile__body {
    padding: 2.5rem 15px 4rem;
}

.player-profile__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid rgba(176, 141, 87, 0.35);
    padding-bottom: 0.5rem;
}

.player-profile__tab {
    border: none;
    background: transparent;
    color: #1b1b1b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px 999px 0 0;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.player-profile__tab:hover {
    color: #e10600;
}

.player-profile__tab.is-active {
    background: #e10600;
    color: #fff;
}

.player-profile__panel {
    display: none;
}

.player-profile__panel.is-active {
    display: block;
    animation: playerProfileFade 0.35s ease;
}

@keyframes playerProfileFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-profile__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .player-profile__grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .player-profile__grid--overview {
        align-items: start;
    }

    .player-profile__card--full {
        grid-column: 1 / -1;
    }
}

.player-profile__card--highlights {
    display: flex;
    flex-direction: column;
}

.player-profile__highlight-player {
    display: grid;
    gap: 0.85rem;
}

.player-profile__highlight-stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.player-profile__highlight-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    object-fit: contain;
    background: #000;
}

.player-profile__highlight-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1b1b1b;
}

.player-profile__highlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(27, 27, 27, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.player-profile__highlight-nav:hover {
    background: #e10600;
}

.player-profile__highlight-nav--prev {
    left: 0.65rem;
}

.player-profile__highlight-nav--next {
    right: 0.65rem;
}

.player-profile__highlight-dots {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.player-profile__highlight-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}

.player-profile__highlight-dot.is-active {
    background: #e10600;
}

.player-profile__highlight-count {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(27, 27, 27, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.player-profile__videos--all {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.player-profile__card {
    background: #fff;
    border-radius: 18px;
    border: 2px solid rgba(176, 141, 87, 0.45);
    padding: 1.75rem;
    box-shadow: 0 12px 30px rgba(10, 10, 10, 0.08);
}

.player-profile__card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1b1b1b;
    margin: 0 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 3px solid #e10600;
    display: inline-block;
}

.player-profile__subheading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #b08d57;
}

.player-profile__table {
    width: 100%;
    border-collapse: collapse;
}

.player-profile__table th,
.player-profile__table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.player-profile__table th {
    width: 38%;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b08d57;
    font-weight: 700;
}

.player-profile__table td {
    color: #1b1b1b;
    font-weight: 500;
}

.player-profile__prose {
    color: #1b1b1b;
    line-height: 1.75;
    font-size: 1rem;
}

.player-profile__empty {
    color: rgba(27, 27, 27, 0.65);
    font-style: italic;
    margin: 0;
}

.player-profile__stat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.player-profile__stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: #e10600;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.player-profile__stat-link:hover {
    background: #b08d57;
    color: #1b1b1b !important;
    transform: translateY(-2px);
}

.player-profile__stat-note {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(27, 27, 27, 0.7);
}

.player-profile__footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(176, 141, 87, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.player-profile__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e10600 !important;
    font-weight: 600;
    text-decoration: none;
}

.player-profile__back:hover {
    color: #b08d57 !important;
}

.player-profile__updated {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(27, 27, 27, 0.55);
}

.player-profile__videos {
    display: grid;
    gap: 1.5rem;
}

.player-profile__video-item {
    display: grid;
    gap: 0.75rem;
}

.player-profile__video-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1b1b1b;
}

.player-profile__video {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    background: #000;
}

@media (max-width: 768px) {
    .player-profile__hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
    }

    .player-profile__hero-photo {
        width: 180px;
        height: 225px;
    }

    .player-profile__hero-actions {
        justify-content: center;
    }

    .player-profile__tabs {
        justify-content: center;
    }
}

@media print {
    .premium-header,
    .premium-footer,
    .player-profile__tabs,
    .player-profile__hero-actions,
    .player-profile__footer .btn,
    .scroll-up {
        display: none !important;
    }

    .player-profile__panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .player-profile__hero {
        min-height: auto;
    }

    .player-profile__hero-inner {
        min-height: auto;
        padding: 1rem;
    }
}
