/* --- EXISTING STYLES (Keep existing container styles) --- */
.espn-wrapper { font-family: -apple-system, sans-serif; width: 100%; box-sizing: border-box; }
.espn-wrapper * { box-sizing: border-box; }

/* ... (Keep your previous .espn-strip, .espn-card styles here) ... */
/* NOTE: Just ensure .espn-btn and .espn-card have cursor:pointer */

/* --- NEW MODAL STYLES --- */
#nba-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    padding: 20px;
}

.nba-modal-container {
    background: #fff; width: 100%; max-width: 500px;
    border-radius: 12px; position: relative;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp { from {transform: translateY(20px); opacity:0;} to {transform: translateY(0); opacity:1;} }

#nba-modal-close {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; font-size: 28px;
    color: #333; cursor: pointer; line-height: 1; z-index: 10;
}

#nba-modal-body { padding: 20px; }

/* Modal Content Design */
.modal-match-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px;
}
.modal-team { text-align: center; width: 35%; }
.modal-team img { width: 50px; height: 50px; display: block; margin: 0 auto 5px; }
.modal-team h3 { margin: 0; font-size: 16px; color: #555; }
.modal-team h1 { margin: 5px 0 0; font-size: 28px; font-weight: 800; color: #000; }
.modal-vs { font-size: 12px; font-weight: bold; color: #cc0000; text-transform: uppercase; }

/* Line Score Table */
.nba-linescore table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.nba-linescore th { background: #f8f9fa; padding: 8px; border-bottom: 1px solid #ddd; color: #666; }
.nba-linescore td { padding: 8px; text-align: center; border-bottom: 1px solid #eee; }

/* Stats Grid */
.nba-stats-grid h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; border-left: 3px solid #06c; padding-left: 8px; }
.nba-stats-grid table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nba-stats-grid td { width: 30%; text-align: center; padding: 6px; border-bottom: 1px solid #f1f1f1; }
.nba-stats-grid th { width: 40%; text-align: center; font-weight: 600; color: #555; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; background: #fafafa; }

/* Loader */
.nba-loader { text-align: center; padding: 40px; color: #666; font-weight: 600; }

/* Full Page Strip Styling Updates */
.espn-strip { display: flex; align-items: center; background: #fff; border: 1px solid #ddd; padding: 10px; margin-bottom: 10px; border-radius: 6px; }
.espn-col-status { width: 120px; font-weight: bold; font-size: 13px; }
.espn-col-matchup { flex: 1; }
.espn-team-row { display: flex; align-items: center; margin: 5px 0; }
.team-logo { width: 25px; margin-right: 10px; }
.team-name { font-weight: 600; font-size: 14px; }
.team-score { margin-left: auto; font-weight: bold; font-size: 16px; padding-right: 20px;}
.espn-btn { background: #06c; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.espn-card-footer span { display: block; text-align: center; padding: 10px; color: #06c; font-weight: bold; font-size: 12px; background: #f9f9f9; text-transform: uppercase; }

/* Mobile */
@media(max-width: 600px) {
    .espn-strip { flex-direction: column; align-items: flex-start; }
    .espn-col-actions { width: 100%; margin-top: 10px; text-align: center; }
    .espn-btn { width: 100%; }
}