/* fx-styles.css - Match Detail Modal */
.fx-body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #1a1a1a;
    color: white;
    margin: 0;
    padding: 10px;
    font-size: 14px;
}

.fx-modal {
    background: #1f1f1f;
    border-radius: 12px;
    max-width: 980px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    overflow: hidden;
    position: relative;
}

.fx-modal-header {
    background: #1a1a1a;
    padding: 15px 20px;
    position: relative;
    border-bottom: 1px solid #333;
}

.fx-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.fx-modal-close:hover { color: #fff; }

.fx-modal-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fx-modal-team {
    text-align: center;
    flex: 1;
}

.fx-modal-team img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #333;
    object-fit: contain;
}

.fx-modal-vs {
    font-size: 32px;
    font-weight: bold;
    color: #0a9396;
    padding: 0 20px;
}

.fx-modal-info {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    line-height: 1.5;
}

.fx-modal-tabs {
    display: flex;
    background: #222;
    border-bottom: 1px solid #444;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.fx-modal-tab {
    padding: 14px 24px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    white-space: nowrap;
}

.fx-modal-tab.fx-active {
    color: white;
    border-bottom: 3px solid #0a9396;
    font-weight: bold;
}

.fx-modal-content {
    padding: 20px;
    background: #1a1a1a;
    min-height: 400px;
}

.fx-content { display: none; }
.fx-content.fx-active { display: block; }

.fx-event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #252525;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 14px;
}

.fx-event-minute {
    font-weight: bold;
    min-width: 50px;
    color: #0a9396;
    text-align: center;
}

.fx-event-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: #333;
    flex-shrink: 0;
}

.fx-event-icon { font-size: 22px; margin-right: 6px; }
.fx-event-desc { flex: 1; }

.fx-stat-row {
    display: flex;
    align-items: center;
    margin: 18px 0;
    font-size: 14px;
}

.fx-stat-name { width: 160px; flex-shrink: 0; color: #ccc; }

.fx-bar-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fx-bar-container {
    flex: 1;
    height: 10px;
    background: #333;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.fx-bar {
    height: 100%;
    position: absolute;
    top: 0;
}

.fx-bar-home { left: 0; background: linear-gradient(90deg, #0a9396, #4fd1c5); }
.fx-bar-away { right: 0; background: linear-gradient(90deg, #FF9800, #ffc107); }

.fx-stat-value-home {
    min-width: 45px;
    text-align: right;
    color: #0a9396;
    font-weight: 500;
}

.fx-stat-value-away {
    min-width: 45px;
    text-align: left;
    color: #FF9800;
    font-weight: 500;
}

.fx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}

.fx-table th, .fx-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.fx-table th {
    background: #222;
    color: #0a9396;
    font-weight: 600;
}

.fx-player-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left !important;
    min-width: 180px;
}

.fx-player-name-cell img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
}

.fx-pitch {
    background: linear-gradient(145deg, #1e5a1e, #0a3a0a);
    height: 520px;
    position: relative;
    border-radius: 16px;
    margin: 20px auto;
    max-width: 460px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    overflow: hidden;
}

.fx-pitch-line {
    position: absolute;
    border: 1px dashed rgba(255,255,255,0.45);
}

.fx-center-line {
    width: 100%;
    height: 0;
    top: 50%;
    left: 0;
}

.fx-center-circle {
    width: 22%;
    height: 22%;
    top: 36%;
    left: 39%;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.45);
}

.fx-goal-line {
    width: 30%;
    height: 8%;
    left: 35%;
    border: 2px solid rgba(255,255,255,0.6);
}

.fx-player {
    position: absolute;
    text-align: center;
    width: 80px;
    transform: translateX(-50%);
    pointer-events: none;
}

.fx-player img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #111;
    background: #333;
    object-fit: cover;
}

.fx-player-name {
    margin-top: 2px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.fx-player-number {
    position: absolute;
    top: 26px;
    right: 3px;
    background: #333;
    color: white;
    font-weight: bold;
    font-size: 10px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 5;
}

.fx-rating-box {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
    min-width: 28px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.fx-rating-high { background: #10b981; }
.fx-rating-med { background: #f59e0b; }
.fx-rating-low { background: #ef4444; }

.fx-loading { text-align: center; padding: 50px 20px; color: #0a9396; font-size: 15px; }
.fx-error { color: #ff6b6b; padding: 20px; background: #330000; border-radius: 8px; text-align: center; }