:root {
  --bg-main: #0B0E14;
  --bg-sidebar: #10141D;
  --bg-card: rgba(22, 28, 41, 0.7);
  --bg-card-hover: rgba(29, 37, 54, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --color-primary: #38bdf8;
  --color-primary-rgb: 56, 189, 248;
  --color-accent: #06b6d4;
  --color-text-main: #F3F4F6;
  --color-text-muted: #9CA3AF;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--color-text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-glass);
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.logo-area h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.accent-text {
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--color-danger);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-danger);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-danger);
}

.animate-pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Layout */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  padding: 1.5rem;
  overflow-y: auto;
}

.app-sidebar h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.app-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-sidebar li {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.app-sidebar li:hover {
  background: var(--bg-card-hover);
  color: var(--color-primary);
  border-color: var(--border-glass);
  padding-left: 1.25rem;
}

.app-sidebar li.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(6, 182, 212, 0.03));
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--color-primary);
  font-weight: 600;
}

/* Skeletons */
.skeleton-item {
  height: 40px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

/* Main Content Area */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.03) 0%, transparent 50%), var(--bg-main);
}

/* Tabs */
.content-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

.tab-btn {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--color-text-main);
  background: rgba(255,255,255,0.03);
}

.tab-btn.active {
  color: var(--color-primary);
  background: rgba(56, 189, 248, 0.08);
}

/* Panels */
.tab-panel {
  display: none;
  flex: 1;
}

.tab-panel.active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Season selector */
.season-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.season-selector-wrapper select {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Standings Table */
.table-container {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.standings-table th {
  padding: 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.01);
}

.standings-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

.standings-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pos-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.pos-g1 { background: rgba(56, 189, 248, 0.2); color: var(--color-primary); }
.pos-g2 { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.pos-z4 { background: rgba(239, 68, 68, 0.2); color: var(--color-danger); }
.pos-normal { background: rgba(255, 255, 255, 0.05); color: var(--color-text-muted); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Alert notice */
.helper-notice {
  background: rgba(56, 189, 248, 0.06);
  border: 1px dashed rgba(56, 189, 248, 0.2);
  color: var(--color-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Fixtures tab styling */
.timeframe-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeframe-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.timeframe-btn:hover {
  color: var(--color-text-main);
  background: rgba(255,255,255,0.08);
}

.timeframe-btn.active {
  background: var(--color-primary);
  color: var(--bg-main);
  border-color: var(--color-primary);
}

.theme-date-input {
  background: var(--bg-card);
  color: var(--color-text-main);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-date-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.fixtures-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.fixture-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.2);
}

.fixture-comp {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.fixture-teams {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fixture-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixture-team-name {
  font-weight: 600;
  font-size: 1rem;
}

.fixture-score {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.fixture-meta {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.status-live {
  color: var(--color-danger);
  font-weight: 700;
}

/* Search tab styling */
.search-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
}

.search-box h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.input-group input {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--color-text-main);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.input-group input:focus {
  border-color: var(--color-primary);
}

.input-group button {
  background: var(--color-primary);
  color: var(--bg-main);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.input-group button:hover {
  background: #7dd3fc;
}

/* Result cards */
.result-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.result-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.result-details h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.result-details p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.stat-val {
  font-weight: 700;
  color: var(--color-primary);
}

/* Language Selector */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector-wrapper {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
}

.lang-select {
  background: none;
  border: none;
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.lang-select option {
  background-color: var(--bg-sidebar);
  color: var(--color-text-main);
}

.menu-toggle-btn {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-header {
  margin-bottom: 1.5rem;
}

/* Responsividade para Celulares e Tablets */
@media (max-width: 1024px) {
  .search-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .sidebar-close-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
  }

  .sidebar-close-btn:hover {
    color: var(--color-primary);
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
  }

  .sidebar-header h3 {
    margin-bottom: 0;
  }

  .app-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .logo-area {
    justify-content: flex-start;
  }

  .logo-area h1 {
    font-size: 1.15rem;
  }

  .main-layout {
    flex-direction: column;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }

  .app-sidebar.active {
    left: 0;
  }

  .app-sidebar ul {
    flex-direction: column;
    overflow-x: visible;
    gap: 0.5rem;
  }

  .app-sidebar li {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    white-space: normal;
    flex-shrink: 1;
    border-radius: 8px;
  }

  .app-sidebar li:hover {
    padding-left: 1.25rem;
  }

  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .app-content {
    padding: 1rem;
    width: 100%;
    overflow-x: hidden;
  }

  .content-tabs {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-glass);
    scrollbar-width: none;
    flex-shrink: 0;
  }

  .content-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .panel-header h2 {
    font-size: 1.15rem;
  }

  .season-selector-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .table-container {
    overflow-x: auto;
    width: 100%;
  }

  .standings-table th, 
  .standings-table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
  }

  .team-cell {
    gap: 0.4rem;
  }

  .team-logo {
    width: 18px;
    height: 18px;
  }

  .fixtures-list {
    grid-template-columns: 1fr;
  }

  .result-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .result-logo {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0.75rem;
  }

  .app-header h1 {
    font-size: 1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .live-badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  .lang-selector-wrapper {
    padding: 0.2rem 0.4rem;
  }

  .lang-select {
    font-size: 0.7rem;
  }

  #date-range-container {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.4rem;
    justify-content: space-between;
  }

  .theme-date-input {
    flex-grow: 1;
    text-align: center;
  }
}

/* Bracket / Playoff styles */
.bracket-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem 0;
  min-height: 500px;
}

.bracket-rounds-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-glass);
}

.bracket-rounds-nav::-webkit-scrollbar {
  display: none;
}

.round-nav-btn {
  background: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.round-nav-btn:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.02);
}

.round-nav-btn.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1.5rem;
  min-width: 280px;
  flex: 1;
  flex-shrink: 0;
}

.bracket-round-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 2px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 1px;
}

.bracket-match {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bracket-match:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

/* Responsividade de Playoffs (Chaveamento) - Aplicado universalmente para evitar rolagem horizontal */
.bracket-round {
  display: none !important;
}
.bracket-round.active {
  display: flex !important;
  width: 100%;
}
.bracket-columns-container {
  justify-content: center;
}

.bracket-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bracket-team-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bracket-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.bracket-team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.bracket-team-score {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.bracket-team-row.winner .bracket-team-name {
  color: var(--color-success);
  font-weight: 800;
}

.bracket-team-row.winner .bracket-team-score {
  color: var(--color-success);
}

.bracket-match-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  border-top: 1px dashed var(--border-glass);
  padding-top: 0.4rem;
  margin-top: 0.2rem;
}

.fixture-scorers,
.match-scorers-list {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.15rem;
  display: block;
  word-wrap: break-word;
}

/* Premium Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  scrollbar-width: thin;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--color-primary);
}

.modal-team-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.modal-team-details h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.modal-team-details p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.2rem 0;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-match-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-match-teams {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.modal-match-team-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-match-meta {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Standings row clickable indicator */
.standings-table tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.standings-table tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* News Section Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.news-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-card-img {
  transform: scale(1.03);
}

.news-card-placeholder-icon {
  font-size: 3rem;
  opacity: 0.2;
}

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.news-card-source {
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.2em; /* Ensure fixed height for alignment */
  margin: 0;
}

.news-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-main);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.news-card-btn:hover {
  background: var(--color-primary);
  color: var(--bg-main);
  border-color: var(--color-primary);
}

/* =============================================
   Welcome Screen & Sponsors
   ============================================= */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 640px;
}

/* Arrow + message */
.welcome-arrow-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.welcome-arrow-pulse {
  animation: arrowBounce 1.2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-10px); }
}

.welcome-arrow-svg {
  width: 80px;
  height: 60px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7));
}

.welcome-msg {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Sponsors */
.sponsors-section {
  width: 100%;
  text-align: center;
}

.sponsors-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sponsors-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  padding: 1.8rem 2.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 240px;
  max-width: 320px;
  backdrop-filter: blur(8px);
}

.sponsor-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
}

.sponsor-card img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* =============================================
   Responsive Adjustments for Welcome / Sponsors
   ============================================= */
@media (max-width: 768px) {
  .welcome-screen {
    min-height: 50vh;
    padding: 1.5rem 1rem;
  }

  .welcome-inner {
    gap: 2rem;
  }

  .welcome-arrow-wrapper {
    flex-direction: row;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .welcome-msg {
    font-size: 1.15rem;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .welcome-arrow-svg {
    width: 50px;
    height: 38px;
  }

  .welcome-arrow-pulse {
    animation: arrowBounce 1.2s ease-in-out infinite;
  }

  .sponsor-card {
    min-width: 160px;
    max-width: 220px;
    padding: 1.2rem 1.8rem;
    border-radius: 1rem;
  }

  .sponsor-card img {
    max-height: 70px;
  }
}

