.overx {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    min-width: 80px;
}

select.form-controlx:not([size]):not([multiple]) {
    height: 52px;
}

select.form-controlx {
    border-radius: 2px;
    background-color: hsla(0, 0%, 100%, .03);
    background-position: right 1em center;
    background-repeat: no-repeat;
    padding-right: 2.2em;
    background-size: 6px 4px;
    -moz-appearance: none;
    -webkit-appearance: none;
    color: hsl(0deg 0% 100%)
}

.form-controlx,
.form-controlx:focus {
    background-color: hsla(0, 0%, 100%, .03);
    box-shadow: none;
}

.form-controlx {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 12px 16px;
    line-height: 1.733333;
    font-size: 15px;
    color: #fff;
    border: 1px solid hsla(0, 0%, 100%, .1);
    border-radius: 2px;
    transition: border-color .15s ease-in-out;
    height: 52px;
}

.form-controlx {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    /* border: 1px solid #ced4da; */
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Match Summary Styles */
.stats-block {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    opacity: 0.7;
}

.stats-block:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.stats-block__value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1;
    display: block;
}

.stats-block__label {
    font-size: 0.85rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0;
}

/* Match Summary Cards */
.match-summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.match-summary-card h5 {
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Event Lists */
.event-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-list h6 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.event-list ul {
    margin: 0;
    padding: 0;
}

.event-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-list li:last-child {
    border-bottom: none;
}

.event-list li:first-child {
    padding-top: 0;
}

.event-list i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.event-list .player-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.event-list .player-name {
    font-weight: 500;
    color: #fff;
}

.event-list .player-position {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: 8px;
}

.event-list .event-count {
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Badge Styles */
.badge {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #212529;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Match Summary Header */
.match-summary-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-summary-header h4 {
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 1.4rem;
}

.match-summary-header .total-events {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Team Summary Cards */
.team-summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.team-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.team-summary-card .card__header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.team-summary-card .card__header h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stats-grid .stats-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 30px 20px;
    margin-bottom: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.stats-grid .stats-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545, #6f42c1, #fd7e14);
    opacity: 0.9;
}

.stats-grid .stats-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-grid .stats-block:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.35);
}

.stats-grid .stats-block:hover::after {
    opacity: 1;
}

.stats-grid .stats-block__value {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1;
    display: block;
    position: relative;
    z-index: 2;
}

.stats-grid .stats-block__label {
    font-size: 0.95rem;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Stats Table Styles */
.stats-table-container {
    margin-bottom: 25px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-table th,
.stats-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.stats-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: #d0d0d0;
    width: 60%;
}

.stats-table td {
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    width: 40%;
}

.stats-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-table tr:hover th {
    background: rgba(255, 255, 255, 0.15);
}

.stats-table tr:hover td {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.stats-table tr:last-child th,
.stats-table tr:last-child td {
    border-bottom: none;
}

/* Enhanced table styling for existing Bootstrap tables */
.table.table-bordered.table-striped {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

.table.table-bordered.table-striped th,
.table.table-bordered.table-striped td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease !important;
}

.table.table-bordered.table-striped th {
    background: rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.85rem !important;
    color: #d0d0d0 !important;
}

.table.table-bordered.table-striped td {
    background: rgba(0, 0, 0, 0.2) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

.table.table-bordered.table-striped tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.table.table-bordered.table-striped tr:hover th {
    background: rgba(255, 255, 255, 0.15) !important;
}

.table.table-bordered.table-striped tr:hover td {
    background: rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.02) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-block {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .stats-block__value {
        font-size: 2rem;
    }
    
    .stats-block__label {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stats-grid .stats-block {
        padding: 25px 15px;
        min-height: 120px;
        border-radius: 15px;
    }
    
    .stats-grid .stats-block__value {
        font-size: 2.5rem;
    }
    
    .stats-grid .stats-block__label {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .event-list {
        padding: 15px;
    }
    
    .event-list li {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    
    .team-summary-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-grid .stats-block {
        padding: 20px 15px;
        min-height: 100px;
        border-radius: 12px;
    }
    
    .stats-grid .stats-block__value {
        font-size: 2.2rem;
    }
    
    .stats-grid .stats-block__label {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .event-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .event-list .event-count {
        align-self: flex-end;
    }
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .stats-table th,
    .stats-table td,
    .table.table-bordered.table-striped th,
    .table.table-bordered.table-striped td {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
    
    .stats-table td,
    .table.table-bordered.table-striped td {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .stats-table th,
    .stats-table td,
    .table.table-bordered.table-striped th,
    .table.table-bordered.table-striped td {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .stats-table td,
    .table.table-bordered.table-striped td {
        font-size: 1rem !important;
    }
}

/* Dream Team Styles */
.dream-team-formation {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.dream-team-formation small {
    color: #ffc107;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dream-team-row {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.dream-team-row:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dream-team-gk {
    border-left-color: #ffc107 !important;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%);
}

.dream-team-gk:hover {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

.dream-team-def {
    border-left-color: #007bff !important;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1) 0%, transparent 100%);
}

.dream-team-def:hover {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

.dream-team-mid {
    border-left-color: #28a745 !important;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, transparent 100%);
}

.dream-team-mid:hover {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

.dream-team-fwd {
    border-left-color: #dc3545 !important;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, transparent 100%);
}

.dream-team-fwd:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

.dream-team-summary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%) !important;
    border-top: 2px solid rgba(255, 215, 0, 0.3) !important;
    font-weight: 600 !important;
}

.dream-team-summary td {
    background: transparent !important;
    color: #ffc107 !important;
    font-size: 0.9rem !important;
    padding: 15px 20px !important;
}

.dream-team-summary strong {
    font-size: 1.1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Position Icons */
.dream-team-row td:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    width: 50px;
}

/* Enhanced player info styling */
.dream-team-row .team-leader__player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dream-team-row .team-leader__player-img {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dream-team-row:hover .team-leader__player-img {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dream-team-row .team-leader__player-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.dream-team-row .team-leader__player-position {
    color: #b0b0b0;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats columns styling */
.dream-team-row .team-leader__goals,
.dream-team-row .team-leader__gp,
.dream-team-row .team-leader__avg {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dream-team-row:hover .team-leader__goals,
.dream-team-row:hover .team-leader__gp,
.dream-team-row:hover .team-leader__avg {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.dream-team-row .team-leader__avg strong {
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Responsive dream team styles */
@media (max-width: 768px) {
    .dream-team-row {
        font-size: 0.85rem;
    }
    
    .dream-team-row .team-leader__player-name {
        font-size: 0.9rem;
    }
    
    .dream-team-row .team-leader__player-position {
        font-size: 0.75rem;
    }
    
    .dream-team-row .team-leader__goals,
    .dream-team-row .team-leader__gp,
    .dream-team-row .team-leader__avg {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .dream-team-row td:first-child {
        font-size: 1rem;
        width: 40px;
    }
}

@media (max-width: 576px) {
    .dream-team-formation {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .dream-team-formation small {
        font-size: 0.75rem;
    }
    
    .dream-team-row .team-leader__player-info {
        gap: 8px;
    }
    
    .dream-team-row .team-leader__player-img {
        width: 35px;
        height: 35px;
    }
    
    .dream-team-row .team-leader__player-name {
        font-size: 0.85rem;
    }
    
    .dream-team-row .team-leader__player-position {
        font-size: 0.7rem;
    }
    
    .dream-team-row .team-leader__goals,
    .dream-team-row .team-leader__gp,
    .dream-team-row .team-leader__avg {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .dream-team-row td:first-child {
        font-size: 0.9rem;
        width: 35px;
    }
}