.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);
}

.countTournaments button {
  padding: 6px 12px;
  background: rgba(100, 100, 100, 0.7);
  color: #e0e6f0;
  border: 1px solid #666;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.countTournaments button:hover {
  background: rgba(120, 120, 120, 0.8);
  border-color: #888;
}

.countTournaments button.active {
  background: rgba(76, 175, 80, 0.95) !important;
  color: #ffffff !important;
  border: 3px solid #4caf50 !important;
  font-weight: bold !important;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05);
}

/* Темы для активной кнопки турнира */
body.theme-hacker-green .countTournaments button {
  background: rgba(0, 50, 0, 0.7);
  color: #00ff00;
  border: 1px solid #00aa00;
}

body.theme-hacker-green .countTournaments button:hover {
  background: rgba(0, 70, 0, 0.8);
  border-color: #00cc00;
}

body.theme-hacker-green .countTournaments button.active {
  background: #00ff00 !important;
  color: #000000 !important;
  border: 3px solid #00ff00 !important;
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.8), inset 0 0 15px rgba(0, 255, 0, 0.3) !important;
  font-weight: bold !important;
  transform: scale(1.05);
}

body.theme-solarized .countTournaments button {
  background: rgba(7, 54, 66, 0.7);
  color: #93a1a1;
  border: 1px solid #586e75;
}

body.theme-solarized .countTournaments button:hover {
  background: rgba(7, 54, 66, 0.9);
  border-color: #657b83;
}

body.theme-solarized .countTournaments button.active {
  background: linear-gradient(135deg, #268bd2 0%, #2aa198 100%) !important;
  color: #fdf6e3 !important;
  border: 3px solid #268bd2 !important;
  box-shadow: 0 0 25px rgba(38, 139, 210, 0.7), inset 0 0 15px rgba(42, 161, 152, 0.3) !important;
  font-weight: bold !important;
  transform: scale(1.05);
}

body.theme-matrix .countTournaments button {
  background: rgba(0, 26, 0, 0.7);
  color: #00ff41;
  border: 1px solid #00aa00;
}

body.theme-matrix .countTournaments button:hover {
  background: rgba(0, 34, 0, 0.8);
  border-color: #00cc00;
}

body.theme-matrix .countTournaments button.active {
  background: linear-gradient(135deg, #00dd33 0%, #00ff41 100%) !important;
  color: #000000 !important;
  border: 3px solid #00ff41 !important;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.9), inset 0 0 20px rgba(0, 255, 65, 0.4) !important;
  font-weight: bold !important;
  transform: scale(1.05);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

body.theme-cyberpunk .countTournaments button {
  background: rgba(22, 33, 62, 0.7);
  color: #00ffff;
  border: 1px solid #ff00ff;
}

body.theme-cyberpunk .countTournaments button:hover {
  background: rgba(22, 33, 62, 0.9);
  border-color: #ff00ff;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

body.theme-cyberpunk .countTournaments button.active {
  background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%) !important;
  color: #ffffff !important;
  border: 3px solid #ff00ff !important;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.9), 0 0 15px rgba(0, 255, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
  font-weight: bold !important;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}


/* Кнопка закрытия в goal-notification */
.goal-notification-header button:hover {
  color: rgba(255, 255, 255, 1) !important;
  transform: scale(1.2);
}

/* Кнопки фильтра новостей */
.news-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #b0b8c8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.news-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.news-filter-btn.active {
  background: rgba(58, 123, 213, 0.7);
  color: #e0e6f0;
  border-color: #3a7bd5;
}

/* Карточка новости */
.news-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
  position: relative;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Кнопки реакций на новости */
.news-reaction-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.news-reaction-btn.active {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4caf50;
}

.news-reaction-btn.dislike.active {
  background: rgba(244, 67, 54, 0.3);
  border-color: #f44336;
}

/* Tooltip для показа пользователей, поставивших реакцию */
.reaction-tooltip {
  position: fixed;
  background: rgba(30, 30, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: #e0e0e0;
  font-size: 0.9em;
  line-height: 1.6;
  z-index: 10000;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 250px;
  word-wrap: break-word;
  animation: tooltipFadeIn 0.2s ease;
}

.tooltip-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tooltip-user:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: translateX(2px);
}

.tooltip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tooltip-user:hover .tooltip-avatar {
  transform: scale(1.1);
  border-color: #4caf50;
}

.tooltip-username {
  color: #e0e0e0;
  font-size: 0.9em;
  transition: color 0.2s ease;
}

.tooltip-user:hover .tooltip-username {
  color: #4caf50;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-100%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(-100%);
  }
}

/* Кнопка удаления новости */
.news-delete-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(244, 67, 54, 0.7);
  color: #fff;
  border: 1px solid #f44336;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.news-delete-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(244, 67, 54, 0.9);
}

/* Кнопки фильтра RSS новостей */
.rss-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #b0b8c8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rss-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.rss-filter-btn.active {
  background: rgba(90, 159, 212, 0.7);
  color: #e0e6f0;
  border-color: #3a7bd5;
}

/* Карточка RSS новости */
.rss-news-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.rss-news-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rss-news-item a {
  color: #5a9fd4;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
}

.rss-news-item a:hover {
  color: #7ab8e8;
  text-decoration: underline;
}

.rss-news-source {
  display: inline-block;
  background: rgba(90, 159, 212, 0.3);
  color: #5a9fd4;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  margin-left: 8px;
}

.rss-news-date {
  color: #7a8394;
  font-size: 0.85em;
  margin-top: 8px;
}

.rss-news-description {
  color: #b0b8c8;
  font-size: 0.9em;
  line-height: 1.5;
  margin-top: 8px;
}


/* ============================================
   АККОРДЕОН АДМИН-ПАНЕЛИ
   ============================================ */

