
/**
 * Player Details Page - Enhanced Styling
 * Purple/Gold sleek design with modern glassmorphism effects
 */

/* Main Container */
.player-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 1.5rem 2rem;
    position: relative;
}

/* Animated background particles - optimized */
.player-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(222, 166, 81, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* Removed pulseGlow animation - static background is smoother */

/* Loading State */
.loading-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-secondary);
}

.loading-player i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    /* Removed animation - keeping only transitions */
    /* Removed drop-shadow filter - heavy cost on spinning element */
}

/* Removed spin animation */

/* Removed colorShift animation - reduces GPU load */

.loading-player p {
    font-size: 1.1rem;
    font-weight: 500;
    /* Removed animation - keeping only transitions */
}

/* Removed pulse animation */

/* Player Details Flexbox - 3 Column Layout */
.player-details-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Removed animation - keeping only transitions */
    gap: 2rem;
}

.player-details-grid > .player-info-section:nth-child(1) {
    flex: 1 1 35%;
    /* Removed animation - keeping only transitions */
}

.player-details-grid > .player-info-section:nth-child(2) {
    flex: 1 1 33%;
    /* Removed animation - keeping only transitions */
}

.player-details-grid > .player-info-section:nth-child(3) {
    flex: 1 1 27%;
    /* Removed animation - keeping only transitions */
}

/* Removed fadeInUp, fadeInLeft, fadeInRight, fadeIn animations */

/* Info Section Cards */
.player-info-section {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.08) 0%, transparent 40%, transparent 60%, rgba(240, 176, 74, 0.08) 100%), linear-gradient(135deg, rgba(200, 200, 210, 0.10) 0%, rgba(180, 180, 190, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Additional hover glow layer (non-text) to show motion without scaling text */
.player-info-section .hover-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 50% 0%, rgba(250, 213, 139, 0.12), rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
}

.player-info-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(222, 155, 53, 0.8), rgba(240, 176, 74, 0.8), transparent);
}

.player-info-section:hover .hover-glow {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.02);
}

/* Removed shimmer animation - constant opacity changes cause repaints */

/* Ensure content stays above glow */
.player-info-section > * {
    position: relative;
    z-index: 1;
}

/* Removed per-child animated ::after - heavy blur animations cause lag */

.player-info-section:hover {
    /* Use 3D transform to maintain consistent compositing */
    /* Use 2D translate only to preserve subpixel text AA */
    transform: translateY(-8px);
    border-color: rgba(222, 155, 53, 0.25);
}


.player-info-section h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 0 10px rgba(250, 206, 139, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 0 1.75rem 0;
    padding-bottom: 0.75rem;
}

.player-info-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(222, 166, 81, 0.5);
}

.player-info-section h3 i {
    vertical-align: bottom;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(250, 209, 139, 0.15));
    transition: all 0.3s ease;
}

/* Removed iconGlow animation - reduces constant repainting */

/* Player Profile Section */
.player-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(23, 26, 33, 0.25)!important;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.player-profile.online {
    border: 1px solid rgba(141, 255, 99, 0.2);

}
/* Online State (Green) */
.player-profile.online::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 125, 2, 0.1) 0%, transparent 100%);
    pointer-events: none; 
}
.player-profile.online:hover {
    filter: brightness(1.05);
    border-color: rgba(116, 221, 109, 0.3);
    box-shadow: 0 5px 25px rgba(105, 222, 81, 0.2);
}
.player-profile.online::after {
    background: linear-gradient(180deg, rgb(149, 255, 149), green);
    box-shadow: 0 0 2em 0 rgb(94, 194, 94); 
}

/* Offline State (Red) */
.player-profile.offline {
    border: 1px solid rgba(255, 108, 108, 0.2);
}

.player-profile.offline:hover {
    filter: brightness(1.05);
    border-color: rgba(221, 109, 109, 0.3);
    box-shadow: 0 5px 25px rgba(222, 81, 81, 0.2);
}

.player-profile.offline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 0, 0, 0.1) 0%, transparent 100%);
    pointer-events: none; 
}

.player-profile.offline::after {
    background: linear-gradient(180deg, rgb(255, 149, 149), rgb(200, 0, 0));
    box-shadow: 0 0 2em 0 rgb(194, 94, 94); 
}

.player-profile .skill-badge {
    margin-top: 1.5rem;
}

.player-profile::after {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 6px;
    background: linear-gradient(180deg, rgb(149, 255, 149), green);
    transition: opacity 0.3s;  
    box-shadow: 0 0 2em 0 rgb(94, 194, 94); 
}

/* Removed rotate animation */

.player-stat-item:last-child {
    margin-bottom: 1em;
}

.player-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.player-country:hover {
    border-color: rgba(222, 166, 81, 0.3);
    transform: scale(1.05);
}

.player-country img {
    width: 25px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.player-country span {
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.player-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid transparent;
    background: linear-gradient(rgba(20, 20, 30, 1), rgba(20, 20, 30, 1)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    box-shadow: 
        0 0 30px rgba(222, 166, 81, 0.3),
        0 0 60px rgba(245, 158, 11, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.player-avatar:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 40px rgba(250, 218, 139, 0.5),
        0 0 70px rgba(245, 158, 11, 0.2),
        0 12px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.player-profile .player-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.25rem 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    max-height: 35px;
}

/* Removed textShine animation - reduces constant filter repainting */

.player-profile .player-rank {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
    transition: all 0.3s ease;
}


/* Rank Display Section */
.player-rank-display {
   background: rgba(23, 26, 33, 0.25);
    border-radius: 12px;
    padding: 1.5rem 1rem 1.5rem 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 207, 136, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    will-change: transform;
}

.player-rank-display::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px; /* change from width to height */
    background: linear-gradient(90deg, transparent, #ffe589, var(--primary), transparent);
}

.player-rank-display::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 231, 157, 0.1) 0%, transparent 50%);
    pointer-events: none; 
}

.player-rank-display > * {
    position: relative;
    z-index: 1;
}


.player-rank-display:hover {
    filter: brightness(1.05);
    border-color: rgba(221, 176, 109, 0.3);
    box-shadow: 0 5px 25px rgba(219, 173, 104, 0.2);
    transform: translateY(-2px);

}

.rank-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.rank-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.rank-image:hover {
    transform: translateY(-5px);
}

.rank-image img {
    width: 90px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.rank-image:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 25px rgba(222, 166, 81, 0.15));
}

h1, h2, h3, h4, h5, h6, p, div { 
    cursor: default;
}
#next-rank-img  {
    opacity: 0.3;
}

.rank-image p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    letter-spacing: 2px;

}

.rank-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    transition: all 0.3s ease;
}

.rank-progress p {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-align: left;
    transition: all 0.3s ease;
}
.player-xp-display { 
    width: 100%;
    margin-top: 1rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.number-container {
    background-size: 100px;
    height: 40px;
    width: 120px;
    font-size: 1rem;
    justify-self: start;
}

.xp-left {
    margin-bottom:0.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    color:var(--text-primary);
    transition: all 0.3s ease;
}
.rank-progress-bar {
    width: 100%;
    height: 20px;
    background: rgb(30, 30, 45);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 225, 137, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #776243 0%, 
        #c19f6c 50%, 
        #776243 100%);
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 
        0 0 20px rgba(222, 166, 81, 0.7),
        0 0 35px rgba(245, 158, 11, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Removed progressShine and slideProgress animations - heavy performance cost */

.rank-progress-text {
    text-wrap: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--font-display);
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    z-index: 2;
}

/* Stat Container */
.player-stat-container {
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(220, 173, 103, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%);
    border-radius: 0.75em;
    border: 1px solid #333;
    padding: 1em;
    overflow: hidden;
}

/* MVP */
.player-stat-item.mvp {
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.65rem 1.75rem;
}

.player-stat-item.mvp .player-stat-label {
    color:var(--color-gray-lighter);
    font-size: 1rem;
}

.player-stat-item.mvp .player-stat-label i {
    color:rgb(255, 230, 87);
}

.player-stat-item.mvp .player-stat-value.highlight {
    color: rgb(255, 227, 71);
    font-size: 1.15rem;
}

/* Rounds Won */
.player-stat-item.rounds {
    border: 1px solid rgba(255, 193, 7, 0.2);
    padding: 0.65rem 1.75rem;

}

.player-stat-item.rounds .player-stat-label {
    color:var(--color-gray-lighter);

        font-size: 1rem;

}

.player-stat-item.rounds .player-stat-label i {
    color:rgb(255, 193, 7);
}

.player-stat-item.rounds .player-stat-value.highlight {
    color: rgb(255, 193, 7);
    font-size: 1.15rem;
}

/* planted */
.player-stat-item.planted {
    border: 1px solid rgba(251, 255, 142, 0.2);
    padding: 0.65rem 1.75rem;

}

.player-stat-item.planted .player-stat-label {
    color:var(--color-gray-lighter);

    font-size: 1rem;
}

.player-stat-item.planted .player-stat-label i {
    color:rgb(255, 242, 126);
}

.player-stat-item.planted .player-stat-value.highlight {
    color: rgb(255, 242, 129);
    font-size: 1.15rem;
}

/* Exploded */
.player-stat-item.exploded {
    border: 1px solid rgba(255, 146, 119, 0.2);
    padding: 0.65rem 1.75rem;

}

.player-stat-item.exploded .player-stat-label {
    color:var(--color-gray-lighter);

    font-size: 1.rem;
}

.player-stat-item.exploded .player-stat-label i {
    color:rgb(244, 108, 54);
}

.player-stat-item.exploded .player-stat-value.highlight {
    color: rgb(244, 92, 54);
    font-size: 1.15rem;
}

/* Defused */
.player-stat-item.defused {
    border: 1px solid rgba(108, 189, 255, 0.2);
    padding: 0.65rem 1.75rem;

}

.player-stat-item.defused .player-stat-label {
    color:var(--color-gray-lighter);

    font-size: 1rem;
}

.player-stat-item.defused .player-stat-label i {
    color:rgb(94, 183, 255);
}

.player-stat-item.defused .player-stat-value.highlight {
    color: rgb(106, 188, 255);
    font-size: 1.15rem;
}

/* Kills */
.player-stat-category .player-stat-item.kills {
    border: 1px solid rgba(125, 255, 129, 0.2);
}

.player-stat-category .player-stat-item.kills .player-stat-label {
    color:rgb(133, 255, 121);
}

.player-stat-category .player-stat-item.kills .player-stat-label i {
    color:rgb(132, 255, 120);
}

.player-stat-category .player-stat-item.kills .player-stat-value.highlight {
    color: rgb(134, 255, 123);
}

/* Deaths */
.player-stat-category .player-stat-item.deaths {
    border: 1px solid rgba(255, 129, 129, 0.2);
}

.player-stat-category .player-stat-item.deaths .player-stat-label {
    color: rgb(255, 110, 110);
}

.player-stat-category .player-stat-item.deaths .player-stat-label i {
    color: rgb(255, 133, 133);
}

.player-stat-category .player-stat-item.deaths .player-stat-value.highlight {
    color: rgb(255, 130, 130);
}

/* Assists */
.player-stat-category .player-stat-item.assists {
    border: 1px solid rgba(255, 248, 143, 0.2);
}

.player-stat-category .player-stat-item.assists .player-stat-label {
    color: rgb(255, 249, 144);
}

.player-stat-category .player-stat-item.assists .player-stat-label i {
    color: rgb(255, 249, 144);
}

.player-stat-category .player-stat-item.assists .player-stat-value.highlight {
    color: rgb(255, 246, 146);
}

/* Headshots */
.player-stat-category .player-stat-item.headshots {
    border: 1px solid rgba(255, 183, 127, 0.2);
}

.player-stat-category .player-stat-item.headshots .player-stat-label {
    color: rgb(255, 177, 108);
}

.player-stat-category .player-stat-item.headshots .player-stat-label i {
    color: rgb(255, 176, 107);
}

.player-stat-category .player-stat-item.headshots .player-stat-value.highlight {
    color: rgb(255, 180, 114);
}

/* kdratio */
.player-stat-category .player-stat-item.kdratio {
    border: 1px solid rgba(165, 126, 255, 0.2);
}

.player-stat-category .player-stat-item.kdratio .player-stat-label {
    color: rgb(174, 119, 255);
}

.player-stat-category .player-stat-item.kdratio .player-stat-label i {
    color: rgb(175, 125, 255);
}

.player-stat-category .player-stat-item.kdratio .player-stat-value.highlight {
    color: rgb(178, 126, 255);
}

/* shots */
.player-stat-category .player-stat-item.shots {
    border: 1px solid rgba(223, 255, 125, 0.2);
}

.player-stat-category .player-stat-item.shots .player-stat-label {
    color: rgb(228, 255, 120);
}

.player-stat-category .player-stat-item.shots .player-stat-label i {
    color: rgb(226, 255, 121);
}

.player-stat-category .player-stat-item.shots .player-stat-value.highlight {
    color: rgb(230, 255, 118);
}

/* Hits */
.player-stat-category .player-stat-item.hits {
    border: 1px solid rgba(123, 196, 255, 0.2);
}

.player-stat-category .player-stat-item.hits .player-stat-label {
    color: rgb(118, 203, 255);
}

.player-stat-category .player-stat-item.hits .player-stat-label i {
    color: rgb(119, 203, 255);
}

.player-stat-category .player-stat-item.hits .player-stat-value.highlight {
    color: rgb(116, 204, 255);
}

/* Damage */
.player-stat-category .player-stat-item.damage {
    border: 1px solid rgba(255, 124, 196, 0.2);
}

.player-stat-category .player-stat-item.damage .player-stat-label {
    color: rgb(255, 122, 204);
}

.player-stat-category .player-stat-item.damage .player-stat-label i {
    color: rgb(255, 121, 204);
}

.player-stat-category .player-stat-item.damage .player-stat-value.highlight {
    color: rgb(255, 111, 202);
}

/* Accuracy */
.player-stat-category .player-stat-item.accuracy {
    border: 1px solid rgba(255, 213, 122, 0.2);
}

.player-stat-category .player-stat-item.accuracy .player-stat-label {
    color: rgb(255, 220, 117);
}

.player-stat-category .player-stat-item.accuracy .player-stat-label i {
    color: rgb(255, 217, 119);
}

.player-stat-category .player-stat-item.accuracy .player-stat-value.highlight {
    color: rgb(255, 220, 114);
}

/* First Login */
.player-stat-category .player-stat-item.first-login {
    border: 1px solid rgba(134, 255, 119, 0.2);
}

.player-stat-category .player-stat-item.first-login .player-stat-label {
    color: rgb(143, 255, 121);
}

.player-stat-category .player-stat-item.first-login .player-stat-label i {
    color: rgb(138, 255, 114);
}

.player-stat-category .player-stat-item.first-login .player-stat-value.highlight {
    color: rgb(132, 255, 111);
}

/* Last Login */
.player-stat-category .player-stat-item.last-login {
    border: 1px solid rgba(113, 130, 255, 0.2);
}

.player-stat-category .player-stat-item.last-login .player-stat-label {
    color: rgb(116, 139, 255);
}

.player-stat-category .player-stat-item.last-login .player-stat-label i {
    color: rgb(117, 140, 255);
}

.player-stat-category .player-stat-item.last-login .player-stat-value.highlight {
    color: rgb(116, 136, 255);
}

/* Played Time */
.player-stat-category .player-stat-item.played-time {
    border: 1px solid rgba(126, 238, 255, 0.2);
}

.player-stat-category .player-stat-item.played-time .player-stat-label {
    color: rgb(125, 242, 255);
}

.player-stat-category .player-stat-item.played-time .player-stat-label i {
    color: rgb(127, 238, 255);
}

.player-stat-category .player-stat-item.played-time .player-stat-value.highlight {
    color: rgb(125, 244, 255);
}

.player-stat-item {
    margin: auto 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.75rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(222, 166, 81, 0.15);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.55rem;
    font-family: var(--font-display);

}

.player-stat-category.mvp .player-stat-item {
    margin-bottom: 0.55rem;
}

.player-stat-category.mvp .player-stat-item:last-child {
    margin-bottom: 1rem;
}

.player-stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.player-stat-item:hover::after {
    left: 100%;
}

/* Generic hover for items without specific class */
.player-stat-item:hover {
    background: 
        linear-gradient(135deg, rgba(222, 166, 81, 0.18) 0%, rgba(0, 0, 0, 0.25) 100%);
    border-color: rgba(222, 166, 81, 0.45);
    transform: translateX(10px);
}

.player-stat-item:hover::before {
    opacity: 1;
}

.player-stat-label {
    display: flex;
    text-transform: uppercase;
    align-items: center;
    gap: 0.5rem;
    color: white!important;
    font-weight: 400;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    font-size: 1rem;

}

.player-stat-item:hover .player-stat-label {
    color: var(--text-primary);
}

.player-stat-category.mvp .player-stat-label {
    font-size: 1.1rem;
}
.player-stat-category.mvp .player-stat-label i {
    font-size: 1rem;
}
.player-stat-label i {
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.player-stat-item:hover .player-stat-label i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(222, 166, 81, 0.8));
}

.player-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: all 0.3s ease;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1px;
}

.player-stat-item:hover .player-stat-value {
    transform: scale(1.1);
}

.player-stat-value.highlight {
    color: var(--accent);
}
.admin-section:nth-child(2) { border: 1px solid rgba(87, 246, 59, 0.2);border-top: 2px solid rgba(34, 197, 94, 0.6); }
.admin-section:nth-child(2) h4 { color: rgba(134, 239, 172, 0.8); }
.admin-section:nth-child(2) h4 i { color: #22c55e; }
.admin-section:nth-child(2)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0px;
    background: linear-gradient(135deg, rgba(114, 255, 101, 0.1) 0%, transparent 50%);
}
.admin-section:nth-child(2) .admin-btn {
    border: 1px solid rgba(59, 246, 78, 0.3);
    border-left: 2px solid rgba(62, 246, 59, 0.8);
    background:  rgba(62, 199, 44, 0.1);
}

.admin-section:nth-child(2) .admin-btn:hover {
    background: rgba(255, 194, 95, 0.1);
}

.player-stat-value.success {
    color: #10b981;
    text-shadow: 
        0 0 15px rgba(16, 185, 129, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.player-stat-value.danger {
    color: var(--danger);
    text-shadow: 
        0 0 15px rgba(239, 68, 68, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Stat Categories */
.player-stat-category {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(23, 26, 33, 0.25)!important;
    border-radius: 16px;
    border: 1px solid rgba(255, 207, 136, 0.2);
    padding: 1.5em 1.25em;
    overflow: hidden;
    transition: all 0.3s ease;
}

.player-stat-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 231, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.player-stat-category::before {
    content: '';
    position: absolute;
    left: 0;
    top:0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
    transition: opacity 0.3s ease;
}

.player-stat-category.kills {
    border: 1px solid rgba(255, 108, 108, 0.2);
}

.player-stat-category.kills:hover {
    border-color: rgba(255, 98, 98, 0.3);
    box-shadow: 0 5px 25px rgba(255, 95, 95, 0.2);
}

.player-stat-category.kills::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 138, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.player-stat-category.kills .player-stat-category-title i {
    color: #ff8989;
    filter: drop-shadow(0 0 8px rgba(250, 139, 139, 0.6));

}

.player-stat-category.kills::before {
    background: linear-gradient(90deg,transparent, #ff8989, var(--primary), transparent);
}

.player-stat-category.accuracy {
    border: 1px solid rgba(116, 216, 82, 0.2);
}
.player-stat-category.accuracy:hover {
    border-color: rgba(158, 221, 109, 0.3);
    box-shadow: 0 5px 25px rgba(154, 219, 104, 0.2);
}

.player-stat-category.accuracy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(194, 255, 192, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.player-stat-category.accuracy .player-stat-category-title i {
    color: #93ff89;
    filter: drop-shadow(0 0 8px rgba(150, 250, 139, 0.6));

}

.player-stat-category.accuracy::before {
    background: linear-gradient(90deg,transparent, #aaff89, var(--primary), transparent);
}

.player-stat-category.session {
    border: 1px solid rgba(53, 171, 222, 0.2);

}

.player-stat-category.session:hover {
    border-color: rgba(109, 187, 221, 0.3);
    box-shadow: 0 5px 25px rgba(104, 165, 219, 0.2);
}

.player-stat-category.session::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192, 229, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.player-stat-category.session .player-stat-category-title i {
    color: #89dcff;
    filter: drop-shadow(0 0 8px rgba(139, 200, 250, 0.6));

}

.player-stat-category.session::before {
    background: linear-gradient(90deg,transparent, #89ccff, var(--primary), transparent);
}

.player-stat-category.mvp::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 231, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.player-stat-category.mvp .player-stat-category-title i {
    color: #ffd789;
    filter: drop-shadow(0 0 8px rgba(255, 243, 139, 0.6));
}

.player-stat-category.mvp::before {
    background: linear-gradient(90deg, transparent, #ffe589, var(--primary), transparent);
}

.player-stat-category:last-child {
    margin-bottom: 0;
}

.player-stat-category-title {
    margin-top: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-left: 1em;
}

.player-stat-category-title i {
    color: var(--accent);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(250, 224, 139, 0.6));
}

/* Weapon Section - Category Layout */
#weapons-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 1020px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow: visible;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(222, 166, 81, 0.6) rgba(0, 0, 0, 0.3);
}

/* Weapons Category Container */
.player-stat-category.weapons-category {
    margin-bottom: 0;
}

/* Scrollable Weapons List - Shows 2 items at a time */
.weapons-list-scrollable {
    max-height: 250px; /* Approximately 2 weapon items (90px each) */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 217, 139, 0.5) rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for individual weapon categories */
.weapons-list-scrollable::-webkit-scrollbar {
    width: 6px;
}

.weapons-list-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.weapons-list-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.weapons-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    box-shadow: 0 0 8px rgba(222, 166, 81, 0.5);
}

/* Custom scrollbar for weapons container */
#weapons-container::-webkit-scrollbar {
    width: 8px;
}

#weapons-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#weapons-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#weapons-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    box-shadow: 0 0 10px rgba(222, 166, 81, 0.5);
}

.player-weapon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    margin: auto 2em;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 207, 110, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.player-weapon-item::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 0.3s ease;
}

.player-weapon-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(222, 166, 81, 0.1), transparent);
    transition: left 0.5s ease;
}

.player-weapon-item:hover::before {
    width: 100%;
}

.player-weapon-item:hover::after {
    left: 100%;
}

.player-weapon-item:hover {
    background: linear-gradient(135deg, rgba(222, 166, 81, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(222, 166, 81, 0.3);
    transform: translateX(4px);
    box-shadow: 
        0 4px 15px rgba(222, 166, 81, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


.weapon-icon {
    height: 55px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.player-weapon-item:hover .weapon-icon {
    transform: scale(1.12);
    filter: 
        drop-shadow(0 4px 12px rgba(222, 166, 81, 0.6))
        brightness(1.08);
}

.player-weapon-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.player-weapon-name {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight:400;
    color: white;
    /* Preserve original casing from DB */
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    line-height: 0.8;
}

.player-weapon-item:hover .player-weapon-name {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(222, 166, 81, 0.5);
}

.player-weapon-kills {
    max-height: 15px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    transition: all 0.3s ease;
}

.player-weapon-item:hover .player-weapon-kills {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    box-shadow: 0 0 10px rgba(222, 166, 81, 0.4);
    border-color: rgba(222, 166, 81, 0.3);
}

/* Stagger animation for grid items */
.player-info-section:nth-child(1) {
    animation-delay: 0.1s;
}

.player-info-section:nth-child(2) {
    animation-delay: 0.2s;
}

.player-info-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* Selection styling */
::selection {
    background: rgba(222, 166, 81, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(222, 166, 81, 0.3);
    color: var(--text-primary);
}

/* Error State */
.player-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--danger);
    text-align: center;
    /* Removed animation - keeping only transitions */
}

.player-error i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
}

/* Removed errorPulse animation - reduces constant repainting */

.player-error h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.player-error p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ========================================
   SUBTLE HOVER EFFECTS
   ======================================== */

/* Add cursor pointer to interactive elements */


/* Profile Section */
.player-profile:hover {
    filter: brightness(1.05);
    transform: translateY(-3px);
}

/* Avatar */
.player-avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 35px rgba(222, 166, 81, 0.35),
        0 0 20px rgba(245, 158, 11, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Player Name */
.player-profile .player-name {
    transition: all 0.3s ease;
}

.player-profile .player-name:hover {
    transform: scale(1.03);
    filter: brightness(1.15);
}

/* Country */
.player-country {
    transition: all 0.3s ease;
}

.player-country:hover {
    border-color: rgba(222, 166, 81, 0.35);
    transform: scale(1.03);
}


/* Rank Images */
.rank-image:hover {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 0 12px rgba(207, 162, 98, 0.4)) brightness(1.1);
}

/* Progress Bar */
.rank-progress-bar {
    transition: all 0.3s ease;
}



.player-stat-item:hover .player-stat-label {
    color: var(--text-primary);
}

.player-stat-item:hover .player-stat-label i {
    transform: scale(1.1);
}

.player-stat-item:hover .player-stat-value {
    transform: scale(1.05);
}

/* Stat Categories */
.player-stat-category:hover {
    filter: brightness(1.05);
    border-color: rgba(221, 184, 109, 0.3);
    box-shadow: 0 5px 25px rgba(222, 177, 81, 0.2);
    transform: translateY(-2px);
}

.player-stat-category:hover .player-stat-category-title {
    color: var(--accent);
    transform: translateX(4px);
}

/* Weapon Items */
.player-weapon-item:hover {
    background: rgba(222, 166, 81, 0.12);
    border-color: rgba(222, 166, 81, 0.25);
    transform: translateX(6px);
    box-shadow: 
        0 3px 12px rgba(222, 166, 81, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.player-weapon-item:hover .weapon-icon {
    filter: brightness(1.1) drop-shadow(0 3px 6px rgba(222, 166, 81, 0.4));
    transform: scale(1.08);
}

.player-weapon-item:hover .player-weapon-name {
    color: var(--accent);
}


.player-info-section:hover h3 {
    color: var(--accent);
    transform: translateX(4px);
}

.player-info-section:hover h3 i {
    transform: scale(1.15);
}

/* Number Container */
.number-container {
    transition: all 0.3s ease;
}

.number-container:hover {
    transform: scale(1.03);
}

/* XP Left */
.xp-left {
    transition: all 0.3s ease;
}

.xp-left:hover {
    color: var(--accent);
}

/* Rank Progress Text */
.rank-progress p {
    transition: all 0.3s ease;
}

.rank-progress p:hover {
    color: var(--accent);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Large Tablets and Small Desktops (1200px and below) */
@media screen and (max-width: 1200px) {
    .player-container {
        max-width: 100%;
        padding: 0 1rem 1.5rem;
    }

    .player-details-grid {
        gap: 1.5rem;
    }

    .player-details-grid > .player-info-section:nth-child(1),
    .player-details-grid > .player-info-section:nth-child(2),
    .player-details-grid > .player-info-section:nth-child(3) {
        flex: 1 1 100%;
    }

    .player-info-section {
        padding: 1.5rem;
    }

    .player-info-section h3 {
        font-size: 1.2rem;
    }

}

/* Tablets (992px and below) */
@media screen and (max-width: 992px) {
    .player-container {
        margin: 1.5rem auto;
        padding: 0 1rem 1rem;
    }

    .player-details-grid {
        margin: 2rem 0.75rem;
        gap: 1.25rem;
    }

    .player-info-section {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .player-info-section h3 {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .player-info-section h3 i {
        font-size: 1.3rem;
    }

    .player-profile {
        padding: 1.5rem;
    }

    .player-avatar {
        width: 120px;
        height: 120px;
    }


    .player-rank-display {
        padding: 1.25rem 1rem;
    }

    .rank-info {
        gap: 1rem;
    }

    .rank-image img {
        width: 75px;
    }

    .rank-progress-bar {
        height: 18px;
    }

    .rank-progress-text {
        font-size: 0.7rem;
    }

    .player-stat-item {
        padding: 0.65rem;
        margin: auto 1rem;
    }

    .player-stat-label {
        font-size: 0.95rem;
    }

    .player-stat-value {
        font-size: 0.95rem;
    }

    .weapon-icon {
        height: 45px;
    }

    .weapons-list-scrollable {
        max-height: 220px;
    }
}

/* Small Tablets and Large Phones (768px and below) */
@media screen and (max-width: 768px) {
    .player-container {
        margin: 1rem auto;
        padding: 0 0.75rem 0.75rem;
    }
    .player-info-section {
        border-radius: 12px;
    }

    .player-info-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
        gap: 0.5rem;
    }

    .player-info-section h3 i {
        font-size: 1.2rem;
    }

    .player-profile {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .player-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .player-profile .player-name {
        margin: 0.5rem 0 0.25rem;
        max-height:30px;
    }

    .player-profile .player-rank {
        font-size: 0.95rem;
    }

    .player-country {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .player-country img {
        width: 22px;
    }


    .player-rank-display {
        padding: 1rem 3rem;
        margin-bottom: 1.5rem;
    }

    .rank-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .rank-image {
        width: 100%;
        justify-content: space-around;
    }

    .rank-image img {
        width: 75px;
    }

    .rank-progress {
        width: 100%;
    }

    .rank-progress p {
        font-size: 0.75rem;
        text-align: center;
    }

    .rank-progress-bar {
        height: 16px;
    }

    .rank-progress-text {
        font-size: 0.65rem;
    }

    .player-xp-display {
        margin-top: 0.75rem;
    }

    .xp-left {
        font-size: 0.75rem;
        text-align: center;
    }

    .number-container {
        height: 35px;
        width: 100px;
        font-size: 0.9rem;
        margin: 0 auto;
    }

    .player-stat-container,
    .player-stat-category {
        margin-bottom: 1.5rem;
    }

    .player-stat-category-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .player-stat-category-title i {
        font-size: 1.1rem;
    }

    .player-stat-item {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }

    .player-stat-label {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .player-stat-label i {
        font-size: 1rem;
    }

    .player-stat-value {
        font-size: 0.9rem;
        max-width: 150px;
    }

    .player-stat-item.mvp,
    .player-stat-item.rounds,
    .player-stat-item.planted,
    .player-stat-item.exploded,
    .player-stat-item.defused {
        padding: 0.65rem;
    }

    .player-stat-item.mvp .player-stat-label,
    .player-stat-item.rounds .player-stat-label,
    .player-stat-item.planted .player-stat-label,
    .player-stat-item.exploded .player-stat-label,
    .player-stat-item.defused .player-stat-label {
        font-size: 0.95rem;
    }

    .player-stat-item.mvp .player-stat-value.highlight,
    .player-stat-item.rounds .player-stat-value.highlight,
    .player-stat-item.planted .player-stat-value.highlight,
    .player-stat-item.exploded .player-stat-value.highlight,
    .player-stat-item.defused .player-stat-value.highlight {
        font-size: 1rem;
    }

    .player-weapon-item {
        padding: 0.5rem 0.75rem;
        margin: auto 1rem;
        margin-bottom: 0.65rem;
    }

    .weapon-icon {
        height: 40px;
    }

    .player-weapon-name {
        font-size: 0.85rem;
    }

    .player-weapon-kills {
        font-size: 0.85rem;
    }


    .weapons-list-scrollable {
        max-height: 200px;
    }

    /* Reduce hover effects on touch devices */
    .player-info-section:hover {
        transform: none;
    }

    .player-stat-item:hover,
    .player-weapon-item:hover {
        transform: none;
    }
}

/* Mobile Phones (576px and below) */
@media screen and (max-width: 576px) {
    #weapons-container { 
        gap: 1.25rem;
    }
    .player-container {
        margin: 0.75rem auto;
        padding: 0 0.5rem 0.5rem;
    }


    .player-info-section {
        border-radius: 10px;
    }

    .player-info-section h3 {
        letter-spacing: 1px;
    }

    .player-info-section h3 i {
        font-size: 1.1rem;
    }

    .player-info-section h3::after {
        width: 45px;
        height: 2px;
    }

    .player-profile {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .player-avatar {
        width: 85px;
        height: 85px;
        border-width: 3px;
    }
    .player-stat-category.mvp .player-stat-item {
        margin-bottom: 0.35rem;
    }
    .player-profile .player-name {
        font-size: 1.3rem;
        margin: 0.4rem 0 0.2rem;
    }

    .player-profile .player-rank {
        font-size: 0.85rem;
    }

    .player-country {
        font-size: 0.9rem;
        margin-top: 1rem;
        gap: 0.4rem;
    }

    .player-country img {
        width: 20px;
    }

    .player-rank-display {
        padding: 0.85rem 2.5rem;
        margin-bottom: 1.25rem;
    }

    .rank-image p {
        font-size: 0.65rem;
    }
    .xp1 {
        justify-content: center;
    }
    .rank-progress p {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .rank-progress-bar {
        height: 14px;
    }

    .rank-progress-text {
        font-size: 0.6rem;
    }

    .player-xp-display {
        margin: 0.5rem auto 0 auto;
    }

    .xp-left {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .number-container {
        background-size: 80%;
        font-size: 0.85rem;
        margin:0;
    }
    
    .player-stat-container,
    .player-stat-category {
        margin-bottom: 1.25rem;
    }

    .player-stat-category-title {
        font-size: 0.85rem;
    }

    .player-stat-category-title i {
        font-size: 1rem;
    }

    .player-stat-item {
        padding: 0.5rem;
        margin-bottom: 0.45rem;
        border-radius: 8px;
    }

    .player-stat-label {
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .player-stat-label i {
        font-size: 0.8rem;
    }

    .player-stat-value {
        font-size: 0.85rem;
        max-width: 90px;
    }

    .player-stat-item.mvp,
    .player-stat-item.rounds,
    .player-stat-item.planted,
    .player-stat-item.exploded,
    .player-stat-item.defused {
        padding: 0.55rem;
    }

    .player-stat-item.mvp .player-stat-label,
    .player-stat-item.rounds .player-stat-label,
    .player-stat-item.planted .player-stat-label,
    .player-stat-item.exploded .player-stat-label,
    .player-stat-item.defused .player-stat-label {
        font-size: 0.85rem;
    }

    .player-stat-item.mvp .player-stat-label i,
    .player-stat-item.rounds .player-stat-label i,
    .player-stat-item.planted .player-stat-label i,
    .player-stat-item.exploded .player-stat-label i,
    .player-stat-item.defused .player-stat-label i {
        font-size: 0.85rem;
    }

    .player-stat-item.mvp .player-stat-value.highlight,
    .player-stat-item.rounds .player-stat-value.highlight,
    .player-stat-item.planted .player-stat-value.highlight,
    .player-stat-item.exploded .player-stat-value.highlight,
    .player-stat-item.defused .player-stat-value.highlight {
        font-size: 0.9rem;
    }

    .player-weapon-item {
        padding: 0.45rem 0.65rem;
        margin-bottom: 0.55rem;
    }

    .weapon-icon {
        height: 35px;
    }

    .player-weapon-info {
        gap: 0.2rem;
    }

    .player-weapon-name {
        font-size: 0.8rem;
    }

    .player-weapon-kills {
        font-size: 0.8rem;
    }


    .weapons-list-scrollable {
        max-height: 180px;
    }

    /* Loading and Error States */
    .loading-player {
        min-height: 300px;
    }

    .loading-player i {
        font-size: 2.5rem;
    }

    .loading-player p {
        font-size: 1rem;
    }

    .player-error {
        min-height: 300px;
    }

    .player-error i {
        font-size: 4rem;
    }

    .player-error h2 {
        font-size: 1.5rem;
    }

    .player-error p {
        font-size: 1rem;
    }

    /* Disable hover transforms on mobile */
    .player-info-section:hover,
    .player-stat-item:hover,
    .player-weapon-item:hover,
    .rank-image:hover,
    .player-avatar:hover {
        transform: none;
    }

    /* Scrollbar adjustments for mobile */
    ::-webkit-scrollbar {
        width: 6px;
    }

    #weapons-container::-webkit-scrollbar,
    .weapons-list-scrollable::-webkit-scrollbar {
        width: 4px;
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-width: 900px) and (orientation: landscape) {
    .player-container {
        margin: 0.5rem auto;
    }

    .player-details-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .player-details-grid > .player-info-section {
        flex: 1 1 calc(50% - 1rem);
        min-width: 300px;
    }

    .player-profile {
        padding: 1rem;
    }

    .player-avatar {
        width: 80px;
        height: 80px;
    }

    .player-rank-display {
        padding: 1rem;
    }

    .rank-info {
        flex-direction: row;
    }

    .rank-image {
        flex-direction: column;
    }

    .weapons-list-scrollable {
        max-height: 160px;
    }
}
