.teams-page { min-height: 100vh; overflow: hidden; background: var(--color-void); color: var(--color-white); }
.teams-page *, .teams-page *::before, .teams-page *::after { box-sizing: border-box; }

.teams-hero { position: relative; isolation: isolate; overflow: hidden; padding: 170px 0 90px; border-bottom: 1px solid var(--color-border); background: radial-gradient(circle at 84% 20%, rgba(123,77,255,.2), transparent 31%), radial-gradient(circle at 8% 90%, rgba(202,255,0,.07), transparent 27%), var(--color-deep); }
.teams-hero__grid { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 96%); }
.teams-hero__glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.teams-hero__glow--purple { top: -220px; right: -120px; width: 600px; height: 600px; background: rgba(123,77,255,.22); }
.teams-hero__glow--acid { bottom: -250px; left: -150px; width: 480px; height: 480px; background: rgba(202,255,0,.08); }
.teams-hero__inner { position: relative; z-index: 1; }
.teams-hero__desc { max-width: 760px; margin-top: 28px; color: var(--color-muted); font-size: clamp(15px,1.5vw,18px); line-height: 1.85; }
.teams-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.teams-hero__stats > div { display: flex; align-items: baseline; gap: 10px; min-width: 155px; padding: 13px 17px; border: 1px solid var(--color-border); border-radius: 14px; background: rgba(255,255,255,.035); backdrop-filter: blur(12px); }
.teams-hero__stats strong { font-family: var(--font-display); font-size: 18px; }
.teams-hero__stats span { color: var(--color-muted); font-size: 12px; }

.teams-directory { padding: 78px 0 120px; }
.teams-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.teams-filter__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.teams-filter__button { min-height: 48px; padding: 0 17px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: rgba(255,255,255,.025); color: var(--color-muted); font-size: 13px; font-weight: 700; }
.teams-filter__button:hover { color: #fff; border-color: rgba(255,255,255,.22); }
.teams-filter__button.is-active { background: var(--color-acid); border-color: var(--color-acid); color: var(--color-void); }
.teams-search { display: flex; align-items: center; gap: 10px; width: min(360px,100%); min-height: 48px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: rgba(255,255,255,.035); }
.teams-search:focus-within { border-color: rgba(202,255,0,.55); box-shadow: 0 0 0 3px rgba(202,255,0,.07); }
.teams-search svg { width: 18px; height: 18px; fill: none; stroke: var(--color-muted); stroke-width: 1.8; }
.teams-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; }

.teams-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.team-card { --team-accent: var(--color-purple); min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 26px; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--team-accent) 13%, transparent), transparent 35%), var(--color-surface); box-shadow: 0 18px 48px rgba(0,0,0,.25); transition: transform .3s var(--ease-out-expo), border-color .3s ease, box-shadow .3s ease; }
.team-card--purple { --team-accent: var(--color-purple); }
.team-card--white { --team-accent: #fff; }
.team-card--pink { --team-accent: var(--color-pink); }
.team-card--acid { --team-accent: var(--color-acid); }
.team-card--teal { --team-accent: var(--color-teal); }
.team-card:hover { transform: translateY(0px); border-color: color-mix(in srgb, var(--team-accent) 42%, transparent); box-shadow: 0 26px 70px rgba(0,0,0,.36); }
.team-card.is-hidden { display: none !important; }
.team-card__top { display: grid; grid-template-columns: 86px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 24px 24px 20px; border-bottom: 1px solid var(--color-border); }
.team-card__logo-wrap { display: grid; place-items: center; width: 86px; height: 86px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.05); }
.team-card__logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.team-card__identity span { color: var(--team-accent); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.team-card__identity h2 { margin: 7px 0 4px; font-family: var(--font-display); font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.15; }
.team-card__identity p { color: var(--color-muted); font-size: 12px; }
.team-card__token { min-width: 82px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--team-accent) 26%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--team-accent) 7%, transparent); text-align: center; }
.team-card__token span, .team-card__token strong { display: block; }
.team-card__token span { color: var(--color-muted); font-size: 9px; }
.team-card__token strong { margin-top: 4px; color: var(--team-accent); font-family: var(--font-display); font-size: 17px; }
.team-card__body { padding: 23px 24px 24px; }
.team-card__summary { min-height: 78px; color: var(--color-muted); font-size: 15px; line-height: 1.8; }
.team-card__facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid var(--color-border); border-radius: 15px; background: var(--color-border); }
.team-card__facts > div { padding: 12px 13px; background: rgba(20,20,30,.94); }
.team-card__facts dt { color: var(--color-muted); font-size: 10px; }
.team-card__facts dd { margin-top: 4px; color: #fff; font-size: 12px; font-weight: 700; }
.team-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.team-card__detail-button, .team-card__market-link { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; border-radius: 13px; font-size: 13px; font-weight: 700; }
.team-card__detail-button { border: 1px solid var(--color-border); background: rgba(255,255,255,.035); color: #fff; }
.team-card__market-link { border: 1px solid color-mix(in srgb, var(--team-accent) 28%, transparent); background: color-mix(in srgb, var(--team-accent) 8%, transparent); color: #fff; }
.team-card__market-link:hover { border-color: var(--team-accent); background: var(--team-accent); color: var(--color-void); }
.team-card__detail-button svg, .team-card__market-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.team-card.is-open .team-card__detail-button svg { transform: rotate(180deg); }
.team-card__details { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.team-card__details section + section { margin-top: 20px; }
.team-card__details h3 { margin: 0 0 8px; color: var(--team-accent); font-size: 13px; }
.team-card__details p, .team-card__details li { color: var(--color-muted); font-size: 12px; line-height: 1.8; }
.team-card__detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.team-card__detail-grid section { margin-top: 0 !important; padding: 14px; border: 1px solid var(--color-border); border-radius: 14px; background: rgba(255,255,255,.025); }
.team-card__detail-grid li { position: relative; padding-left: 12px; }
.team-card__detail-grid li::before { content: ""; position: absolute; top: .72em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--team-accent); }
.team-card__source { display: inline-flex; margin-top: 18px; color: rgba(255,255,255,.48); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.teams-empty { padding: 80px 20px; border: 1px dashed var(--color-border); border-radius: 20px; color: var(--color-muted); text-align: center; }

@media (max-width: 1024px) {
  .teams-hero { padding: 140px 0 78px; }
  .teams-directory { padding: 68px 0 96px; }
  .teams-filter { align-items: stretch; flex-direction: column; }
  .teams-search { width: 100%; }
  .teams-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .teams-page .container { width: auto; max-width: none; margin-inline: 20px; }
  .teams-hero { padding: 118px 0 58px; }
  .teams-hero__desc { font-size: 14px; }
  .teams-hero__stats { display: grid; grid-template-columns: 1fr; margin-top: 28px; }
  .teams-directory { padding: 54px 0 72px; }
  .teams-filter__buttons { flex-wrap: nowrap; width: calc(100% + 20px); margin-right: -20px; padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
  .teams-filter__buttons::-webkit-scrollbar { display: none; }
  .teams-filter__button { flex: 0 0 auto; min-height: 44px; }
  .team-card { border-radius: 21px; }
  .team-card__top { grid-template-columns: 68px minmax(0,1fr); padding: 20px; }
  .team-card__logo-wrap { width: 68px; height: 68px; border-radius: 17px; }
  .team-card__token { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .team-card__token strong { margin-top: 0; }
  .team-card__body { padding: 20px; }
  .team-card__summary { min-height: 0; }
  .team-card__actions { grid-template-columns: 1fr; }
  .team-card__detail-grid { grid-template-columns: 1fr; }
}

/* Expanded sport directory */
.team-card__identity > span {
  display: block;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .teams-filter__buttons {
    scrollbar-width: none;
  }
  .teams-filter__buttons::-webkit-scrollbar {
    display: none;
  }
}
