/* ============================================
   TEAM PAGE STYLES
   ============================================ */

/* Team header */
.team-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 20px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.team-logo-wrap {
  flex-shrink: 0;
}

.team-logo-lg {
  width: 96px;
  height: 96px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Tên đội ở HEADER trang đội. Phải scope: bản cũ viết trần `.team-name` mà team.css nạp ở
   mọi trang, nên tên đội trong dòng trận (style.css 13px) bị đè lên 24px — chính là lý do
   trang chủ "chữ to, đơn điệu" (ảnh 02/10/2026). */
.team-header .team-name, .team-info .team-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.team-star-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  cursor: pointer;
  display: flex;
}

.team-star-btn:hover { color: var(--accent-red); }

.team-meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Team country suffix (Eng), (Fra)... */
.team-country-suffix {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  margin-left: 2px;
}

.team-match-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
}

.team-match-result {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-match-star {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-match-star:hover,
.team-match-star.active { color: var(--accent-red); }

/* News list (team page - horizontal cards) */
.team-news-list {
  display: flex;
  flex-direction: column;
  padding: 8px 20px;
}

.team-news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background 0.1s ease;
}

.team-news-item:hover {
  background: var(--bg-card-hover);
}

.team-news-item:last-child { border-bottom: none; }

.team-news-image {
  width: 200px;
  height: 120px;
  border-radius: 6px;
}

.team-news-body { min-width: 0; }

.team-news-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.team-news-source {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  color: #000;
  font-weight: 800;
  font-size: 9px;
}

/* Standings: highlight current team row */
.standings-league-table tr.current-team {
  background: rgba(33, 150, 243, 0.15);
}

.standings-league-table tr.current-team.zone-champions {
  background: rgba(33, 150, 243, 0.22);
}

/* ============ TRANSFERS TAB ============ */

.transfers-filters {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
}

.transfers-filter {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.transfers-filter.active {
  background: var(--accent-red);
  color: white;
}

.transfers-filter:hover:not(.active) {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.transfers-table {
  width: 100%;
  border-collapse: collapse;
}

.transfers-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.transfers-table th.tr-fee { text-align: right; }

.transfers-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-row);
  vertical-align: middle;
}

.tr-date {
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  width: 110px;
}

.tr-player {
  font-weight: 600;
}

.tr-flag {
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
}

.tr-club {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.tr-arrow-in {
  color: #4CAF50;
}

.tr-arrow-out {
  color: var(--accent-red);
}

.tr-fee {
  text-align: right;
  white-space: nowrap;
}

.tr-fee-main {
  font-weight: 700;
  color: var(--text-primary);
}

.tr-fee-type {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ============ SQUAD TAB ============ */

.squad-filters {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
}

.squad-filter {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.squad-filter.active {
  background: var(--accent-red);
  color: white;
}

.squad-position-group {
  padding: 20px 20px 8px;
}

.squad-position-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.squad-table {
  width: 100%;
  border-collapse: collapse;
}

.squad-table th {
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-card);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.squad-table th.squad-name-col {
  text-align: left;
  padding-left: 12px;
}

.squad-table th.squad-yellow { color: #F9C74F; }
.squad-table th.squad-red { color: var(--accent-red); }

.squad-table td {
  padding: 12px 6px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-row);
  text-align: center;
  vertical-align: middle;
}

.squad-num {
  color: var(--text-muted);
  font-weight: 600;
  width: 50px;
}

.squad-name-col {
  text-align: left !important;
  padding-left: 12px !important;
  min-width: 200px;
}

.squad-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
}

.squad-player:hover { color: var(--accent-red); }

.squad-flag {
  font-size: 14px;
}

/* Chiều chuyển nhượng bằng chữ */
.tr-dir { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.tr-dir-in { color: var(--accent-green); background: rgba(16, 185, 129, 0.14); }
.tr-dir-out { color: #ff8a94; background: rgba(230, 57, 70, 0.14); }
