/* ==========================================================================
   THEME TOKENS
   ========================================================================== */
   :root {
    /* Brand */
    --color-primary: #2978A0;
    --color-primary-hover: rgb(23, 89, 122);
  
    /* Neutrals / Text */
    --color-white: #ffffff;
    --color-bg-soft: #f6f6f6;
    --color-text-strong: #333333;
    --color-text: #666666;
    --color-text-muted: #888888;
    --color-text-subtle: #555555;
    --color-separator: #999999;
  
    /* Surfaces */
    --color-surface: #ffffff;
    --color-surface-alt: #f9f9f9;
    --color-surface-subtle: #fafafa;
  
    /* Borders */
    --color-border: #e0e0e0;
    --color-border-subtle: #f0f0f0;
    --color-border-soft: #e8e8e8;
    --color-border-lighter: #dddddd;
  
    /* Status / Accents */
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-neutral: #6c757d;
  
    /* Badges / States (bg + text) */
    --badge-open-bg: #e3f2fd;
    --badge-open-text: #1565c0;
  
    --badge-active-bg: #e8f5e8;
    --badge-active-text: #2e7d32;
  
    --badge-completed-bg: #f3e5f5;
    --badge-completed-text: #7b1fa2;
  
    --badge-inactive-bg: #fafafa;
    --badge-inactive-text: #616161;
  
    /* Cards (left accent borders) */
    --status-open-accent: var(--color-primary);
    --status-active-accent: #2ecc71;
    --status-completed-accent: #9b59b6;
    --status-inactive-accent: #95a5a6;
  
    /* Trophy / Gold */
    --color-gold: #f1c40f;
    --color-gold-text: #6b5b00;
  
    /* Scrollbar */
    --scrollbar-thumb: rgba(100, 100, 100, 0.4);
    --scrollbar-thumb-hover: rgba(100, 100, 100, 0.7);
  
    /* Shadows (alpha only; used with black) */
    --shadow-05: rgba(0, 0, 0, 0.05);
    --shadow-08: rgba(0, 0, 0, 0.08);
    --shadow-10: rgba(0, 0, 0, 0.10);
    --shadow-12: rgba(0, 0, 0, 0.12);
    --shadow-15: rgba(0, 0, 0, 0.15);
  
    /* Icon / caret color used via currentColor in data URIs */
    --icon-muted: #6b7280;
  
    /* Utility */
    --overlay-white-95: rgba(255, 255, 255, 0.95);
    --overlay-white-80: rgba(255, 255, 255, 0.8);
    --overlay-white-30: rgba(255, 255, 255, 0.3);
  }
  
  /* ==========================================================================
     GLOBAL / RESET
     ========================================================================== */
  
  /* Scrollbars (WebKit) */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.2s ease-in-out;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
  }
  
  /* Scrollbars (Firefox) */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
  }
  
  /* Base */
  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }
  a {
    text-decoration: none !important;
  }
  
  /* Full-width containers (WordPress core wrappers) */
  .container-fluid,
  .entry-content,
  .site-content,
  .content-area,
  #content,
  #primary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* No box-shadows/borders on main content areas */
  .site-main,
  .content-area,
  .site-content,
  #content,
  #primary {
    box-shadow: none !important;
    border: none !important;
  }
  
  /* Readability padding for post content */
  .entry-content {
    padding: 0 15px;
  }
  
  /* Images full width by default */
  .wp-block-image img,
  .size-full {
    width: 100%;
    height: auto;
  }
  
  /* ==========================================================================
     LAYOUT: PAGE SHELL
     ========================================================================== */
  
  .league-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  .league-archive-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 50px;
    width: 100%;
    padding: 25px 20px 300px 20px;
  }
  
  .main-container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    min-height: 90vh;
    min-width: calc(70% - 70px);
    border-radius: 16px;
    padding: 30px;
  }
  
  .side-container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-soft);
    min-height: 90vh;
    max-width: 400px;
    border-radius: 16px;
    min-width: calc(30% - 70px);
    padding: 30px;
  }
  
  .dashboard-content {
    width: 100%;
  }
  
  .dashboard-min-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 10px 0;
  }
  
  .dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 20px 0;
  }
  
  /* ==========================================================================
     FILTERS + INPUTS
     ========================================================================== */
  
  .league-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--color-surface-alt);
    border-radius: 12px;
  }
  
  .search-section {
    flex: 1;
  }
  
  .search-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
  }
  .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
  }
  
  .location-filters {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  
  /* Custom dropdown (used in multiple pages) */
  .custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 180px;
  }
  .dropdown-selected {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 180px;
    padding: 10px 40px 10px 14px;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    /* Use currentColor for caret, then color it via --icon-muted */
    color: var(--icon-muted);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .dropdown-selected:hover,
  .dropdown-selected:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.15);
  }
  .dropdown-selected.active {
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m14 12-4-4-4 4'/%3e%3c/svg%3e");
  }
  
  .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-15);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .dropdown-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-options::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  
  .dropdown-option {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--color-text-strong);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .dropdown-option:hover {
    background-color: #f5f5f5;
    color: var(--color-primary);
  }
  .dropdown-option.selected {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
  .dropdown-option:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }
  .dropdown-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
  }
  
  /* Dropdown tweaks in joined header */
  .joined-header .custom-dropdown {
    min-width: 120px;
  }
  .joined-header .dropdown-selected {
    min-width: 120px;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    background-position: right 10px center;
    background-size: 16px 16px;
  }
  
  /* ==========================================================================
     BUTTONS / LINKS
     ========================================================================== */
  
  .register-button,
  .view-button,
  .view-season-button,
  .season-link-button,
  .register-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .season-link-button {
    padding: 12px 24px;
    margin-bottom: 30px;
  }
  .register-button:hover,
  .view-button:hover,
  .view-season-button:hover,
  .season-link-button:hover,
  .register-btn:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
  }
  
  /* ==========================================================================
     CARDS / LISTS / EMPTY STATES
     ========================================================================== */
  
  .leagues-query-container,
  .seasons-list,
  .user-league-list,
  .roster-list,
  .events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .league-item,
  .season-item,
  .user-league-item,
  .roster-item,
  .event-item {
    background: var(--color-surface);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-05);
    border: 2px solid var(--color-border-subtle);
  }
  
  .league-item,
  .season-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
  }
  
  .user-league-item,
  .roster-item {
    padding: 20px 25px;
  }
  
  .league-item:hover,
  .season-item:hover,
  .user-league-item:hover,
  .roster-item:hover {
    box-shadow: 0 4px 8px var(--shadow-10);
    transform: translateY(-2px);
  }
  
  .no-leagues,
  .no-seasons,
  .no-teams,
  .no-events {
    text-align: center;
    color: var(--color-text);
    padding: 40px 20px;
  }
  .no-leagues p,
  .no-seasons p,
  .no-teams p,
  .no-events p {
    font-size: 18px;
    margin: 0;
  }
  
  /* ==========================================================================
     LEAGUE / SEASON BLOCKS
     ========================================================================== */
  
  .league-info {
    flex: 1;
  }
  .league-actions {
    display: flex;
    align-items: center;
  }
  
  .league-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .league-name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
  }
  .separator {
    color: var(--color-separator);
  }
  .season-title {
    font-weight: 600;
    color: var(--color-text-strong);
    font-size: 16px;
  }
  
  .registration-status {
    color: var(--color-text);
    font-size: 14px;
    font-style: italic;
  }
  
  .league-description {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--color-surface-alt);
    border-radius: 12px;
    color: var(--color-text);
    line-height: 1.6;
  }
  
  .seasons-query-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .seasons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .history-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0;
  }
  
  /* Champion (inline) */
  .season-champion-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 6px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
  }
  .season-champion-inline .mini-trophy {
    color: var(--color-gold);
    display: inline-flex;
    line-height: 0;
  }
  .season-champion-inline .champion-label {
    font-weight: 700;
    color: var(--color-gold-text);
  }
  .season-champion-inline .champion-team-link {
    font-weight: 700;
    color: var(--color-primary);
  }
  .season-champion-inline .champion-team-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
  }
  
  /* Season meta + badges */
  .season-info {
    flex: 1;
  }
  .season-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
  }
  .season-name a {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 18px;
  }
  .season-name a:hover {
    color: var(--color-primary-hover);
  }
  
  .season-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .season-status-badge.open {
    background: var(--badge-open-bg);
    color: var(--badge-open-text);
  }
  .season-status-badge.active {
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
  }
  .season-status-badge.completed {
    background: var(--badge-completed-bg);
    color: var(--badge-completed-text);
  }
  .season-status-badge.inactive {
    background: var(--badge-inactive-bg);
    color: var(--badge-inactive-text);
  }
  
  .season-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text);
    font-size: 14px;
  }
  .season-location {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .location-icon {
    font-size: 12px;
  }
  .season-teams {
    font-weight: 500;
  }
  .registration-info {
    font-style: italic;
    color: var(--color-primary);
    font-size: 13px;
  }
  
  .season-actions {
    display: flex;
    align-items: center;
  }
  
  /* League sidebar info / stats */
  .league-history {
    width: 100%;
    height: 100%;
  }
  .league-logo {
    text-align: center;
    margin-bottom: 30px;
  }
  .league-logo-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-10);
  }
  
  .league-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--color-surface);
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow-10);
  }
  .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
  }
  .stat-label {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
  }
  
  /* ==========================================================================
     JOINED LEAGUES (SIDEBAR)
     ========================================================================== */
  
  .joined-leagues-content {
    width: 100%;
    height: 100%;
  }
  .joined-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
  }
  .joined-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0;
    flex: 1;
  }
  
  .joined-leagues-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .joined-league-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-10);
  }
  .joined-league-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px var(--shadow-15);
    transform: translateY(-1px);
  }
  
  .joined-league-info {
    flex: 1;
  }
  .joined-league-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .joined-league-name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 14px;
  }
  .joined-season-title {
    font-weight: 500;
    color: var(--color-text-subtle);
    font-size: 13px;
  }
  .joined-team-info {
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: italic;
  }
  
  .joined-status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: 2px;
  }
  .status-open {
    background: var(--badge-open-bg);
    color: var(--badge-open-text);
  }
  .status-active {
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
  }
  .status-completed {
    background: var(--badge-completed-bg);
    color: var(--badge-completed-text);
  }
  .status-inactive {
    background: var(--badge-inactive-bg);
    color: var(--badge-inactive-text);
  }
  
  .joined-league-actions {
    display: flex;
    align-items: center;
  }
  
  /* Empty/fallback */
  .fallback-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 400px;
    padding: 40px 20px;
  }
  .fallback-image {
    margin-bottom: 20px;
    opacity: 0.7;
  }
  .fallback-image svg {
    display: block;
    margin: 0 auto;
  }
  .fallback-text {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    max-width: 250px;
    line-height: 1.5;
  }
  
  /* ==========================================================================
     STANDINGS (SEASON PAGE)
     ========================================================================== */
  
  .standings-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: 25px;
  }
  .standings-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 25px 0;
  }
  .standings-labels {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .team-standings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: var(--color-surface);
    border: 2px solid var(--color-border-subtle);
    max-height: 80px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-05);
  }
  .team-standings-item:hover {
    box-shadow: 0 4px 8px var(--shadow-10);
    transform: translateY(-2px);
  }
  
  .team-standings-link {
    display: flex;
    color: inherit;
    transition: all 0.3s ease;
  }
  .team-standings-link:hover {
    color: inherit;
  }
  
  .team-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    padding: 20px 25px;
  }
  .team-logo {
    width: 140px;
    height: 76px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px 100px 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .team-logo-img {
    object-fit: cover;
    border-radius: 5px;
  }
  .team-logo-placeholder {
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    height: 100%;
  }
  
  .team-rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 30px;
  }
  .team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-strong);
  }
  
  .team-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 25px;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
  }
  .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-strong);
  }
  
  /* ==========================================================================
     STATUS CARDS (SEASON SIDEBAR)
     ========================================================================== */
  
  .season-status-content {
    margin-bottom: 30px;
  }
  
  .status-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px var(--shadow-10);
  }
  .status-card.status-open {
    border-left-color: var(--status-open-accent);
  }
  .status-card.status-active {
    border-left-color: var(--status-active-accent);
  }
  .status-card.status-completed {
    border-left-color: var(--status-completed-accent);
  }
  .status-card.status-inactive {
    border-left-color: var(--status-inactive-accent);
  }
  
  .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  .status-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0;
  }
  .status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .status-badge.open {
    background: var(--badge-open-bg);
    color: var(--badge-open-text);
  }
  .status-badge.active {
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
  }
  .status-badge.completed {
    background: var(--badge-completed-bg);
    color: var(--badge-completed-text);
  }
  .status-badge.inactive {
    background: var(--badge-inactive-bg);
    color: var(--badge-inactive-text);
  }
  
  .status-description {
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
  }
  
  /* Countdown (Open reg) */
  .countdown-container {
    margin: 20px 0;
    text-align: center;
  }
  .countdown-label {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 10px;
  }
  .countdown-display {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
  }
  .countdown-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
  }
  .countdown-unit {
    font-size: 11px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
  }
  .status-action {
    margin-top: 20px;
    text-align: center;
  }
  
  /* ==========================================================================
     SCHEDULE / EVENTS
     ========================================================================== */
  
  .schedule-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 20px 0;
  }
  
  .event-item {
    border-left: 3px solid var(--color-border-lighter);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow-10);
    transition: all 0.3s ease;
  }
  .event-item.completed {
    border-left-color: var(--color-success);
  }
  .event-item.upcoming {
    border-left-color: var(--color-primary);
  }
  
  .event-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .event-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .event-date .date {
    font-weight: 700;
    color: var(--color-text-strong);
    font-size: 14px;
  }
  .event-date .time {
    color: var(--color-text);
    font-size: 12px;
  }
  .event-date .tba {
    color: var(--color-text);
    font-style: italic;
    font-weight: 500;
  }
  
  .event-matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .team-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }
  .events-list .team-name {
    font-weight: 600;
    color: var(--color-text-strong);
    font-size: 13px;
    text-align: center;
  }
  
  .score {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 18px;
    margin: 5px 0;
  }
  .final-score {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
  }
  
  .vs-divider {
    font-weight: 700;
    color: var(--color-text);
    padding: 0 15px;
    font-size: 12px;
  }
  
  .event-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text);
    font-size: 12px;
    font-style: italic;
  }
  .location-icon {
    font-weight: 700;
    color: var(--color-primary);
  }
  
  .result-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
  }
  .result-indicator.win {
    background-color: var(--color-success);
  }
  .result-indicator.loss {
    background-color: var(--color-danger);
  }
  .result-indicator.tie {
    background-color: var(--color-neutral);
  }
  
  /* ==========================================================================
     CHAMPIONS (SIDEBAR CARD)
     ========================================================================== */
  
  .champions-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 18px 18px 8px 18px;
    box-shadow: 0 2px 8px var(--shadow-10);
    border-left: 4px solid var(--color-gold);
    margin-top: 20px;
  }
  .champions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .champions-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-strong);
    margin: 0;
  }
  
  .champions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .champion-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 10px;
    background: var(--color-surface-subtle);
  }
  .champion-label {
    font-weight: 700;
    color: #444444;
    align-self: center;
  }
  .champion-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
  }
  .trophy-icon {
    color: var(--color-gold);
    display: inline-flex;
    line-height: 0;
  }
  .champion-team-link {
    font-weight: 700;
    color: var(--color-primary);
  }
  .champion-team-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
  }
  
  /* ==========================================================================
     ROSTER (TEAM PAGE)
     ========================================================================== */
  
  .roster-section {
    margin-top: 20px;
  }
  .roster-title,
  .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 25px 0;
  }
  
  .player-info {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--color-border);
    flex-shrink: 0;
    overflow: hidden;
  }
  .player-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .player-avatar-placeholder {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
  }
  
  .player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }
  .player-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-strong);
  }
  .player-username {
    font-size: 14px;
    color: var(--color-text);
    font-style: italic;
  }
  
  .player-physical-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 70px;
  }
  .stat-item {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 12px;
  }
  .stat-item.height {
    background: var(--badge-open-bg);
    color: var(--badge-open-text);
  }
  .stat-item.weight {
    background: var(--badge-completed-bg);
    color: var(--badge-completed-text);
  }
  
  .no-roster {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text);
  }
  
  /* Team info (sidebar card) */
  .team-information-section .section-title {
    margin-bottom: 20px;
  }
  
  .team-info-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-10);
    position: relative;
    overflow: hidden;
    min-height: 120px;
  }
  .team-info-overlay {
    background: linear-gradient(
      to right,
      var(--overlay-white-95) 0%,
      var(--overlay-white-80) 40%,
      var(--overlay-white-30) 70%,
      transparent 100%
    );
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .team-info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }
  .team-logo-display {
    flex-shrink: 0;
  }
  .team-logo-image {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px var(--shadow-10);
  }
  
  .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
  }
  .info-item:last-child {
    margin-bottom: 0;
  }
  .info-label {
    font-weight: 600;
    color: var(--color-text-strong);
    font-size: 14px;
  }
  .count-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-strong);
  }
  .record-value {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
  }
  
  .season-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
  }
  .season-link:hover {
    text-decoration: none;
  }
  
  /* ==========================================================================
     USER PAGE (LEAGUE HISTORY + PROFILE)
     ========================================================================== */
  
  .user-league-container {
    margin-top: 20px;
  }
  .user-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 25px 0;
  }
  
  .league-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .league-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .season-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 4px 0;
  }
  .season-name a {
    color: inherit;
  }
  .season-name a:hover {
    text-decoration: none;
  }
  
  .league-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
  }
  .league-name a {
    color: var(--color-primary);
  }
  .league-name a:hover {
    text-decoration: none;
  }
  
  .team-name a {
    color: var(--color-text-strong);
    font-weight: 600;
  }
  .team-name a:hover {
    text-decoration: none;
  }
  
  .registration-date {
    font-size: 14px;
    color: var(--color-text-muted);
  }
  
  .team-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-subtle);
  }
  .record {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
  }
  
  .player-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-border);
  }
  .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .player-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--color-surface-alt);
    border-radius: 8px;
  }
  .stat-label {
    font-weight: 600;
    color: var(--color-text-subtle);
    font-size: 14px;
  }
  .stat-value {
    font-weight: 500;
    color: var(--color-text-strong);
    font-size: 14px;
  }
  
  /* ==========================================================================
     RESPONSIVE
     ========================================================================== */
  
  @media (max-width: 768px) {
    .league-archive-container {
      flex-direction: column;
      gap: 20px;
      padding: 100px 15px 200px 15px;
    }
    .main-container,
    .side-container {
      min-width: 100%;
      max-width: 100%;
    }
  
    .dashboard-title {
      font-size: 2rem;
    }
  
    /* Filters */
    .league-filter-container {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
    }
    .location-filters {
      justify-content: space-between;
    }
  
    /* Cards becoming vertical */
    .league-item,
    .season-item {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
    }
    .league-actions,
    .season-actions {
      justify-content: center;
    }
  
    /* Seasons header stack */
    .seasons-header {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
    }
  
    /* Standings */
    .team-standings-item {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }
    .team-info {
      justify-content: center;
    }
    .team-stats {
      justify-content: center;
      gap: 25px;
    }
    .standings-title {
      font-size: 1.5rem;
    }
  
    /* Countdown */
    .countdown-display {
      gap: 10px;
    }
    .countdown-item {
      min-width: 50px;
    }
    .countdown-number {
      font-size: 20px;
    }
  
    /* Events */
    .event-matchup {
      flex-direction: column;
      gap: 8px;
    }
    .vs-divider {
      padding: 0;
    }
  
    /* Roster */
    .player-info {
      flex-direction: column;
      text-align: center;
      gap: 10px;
    }
    .player-physical-stats {
      align-items: center;
      flex-direction: row;
      gap: 8px;
      justify-content: center;
    }
  
    /* Team info card gradient vertical */
    .team-info-content {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      gap: 15px;
    }
    .team-logo-display {
      align-self: center;
    }
    .team-logo-image {
      max-width: 120px;
    }
    .team-info-overlay {
      background: linear-gradient(
        to bottom,
        var(--overlay-white-95) 0%,
        var(--overlay-white-80) 60%,
        var(--overlay-white-30) 85%,
        transparent 100%
      );
    }
  }
  
  @media (max-width: 480px) {
    .champion-row {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .champion-team {
      justify-self: start;
    }
  }
  