/* ==========================================
   1. TYPOGRAPHY & IMPORTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Oswald:wght@400;700&family=PT+Serif:ital@0;1&display=swap');

/* ==========================================
   2. MAIN CONTAINER & LAYOUT WRAPPER 
   (Adjust max-width here to expand/contract)
   ========================================== */
.match-container, 
.match-report-box {
    width: 90% !important;
    max-width: none !important; /* Removes any previous pixel limit */
    margin: 0 auto !important;   /* Keeps it centered on the page */
}

.match-section-table {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0;
}

.match-section-table td {
    width: 50%;
    vertical-align: top;
    padding: 10px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   3. HEADERS & TITLES
   ========================================== */
.section-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 20px;
    margin: 25px 0 15px 0;
    border-left: 5px solid #d90429;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.section-header:before {
    content: "⚽ ";
    font-size: 16px;
    margin-right: 8px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1e1e2f;
    background: #f0f0f5;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 3px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ==========================================
   4. SHARED SQUAD LIST STYLES
   ========================================== */
.iran-squad-list, 
.opponent-squad-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.iran-squad-list li, 
.opponent-squad-list li {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 0 4px 15px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.2;
}

/* Iran specific list styling */
.iran-squad-list li {
    border-left: 3px solid #d90429;
}

/* Opponent specific list styling */
.opponent-squad-list li {
    border-left: 3px solid #4a5568;
    background: #fcfcfc;
}

/* Hover effects */
.iran-squad-list li:hover, 
.opponent-squad-list li:hover {
    background: #f8f9fa;
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

.iran-squad-list li:last-child, 
.opponent-squad-list li:last-child {
    border-bottom: none;
}

.iran-squad-list li.none-placeholder,
.opponent-squad-list li.none-placeholder {
    border-left: 3px solid #eee;
    color: #bbb;
    font-style: italic;
    background: transparent;
    border: 1px dashed #ddd;
}

/* Player Numbers & Links */
.player-number {
    display: inline-block;
    width: 30px;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    color: #d90429; /* Iran numbers */
}

.opponent-squad-list .player-number {
    color: #4a5568; /* Opponent numbers */
}

.player-link {
    display: inline-block;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.player-link:hover {
    text-decoration: underline;
    color: #d90429;
}

/* Substitution Utilities */
.iran-squad-list .sub-in {
    color: #27ae60;
    font-weight: 600;
}

.iran-squad-list .sub-out {
    color: #7f8c8d;
    font-size: 12px;
}

.sub-minute {
    margin-left: auto;
    background: #eee;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.substitution-section li {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
}

/* ==========================================
   5. COACH CARDS
   ========================================== */
.coach-card {
    background: #f8f9fa;
    border-left: 4px solid #d90429;
    padding: 10px 15px;
    margin: 5px 0;
    display: block;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 0 4px 4px 0;
}

.opponent-card {
    border-left: 4px solid #4a5568;
    background: #f1f5f9;
}

.coach-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #d90429;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.opponent-card .coach-label {
    color: #4a5568;
}

.coach-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.coach-country {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
}

.coach-none {
    border-left: 4px solid #ccc;
    color: #999;
    font-style: italic;
}

/* ==========================================
   6. MATCH REPORT SECTION
   ========================================== */
.match-report-box {
    background: #fdfdfd;
    border: 1px solid #e1e1e1;
    border-top: 4px solid #d90429;
    padding: 40px;
    margin: 30px auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.match-report-box h3 {
    font-family: 'Oswald', sans-serif;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.report-body {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 850px;
    text-align: left;
}

.report-body strong {
    color: #d90429;
    display: inline-block;
    margin-top: 10px;
}