/* /css/components/tournament.css */
.tm-championship {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
}

.tm-header {
  text-align: center;
  margin-bottom: 50px;
}

.tm-header h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.tm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.tm-stat-card {
  background: var(--bg4);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.tm-stat-value {
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 5px;
}

.tm-stat-label {
  color: var(--txt2);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.tm-leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.tm-leader-card {
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: var(--t);
}

.tm-leader-card.first {
  border-color: var(--gold);
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--bg3), #2a2418);
}

.tm-leader-card.first::before {
  content: "👑";
  position: absolute;
  text-align: center;
  top: -30px;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translateX(-50%);
  font-size: 2rem;
  background: var(--bg2);
  padding: 5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.tm-leader-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0a0e17;
}

.tm-leader-name {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 15px;
}

.tm-leader-stats {
  text-align: center;
  margin-bottom: 15px;
}

.tm-leader-weight {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}

.tm-leader-category {
  font-size: 0.9rem;
  color: var(--txt2);
}

.tm-leader-fish-list {
  list-style: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--brd);
}

.tm-leader-fish-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--txt2);
  margin-bottom: 5px;
}

.tm-leader-fish-list li span {
  color: var(--gold);
}

/* Вкладки */
.tm-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--brd);
  padding-bottom: 10px;
}

.tm-tab {
  padding: 12px 24px;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 30px;
  color: var(--txt2);
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
}

.tm-tab:hover,
.tm-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0e17;
}

.tm-container {
  display: none;
}

.tm-container.active {
  display: block;
  animation: tm-fadeIn 0.3s ease;
}

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

/* Карточки категорий */
.tm-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tm-category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 16px;
  overflow: hidden;
}

.tm-category-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg4), var(--bg3));
  border-bottom: 1px solid var(--brd);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tm-category-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.tm-category-period {
  font-size: 0.8rem;
  color: var(--txt3);
}

.tm-champion-section {
  flex-grow: 1;
  padding: 20px;
  background: var(--bg2);
  cursor: pointer;
  border-bottom: 2px solid var(--gold);
  transition: var(--t);
}

.tm-champion-section:hover {
  background: var(--bg3);
}

.tm-champion-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tm-champion-badge {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #0a0e17;
}

.tm-champion-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-d);
  text-transform: uppercase;
}

.tm-champion-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tm-champion-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e17;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--gold);
}

.tm-champion-details {
  flex: 1;
}

.tm-champion-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--txt);
}

.tm-champion-team {
  font-size: 0.8rem;
  color: var(--txt3);
}

.tm-champion-weight {
  text-align: right;
}

.tm-champion-weight-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.tm-champion-weight-label {
  font-size: 0.7rem;
  color: var(--txt3);
}

.tm-other-places {
  background: var(--bg2);
}

.tm-place-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--brd);
  cursor: pointer;
  transition: var(--t);
}

.tm-place-row:last-child {
  border-bottom: none;
}

.tm-place-row:hover {
  background: var(--bg3);
}

.tm-place-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 12px;
  background: var(--bg4);
  color: var(--txt2);
}

.tm-place-rank.silver {
  background: #c0c0c0;
  color: #0a0e17;
}

.tm-place-rank.bronze {
  background: #cd7f32;
  color: #0a0e17;
}

.tm-place-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e17;
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 10px;
}

.tm-place-info {
  flex: 1;
}

.tm-place-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--txt);
}

.tm-place-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tm-place-weight {
  font-family: "Roboto Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

.tm-place-gap {
  font-size: 0.7rem;
  color: var(--txt3);
}

/* Таблица лидеров */
.tm-leaderboard-container {
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 16px;
  overflow: hidden;
}

.tm-leaderboard-table-header {
  display: grid;
  grid-template-columns: 60px 1fr 100px 140px;
  padding: 16px 24px;
  background: var(--bg4);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--txt2);
  text-transform: uppercase;
  border-bottom: 1px solid var(--brd);
}

.tm-leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 140px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--brd);
  cursor: pointer;
  transition: var(--t);
}

.tm-leaderboard-row:hover {
  background: var(--bg2);
}

.tm-leaderboard-row:last-child {
  border-bottom: none;
}

.tm-position {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  color: var(--txt3);
}

.tm-position.gold {
  color: var(--gold);
}

.tm-position.silver {
  color: #c0c0c0;
}

.tm-position.bronze {
  color: #cd7f32;
}

.tm-participant-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tm-participant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e17;
  font-weight: 600;
  font-size: 1rem;
}

.tm-participant-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-participant-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tm-participant-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--txt);
}

.tm-participant-team {
  font-size: 0.8rem;
  color: var(--txt3);
}

.tm-badges {
  display: flex;
  gap: 5px;
}

.tm-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: help;
  position: relative;
}

.tm-badge-icon:hover .tm-badge-tooltip {
  display: block;
}

.tm-badge-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 5px;
}

.tm-catch-count {
  font-size: 0.9rem;
  color: var(--txt2);
}

.tm-total-weight {
  font-family: "Roboto Mono", monospace;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-biggest-fish {
  font-size: 0.7rem;
  color: var(--txt3);
}

/* Рекорды */
.tm-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tm-record-card {
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
}

.tm-record-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.tm-record-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg2);
}

.tm-record-card-content {
  padding: 16px;
}

.tm-record-fish-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: #0a0e17;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tm-record-weight {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.tm-record-fisherman {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tm-record-fisherman-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e17;
  font-weight: 600;
  font-size: 0.8rem;
}

.tm-record-fisherman-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--txt);
}

.tm-record-date {
  font-size: 0.8rem;
  color: var(--txt3);
}

/* Мои уловы */
.tm-my-catches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tm-my-catch-card {
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 16px;
  overflow: hidden;
}

.tm-my-catch-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg2);
}

.tm-my-catch-card-content {
  padding: 16px;
}

.tm-my-catch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tm-my-catch-fish-type {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}

.tm-my-catch-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.tm-status-approved {
  background: rgba(34, 197, 94, 0.2);
  color: #10b981;
}

.tm-status-pending {
  background: rgba(234, 179, 8, 0.2);
  color: #f59e0b;
}

.tm-my-catch-weight {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.tm-my-catch-date {
  font-size: 0.8rem;
  color: var(--txt3);
  margin-top: 8px;
}

.tm-my-catch-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg4);
  color: var(--txt2);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 10px;
}