/* =========================================================================
   OTG UTILITIES - MASTER STYLESHEET
   ========================================================================= */

/* --- General & Table Layouts --- */
.otg-schedule-table, .otg-dev-table { 
    width: 100%; 
    min-width: 900px; 
    border-collapse: collapse; 
    background: #111; 
    color: #A8A8A8; 
    font-size: 0.85em; 
    border: 1px solid #333; 
    text-align: left; 
}
.otg-schedule-table tr:hover, .otg-dev-table tbody tr:hover { background-color: #1a1a1a !important; }
.otg-schedule-table th, .otg-dev-table th { background-color: #161616; color: white; padding: 10px 12px; border-bottom: 2px solid #333; border-right: 1px solid #222; text-align: left; }
.otg-schedule-table td, .otg-dev-table td { padding: 10px 12px; border-bottom: 1px solid #222; border-right: 1px solid #222; vertical-align: middle; }
.otg-dev-table th { text-transform: uppercase; font-size: 0.8em; letter-spacing: 0.5px; }
.otg-dev-table tbody tr:nth-child(even) { background-color: #161616; }

/* --- Text Alignment Utilities --- */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }

/* --- Row Modifiers & Custom Highlights --- */
.otg-row-preseason { background-color: rgba(65, 88, 208, 0.15); }
.otg-row-preseason:hover { background-color: rgba(65, 88, 208, 0.25) !important; }
.otg-row-playoff-1 { background-color: rgba(139, 0, 0, 0.25); }
.otg-row-playoff-1:hover { background-color: rgba(139, 0, 0, 0.4) !important; }
.otg-row-playoff-2 { background-color: rgba(100, 0, 0, 0.15); }
.otg-row-playoff-2:hover { background-color: rgba(100, 0, 0, 0.3) !important; }
.otg-group-header { background-color: #161616 !important; color: #fff; font-weight: bold; border-top: 2px solid #333; border-bottom: 2px solid #333; }
.otg-team-logo { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: 6px; display: inline-block; }

/* --- Boxscore & Sidebar Elements --- */
.otg-boxscore-sidebar h4 { color: #fff; border-bottom: 1px solid #333; padding-bottom: 6px; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; margin-top: 20px; }
.otg-boxscore-section-title { color: #fff; font-weight: bold; font-size: 1.1em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 8px; }
.otg-player-link { color: inherit; text-decoration: none; }
.otg-player-link:hover { text-decoration: underline; }

/* --- Navigation & Jump Selectors --- */
.otg-nav-link { color: #aaa; text-decoration: none; font-size: 0.85em; }
.otg-nav-link:hover { color: #fff; }
.otg-jump-select { background: #1a1a1a; color: #fff; border: 1px solid #444; padding: 6px 10px; border-radius: 4px; font-size: 0.85em; width: 420px; box-sizing: border-box; }

/* --- Rolling Week Calendar --- */
.otg-rolling-week-container { text-align: center; margin: 15px; position: relative; z-index: 1; }
.month-header { text-align: center; margin-bottom: 5px; color: #C0C0C0; font-weight: bold; font-size: 0.8em; text-transform: uppercase; }
.otg-rolling-week { display: flex; gap: 7px; justify-content: center; align-items: center; }
.day-box { width: 107px; height: 120px; border: 1px solid #ccc; border-radius: 4px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; position: relative; box-sizing: border-box; background-color: #FFFFFF; }
.day-header-section { padding: 4px 7px; display: flex; align-items: center; justify-content: space-between; position: relative; border-top-left-radius: 3px; border-top-right-radius: 3px; z-index: 1; }
.day-header-content { display: flex; flex-direction: column; align-items: center; flex: 1; }
.day-body-section { flex: 1; padding: 4px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.day-label { font-size: 0.70em; line-height: 1.2; }
.day-number { font-size: 1.0em; font-weight: bold; line-height: 1.2; }
.day-body-section div { font-size: 0.7em !important; line-height: 1.2; }
.day-body-section a { font-size: 1em !important; text-decoration: underline; }
.blue-bg a { color: white !important; }
.white-bg a { color: black !important; }

/* Background Utility Classes */
.day-header-section.blue-bg, .day-body-section.blue-bg { background-color: #0000FF !important; color: white !important; }
.day-header-section.white-bg, .day-body-section.white-bg { background-color: #FFFFFF !important; color: black !important; }
.day-header-section.black-bg, .day-body-section.black-bg { background-color: #000000 !important; color: white !important; }
.day-header-section.red-bg, .day-body-section.red-bg { background-color: #FF0000 !important; color: white !important; }
.day-header-section.icy-blue-bg, .day-body-section.icy-blue-bg,
.day-header-section.icy_blue_bg, .day-body-section.icy_blue_bg { background-color: #b1cff1a4 !important; color: #000 !important; }

/* Rolling Week Badges & Tooltips */
.otg-header-badge { position: relative; cursor: pointer; display: inline-block; }
.otg-header-badge img { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #fff; object-fit: cover; background: #222; display: block; }
.otg-large-event-logo { width: 50px; height: auto; margin: 2px 0; object-fit: contain; }
.otg-event-tooltip { visibility: hidden; width: 130px; background-color: #111; color: #fff; text-align: center; border-radius: 4px; padding: 5px; position: absolute; z-index: 9999; bottom: 140%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.2s; font-size: 0.65em; box-shadow: 0px 4px 8px rgba(0,0,0,0.6); border: 1px solid #444; pointer-events: none; }
.otg-event-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px; border-width: 4px; border-style: solid; border-color: #111 transparent transparent transparent; }
.otg-header-badge:hover .otg-event-tooltip, .otg-event-badge-container:hover .otg-event-tooltip { visibility: visible; opacity: 1; }
.nav-arrow { font-size: 1.3em; text-decoration: none !important; color: #C0C0C0 !important; padding: 0 10px; }
.nav-arrow:hover { color: #ffffff !important; }

/* --- Player Profile Table Adjustments --- */
#otg-stats-table tr:hover { background-color: #666 !important; }
#otg-stats-table tr.team-nyr { background-color: #003366 !important; }
#otg-stats-table tr.team-nyr:hover { background-color: #447eb8ff !important; }
#otg-stats-table tr.league-nhl:not(.team-nyr) { background-color: #333 !important; }
#otg-stats-table tr.league-nhl:not(.team-nyr):hover { background-color: #666 !important; }
.static-row { display: table-row !important; }