/* Match Detail Styles */
.match-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.2rem 0.1rem;
}

.match-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Match Header */
.match-header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    padding: 0.5rem;
    color: white;
    text-align: center;
    position: relative;
}

.match-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.match-header p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Match Content */
.match-content {
    padding: 0.1rem;
}

/* Players Header Section */
.players-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}



.player-column {
    display: flex;
    flex-direction: row;  /* Horizontal layout */
    align-items: center;
    gap: 0.5rem;
}

.avatar-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgb(250, 4, 4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.player-column > div {
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.players-section {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Player Submissions and Day Sections */
.player-submissions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.submission-item {
    text-align: center;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 540px;
}

.submission-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    object-fit: cover;
}

.submission-rating {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    background-color: #edf2f7;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

.day-section {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.day-section h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(118, 75, 162, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.round-winner {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #444;
    padding: 6px 14px;
    border-radius: 20px; /* More rounded */
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), 0 0 10px rgba(255,215,0,0.5); /* Stronger, gold-toned shadow */
    font-size: 0.95em;
    margin: 10px auto 0;
    border: 3px solid #ffd700;  /* Gold border */
    text-transform: uppercase;
    letter-spacing: 0.1em;       /* More letter spacing */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Text shadow */
}

.day-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(118, 75, 162, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-title span:first-child {
    margin-right: 10px;
}

.day-divider {
    height: 20px;
    background: #EFDCAB;
    border-radius: 10px;
    box-shadow: 0 5px 15px -3px rgba(118, 75, 162, 0.3);
}

/* Final Results */
.final-results {
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.final-results h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(118, 75, 162, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.final-results .player-column > div > span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
}

.final-results .player-column > div > span:last-child {
    background-color: #48bb78;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Score Container */
.score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    border-radius: 12px;
    padding: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    font-family: 'Arial', sans-serif;
}

.score-text {
    display: flex;
    align-items: center;
    gap: 10px;
}


.score-text > span.winning:nth-child(odd) {
    color: white; /* Override the color of odd spans */
}

.score-text > span:nth-child(even) {
    font-weight: bold;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
}


.score-text > span.winning {
    padding: 0px 8px;
    background-color: #50c878;
    color: white;
    box-shadow: 0 0 5px rgba(80, 200, 120, 0.5);
    font-weight: bold; /* Ensure it keeps its intended style */
}

.score-text > span:nth-child(3) {
    color: #888;
    font-weight: normal;
}

.round-winner {
    text-align: center;
    margin-top: 10px;
    background-color: #4a90e2;
    color: white;
    padding: 2px 15px;
    font-weight: bold;
    display: inline-block;
    width: 100%;
}



.player-card {
    display: flex;
    flex-direction: column;
    background: #F2E2B1;
    align-items: center;
    text-align: center;
    width: auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.6rem;
    border-bottom: 2px solid #BDB395;
}

.player-card p {
    margin: 1px 0;
    font-weight: bold;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.badge-icon {
    width: 30px;
    height: 30px;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-image {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #a410f4;
    margin-bottom: 1px;
  }