.match-wrapper {
    max-width: 1240px;
    margin: 10px auto 40px;
    color: #fff;
    font-family: 'Jost', sans-serif;
}

/* HERO SECTION */
.match-hero {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #2e2750;
    background-size: cover;
    background-position: center;
}

.match-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    opacity: 0.4;
}

.match-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 14px;
    backdrop-filter: saturate(0.9);
    background: linear-gradient(180deg, rgba(28, 21, 49, 0.46) 0%, rgba(28, 21, 49, 0.72) 100%);
}

.match-league {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #f5f2ff;
}

.match-league-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.match-score-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 72%;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.match-team-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.match-team-name {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.match-score {
    font-size: 52px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 18px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.match-kit {
    position: absolute;
    bottom: 10px;
    width: 115px;
    height: 190px;
    object-fit: contain;
    opacity: 0.72;
    z-index: 1;
}

.match-kit-home {
    left: 80px;
}

.match-kit-away {
    right: 80px;
}

.match-meta-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: #c4bddb;
    background: rgba(48, 44, 84, 0.9);
    padding: 8px 16px;
    border-radius: 7px;
    margin-bottom: 18px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    background: #2e2750;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #c4bddb;
    text-align: left;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* PLAYER STATS */
.player-stats-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2e2750;
    padding: 9px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.player-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.player-info {
    flex-grow: 1;
}

.player-name {
    font-weight: 700;
    font-size: 15px;
}

.player-meta {
    font-size: 13px;
    color: #c4bddb;
}

.player-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #39d68d;
}

/* HEAD TO HEAD */
.h2h-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.h2h-box {
    flex: 1;
    background: #2e2750;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.h2h-count {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.h2h-label {
    font-size: 14px;
    color: #c4bddb;
    margin-top: 5px;
}

.h2h-matches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.h2h-match-card {
    background: #2e2750;
    border-radius: 8px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.h2h-match-team {
    font-size: 13px;
    font-weight: 600;
}

.h2h-match-result {
    font-size: 14px;
    font-weight: 800;
}

.last-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.last-games-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.last-match-row {
    background: #2e2750;
    border-radius: 8px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.last-team {
    font-size: 13px;
    font-weight: 600;
}

.last-score {
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 8px;
}

.last-score.win { background: rgba(34, 197, 94, 0.2); color: #34d399; }
.last-score.draw { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.last-score.loss { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .match-hero { height: auto; padding: 40px 0; }
    .match-score-board { flex-direction: column; gap: 20px; }
    .match-score { font-size: 40px; }
    .match-kit { display: none; }
    .match-meta-bar { gap: 10px; font-size: 11px; flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr; }
    .h2h-wrapper { flex-direction: column; }
    .h2h-matches-grid { grid-template-columns: 1fr; }
    .last-games-grid { grid-template-columns: 1fr; }
}
