body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #064f2e;
  background-size: 400px;
  color: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  padding: 1rem;
  max-width: 480px;
  margin: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.menu-icon {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: background-color 0.3s ease;
}

.menu-icon:hover {
  background-color: #ffd700;
}

.section {
  margin-top: 1.5rem;
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin: 0.3rem 0;
  gap: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: #ffd700;
  flex: 1;
}

.subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.6rem;
}

.match-card {
  background: #054729;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: scale(1.01);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.live::before {
  content: '●';
  animation: pulse 1.5s infinite;
  margin-right: 5px;
  color: #ffd700;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.players {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.player-names {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.player-scores {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
  min-width: 80px;
}

.player-scores div {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.real-table {
  background: #0D3823;
  border-radius: 12px;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.real-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: center;
  font-size: 1rem;
  color: white;
  background-color: #044123;
  border-radius: 12px;
}

.real-table tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.real-table tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

.real-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.real-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.real-table th,
.real-table td {
  padding: 0.5rem 0.25rem;
  border: 1.2px solid #054729;
}

.real-table tr:last-child td {
  border-bottom: none;
}

.bell {
  text-align: right;
  font-size: 1.5rem;
  margin-top: 0.8rem;
  color: white;
  opacity: 0.7;
}

@media (max-width: 400px) {
  .match-card {
    padding: 0.7rem;
  }
}

.logo {
  text-decoration: none;
  color: #FFFFFF;
}

.logo-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-subtext {
  font-size: 0.90rem;
  opacity: 0.8;
  margin-top: 4px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background-color: rgba(9, 62, 39, 0.96);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar a {
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
  vertical-align: middle;
}

.sidebar a.active,
.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar.show {
  transform: translateX(0);
}

.menu-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.sidebar a img {
  display: inline-block;
  width: 18.3px;
  height: 17px;
}

/* ДОДАНО З ДРУГОГО ФАЙЛУ */

.menu-toggle {
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 1rem 0;
}

.date-tile {
  background: #054729;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.date-select {
  padding-left: 8px;
  background: #054729;
  border: none;
  color: white;
  font-size: 0.95rem;
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.date-select:focus {
  outline: none;
}

.custom-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #ffd700;
  font-size: 0.75rem;
}

.stats-tile {
  background: #ffd700;
  color: #000;
  border-radius: 10px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.stats-tile:hover {
  background: #ffea00;
  transform: scale(1.02);
}

.winner-dot,
.winner-dot-placeholder {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: middle;
}

.winner-dot {
  background-color: #ffd700;
  border-radius: 50%;
}

.score-box {
  color: #fff;
  font-weight: bold;
  font-size: 0.96rem;
}

label {
  display: block;
  padding: 10px 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="submit"] {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 8px;
  border: none;
  background-color: rgba(255, 255, 255, 0.85);
  color: #054729;
  font-weight: bold;
}

input[type="submit"] {
  background-color: #FFD700;
  color: #000;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #ffea00;
}
