
/* Tab System */
.gm-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; margin-top:20px; }
.tab-btn { background: #bdc3c7; color: #2c3e50; border: none; padding: 12px 25px; font-size: 16px; font-weight: bold; border-radius: 8px 8px 0 0; cursor: pointer; transition: 0.3s; box-shadow: inset 0 -3px 5px rgba(0,0,0,0.1); }
.tab-btn:hover { background: #95a5a6; }
.tab-btn.active { background: #2980b9; color: white; box-shadow: 0 -4px 10px rgba(41, 128, 185, 0.4); }
.tab-content { display: none; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Shared & Front Office Styles */
.office-box { font-family: Arial, sans-serif; background-color: #f9f9f9; padding: 20px; border-radius: 0 0 10px 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-width: 900px; margin: auto; border-top: 4px solid #2980b9;}
.office-header { text-align: center; color: #2c3e50; margin-top: 0; margin-bottom: 10px; font-weight: bold; border-bottom: 3px solid #34495e; padding-bottom: 10px; }
.loading { text-align: center; color: #d35400; font-weight: bold; padding: 30px; font-size: 18px;}
.admin-welcome { text-align: center; padding: 40px; font-size: 18px; color: #7f8c8d; display: none; background: #fff; border: 2px dashed #bdc3c7; border-radius: 8px; margin-bottom: 20px; }

/* Global Selector */
.global-selector { background: #2c3e50; padding: 20px; border-radius: 8px; text-align: center; margin-bottom: 20px; color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.2);}
.global-selector label { font-size: 16px; font-weight: bold; margin-right: 10px; }
.global-selector select { padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 16px; font-weight: bold; min-width: 250px; cursor: pointer;}

.team-dashboard { background: #fff; padding: 20px; border-radius: 8px; border: 2px solid #27ae60; margin-bottom: 20px; display: none; box-shadow: 0 4px 8px rgba(0,0,0,0.1);}
.dash-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.dash-title { font-size: 24px; font-weight: bold; color: #2c3e50; margin: 0;}
.dash-bank { font-size: 22px; font-weight: bold; color: #27ae60; background: #eafaf1; padding: 10px 15px; border-radius: 5px; border: 1px solid #2ecc71;}
.dash-record { font-size: 18px; font-weight: bold; color: #34495e; text-align: center; margin-bottom: 20px;}
.tix-box { background: #fdfdfd; border: 1px solid #ddd; padding: 15px; border-radius: 5px; text-align: center; margin-bottom: 20px;}
.tix-box select { padding: 10px; font-size: 14px; font-weight: bold; border-radius: 4px; margin-right: 10px;}
.tix-btn { background: #2980b9; color: white; border: none; padding: 10px 20px; font-size: 14px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.2s;}
.tix-btn:hover { background: #1a252f; }
.tix-warn { font-size: 13px; font-weight: bold; color: #d35400; background: #fcf3cf; padding: 8px; border-radius: 4px; margin-top: 10px; display: none; border: 1px solid #f39c12; }
.rev-grid { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center;}
.rev-card { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #ddd; width: 45%; min-width: 200px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.rev-card h4 { color: #2c3e50; margin-top: 0; border-bottom: 1px dashed #ccc; padding-bottom: 5px; }
.rev-amount { font-size: 22px; font-weight: bold; color: #27ae60; margin: 10px 0;}
.milestone-track { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.ms-btn { padding: 8px 5px; font-size: 11px; font-weight: bold; border-radius: 4px; border: none; cursor: pointer; width: 30%; transition: 0.2s; color: white;}
.ms-btn.locked { background-color: #bdc3c7; cursor: not-allowed; }
.ms-btn.ready { background-color: #27ae60; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ms-btn.ready:hover { background-color: #219653; }
.ms-btn.claimed { background-color: #34495e; cursor: not-allowed; opacity: 0.5; }
.flex-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.column { flex: 1; min-width: 300px; background: #fff; padding: 20px; border-radius: 8px; border: 2px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.full-width { flex-basis: 100%; } 
.col-title { color: #e67e22; border-bottom: 2px solid rgba(230,126,34,0.3); padding-bottom: 5px; margin-top: 0; }
.iwbl-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 15px;}
.iwbl-table th, .iwbl-table td { padding: 8px; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
.iwbl-table th { background-color: #2c3e50; color: #fff; }
.money { font-weight: bold; color: #27ae60; }
.ovr-badge { background: #3498db; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-left: 5px; font-weight: bold;}
.trade-form label { font-weight: bold; display: block; margin-top: 15px; margin-bottom: 5px; color: #34495e;}
.trade-form select { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 14px; }
.trade-form select:disabled { background: #eee; cursor: not-allowed; }
.trade-btn { margin-top: 20px; width: 100%; background-color: #2980b9; color: white; padding: 15px; font-size: 16px; font-weight: bold; border: none; border-radius: 5px; cursor: pointer; transition: 0.2s;}
.trade-btn:hover:not(:disabled) { background-color: #1a252f; }
.trade-btn:disabled { background: #95a5a6; cursor: not-allowed; opacity: 0.7;}
.swap-icon { text-align: center; font-size: 24px; color: #7f8c8d; margin: 10px 0; font-weight: bold;}
.trade-preview { background: #e8f8f5; border: 1px solid #27ae60; padding: 15px; border-radius: 5px; margin-top: 20px; font-size: 14px; color: #2c3e50; text-align: center; display: none; line-height: 1.5; }
.trade-preview strong { color: #27ae60; }
.trade-preview .pays { color: #e74c3c; font-weight: bold; }
.header-logo { width: 60px; height: 60px; object-fit: contain; margin-right: 15px; display: none; border-radius: 5px; }
.table-photo { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 10px; border: 1px solid #ccc; background:#eee; }
.table-logo { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; margin-right: 10px; }

/* Clubhouse Specific */
.ch-video-header { max-width: 100%; border-radius: 10px; border: 2px solid #2980b9; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin-bottom: 20px; background: #000; }
.ch-sub { text-align: center; color: #7f8c8d; font-size: 14px; margin-bottom: 20px; }
.ch-team-header-flex { display: flex; justify-content: center; align-items: center; margin-bottom: 25px; flex-wrap: wrap; }
.ch-bank-display { background: #27ae60; color: white; padding: 15px; border-radius: 8px; font-size: 24px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.2); margin-left: 20px; }
.fac-info-card { background: #eaf2f8; border-left: 4px solid #3498db; padding: 12px 15px; border-radius: 4px; font-size: 13px; color: #2c3e50; margin-bottom: 20px; line-height: 1.5; }
.fac-info-card strong { color: #2980b9; font-size: 14px;}
.fac-info-card ul { margin: 8px 0 0 20px; padding: 0; }
.fac-permanent-tag { color:#e67e22; font-weight:bold; display:block; margin-top:8px; border-top: 1px dashed #bdc3c7; padding-top: 8px;}
.fac-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.fac-info { flex: 2; display: flex; align-items: center; }
.fac-img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; margin-right: 15px; border: 1px solid #bdc3c7; }
.fac-name { font-weight: bold; color: #2c3e50; font-size: 15px; }
.fac-lvl { font-size: 12px; color: #7f8c8d; }
.fac-btn { flex: 1; background: #3498db; color: white; border: none; padding: 8px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 12px; }
.fac-btn:disabled { background: #bdc3c7; cursor: not-allowed; }
.train-wrap { margin-top: 15px; }
.train-wrap label { font-size: 13px; font-weight: bold; color: #555; display: block; margin-bottom: 5px; }
.train-wrap select { width: 100%; padding: 8px; margin-bottom: 15px; border-radius: 4px; border: 1px solid #ccc; font-weight: bold; box-sizing: border-box;}
.ch-player-card { background: #fff; border: 2px solid #3498db; border-radius: 8px; padding: 15px; margin-bottom: 15px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: none; }
.ch-pc-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid #2980b9; margin: 0 auto 10px auto; background:#eee;}
.ch-pc-name { margin: 0 0 5px 0; color: #2c3e50; font-size: 18px; }
.ch-pc-ovr { color: #e67e22; font-weight: bold; font-size: 16px; margin-bottom: 10px; }
.ch-pc-stats { display: flex; justify-content: space-around; background: #ecf0f1; padding: 10px; border-radius: 5px; border: 1px solid #ddd; font-size: 13px;}
.ch-pc-stats span { display: flex; flex-direction: column; font-weight: bold; color: #7f8c8d; }
.ch-pc-stats b { color: #2c3e50; font-size: 16px; }
.train-btn { background: #e67e22; color: white; border: none; width: 100%; padding: 12px; border-radius: 5px; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.2s; margin-bottom: 10px; box-sizing: border-box;}
.train-btn:hover { background: #d35400; }
.train-cost-display { text-align: center; font-size: 13px; color: #7f8c8d; font-weight: bold; background: #ecf0f1; padding: 8px; border-radius: 4px; margin-bottom: 15px; box-sizing: border-box;}
.ch-msg { text-align: center; font-weight: bold; padding: 10px; margin-top: 15px; border-radius: 5px; display: none; }

/* Rotation Settings */
.rotation-box { margin-bottom: 25px; padding: 20px; background: #e8f4f8; border: 2px solid #3498db; border-radius: 8px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.rot-label { font-size: 14px; font-weight: bold; color: #2c3e50; display: block; margin-bottom: 5px; }
.rot-select { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #bdc3c7; font-size: 14px; font-weight: bold; margin-bottom: 15px; box-sizing: border-box;}
.rot-btn { background: #3498db; color: white; border: none; padding: 12px; width: 100%; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s;}
.rot-btn:hover { background: #2980b9; }
.rot-btn:disabled { background: #95a5a6; cursor: not-allowed; }
.locked-rotation-display { background: #fff; border: 1px solid #bdc3c7; padding: 15px; border-radius: 5px; margin-top: 15px; font-size: 14px; color: #2c3e50; text-align: left; display: none; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* ========================================================
   SIMULATOR CSS
   ======================================================== */
.scheduler-box { font-family: Arial, sans-serif; background-color: #f9f9f9; padding: 20px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-width: 950px; margin: 20px auto; border: 2px solid #3498db; }
.scheduler-header { text-align: center; color: #2980b9; margin-bottom: 5px; font-weight: bold; }
.commish-sig { text-align: center; font-style: italic; color: #7f8c8d; font-size: 14px; margin-bottom: 20px; border-bottom: 3px solid #3498db; padding-bottom: 10px; font-family: 'Georgia', serif; }
.sched-loading { text-align: center; color: #d35400; font-weight: bold; padding: 30px; font-size: 16px; }
.game-id-hl { color: #e67e22; border-bottom: 2px dashed #e67e22; }
.sched-flex { display: flex; gap: 20px; flex-wrap: wrap; }
.sched-column { flex: 1; min-width: 300px; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.sched-col-title { color: #e67e22; border-bottom: 2px solid rgba(230,126,34,0.3); padding-bottom: 5px; margin-top: 0; font-size: 18px; }
.suggestion-card { display: flex; justify-content: space-between; align-items: center; background: #fdfefe; border: 1px solid #bdc3c7; border-left: 4px solid #e67e22; padding: 12px; margin-bottom: 10px; border-radius: 5px; transition: transform 0.2s ease; }
.suggestion-card:hover { transform: translateX(5px); border-color: #3498db; }
.suggestion-teams { font-weight: bold; color: #2c3e50; font-size: 15px; }
.suggestion-context { font-size: 12px; color: #7f8c8d; margin-top: 4px; }
.suggestion-badge { background: #27ae60; color: #fff; padding: 8px 12px; border-radius: 5px; font-size: 12px; font-weight: bold; min-width: 100px; border: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.suggestion-badge:hover { background: #219653; transform: scale(1.05); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.warning-card { background: #fffaf0; border: 1px solid #fce4ec; border-left: 4px solid #e74c3c; padding: 10px; margin-bottom: 10px; border-radius: 5px; font-size: 14px; }
.warning-name { font-weight: bold; color: #c0392b; }
.all-caught-up { text-align: center; padding: 20px; color: #27ae60; font-weight: bold; font-style: italic; border: 1px dashed #27ae60; background: #eafaf1; border-radius: 5px; }
.refresh-btn { background: #3498db; color: white; border: none; padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; margin-top: 10px; }
.refresh-btn:hover { background: #2980b9; }

.sim-box { position: relative; overflow: hidden; font-family: Arial, sans-serif; background-color: #f9f9f9; padding: 20px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-width: 950px; margin: auto; }
.sim-box select { padding: 8px; border-radius: 5px; border: 1px solid #ccc; font-size: 13px; font-weight: bold; width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.sim-box select:disabled { background-color: #ecf0f1; cursor: not-allowed; color: #7f8c8d; border-color: #bdc3c7; }
.sim-box button { padding: 12px; background-color: #2c3e50; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; transition: background 0.2s; z-index: 100; margin: 5px 0; width: 100%; display: block; }
.sim-box button:hover { background-color: #1a252f; }
.lock-banner { text-align:center; padding:10px; border-radius:5px; margin-bottom:20px; font-weight:bold; font-size:14px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.prompt-banner { text-align:center; padding: 15px; font-weight:bold; color:#c0392b; background:#fadbd8; border-radius:5px; border: 2px dashed #e74c3c; margin-top: 10px; }
.matchup-grid { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; padding: 20px; border-radius: 10px; background: #ddd; align-items: flex-start; background-size: cover; background-position: center; transition: background-image 0.4s ease-in-out;}
.card-base { background: rgba(255,255,255,0.60); padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.5); text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.2); backdrop-filter: blur(3px); }
.team-card { flex: 1; min-width: 220px; }
.team-card h3 { margin: 0 0 5px 0; font-size: 18px; color: #2c3e50; text-transform: uppercase; }
.vs-badge { align-self: center; font-weight: bold; font-size: 24px; color: #fff; text-shadow: 2px 2px 5px #000; margin-top: 40px; }
.visual-img { max-width: 60px; max-height: 60px; display: none; margin: 5px auto; object-fit: contain;}
#inningStatus { text-align: center; font-size: 20px; font-weight: bold; margin-bottom: 10px; color: #2c3e50; padding: 10px; background: #fff; border-radius: 5px; border: 2px solid #ccc; transition: all 0.3s; }
.game-field-view { position: relative; height: 500px; background-size: cover; background-position: center; border-radius: 10px; border: 3px solid #34495e; box-shadow: 0 6px 12px rgba(0,0,0,0.3); margin-bottom: 15px; overflow: hidden; background-color: #5d9b5b; transition: background-image 0.4s ease-in-out; }
.dashboard-scoreboard { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.8); padding: 10px; border-radius: 5px; font-weight: bold; font-size: 16px; color: #fff; border: 2px solid #444; z-index: 50;}
.field-slot { position: absolute; width: 110px; text-align: center; background: rgba(255,255,255,0.85); border-radius: 5px; padding: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.6); transform: translate(-50%, -50%); z-index: 10;}
.field-slot img { width: 50px; height: 50px; border-radius: 5px; object-fit: cover; margin: 0 auto 5px auto; display: block; border: 1px solid #333; background: #fff;}
.field-slot.pitcher-slot img { border-radius: 50%; width: 60px; height: 60px; border: 2px solid #2980b9;}
.field-slot .slot-name { font-size: 12px; font-weight: bold; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid #ccc; padding-top: 4px;}
.field-slot .slot-ovr { font-size: 11px; font-weight: bold; color: #d35400; margin-top: 2px;}
.field-slot .slot-label { font-size: 11px; color: #555; font-weight: bold; margin-bottom: 4px;}
#pos-lf { top: 30%; left: 25%; }
#pos-p { top: 50%; left: 50%; border: 2px solid #2980b9; width: 130px; }
#pos-rf { top: 30%; left: 75%; }
#pos-batter { top: 82%; left: 50%; width: 160px; border: 2px solid #e67e22; background: rgba(255, 255, 255, 0.95); }
#pos-batter img { border-radius: 0; width: 60px; height: 60px; object-fit: contain; border: none; background: none;}
#pos-batter .slot-name { color: #e67e22; font-size: 13px; border-top: 1px solid #eee; }
.lineup-box { position: absolute; bottom: 15px; width: 175px; background: rgba(0,0,0,0.85); color: #fff; padding: 12px; border-radius: 5px; font-size: 13px; z-index: 20; border: 2px solid #444; box-shadow: 0 4px 8px rgba(0,0,0,0.5);}
#away-lineup-box { left: 15px; border-top: 3px solid #3498db; }
#home-lineup-box { right: 15px; border-top: 3px solid #e74c3c; }
.lineup-box h4 { margin: 0 0 8px 0; border-bottom: 1px solid #777; padding-bottom: 5px; color: #f1c40f; text-align: center; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.lu-row { padding: 4px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1);}
.lu-row:last-child { border-bottom: none; }
.game-controls { display: flex; justify-content: center; align-items: center; background: #fff; padding: 15px; border-radius: 8px; border: 2px solid #ddd; margin-bottom: 15px;}
#pbpLog { height: 120px; overflow-y: auto; border: 2px solid #34495e; background: #1a252f; color: #ecf0f1; padding: 10px; font-family: monospace; display: none; flex-direction: column-reverse; border-radius: 5px; }
.log-entry { margin-bottom: 5px; border-bottom: 1px solid #34495e; padding-bottom: 5px; font-size: 13px;}
#resetGameBtn { background-color: #3498db; margin-top: 20px; padding: 15px; font-size: 18px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
#resetGameBtn:hover { background-color: #2980b9; }
#finalBoxScoreContainer { justify-content: space-between; gap: 15px; margin-top: 20px; }
.final-score-panel { flex: 1; background: #fff; padding: 15px; border-radius: 5px; border: 2px solid #333; }
.final-score-panel h3 { margin-top: 0; color: #2c3e50; border-bottom: 2px solid #ccc; padding-bottom: 5px;}
.stat-row { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 13px; display: flex; justify-content: space-between;}
.stat-name { font-weight: bold; color: #d35400; width: 40%; }
.stat-numbers { width: 60%; text-align: right; color: #555; font-family: monospace; font-size: 14px;}

/* SCOUTING REPORT */
.pitcher-info-slide { position: absolute; top: 80px; left: -400px; width: 260px; background: rgba(255, 255, 255, 0.98); border: 4px solid #3498db; border-radius: 12px; padding: 20px; box-shadow: 5px 5px 20px rgba(0,0,0,0.3); z-index: 1000; text-align: center; transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.pitcher-info-slide.open { left: 20px; }
#close-pitcher-card { position: absolute; top: 5px; right: 10px; background: transparent; color: #e74c3c; border: none; font-size: 24px; cursor: pointer; box-shadow: none; padding: 0; width: auto; transition: transform 0.2s; }
#close-pitcher-card:hover { transform: scale(1.2); }
#pi-photo { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 3px solid #2980b9; margin-bottom: 10px; background: #eee; }
#pi-name { margin: 5px 0; color: #2c3e50; font-size: 18px; }
#pi-ovr { margin: 0; font-weight: bold; color: #e67e22; font-size: 16px; margin-bottom: 10px;}
.pi-stats { display: flex; justify-content: space-around; font-size: 13px; background: #ecf0f1; padding: 10px; border-radius: 5px; border: 1px solid #ddd; }
.pi-stats span { display: flex; flex-direction: column; font-weight: bold; color: #7f8c8d; }
.pi-stats b { color: #2c3e50; font-size: 16px; }
.pi-rest-status { margin-top: 15px; font-weight: bold; font-size: 13px; padding: 10px; border-radius: 5px; border: 1px solid transparent; }

/* VICTORY MODAL */
#victory-video-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(20, 20, 20, 0.98); padding: 25px; border: 4px solid #e67e22; border-radius: 12px; z-index: 999999; box-shadow: 0 15px 50px rgba(0,0,0,0.7); flex-direction: column; align-items: center; max-width: 90%; }
#victory-modal-title { margin-top: 0; margin-bottom: 15px; font-style: italic; text-transform: uppercase; font-size: 24px; text-shadow: 2px 2px 5px #000; }
#victory-video-modal video { max-width: 100%; max-height: 50vh; border-radius: 8px; background: #000; }
.victory-modal-btn { margin-top: 20px; padding: 12px 25px; background: #3498db; color: #fff; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.victory-modal-btn:hover { background: #2980b9; transform: scale(1.05); }

/* NEW: Head-to-Head Pitcher Comparison Box */
.h2h-container { display: flex; justify-content: center; gap: 20px; margin-top: 20px; margin-bottom: 20px; }
.h2h-card { background: #fff; border-radius: 8px; padding: 15px; flex: 1; max-width: 350px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.h2h-card.away-card { border: 3px solid #3498db; }
.h2h-card.home-card { border: 3px solid #e74c3c; }
.h2h-card h4 { margin: 0 0 10px 0; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.h2h-card.away-card h4 { color: #2980b9; border-bottom: 2px solid rgba(52, 152, 219, 0.3); padding-bottom: 5px; }
.h2h-card.home-card h4 { color: #c0392b; border-bottom: 2px solid rgba(231, 76, 60, 0.3); padding-bottom: 5px; }

/* PHOTO WRAPPERS FOR FLOATING ROSTER BADGES */
.h2h-photo-wrap { position: relative; display: inline-block; margin: 0 auto 10px auto; width: 96px; height: 96px; }
.h2h-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; background: #eee; display: block; margin: 0 auto; }
.h2h-card.away-card .h2h-photo { border: 3px solid #3498db; }
.h2h-card.home-card .h2h-photo { border: 3px solid #e74c3c; }

/* THE OVERLAID SYSTEM DESIGNATION PINS */
.h2h-role-badge { position: absolute; bottom: -4px; right: -8px; font-size: 11px; font-weight: bold; padding: 3px 8px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); display: none; white-space: nowrap; z-index: 2; text-transform: uppercase; letter-spacing: 0.5px;}
.h2h-role-badge.ace { background: #f1c40f; color: #2c3e50; }
.h2h-role-badge.sp2 { background: #bdc3c7; color: #2c3e50; }

.h2h-name { font-size: 20px; font-weight: bold; color: #2c3e50; margin: 0 0 5px 0; }
.h2h-ovr { font-size: 16px; font-weight: bold; color: #e67e22; margin-bottom: 10px; background: #fdf2e9; display: inline-block; padding: 4px 12px; border-radius: 4px; border: 1px solid #e67e22; }

@media (max-width: 768px) {
  .matchup-grid { flex-wrap: wrap; }
  #pos-lf { top: 20%; left: 20%; transform: scale(0.85) translate(-50%, -50%);}
  #pos-rf { top: 20%; left: 80%; transform: scale(0.85) translate(-50%, -50%);}
  #pos-p { top: 45%; transform: scale(0.9) translate(-50%, -50%);}
  #pos-batter { top: 75%; transform: scale(0.85) translate(-50%, -50%); }
  .lineup-box { transform: scale(0.85); bottom: 5px; }
  #away-lineup-box { left: 5px; transform-origin: bottom left; }
  #home-lineup-box { right: 5px; transform-origin: bottom right; }
  .game-field-view { height: 400px; }
  #finalBoxScoreContainer { flex-direction: column; }
  .stat-row { flex-direction: column; text-align: left; }
  .stat-numbers { width: 100%; text-align: left; margin-top: 4px; }
  .pitcher-info-slide { top: 60px; left: -120%; width: calc(100% - 40px); }
  .pitcher-info-slide.open { left: 20px; }
  .h2h-container { flex-direction: column; align-items: center; }
  .h2h-card { width: 100%; }
}

#gameDashboard{display:block!important}#pbpLog{display:flex!important}.sim-box{margin:20px auto}#iwbl-tv-status{padding:12px;background:#ecf0f1;color:#243746}#iwbl-tv-games{max-width:950px;margin:20px auto;padding:12px}#pos-batter .slot-name{font-size:12px}
#iwbl-sound-toggle{margin:0 0 12px;padding:10px 16px;cursor:pointer}
.iwbl-site-header{background:#101010;color:#fff;padding:24px max(20px,calc((100vw - 1100px)/2));font-family:Arial,sans-serif}.iwbl-site-header a{color:inherit}.iwbl-site-title{display:block;font-size:28px;text-decoration:none;margin-bottom:20px}.iwbl-site-header .wp-block-navigation{font-size:16px}.iwbl-site-header .wp-block-navigation__responsive-container.is-menu-open{background:#101010;color:#fff}.iwbl-site-header .wp-block-navigation__container{gap:20px}
.iwbl-nav-links{display:flex;flex-wrap:wrap;gap:14px 22px;list-style:none;padding:0;margin:0}.iwbl-nav-links a{display:inline-block;padding:6px 0;text-decoration:none}.iwbl-nav-links a:hover{text-decoration:underline}

.iwbl-site-header{background:#000;padding:10px 4% 20px}.iwbl-site-title{display:flex;align-items:center;gap:20px;font-size:40px;line-height:1.2;margin:0 0 18px}.iwbl-header-logo{width:90px;height:90px;object-fit:contain}.iwbl-nav-links{gap:12px 30px}.iwbl-nav-links a{font-size:16px}@media(max-width:600px){.iwbl-site-title{font-size:30px;gap:12px}.iwbl-header-logo{width:72px;height:72px}.iwbl-nav-links{gap:8px 18px}}

.iwbl-site-header{background:#2475a5;border-bottom:4px solid #c90823}.iwbl-site-header a{color:#fff}.iwbl-nav-links a:hover,.iwbl-nav-links a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:5px}.iwbl-site-title:focus-visible,.iwbl-nav-links a:focus-visible{outline:2px solid #fff;outline-offset:4px}


.iwbl-page-layout{max-width:1420px;margin:24px auto;padding:0 20px;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;align-items:start}.iwbl-page-layout #iwbl-broadcast{grid-column:1;grid-row:1;min-width:0}.iwbl-sportsbook-panel{grid-column:2;grid-row:1;background:#101010;color:#fff;border-top:4px solid #c90823;border-radius:8px;padding:20px;font-family:Arial,sans-serif;position:sticky;top:24px}.iwbl-sportsbook-panel p{font-size:12px;letter-spacing:1px;margin:0 0 16px}.iwbl-sportsbook-panel a{display:block;background:#2475a5;color:#fff;padding:12px;border-radius:5px;text-decoration:none;font-weight:bold}.iwbl-sportsbook-panel a:hover{text-decoration:underline}.iwbl-sportsbook-panel small{display:block;color:#ccc;margin-top:12px;font-size:12px}@media(max-width:1000px){.iwbl-page-layout{display:flex;flex-direction:column;padding:0 12px}.iwbl-sportsbook-panel{position:static;align-self:stretch}.iwbl-page-layout #iwbl-broadcast{width:100%}}

.iwbl-sportsbook-panel{background:#10110d;color:#f7f3e7;border:1px solid #b99b55;border-top:4px solid #d4b66c;text-align:center;padding:16px}.iwbl-sportsbook-logo{display:block;width:100%;height:auto;margin:0 auto 16px}.iwbl-sportsbook-panel p{color:#d4b66c;letter-spacing:2px}.iwbl-sportsbook-panel a{background:#d4b66c;color:#17180f;border:1px solid #e9d292}.iwbl-sportsbook-panel a:hover{background:#e5cb88;color:#17180f}.iwbl-sportsbook-panel small{color:#d2c9af}

.iwbl-page-layout{max-width:1700px;grid-template-columns:250px minmax(0,1fr) 190px;gap:18px}.iwbl-page-layout #iwbl-broadcast{grid-column:2}.iwbl-sportsbook-panel{grid-column:3}.iwbl-left-sidebar{grid-column:1;grid-row:1;min-width:0;font-family:Arial,sans-serif}.iwbl-side-box{background:#fff;border:1px solid #dce4eb;border-radius:9px;margin-bottom:18px;padding:14px;color:#243746}.iwbl-side-box h2{font-size:18px;margin:0 0 14px;padding-bottom:10px;border-bottom:3px solid #2475a5}.iwbl-side-box small{display:block;font-size:11px;color:#647485;margin-top:12px}.iwbl-profile{padding:0 0 12px;margin:0 0 14px;border-bottom:1px solid #e5ebef}.iwbl-profile:last-child{margin-bottom:0}.iwbl-profile img{width:76px;height:76px;object-fit:cover;border-radius:50%;border:2px solid #2475a5}.iwbl-profile h3{font-size:16px;margin:8px 0}.iwbl-profile-role{font-size:12px;color:#2475a5;font-weight:bold;line-height:1.5}.iwbl-profile-stats{font-size:12px;line-height:1.6;margin:4px 0}#iwbl-standings table{border-collapse:collapse;width:100%;font-size:11px}#iwbl-standings th,#iwbl-standings td{padding:8px 3px;text-align:right;border-bottom:1px solid #e5ebef}#iwbl-standings th:first-child,#iwbl-standings td:first-child{text-align:left}#iwbl-standings .iwbl-playing{background:#e1f0fb;color:#124c70;font-weight:bold;box-shadow:inset 3px 0 #2475a5}@media(max-width:1250px) and (min-width:1001px){.iwbl-page-layout{grid-template-columns:230px minmax(0,1fr)}.iwbl-sportsbook-panel{grid-column:1;grid-row:2;position:static}}@media(max-width:1000px){.iwbl-page-layout #iwbl-broadcast{order:0}.iwbl-left-sidebar{order:1;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:16px}.iwbl-sportsbook-panel{order:2}}@media(max-width:550px){.iwbl-left-sidebar{display:block}}

.iwbl-page-layout{grid-template-columns:230px minmax(0,1fr) 250px}.iwbl-right-sidebar{grid-column:3;grid-row:1;min-width:0}.iwbl-right-sidebar .iwbl-sportsbook-panel{position:static;box-sizing:border-box;width:100%;margin-bottom:18px}.iwbl-right-sidebar .iwbl-side-box{box-sizing:border-box;width:100%}.iwbl-sportsbook-panel a{box-sizing:border-box;width:100%}@media(max-width:1250px) and (min-width:1001px){.iwbl-page-layout{grid-template-columns:230px minmax(0,1fr)}.iwbl-right-sidebar{grid-column:1;grid-row:2}}@media(max-width:1000px){.iwbl-right-sidebar{order:2;width:100%}.iwbl-left-sidebar{display:block}}

.iwbl-scroll-hint{font-size:11px;color:#637486;margin:0 0 10px}#iwbl-player-profiles:focus{outline:2px solid #2475a5;outline-offset:4px}.iwbl-logo-window{overflow:hidden;border-bottom:1px solid #e5ebef;padding-bottom:10px}.iwbl-logo-track{display:flex;width:max-content;animation:iwbl-logos 16s linear infinite}.iwbl-logo-group{display:flex;flex-shrink:0}.iwbl-team-badge{width:150px;text-align:center;font-size:11px;padding:0 8px;box-sizing:border-box}.iwbl-team-badge img{display:block;width:64px;height:64px;object-fit:contain;margin:0 auto 6px}.iwbl-team-badge span{display:block;min-height:28px}.iwbl-scroll-team{font-size:13px!important;color:#2475a5;margin:16px 0 10px!important;line-height:1.4}.iwbl-player-window{height:240px;overflow:hidden;position:relative;mask-image:linear-gradient(transparent,#000 5%,#000 93%,transparent)}.iwbl-player-track{animation:iwbl-players 36s linear infinite}.iwbl-scroll-profile{box-sizing:border-box;height:200px;margin:0!important;padding:12px 0!important;text-align:center}.iwbl-scroll-profile img{width:72px;height:72px}.iwbl-scroll-profile h3{font-size:15px}.iwbl-left-sidebar:hover .iwbl-logo-track,.iwbl-left-sidebar:hover .iwbl-player-track,.iwbl-left-sidebar:focus-within .iwbl-logo-track,.iwbl-left-sidebar:focus-within .iwbl-player-track{animation-play-state:paused}@keyframes iwbl-logos{to{transform:translateX(-50%)}}@keyframes iwbl-players{to{transform:translateY(-50%)}}@media(prefers-reduced-motion:reduce){.iwbl-logo-track,.iwbl-player-track{animation:none}.iwbl-player-window{overflow:auto;mask-image:none}.iwbl-logo-window{overflow:auto}.iwbl-player-group[aria-hidden],.iwbl-logo-group[aria-hidden]{display:none}}

.iwbl-fixed-matchup{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px;padding:8px 0 14px;border-bottom:1px solid #e5ebef}.iwbl-fixed-team{text-align:center;min-width:0}.iwbl-fixed-team img{width:64px;height:64px;object-fit:contain;max-width:100%;display:block;margin:0 auto 6px}.iwbl-fixed-team span{display:block;font-size:10px;line-height:1.4}.iwbl-vs{font-size:12px;color:#c90823}.iwbl-player-window{height:215px;mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent)}.iwbl-player-track{display:flex;width:600%;animation:iwbl-players-horizontal 36s linear infinite}.iwbl-player-group{display:flex;flex:0 0 50%;width:50%;min-width:0}.iwbl-scroll-profile{flex:0 0 33.333333%;width:33.333333%;min-width:0;padding:12px 7px!important}.iwbl-scroll-profile h3{white-space:normal}@keyframes iwbl-players-horizontal{to{transform:translateX(-50%)}}@media(prefers-reduced-motion:reduce){.iwbl-player-track{animation:none;width:300%}.iwbl-player-group{flex-basis:100%;width:100%}.iwbl-player-window{overflow-x:auto;mask-image:none}}

/* Three profiles: five-second holds followed by one-second slides. */
.iwbl-player-track{animation:iwbl-profile-slides 18s linear infinite}@keyframes iwbl-profile-slides{0%,27.777778%{transform:translateX(0)}33.333333%,61.111111%{transform:translateX(-16.666667%)}66.666667%,94.444444%{transform:translateX(-33.333333%)}100%{transform:translateX(-50%)}}@media(prefers-reduced-motion:reduce){.iwbl-player-track{animation:none}}
