body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: #f5f5f5;
        color: #222;
        margin: 0;
        padding: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Page Header */
    .page-header {
        text-align: center;
        padding: 40px 20px 20px;
        background: linear-gradient(135deg, #ff2e2e 0%, #cc2525 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .page-header h1 {
        font-size: 2.5rem;
        color: white;
        margin: 0 0 10px 0;
        font-weight: 700;
    }

    .page-header p {
        font-size: 1.1rem;
        color: white;
        opacity: 0.95;
        margin: 0;
    }

    /* Stats Container */
    .stats-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
    }

    /* Filters Section */
    .filters-section {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .filter-group {
        flex: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .filter-group label {
        font-weight: 600;
        color: #333;
        font-size: 0.95rem;
    }

    .filter-group input,
    .filter-group select {
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: white;
    }

    .filter-group input:focus,
    .filter-group select:focus {
        outline: none;
        border-color: #ff2e2e;
        box-shadow: 0 0 0 3px rgba(255, 46, 46, 0.1);
    }

    .table-container {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow-x: auto;
        padding: 20px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

    th, td {
        padding: 8px 5px;
        text-align: center;
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    th:nth-child(2), td:nth-child(2) {
        width: 120px; /* Player name */
    }

    th {
        background-color: #ffffff;
        border-bottom: #ff2e2e solid 2px;
    }

    tr:nth-child(even) {
        background-color: #ffffff;
    }

    tr:nth-child(odd) {
        /* background-color: #dddcdc; */
        background-color: #f9f9f9;
    }

    tr:hover {
        border-radius: #868686;
        transition: background-color 0.3s ease;
    }

    .player-photo {
        position: relative;
        width: 70px;
        height: auto;
        display: inline-block;
    }

    .player-photo img.face {
        width: 70px;
        height: auto;
        display: block;
        border-radius: 5px;
    }

    .player-photo img.logo {
        position: absolute;
        bottom: -8px;
        right: -8px;
        width: 25px;
        height: auto;
    }

    td.points-column {
    background-color: #e0e0e0;
    font-weight: bold;
    }

    th:nth-child(2), td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px; /* Adjust if needed */
    }


    th:nth-child(6),
    td:nth-child(6) { /* PTS */
        width: 10%;
    }

    /* Clickable rows */
    table tbody tr {
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    table tbody tr:hover {
        background-color: #e8f4f8 !important;
    }

    /* Modal for last year stats */
    .modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
    }

    .modal-content {
        background: white;
        margin: 5% auto;
        padding: 30px;
        border-radius: 16px;
        width: 90%;
        max-width: 600px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: modalSlideIn 0.3s ease;
    }

    @keyframes modalSlideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .close-modal {
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 2rem;
        font-weight: bold;
        color: #999;
        cursor: pointer;
        transition: color 0.2s;
    }

    .close-modal:hover {
        color: #ff2e2e;
    }

    .modal-content h2 {
        color: #222;
        margin-bottom: 10px;
        font-size: 1.8rem;
    }

    .modal-content h3 {
        color: #666;
        margin-bottom: 20px;
        font-size: 1.2rem;
        font-weight: 500;
    }

    #modalStats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }

    .stat-item {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        border-left: 4px solid #ff2e2e;
    }

    .stat-label {
        font-size: 0.85rem;
        color: #666;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }

    .stat-value {
        font-size: 1.8rem;
        color: #222;
        font-weight: 700;
    }




    @media screen and (max-width: 768px) {
        .navbar {
            padding: 8px 10px;
        }

        .navbar-brand {
            gap: 8px;
        }

        .navbar-logo {
            height: 40px;
        }

        .navbar-title {
            font-size: 1.1rem;
        }

        .navbar ul {
            gap: 10px;
        }

        .navbar a {
            font-size: 0.75rem;
            padding: 6px 8px;
        }

        .page-header h1 {
            font-size: 1.8rem;
        }

        .page-header p {
            font-size: 1rem;
        }

        .stats-container {
            padding: 20px 15px;
        }

        .filters-section {
            padding: 15px;
        }

        .filter-group {
            min-width: 100%;
        }

        .table-container {
            padding: 15px;
        }

        table, thead, tbody, th, td, tr {
            font-size: 0.75rem;
        }

        .player-photo {
            width: 50px;
        }

        .player-photo img.face {
            width: 50px;
        }

        .player-photo img.logo {
            width: 20px;
        }
    }

    @media screen and (max-width: 480px) {
        .navbar-title {
            display: none;
        }

        .navbar ul {
            gap: 10px;
        }

        .page-header {
            padding: 30px 15px;
        }

        .page-header h1 {
            font-size: 1.5rem;
        }

        .stats-container {
            padding: 15px 10px;
        }
    }