/*
Theme Name: Footem Live
Theme URI: https://footemlive.in
Author: Antigravity
Author URI: https://footemlive.in
Description: Premium Live Scores, Stats & Timelines WordPress theme. Built for speed, mobile friendliness, SEO, and Core Web Vitals optimization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: footemlive
Tags: sports, dynamic, live-scores, dark-mode, light-mode, responsive
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --navy-dark:  #060813;
      --navy-bg:    #0a0f24;
      --card-bg:    rgba(16, 20, 38, 0.65);
      --card-hover: rgba(22, 28, 54, 0.85);
      --border:     rgba(255, 255, 255, 0.07);
      --border-glow: rgba(0, 240, 255, 0.3);
      --cyan:       #00f0ff;
      --cyan-glow:  rgba(0, 240, 255, 0.35);
      --lime:       #39ff14;
      --lime-glow:  rgba(57, 255, 20, 0.35);
      --red:        #ff2d55;
      --red-glow:   rgba(255, 45, 85, 0.35);
      --gold:       #ffd700;
      --text:       #f0f4ff;
      --muted:      #9aa5bf;
      --font-display: 'Bebas Neue', sans-serif;
      --font-body:    'Outfit', sans-serif;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

      --header-bg: rgba(10, 15, 36, 0.7);
      --drawer-bg: #090d1f;
      --table-hdr-bg: rgba(255,255,255,0.02);
      --table-row-hover: rgba(255,255,255,0.02);
      --table-legend-bg: rgba(0,0,0,0.15);
      --logo-grad: linear-gradient(135deg, var(--cyan), #00a8ff);
      --hero-bg: linear-gradient(180deg, rgba(20, 28, 54, 0.95) 0%, rgba(10, 15, 36, 0.95) 100%);
      --hero-glow: rgba(0, 240, 255, 0.04);
      --news-img-bg: linear-gradient(135deg, rgba(10, 15, 36, 0.9), rgba(16, 20, 38, 0.4));
      --news-watermark-color: rgba(255,255,255,0.03);
      --pill-active-bg: linear-gradient(135deg, var(--cyan), #0088ff);
      --search-btn-bg: rgba(255,255,255,0.04);
      --timeline-hover-bg: rgba(255,255,255,0.02);
      --timeline-hover-active-bg: rgba(255,255,255,0.04);
    }

    body.light-mode {
      --navy-dark:  #f0f2f5;
      --navy-bg:    #ffffff;
      --card-bg:    rgba(255, 255, 255, 0.9);
      --card-hover: rgba(255, 255, 255, 0.95);
      --border:     rgba(0, 0, 0, 0.08);
      --border-glow: rgba(239, 1, 7, 0.15);
      --cyan:       #ef0107;
      --cyan-glow:  rgba(239, 1, 7, 0.2);
      --lime:       #008800;
      --lime-glow:  rgba(0, 136, 0, 0.2);
      --red:        #ef0107;
      --red-glow:   rgba(239, 1, 7, 0.2);
      --gold:       #c59b27;
      --text:       #111827;
      --muted:      #4b5563;
      --header-bg:  rgba(255, 255, 255, 0.8);
      --drawer-bg:  #ffffff;
      --table-hdr-bg: rgba(0, 0, 0, 0.02);
      --table-row-hover: rgba(0, 0, 0, 0.02);
      --table-legend-bg: rgba(0, 0, 0, 0.04);
      --logo-grad:  linear-gradient(135deg, var(--cyan), #ff5a5a);
      --hero-bg:    linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
      --hero-glow:  rgba(239, 1, 7, 0.04);
      --news-img-bg: linear-gradient(135deg, #e5e7eb, #f3f4f6);
      --news-watermark-color: rgba(0,0,0,0.03);
      --pill-active-bg: linear-gradient(135deg, var(--cyan), #ff5a5a);
      --search-btn-bg: rgba(0, 0, 0, 0.03);
      --timeline-hover-bg: rgba(0, 0, 0, 0.01);
      --timeline-hover-active-bg: rgba(0, 0, 0, 0.03);
    }

    html, body {
      overflow-x: hidden;
      width: 100%;
      scroll-behavior: smooth;
    }

    body {
      background: radial-gradient(circle at top, var(--navy-bg) 0%, var(--navy-dark) 100%);
      color: var(--text);
      font-family: var(--font-body);
      font-size: 14px;
      line-height: 1.6;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }
    button { cursor: pointer; font-family: inherit; border: none; outline: none; background: none; }
    img { display: block; max-width: 100%; }

    /* Custom Scrollbar */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: var(--navy-dark); }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

    /* ── CORE LAYOUT CONTAINER ── */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* ── LIVE TICKER ── */
    .ticker-bar {
      background: linear-gradient(90deg, #ff2d55, #cc0033);
      overflow: hidden;
      height: 36px;
      display: flex;
      align-items: center;
      position: relative;
      z-index: 101;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    .ticker-label {
      background: #990022;
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .1em;
      padding: 0 16px;
      height: 100%;
      display: flex;
      align-items: center;
      flex-shrink: 0;
      gap: 6px;
      box-shadow: 4px 0 10px rgba(0,0,0,0.25);
      z-index: 2;
    }
    .ticker-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 0 8px #fff;
      animation: pulse 1.2s infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.3; transform: scale(0.75); }
    }
    .ticker-track-wrap {
      overflow: hidden;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
    }
    .ticker-track {
      display: flex;
      animation: ticker 40s linear infinite;
      white-space: nowrap;
    }
    .ticker-track:hover { animation-play-state: paused; }
    @keyframes ticker {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .ticker-item {
      font-size: 12px;
      font-weight: 600;
      padding: 0 24px;
      color: #fff;
      border-right: 1px solid rgba(255,255,255,0.15);
      display: flex;
      align-items: center;
    }
    .ticker-item span {
      background: rgba(255,255,255,0.2);
      padding: 1px 5px;
      border-radius: 3px;
      margin: 0 6px;
      font-weight: 700;
    }

    /* ── HEADER ── */
    header {
      background: var(--header-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .header-inner {
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .logo {
      font-family: var(--font-display);
      font-size: 32px;
      letter-spacing: .05em;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .logo span {
      background: var(--logo-grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .logo-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 10px var(--cyan);
    }
    nav.desktop-nav {
      display: flex;
      gap: 8px;
    }
    nav.desktop-nav a {
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      padding: 8px 16px;
      border-radius: 8px;
      transition: var(--transition);
    }
    nav.desktop-nav a:hover, nav.desktop-nav a.active {
      color: var(--text);
      background: rgba(255, 255, 255, 0.05);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    .search-btn {
      background: var(--search-btn-bg, rgba(255, 255, 255, 0.04));
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px 16px;
      font-size: 13px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 8px;
      transition: var(--transition);
    }
    .search-btn:hover {
      color: var(--text);
      border-color: var(--cyan-glow);
      box-shadow: 0 0 12px var(--cyan-glow);
    }
    .theme-toggle-btn {
      padding: 8px;
      border-radius: 10px;
      border: 1px solid var(--border);
      color: var(--muted);
      background: var(--search-btn-bg, rgba(255,255,255,0.04));
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      transition: var(--transition);
    }
    .theme-toggle-btn:hover {
      color: var(--text);
      border-color: var(--cyan-glow);
      box-shadow: 0 0 10px var(--cyan-glow);
    }
    .mobile-nav-toggle {
      display: none;
      font-size: 26px;
      color: var(--text);
      padding: 4px;
    }

    /* ── MOBILE NAV DRAWER ── */
    .mobile-drawer {
      position: fixed;
      top: 0; right: -300px;
      width: 280px; height: 100vh;
      background: var(--drawer-bg);
      border-left: 1px solid var(--border);
      z-index: 200;
      padding: 30px 24px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .mobile-drawer.open { right: 0; }
    .drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .drawer-close {
      font-size: 28px;
      color: var(--muted);
    }
    .drawer-nav {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .drawer-nav a {
      font-size: 16px;
      font-weight: 600;
      color: var(--muted);
      padding: 12px 16px;
      border-radius: 10px;
      transition: var(--transition);
    }
    .drawer-nav a.active, .drawer-nav a:hover {
      color: var(--cyan);
      background: rgba(0, 240, 255, 0.05);
    }
    .drawer-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px);
      z-index: 199;
      opacity: 0; pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .drawer-overlay.active { opacity: 1; pointer-events: all; }

    /* ── LEAGUE FILTER BAR ── */
    .league-bar {
      background: rgba(10, 15, 36, 0.4);
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      scrollbar-width: none;
      width: 100%;
    }
    .league-bar::-webkit-scrollbar { display: none; }
    .league-bar-inner {
      display: flex;
      gap: 10px;
      padding: 14px 20px;
      width: max-content;
    }
    .league-pill {
      flex-shrink: 0;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 6px 16px;
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .league-pill:hover {
      border-color: var(--cyan);
      color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    }
    .league-pill.active {
      background: var(--pill-active-bg);
      border-color: var(--cyan);
      color: var(--navy-dark);
      box-shadow: 0 0 15px var(--cyan-glow);
      font-weight: 700;
    }
    .league-pill-badge {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: currentColor;
    }

    /* ── MAIN GRID LAYOUT ── */
    .main-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 24px;
      padding: 30px 0;
    }

    /* ── COMPONENT: CUSTOM TEAM BADGE ── */
    .team-badge-custom {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--bg-grad, linear-gradient(135deg, #1f2937, #111827));
      border: 2px solid var(--border-color, rgba(255,255,255,0.1));
      box-shadow: 0 4px 12px rgba(0,0,0,0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.05em;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
      flex-shrink: 0;
      overflow: hidden;
    }
    .team-badge-custom img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    /* ── SECTION HEADER ── */
    .section-hd {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--border);
    }
    .section-title {
      font-family: var(--font-display);
      font-size: 24px;
      letter-spacing: .06em;
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text);
    }
    .live-badge-glow {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .1em;
      background: var(--red);
      color: #fff;
      padding: 3px 8px;
      border-radius: 5px;
      box-shadow: 0 0 12px var(--red-glow);
      animation: pulse 1.2s infinite;
    }
    .section-count-badge {
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 700;
      background: rgba(255,255,255,0.06);
      color: var(--muted);
      padding: 2px 8px;
      border-radius: 12px;
    }

    /* ── MATCH CARD (GLASSMORPHIC) ── */
    .match-card {
      background: var(--card-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 18px 22px;
      margin-bottom: 14px;
      transition: var(--transition);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .match-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
      pointer-events: none;
    }
    .match-card:hover {
      background: var(--card-hover);
      border-color: var(--border-glow);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 240, 255, 0.08);
    }

    .match-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .match-league {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .match-time-badge {
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .match-time-badge.live {
      background: rgba(255, 45, 85, 0.12);
      color: var(--red);
      box-shadow: inset 0 0 0 1px rgba(255, 45, 85, 0.25);
    }
    .match-time-badge.upcoming-soon {
      background: rgba(0, 240, 255, 0.12);
      color: var(--cyan);
      box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.25);
    }
    .match-time-badge.upcoming {
      background: rgba(255, 255, 255, 0.04);
      color: var(--muted);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    .match-time-badge.finished {
      background: rgba(255, 255, 255, 0.03);
      color: var(--muted);
    }

    .match-main-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
      align-items: center;
      gap: 14px;
      margin: 8px 0;
    }
    .team {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    .team.right-aligned {
      flex-direction: row-reverse;
      text-align: right;
    }
    .team-name {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.01em;
    }
    .score-center {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .score-num-wrap {
      font-family: var(--font-display);
      font-size: 34px;
      letter-spacing: .04em;
      line-height: 1;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .score-num-wrap.live-glowing {
      color: var(--lime);
      text-shadow: 0 0 15px var(--lime-glow);
    }
    .score-separator {
      font-size: 16px;
      color: var(--muted);
      font-weight: 500;
    }
    .score-status-sub {
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
      margin-top: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .match-footer {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .match-stats-summary {
      font-size: 12px;
      color: var(--muted);
    }
    .match-stats-summary strong {
      color: var(--text);
      font-weight: 600;
    }
    .enter-match-btn {
      background: rgba(0, 240, 255, 0.06);
      border: 1px solid rgba(0, 240, 255, 0.2);
      color: var(--cyan);
      padding: 5px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: var(--transition);
    }
    .enter-match-btn:hover {
      background: rgba(0, 240, 255, 0.15);
      border-color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }

    /* ── TABS ── */
    .tabs-wrap {
      display: flex;
      gap: 6px;
      margin-bottom: 18px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0;
    }
    .tab-trigger {
      font-size: 14px;
      font-weight: 700;
      color: var(--muted);
      padding: 10px 20px;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: var(--transition);
    }
    .tab-trigger:hover {
      color: var(--text);
    }
    .tab-trigger.active {
      color: var(--cyan);
      border-bottom-color: var(--cyan);
      text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }

    /* ── LEAGUE TABLE ── */
    .table-container {
      background: var(--card-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow-x: auto;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    table.standings-table {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
    }
    table.standings-table th {
      background: var(--table-hdr-bg, rgba(255,255,255,0.02));
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .06em;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
    }
    table.standings-table th.left-align { text-align: left; }
    table.standings-table tr {
      border-bottom: 1px solid var(--border);
      transition: var(--transition);
    }
    table.standings-table tr:last-child { border-bottom: none; }
    table.standings-table tr:hover {
      background: var(--table-row-hover, rgba(255, 255, 255, 0.02));
    }
    table.standings-table td {
      padding: 12px 14px;
      font-size: 13px;
      vertical-align: middle;
    }
    table.standings-table td.left-align { text-align: left; }
    .pos-num {
      font-weight: 800;
      font-size: 12px;
      color: var(--muted);
      width: 24px;
      text-align: center;
      display: inline-block;
    }
    .pos-num.ucl { color: var(--cyan); text-shadow: 0 0 8px rgba(0,240,255,0.3); }
    .pos-num.uel { color: var(--gold); }
    .pos-num.rel { color: var(--red); }

    .team-cell {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .team-cell-name {
      font-weight: 700;
    }
    .points-cell {
      font-weight: 800;
      color: var(--text);
    }
    .gd-positive { color: var(--lime); font-weight: 600; }
    .gd-negative { color: var(--red); font-weight: 600; }

    .form-dots-list {
      display: flex;
      gap: 4px;
      justify-content: center;
    }
    .form-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      display: inline-block;
    }
    .form-dot.win { background: var(--lime); box-shadow: 0 0 6px var(--lime-glow); }
    .form-dot.draw { background: var(--gold); }
    .form-dot.loss { background: var(--red); box-shadow: 0 0 6px var(--red-glow); }

    .table-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      padding: 14px 20px;
      font-size: 11px;
      color: var(--muted);
      background: var(--table-legend-bg, rgba(0,0,0,0.15));
      border-top: 1px solid var(--border);
    }
    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .legend-indicator {
      width: 8px; height: 8px;
      border-radius: 2px;
    }
    .legend-indicator.ucl { background: var(--cyan); }
    .legend-indicator.uel { background: var(--gold); }
    .legend-indicator.rel { background: var(--red); }

    /* ── LATEST NEWS SECTION ── */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 14px;
    }
    .news-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      transition: var(--transition);
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }
    .news-card:hover {
      background: var(--card-hover);
      border-color: var(--border-glow);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,240,255,0.05);
    }
    .news-img-holder {
      height: 140px;
      background: var(--news-img-bg, linear-gradient(135deg, rgba(10, 15, 36, 0.9), rgba(16, 20, 38, 0.4)));
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .news-img-holder::before {
      content: 'FOOTEM LIVE';
      font-family: var(--font-display);
      font-size: 36px;
      color: var(--news-watermark-color, rgba(255,255,255,0.03));
      letter-spacing: 0.1em;
    }
    .news-img-overlay-tag {
      position: absolute;
      bottom: 12px; left: 12px;
      background: var(--cyan);
      color: var(--navy-dark);
      font-size: 10px;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .news-info {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
    }
    .news-headline {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
      color: var(--text);
    }
    .news-meta {
      font-size: 11px;
      color: var(--muted);
      margin-top: auto;
    }

    /* ── SIDEBAR CARDS ── */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .sidebar-card {
      background: var(--card-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }
    .sidebar-hd {
      background: rgba(255,255,255,0.02);
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      font-family: var(--font-display);
      font-size: 18px;
      letter-spacing: .06em;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sidebar-hd-sub {
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 700;
      color: var(--cyan);
    }
    .sidebar-list-item {
      padding: 12px 18px;
      border-bottom: 1px solid var(--border);
      transition: var(--transition);
      cursor: pointer;
    }
    .sidebar-list-item:last-child { border-bottom: none; }
    .sidebar-list-item:hover {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Top Scorers list */
    .scorer-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .scorer-rank {
      font-family: var(--font-display);
      font-size: 22px;
      color: var(--muted);
      width: 20px;
      text-align: center;
    }
    .scorer-info {
      flex: 1;
    }
    .scorer-name {
      font-size: 13px;
      font-weight: 700;
    }
    .scorer-club {
      font-size: 11px;
      color: var(--muted);
    }
    .scorer-goals-num {
      font-family: var(--font-display);
      font-size: 24px;
      color: var(--lime);
      text-shadow: 0 0 10px var(--lime-glow);
    }

    /* Sidebar Upcoming item */
    .sidebar-upcoming-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .sidebar-upcoming-teams {
      font-size: 13px;
      font-weight: 700;
    }
    .sidebar-upcoming-teams span {
      color: var(--muted);
      font-weight: 500;
      margin: 0 2px;
    }
    .sidebar-upcoming-league {
      font-size: 10px;
      color: var(--muted);
      margin-top: 2px;
    }
    .sidebar-upcoming-when {
      text-align: right;
    }
    .sidebar-upcoming-time {
      font-size: 12px;
      font-weight: 800;
      color: var(--cyan);
    }
    .sidebar-upcoming-date {
      font-size: 9px;
      color: var(--muted);
    }

    /* ── MATCH DETAILS / MATCH CENTER ── */
    .match-center-wrap {
      animation: fadeIn 0.4s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .back-header {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 18px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
      transition: var(--transition);
    }
    .back-header:hover {
      color: var(--cyan);
      border-color: var(--cyan-glow);
      background: rgba(0, 240, 255, 0.03);
    }
    .back-header svg {
      transition: transform 0.2s ease;
    }
    .back-header:hover svg {
      transform: translateX(-4px);
    }

    .match-hero {
      background: var(--hero-bg);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 30px 40px;
      margin-bottom: 24px;
      position: relative;
      box-shadow: 0 12px 40px rgba(0,0,0,0.3);
      overflow: hidden;
    }
    .match-hero::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background: radial-gradient(circle, var(--hero-glow, rgba(0, 240, 255, 0.04)) 0%, transparent 60%);
      pointer-events: none;
    }
    .hero-league {
      text-align: center;
      font-size: 12px;
      font-weight: 700;
      color: var(--cyan);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 20px;
    }
    .hero-main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 20px;
    }
    .hero-team {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      text-align: center;
      min-width: 0;
    }
    .hero-team .team-badge-custom {
      width: 72px;
      height: 72px;
      font-size: 20px;
      border-width: 3px;
    }
    .hero-team-name {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.01em;
    }
    .hero-score-center {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .hero-score-num {
      font-family: var(--font-display);
      font-size: 56px;
      letter-spacing: 0.04em;
      line-height: 1;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .hero-score-num.live-glowing {
      color: var(--lime);
      text-shadow: 0 0 25px var(--lime-glow);
    }
    .hero-status {
      font-size: 13px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      margin-top: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .hero-status.live {
      background: rgba(255, 45, 85, 0.15);
      color: var(--red);
      box-shadow: 0 0 10px rgba(255, 45, 85, 0.2);
    }
    .hero-status.upcoming {
      background: rgba(0, 240, 255, 0.15);
      color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }
    .hero-status.finished {
      background: rgba(255, 255, 255, 0.06);
      color: var(--muted);
    }

    /* ── MATCH STATS TAB VIEW ── */
    .stat-bars-container {
      display: flex;
      flex-direction: column;
      gap: 16px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
    }
    .stat-bar-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .stat-bar-labels {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      font-weight: 700;
    }
    .stat-bar-title {
      font-size: 12px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .stat-bar-track-wrap {
      height: 8px;
      border-radius: 4px;
      background: rgba(255,255,255,0.05);
      overflow: hidden;
      display: flex;
    }
    .stat-bar-fill-home {
      background: linear-gradient(90deg, #0088ff, var(--cyan));
      border-radius: 4px 0 0 4px;
      transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .stat-bar-fill-away {
      background: linear-gradient(90deg, var(--red), #ff6b8b);
      border-radius: 0 4px 4px 0;
      flex-grow: 1;
      transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ── MATCH LINEUPS (TACTICAL PITCH) ── */
    .pitch-container {
      background: radial-gradient(circle, #1e4620 0%, #112912 100%);
      border: 4px solid rgba(255,255,255,0.15);
      border-radius: 20px;
      height: 480px;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 8px 30px rgba(0,0,0,0.4);
      margin-bottom: 24px;
    }
    .pitch-center-circle {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 100px; height: 100px;
      border: 2px dashed rgba(255,255,255,0.15);
      border-radius: 50%;
    }
    .pitch-center-line {
      position: absolute;
      top: 50%; left: 0; width: 100%; height: 0;
      border-top: 2px dashed rgba(255,255,255,0.15);
    }
    .pitch-penalty-area-top {
      position: absolute;
      top: 0; left: 50%; transform: translateX(-50%);
      width: 240px; height: 80px;
      border-bottom: 2px solid rgba(255,255,255,0.15);
      border-left: 2px solid rgba(255,255,255,0.15);
      border-right: 2px solid rgba(255,255,255,0.15);
    }
    .pitch-penalty-area-bottom {
      position: absolute;
      bottom: 0; left: 50%; transform: translateX(-50%);
      width: 240px; height: 80px;
      border-top: 2px solid rgba(255,255,255,0.15);
      border-left: 2px solid rgba(255,255,255,0.15);
      border-right: 2px solid rgba(255,255,255,0.15);
    }

    .pitch-side-label {
      position: absolute;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      color: rgba(255,255,255,0.3);
      text-transform: uppercase;
    }
    .pitch-side-label.top { top: 10px; left: 15px; }
    .pitch-side-label.bottom { bottom: 10px; left: 15px; }

    .pitch-player {
      position: absolute;
      width: 32px; height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 800;
      color: #fff;
      box-shadow: 0 4px 10px rgba(0,0,0,0.5);
      cursor: pointer;
      transform: translate(-50%, -50%);
      z-index: 10;
      transition: transform 0.2s ease;
      border: 2px solid #fff;
    }
    .pitch-player:hover {
      transform: translate(-50%, -50%) scale(1.15);
      box-shadow: 0 0 15px rgba(255,255,255,0.6);
    }
    .pitch-player::after {
      content: attr(data-name);
      position: absolute;
      top: 36px; left: 50%;
      transform: translateX(-50%);
      font-family: var(--font-body);
      font-size: 9px;
      font-weight: 700;
      background: rgba(0,0,0,0.85);
      color: #fff;
      padding: 2px 6px;
      border-radius: 4px;
      white-space: nowrap;
      pointer-events: none;
      box-shadow: 0 2px 5px rgba(0,0,0,0.3);
      border: 1px solid rgba(255,255,255,0.1);
      opacity: 0.85;
      transition: opacity 0.2s;
    }
    .pitch-player:hover::after {
      opacity: 1;
      background: var(--navy-dark);
      border-color: var(--cyan);
    }

    /* ── MATCH TIMELINE ── */
    .timeline-container {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      position: relative;
    }
    .timeline-container::before {
      content: '';
      position: absolute;
      top: 24px; bottom: 24px; left: 50%;
      width: 2px; background: var(--border);
      transform: translateX(-50%);
    }
    .timeline-event {
      display: grid;
      grid-template-columns: 1fr 40px 1fr;
      align-items: center;
      width: 100%;
      position: relative;
      z-index: 2;
    }
    .timeline-event-content {
      background: var(--timeline-hover-bg, rgba(255,255,255,0.02));
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px 14px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      transition: var(--transition);
    }
    .timeline-event:hover .timeline-event-content {
      border-color: var(--border-glow);
      background: var(--timeline-hover-active-bg, rgba(255,255,255,0.04));
    }
    .timeline-event.home-side .timeline-event-content {
      grid-column: 1;
      text-align: right;
    }
    .timeline-event.away-side .timeline-event-content {
      grid-column: 3;
      text-align: left;
    }
    .timeline-center-node {
      grid-column: 2;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .timeline-min-bubble {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--navy-dark);
      border: 2px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 800;
      color: var(--cyan);
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .timeline-event:hover .timeline-min-bubble {
      border-color: var(--cyan);
      box-shadow: 0 0 8px var(--cyan-glow);
    }
    .event-type-badge {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .event-type-badge.goal { color: var(--lime); }
    .event-type-badge.yellow { color: var(--gold); }
    .event-type-badge.red { color: var(--red); }
    .event-type-badge.sub { color: var(--cyan); }
    .event-player {
      font-size: 13px;
      font-weight: 700;
    }
    .event-sub-details {
      font-size: 11px;
      color: var(--muted);
    }

    /* ── FOOTER ── */
    footer {
      margin-top: 60px;
      background: rgba(10, 15, 36, 0.9);
      border-top: 1px solid var(--border);
      padding: 40px 20px;
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }
    .footer-logo {
      font-family: var(--font-display);
      font-size: 28px;
      letter-spacing: .05em;
    }
    .footer-logo span { color: var(--cyan); }
    .footer-links {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }
    .footer-links a {
      font-size: 13px;
      color: var(--muted);
      transition: var(--transition);
    }
    .footer-links a:hover { color: var(--text); }
    .footer-copy {
      font-size: 12px;
      color: var(--muted);
    }

    .desktop-only-section {
      display: block;
    }

    .rosters-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    /* ── RESPONSIVE STYLES ── */
    @media (max-width: 900px) {
      .main-layout {
        grid-template-columns: 1fr;
      }
      .sidebar {
        order: 2; /* Sidebar renders underneath main content */
      }
      .news-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      nav.desktop-nav, .search-btn { display: none !important; }
      .mobile-nav-toggle { display: block; }
      .container {
        padding: 0 12px;
      }
      .desktop-only-section {
        display: none !important;
      }
      .rosters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .match-card {
        padding: 12px 14px;
      }
      .match-main-row {
        grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
        gap: 6px;
      }
      .team {
        min-width: 0;
        gap: 8px;
      }
      .team.right-aligned {
        gap: 8px;
      }
      .team-badge-custom {
        width: 30px !important;
        height: 30px !important;
        font-size: 9px !important;
        border-width: 1.5px !important;
      }
      .team-name {
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
      }
      .match-hero {
        padding: 16px 12px;
        border-radius: 16px;
      }
      .hero-team {
        min-width: 0;
      }
      .hero-team-name {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
      }
      .hero-main {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        align-items: center;
      }
      .hero-team .team-badge-custom {
        width: 44px;
        height: 44px;
        font-size: 13px;
        border-width: 2px;
      }
      .hero-score-num {
        font-size: 32px;
        gap: 6px;
      }
      .hero-status {
        font-size: 10px;
        padding: 2px 6px;
        margin-top: 6px;
      }
      .timeline-container {
        padding: 16px 12px;
      }
      .timeline-event-content {
        padding: 8px 10px;
      }
      .event-player {
        font-size: 11px;
      }
      .event-sub-details {
        font-size: 10px;
      }
      table.standings-table th:nth-child(3),
      table.standings-table th:nth-child(4),
      table.standings-table th:nth-child(5),
      table.standings-table th:nth-child(6),
      table.standings-table td:nth-child(3),
      table.standings-table td:nth-child(4),
      table.standings-table td:nth-child(5),
      table.standings-table td:nth-child(6) {
        display: none; /* Hide MP, W, D, L on small mobile screen */
      }
      .pitch-container {
        height: 400px;
      }
      .pitch-player::after {
        font-size: 8px;
        top: 32px;
      }
    }

    @media (max-width: 480px) {
      .container {
        padding: 0 10px !important;
      }
      .header-inner { height: 60px; }
      .logo { font-size: 22px; }
      .match-card { padding: 12px 12px; }
      .match-main-row {
        grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
        gap: 4px;
      }
      .team {
        gap: 6px;
      }
      .team.right-aligned {
        gap: 6px;
      }
      .team-badge-custom {
        width: 28px !important;
        height: 28px !important;
        font-size: 9px !important;
        border-width: 1.5px !important;
      }
      .team-name { font-size: 12px; }
      .score-num-wrap { font-size: 24px; gap: 4px; }
      .enter-match-btn {
        padding: 4px 8px;
        font-size: 11px;
      }
    }

    /* ── WP THEME OVERRIDES ──
       These rules hide the main theme header, footer, page title, and stretch 
       the content area full-width to give Footem Live a premium, edge-to-edge look. */
    header:not(.footem-header),
    footer:not(.footem-footer),
    .site-header,
    #masthead,
    .site-footer,
    #colophon,
    .page-title,
    .entry-title,
    .post-title,
    .page-header,
    .entry-header,
    .post-header {
      display: none !important;
    }

    .entry-content,
    .post-content,
    .site-content,
    .content-area,
    #content,
    .main-content,
    .wp-site-blocks {
      max-width: 100% !important;
      width: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
    }
/* ── WP BLOG POST STYLING ── */
.entry-content-body p {
  margin-bottom: 20px;
}
.entry-content-body h2, .entry-content-body h3, .entry-content-body h4 {
  font-family: var(--font-body);
  color: var(--text);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}
.entry-content-body h2 { font-size: 24px; }
.entry-content-body h3 { font-size: 20px; }
.entry-content-body blockquote {
  border-left: 4px solid var(--cyan);
  padding: 10px 20px;
  margin: 20px 0;
  background: rgba(255,255,255,0.02);
  font-style: italic;
  color: var(--muted);
}
.entry-content-body ul, .entry-content-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
.entry-content-body li {
  margin-bottom: 8px;
}
