/* Game Details Specific Styles */

/* Match Header (Large Shields) */
.match-header {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 0 0 15px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.match-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-card));
    z-index: 0;
}
.match-content { position: relative; z-index: 1; }

.btn-refresh {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-color);
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.btn-refresh:hover { background: var(--primary-color); transform: rotate(180deg); }

.score-board {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; margin-top: 20px;
}
.team-logo-lg {
    width: 70px; height: 70px;
    object-fit: contain;
    display: block; margin: 0 auto 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.team-name-lg {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-color);
    max-width: 150px; margin: 0 auto;
    line-height: 1.2;
}
.score {
    font-size: 2.5rem; font-weight: 900;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.vs-lg {
    font-size: 1.2rem; color: var(--text-color-secondary);
    font-style: italic; font-weight: bold;
}

.match-status {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.status-live {
    background: var(--danger-color);
    color: white;
    animation: pulse 1.5s infinite;
    border: none;
}

/* Tabs */
.tabs {
    display: flex; overflow-x: auto;
    background: var(--bg-card);
    margin-top: 20px;
    border-radius: 8px;
    padding: 5px;
    gap: 5px;
    border: 1px solid var(--border-color);
}
.tab-btn {
    flex: 1; padding: 10px;
    border: none; background: transparent;
    color: var(--text-color-secondary);
    cursor: pointer; font-weight: bold;
    border-radius: 6px; white-space: nowrap;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.tab-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-color); }
.tab-btn.active { background: var(--primary-color); color: white; }

.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }

/* Market Groups & Odds */
.market-group {
    margin-bottom: 15px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
}
.market-title {
    font-size: 0.9rem; font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.market-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

/* Compact Odd Box (Matching Index Style) */
.odd-box {
    background: var(--bg-input); /* Or var(--odd-bg) if defined */
    border: 1px solid var(--border-color); /* Or var(--odd-border) */
    border-radius: 6px;
    padding: 8px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column; /* Stacked for details usually */
    justify-content: center;
    align-items: center;
    min-height: 45px;
    position: relative;
}
.odd-box:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.odd-box:hover .odd-label, .odd-box:hover .odd-value {
    color: #fff !important; /* Force white on hover */
}
.odd-box.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.odd-box.selected .odd-label, .odd-box.selected .odd-value {
    color: #fff !important;
}

.odd-label {
    font-size: 0.7rem;
    color: var(--text-color-secondary);
    margin-bottom: 2px;
    font-weight: 500;
    line-height: 1.1;
}
.odd-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--odds-color);
}

/* Market Rows (Goals, etc) */
.market-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--divider-color);
}
.market-row:last-child { border-bottom: none; }
.market-row-label {
    font-size: 0.85rem; font-weight: 700;
    color: var(--text-color);
    width: 50px; text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 4px; border-radius: 4px;
    margin-right: 10px;
}
.market-row-options {
    flex: 1; display: flex; gap: 8px;
    justify-content: flex-end;
}
.market-row-options .odd-box {
    flex: 1; max-width: 120px;
    min-height: 35px; /* More compact */
    flex-direction: row; /* Horizontal for these rows usually looks better if space permits, but vertical is safer */
    gap: 8px;
}
/* Force horizontal for row options if desired, or keep vertical */
.market-row-options .odd-box {
    flex-direction: row;
    justify-content: center;
}
.market-row-options .odd-box .odd-label { margin-bottom: 0; margin-right: 5px; }

/* Stats, H2H, Standings, Lineups, Incidents - Keeping existing styles but cleaning up */
.stat-row { margin-bottom: 12px; }
.stat-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; color: var(--text-color); }
.stat-bar-container { display: flex; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.stat-bar-home { background: var(--primary-color); height: 100%; }
.stat-bar-away { background: #3B82F6; height: 100%; } /* Azul para visitante */

.standings-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.standings-table th { text-align: left; padding: 10px; color: var(--text-color-secondary); border-bottom: 1px solid var(--divider-color); font-weight: 600; }
.standings-table td { padding: 10px; border-bottom: 1px solid var(--divider-color); color: var(--text-color); }
.rank-cell { width: 30px; text-align: center; font-weight: bold; color: var(--text-color-secondary); }
.team-cell { display: flex; align-items: center; gap: 10px; }
.team-cell img { width: 20px; height: 20px; object-fit: contain; }

.incident-row { display: flex; align-items: center; margin-bottom: 12px; position: relative; }
.incident-time { width: 35px; font-weight: bold; color: var(--primary-color); text-align: center; font-size: 0.85rem; }
.incident-detail { flex: 1; background: var(--bg-card); padding: 8px 12px; border-radius: 6px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-color); }
.incident-icon { width: 20px; text-align: center; font-size: 1rem; }

.h2h-summary {
    display: flex; justify-content: space-around; width: 100%;
    background: rgba(255,255,255,0.03); padding: 15px;
    border-radius: 8px; margin-bottom: 20px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap; gap: 15px;
}
.h2h-stat-box { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; }
.h2h-stat-box strong { font-size: 1.5rem; line-height: 1.2; margin-bottom: 5px; color: var(--text-color); }
.h2h-stat-box span { font-size: 0.8rem; color: var(--text-color-secondary); text-align: center; }

.form-badges { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.badge-form { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 0.7rem; font-weight: 800; color: white; text-transform: uppercase; }
.badge-w { background: var(--success-color); }
.badge-d { background: #64748B; }
.badge-l { background: var(--danger-color); }

.lineups-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lineup-team { background: var(--bg-card); padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.lineup-team-name { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--divider-color); color: var(--text-color); }
.lineup-team-logo { width: 24px; height: 24px; object-fit: contain; }
.lineup-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--divider-color); color: var(--text-color); }
.shirt-number { background: rgba(255,255,255,0.1); color: var(--text-color-secondary); font-weight: bold; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.75rem; }

@media (max-width: 768px) {
    .lineups-container { grid-template-columns: 1fr; }
    .match-header { padding: 20px 15px; }
    .team-logo-lg { width: 50px; height: 50px; }
    .score { font-size: 2rem; }
    .team-name-lg { font-size: 0.9rem; }
}

/* REMOÇÃO FORÇADA DAS ABAS DE MERCADO */
.market-tabs-container { display: none !important; }
