@media (min-width: 922px) {
  body.home #masthead,
  body.home .site-header,
  body.home .ast-primary-header-bar,
  body.home .ast-mobile-header-bar {
    background: transparent;
    box-shadow: none;
  }

  body.home #masthead,
  body.home .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
  }

  body.home .site-header a,
  body.home .site-header .menu-link,
  body.home .site-header .site-title a,
  body.home .site-header .site-description,
  body.home .site-header .ast-button-wrap a,
  body.home .site-header .current-menu-item > a,
  body.home .site-header .current-menu-item > .menu-link,
  body.home .site-header .current_page_item > a,
  body.home .site-header .current_page_item > .menu-link {
    color: var(--kf-white) !important;
  }

  body.home .site-header .custom-logo-link img,
  body.home .site-header .site-logo-img {
    filter: brightness(0) invert(1);
  }

  body.home .kf-hero {
    padding-top: 96px;
  }
}

body.home .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.home #primary,
body.home .site-main,
body.home article,
body.home .entry-content,
body.home .entry-content .wp-block-group {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home .entry-header {
  display: none;
}

.kf-homepage {
  width: 100%;
  color: var(--kf-text-primary);
}

.kf-homepage section {
  position: relative;
  padding: 88px 0;
}

.kf-home-groups {
  background: var(--kf-surface);
}

.kf-home-groups__header {
  margin-bottom: 24px;
  text-align: center;
}

.kf-home-groups__header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
}

.kf-home-groups__header p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #888888;
}

.kf-home-groups__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 20px;
}

.kf-home-groups__stats > div {
  min-width: 128px;
  padding: 12px 20px;
  border: 0.5px solid #eaeaea;
  margin-left: -0.5px;
  background: #ffffff;
  text-align: center;
}

.kf-home-groups__stats strong {
  display: block;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 500;
}

.kf-home-groups__stats span {
  display: block;
  margin-top: 4px;
  color: #888888;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kf-home-groups__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.kf-home-groups__filters button {
  border: 0.5px solid #eaeaea;
  padding: 6px 16px;
  border-radius: 20px;
  background: #ffffff;
  color: #444444;
  font-size: 14px;
  cursor: pointer;
}

.kf-home-groups__filters button:hover:not(.is-active) {
  background: #f5f5f5;
  border-color: #cccccc;
}

.kf-home-groups__filters .is-active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.kf-home-groups__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kf-homepage .kf-home-groups__card {
  padding: 20px;
  border: 0.5px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.kf-home-groups__card:hover {
  border-color: #1a6b55;
}

.kf-home-groups__card-header {
  margin-bottom: 14px;
}

.kf-home-groups__card-header span {
  display: block;
  color: #888888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kf-home-groups__card-header strong {
  display: block;
  margin-top: 6px;
  color: #1a1a1a;
  font-size: 32px;
  font-weight: 500;
}

.kf-home-groups__teams {
  display: grid;
  gap: 12px;
}

.kf-home-groups__team {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  text-decoration: none;
}

.kf-home-groups__team:hover span {
  color: #1a6b55;
}

.kf-home-groups__team img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}

.kf-home-groups__team span {
  font-size: 15px;
  font-weight: 400;
}

.kf-home-groups__card footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 0.5px solid #f0f0f0;
  color: #aaaaaa;
  font-size: 12px;
}

.kf-homepage .kf-home-matches {
  background: #f7faf9;
  padding: 72px 0;
}

.kf-home-matches__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.kf-home-matches__header h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 500;
}

.kf-home-matches__header a {
  color: #1a6b55;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.kf-home-matches__viewport {
  position: relative;
}

.kf-home-matches__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 0;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.kf-home-matches__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.kf-home-matches__track::-webkit-scrollbar {
  display: none;
}

.kf-home-matches__card {
  position: relative;
  display: flex;
  flex: 0 0 260px;
  width: 260px;
  min-height: 292px;
  flex-direction: column;
  padding: 20px 18px;
  border: 0.5px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: none;
  -webkit-user-drag: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kf-home-matches__card:hover {
  border-color: #1a6b55;
  background: #fafffe;
}

.kf-home-matches__card.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0b2e1f 0%, #0f3d2a 40%, #145a3a 100%);
  box-shadow: 0 18px 38px rgba(11, 46, 31, 0.2);
  color: #ffffff;
  transform: scale(1.02);
}

.kf-home-matches__open {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.kf-home-matches__open svg {
  display: block;
}

.kf-home-matches__meta {
  padding-right: 34px;
}

.kf-home-matches__meta span {
  display: block;
  color: #888888;
  font-size: 12px;
}

.kf-home-matches__meta small {
  display: block;
  margin-top: 7px;
  color: #aaaaaa;
  font-size: 11px;
  line-height: 1.35;
}

.kf-home-matches__meta small::before {
  content: "⌖ ";
}

.kf-home-matches__date {
  display: block;
  margin: 28px 0 24px;
  color: #1a1a1a;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.kf-home-matches__teams {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.kf-home-matches__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kf-home-matches__team img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.kf-home-matches__team span {
  overflow: hidden;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kf-home-matches__stage {
  display: block;
  margin-top: auto;
  color: #888888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kf-home-matches__card.is-active .kf-home-matches__meta span,
.kf-home-matches__card.is-active .kf-home-matches__meta small {
  color: rgba(255, 255, 255, 0.62);
}

.kf-home-matches__card.is-active .kf-home-matches__date,
.kf-home-matches__card.is-active .kf-home-matches__team span {
  color: #ffffff;
}

.kf-home-matches__card.is-active .kf-home-matches__stage {
  color: rgba(255, 255, 255, 0.42);
}

.kf-homepage .kf-home-matches__arrow,
.kf-homepage .kf-player-row__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  place-items: center;
  border: 0.5px solid #eaeaea;
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease;
  appearance: none;
}

.kf-homepage .kf-home-matches__arrow:hover,
.kf-homepage .kf-player-row__arrow:hover {
  border-color: #1a6b55;
  background: #f5f5f5;
  color: #1a1a1a;
}

.kf-home-matches__arrow--prev {
  left: -52px;
}

.kf-player-row__arrow--prev {
  left: -52px;
}

.kf-home-matches__arrow--next {
  right: -52px;
}

.kf-player-row__arrow--next {
  right: -52px;
}

.kf-home-matches__arrow[hidden],
.kf-home-matches--no-arrows .kf-home-matches__arrow,
.kf-player-row__arrow[hidden],
.kf-players--no-arrows .kf-player-row__arrow {
  display: none;
}

.kf-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.kf-kicker {
  margin: 0 0 14px;
  color: var(--kf-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kf-section-heading h2,
.kf-hero h1 {
  margin: 0;
}

.kf-section-heading h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
}

.kf-hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  color: var(--kf-white);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 200, 83, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(10, 16, 28, 0.93), rgba(26, 26, 46, 0.8)),
    url("../images/vishal-butolia-ky5fBgkdtY4-unsplash.jpg") center/cover;
}

.kf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(6, 10, 18, 0.6));
}

.kf-hero__content,
.kf-section-heading,
.kf-timer,
.kf-city-strip,
.kf-filters,
.kf-team-grid,
.kf-player-row,
.kf-city-group,
.kf-link-row {
  position: relative;
  z-index: 1;
}

.kf-hero__content {
  padding-top: 48px;
  padding-bottom: 48px;
}

.kf-hero h1 {
  max-width: 8ch;
  font-size: clamp(72px, 11vw, 136px);
  line-height: 0.9;
  color: var(--kf-white);
}

.kf-hero__subtitle {
  margin: 22px 0 12px;
  font-size: clamp(24px, 4vw, 38px);
  color: rgba(255, 255, 255, 0.96);
}

.kf-hero__meta {
  margin: 0 0 34px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.kf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.kf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--kf-primary);
  color: var(--kf-white);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kf-button:hover {
  background: var(--kf-primary-dark);
  color: var(--kf-white);
  transform: translateY(-1px);
}

.kf-button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.kf-button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.kf-homepage .kf-home-hero-slider {
  width: 100vw;
  height: 70vh;
  min-height: 520px;
  margin-left: calc(-50vw + 50%);
  padding: 0;
  overflow: hidden;
  background: #07110e;
  color: #ffffff;
}

.kf-home-hero-slider__slides,
.kf-home-hero-slider__slide {
  position: absolute;
  inset: 0;
}

.kf-home-hero-slider__slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.kf-home-hero-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.kf-home-hero-slider__slide img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kf-home-hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.kf-home-hero-slider__content {
  position: absolute;
  top: 50%;
  left: max(80px, calc((100vw - 1200px) / 2));
  z-index: 5;
  width: min(600px, calc(100% - 48px));
  transform: translateY(-42%);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.kf-home-hero-slider__slide.is-active .kf-home-hero-slider__content {
  opacity: 1;
  transform: translateY(-42%);
  animation: kfHeroTextIn 0.6s ease-out 0.18s both;
}

.kf-home-hero-slider__subtitle {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.kf-home-hero-slider h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
}

.kf-home-hero-slider__description {
  max-width: 450px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.65;
}

.kf-home-hero-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 12px 28px;
  border: 0;
  border-radius: 6px;
  background: #1a6b55;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kf-home-hero-slider__button:hover {
  background: #145a3a;
  color: #ffffff;
  transform: translateY(-1px);
}

.kf-home-hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(7, 17, 14, 0.32);
  color: #ffffff;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kf-home-hero-slider__arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.kf-home-hero-slider__arrow:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(7, 17, 14, 0.58);
  transform: translateY(-50%) scale(1.04);
}

.kf-home-hero-slider__arrow--prev {
  left: 24px;
}

.kf-home-hero-slider__arrow--prev::before {
  transform: translateX(2px) rotate(-45deg);
}

.kf-home-hero-slider__arrow--next {
  right: 24px;
}

.kf-home-hero-slider__arrow--next::before {
  transform: translateX(-2px) rotate(135deg);
}

.kf-home-hero-slider__progress {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: 2px;
}

.kf-home-hero-slider__progress button {
  position: relative;
  width: 2px;
  height: 30px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  overflow: hidden;
}

.kf-home-hero-slider__progress span {
  position: absolute;
  inset: 0 0 auto;
  width: 2px;
  height: 0;
  background: #ffffff;
}

.kf-home-hero-slider__progress button.is-complete span {
  height: 100%;
}

.kf-home-hero-slider__progress button.is-active span {
  animation: kfHeroProgress 6s linear both;
}

.kf-home-hero-slider.is-paused .kf-home-hero-slider__progress button.is-active span {
  animation-play-state: paused;
}

/* .kf-ticket-popup* rules moved to style.css (shared across pages). */

@keyframes kfHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(calc(-42% + 20px));
  }

  to {
    opacity: 1;
    transform: translateY(-42%);
  }
}

@keyframes kfHeroProgress {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

.kf-countdown {
  background: var(--kf-secondary);
  color: var(--kf-white);
}

.kf-countdown .kf-section-heading h2 {
  color: var(--kf-white);
}

.kf-countdown__pdf-link {
  margin: -8px 0 0;
  text-align: center;
}

.kf-countdown__pdf-link a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kf-countdown__pdf-link a:hover,
.kf-countdown__pdf-link a:focus {
  color: var(--kf-white);
}

.kf-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 30px;
}

.kf-timer div {
  padding: 28px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.kf-timer span {
  display: block;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 800;
  line-height: 1;
}

.kf-timer small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kf-city-strip,
.kf-player-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.kf-city-strip::-webkit-scrollbar,
.kf-player-row::-webkit-scrollbar {
  display: none;
}

.kf-city-chip,
.kf-team-card,
.kf-player-card,
.kf-city-card {
  border-radius: 24px;
  box-shadow: var(--kf-shadow);
}

.kf-city-chip {
  display: block;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--kf-white);
  text-decoration: none;
}

.kf-city-chip strong {
  display: block;
  color: var(--kf-white);
}

.kf-city-chip span,
.kf-city-card__content span,
.kf-city-card__content small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.kf-city-chip span {
  color: rgba(255, 255, 255, 0.74);
}

.kf-teams,
.kf-cities {
  background: var(--kf-surface);
}

.kf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.kf-filters button {
  border: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--kf-white);
  color: var(--kf-text-primary);
  font-weight: 700;
  cursor: pointer;
}

.kf-filters .is-active {
  background: var(--kf-primary);
  color: var(--kf-white);
}

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

.kf-team-card,
.kf-player-card {
  display: block;
  padding: 22px 18px;
  background: var(--kf-white);
  color: var(--kf-text-primary);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kf-team-card strong {
  display: block;
  min-height: 2.5em;
  line-height: 1.18;
  text-wrap: balance;
}

.kf-team-card:hover,
.kf-player-card:hover,
.kf-city-card:hover {
  transform: translateY(-4px);
}

.kf-team-card__badge,
.kf-player-card__avatar {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.kf-player-row {
  margin-top: 28px;
  grid-auto-columns: 220px;
}

.kf-player-row__viewport {
  position: relative;
}

.kf-player-row.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.kf-player-showcase-card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kf-player-showcase-card:hover,
.kf-player-showcase-card:focus {
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.kf-player-showcase-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kf-player-showcase-card__number {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: rgba(255, 255, 255, 0.1);
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -55%);
  user-select: none;
}

.kf-player-showcase-card__portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 90%;
  height: 85%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
}

.kf-player-showcase-card__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 16px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.65) 100%);
}

.kf-player-showcase-card__name {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.kf-player-showcase-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.kf-player-showcase-card__flag {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  flex: 0 0 16px;
  object-fit: cover;
}

.kf-player-showcase-card__jersey {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.kf-player-showcase-card--no-portrait .kf-player-showcase-card__number {
  color: rgba(255, 255, 255, 0.12);
  font-size: 140px;
  transform: translate(-50%, -50%);
}

.kf-player-showcase-card--no-portrait .kf-player-showcase-card__info {
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.45) 100%);
}

.kf-city-group {
  margin-top: 36px;
}

.kf-city-group h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.kf-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.kf-city-card {
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 20px;
  color: var(--kf-white);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.16), rgba(26, 26, 46, 0.86)),
    linear-gradient(135deg, rgba(0, 200, 83, 0.66), rgba(26, 26, 46, 0.92));
}

.kf-city-card__content small {
  color: rgba(255, 255, 255, 0.82);
}

.kf-link-row {
  margin-top: 26px;
}

.kf-link-row a {
  color: var(--kf-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.kf-homepage .kf-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.kf-homepage .kf-flag-container {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kf-homepage .kf-flag-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kf-homepage .kf-flag-container.kf-flag--inline {
  width: 24px;
  height: 18px;
  border-radius: 4px;
}

.kf-homepage .kf-flag-container.kf-flag--hero {
  width: 160px;
  height: 112px;
  border-radius: 8px;
}

.kf-homepage .kf-flag-img {
  display: block;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.kf-homepage .kf-flag-img--small {
  width: 24px;
  height: 18px;
}

.kf-homepage .kf-flag-img--medium {
  width: 64px;
  max-height: 48px;
}

.kf-homepage .kf-flag-img--large {
  width: 160px;
  max-height: 120px;
}

.kf-homepage .kf-flag--inline {
  line-height: 0;
}

.kf-homepage [data-group].is-hidden,
.kf-homepage [data-kf-filter-section].is-hidden,
.kf-homepage .kf-home-groups__card.is-hidden {
  display: none !important;
}

@media (max-width: 921px) {
  .kf-homepage section {
    padding: 72px 0;
  }

  .kf-homepage .kf-home-hero-slider {
    height: 55vh;
    min-height: 440px;
    padding: 0;
  }

  .kf-home-hero-slider__content {
    left: 48px;
    width: min(560px, calc(100% - 32px));
  }

  .kf-home-hero-slider h1 {
    font-size: 32px;
  }

  .kf-container {
    padding: 0 16px;
  }

  .kf-hero {
    min-height: auto;
  }

  .kf-hero h1 {
    font-size: clamp(56px, 16vw, 92px);
  }

  .kf-timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kf-home-groups__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kf-home-matches__arrow--prev {
    left: -8px;
  }

  .kf-player-row__arrow--prev {
    left: -8px;
  }

  .kf-home-matches__arrow--next {
    right: -8px;
  }

  .kf-player-row__arrow--next {
    right: -8px;
  }
}

@media (max-width: 768px) {
  body.home .site-header .custom-logo-link img,
  body.home .site-header .site-logo-img {
    filter: brightness(0) !important;
  }
}

@media (max-width: 640px) {
  .kf-homepage .kf-home-hero-slider {
    height: 50vh;
    min-height: 420px;
    padding: 0;
  }

  .kf-home-hero-slider__content {
    left: 24px;
    width: calc(100% - 48px);
  }

  .kf-home-hero-slider h1 {
    font-size: 28px;
  }

  .kf-home-hero-slider__description {
    display: none;
  }

  .kf-home-hero-slider__button {
    width: auto;
  }

  .kf-home-hero-slider__arrow {
    width: 38px;
    height: 38px;
  }

  .kf-home-hero-slider__arrow::before {
    width: 10px;
    height: 10px;
  }

  .kf-home-hero-slider__arrow--prev {
    left: 10px;
  }

  .kf-home-hero-slider__arrow--next {
    right: 10px;
  }

  .kf-home-hero-slider__progress {
    right: 18px;
    bottom: 18px;
  }

  .kf-hero__actions {
    flex-direction: column;
  }

  .kf-button {
    width: 100%;
  }

  .kf-timer {
    grid-template-columns: 1fr;
  }

  .kf-home-groups__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kf-home-groups__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kf-home-groups__stats > div {
    min-width: 0;
    margin-left: 0;
    padding: 12px 8px;
  }

  .kf-home-matches__header {
    align-items: flex-start;
  }

  .kf-home-matches__track {
    margin-right: -16px;
    padding-right: 16px;
  }

  .kf-home-matches__card {
    flex-basis: 240px;
    width: 240px;
  }

  .kf-homepage .kf-home-matches__arrow,
  .kf-homepage .kf-player-row__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kf-home-hero-slider__slide,
  .kf-home-hero-slider__content,
  .kf-home-hero-slider__button {
    transition: none;
  }

  .kf-home-hero-slider__slide.is-active .kf-home-hero-slider__content,
  .kf-home-hero-slider__progress button.is-active span {
    animation: none;
  }

  .kf-home-hero-slider__slide.is-active .kf-home-hero-slider__content {
    opacity: 1;
    transform: translateY(-42%);
  }

  .kf-home-hero-slider__progress button.is-active span {
    height: 100%;
  }
}
