:root {
  --teams-bg: #000;
  --teams-text: #fff;
  --teams-muted: rgba(255, 255, 255, 0.72);
  --teams-border: rgba(147, 51, 234, 0.25);
  --teams-card: rgba(255, 255, 255, 0.03);
  --teams-accent: #9741eb;
  --teams-accent-2: #ec4899;
}

.teams-list-page {
  background: var(--teams-bg);
  color: var(--teams-text);
  padding-top: 0;
}

.teams-list-page .nav:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none;
  border-bottom: none;
}

.teams-list-page .nav.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .teams-list-page .nav:not(.scrolled) {
    background: rgba(10, 10, 20, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
}

.teams-hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  padding: clamp(7.5rem, 11vh, 9rem) 1rem clamp(2rem, 5vh, 3rem);
  margin-bottom: 1rem;
  overflow: hidden;
}

@media (min-width: 769px) {
  .teams-hero {
    min-height: 62vh;
    min-height: 62svh;
    padding: 8rem 1rem 1.25rem;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .teams-hero-content {
    padding-top: 1rem;
  }

  .teams-hero-title {
    margin-bottom: 1.55rem;
  }

  .teams-hero-subtitle {
    margin-bottom: 3rem;
  }

  .teams-search-wrap {
    margin-top: 0;
  }
}

.teams-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.teams-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 0;
  padding-top: 0;
}

.teams-hero-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.title-bar {
  display: inline-block;
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--teams-accent), var(--teams-accent-2));
}

.teams-hero-subtitle {
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.teams-search-wrap {
  width: min(1100px, 96%);
  margin: 1rem auto 0;
  position: relative;
}

@media (min-width: 769px) and (max-width: 1440px) {
  .teams-hero {
    padding-top: 7.8rem;
    padding-bottom: 1.2rem;
  }

  .teams-hero-content {
    width: min(100%, 1080px);
  }

  .teams-hero-title {
    font-size: clamp(2rem, 4.2vw, 2.7rem);
  }
}

@media (min-width: 769px) and (max-height: 860px) {
  .teams-hero {
    min-height: clamp(480px, 62svh, 560px);
    padding-top: 7.4rem;
    padding-bottom: 1rem;
  }

  .teams-hero-content {
    width: min(100%, 980px);
    padding-top: 0.8rem;
  }

  .teams-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.45rem);
    margin-bottom: 1.25rem;
  }

  .teams-hero-subtitle {
    margin-bottom: 2.2rem;
  }

  .teams-search-wrap {
    margin-top: 0;
  }
}

.teams-list-page #poda {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.teams-list-page .white,
.teams-list-page .border,
.teams-list-page .darkBorderBg,
.teams-list-page .glow {
  max-height: 92px;
  max-width: 524px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
}

.teams-search-input {
  background-color: #010201;
  border: none;
  width: 512px;
  height: 72px;
  border-radius: 999px;
  color: #fff;
  padding: 0 62px 0 74px;
  font-size: 1.12rem;
  outline: none;
}

.teams-search-input::placeholder {
  color: #c0b9c0;
}

.teams-list-page .white {
  max-height: 72px;
  max-width: 516px;
  border-radius: 999px;
  filter: blur(2px);
}

.teams-list-page .white::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(2);
  background-image: conic-gradient(
    rgba(0, 0, 0, 0) 0%,
    #a099d8,
    rgba(0, 0, 0, 0) 8%,
    rgba(0, 0, 0, 0) 50%,
    #9f7aea,
    rgba(0, 0, 0, 0) 58%
  );
  transition: all 2s;
}

.teams-list-page .border {
  max-height: 68px;
  max-width: 512px;
  border-radius: 999px;
  filter: blur(0.5px);
}

.teams-list-page .border::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 600px;
  height: 600px;
  filter: brightness(1.8);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #1c191c,
    #4f46e5 4%,
    #1c191c 10%,
    #1c191c 50%,
    #c026d3 58%,
    #1c191c 68%
  );
  transition: all 2s;
}

.teams-list-page .darkBorderBg {
  max-height: 74px;
  max-width: 520px;
}

.teams-list-page .darkBorderBg::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 600px;
  height: 600px;
  filter: brightness(1.6);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    rgba(0, 0, 0, 0),
    #4338ca,
    rgba(0, 0, 0, 0) 7%,
    rgba(0, 0, 0, 0) 50%,
    #a21caf,
    rgba(0, 0, 0, 0) 64%
  );
  transition: all 2s;
}

.teams-list-page #poda:hover > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(-98deg);
}

.teams-list-page #poda:hover > .glow::before {
  transform: translate(-50%, -50%) rotate(-120deg);
}

.teams-list-page #poda:hover > .white::before {
  transform: translate(-50%, -50%) rotate(-97deg);
}

.teams-list-page #poda:hover > .border::before {
  transform: translate(-50%, -50%) rotate(-110deg);
}

.teams-list-page #poda:focus-within > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(442deg);
  transition: all 4s;
}

.teams-list-page #poda:focus-within > .glow::before {
  transform: translate(-50%, -50%) rotate(420deg);
  transition: all 4s;
}

.teams-list-page #poda:focus-within > .white::before {
  transform: translate(-50%, -50%) rotate(443deg);
  transition: all 4s;
}

.teams-list-page #poda:focus-within > .border::before {
  transform: translate(-50%, -50%) rotate(430deg);
  transition: all 4s;
}

.teams-list-page .glow {
  overflow: hidden;
  filter: blur(30px);
  opacity: 0.72;
  max-height: 146px;
  max-width: 560px;
}

.teams-list-page .glow::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 999px;
  height: 999px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #000,
    #4f46e5 4%,
    #000 38%,
    #000 50%,
    #c026d3 58%,
    #000 87%
  );
  transition: all 2s;
}

.teams-list-page #main {
  position: relative;
  width: 512px;
}

.teams-list-page #search-icon {
  position: absolute;
  left: 24px;
  top: 22px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.search-clear-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-section {
  padding: 0.5rem 1.5rem 3rem;
  overflow-x: hidden;
  overflow-y: visible;
}

.carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 8px;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: scroll-position;
}

.carousel-track:hover {
  cursor: default;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.75);
  background: transparent !important;
  background-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.35);
}

.carousel-nav-btn.prev {
  left: 0;
}

.carousel-nav-btn.next {
  right: 0;
}

.carousel-nav-btn:hover {
  border-color: rgba(216, 180, 255, 0.95);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.55);
}

.carousel-nav-btn {
  display: none !important;
}

.carousel-card {
  min-width: 320px;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(140deg, rgba(151, 65, 235, 0.16), rgba(30, 7, 59, 0.45));
  border: 1px solid rgba(151, 65, 235, 0.35);
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.carousel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(151, 65, 235, 0.75);
  box-shadow: 0 18px 40px rgba(94, 32, 166, 0.35);
}

.featured-card.paused,
.carousel-card.paused {
  transform: translateY(-6px) !important;
  border-color: rgba(192, 132, 252, 0.95) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.56), 0 0 30px rgba(147, 51, 234, 0.62) !important;
}

.carousel-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 2px solid rgba(151, 65, 235, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.carousel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.carousel-logo-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teams-accent);
}

.carousel-card h3 {
  margin: 0 0 0.4rem;
  text-align: center;
  font-size: 1.25rem;
}

.carousel-card .meta,
.carousel-card .stats {
  text-align: center;
  color: var(--teams-muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.verified-badge {
  display: inline-block;
  margin: 0.5rem auto 0;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 65, 235, 0.5);
  color: #d7b7ff;
  background: rgba(151, 65, 235, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
}

.teams-controls-section {
  padding: 0 1.5rem;
}

.teams-controls {
  max-width: 1400px;
  margin: 0 auto 2.5rem;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(151, 65, 235, 0.18);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.stats-counter {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.counter-text strong {
  color: #c8a1ff;
  font-size: 1.12rem;
}

.controls-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.filter-select {
  min-width: 160px;
  border-radius: 12px;
  border: 1px solid rgba(151, 65, 235, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 10px 14px;
  outline: none;
}

.filter-select option {
  background: #171125;
  color: #fff;
}

.orgs-section {
  padding: 0 1.5rem 2.5rem;
}

.orgs-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  --team-card-w: 300px;
  grid-template-columns: repeat(auto-fit, minmax(var(--team-card-w), var(--team-card-w)));
  justify-content: center;
  gap: 1.6rem;
}

.org-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
}

.org-banner {
  height: 28%;
  min-height: 88px;
  background: linear-gradient(135deg, #9741eb 0%, #5a00b2 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.org-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
  pointer-events: none;
}

.org-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
  z-index: 1;
}

.org-banner-label {
  display: none;
}

.org-banner-slogan {
  position: absolute;
  top: 18px;
  left: 50%;
  width: calc(100% - 24px);
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  font-size: calc(0.72rem + 4px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-content {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 22, 42, 1) 100%);
  text-align: center;
  position: relative;
}

.org-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -18px;
  width: calc(100% + 36px);
  height: 2px;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.08), rgba(192, 132, 252, 1), rgba(147, 51, 234, 0.08));
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.7);
  pointer-events: none;
}

.org-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: -42px auto 0;
  border: 4px solid rgba(192, 132, 252, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0e0f1a;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.46), 0 0 16px rgba(147, 51, 234, 0.38);
  z-index: 2;
  position: relative;
}

.org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 7px;
}

.org-logo::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -62px;
  width: 44px;
  height: 170px;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(22deg);
  animation: logo-shine-sweep 3s ease-in-out infinite;
  pointer-events: none;
}

.org-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

@keyframes logo-shine-sweep {
  0% {
    left: -62px;
  }
  100% {
    left: 110px;
  }
}

.org-logo-placeholder {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e9d5ff;
}

.org-name {
  margin: 0.2rem 0 -0.14rem;
  font-size: 1.06rem;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 1.15em;
}

.org-founded {
  margin: -0.04rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.05;
  min-height: 1.05em;
}

.org-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0;
  min-height: 1.9rem;
  align-content: flex-start;
}

.org-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: rgba(147, 51, 234, 0.2);
  color: #f2e8ff;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.org-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.org-spacer {
  display: block;
  flex: 1;
  min-height: 0;
}

@media (min-width: 769px) {
  .team-unified-card .org-content {
    gap: 0.28rem;
  }

  .team-unified-card .org-name {
    margin-top: 0.42rem;
    margin-bottom: 0;
  }

  .team-unified-card .org-founded {
    min-height: 1.15em;
  }

  .team-unified-card .org-description {
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
  }

  .team-unified-card .org-tags {
    min-height: 1.9rem;
    align-content: flex-start;
    margin-top: 0;
  }

  .team-unified-card .org-spacer {
    flex: 1;
  }

  .org-description {
    margin-bottom: 0.72rem;
  }

  .org-tags {
    margin-top: 0.62rem;
  }

  .team-socials {
    margin-top: 0.68rem;
  }
}

.view-btn {
  width: 100%;
  border: 1px solid rgba(167, 139, 250, 0.65);
  background: linear-gradient(180deg, #6d28d9 0%, #4c1d95 100%);
  color: #fff;
  border-radius: 10px;
  padding: 0.56rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.7rem;
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(76, 29, 149, 0.45);
}

.team-socials {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.team-socials::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1rem;
  width: calc(100% + 2rem);
  height: 1px;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.team-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 1;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.team-social-btn.youtube {
  --social-accent: #ff0000;
  --social-accent-rgb: 255, 0, 0;
}

.team-social-btn.instagram {
  --social-accent: #e4405f;
  --social-accent-rgb: 228, 64, 95;
}

.team-social-btn.twitter {
  --social-accent: #ffffff;
  --social-accent-rgb: 255, 255, 255;
}

.team-social-btn.discord {
  --social-accent: #5865f2;
  --social-accent-rgb: 88, 101, 242;
}

.team-social-btn.linkedin {
  --social-accent: #0a66c2;
  --social-accent-rgb: 10, 102, 194;
}

.team-social-btn.website {
  --social-accent: #22d3ee;
  --social-accent-rgb: 34, 211, 238;
}

.team-social-btn:hover {
  transform: translateY(-2px);
}

.team-social-btn.youtube:hover {
  color: var(--social-accent, #fff);
  border-color: rgba(255,0,0,0.55);
  box-shadow: none;
}

.team-social-btn.instagram:hover {
  color: var(--social-accent, #fff);
  border-color: rgba(225,48,108,0.55);
  box-shadow: none;
}

.team-social-btn.twitter:hover {
  color: var(--social-accent, #fff);
  border-color: rgba(255,255,255,0.55);
  box-shadow: none;
}

.team-social-btn.discord:hover {
  color: var(--social-accent, #fff);
  border-color: rgba(88,101,242,0.55);
  box-shadow: none;
}

.team-social-btn.linkedin:hover {
  color: var(--social-accent, #fff);
  border-color: rgba(10,102,194,0.55);
  box-shadow: none;
}

.team-social-btn.website:hover {
  color: var(--social-accent, #fff);
  border-color: rgba(96,165,250,0.55);
  box-shadow: none;
}

.team-social-btn svg {
  width: 16px;
  height: 16px;
}

.team-social-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.team-social-empty {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.56);
}

/* Unified card system for both carousel + grid */
.team-unified-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(150deg, rgba(147, 51, 234, 0.22), rgba(10, 8, 20, 0.96)),
    linear-gradient(145deg, #1a1a2e 0%, #131324 100%);
  border: 2px solid rgba(147, 51, 234, 0.72);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.48), 0 0 22px rgba(147, 51, 234, 0.38);
  aspect-ratio: 1 / 1.27;
  min-height: 484px;
}

.team-unified-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.95);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.56), 0 0 30px rgba(147, 51, 234, 0.62);
}

.team-unified-card .org-banner {
  height: 22%;
  min-height: 74px;
}

.team-unified-card .org-content {
  flex: 1;
}

.team-unified-card.carousel-card {
  min-width: 320px;
  width: 320px;
  padding: 0;
  background:
    linear-gradient(150deg, rgba(147, 51, 234, 0.22), rgba(10, 8, 20, 0.96)),
    linear-gradient(145deg, #1a1a2e 0%, #131324 100%);
  border: 2px solid rgba(147, 51, 234, 0.72);
}

.team-unified-card.grid-card {
  width: 100%;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.empty-state h3 {
  margin: 0 0 0.55rem;
  color: #fff;
}

.other-teams {
  padding: 1.2rem 1.5rem 4rem;
  text-align: center;
}

.other-teams p {
  margin: 0 0 0.8rem;
  color: var(--teams-muted);
}

.other-teams a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  padding: 0.8rem 1.26rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, 0.7);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.other-teams a:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 213, 255, 0.9);
  box-shadow: 0 14px 30px rgba(76, 29, 149, 0.44);
}

@media (max-width: 768px) {
  .teams-hero {
    min-height: 55vh;
    padding: 7rem 1rem 2rem;
  }

  .teams-hero-content {
    padding-top: 1.85rem;
  }

  .teams-hero-subtitle {
    margin: 0 0 2rem;
  }

  .teams-search-wrap {
    margin-top: 0.7rem;
  }

  .teams-list-page #main {
    width: min(560px, 92vw);
    overflow: visible;
  }

  .teams-search-input {
    width: 100%;
    height: 64px;
    padding: 0 56px 0 66px;
    font-size: 16px;
  }

  .teams-list-page #search-icon {
    top: 18px;
  }

  .title-bar {
    height: 32px;
  }

  .team-unified-card.carousel-card {
    min-width: min(272px, calc(100vw - 36px));
    width: min(272px, calc(100vw - 36px));
    max-width: 100%;
  }

  .teams-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-right {
    flex-direction: column;
  }

  .filter-select {
    min-width: 0;
    width: 100%;
  }

  .orgs-grid {
    --team-card-w: 272px;
    gap: 1rem;
    justify-content: center;
  }

  .team-unified-card.grid-card {
    width: min(272px, calc(100vw - 36px));
    max-width: 100%;
    margin-inline: auto;
  }

  .team-unified-card {
    aspect-ratio: 1 / 1.18;
    min-height: auto;
  }

  .team-unified-card.carousel-card,
  .team-unified-card.grid-card {
    min-height: auto;
  }

  .org-content {
    padding: 0 0.82rem 0.72rem;
    gap: 0.34rem;
  }

  .org-banner {
    height: 78px;
    min-height: 78px;
    max-height: 78px;
  }

  .org-logo {
    width: 76px;
    height: 76px;
    margin-top: -38px;
  }

  .org-logo img {
    padding: 5px;
  }

  .org-name {
    font-size: 0.98rem;
    margin-top: 0.4rem;
  }

  .org-founded {
    font-size: 0.7rem;
  }

  .org-tags {
    gap: 0.34rem;
  }

  .org-chip {
    padding: 0.18rem 0.48rem;
    font-size: 0.66rem;
  }

  .org-description {
    font-size: 12px;
    min-height: 0;
    max-height: none;
  }

  .org-spacer {
    display: none;
  }

  .team-socials {
    gap: 10px;
    margin-top: 0.55rem;
    padding-top: 10px;
  }

  .team-social-btn {
    width: 30px;
    height: 30px;
  }

  .view-btn {
    padding: 0.46rem 0.7rem;
    font-size: 0.75rem;
  }

  .org-banner-slogan {
    font-size: calc(0.66rem + 4px);
    left: 50%;
    top: 10px;
    bottom: auto;
  }
}

@media (max-width: 520px) {
  .orgs-grid {
    grid-template-columns: 1fr;
    --team-card-w: 272px;
    justify-items: center;
  }

  .team-unified-card {
    aspect-ratio: auto;
    min-height: auto;
    max-width: 272px;
  }

  .team-unified-card.carousel-card,
  .team-unified-card.grid-card {
    min-height: auto;
  }

  .team-unified-card.grid-card {
    width: min(272px, calc(100vw - 36px));
    max-width: 272px;
  }

  .team-unified-card .org-banner {
    height: 78px;
    min-height: 78px;
    max-height: 78px;
  }
}

@media (min-width: 1500px) {
  .teams-hero {
    min-height: 62svh;
    padding: 8.2rem 1rem 1.25rem;
    margin-bottom: 24px;
  }

  .teams-hero-content {
    width: min(100%, 1440px);
    max-width: 1440px;
    padding-top: 1rem;
  }

  .teams-search-wrap {
    width: min(1240px, 96%);
    margin-top: 0;
  }

  .carousel-wrapper,
  .teams-controls,
  .orgs-grid {
    max-width: 1600px;
  }

  .orgs-grid {
    --team-card-w: 290px;
    gap: 1.75rem;
  }
}
