.espn-games-list {
    max-width: 800px;
    margin: 20px auto;
}

.espn-game-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background: #fff;
}

.espn-game-teams {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.espn-game-teams .vs {
    margin: 0 10px;
    color: #666;
}

.espn-game-info {
    font-size: 0.9em;
    color: #666;
}

.espn-game-info span {
    margin-right: 15px;
}

.espn-game-info .status {
    font-weight: bold;
}

.espn-game-item[data-status="1"] {
    border-left: 4px solid #ff4444;
}

.espn-game-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score {
    font-size: 1.4em;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.show-game-details {
    margin-left: 15px;
    color: #0073aa;
    text-decoration: none;
}

.show-game-details:hover {
    text-decoration: underline;
}

/* Animation for score updates */
@keyframes scoreUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.score.updated {
    animation: scoreUpdate 0.5s ease-in-out;
}

.espn-game-item .live {
    color: #ff4444;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.espn-no-games {
    text-align: center;
    padding: 20px;
    color: #666;
}

.espn-error {
    color: #dc3232;
    text-align: center;
    padding: 20px;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .espn-game-teams {
        flex-direction: column;
        gap: 10px;
    }

    .espn-game-info {
        flex-wrap: wrap;
    }

    .espn-game-info span {
        margin-bottom: 5px;
    }
}

.espn-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.espn-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.espn-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.espn-modal-close:hover {
    color: #000;
}

.espn-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.espn-modal-header .game-teams {
    font-size: 1.5em;
    margin: 0 0 10px 0;
}

.espn-modal-header .game-meta {
    color: #666;
    font-size: 0.9em;
}

.espn-modal-header .game-meta span {
    margin-right: 15px;
}

.game-details .score-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.game-details .team {
    text-align: center;
}

.game-details .team .name {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.game-details .team .score {
    display: block;
    font-size: 2em;
    font-weight: bold;
}

.game-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.game-details .venue-section,
.game-details .broadcast-section,
.game-details .odds-section {
    margin-bottom: 20px;
}

.odds-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.odds-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.odds-item .name {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.odds-item .value {
    font-size: 1.2em;
    font-weight: bold;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .espn-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }

    .game-details .score-section {
        padding: 10px;
    }

    .odds-list {
        grid-template-columns: 1fr;
    }
}

.espn-games-header {
    margin-bottom: 20px;
}

.espn-games-tabs {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 2px solid #eee;
}

.tab-button {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.tab-button.active {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    margin-bottom: -2px;
}

.espn-games-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.espn-game-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.league-info {
    font-weight: 500;
    color: #666;
}

.game-time {
    color: #888;
}

.game-teams {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.team:last-child {
    margin-bottom: 0;
}

.team-name {
    font-weight: 500;
}

.team-score {
    font-weight: bold;
    font-size: 1.2em;
}

.game-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    gap: 10px;
    background: #f8f9fa;
}

.odds-column {
    text-align: center;
}

.odds-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.odds-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.odds-value .spread,
.odds-value .total,
.odds-value .moneyline {
    font-weight: bold;
    color: #333;
}

.odds-value .percentage {
    font-size: 0.8em;
    color: #666;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .espn-games-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .espn-games-grid {
        grid-template-columns: 1fr;
    }
} 