body
{
	margin: 0;
	padding: 0;
	background: url(images/background.gif);
	background-color: #000000;
	font: normal 12px Lucida Grande, Tahoma, Arial, Helvetica, sans-serif;
}

/* Links */

a:link { color: #cb0017; font-weight: bold; text-decoration: none }

a:visited { color: #cb0017; font-weight: bold; text-decoration: none }

a:hover, a:active { color: #000099; }

#content a:link { padding: 0 2px; }

#content a:visited { padding: 0 2px; }

#content a:hover, 
#content a:active 
{ 
	color: #000099;
}

/* HTML*/

h1, h2, h3, h4, h5, h6 { font-weight: normal; }

h1 { font-size: 32px; }

h2 { font-size: 28px; }

h3 { font-size: 24px; }

h4 { font-size: 20px; font-weight: bold; }

h5 { font-size: 16px; }

h6 { font-size: 13px; margin: 5px 0; font-weight: bold; }

ul { line-height: 1.8em; list-style-type: square; color: #333333; }

ol { line-height: 1.8em; color: #333333; }

.style1 {font-size: x-small}

table 
{ 
	color: #333333;
	border-left: 1px solid #999999; 
	border-top: 1px solid #999999; 
}

table caption 
{ 
	font-weight: bold; 
	margin-bottom: 5px; 
}

th, td 
{ 
	border-right: 1px solid #999999; 
	border-bottom: 1px solid #999999;
	padding: 2px 5px;
}

th { background-color: #cfcfcf; }

tr.alt td
{
	background-color: #eeeeee;
}

/* Structure */

#container
{
	margin: 0 auto;
	width: 1000px;
}

p#meta
{
	margin: 0; 
	padding: 5px; 
	color: #aaaaaa;
	background-color: #2f2f2f url(background.gif); 
	border-bottom: 1px solid #000000;
}

#header
{
	height: 60px;
	background-color: #cb0017;	
}

#navigation
{
	float: left;
	width: 100%;
}

#wrapper
{
	margin: 0;
	padding: 0;
	clear: both;
	float: left;
	width: 100%;
	background-color: #ffffff;
}

#featured
{
	
        vertical-align: text-top;
	text-align: center;
	background-color: #333333;
	border-top: 0px solid #000000;
	border-bottom: 0px solid #000000;
}

#content-wrapper
{
	width: 700px;
	float: left;
}

#content
{
	float: left;
	padding-top: 30px;
	padding-left: 50px;
	padding-bottom: 30px;
	line-height: 1.6em;
}

#sidebar-wrapper
{
	width: 300px;
	float: right;
}

#sidebar
{
	float: right;
	padding-right: 30px;
	width: 250px;
}

#footer
{
	clear: both;
	float: left;
	width: 100%;
	height: 60px;
	margin: 20px 0;
	color: #FFFFFF;
	text-align: center;
	background-color: #070779;
}

/* Meta */

p#meta a:link, p#meta a:visited { font-size: 18px; font-weight: bold; padding: 0 5px; color: #FFFFFF; }

p#meta a:hover, p#meta a:active { font-size: 18px; font-weight: bold; color: #FFE97F; }

p#meta strong { font-size: 18px; font-weight: bold; color: #FFE97F; }

/* Header */

#header h1 { margin: 0; padding: 10px 5px 5px; }

#header h2 { font-size: 12px; margin: 0; padding: 0 5px 10px 20px; }

#header h1 a:link, #header h1 a:visited { color: #FFFFFF; }

#header h1 a:hover, #header h1 a:active { color: #727272; }

/* Navigation */

#navigation ul
{
	margin: 0;
	padding: 0;
	float: left; 
	width: 100%; 
	list-style-type: none;
	background-color: #000099;
	font-weight: bold;
}

#navigation li { float: left; margin: 0; padding: 0; }

#navigation a:link,
#navigation a:visited
{
	float: left;
	display: block;
	color: #ffffff; 
	padding: 5px 10px; 
	background-color: #000099;
}

#navigation a:hover,
#navigation a:active
{
	color: #ffffff;
	background-color: #4f4f4f;
}

#navigation ul li a:hover {
	color: #ffffff;
	background-color: #cb0017;
}
#navigation ul li a.active,
#navigation ul li a.active:hover {
	color: #ffffff;
	background-color: #cb0017;
}

/* Featured */

#featured p { margin: 20px 0; }

#featured img { border: 1px solid #000000; }

/* Content */

#content > h3, #content .top { margin-top: 5px; }

/* Sidebar */

/* Footer */

#footer a:link { color: #FFFFFF; }

#footer a:visited { color: #FFFFFF; }

#footer a:hover, #footer a:active { color: #FFFFFF; }

#footer p { padding: 5px 0; }

/* Scaled down by ~30% for a balanced look */
.join-container {
    text-align: center;
    margin: 45px 0; 
}

.join-button {
    background-color: #cb0017;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF;
    display: inline-block;
    min-width: 280px;         
    line-height: 70px;        
    font-size: 24px;          
    padding: 0 30px;          
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.join-button:hover {
    background-color: #000099;
    color: #FFFFFF !important;
    transform: scale(1.05);
}

.waiver-container {
    text-align: center;
    margin: 20px 0;
}

.waiver-button {
    background-color: #cb0017;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF;
    display: inline-block;
    min-width: 280px;
    line-height: 70px; 
    font-size: 24px;
    padding: 0 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.waiver-button:hover {
    background-color: #000099;
    color: #FFFFFF !important;
    transform: scale(1.05);
}

.footer-contact-link {
    display: inline-block;
    background-color: #4f4f4f; 
    color: #FFFFFF !important;
    padding: 8px 15px;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.footer-contact-link:hover {
    background-color: #cb0017;
}

/* =========================================================
   MODERN LAYOUT & LEAGUE HUB CSS (HIGH CONTRAST & ESPN STYLE)
   ========================================================= */

:root {
    /* General Layout */
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    
    /* Core Brand Colors Engine Fix */
    --primary-color: #000099;
    --accent-color: #cb0017;
    
    /* Text Colors (Light Mode) */
    --text-main: #111111;
    --text-muted: #555555;
    --text-primary: #000099;  
    --text-accent: #cb0017;   
    
    /* Navigation (Light Mode) */
    --top-bar-bg: #222222;
    --top-bar-text: #ffffff;
    --top-bar-accent: #FFE97F;
    --nav-bg: #000099;
    --nav-text: #ffffff;
    --nav-hover-bg: #cb0017;
    --nav-hover-text: #ffffff;

    /* Standings Table (Light Mode) */
    --table-header-bg: #333333;
    --table-header-text: #ffffff;
    --table-border: #cccccc;
    --table-row-hover: #eef2f7;
    
    /* Effects */
    --hub-header-border: #f1f3f5;
    --shadow-light: rgba(0,0,0,0.05);
    --shadow-hover: rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body.dark-theme {
    /* General Layout */
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --border-color: #333333;
    
    /* Core Brand Colors */
    --primary-color: #000099;
    --accent-color: #cb0017;
    
    /* Text Colors (Dark Mode) */
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --text-primary: #66b2ff;  
    --text-accent: #ff6b81;   

    /* Navigation (Dark Mode) */
    --top-bar-bg: #000000;
    --top-bar-text: #e0e0e0;
    --top-bar-accent: #ffc107;
    --nav-bg: #181818;
    --nav-text: #f5f5f5;
    --nav-hover-bg: #cb0017;
    --nav-hover-text: #ffffff;

    /* Standings Table (Dark Mode) */
    --table-header-bg: #2a2a2a;
    --table-header-text: #ffffff;
    --table-border: #444444;
    --table-row-hover: rgba(255,255,255,0.05);

    /* Effects */
    --hub-header-border: #2c2c2c;
    --shadow-light: rgba(0,0,0,0.4);
    --shadow-hover: rgba(0,0,0,0.6);
}

/* =========================================================
   STRICT OVERRIDES FOR INDEX2.PHP 
   ========================================================= */
body.modern-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--text-main) !important;
    background-color: var(--bg-main) !important;
    background-image: none !important;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease;
}

/* Accessibility: Text Boost */
body.modern-page.text-boost { font-size: 1.15rem; }
body.modern-page.text-boost .standings-table th, 
body.modern-page.text-boost .standings-table td { font-size: 1rem; padding: 10px 8px; }
body.modern-page.text-boost .team-name { font-size: 1.25rem; }
body.modern-page.text-boost .team-score { font-size: 1.4rem; }
body.modern-page.text-boost .game-footer { font-size: 0.95rem; }

body.modern-page a { text-decoration: none; color: inherit; transition: var(--transition); }
body.modern-page ul { list-style: none; }

body.modern-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP BAR & NAV */
.top-bar {
    background-color: var(--top-bar-bg) !important;
    color: var(--top-bar-text) !important;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-bar .container {
    display: flex; justify-content: flex-end; align-items: center; gap: 20px;
}
.top-bar-title { font-weight: bold; color: var(--top-bar-accent); }
.division-links { display: inline-block; }
.division-links a { font-weight: bold; margin-left: 10px; color: var(--top-bar-text); }
.division-links a:hover { color: var(--top-bar-accent); }

.main-nav {
    background-color: var(--nav-bg) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky; top: 0; z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; position: relative; }
.logo img { height: 50px; width: auto; border-radius: 4px; }

.nav-links { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nav-links li { margin: 0; padding: 0; }
.nav-links a {
    font-weight: bold; 
    color: var(--nav-text) !important; 
    font-size: 1rem; 
    padding: 10px 15px; 
    border-radius: 4px;
}
.nav-links a:hover, .nav-links a.active { 
    background-color: var(--nav-hover-bg) !important; 
    color: var(--nav-hover-text) !important; 
}

.nav-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* HERO */
.hero {
    position: relative; background: url('images/main.jpg') no-repeat top center/cover;
    height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.1rem; margin-bottom: 25px; }

/* BUTTONS */
.btn-primary {
    display: inline-block; padding: 15px 35px; border-radius: 12px; font-size: 1.2rem; font-weight: bold; cursor: pointer;
    background-color: #cb0017 !important; color: #fff !important; border: 3px solid #fff; box-shadow: 0px 6px 12px rgba(0,0,0,0.5);
    transition: var(--transition); text-decoration: none;
}
.btn-primary:hover { background-color: #000099 !important; transform: scale(1.05); }

/* LAYOUT */
.page-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; padding: 50px 20px; }

/* LEAGUE HUB */
.league-hub {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px var(--shadow-light);
    border-top: 4px solid var(--accent-color);
}

.widget-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--hub-header-border); padding-bottom: 15px; margin-bottom: 20px;
    flex-wrap: wrap; gap: 15px;
}

.hub-tabs { display: flex; gap: 15px; }
.hub-tab {
    background: transparent; border: none; font-size: 1.1rem; font-weight: bold; color: var(--text-muted);
    cursor: pointer; padding: 5px 10px; border-bottom: 3px solid transparent; transition: var(--transition);
}
.hub-tab.active, .hub-tab:hover { color: var(--text-primary); border-bottom-color: var(--accent-color); }

.hub-actions { display: flex; align-items: center; gap: 15px; }

.carousel-controls {
    display: flex; align-items: center; gap: 8px; background: var(--bg-main);
    padding: 5px 10px; border-radius: 20px; border: 1px solid var(--border-color);
}
.page-indicator { font-size: 0.85rem; font-weight: bold; color: var(--text-main); min-width: 60px; text-align: center; }

.btn-icon {
    background: #000099; color: #fff; border: none; border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.btn-icon:hover { background: #cb0017; transform: scale(1.1); }

.theme-toggle { background: #444; border: 1px solid #666; width: 30px; height: 30px; }
.dark-theme .theme-toggle { background: #fbc02d; color: #333; border: none; }

.btn-view-all {
    font-size: 0.9rem; font-weight: bold; color: var(--text-primary);
    background: var(--bg-main); padding: 8px 15px; border-radius: 20px; border: 1px solid var(--border-color); transition: var(--transition);
}
.btn-view-all:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.hub-view { display: none; animation: fadeIn 0.4s ease; }
.hub-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* GAMES TICKER & ESPN STYLE CARDS */
.games-ticker {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 15px; min-height: 200px; 
}

.game-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;
    box-shadow: 0 2px 8px var(--shadow-light); transition: var(--transition);
    display: flex; flex-direction: column; justify-content: space-between;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px var(--shadow-hover); border-color: var(--primary-color); }

.game-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
    font-size: 0.7rem; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; width: 100%; box-sizing: border-box;
}
.division-badge { background-color: var(--primary-color) !important; color: #ffffff !important; padding: 3px 8px; border-radius: 4px; }
.game-status { color: var(--text-muted); text-align: right; }

/* Stack Engine */
.game-matchup-stacked { 
    display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; flex-grow: 1; width: 100%; 
}
.team-row { 
    display: flex; justify-content: space-between; align-items: center; 
}
.team-info { 
    display: flex; align-items: baseline; gap: 6px; min-width: 0; 
}
.team-name { 
    font-size: 1.05rem; font-weight: 600; color: var(--text-main); 
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.team-record { 
    font-size: 0.75rem; color: var(--text-muted); font-weight: normal; flex-shrink: 0;
}
.team-score { 
    font-size: 1.15rem; font-weight: 600; color: var(--text-main); 
    width: 35px; text-align: right; flex-shrink: 0; 
}

.game-footer {
    display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; 
    font-size: 0.8rem; color: var(--text-muted);
    background: var(--bg-main); padding: 8px 10px; border-radius: 6px; border-left: 3px solid var(--accent-color);
}
.game-footer span i { width: 15px; text-align: center; margin-right: 3px; color: var(--text-primary); }

/* WINNER HIGHLIGHTING */
.winner-team { font-weight: 900; color: #2e7d32 !important; }
.winner-score { font-weight: 900; color: #2e7d32 !important; }

.dark-theme .winner-team { color: #4caf50 !important; }
.dark-theme .winner-score { color: #4caf50 !important; }

/* STATUS HIGHLIGHT COLORS */
.modified-game { border: 2px solid #ff9800 !important; }
.rainout-game { background-color: rgba(33, 150, 243, 0.1) !important; border-color: #90caf9 !important; }
.ppd-game { background-color: rgba(156, 39, 176, 0.1) !important; border-color: #ce93d8 !important; }
.tie-game { background-color: rgba(255, 235, 59, 0.1) !important; border-color: #fff59d !important; }
.tbd-game { background-color: rgba(233, 30, 99, 0.1) !important; border-color: #f48fb1 !important; }

.text-blue { color: #1976d2 !important; font-weight: bold; }
.text-purple { color: #ab47bc !important; font-weight: bold; }
.text-yellow { color: #fbc02d !important; font-weight: bold; }
.text-pink { color: #ec407a !important; font-weight: bold; }

.dark-theme .text-blue { color: #64b5f6 !important; }
.dark-theme .text-purple { color: #ba68c8 !important; }
.dark-theme .text-yellow { color: #fff176 !important; }
.dark-theme .text-pink { color: #f06292 !important; }

/* STANDINGS */
.division-standings-header {
    background-color: var(--primary-color); color: #FFE97F; padding: 12px 15px; margin-top: 30px; border-radius: 6px 6px 0 0;
    max-width: 900px; margin-left: auto; margin-right: auto;
}
.division-standings-header h3 { margin: 0; font-size: 1.3rem; }
.standings-table-wrapper { max-width: 900px; margin: 0 auto; overflow: visible; }
.standings-table { width: 100%; border-collapse: collapse; margin-top: 0; }
.standings-table th { 
    background-color: var(--table-header-bg) !important; 
    color: var(--table-header-text) !important; 
    padding: 8px 4px; text-align: center; font-size: 0.85rem; 
    border: 1px solid var(--table-border); 
}
.standings-table th:first-child { text-align: left; padding-left: 10px; }
.standings-table td { 
    padding: 8px 4px; text-align: center; 
    border: 1px solid var(--table-border); 
    color: var(--text-main) !important; font-size: 0.85rem;
}
.standings-table td.team-name-cell { text-align: left; padding-left: 10px; font-weight: bold; color: var(--text-main) !important; }
.standings-table tr:nth-child(even) td { background-color: var(--bg-main); }
.standings-table tr:hover td { background-color: var(--table-row-hover); }

.standings-footer-note {
    text-align: right; font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; font-style: italic; max-width: 900px; margin: 10px auto 0;
}

/* =========================================
   TOOLTIP ENGINE (NEXT GAME HOVER) 
   ========================================= */
.tooltip-trigger { 
    position: relative; 
    cursor: pointer; 
    text-decoration: underline dotted var(--text-muted); 
    text-underline-offset: 4px;
}
.team-next-game-tooltip {
    position: absolute;
    left: 100%; top: 50%; transform: translateY(-50%);
    margin-left: 15px;
    width: 280px;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

/* Desktop Hover */
@media (min-width: 993px) {
    .tooltip-trigger:hover .team-next-game-tooltip {
        opacity: 1; visibility: visible;
    }
}

.tooltip-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
    border: 2px solid var(--primary-color) !important;
    margin: 0;
}
.tooltip-header-note {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -5px; 
    position: relative;
    z-index: 2;
}

/* =========================================
   MODERN POP-OUT MODAL 
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.8); z-index: 9999;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--bg-card); width: 90%; max-width: 450px;
    border-radius: 12px; padding: 25px; position: relative;
    transform: translateY(20px); transition: transform 0.3s;
    border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 1.8rem;
    cursor: pointer; color: var(--text-muted); transition: color 0.3s;
}
.modal-close:hover { color: var(--text-accent); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; padding-right: 25px; width: 100%; box-sizing: border-box; gap: 10px; }
.modal-matchup { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.modal-team { display: flex; justify-content: space-between; align-items: center; font-size: 1.5rem; font-weight: bold; }
.modal-divider { text-align: center; color: var(--text-muted); font-size: 1.2rem; margin: -5px 0; }
.modal-score { font-size: 1.8rem; color: var(--text-main); }
.modal-details { background: var(--bg-main); padding: 15px; border-radius: 8px; border-left: 4px solid var(--accent-color); }
.modal-details p { margin-bottom: 8px; font-size: 1rem; color: var(--text-main); }
.modal-details p:last-child { margin-bottom: 0; }
.modal-details i { width: 25px; color: var(--text-primary); }

/* =========================================
   CHAMPIONS SECTION 
   ========================================= */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.5rem; color: var(--text-primary); margin: 0; }
.divider { height: 4px; width: 60px; background-color: var(--accent-color); margin: 10px auto; }

.champions-grid { display: flex; flex-direction: column; gap: 30px; }

.champ-card {
    background: var(--bg-card); border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light); transition: var(--transition); border: 1px solid var(--border-color);
}
.champ-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--shadow-hover); }

.champ-image-wrapper {
    position: relative; width: 100%; height: 450px; overflow: hidden; background: #e9ecef;
}
.champ-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}

/* UPDATED: Badge moved to bottom right */
.champ-badge {
    position: absolute; bottom: 20px; right: 20px; background: var(--accent-color); color: #fff;
    padding: 8px 15px; font-weight: bold; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.champ-info { padding: 25px; }
.champ-info h3 {
    font-size: 1.8rem; color: var(--text-primary); margin-bottom: 15px; margin-top: 0;
    border-bottom: 2px solid var(--hub-header-border); padding-bottom: 10px;
}
.roster p { font-size: 0.95rem; margin-bottom: 8px; color: var(--text-main); }

/* SIDEBAR & FOOTER */
.sidebar { position: sticky; top: 100px; }
.widget {
    background: var(--bg-card); padding: 25px; border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light); text-align: center; border: 1px solid var(--border-color);
}
.widget h3 { color: var(--text-primary); margin-bottom: 10px; }
.store-link img { max-width: 100%; margin-top: 15px; border-radius: 4px; transition: var(--transition); }
.store-link:hover img { transform: scale(1.05); }

footer { background-color: var(--footer-color); color: #fff; text-align: center; padding: 30px 20px; margin-top: 50px; }
.footer-content p { margin-bottom: 20px; color: #e0e0e0; }
.btn-outline {
    border: 2px solid #fff; color: #fff; padding: 10px 20px; font-size: 1rem;
    border-radius: 5px; background-color: #4f4f4f; box-shadow: none; display: inline-block; text-decoration: none;
}
.btn-outline:hover { background-color: var(--accent-color); }

/* MOBILE / RESPONSIVE ENGINE */
.mobile-only { display: none !important; }
.desktop-only { display: block; } 

@media (max-width: 992px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .champ-image-wrapper { height: 350px; }
    
    .standings-table-wrapper { overflow-x: auto; }
    
    .team-next-game-tooltip { 
        display: block !important;
        position: fixed;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 85%;
        max-width: 320px;
        z-index: 10000;
        pointer-events: auto;
    }
    .team-next-game-tooltip.show-mobile {
        opacity: 1; visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
    .tooltip-card {
        box-shadow: 0 0 0 1000px rgba(0,0,0,0.6), 0 10px 30px rgba(0,0,0,0.8) !important;
    }
}

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--nav-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        padding-bottom: 10px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); border-radius: 0; }
    
    .hero h1 { font-size: 2rem; }
    .champ-image-wrapper { height: 250px; }
    
    .hub-header { flex-direction: column; align-items: flex-start; }
    .hub-actions { width: 100%; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
    .btn-view-all { flex-grow: 1; text-align: center; margin-top: 10px; }
    
    .games-ticker { grid-template-columns: 1fr; }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    .game-card { padding: 10px; }
}