/* Кнопка "Мне повезет" */
.lucky-btn {
  padding: 6px 14px;
  font-size: 0.85em;
  background: #fffbe6;
  color: #f57c00;
  border: 1.5px solid #f57c00;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.08);
}
.lucky-btn:hover {
  background: #ffe0b2;
  /* color: #fff; */
  border-color: #c9721c;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #181c24 0%, #232a36 100%);
  min-height: 100vh;
  padding: 20px;
  color: #e0e6f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Скрываем контент до логина */
.container.not-logged-in .tabs,
.container.not-logged-in #allbets-content,
.container.not-logged-in #participants-content,
.container.not-logged-in #profile-content,
.container.not-logged-in #settings-content,
.container.not-logged-in #counting-content {
  display: none !important;
}

.not-logged-in header {
  flex-direction: column;
}

.not-logged-in.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90vh;
}

.not-logged-in .user-section {
  max-width: 400px;
  margin: 0 auto;
}

.not-logged-in header img {
  width: 350px;
  height: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: white;
  margin-bottom: 10px;
  animation: slideDown 0.6s ease;
}

header img {
  width: 100px;
  height: auto;
}

header h1 {
  font-size: 2em;
  /* margin-bottom: 10px; */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.user-section {
  background: rgba(30, 34, 44, 0.85);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto 10px;
}

.user-input {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.auth-btn {
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: 600;
  transition: background 0.3s ease, border 0.3s ease, color 0.3s ease,
    transform 0.3s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  cursor: pointer;
  background: transparent;
}

.container.not-logged-in #username {
  display: block;
}

.user-input #username {
  max-width: 170px;
  text-align: center;
  display: none;
}

.user-input #authBtn {
  background: rgba(58, 123, 213, 0.7);
  border: 1px solid #3a7bd5;
  color: #e0e6f0;
}

.user-input #authBtn:hover {
  background: rgba(58, 123, 213, 0.9);
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.4);
}

.profile-section .profile-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.profile-section .profile-header h2 {
  margin: 0;
}

.profile-auth-placeholder {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  width: 0;
  height: 0;
}

#profile-content {
  position: relative;
}

.auth-btn.logout-mode {
  background: transparent;
  color: #f44336;
  padding: 6px 10px;
  flex-direction: row;
  gap: 2px;
  align-items: center;
  min-width: 60px;
  justify-content: center;
  border: none;
  position: absolute;
  top: 5px;
  right: -10px;
  z-index: 2;
  transition: all 0.35s ease;
  box-shadow: none;
}

.auth-btn.logout-mode .logout-cross {
  font-size: 1em;
  line-height: 0.1;
  display: inline-flex;
  color: #f44336;
  transition: transform 0.35s ease;
}

.auth-btn.logout-mode .logout-text {
  font-size: 0.65em;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #a0a8b8;
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transform: translateY(4px) scale(0.65);
  transition: opacity 0.35s ease, transform 0.35s ease, max-width 0.35s ease;
  justify-content: center;
}

.auth-btn.logout-mode:hover {
  transform: scale(1.05);
  box-shadow: none;
  right: 5px;
}

.auth-btn.logout-mode:hover .logout-cross {
  transform: rotate(720deg);
}

.auth-btn.logout-mode:hover .logout-text {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-width: 40px;
}

button#adminBtn,
button#addMatchBtn,
.user-input #adminUsersBtn {
  border: 1px solid #3a7bd5;
  background: rgba(58, 123, 213, 0.7);
  color: #e0e6f0;
}

input[type="text"] {
  flex: 1;
  max-width: 100%;
  padding: 12px 15px;
  border: 2px solid #3a7bd5;
  border-radius: 5px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: rgba(50, 55, 70, 0.8);
  color: #e0e6f0;
}

input[type="text"]:focus {
  outline: none;
  border-color: #5a9fd4;
  background: rgba(50, 55, 70, 0.95);
  box-shadow: 0 0 10px rgba(90, 159, 212, 0.5);
}

button {
  /* padding: 12px 25px; */
  padding: 5px 15px;
  background: rgba(58, 123, 213, 0.8);
  color: #e0e6f0;
  border: 1px solid #3a7bd5;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

button:hover {
  background: rgba(58, 123, 213, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.5);
}

button:active {
  transform: translateY(0);
}

.close-profile-btn {
  position: sticky !important;
  top: 0;
  left: 100%;
  transition: transform 0.35s ease !important;
}
.close-profile-btn:hover {
  box-shadow: none !important;
  transform: rotate(720deg) scale(1.05) !important;
}

.content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  background: rgba(40, 44, 54, 0.85);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.6s ease;
}

.section.bet-section {
  padding: 0px 10px 10px 10px;
  max-height: 60vh;
  overflow: auto;
  scrollbar-width: none;
  position: relative;
}

#matchesSection {
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
}
.matches-header {
  flex-direction: column;
  gap: 5px;
}
.section h2 {
  color: #5a9fd4;
  margin-bottom: 10px;
  font-size: 1.3em;
  border-bottom: 2px solid #5a9fd4;
  padding-bottom: 10px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Sticky заголовки для мобильного скролла */
.sticky-header {
  position: sticky;
  background: rgba(40, 44, 54, 1);
  z-index: 2;
  top: 0;
  left: 0;
  padding-top: 10px;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: background-color 0.2s ease;
}

.sticky-header:active {
  cursor: grabbing;
  background: rgba(50, 55, 70, 1);
}

.my-bets-title {
  position: sticky;
  /* background: rgba(40, 44, 54, 0.85); */
  background: rgba(40, 44, 54, 1);
  z-index: 2;
  top: 0;
  left: 0;
  padding: 10px 0;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: grab;
  transition: background-color 0.2s ease;
}

.my-bets-title:active {
  cursor: grabbing;
  background: rgba(50, 55, 70, 1);
}
.my-bets-list {
  z-index: 1;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid #3a7bd5;
  color: #e0e6f0;
  position: relative;
}

.event-item:hover {
  transform: translateX(5px);
  background: rgba(58, 123, 213, 0.7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

.event-item.active {
  background: rgba(58, 123, 213, 0.85);
  color: #fff;
}

/* Стили для заблокированных турниров */
.event-item.locked {
  /* background: rgba(80, 40, 40, 0.5); */
  /* background: rgba(9, 6, 6, 0.5); */
  background: rgba(28, 28, 28, 0.5);
  border-left: 4px solid #f44336;
  opacity: 0.7;
  cursor: not-allowed;
}

.event-item.locked:hover {
  transform: translateX(0);
  /* background: rgba(80, 40, 40, 0.7); */
  background: rgba(77, 77, 77, 0.5);
  color: #e0e6f0;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.event-item.locked.active {
  /* background: rgba(80, 40, 40, 0.85); */
  background: rgba(28, 28, 28, 0.5);
  background: rgba(40, 40, 40, 0.5);
  color: #e0e6f0;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.matches-table th {
  background: rgba(58, 123, 213, 0.8);
  color: #e0e6f0;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.matches-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(100, 110, 130, 0.5);
  color: #e0e6f0;
}

.matches-table tr:hover {
  background: rgba(58, 123, 213, 0.3);
}

.match-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  border-left: 4px solid #3a7bd5;
  color: #e0e6f0;
  transition: all 0.2s ease;
}

.match-admin-panel {
  position: absolute;
  top: 5px;
  left: 5px;
  display: none;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.match-row.hovered .match-admin-panel {
  display: flex;
}

.match-result-toggle {
  border-radius: 5px;
  background: transparent !important;
  border: 1px solid rgba(58, 123, 213, 0.9);
  color: #e0e6f0;
  font-size: 0.8em;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 5px !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.match-result-toggle[aria-expanded="true"] {
  background: rgba(77, 184, 168, 0.95);
  border-color: rgba(77, 184, 168, 0.95);
  transform: rotate(90deg);
}

.match-result-controls {
  display: none;
  gap: 5px;
  flex-wrap: wrap;
}

.match-result-controls.visible {
  display: flex;
}

.match-admin-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  width: auto;
  z-index: 1;
  display: none;
}

.match-row.hovered .match-admin-actions {
  display: flex;
}

.match-admin-toggle {
  border-radius: 5px;
  background: transparent !important;
  border: 1px solid rgba(58, 123, 213, 0.9);
  color: #e0e6f0;
  font-size: 0.8em;
  font-weight: 700;
  cursor: pointer;
  /* transition: background 0.2s ease, transform 0.2s ease; */
  padding: 3px 5px !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.match-admin-toggle:hover {
  background: transparent;
}

.match-admin-toggle[aria-expanded="true"] {
  background: rgba(77, 184, 168, 0.95);
  border-color: rgba(77, 184, 168, 0.95);
  transform: rotate(-90deg);
}

.match-admin-controls {
  position: absolute;
  top: 0;
  right: 32px;
  display: none;
  gap: 5px;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.match-admin-controls.visible {
  display: flex;
}

.event-admin-actions {
  position: absolute;
  top: 5px;
  right: 10px;
  width: auto;
  z-index: 1;
  display: none;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.event-admin-controls {
  position: absolute;
  top: 0;
  right: 32px;
  display: none;
  gap: 5px;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.event-admin-controls.visible {
  display: flex;
}

.event-admin-toggle {
  border-radius: 5px;
  background: transparent !important;
  border: 1px solid rgba(58, 123, 213, 0.9);
  color: #e0e6f0;
  font-size: 0.8em;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 5px !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.event-admin-toggle:hover {
  background: transparent;
}

.event-admin-toggle[aria-expanded="true"] {
  background: rgba(77, 184, 168, 0.95);
  border-color: rgba(77, 184, 168, 0.95);
  transform: rotate(-90deg);
}

.event-item:hover .event-admin-actions {
  display: flex;
}

.match-row.has-user-bet {
  background: rgba(80, 60, 40, 0.7);
  border-left-color: #ffb81c;
  /* box-shadow: 0 0 12px rgba(255, 184, 28, 0.2); */
}

.match-teams {
  flex: 1;
}

.match-vs {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.team {
  flex: 1;
  padding: 8px;
  background: rgba(50, 55, 70, 0.7);
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  color: #e0e6f0;
}

.vs-text {
  font-weight: bold;
  color: #5a9fd4;
  font-size: 0.9em;
}

.bet-buttons {
  display: flex;
  gap: 8px;
}

.bet-buttons-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.bet-btn {
  padding: 8px 12px;
  font-size: 0.9em;
  background: rgba(58, 123, 213, 0.8);
  color: #e0e6f0;
  border: 1px solid #3a7bd5;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.bet-btn:hover {
  background: rgba(58, 123, 213, 0.95);
  color: #fff;
}

.bet-btn:disabled {
  background: rgba(100, 110, 130, 0.5);
  cursor: not-allowed;
  opacity: 0.6;
}

.bet-btn:disabled:hover {
  background: rgba(100, 110, 130, 0.5);
}

.bet-btn.team1 {
  border-left: 3px solid #4caf50;
}

.bet-btn.draw {
  border-left: 3px solid #ffb81c;
}

.bet-btn.team2 {
  border-left: 3px solid #ff9800;
}

/* Стиль для выбранной ставки */
.bet-btn.selected {
  background: rgba(90, 159, 212, 0.6) !important;
  color: #fff !important;
  opacity: 1 !important;
  /* cursor: default; */
  cursor: wait;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
  transform: scale(0.97);
}

/* .bet-btn.selected::after {
  content: " ✓";
} */

.my-bets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bet-item {
  padding: 12px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  border-left: 4px solid #3a7bd5;
  position: relative;
  padding-right: 40px;
  color: #e0e6f0;
}

.bet-item.pending {
  border-left-color: #ff9800;
}

.bet-item.won {
  background: rgba(60, 80, 50, 0.7);
  border-left-color: #4caf50;
  color: #a0d895;
}

.bet-item.lost {
  background: rgba(80, 40, 40, 0.7);
  border-left-color: #f44336;
  color: #d88080;
}

.bet-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #b0b8c8;
  font-size: 1.2em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bet-delete-btn:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.2);
}

.bet-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.bet-match {
  font-weight: 600;
  color: #e0e6f0;
}

.bet-prediction {
  padding: 3px 8px;
  background: rgba(58, 123, 213, 0.8);
  color: #e0e6f0;
  border-radius: 3px;
  font-size: 0.85em;
}

.bet-status {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 600;
}

.bet-status.pending {
  background: rgba(255, 152, 0, 0.3);
  color: #ffb74d;
}

.bet-status.won {
  background: rgba(76, 175, 80, 0.3);
  color: #a0d895;
}

.bet-status.lost {
  background: rgba(244, 67, 54, 0.3);
  color: #d88080;
}

.empty-message {
  text-align: center;
  color: #b0b8c8;
  padding: 30px;
  font-size: 1.1em;
}

/* Стили для вкладок */
.tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
  /* border-bottom: 2px solid #e9ecef; */
  width: 100%;
  /* background: rgba(255, 255, 255, 0.95); */
  padding: 0 25px;
  /* border-radius: 10px; */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */

  max-width: 800px;
}

#allbets-content,
#participants-content,
#profile-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#allbets-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#participants-content,
#profile-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  color: #5a9fd4;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #7ab0e0;
  background: rgba(90, 159, 212, 0.1);
  /* border-bottom-color: #0066cc; */
}

.tab-btn.active {
  color: #7ab0e0;
  /* border-bottom-color: #001f50; */
  /* box-shadow: 11px 11px 11px -4px rgba(0,0,0,0.75) inset; */
  box-shadow: 6px 6px 8px -6px rgba(90, 159, 212, 0.4) inset;
  /* border-bottom-color: #0066cc; */
  background: rgba(90, 159, 212, 0.15);
}

button.tab-btn:hover {
  transform: none;
  box-shadow: none;

  /* box-shadow: 6px 6px 8px -6px rgba(0, 102, 204, 0.4) inset; */
  /* box-shadow: 4px 6px 4px -8px rgba(0, 102, 204, 0.4) inset; */
  background-color: rgba(90, 159, 212, 0.1);
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#tournamentParticipantsList {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.participant-item {
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  border-left: 4px solid #3a7bd5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e0e6f0;
  gap: 15px;
  cursor: pointer;
}

.participant-item:hover {
  transform: translateX(5px);
  background: rgba(58, 123, 213, 0.7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

.participant-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  width: 40px;
  height: 40px;
  font-weight: 700;
  font-size: 1.1em;
  color: #b0b8c8;
}

.participant-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3a7bd5;
  flex-shrink: 0;
}

.participant-rank.participant-rank-events {
  width: 60px;
}

.participant-info {
  flex: 1;
}

.participant-name {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.participant-tournaments {
  font-size: 0.9em;
  color: #ffd700;
  margin-bottom: 5px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.participant-stats {
  font-size: 0.9em;
  opacity: 0.8;
}

.participant-bets-count {
  background: rgba(58, 123, 213, 0.8);
  color: #e0e6f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
  min-width: 50px;
  text-align: center;
}

.participant-points {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Победитель в заблокированном турнире */
.participant-item.winner {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.5) 0%,
    rgba(218, 165, 32, 0.5) 50%,
    rgba(255, 215, 0, 0.5) 100%
  );
  background-size: 200% 200%;
  border: 2px solid rgba(255, 215, 0, 0.8);
  animation: goldenShimmer 3s ease-in-out infinite;
}

.participant-item.winner:hover {
  animation: goldenShimmerHover 0.6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
    inset 0 0 20px rgba(255, 215, 0, 0.2);
}

@keyframes goldenShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes goldenShimmerHover {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Сетка событий (турниров) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.tournaments-section-divider {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.1em;
  font-weight: 700;
  color: #ffd700;
  /* padding: 20px 0 10px 0; */
  /* margin-top: 10px; */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-card {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(58, 123, 213, 0.6) 0%,
    rgba(44, 50, 63, 0.8) 100%
  );
  border: 1px solid rgba(58, 123, 213, 0.5);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #e0e6f0;
}

.event-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(
    135deg,
    rgba(58, 123, 213, 0.8) 0%,
    rgba(44, 50, 63, 1) 100%
  );
  box-shadow: 0 8px 20px rgba(58, 123, 213, 0.4);
  border-color: rgba(58, 123, 213, 0.8);
}

.event-card-title {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.event-card-count {
  font-size: 0.9em;
  opacity: 0.8;
  color: #b0b8c8;
}

.event-card-locked {
  font-size: 0.85em;
  color: #f44336;
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(244, 67, 54, 0.2);
  border-radius: 4px;
}

.event-card-winner {
  font-size: 0.9em;
  color: #ffd700;
  margin-top: 10px;
  padding: 8px;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 4px;
  border-left: 3px solid #ffd700;
  font-weight: 500;
}

.event-card.locked {
  background: linear-gradient(
    135deg,
    rgba(80, 40, 40, 0.5) 0%,
    rgba(40, 30, 30, 0.7) 100%
  );
  border: 1px solid rgba(244, 67, 54, 0.5);
  opacity: 0.7;
  cursor: not-allowed;
}

.event-card.locked:hover {
  transform: translateY(0);
  background: linear-gradient(
    135deg,
    rgba(80, 40, 40, 0.6) 0%,
    rgba(40, 30, 30, 0.8) 100%
  );
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.6);
}

.btn-back {
  background: rgba(58, 123, 213, 0.7);
  color: #e0e6f0;
  border: 1px solid rgba(58, 123, 213, 0.8);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.3s;
}

.btn-back:hover {
  background: rgba(58, 123, 213, 0.9);
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

/* Стили для профиля */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-header {
  text-align: center;
  padding: 10px;
  /* background: linear-gradient(135deg, #0066cc 0%, #001f50 100%); */
  /* background: rgba(58, 123, 213, 0.7); */
  /* color: white; */
  color: #e0e6f0;
  border-radius: 10px;
  margin-bottom: 10px;
  /* border: 2px solid #06c; */
  /* margin: 0 auto; */
}

.profile-avatar {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #000;
  margin: 0 auto;
  background: linear-gradient(135deg, #3a7bd5 0%, #1e4d78 100%);
}
.profile-avatar img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.profile-username {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-member-since {
  font-size: 0.9em;
  opacity: 0.9;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  margin-top: 15px;
  gap: 10px;
}

.stat-card {
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #3a7bd5;
  color: #e0e6f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card.won {
  border-left-color: #4caf50;
}

.stat-card.lost {
  border-left-color: #f44336;
}

.stat-card.pending {
  border-left-color: #ff9800;
}

.stat-label {
  font-size: 0.85em;
  color: #b0b8c8;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.8em;
  font-weight: 700;
  color: #5a9fd4;
}

.profile-section {
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  border-left: 4px solid #3a7bd5;
  text-align: center;
}

.profile-section-title {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #5a9fd4;
}

.profile-section-content {
  font-size: 0.95em;
  line-height: 1.6;
  color: #b0b8c8;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.award-card {
  background: linear-gradient(
      135deg,
      rgba(212, 175, 55, 0.6) 0%,
      rgba(212, 175, 55, 0.5) 100%
    ),
    url("../img/winner.jpg") center / cover no-repeat;
  border: 2px solid rgba(212, 175, 55, 0.7);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.award-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Ctext x=%2250%22 y=%2250%22 font-size=%2280%22 text-anchor=%22middle%22 dominant-baseline=%22middle%22 opacity=%220.03%22%3E🏆%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 150%;
  pointer-events: none;
  z-index: 0;
}

.award-card:hover {
  background: linear-gradient(
      135deg,
      rgba(212, 175, 55, 0.75) 0%,
      rgba(212, 175, 55, 0.65) 100%
    ),
    url("../img/winner.jpg") center / cover no-repeat;
  border-color: rgba(212, 175, 55, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.award-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  animation: bounce 0.6s ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.award-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  font-size: 0.95em;
  position: relative;
  z-index: 1;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.award-info {
  font-size: 0.9em;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.award-date {
  font-size: 0.8em;
  color: #ffe0b2;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading {
  text-align: center;
  padding: 20px;
  color: #3a7bd5;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3a7bd5;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

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

/* Стили для модального окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

/* Стили для модального окна терминала */
.terminal-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 999999 !important;
  animation: fadeIn 0.3s ease;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.terminal-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-content {
  background: rgba(40, 44, 54, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #3a7bd5;
  background: rgba(58, 123, 213, 0.8);
  color: #e0e6f0;
  border-radius: 10px 10px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
}

.modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: transparent;
  border-radius: none !important;
  box-shadow: none !important;
  transform: rotate(720deg) !important;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  color: #e0e6f0;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-user-item {
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 8px;
  border-left: 4px solid #3a7bd5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: #e0e6f0;
}

.admin-user-item:hover {
  background: rgba(58, 123, 213, 0.7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
  transform: translateX(5px);
}

.admin-user-info {
  flex: 1;
}

.admin-user-name {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.admin-user-stats {
  font-size: 0.85em;
  opacity: 0.8;
}

.admin-user-actions {
  display: flex;
  gap: 8px;
}

.admin-btn {
  padding: 6px 12px;
  font-size: 0.75em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.admin-btn-rename {
  background: #ff9800;
  color: white;
}

.admin-btn-rename:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

.admin-btn-delete {
  background: #f44336;
  color: white;
}

.admin-btn-delete:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* Стили для формы */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  color: #b0b8c8;
  font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #3a7bd5;
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(50, 55, 70, 0.7);
  color: #e0e6f0;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5a9fd4;
  background: rgba(50, 55, 70, 0.95);
  box-shadow: 0 0 10px rgba(90, 159, 212, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  justify-content: flex-end;
}

.form-btn-submit {
  padding: 8px 18px;
  background: rgba(76, 175, 80, 0.3);
  color: #7ed321;
  border: 1.5px solid #4caf50;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.form-btn-submit:hover {
  background: rgba(76, 175, 80, 0.5);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.form-btn-submit:active {
  transform: scale(0.98);
}

.form-btn-cancel {
  padding: 8px 18px;
  background: rgba(100, 110, 130, 0.3);
  color: #b0b8c8;
  border: 1.5px solid #3a7bd5;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.form-btn-cancel:hover {
  background: rgba(100, 110, 130, 0.5);
  border-color: #5a9fd4;
  box-shadow: 0 2px 8px rgba(90, 159, 212, 0.2);
}

.form-btn-cancel:active {
  transform: scale(0.98);
}

/* ===== НАСТРОЙКИ ===== */
.settings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  justify-content: space-around;
}

.setting-item,
.settings-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background: rgba(44, 50, 63, 0.7);
  border-radius: 10px;
  border-left: 3px solid #3a7bd5;
  flex: 1 1 calc(50% - 5px);
  min-width: 150px;
  max-width: 350px;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #e0e6f0;
  font-size: 1em;
}

.setting-link {
  color: #5a9fd4;
  text-decoration: none;
  font-size: 0.9em;
  /* margin-left: auto; */
}

.setting-link:hover {
  text-decoration: underline;
}

.setting-hint {
  color: #b0b8c8;
  font-size: 0.85em;
  margin: 0;
}

.setting-hint-small {
  color: #b0b8c8;
  font-size: 0.8em;
  margin: 5px 0 0 0;
}

.setting-hint-small a {
  color: #5a9fd4;
  text-decoration: none;
}

.setting-hint-small a:hover {
  text-decoration: underline;
}

.setting-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.setting-control input {
  padding: 10px 12px;
  border: 1px solid #3a7bd5;
  border-radius: 6px;
  font-size: 0.95em;
  flex: 1;
  transition: border-color 0.2s;
  background: rgba(50, 55, 70, 0.7);
  color: #e0e6f0;
  /* max-width: 150px; */
}

.setting-control input:focus {
  outline: none;
  border-color: #5a9fd4;
  background: rgba(50, 55, 70, 0.95);
}

.setting-control .btn-save {
  background: rgba(76, 175, 80, 0.7);
  color: #7ed321;
  border: 1px solid #4caf50;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background: rgba(76, 175, 80, 0.9);
}

.setting-control .btn-delete {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid #f44336;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete:hover {
  background: rgba(244, 67, 54, 0.6);
  color: #fff;
}

/* Кнопки фильтрации по турам */
.round-filter-btn {
  /* padding: 6px 12px; */
  padding: 4px 7px;
  font-size: 0.8em;
  background: rgba(50, 55, 70, 0.7);
  border: 1px solid #3a7bd5;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #b0b8c8;
  white-space: nowrap;
  flex-shrink: 0;
}

.round-filter-btn:hover {
  background: rgba(50, 55, 70, 0.95);
  border-color: #5a9fd4;
}

/* Кнопка завершённого тура (все матчи завершены) */
.round-filter-btn.finished {
  background: rgba(255, 152, 0, 0.6);
  border-color: #f57c00;
  color: #ffe0b2;
}

.round-filter-btn.finished:hover {
  background: rgba(255, 152, 0, 0.8);
  border-color: #c9721c;
}

/* Активная кнопка тура (приоритет ВЫШЕ finished) */
.round-filter-btn.active {
  background: rgba(58, 123, 213, 0.8);
  border-color: #3a7bd5;
  color: #e0e6f0;
}

.round-filter-btn.active:hover {
  background: rgba(58, 123, 213, 0.95);
}

/* Кнопка редактирования порядка туров */
.edit-rounds-btn {
  padding: 4px 8px;
  font-size: 0.75em;
  background: rgba(50, 55, 70, 0.7);
  border: 1px solid #3a7bd5;
  border-radius: 10px;
  cursor: pointer;
  color: #b0b8c8;
  transition: all 0.2s ease;
  margin-left: 5px;
}

.edit-rounds-btn:hover {
  background: rgba(50, 55, 70, 0.95);
  border-color: #5a9fd4;
}
#roundsFilterContainer {
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#roundsFilterContainer:active {
  cursor: grabbing;
}

/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari, Edge) */
#roundsFilterContainer > div::-webkit-scrollbar {
  display: none;
}

#roundsFilterScroll::-webkit-scrollbar {
  display: none;
}

/* Контейнер с кнопками туров для горизонтального скролла */
#roundsFilterScroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  height: 100%;
  /* Ключевое свойство - содержимое займет столько ширины сколько нужно */
  width: max-content;
}

/* Модальное окно сортировки туров */
.rounds-order-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.rounds-order-modal.active {
  display: flex;
}

.rounds-order-content {
  background: rgba(40, 44, 54, 0.95);
  border-radius: 12px;
  padding: 20px;
  max-width: 350px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.rounds-order-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: #e0e6f0;
}

.rounds-order-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.rounds-order-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(50, 55, 70, 0.7);
  border: 1px solid #3a7bd5;
  border-radius: 8px;
  cursor: grab;
  transition: all 0.2s ease;
  color: #e0e6f0;
}

.rounds-order-item:active {
  cursor: grabbing;
}

.rounds-order-item.dragging {
  opacity: 0.5;
  background: rgba(30, 34, 44, 0.9);
}

.rounds-order-item.drag-over {
  border-color: #5a9fd4;
  background: rgba(58, 123, 213, 0.2);
}

.rounds-order-item .drag-handle {
  margin-right: 10px;
  color: #b0b8c8;
  font-size: 1.1em;
}

.rounds-order-item .round-name {
  flex: 1;
  font-size: 0.9em;
  color: #e0e6f0;
}

.rounds-order-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.rounds-order-buttons button {
  padding: 8px 16px;
  font-size: 0.85em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rounds-order-buttons .cancel-btn {
  background: rgba(100, 110, 130, 0.3);
  border: 1px solid #3a7bd5;
  color: #b0b8c8;
}

.rounds-order-buttons .cancel-btn:hover {
  background: rgba(100, 110, 130, 0.5);
  color: #e0e6f0;
}

.rounds-order-buttons .save-btn {
  background: rgba(58, 123, 213, 0.8);
  border: 1px solid #3a7bd5;
  color: #e0e6f0;
}

.rounds-order-buttons .save-btn:hover {
  background: rgba(58, 123, 213, 0.95);
  color: #fff;
}

/* Стили для кнопок результатов финала */
.result-btn {
  background: transparent;
  border: 1px solid #4db8a8;
  color: #4db8a8;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
}

.result-btn:hover {
  background: rgba(77, 184, 168, 0.2);
  border-color: #4db8a8;
}

.finalMatchResultWindow {
  padding: 20px;
}
.finalMatchResultWindow h3 {
  margin: 0 auto 10px;
}
.finalMatchResultWindow h4 {
  text-align: center;
}
.finalMatchResultWindow button {
  padding: 3px 10px !important;
}

#finalMatchResultModal {
  display: none;
}

/* Toggle Switch для уведомлений */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0088cc;
}

input:focus + .slider {
  box-shadow: 0 0 1px #0088cc;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ===== КАРТОЧКА ПОБЕДИТЕЛЯ ТУРНИРА ===== */

.tournament-winner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 600px; */
  padding: 20px;
}

.tournament-winner-card {
  width: 100%;
  max-width: 500px;
  max-height: 40vh;
  background: linear-gradient(
    135deg,
    rgba(58, 123, 213, 0.15) 0%,
    rgba(77, 184, 168, 0.1) 100%
  );
  border: 2px solid #5a9fd4;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.winner-header {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  word-break: break-word;
}

.winner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
}

.winner-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffd700;
  /* box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); */
  flex-shrink: 0;
}

.winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-info {
  width: 100%;
}

.winner-name {
  font-size: 1.3em;
  font-weight: bold;
  color: #e0e6f0;
  margin-bottom: 10px;
}

.winner-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(44, 50, 63, 0.5);
  border-radius: 10px;
  padding: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
}

.stat-label {
  color: #a0a8b8;
  font-size: 0.9em;
  /* text-align: left; */
  flex: 1;
}

.stat-value {
  color: #4db8a8;
  font-size: 1em;
  font-weight: bold;
  /* text-align: right; */
  flex: 0 0 auto;
}

.award-description {
  color: #ffd700;
  font-size: 1em;
  max-width: 150px;
  /* text-align: right; */
  word-break: break-word;
}

.no-winner-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 1.8em;
  color: #ff9800;
  font-weight: bold;
  text-align: center;
  padding: 40px;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 10px;
  border: 2px dashed #ff9800;
}

/* Контейнер с матчами - расположение в одну строку с space-between */
.matches-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
