body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 10px; }
.container { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); max-width: 900px; margin: auto; }
@media (min-width: 768px) {
    body { padding: 20px; }
    .container { padding: 30px; }
}

h1, h2, h3 { color: #2c3e50; text-align: center; }

.button { display: block; width: 100%; padding: 15px; background-color: #27ae60; color: white; border: none; font-size: 18px; font-weight: bold; cursor: pointer; border-radius: 5px; margin-top: 20px; transition: background 0.3s; min-height: 48px; }
.button:hover { background-color: #219653; }
.button-secondary { background-color: #3498db; margin-top: 0; margin-bottom: 10px; }
.button-secondary:hover { background-color: #2980b9; }

.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; text-align: left; margin-bottom: 20px;}
.player-checkbox { background: #ecf0f1; padding: 10px; border-radius: 5px; display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.player-checkbox input { width: 22px; height: 22px; margin-right: 12px; cursor: pointer; }
.player-checkbox label { cursor: pointer; flex-grow: 1; font-size: 16px; user-select: none; }

hr { border: 0; height: 1px; background: #ddd; margin: 25px 0; }
.results { display: flex; flex-direction: column; gap: 25px; }
.actions { text-align: center; }

.batting-list { background: #ecf0f1; padding: 15px 15px 15px 45px; border-radius: 5px; font-size: 18px; margin: 0;}
.batting-list li { padding: 8px 0; border-bottom: 1px solid #ddd; }
.batting-list li:last-child { border-bottom: none; }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 5px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; min-width: 600px; }
th, td { padding: 12px 10px; border: 1px solid #ddd; text-align: center; font-size: 14px; }
th { background-color: #2980b9; color: white; white-space: nowrap; }
.bench { background-color: #e74c3c; color: white; font-weight: bold; }

/* Pitching Assignments */
.pitching-header { text-align: center; margin-top: 0; }
.pitcher-selection { display: flex; justify-content: center; gap: 20px; margin: 0 auto 20px auto; max-width: 400px;}
.form-group { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.form-group select { padding: 10px; border-radius: 4px; border: 1px solid #ccc; text-align: center; font-size: 16px; width: 100%; max-width: 200px; cursor: pointer; }
