/* GLOBAL CONTAINERS */
.uhs-directory-container, .uhs-profile-wrap, .uhs-season-wrap { 
    width: 100% !important;
    max-width: var(--wndb--container, 1200px) !important;
    box-sizing: border-box !important;
    margin: 0 auto 20px auto !important;
    background: #fff; padding: 15px; border: 1px solid #000; color: #000; 
}

/* Enable Horizontal Scroll Container */
.uhs-table-scroll {
    overflow-x: auto !important;
    display: block;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Sticky Column Logic for Mobile */
@media screen and (max-width: 768px) {
    #uhsPlayerTable th:first-child, #uhsPlayerTable td:first-child,
    .uhs-ref-table th:first-child, .uhs-ref-table td:first-child {
        position: -webkit-sticky; position: sticky; left: 0; z-index: 10;
        background-color: inherit; border-right: 2px solid #5a1222 !important; min-width: 120px;
    }
    #uhsPlayerTable th:first-child, .uhs-ref-table th:first-child {
        z-index: 11; background-color: #5a1222 !important;
    }
}

/* GLOBAL TABLE DEFAULTS */
table.dataTable, table.uhs-ref-table { 
    width: auto !important; min-width: 100%; border: 1px solid #000 !important; 
    border-collapse: collapse !important; margin: 10px 0; font-size: 0.82rem !important; table-layout: auto !important; 
}
table.dataTable td, .uhs-ref-table td { 
    border: 1px solid #000 !important; padding: 8px 10px !important; text-align: center; white-space: nowrap !important; vertical-align: middle !important;
}
table.dataTable th, .uhs-ref-table th { 
    border: 1px solid #000 !important; padding: 8px 5px !important; text-align: center; white-space: nowrap !important; vertical-align: middle !important;
    box-sizing: border-box !important; font-size: 0.95rem !important; font-weight: 700 !important; text-transform: uppercase !important; line-height: 1.2 !important;
}
.uhs-directory-container table.dataTable thead th, .uhs-ref-table th { background: #5a1222 !important; color: #ffffff !important; }
.uhs-directory-container table.dataTable tbody tr:nth-of-type(odd) td, .uhs-ref-table tbody tr:nth-of-type(odd) { background-color: #e3e4e4 !important; color: #000000 !important; }
.uhs-directory-container table.dataTable tbody tr:nth-of-type(even) td, .uhs-ref-table tbody tr:nth-of-type(even) td, .uhs-ref-table tbody tr:nth-of-type(even) { background-color: #5a1222 !important; color: #ffffff !important; }
.uhs-directory-container table.dataTable tbody tr:nth-of-type(even) a, .uhs-directory-container table.dataTable tbody tr:nth-of-type(even) a strong,
.uhs-ref-table tbody tr:nth-of-type(even) a, .uhs-ref-table tbody tr:nth-of-type(even) a strong { color: #ffffff !important; text-decoration: none !important; }
.uhs-directory-container table.dataTable tbody tr:nth-of-type(odd) a, .uhs-ref-table tbody tr:nth-of-type(odd) a { text-decoration: none !important; color: #5a1222 !important; }
.uhs-directory-container table.dataTable tbody tr a:hover { opacity: 0.8 !important; }

/* UI Controls */
.uhs-directory-container input[type="text"], .uhs-directory-container .dataTables_filter input,
.uhs-directory-container .dataTables_length select, .uhs-directory-container select { 
    border: 4px solid #5a1222 !important; border-radius: 30px !important; padding: 10px 20px !important; color: #5a1222 !important; background-color: #ffffff !important;
    font-weight: bold !important; outline: none !important; margin: 5px 0; transition: all 0.3s ease;
}
.uhs-directory-container input[type="text"]:hover, .uhs-directory-container .dataTables_filter input:hover,
.uhs-directory-container .dataTables_length select:hover, .uhs-directory-container select:hover { background-color: #fff0f2 !important; border-color: #7a1a2e !important; }

.ui-autocomplete { background: #ffffff !important; z-index: 9999 !important; border: 4px solid #5a1222 !important; border-radius: 15px !important; max-height: 300px; overflow-y: auto; padding: 0 !important; list-style: none !important; }
.ui-menu-item { padding: 8px 15px !important; cursor: pointer; color: #5a1222; font-weight: bold; }
.ui-menu-item-wrapper.ui-state-active { background-color: #5a1222 !important; color: #ffffff !important; border: none !important; margin: 0 !important; }

/* TAB ISOLATION */
.uhs-directory-container .tab-pane, .season-content .tab-pane { display: none; width: 100%; clear: both; }
.uhs-directory-container .tab-pane.active, .season-content .tab-pane.active { display: block !important; }
.tab-controls { margin-bottom: 15px; border-bottom: 2px solid #5a1222; display: flex; flex-wrap: wrap; gap: 2px; }
.tab-btn { padding: 8px 12px; cursor: pointer; border: 1px solid #000; background: #eee; font-size: 13px; flex-grow: 1; text-align: center; color: #000; }
.tab-btn.active { background: #5a1222 !important; color: #fff !important; }

.uhs-toggle-container { margin-bottom: 20px; text-align: center; background: #eee; padding: 10px; border: 1px solid #000; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.uhs-mode-btn { padding: 10px 20px; border: 4px solid #5a1222; background: #fff; cursor: pointer; font-weight: bold; color: #5a1222; border-radius: 30px; }
.uhs-mode-btn.active { background: #5a1222 !important; color: #fff !important; }
.uhs-season-wrap .season-header { display: flex !important; justify-content: space-between !important; align-items: center !important; cursor: pointer !important; padding: 12px 15px !important; background-color: #5a1222 !important; color: #ffffff !important; font-weight: bold !important; font-size: 1.1rem !important; border-bottom: 1px solid #000 !important; }

.dataTables_filter label { color: #5a1222 !important; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.search-controls { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }

/* LINE GENERATOR */
.uhs-line-gen-container, .uhs-scratch-sidebar, .uhs-line-slot, .uhs-line-slot select { box-sizing: border-box !important; }
.uhs-line-gen-container { background: #f4f4f4; padding: 20px; border: 2px solid #5a1222; border-radius: 15px; margin-bottom: 20px; }
.uhs-forwards-full { width: 100%; margin-bottom: 20px; }
.uhs-line-row { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: nowrap !important; justify-content: center; }
.uhs-line-slot { flex: 1 1 0; min-width: 0; background: #fff; padding: 7px; border: 2px solid #5a1222; border-radius: 10px; text-align: center; }
.uhs-line-slot label { display: block; font-size: 0.75rem; font-weight: bold; color: #5a1222; text-transform: uppercase; margin-bottom: 5px; }
.uhs-line-slot select { width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; box-sizing: border-box; font-size: 0.85rem; }
.uhs-section-divider { border-bottom: 3px solid #5a1222; margin: 20px 0; position: relative; text-align: center; }
.uhs-section-divider span { background: #f4f4f4; padding: 0 15px; position: relative; top: 12px; font-weight: bold; color: #5a1222; }
.uhs-bottom-grid { display: flex; gap: 20px; align-items: flex-start; width: 100%; }
.uhs-left-column { flex: 0 0 72%; max-width: 72%; }
.uhs-scratch-sidebar { flex: 0 0 25%; max-width: 25%; background: #fff; border: 4px solid #5a1222; border-radius: 15px; padding: 15px; position: sticky; top: 20px; }
.uhs-reset-btn { background: #5a1222 !important; color: #fff !important; border: none !important; padding: 10px 20px !important; border-radius: 30px !important; cursor: pointer; font-weight: bold !important; }
.uhs-scratch-sidebar h3 { margin: 0 0 10px 0; color: #5a1222; border-bottom: 2px solid #5a1222; font-size: 1rem; text-align: center; }
.uhs-scratch-item { padding: 5px 10px; border-bottom: 1px solid #eee; color: #333; font-weight: bold; font-size: 0.85rem; }

/* TOOLTIP */
.uhs-iiv-icon { display: inline-block; cursor: help; background: #e3e4e4; color: #5a1222; border-radius: 50%; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 0.7rem; font-weight: bold; margin-left: 5px; }
#uhs-global-iiv-tooltip { position: absolute; z-index: 9999999; width: 240px; background-color: #1a1a1a; color: #ffffff; text-align: center; border-radius: 6px; padding: 12px; font-size: 0.75rem; line-height: 1.4; box-shadow: 0 4px 15px rgba(0,0,0,0.5); display: none; pointer-events: none; }
#uhs-global-iiv-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #1a1a1a transparent transparent transparent; }

/* COMPARISON */
.uhs-whos-hot-card { border-left: 5px solid #5a1222; padding-left: 10px; }
.uhs-compare-select { width: 45%; border: 4px solid #5a1222 !important; border-radius: 30px !important; }
.uhs-winner-cell { background-color: #8d2d40 !important; color: #ffffff !important; font-weight: bold !important; }
.uhs-loser-cell { background-color: #e3e4e4 !important; color: #000000 !important; font-weight: normal !important; }
.uhs-compare-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: nowrap; }
.uhs-compare-input { width: 200px !important; padding: 8px 15px !important; font-size: 0.85rem !important; }
.uhs-vs-text { font-weight: bold; color: #5a1222; font-size: 1.1rem; }
.uhs-compare-arena { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.uhs-compare-header-cards { display: flex; justify-content: space-between; align-items: stretch; gap: 15px; }
.uhs-player-card { flex: 1; background: #5a1222; color: white; padding: 20px; border-radius: 15px; text-align: center; border: 4px solid #000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.uhs-player-card.winner-glow { box-shadow: 0 0 20px #5a1222; border-color: #ffffff; }
.uhs-card-name { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.uhs-card-wins { font-size: 0.9rem; background: rgba(255,255,255,0.2); display: inline-block; padding: 2px 10px; border-radius: 10px; }
.uhs-vs-circle { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem; color: #5a1222; background: #e3e4e4; width: 60px; height: 60px; border-radius: 50%; border: 4px solid #5a1222; align-self: center; z-index: 2; }
.uhs-stat-bar-row { margin-bottom: 15px; }
.uhs-stat-label { text-align: center; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; color: #5a1222; margin-bottom: 5px; }
.uhs-bar-container { display: flex; align-items: center; height: 30px; background: #e3e4e4; border-radius: 15px; overflow: hidden; border: 1px solid #ccc; position: relative; }
.uhs-bar-left, .uhs-bar-right { height: 100%; display: flex; align-items: center; padding: 0 15px; font-weight: bold; transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.uhs-bar-left { justify-content: flex-start; background: #5a1222; color: white; border-right: 2px solid #fff; }
.uhs-bar-right { justify-content: flex-end; background: #5a1222; color: white; margin-left: auto; border-left: 2px solid #fff; }
.uhs-bar-neutral { background: #888 !important; }

/* MILESTONES & CAPTAINS */
.uhs-captain-block { background: #ffffff !important; border: 3px solid #5a1222 !important; color: #5a1222 !important; padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; display: flex !important; align-items: center; gap: 15px; }
.uhs-cap-letter { font-size: 3rem; font-weight: 900; line-height: 1; font-family: 'Arial Black', sans-serif; }
.uhs-cap-text { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; white-space: nowrap; }
.uhs-season-milestones { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin: 20px 0; padding: 15px; background: #fdfdfd; border-radius: 8px; width: 100%; }
.uhs-milestone-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.uhs-season-captains { font-size: 0.95rem; font-weight: bold; color: #5a1222; text-transform: uppercase; letter-spacing: 1px; text-align: center; width: 100%; }
#uhsCaptainHistoryTable td { font-size: 1.05rem; padding: 12px 10px !important; border-bottom: 1px solid #ddd !important; }
#uhsCaptainHistoryTable tr:nth-child(even) { background-color: #f4f4f4 !important; color: #000 !important; }
#uhsCaptainHistoryTable tr:nth-child(odd) { background-color: #ffffff !important; color: #000 !important; }
#uhsCaptainHistoryTable thead th { background: #5a1222 !important; color: #fff !important; }
#uhsCaptainHistoryTable td a:hover { color: #5a1222 !important; text-decoration: underline !important; }

/* PLAYER PROFILE & BOXSCORES */
.uhs-profile-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 4px solid #5a1222; padding-bottom: 10px; margin-bottom: 30px; }
.uhs-profile-header h1 { color: #5a1222; margin: 0; font-size: 2.2rem; border: none; padding: 0; }
.uhs-header-right { text-align: right; display: flex; flex-direction: column; gap: 5px; }
.uhs-badge { font-size: 0.8rem; font-weight: bold; text-transform: uppercase; padding: 3px 10px; border-radius: 5px; display: inline-block; width: fit-content; margin-left: auto; }
.badge-ncaa { background: #5a1222; color: #fff; border: 1px solid #000; }
.badge-f4 { background: #e3e4e4; color: #000; border: 1px solid #5a1222; }
.badge-ecac { background: #000; color: #fff; }
.pro-link-btn { display: inline-block; margin-top: 10px; background: #5a1222; color: #fff !important; padding: 6px 15px; border-radius: 20px; text-decoration: none !important; font-size: 0.9rem; font-weight: bold; transition: opacity 0.2s; border: 1px solid #5a1222; }
.pro-link-btn:hover { background: #fff; color: #5a1222 !important; opacity: 0.8; }
.uhs-totals-row td { font-weight: bold !important; border-top: 4px solid #000000 !important; background-color: #e3e4e4 !important; color: #000000 !important; }
.uhs-transaction-container { margin: 25px 0; padding: 15px 20px; background: #fdf2f2; border-left: 5px solid #5a1222; border-radius: 0 10px 10px 0; }
.uhs-transaction-note { font-style: italic; font-weight: bold; color: #5a1222; font-size: 1.05rem; display: block; }
.uhs-transaction-disclaimer { font-size: 0.75rem; color: #666; margin-top: 5px; display: block; }

.uhs-boxscore-outer-wrap { background: #ffffff; max-width: 1100px; margin: 40px auto; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #e1e4e8; }
.uhs-box-header { text-align: center; background: #5a1222; color: #fff; padding: 40px; border-radius: 8px; margin-bottom: 30px; }
.uhs-box-header a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }
.uhs-box-header a:hover { border-bottom-color: #fff; }
.uhs-meta-line { margin-top: 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; font-weight: 600; }
.pm-positive { color: #28a745 !important; font-weight: bold; }
.pm-negative { color: #dc3545 !important; font-weight: bold; }
.pm-neutral { color: inherit !important; font-weight: normal; }
#boxscore-entry thead th, .wp-list-table thead th { position: sticky; top: 32px; background: #f8f9fa; z-index: 100; border-bottom: 2px solid #5a1222 !important; box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1); }
.scratched-row { opacity: 0.4; }

/* MATRIX */
.uhs-matrix-wrapper { background: #fff; border: 4px solid #5a1222; border-radius: 15px; padding: 20px; margin: 30px 0; font-family: sans-serif; }
.matrix-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 2px solid #eee; padding-bottom: 15px; flex-wrap: wrap; gap: 15px; }
.matrix-header h2 { margin: 0; color: #5a1222; text-transform: uppercase; font-weight: 900; }
.matrix-btn { padding: 8px 18px; border: 3px solid #5a1222; background: #fff; color: #5a1222; font-weight: bold; border-radius: 25px; cursor: pointer; transition: 0.2s; }
.matrix-btn.active { background: #5a1222; color: #fff; }
.matrix-grid { display: flex; flex-direction: column; gap: 5px; }
.matrix-row { display: flex; gap: 5px; min-height: 80px; }
.matrix-labels { min-height: unset; margin-bottom: 10px; }
.matrix-pos-label, .matrix-pos-sidebar { flex: 0 0 100px; display: flex; align-items: center; justify-content: center; background: #5a1222; color: #fff; font-weight: 900; text-transform: uppercase; font-size: 0.75rem; border-radius: 4px; }
.matrix-pos-sidebar span { transform: rotate(-90deg); white-space: nowrap; }
.matrix-col-label { flex: 1; text-align: center; font-weight: 900; color: #5a1222; text-transform: uppercase; font-size: 0.8rem; background: #f4f4f4; padding: 8px; border-radius: 4px; border: 1px solid #ddd; }
.matrix-cell { flex: 1; border: 1px dashed #ccc; background: #fafafa; padding: 8px; display: flex; flex-direction: column; gap: 4px; border-radius: 4px; }
.matrix-p-box { display: block; padding: 6px 10px; background: #fff; border: 1px solid #ddd; border-radius: 4px; text-decoration: none !important; font-size: 0.8rem; color: #333; font-weight: 600; text-align: center; transition: all 0.3s ease; }
.matrix-p-box:hover { border-color: #5a1222; transform: scale(1.02); z-index: 5; }
.p-pts-txt, .p-pgp-txt { display: none; font-weight: 900; }
.name-mode .p-name-txt { display: block; }
.heat-mode .matrix-p-box { background: var(--heat-bg) !important; color: var(--heat-color) !important; border-color: rgba(0,0,0,0.1); }
.heat-mode .p-name-txt, .heat-mode .p-pgp-txt { display: none; }
.heat-mode .p-pts-txt { display: block; font-size: 1rem; }
.pgp-mode .matrix-p-box { background: var(--pgp-bg) !important; color: var(--pgp-color) !important; border-color: rgba(255,255,255,0.2); }
.pgp-mode .p-name-txt, .pgp-mode .p-pts-txt { display: none; }
.pgp-mode .p-pgp-txt { display: block; font-size: 0.95rem; }

/* TEASER WIDGET */
.uhs-heatmap-teaser { position: relative; background: #0a0a0a !important; border-radius: 12px; padding: 35px 20px; color: #ffffff !important; overflow: hidden; text-align: center; border: 2px solid #5a1222 !important; box-shadow: 0 15px 40px rgba(0,0,0,0.8); }
.teaser-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(90, 18, 34, 0.6), transparent); z-index: 1; }
.teaser-content { position: relative; z-index: 2; }
.teaser-tag { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: #5a1222 !important; background: #ffffff !important; padding: 4px 14px; border-radius: 20px; }
.teaser-title { font-size: 1.8rem; font-weight: 900; margin: 20px 0 5px 0; line-height: 1; color: #ffffff !important; text-transform: uppercase; }
.teaser-title .highlight { color: #ff3366 !important; text-shadow: 0 0 15px rgba(255, 51, 102, 0.3); }
.teaser-desc { font-size: 0.85rem; color: #eeeeee !important; margin-bottom: 20px; font-weight: 500; }
.teaser-rotation-container { height: 90px; margin: 20px 0 30px 0; overflow: hidden; position: relative; }
.rotation-track { display: flex; flex-direction: column; animation: infiniteRotate 15s cubic-bezier(0.645, 0.045, 0.355, 1) infinite; }
.rotation-slide { height: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rotation-val { font-size: 2.8rem; font-weight: 900; line-height: 1; color: #ffffff; }
.rotation-val small { font-size: 0.9rem; color: #ff3366; }
.rotation-label { font-size: 0.95rem; font-weight: 900; letter-spacing: 1.5px; color: #ffffff; margin-top: 8px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
@keyframes infiniteRotate { 0%, 18% { transform: translateY(0); } 20%, 38% { transform: translateY(-90px); } 40%, 58% { transform: translateY(-180px); } 60%, 78% { transform: translateY(-270px); } 80%, 98% { transform: translateY(-360px); } 100% { transform: translateY(-360px); } }
.teaser-btn { display: inline-block; background: #5a1222 !important; color: #ffffff !important; text-decoration: none !important; padding: 12px 24px; border-radius: 30px; font-weight: 900; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; box-shadow: 0 6px 20px rgba(90, 18, 34, 0.5); }
.teaser-btn:hover { background: #ffffff !important; color: #5a1222 !important; transform: translateY(-3px); }

/* RECORD HUB */
.union-ultimate-hub { width: 100%; margin: 20px 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: linear-gradient(180deg, #4b1b0e 0%, #1a1a1a 100%); position: relative; border: 1px solid #333; overflow: hidden; }
.ultimate-watermark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.04; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 100 100"><path fill="white" d="M10 90 L90 10 M90 90 L10 10 M50 10 L50 90 M10 50 L90 50" stroke="white" stroke-width="2" opacity="0.5"/></svg>'); background-size: 110px; pointer-events: none; z-index: 1; }
.ultimate-hero-link { display: block; text-decoration: none !important; position: relative; padding: 25px 40px 15px 40px; z-index: 2; }
.ultimate-hero-content { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.hero-tag { background: #fff; color: #5a2111; font-size: 0.6rem; font-weight: 900; padding: 2px 8px; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 50px; display: inline-block; margin-bottom: 8px; }
.hero-title { font-size: 2rem; font-weight: 900; text-transform: uppercase; margin: 0 0 8px 0; line-height: 0.95; letter-spacing: -1px; color: #fff; }
.hero-title .highlight { color: #a1a1a1; }
.hero-desc { font-size: 0.8rem; color: #d1d1d1; max-width: 340px; line-height: 1.4; margin: 0; }
.hero-stat-zone { flex: 0.7; text-align: center; min-width: 200px; background: rgba(0,0,0,0.3); padding: 12px; border: 1px solid rgba(255,255,255,0.05); }
.record-category { font-size: 0.7rem; text-transform: uppercase; color: #999; letter-spacing: 1.5px; display: block; }
.record-value { font-size: 3.5rem; font-weight: 900; line-height: 1; color: #fff; display: block; }
.record-holder { font-size: 1rem; font-weight: 700; text-transform: uppercase; color: #fff; }
.hero-button-wrapper { display: flex; justify-content: center; margin-top: 20px; }
.pill-btn { background: #fff; color: #5a2111; text-transform: uppercase; font-weight: 900; font-size: 0.7rem; padding: 8px 25px; border-radius: 50px; box-shadow: 4px 4px 0 #000; transition: all 0.2s ease; }
.ultimate-hero-link:hover .pill-btn { background: #5a2111; color: #fff; transform: translateY(-2px); }
.ultimate-hub-grid-wrapper { padding: 20px 20px 30px 20px; position: relative; z-index: 2; }
.hub-grid { max-width: 1000px; margin: 0 auto; display: flex; gap: 12px; }
.hub-card { flex: 1; background: #fff; text-decoration: none !important; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 12px 0 12px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: all 0.2s ease; position: relative; text-align: center; }
.hub-card:hover { transform: translateY(-3px); }
.card-icon { font-size: 1.2rem; margin-bottom: 4px; }
.hub-card h3 { font-family: 'Segoe UI', Roboto, sans-serif; color: #5a2111; text-transform: uppercase; font-weight: 900; font-size: 0.85rem; margin: 0 0 3px 0; line-height: 1; }
.hub-card h3 .highlight { color: #888; }
.hub-card p { color: #666; font-size: 0.65rem; line-height: 1.2; margin-bottom: 12px; }
.card-tab { background: #eee; color: #5a2111; text-align: center; text-transform: uppercase; font-weight: 900; font-size: 0.6rem; padding: 5px 0; border-radius: 0 0 8px 8px; margin: 0 -12px; }
.hub-card:hover .card-tab { background: #5a2111; color: #fff; }
.active-record { transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out; }
.fade-out { opacity: 0; transform: translateY(-5px); }

/* PRO ALUMNI HUB */
.union-pro-alumni-wrap { width: 100%; position: relative; min-height: 200px; background: #000; overflow: hidden; font-family: 'Segoe UI', Roboto, sans-serif; display: flex; align-items: center; box-sizing: border-box; margin: 20px 0; }
.pro-bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-151271901372c-5d1c5271219c?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; opacity: 0.3; z-index: 1; }
.union-pro-alumni-wrap::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(90, 33, 17, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%); z-index: 2; }
.pro-content-inner { position: relative; z-index: 3; width: 100%; padding: 30px 25px; box-sizing: border-box; }
.pro-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; gap: 15px; }
.pro-branding h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; margin: 0; line-height: 1; text-transform: uppercase; }
.pro-branding .highlight { color: #a1a1a1; }
.pro-tag { background: #fff; color: #5a2111; text-transform: uppercase; font-size: 0.65rem; font-weight: 900; padding: 2px 8px; border-radius: 50px; display: inline-block; margin-bottom: 8px; letter-spacing: 1px; }
.pro-nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pro-pill-link { background: #fff; color: #5a2111 !important; text-decoration: none !important; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; padding: 8px 18px; border-radius: 50px; transition: transform 0.2s; border: 2px solid #fff; white-space: nowrap; }
.pro-pill-link.outline { background: transparent; color: #fff !important; }
.pro-ticker-container { background: rgba(0, 0, 0, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); height: 50px; display: flex; align-items: center; overflow: hidden; position: relative; }
.ticker-label { background: #5a2111; color: #fff; font-weight: 900; font-size: 0.65rem; height: 100%; display: flex; align-items: center; padding: 0 15px; z-index: 4; }
.ticker-scroll { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; animation: scrollTicker 90s linear infinite; will-change: transform; }
.ticker-item { padding: 0 40px; white-space: nowrap; color: #fff; font-size: 0.95rem; display: flex; gap: 10px; }
.ticker-item .p-name { font-weight: 900; text-transform: uppercase; }
.ticker-item .p-team { color: #a1a1a1; font-weight: 500; }
.ticker-loading { padding: 0 30px; font-size: 0.65rem; color: #444; font-weight: 900; }
@keyframes scrollTicker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }
.pro-ticker-container:hover .ticker-track { animation-play-state: paused; }

/* TICKERS */
.uhs-ticker-wrap { width: 100%; background: #f4f4f4; border-top: 4px solid #5a1222; border-bottom: 1px solid #ddd; overflow: hidden; white-space: nowrap; display: flex; align-items: center; height: 40px; }
.uhs-ticker-label { background: #5a1222; color: #fff; padding: 0 15px; height: 100%; display: flex; align-items: center; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; z-index: 10; }
.uhs-ticker-content { display: inline-block; padding-left: 100%; animation: uhs-ticker-scroll 30s linear infinite; }
.uhs-ticker-item { display: inline-block; padding: 0 30px; font-size: 0.9rem; color: #333; font-weight: 500; }
.uhs-ticker-item strong { color: #5a1222; text-transform: uppercase; }
@keyframes uhs-ticker-scroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
.uhs-ticker-wrap:hover .uhs-ticker-content { animation-play-state: paused; }
.ecac-ticker-track { display: flex; white-space: nowrap; padding-left: 100%; animation: ecac-scroll 40s linear infinite; }
@keyframes ecac-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* OMNI SEARCH */
.uhs-omni-container { display: block !important; width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
.uhs-omni-wrapper { display: block !important; width: 100% !important; position: relative !important; font-family: sans-serif !important; text-align: left !important; margin: 0 !important; box-sizing: border-box !important; }
.uhs-omni-input { display: block !important; width: 100% !important; padding: 18px 25px !important; font-size: 1.2rem !important; border: 2px solid #5a1222 !important; border-radius: 30px !important; box-sizing: border-box !important; outline: none !important; background: #fff !important; color: #333 !important; box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important; margin: 0 !important; }
.uhs-omni-input:focus { box-shadow: 0 0 15px rgba(90, 18, 34, 0.4) !important; }
.uhs-omni-results { display: none; position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important; width: 100% !important; background: #fff !important; border: 1px solid #ddd !important; border-radius: 12px !important; box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important; z-index: 999999 !important; max-height: 55vh !important; overflow-y: auto !important; overflow-x: hidden !important; text-align: left !important; margin: 12px 0 0 0 !important; box-sizing: border-box !important; }
.uhs-omni-results::-webkit-scrollbar { width: 8px; }
.uhs-omni-results::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0 12px 12px 0; }
.uhs-omni-results::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.uhs-omni-results::-webkit-scrollbar-thumb:hover { background: #5a1222; }
.uhs-omni-category { background: #f9f9f9; padding: 10px 18px; font-size: 0.75rem; font-weight: 800; color: #5a1222; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #eee; border-top: 1px solid #eee; }
.uhs-omni-category:first-child { border-top: none; border-radius: 12px 12px 0 0; }
.uhs-omni-item { display: block; padding: 12px 18px; text-decoration: none; color: #333; font-size: 0.95rem; border-bottom: 1px solid #f4f4f4; transition: background 0.2s; line-height: 1.4; box-sizing: border-box; }
.uhs-omni-item:hover { background: rgba(90, 18, 34, 0.05); color: #5a1222; }
.uhs-omni-item strong { color: #5a1222; font-size: 1.05rem; display: block; }
.uhs-omni-item-meta { display: block; font-size: 0.8rem; color: #777; margin-top: 4px; font-weight: 500; }
.uhs-omni-loading { padding: 20px; text-align: center; color: #777; font-size: 0.9rem; }

/* RECRUITS DASHBOARD */
.uhr-wrapper { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 20px 0; color: #1a1a1a; }
.uhr-filter-dashboard { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 20px; background: #f4f4f4; border-radius: 6px; border: 1px solid #eaeaed; margin-bottom: 25px; }
.uhr-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.uhr-filter-btn { background: #ffffff; border: 2px solid #800020; color: #800020; padding: 6px 14px; cursor: pointer; border-radius: 4px; font-weight: bold; transition: all 0.2s ease; font-size: 13px; outline: none; }
.uhr-filter-btn:hover, .uhr-filter-btn.active { background: #800020; color: #ffffff; }
.uhr-select-filter { border: 3px solid #800020 !important; border-radius: 20px !important; padding: 6px 15px !important; color: #800020 !important; background-color: #ffffff !important; font-weight: bold !important; outline: none !important; font-size: 13px; cursor: pointer; max-width: 280px; }
.uhr-main-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #d1d1d1; margin-bottom: 30px; }
.uhr-main-table th { background-color: #800020; color: #ffffff; padding: 15px; text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 3px solid #000000; }
.uhr-league-row { cursor: pointer; transition: background 0.15s ease; border-bottom: 1px solid #e5e5e5; }
.uhr-league-row:hover { background-color: #f9f9f9; }
.uhr-league-row td { padding: 15px; font-size: 16px; }
.uhr-caret { display: inline-block; margin-right: 12px; transition: transform 0.2s ease; color: #800020; font-size: 14px; }
.uhr-league-row.active .uhr-caret { transform: rotate(90deg); }
.uhr-team-row.active .uhr-caret { transform: rotate(90deg); }
.uhr-badge { background: #800020; color: #ffffff; padding: 4px 12px; border-radius: 2px; font-size: 14px; font-weight: bold; min-width: 35px; display: inline-block; text-align: center; }
.uhr-teams-drawer, .uhr-roster-drawer { display: none; background-color: #f4f4f4; }
.uhr-drawer-content { padding: 20px 30px 30px 45px; border-left: 4px solid #800020; }
.uhr-roster-content { padding: 12px 20px 20px 40px; border-left: 4px solid #1a1a1a; background: #ffffff; }
.uhr-sub-table, .uhr-roster-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #cccccc; margin-bottom: 10px; }
.uhr-sub-table th { background-color: #1a1a1a !important; color: #ffffff !important; font-size: 13px; padding: 10px; text-transform: none; border-bottom: none; }
.uhr-team-row { cursor: pointer; background: #ffffff; }
.uhr-team-row:hover { background-color: #fff9f9; }
.uhr-sub-table td { padding: 10px 15px; font-size: 15px; border-bottom: 1px solid #eeeeee; }
.uhr-roster-table th { background-color: #555555 !important; color: #fff !important; font-size: 12px; padding: 6px 12px; }
.uhr-roster-table td { padding: 8px 12px; font-size: 14px; border-bottom: 1px solid #f0f0f0; color: #222222; }

/* JERSEY HISTORY */
.uhs-outer-wrapper { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); padding: 40px 15px; border-radius: 20px; font-family: sans-serif; overflow: hidden; max-width: 100%; box-sizing: border-box; }
.uhs-main-header { text-align: center; color: #5a1222; font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.decade-filter { text-align: center; margin-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.decade-btn { padding: 8px 16px; background: #fff; color: #5a1222; border: 2px solid #5a1222; border-radius: 30px; text-decoration: none; font-weight: bold; transition: 0.3s; font-size: 0.9rem; }
.decade-btn.active, .decade-btn:hover { background: #5a1222; color: #fff; }
.jersey-row { background: #fff; border-radius: 15px; padding: clamp(15px, 3vw, 30px); margin-bottom: 40px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); position: relative; max-width: 100%; box-sizing: border-box; }
.winner-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #5a1222 0%, #2d0911 100%); color: #fff; padding: 20px; border-radius: 12px; gap: 15px; }
.winner-num { font-size: 3.2rem; font-weight: 900; min-width: 90px; text-align: center; line-height: 1; border-right: 1px solid rgba(255,255,255,0.2); padding-right: 10px; }
.winner-info { flex: 1; min-width: 200px; padding: 0 10px; overflow: hidden; }
.winner-info h3 { margin: 0; font-size: clamp(1.15rem, 3.2vw, 1.8rem); font-weight: 800; line-height: 1.2; word-wrap: break-word; }
.winner-info h3 a { color: #fff; text-decoration: none; }
.winner-score-box { text-align: center; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 15px; min-width: 110px; }
.score-val { font-size: 2.2rem; font-weight: 900; display: block; line-height: 1; margin-top: 2px; }
.player-list-table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 0.9rem; }
.player-list-table th { text-align: left; padding: 10px; border-bottom: 2px solid #5a1222; color: #5a1222; font-size: 0.8rem; text-transform: uppercase; font-weight: 800; }
.player-list-table td { padding: 10px; border-bottom: 1px solid #eee; }
summary { cursor: pointer; padding: 15px 0; font-weight: 800; color: #5a1222; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }

/* ECAC PORTAL */
.ecac-portal-wrap { font-family: 'Segoe UI', Roboto, sans-serif; max-width: 1200px; margin: 0 auto; color: #333; }
.portal-header { color: #5a2111; text-transform: uppercase; border-bottom: 4px solid #5a2111; padding-bottom: 8px; margin-bottom: 20px; font-weight: 800; font-size: 1.4rem; }
.ecac-top-row { display: flex; gap: 30px; align-items: flex-start; }
.ecac-portal-standings { flex: 0 0 60%; }
.ecac-portal-schedule { flex: 1; }
.portal-schedule-box { border: 2px solid #5a2111; background: #f9f9f9; padding: 15px; border-radius: 4px; }
.portal-game-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ddd; font-size: 0.9rem; font-weight: bold; }
.game-status { color: #5a2111; font-size: 0.75rem; text-transform: uppercase; }
.no-games { text-align: center; font-style: italic; color: #666; padding: 20px 0; }
.portal-link-btn { display: block; text-align: center; margin-top: 15px; background: #5a2111; color: #fff !important; text-decoration: none !important; padding: 8px; font-size: 0.8rem; font-weight: bold; border-radius: 30px; }

/* PLACID HERO */
.union-placid-hero { width: 100%; min-height: 280px; position: relative; overflow: hidden; border: 1px solid #5a2111; box-shadow: 8px 8px 0 #5a2111; margin-bottom: 30px; background: #000; font-family: 'Segoe UI', Roboto, sans-serif; }
.hero-bg-zoom { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1517177646641-83fe10f14633?q=80&w=1200&auto=format&fit=crop'); background-size: cover; background-position: center; transition: transform 6s ease-in-out; z-index: 1; }
.union-placid-hero::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(90, 33, 17, 0.95) 20%, rgba(26, 26, 26, 0.7) 100%); z-index: 2; }
.hero-flex-container { position: relative; z-index: 3; display: flex; padding: 30px; align-items: center; gap: 20px; }
.hero-cta { flex: 1.2; }
.hero-tag { background: #fff; color: #5a2111; font-size: 0.6rem; font-weight: 900; padding: 2px 10px; text-transform: uppercase; letter-spacing: 1.5px; display: inline-block; margin-bottom: 12px; }
.hero-cta h2 { color: #fff; font-size: 2.2rem; font-weight: 900; line-height: 0.9; margin: 0 0 10px 0; text-transform: uppercase; }
.hero-cta h2 .highlight { color: #a1a1a1; }
.hero-cta p { color: #ddd; font-size: 0.85rem; line-height: 1.4; margin-bottom: 20px; max-width: 280px; }
.pill-btn-placid { display: inline-block; background: #fff; color: #5a2111 !important; text-decoration: none !important; padding: 10px 25px; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; border-radius: 50px; box-shadow: 4px 4px 0 #000; transition: all 0.2s; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.micro-bracket { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; width: 100%; max-width: 220px; text-align: center; }
.bracket-title { font-size: 0.6rem; font-weight: 900; color: #aaa; margin-bottom: 10px; letter-spacing: 1px; }
.matchup { margin-bottom: 8px; border: 1px solid #444; }
.slot { background: #222; color: #fff; font-size: 0.65rem; padding: 6px 8px; text-align: left; font-weight: 700; border-bottom: 1px solid #333; }
.trophy-box { margin-top: 10px; border-top: 1px dashed #555; padding-top: 10px; }
.trophy-icon { font-size: 1.5rem; margin-bottom: 2px; }
.trophy-text { font-size: 0.55rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.union-placid-hero:hover .hero-bg-zoom { transform: scale(1.1); }

/* COACHES */
.uhs-coaches-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 1000px; margin: 20px auto; color: #333; }
.uhs-coach-card { background: #fff; border: 1px solid #dcdcdc; border-radius: 2px; margin-bottom: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; }
.uhs-coach-header { background: #4d1217; color: #ffffff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #280508; }
.uhs-coach-name { font-size: 1.45rem; font-weight: 800; margin: 0; color: #ffffff !important; text-transform: uppercase; letter-spacing: 0.8px; line-height: 1.2; }
.uhs-coach-years { font-size: 1rem; background: rgba(255, 255, 255, 0.12); color: #ffffff !important; padding: 5px 12px; border-radius: 2px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.2); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
.uhs-coach-meta { background: #fdfdfd; padding: 10px 20px; font-size: 0.85rem; color: #666; border-bottom: 1px solid #eaeaea; font-style: italic; }
.uhs-accomplishments-body { padding: 22px 20px; background: #ffffff; }
.uhs-accomplishments-title { font-size: 1.05rem; font-weight: 800; margin-top: 0; margin-bottom: 18px; color: #4d1217; text-transform: uppercase; border-left: 4px solid #4d1217; padding-left: 10px; letter-spacing: 0.5px; }
.uhs-accomplishments-wrapper { display: flex; flex-direction: column; gap: 0; }
.uhs-accomplishment-row { display: flex; align-items: flex-start; padding: 12px 10px; border-bottom: 1px solid #eaeaea; transition: background-color 0.15s ease; }
.uhs-accomplishment-row:nth-child(even) { background-color: #fcfcfc; }
.uhs-accomplishment-row:last-child { border-bottom: none; }
.uhs-timeline-badge { background: #4d1217; color: #ffffff !important; font-size: 0.8rem; font-weight: 700; padding: 5px 0; border-radius: 2px; width: 85px; min-width: 85px; text-align: center; margin-right: 20px; line-height: 1; letter-spacing: 0.3px; }
.uhs-desc-text { font-size: 0.98rem; line-height: 1.5; color: #222222; margin: 0; padding: 0; }

/* RESPONSIVE CATCH-ALLS */
@media (max-width: 850px) {
    .ecac-top-row { flex-direction: column; }
    .ecac-portal-standings { flex: 1; width: 100%; }
    .pro-header-row { flex-direction: column; align-items: center; text-align: center; }
    .pro-branding h2 { font-size: 1.8rem; margin-bottom: 15px; }
    .pro-nav-links { width: 100%; justify-content: center; }
    .pro-content-inner { padding: 25px 15px; }
    .uhr-filter-dashboard { flex-direction: column; align-items: stretch; gap: 12px; }
    .uhr-select-filter { max-width: 100%; }
    .coach-grid { flex-direction: column; text-align: center; }
    .coach-action-row { justify-content: center; flex-direction: column; }
    .coach-visual-teaser { display: none; }
    .coach-text-area h2 { font-size: 2.5rem; }
    .coach-text-area p { margin: 0 auto 25px auto; }
}
@media (max-width: 768px) {
    .hero-visual { display: none; }
    .hero-cta { text-align: center; }
    .hero-cta p { margin: 0 auto 20px auto; }
    .ultimate-hero-content { flex-direction: column; text-align: center; }
    .hero-branding { margin-bottom: 15px; }
    .hero-desc { display: none; }
    .hub-grid { flex-direction: column; gap: 15px; }
    .uhs-directory-container .search-controls { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .uhs-directory-container input[type="text"]#playerSearch, .uhs-directory-container select#posFilter { width: 100% !important; margin: 0 !important; }
    #uhsPlayerTable_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #uhsPlayerTable { font-size: 0.75rem !important; }
    #uhsPlayerTable td, #uhsPlayerTable th { padding: 6px 4px !important; }
    #uhsPlayerTable a { font-size: 0.7rem; padding: 4px 8px !important; }
    .uhs-compare-row { flex-wrap: wrap; }
    .uhs-compare-input { width: 100% !important; }
    .uhs-matrix-wrapper { padding: 10px !important; overflow-x: hidden; }
    .matrix-labels { display: none !important; }
    .matrix-row:not(.matrix-labels) { display: block !important; width: 100% !important; margin-bottom: 25px; box-sizing: border-box; }
    .matrix-pos-sidebar { width: 100% !important; flex: none !important; padding: 12px !important; border-radius: 8px 8px 0 0 !important; margin-bottom: 10px; background: #5a1222; box-sizing: border-box; }
    .matrix-pos-sidebar span { transform: none !important; font-size: 1.1rem !important; }
    .matrix-cell { display: block !important; width: 100% !important; border: none !important; padding: 0 5px !important; margin-bottom: 15px; box-sizing: border-box; }
    .matrix-cell::before { content: attr(data-class); display: block; background: #f4f4f4; color: #5a1222; padding: 6px 15px; font-weight: 900; font-size: 0.85rem; text-transform: uppercase; border-left: 4px solid #5a1222; margin-bottom: 8px; box-sizing: border-box; }
    .matrix-p-box { width: 100% !important; max-width: 100%; box-sizing: border-box; margin-bottom: 6px; padding: 15px !important; font-size: 1rem !important; display: flex; justify-content: center; align-items: center; }
}
@media (max-width: 600px) {
    .uhs-compare-header-cards { flex-direction: column; }
    .uhs-vs-circle { margin: -25px auto; }
    .winner-box { flex-direction: column; text-align: center; } 
    .winner-num { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-right: 0; padding-bottom: 10px; width: 100%; } 
    .winner-score-box { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-left: 0; padding-top: 10px; width: 100%; } 
    .uhs-boxscore-outer-wrap { margin: 10px; padding: 15px; }
    .uhs-box-header { padding: 25px; }
    .uhs-box-header h2 { font-size: 1.8rem; }
    .uhs-coach-header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; }
    .uhs-coach-name { font-size: 1.25rem; }
    .uhs-accomplishment-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 5px; }
    .uhs-timeline-badge { margin-right: 0; }
    .uph-main-title { font-size: 1.3rem; } 
    .uph-widget-card { min-height: 140px; }
    .umw-player { font-size: 1rem; } 
    .umw-vintage-ribbon { padding: 6px 20px; font-size: 0.65rem; }
}

/* =========================================================
   1. UNION PERFORMANCE HUB (HOT/COLD) - SIDE-BY-SIDE
========================================================= */
.uph-widget-master-wrap { font-family: inherit; margin-bottom: 30px; }
.uph-main-title { color: #5a1222; text-align: center; text-transform: uppercase; font-size: 1.2rem; font-weight: 900; border-bottom: 2px solid #5a1222; padding-bottom: 10px; margin-bottom: 15px; }
.uph-main-title .divider { color: #ccc; font-weight: normal; margin: 0 5px; }
.uph-portal-link { text-decoration: none !important; display: block; }
.uph-portal-link:hover .uph-widget-card { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

/* Grid layout forces the cards side-by-side */
.uph-visual-widget-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.uph-widget-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; transition: all 0.2s ease; background: #fff; margin-bottom: 0; display: flex; flex-direction: column; }

/* Moved the colored borders to the top for better symmetry when side-by-side */
.hot-card { border-top: 5px solid #d9534f; }
.cold-card { border-top: 5px solid #5bc0de; }

/* Increased opacity to make the background image highly visible */
.uph-card-texture { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 1; z-index: 1; }

/* Softened the overlay to let the image shine through */
.uph-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.75); z-index: 2; }
.uph-card-inner { position: relative; z-index: 3; padding: 15px; flex-grow: 1; }

.uph-card-label { font-weight: 900; margin-bottom: 15px; font-size: 0.95rem; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 8px; }
.hot-card .uph-card-label { color: #d9534f; }
.cold-card .uph-card-label { color: #5bc0de; }

/* Center-stacked the text to prevent overlapping in narrow columns */
.uph-card-row { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.uph-card-row:last-child { border-bottom: none; }
.uph-pname { font-weight: bold; color: #333; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 2px; }
.uph-pstat { font-weight: 900; color: #5a1222; font-size: 1.05rem; }

/* Hot/Cold Streak Ticker Animation */
.uph-streak-ticker { margin-top: 15px; background: #1a1a1a; color: #fff; display: flex; align-items: center; border-radius: 4px; overflow: hidden; border: 2px solid #5a1222; }
.ticker-label { background: #5a1222; color: #fff; padding: 8px 12px; font-weight: 900; font-size: 0.75rem; white-space: nowrap; z-index: 2; }
.ticker-content { flex-grow: 1; overflow: hidden; position: relative; white-space: nowrap; padding: 8px 0; }
.ticker-scroll-track { display: inline-block; white-space: nowrap; animation: uph_ticker 15s linear infinite; font-size: 0.85rem; font-weight: bold; }
.uph-portal-link:hover .ticker-scroll-track { animation-play-state: paused; }

@keyframes uph_ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =========================================================
   2. MILESTONE TRACKER WIDGET - PURE CSS CAROUSEL
========================================================= */
.umw-master-container { width: 100%; margin-bottom: 30px; }
.umw-portal-link { text-decoration: none !important; display: block; }
.umw-viewport { background: #1a1a1a; position: relative; border-radius: 10px; border: 3px solid #5a1222; overflow: hidden; padding: 20px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.umw-kb-layer { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0.1; background: repeating-linear-gradient(45deg, #000, #000 2px, transparent 2px, transparent 8px); }
.umw-header-ribbon-wrap { text-align: center; margin-bottom: 20px; position: relative; z-index: 2; }

/* The Vintage Ribbon with Cutout Tails */
.umw-vintage-ribbon { background: #5a1222; color: #fff; padding: 6px 20px; font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; display: inline-block; position: relative; box-shadow: 0 3px 6px rgba(0,0,0,0.4); }
.umw-vintage-ribbon::before, .umw-vintage-ribbon::after { content: ''; position: absolute; top: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.umw-vintage-ribbon::before { left: -10px; border-right: 10px solid #5a1222; }
.umw-vintage-ribbon::after { right: -10px; border-left: 10px solid #5a1222; }
.umw-vintage-wrap { margin: 15px 0; }

/* Fade Animation Engine (Replaces Infinite Carousel) */
.umw-fader-container { 
    display: grid; 
    grid-template-columns: 1fr; 
    width: 100%; 
    position: relative; 
    z-index: 2; 
}
.umw-frame { 
    grid-row-start: 1; 
    grid-column-start: 1; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.6s ease-in-out, visibility 0.6s; 
    text-align: center; 
    padding: 0 20px; 
    box-sizing: border-box; 
}
.umw-frame.active { 
    opacity: 1; 
    visibility: visible; 
    z-index: 2; 
}
.umw-tag { display: block; color: #aaa; font-size: 0.75rem; letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; }
.umw-player { color: #fff; font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.umw-sub { color: #ddd; font-size: 0.85rem; margin-top: 10px; font-style: italic; }

/* Pause fading when hovering */
.umw-portal-link:hover .umw-frame { transition-duration: 0.3s; }

/* Fix for Boxscore Opponent Link Color */
.uhs-box-header h1 a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ensure the header text itself is also white */
.uhs-box-header h1 {
    color: #ffffff !important;
}
</style>