.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 90px clamp(20px, 7vw, 90px) 60px;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(17, 19, 24, 0.72), rgba(17, 19, 24, 0.2)),
    url("../../assets/volleyball_background_ki_theme.jpg");
  background-size: cover;
  background-position: center;
  border-radius: calc(var(--radius) + 10px);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  color: var(--white);
}

.hero-content h1 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin: 0 0 16px;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero-content {
  color: rgba(245, 247, 255, 0.96);
}

[data-theme="dark"] .hero-lede {
  color: rgba(245, 247, 255, 0.82);
}

[data-theme="dark"] .hero-actions .button.ghost {
  color: rgba(245, 247, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 26px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.hero-highlights div {
  background: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-highlights .stat {
  display: block;
  color: var(--blue-dark);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-highlights .label {
  display: block;
  margin-top: 6px;
  color: rgba(17, 19, 24, 0.82);
  font-weight: 600;
}

.hero-card {
  background: rgba(17, 19, 24, 0.7);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 20%, rgba(255, 255, 255, 0.15));
  opacity: 0.6;
  pointer-events: none;
}

.hero-card h2 {
  margin-top: 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2.2rem;
}

[data-theme="dark"] .hero-card {
  background: rgba(10, 14, 22, 0.7);
  color: rgba(245, 247, 255, 0.96);
}

[data-theme="dark"] .hero-card p {
  color: rgba(245, 247, 255, 0.82);
}

[data-theme="dark"] .hero-highlights div {
  background: rgba(20, 24, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-highlights .stat {
  color: rgba(245, 247, 255, 0.96);
}

[data-theme="dark"] .hero-highlights .label {
  color: rgba(245, 247, 255, 0.82);
}

.team-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-tabs {
  display: grid;
  gap: 18px;
}

.team-tab {
  border-radius: 22px;
}

.team-tab-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  text-align: left;
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  color: var(--ink);
  background-color: rgba(20, 24, 36, 0.82);
  background-image: var(--tab-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 36px rgba(12, 17, 28, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.team-tab-trigger:hover,
.team-tab-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(12, 17, 28, 0.16);
}

.team-tab-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  z-index: 0;
}

.team-tab-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(31, 79, 163, 0.25), transparent 55%);
  opacity: 0.9;
  z-index: 0;
}

.team-tab-trigger > * {
  position: relative;
  z-index: 1;
}

.team-tab-title {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: 0.6px;
  display: block;
  grid-column: 1;
}

.team-tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(17, 19, 24, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.team-tab.is-open .team-tab-trigger {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.team-tab.is-open .team-tab-icon {
  transform: none;
}

.team-tab-panel {
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-top: none;
  border-radius: 0 0 22px 22px;
  padding: 24px;
  background: var(--white);
}

.team-subtabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.team-subtab-trigger {
  border: 1px solid rgba(17, 19, 24, 0.15);
  background: rgba(17, 19, 24, 0.06);
  color: var(--ink);
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-subtab-trigger.is-active {
  background: rgba(17, 19, 24, 0.92);
  color: var(--white);
  border-color: rgba(17, 19, 24, 0.9);
  box-shadow: 0 12px 22px rgba(12, 17, 28, 0.18);
}

.team-subtab-panel {
  margin-bottom: 10px;
}

.team-tab-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.team-tab-content--single {
  grid-template-columns: 1fr;
}

.team-tab-info h3 {
  margin-top: 0;
}

.team-tab-info ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
}

.team-tab-info li {
  padding-left: 18px;
  margin-bottom: 10px;
  position: relative;
}

.team-tab-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.team-tab-info > .team-training,
.team-tab-info > .team-social,
.team-tab-info > .team-schedule,
.team-tab-info > .team-standings {
  margin-top: 16px;
}

.phase-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.phase-switch-btn {
  border: 1px solid rgba(17, 19, 24, 0.14);
  background: rgba(17, 19, 24, 0.06);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.phase-switch-btn.is-active {
  background: rgba(17, 19, 24, 0.92);
  color: var(--white);
  border-color: rgba(17, 19, 24, 0.92);
  box-shadow: 0 10px 18px rgba(12, 17, 28, 0.18);
}

.team-training {
  background: rgba(31, 79, 163, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(31, 79, 163, 0.18);
}

.team-training h4 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.team-training p {
  margin: 0;
}

.team-training span {
  font-weight: 600;
  display: block;
  margin: 0;
}

.team-training small {
  color: rgba(17, 19, 24, 0.7);
  display: block;
  margin: 0;
}

.team-social {
  background: rgba(118, 54, 38, 0.12);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(118, 54, 38, 0.35);
  display: grid;
  gap: 8px;
}

.team-social p {
  margin: 0;
  font-weight: 600;
}

.team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 19, 24, 0.12);
  font-weight: 600;
  width: fit-content;
}

.team-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.team-schedule,
.team-standings {
  background: rgba(31, 79, 163, 0.06);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(31, 79, 163, 0.15);
  box-shadow: 0 14px 26px rgba(12, 17, 28, 0.08);
  display: grid;
  gap: 8px;
}

.team-standings {
  background: rgba(18, 48, 106, 0.08);
  border-color: rgba(18, 48, 106, 0.2);
}

.team-schedule h4,
.team-standings h4 {
  margin: 0;
  font-size: 1.1rem;
}

.team-schedule small {
  color: rgba(17, 19, 24, 0.7);
}

.fixture-subtitle {
  margin: 12px 0 0;
  font-weight: 700;
}

.fixture-detail {
  color: rgba(17, 19, 24, 0.76);
}

.fixture-compact {
  margin-top: 4px;
}

.fixture-next {
  grid-template-columns: auto auto auto;
  justify-content: start;
  column-gap: 12px;
}

.teams-highlight {
  margin: 10px 0 96px;
}

.teams-highlight .fixture-card h2 {
  margin: 0 0 8px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.team-tab-gallery .team-slider {
  margin: 0;
}

[data-theme="dark"] .team-tab-trigger {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .team-tab-trigger::before {
  background: linear-gradient(120deg, rgba(20, 24, 36, 0.92), rgba(20, 24, 36, 0.7));
}

[data-theme="dark"] .team-tab-trigger::after {
  background: linear-gradient(140deg, rgba(93, 134, 219, 0.35), transparent 55%);
}

[data-theme="dark"] .team-training small {
  color: rgba(245, 247, 255, 0.7);
}

[data-theme="dark"] .team-social {
  background: rgba(255, 91, 63, 0.18);
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .team-social-link {
  background: rgba(20, 24, 36, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .team-tab-icon {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(20, 24, 36, 0.9);
  color: rgba(245, 247, 255, 0.9);
}

[data-theme="dark"] .team-tab-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 24, 36, 0.95);
}

[data-theme="dark"] .team-subtab-trigger {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 255, 0.85);
}

[data-theme="dark"] .team-subtab-trigger.is-active {
  background: rgba(245, 247, 255, 0.9);
  color: rgba(12, 17, 28, 0.95);
  border-color: rgba(245, 247, 255, 0.9);
}

[data-theme="dark"] .phase-switch-btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 255, 0.88);
}

[data-theme="dark"] .phase-switch-btn.is-active {
  background: rgba(245, 247, 255, 0.92);
  color: rgba(12, 17, 28, 0.96);
  border-color: rgba(245, 247, 255, 0.92);
}

[data-theme="dark"] .team-training {
  background: rgba(93, 134, 219, 0.15);
  border-color: rgba(93, 134, 219, 0.3);
}

[data-theme="dark"] .team-schedule,
[data-theme="dark"] .team-standings {
  background: rgba(93, 134, 219, 0.14);
  border-color: rgba(93, 134, 219, 0.25);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .team-standings {
  background: rgba(58, 94, 168, 0.22);
  border-color: rgba(58, 94, 168, 0.35);
}

[data-theme="dark"] .team-schedule small,
[data-theme="dark"] .fixture-detail,
[data-theme="dark"] .fixture-meta,
[data-theme="dark"] .fixture-subtitle {
  color: rgba(245, 247, 255, 0.88);
}

[data-theme="dark"] .table-row-header {
  opacity: 0.84;
}

[data-theme="dark"] .table-row.is-highlight {
  background: rgba(255, 91, 63, 0.18);
  border-color: rgba(255, 91, 63, 0.28);
}

.team-galleries {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-gallery h3 {
  margin: 0 0 12px;
}

.team-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: 0 14px 30px rgba(12, 17, 28, 0.12);
  aspect-ratio: 4 / 3;
}

.team-slider img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: rgba(17, 19, 24, 0.03);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(17, 19, 24, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.training-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trainer-search {
  position: relative;
}

.trainer-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(130deg, rgba(31, 79, 163, 0.12), rgba(255, 91, 63, 0.12)),
    var(--white);
  border: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: var(--shadow);
}

.trainer-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 0;
}

.trainer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trainer-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 79, 163, 0.12);
  font-weight: 600;
}

.trainer-cta {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: 0 16px 28px rgba(12, 17, 28, 0.12);
}

.trainer-cta h3 {
  margin: 0;
}

[data-theme="dark"] .trainer-callout {
  background:
    linear-gradient(130deg, rgba(93, 134, 219, 0.2), rgba(255, 91, 63, 0.16)),
    rgba(20, 24, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .trainer-tags span {
  background: rgba(93, 134, 219, 0.2);
}

[data-theme="dark"] .trainer-cta {
  background: rgba(20, 24, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

.section h2 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

@media (min-width: 901px) {
  .hero-card {
    max-width: 410px;
    justify-self: end;
    padding: 26px 28px;
  }

  .hero-card h2 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .team-tab-content {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 900px) and (orientation: portrait) {
  .team-standings .table {
    display: grid;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .team-standings .table-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: 30px minmax(0, 1.65fr) 56px 64px 44px 56px;
    gap: 8px;
    padding: 9px 10px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .team-standings .table-row-header {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .team-standings .table-row span:nth-child(2) {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 70px;
  }

  #teams.section {
    padding-inline: 8px;
  }

  #teams .section-head {
    padding-inline: 12px;
  }

  .teams-highlight {
    margin: 10px 0 56px;
  }

  .team-tabs {
    gap: 14px;
  }

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

  .team-tab-trigger {
    padding: 16px;
    border-color: rgba(17, 19, 24, 0.18);
    box-shadow: 0 18px 32px rgba(12, 17, 28, 0.16);
  }

  .team-tab-icon {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  .team-tab-panel {
    padding: 16px 12px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fixture {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fixture-next {
    justify-content: center;
  }

  .trainer-callout {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
