:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #1a1d29;
  --card-bg: #ffffff;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --border-color: #e2e8f0;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  border-radius: 10px !important;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--primary-gradient) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

#ex-search {
  position: relative;
  margin-left: 1rem;
}

#ex-input {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 25px !important;
  padding: 0.5rem 1rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  width: 250px;
  outline: none !important;
}

#ex-input:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
  transform: scale(1.02);
}

#ex-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 35px;
  height: 35px;
  color: white !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#ex-submit:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-light);
}

main {
  padding: 2rem 0 !important;
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif !important;
  color: white !important;
}

main h2 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
  color: white !important;
  margin-bottom: 1rem !important;
  display: flex;
  align-items: center;
  gap: 1rem;
}

main hr {
  height: 4px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%) !important;
  border: none !important;
  border-radius: 2px !important;
  margin-bottom: 2rem !important;
  width: 100px !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.live {
  width: 12px !important;
  height: 12px !important;
  background: #ef4444 !important;
  border-radius: 50% !important;
  position: relative;
  animation: pulse 2s infinite;
  margin-left: 5px !important;
  padding: 0 !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

.live::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ef4444;
  border-radius: 50%;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.matchCard {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: var(--shadow-medium) !important;
  margin-bottom: 2rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif !important;
}

.matchCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.matchCard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large) !important;
}

.matchCard:hover::before {
  opacity: 1;
}

.matchCard > div:first-child {
  padding: 1.5rem !important;
  background: rgba(102, 126, 234, 0.05) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.matchCard p {
  margin-bottom: 0 !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--text-primary) !important;
}

.matchCard > div:first-child p:first-child {
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
}

.matchCard > div:first-child p:last-child {
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 20px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(34, 197, 94, 0.1) !important;
  color: #16a34a !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
}

.matchCard > div:first-child p:last-child.visible {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #16a34a !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
}

.matchCard .row {
  padding: 2rem 1.5rem !important;
}

.matchCard .col-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.matchCard img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.matchCard:hover img {
  transform: scale(1.1);
}

.homeTeam, .awayTeam {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--text-primary) !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.matchCard .col-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.matchCard .h2 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 2.5rem !important;
  color: var(--text-primary) !important;
  text-align: center !important;
  margin: 0 !important;
}

.matchCard .h2:contains("VS") {
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  color: var(--text-secondary) !important;
  opacity: 0.7;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.empty-state p {
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.7);
}


.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: white;
  font-size: 1.2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
  background: rgba(26, 29, 41, 0.95) !important;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem !important;
}

footer h5 {
  -webkit-background-clip: text;
  background-clip: text;
}

footer a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  color: white !important;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

footer a:hover {
  background: var(--primary-gradient) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  color: white !important;
}

@media (max-width: 768px) {
  main h2 {
    font-size: 1.5rem !important;
  }
  
  .matchCard img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .matchCard .h2 {
    font-size: 2rem !important;
  }
  
  .homeTeam, .awayTeam {
    font-size: 0.9rem !important;
  }
  
  #ex-input {
    width: 200px !important;
  }
  
  .matchCard {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .matchCard .row {
    padding: 1.5rem 1rem !important;
  }
  
  .matchCard img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .matchCard .h2 {
    font-size: 1.2rem !important;
  }
  
  .homeTeam, .awayTeam {
    font-size: 0.8rem !important;
  }

  hr {
    margin-left: 15%;
  }
}

.matchCard {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.matchCard:nth-child(1) { animation-delay: 0.1s; }
.matchCard:nth-child(2) { animation-delay: 0.2s; }
.matchCard:nth-child(3) { animation-delay: 0.3s; }
.matchCard:nth-child(4) { animation-delay: 0.4s; }
.matchCard:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invisible {
  visibility: hidden !important;
}

.visible {
  visibility: visible !important;
}

.navbar-toggler {
    background: var(--primary-gradient);
}