/* ==========================================================================
   TEAMS — Archive & Single Page Styles
   Mirrors pros.css visual language. Prefix: team- / teams-
   ========================================================================== */

/* ==========================================================================
   ARCHIVE — Main wrapper
   ========================================================================== */

.teams-main {
  position: relative;
  z-index: 1;
  min-height: 80vh;
}

/* ==========================================================================
   ARCHIVE — Hero
   ========================================================================== */

.teams-hero {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.teams-hero__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.teams-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: rgba(255, 70, 84, 0.12);
  border: 1px solid rgba(255, 70, 84, 0.3);
  color: var(--primary);
  flex-shrink: 0;
}

.teams-hero__text {
  flex: 1;
  min-width: 0;
}

.teams-hero__eyebrow {
  font-family: var(--font-tech);
  color: var(--primary);
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.teams-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

.teams-hero__title em {
  font-style: normal;
  color: var(--primary);
}

.teams-hero__desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.4rem 0 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.teams-hero__desc strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.teams-hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.teams-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.25rem;
  gap: 0.1rem;
}

.teams-hero__stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.teams-hero__stat-lbl {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
}

.teams-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ==========================================================================
   ARCHIVE — Filters bar
   ========================================================================== */

.teams-filters-bar {
  position: relative;
  z-index: 20;
  background: rgba(10, 17, 24, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.teams-filters-bar__inner {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.teams-filters-bar__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.teams-filters-bar__search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.teams-filters-bar__input {
  width: 100%;
  background: rgba(10, 17, 24, 0.8);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.teams-filters-bar__input::placeholder {
  color: var(--muted);
  text-transform: none;
}

.teams-filters-bar__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.12);
}

.teams-filters-bar__select {
  background: rgba(10, 17, 24, 0.8);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.65rem 1rem;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  cursor: pointer;
  min-width: 160px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.teams-filters-bar__select:focus,
.teams-filters-bar__select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.12);
}

.teams-filters-bar__select option {
  background: #0f1923;
  color: var(--foreground);
}

.teams-filters-bar__reset {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid transparent;
}

.teams-filters-bar__reset:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   ARCHIVE — Grid section
   ========================================================================== */

.teams-grid-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0 5rem;
}

.teams-grid {
  display: grid;
  /* fixed column counts that all divide the 24-per-page query so the last
     row always fills completely (no empty trailing "missing" cell) */
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

/* ==========================================================================
   ARCHIVE — Team Card
   ========================================================================== */

.team-card {
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
  border-color: rgba(255, 70, 84, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 70, 84, 0.15), 0 8px 32px rgba(255, 70, 84, 0.2);
  transform: translateY(-3px);
  text-decoration: none;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4654, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.team-card:hover::before {
  opacity: 1;
}

/* Logo area */
.team-card__logo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 70, 84, 0.06) 0%, rgba(8, 12, 20, 1) 100%);
  overflow: hidden;
}

.team-card__logo {
  width: 48%;
  height: 48%;
  max-width: 110px;
  max-height: 96px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
}

.team-card:hover .team-card__logo {
  transform: scale(1.08);
}

.team-card__logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 70, 84, 0.1);
  border: 1px solid rgba(255, 70, 84, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Hover overlay */
.team-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 70, 84, 0.7) 0%,
    rgba(255, 70, 84, 0.08) 50%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 2;
}

.team-card:hover .team-card__hover-overlay {
  opacity: 1;
}

.team-card__view {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #fff;
  text-transform: uppercase;
  background: rgba(255, 70, 84, 0.9);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(255, 70, 84, 0.5);
  transform: translateY(4px);
  transition: transform 0.28s ease;
}

.team-card:hover .team-card__view {
  transform: translateY(0);
}

/* Corner brackets */
.team-card__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 2;
}

.team-card__corner--tl { top: 0; left: 0; }
.team-card__corner--tr { top: 0; right: 0; }

.team-card__corner--tl::before,
.team-card__corner--tl::after,
.team-card__corner--tr::before,
.team-card__corner--tr::after {
  content: '';
  position: absolute;
  background: rgba(255, 70, 84, 0.5);
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, width 0.25s, height 0.25s;
}

.team-card__corner--tl::before { top: 0; left: 0; width: 10px; height: 1px; }
.team-card__corner--tl::after  { top: 0; left: 0; width: 1px;  height: 10px; }
.team-card__corner--tr::before { top: 0; right: 0; width: 10px; height: 1px; }
.team-card__corner--tr::after  { top: 0; right: 0; width: 1px;  height: 10px; }

.team-card:hover .team-card__corner--tl::before,
.team-card:hover .team-card__corner--tl::after,
.team-card:hover .team-card__corner--tr::before,
.team-card:hover .team-card__corner--tr::after {
  opacity: 1;
  background: #ff4654;
  width: 14px;
  height: 14px;
}

/* Info strip */
.team-card__info {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 17, 24, 0.85);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.team-card__count {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   Region badge — colored by region
   ========================================================================== */

.team-region-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.team-region-badge--emea     { color: #4a9eff; border: 1px solid rgba(74,158,255,0.4);  background: rgba(74,158,255,0.08); }
.team-region-badge--americas { color: #ff8c42; border: 1px solid rgba(255,140,66,0.4);  background: rgba(255,140,66,0.08); }
.team-region-badge--pacific  { color: #32d264; border: 1px solid rgba(50,210,100,0.4);  background: rgba(50,210,100,0.08); }
.team-region-badge--china    { color: #ff4654; border: 1px solid rgba(255,70,84,0.4);   background: rgba(255,70,84,0.08); }
.team-region-badge--other    { color: var(--muted); border: 1px solid rgba(139,145,150,0.4); background: rgba(139,145,150,0.06); }

/* ==========================================================================
   ARCHIVE — Empty state
   ========================================================================== */

.teams-empty {
  text-align: center;
  padding: 4rem;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teams-empty a {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.teams-empty a:hover { color: var(--primary); }

/* ==========================================================================
   ARCHIVE — Pagination
   ========================================================================== */

.teams-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.teams-pagination__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.teams-pagination__item { display: inline-flex; }

.teams-pagination__item a,
.teams-pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(10, 17, 24, 0.6);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.teams-pagination__item a:hover {
  color: var(--foreground);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.15);
  text-decoration: none;
}

.teams-pagination__item span.current {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 70, 85, 0.08);
}

.teams-pagination__item span.dots {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  pointer-events: none;
}

/* ==========================================================================
   SINGLE — Main wrapper
   ========================================================================== */

.team-main {
  position: relative;
  z-index: 1;
  min-height: 80vh;
}

/* ==========================================================================
   SINGLE — Sticky section nav
   ========================================================================== */

.team-section-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.team-section-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1rem;
}

.team-section-nav__inner::-webkit-scrollbar { display: none; }

.team-section-nav__link {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  text-decoration: none;
}

.team-section-nav__link:hover { color: var(--foreground); }

.team-section-nav__link.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   SINGLE — Section wrappers
   ========================================================================== */

.team-section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.team-section--alt { background: rgba(255, 255, 255, 0.015); }

.team-section--hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.team-section--hero__glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 70, 84, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.team-section--hero .container { position: relative; z-index: 1; }

.team-section__header { margin-bottom: 2rem; }

/* ==========================================================================
   SINGLE — Section eyebrow + title
   ========================================================================== */

.team-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.team-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--foreground);
  margin: 0 0 0.4rem;
}

.team-section__title em {
  font-style: normal;
  color: var(--primary);
}

/* ==========================================================================
   SINGLE — Hero overview
   ========================================================================== */

.team-overview {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.team-overview__logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.team-overview__logo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.team-overview__logo {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.team-overview__logo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 70, 84, 0.06);
  border: 1px solid rgba(255, 70, 84, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.team-overview__info {
  display: flex;
  flex-direction: column;
}

/* Breadcrumb */
nav.team-breadcrumb {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

nav.team-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}

nav.team-breadcrumb a:hover { color: var(--primary); }
nav.team-breadcrumb [aria-current="page"] { color: rgba(236, 232, 225, 0.7); }

.team-overview__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
  margin: 0 0 0.25rem;
  line-height: 1.05;
}

.team-overview__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-top: 0.75rem;
}

/* ── Hero chips (country, player count, rank, winnings) ── */
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.7);
  white-space: nowrap;
  vertical-align: middle;
}

.team-chip__flag {
  width: 16px;
  height: auto;
  border-radius: 1px;
  flex-shrink: 0;
  display: block;
}

/* Keep region badge same height as chips for alignment */
.team-region-badge {
  height: 24px;
  box-sizing: border-box;
}

/* ── About block ── */
.team-overview__about {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 4px 4px 0;
  max-width: 68ch;
}

.team-overview__about .team-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.team-overview__about-text {
  font-family: var(--font-body, var(--font-tech));
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(236, 232, 225, 0.6);
  margin: 0;
  max-width: 68ch;
}

/* Socials */
.team-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.team-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.team-social-btn:hover {
  background: rgba(255, 70, 84, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.team-back-link {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
  align-self: flex-start;
}

.team-back-link:hover { color: var(--primary); text-decoration: none; }

/* ==========================================================================
   SINGLE — Roster grid
   ========================================================================== */

.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.team-roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.18s, background 0.18s;
}

.team-roster-card:hover {
  border-color: var(--primary);
  background: rgba(255, 70, 84, 0.07);
  text-decoration: none;
}

.team-roster-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.team-roster-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-roster-card__placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
}

.team-roster-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.team-roster-card__flag {
  width: 18px;
  height: auto;
  border-radius: 2px;
}

.team-roster-card__nick {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
}

.team-roster-card__country {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   SINGLE — Achievements list
   ========================================================================== */

.team-achievements-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.team-achievement-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: rgba(12, 16, 28, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.team-achievement-row:last-child { border-bottom: none; }
.team-achievement-row:hover { background: rgba(255, 70, 84, 0.05); }

.team-achievement-row__event {
  font-size: 0.88rem;
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.3;
}

.team-achievement-row__placement {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

.team-achievement-row__date {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   SINGLE — Recent matches list
   ========================================================================== */

.team-matches-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.team-match-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: rgba(12, 16, 28, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.team-match-row:last-child { border-bottom: none; }
.team-match-row:hover { background: rgba(255, 70, 84, 0.05); }

.team-match-row__result {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

.team-match-row__result--win  { color: #32d264; background: rgba(50,210,100,0.1); border: 1px solid rgba(50,210,100,0.3); }
.team-match-row__result--loss { color: #ff4654; background: rgba(255,70,84,0.1);  border: 1px solid rgba(255,70,84,0.3); }
.team-match-row__result--draw { color: var(--muted); background: rgba(139,145,150,0.1); border: 1px solid rgba(139,145,150,0.3); }

.team-match-row__opponent {
  font-size: 0.88rem;
  color: var(--foreground);
  font-weight: 500;
}

.team-match-row__event {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-match-row__date {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   SINGLE — News cards
   ========================================================================== */

.team-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.team-news-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 17, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.team-news-card:hover {
  border-color: rgba(255, 70, 84, 0.4);
  box-shadow: 0 0 20px rgba(255, 70, 84, 0.1);
  text-decoration: none;
}

.team-news-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.team-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-news-card:hover .team-news-card__thumb img { transform: scale(1.04); }

.team-news-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.team-news-card__date {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

.team-news-card__title {
  font-size: 0.88rem;
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   SINGLE — Prev/Next nav
   ========================================================================== */

.team-nav {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

.team-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.team-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--muted);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(10, 17, 24, 0.6);
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.team-nav__link:hover {
  border-color: rgba(255, 70, 85, 0.4);
  background: rgba(255, 70, 85, 0.04);
  text-decoration: none;
}

.team-nav__link--next {
  justify-content: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}

.team-nav__dir {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.57rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.team-nav__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-nav__all {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(10, 17, 24, 0.6);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.team-nav__all:hover {
  color: var(--primary);
  border-color: rgba(255, 70, 85, 0.4);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1280px) {
  .teams-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .teams-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .team-overview {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
  }

  .team-achievement-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .team-achievement-row__date { display: none; }

  .team-match-row {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .team-match-row__event { display: none; }
}

@media (max-width: 768px) {
  .teams-filters-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .teams-filters-bar__search-wrap {
    min-width: 0;
    width: 100%;
  }

  .teams-filters-bar__select {
    width: 100%;
    min-width: 0;
  }

  .team-nav__inner {
    grid-template-columns: 1fr 1fr;
  }

  .team-nav__all { display: none; }
}

@media (max-width: 640px) {
  /* ── Archive hero: stack vertically on small screens ── */
  .teams-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .teams-hero__stats {
    align-self: stretch;
    justify-content: center;
  }

  .team-overview {
    grid-template-columns: 1fr;
  }

  .team-overview__logo-col {
    max-width: 200px;
    margin: 0 auto;
  }

  .team-section-nav__link {
    padding: 0.7rem 0.75rem;
    font-size: 0.65rem;
  }

  .team-roster-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .team-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .teams-hero { padding: 1.5rem 1rem 1rem; }

  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .team-nav__inner { grid-template-columns: 1fr; }

  .team-nav__link--next {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }

  .team-achievement-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .team-match-row {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
  }

  .team-match-row__date { display: none; }
}
