/* Layout Container */
.wrapper,
.nav-wrapper,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  height: 48px;
  width: auto;
}


body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  margin: 0;
  overflow-x: hidden;
}

/* Header */
header {
  background-color: #001e26;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
}

.logo img {
  height: 26px;
}

.topnav {
  display: flex;
  gap: 20px;
}

.topnav a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  position: relative;
}

.topnav a:hover,
.topnav a.active {
  background: #002f3d;
  color: #fff;
}

.topnav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ff0050;
  border-radius: 2px;
}

.topnav a:visited {
  color: #ccc;
}

.topnav img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.sk-icons {
  display: flex;
  gap: 8px;
}

.sk-icons button {
  background: #002f3d;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.sk-icons img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Layout */
.container {
  display: flex;
  flex-wrap: wrap;
}

.sidebar {
  width: 250px;
  margin-right: 20px;
}

.content {
  flex: 1;
  width: 100%;
}

@media (min-width: 769px) {
  .content {
    width: calc(100% - 270px);
  }
}

/* Sidebar & Tools */
.filter-list {
  list-style: none;
  padding: 0;
}

.filter-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
}

.filter-list li:hover {
  background-color: #333;
}

.filter-list img {
  width: 20px;
  height: 14px;
  object-fit: contain;
}

.league-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

#leagueSearch,
#countryFilter {
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

.favorite-league {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 14px;
  color: #aaa;
  cursor: pointer;
}

.favorite-league.active {
  color: gold;
}

.favorite-league:hover {
  color: orange;
}

/* Match */
.match {
  background: #1e1e1e;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.team-name {
  font-size: 14px;
}

.score {
  font-size: 16px;
  font-weight: bold;
}

.status {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.score-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.favorite-star {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
}

.favorite-star.active {
  color: gold;
}

.favorite-star:hover {
  color: orange;
}

.watch-live {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e50914;
  color: #fff;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { background-color: #e50914; }
  50% { background-color: #ff4b4b; }
  100% { background-color: #e50914; }
}

/* League + Filter */
.league-title {
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 10px;
  text-transform: uppercase;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-title .league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.date-filter {
  text-align: center;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.date-filter input {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 14px;
}

.nav-arrow {
  background: #444;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.nav-arrow:hover {
  background: #666;
}

.today-label {
  background: #00b300;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Match Filter Bar */
.match-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.match-status-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.match-status-tabs .tab {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background-color: #eee;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  flex: 0 0 auto;
  white-space: nowrap;
}

.match-status-tabs .tab.active {
  background-color: #ff0050;
  color: white;
}

@media (max-width: 768px) {
  .match-status-tabs {
    justify-content: space-between;
  }

  .match-status-tabs .tab {
    flex: 1 0 48%;
    text-align: center;
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .match-status-tabs .tab {
    flex: 1 0 45%;
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* Misc */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8em;
  color: #aaa;
}

.banner {
  margin-bottom: 20px;
  text-align: center;
}

.banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

#loadingMessage {
  text-align: center;
  margin: 20px 0;
  display: none;
}

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #fff;
}

.dark-mode .match {
  background-color: #1e1e1e;
  box-shadow: none;
}

.dark-mode .filter-list li:hover {
  background-color: #222;
}

.dark-mode .date-filter input {
  background: #222;
  color: #fff;
  border: 1px solid #555;
}

.dark-mode header {
  background-color: #1a1a1a;
}

.dark-mode footer {
  color: #777;
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    display: none;
  }

  .content {
    width: 100%;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topnav {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .topnav a {
    flex: 1;
    justify-content: center;
  }

  .logo {
    font-size: 18px;
  }

  .team-name,
  .score {
    font-size: 14px;
  }

  .toggle-theme {
    align-self: flex-end;
    padding: 4px 8px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .logo {
    font-size: 18px;
  }

  .sk-icons {
    display: flex;
    gap: 8px;
  }
}
