.carousel-container {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.player-card {
    position: relative;
    min-width: 100%;
    padding: 2rem;
    padding-top: 100px; /* Increased padding for banner overlap */
    background: #404040;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.stat-box{
    transition: all 0.3s ease;
}

.stat-box:hover{
    transform: scale(1.05);
}

.player-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px; /* Increased banner height */
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to bottom,black 10%,transparent 85%);
    mask-image: linear-gradient(to bottom,black 10%,transparent 85%);
}

.player-header {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.player-avatar {
    width: 120px; /* Slightly larger avatar */
    height: 120px;
    border-radius: 50%;
    margin-right: 1.5rem;
    border: 4px solid #1e293b;
    margin-top: -60px; /* Increased overlap */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-infos{
    text-shadow: rgb(0, 0, 0) 1px 0 10px;
}

.chart-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: #333333;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-box a {
    color: rgb(255, 174, 0);
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333333;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    height: 40px;
    width: 40px;
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
}