@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
  --bg: #020202;
  --bg-2: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-3: rgba(213, 178, 107, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --soft: #dcdcdc;
  --muted: #9c9c9c;
  --gold: #d5b26b;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --radius-sm: 18px;
  --header-h: 78px;
  --max: 1320px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(213, 178, 107, 0.10), transparent 28%),
    radial-gradient(circle at right 10%, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, #000 0%, #040404 55%, #000 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.24;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.30) 100%);
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.loader-title,
.overlay-card h3,
.overlay-nav a,
.hero-name h1,
.hero-subtitle,
.hero-page-title,
.section-title,
.panel h3,
.card-title,
.timeline-title,
.trophy-card h3,
.footer-mark,
.kpi-value,
.stat-number,
.trophy-count-big,
.club-card h3,
.gallery-caption strong,
.slider-content h3,
.career-story-main-title,
.career-story-year,
.career-story-title,
.career-intro-number {
  font-family: 'Bebas Neue', sans-serif;
}

/* =========================
   PROGRESS / LOADER
   ========================= */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1400;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0%, var(--gold) 100%);
  box-shadow: 0 0 26px rgba(213, 178, 107, 0.45);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .45s ease, visibility .45s ease;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-box {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.loader-logo {
  width: 100px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
  animation: float 2.4s ease-in-out infinite;
}

.loader-title {
  font-size: 2rem;
  letter-spacing: 0.16em;
}

.loader-bar {
  width: 210px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.loader-bar span {
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, #fff, var(--gold));
  animation: loadbar 1.2s ease-in-out infinite;
}

/* =========================
   HEADER / MENU
   ========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.10);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.menu-toggle,
.header-icon,
.overlay-close,
.lightbox-btn,
.lightbox-close,
.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.menu-toggle:hover,
.header-icon:hover,
.overlay-close:hover,
.lightbox-btn:hover,
.lightbox-close:hover,
.slider-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: #fff;
}

.brand-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
}

.brand-center img {
  width: 100%;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.header-right,
.social-header,
.social-footer,
.footer-left,
.footer-right,
.hero-page-bottom,
.hero-quick,
.overlay-chips,
.hero-cta,
.filter-bar,
.gallery-count-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  position: relative;
  overflow: hidden;
}

.social-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  background: linear-gradient(90deg, #fff 0%, var(--gold) 100%);
}

.social-link:hover::after {
  transform: scaleX(1);
}

.tm-icon {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1300;
  padding: 110px 24px 60px;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s ease, visibility .32s ease;
}

.overlay-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-close {
  position: absolute;
  right: 24px;
  top: 20px;
}

.overlay-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
}

.overlay-nav {
  display: grid;
  gap: 12px;
}

.overlay-nav a {
  width: fit-content;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.24);
  transition: color .25s ease, transform .25s ease;
}

.overlay-nav a:hover,
.overlay-nav a.active {
  color: #fff;
  transform: translateX(10px);
}

.overlay-card {
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.overlay-card h3 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.overlay-card p {
  color: var(--soft);
  line-height: 1.8;
}

.overlay-chip,
.meta-pill,
.filter-btn,
.gallery-tag,
.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
}

/* =========================
   HERO GLOBAL
   ========================= */

main {
  position: relative;
}

.hero-home,
.hero-page {
  position: relative;
  overflow: clip;
}

.hero-home {
  min-height: 100svh;
}

.hero-page {
  min-height: 72svh;
}

.hero-home::before,
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.11), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(213, 178, 107, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.82));
  z-index: 0;
}

.hero-home::after,
.hero-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 42%, rgba(0, 0, 0, 0.28));
  z-index: 0;
}

.hero-stage {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 10px);
}

.hero-photo {
  position: absolute;
  inset: calc(var(--header-h) + 4px) 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.hero-photo img {
  width: min(980px, 94vw);
  height: min(88svh, 980px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform .22s ease-out, opacity .25s ease;
}

.hero-photo.is-missing img {
  opacity: 0;
}

.hero-name {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(var(--header-h) + 20px) 0 clamp(28px, 6vw, 64px);
  text-align: center;
}

.hero-name-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-name h1 {
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 0.84;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
}

.hero-name h1 span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-page-inner {
  position: relative;
  z-index: 2;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 34px) 0 64px;
}

.hero-page-copy {
  max-width: 820px;
}

.hero-page-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.hero-page-kicker::before,
.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(213, 178, 107, 0.55);
}

.hero-page-title {
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-page-bottom,
.hero-quick {
  margin-top: 24px;
}

.hero-summary,
.hero-page-text,
.section-desc,
.panel p,
.timeline-box p,
.trophy-card p,
.club-card p,
.gallery-caption span,
.slider-content p {
  color: var(--soft);
  line-height: 1.8;
}

/* =========================
   BUTTONS / SHARED BLOCKS
   ========================= */

.btn {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

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

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.section {
  position: relative;
  padding: 90px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel,
.gallery-item,
.slider-card,
.table-wrap,
.career-club-card,
.trophy-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.panel,
.career-club-card,
.trophy-card {
  padding: 24px;
}

.panel::before,
.gallery-item::before,
.slider-card::before,
.career-club-card::before,
.trophy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  transform: translateX(-150%);
  transition: transform .6s ease;
}

.panel:hover::before,
.gallery-item:hover::before,
.slider-card:hover::before,
.career-club-card:hover::before,
.trophy-card:hover::before {
  transform: translateX(150%);
}

.panel:hover,
.gallery-item:hover,
.slider-card:hover,
.career-club-card:hover,
.trophy-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.panel,
.gallery-item,
.slider-card,
.career-club-card,
.trophy-card {
  transition: transform .3s ease, border-color .3s ease;
}

/* =========================
   GRIDS
   ========================= */

.info-grid-2,
.info-grid-3,
.info-grid-4,
.club-grid,
.stats-grid,
.contact-grid,
.trophy-grid,
.feature-grid,
.kpi-grid,
.identity-grid,
.palmares-grid,
.career-clubs-grid {
  display: grid;
  gap: 18px;
}

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

.info-grid-3,
.feature-grid,
.palmares-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid-4,
.stats-grid,
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.club-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

/* =========================
   HOME PAGE
   ========================= */

.home-hero .hero-name-inner {
  gap: 20px;
}

.hero-cta {
  justify-content: center;
  margin-top: 8px;
}

.hero-cta .btn {
  min-width: 190px;
}

.identity-feature {
  grid-column: span 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.identity-feature-media {
  height: 340px;
  overflow: hidden;
}

.identity-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease, filter .5s ease;
  filter: grayscale(0.06) contrast(1.03) saturate(0.96);
}

.identity-feature:hover .identity-feature-media img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05) saturate(1.02);
}

.identity-feature-content {
  padding: 24px;
}

.identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.panel-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(213, 178, 107, 0.22), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(213, 178, 107, 0.22);
  color: var(--gold);
  font-size: 1.25rem;
}

.card-title {
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.meta-lines,
.player-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.meta-line,
.player-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-line span:last-child,
.player-list strong {
  color: var(--soft);
  font-weight: 600;
}

.player-list li {
  align-items: center;
}

/* =========================
   KPI / TITLES / CLUBS
   ========================= */

.kpi-value,
.stat-number {
  display: block;
  margin-bottom: 6px;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.label-small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.club-card {
  text-align: center;
}

.club-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.club-card p {
  max-width: 24ch;
  margin: 0 auto;
}

.trophy-card {
  text-align: center;
}

.trophy-visual {
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(213, 178, 107, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trophy-visual img {
  max-width: 74%;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.38));
  transition: transform .35s ease;
}

.trophy-card:hover .trophy-visual img {
  transform: translateY(-6px) scale(1.04);
}

.trophy-count-big {
  display: block;
  margin-bottom: 8px;
  font-size: 4.1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.trophy-card h3 {
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.trophy-card p {
  max-width: 30ch;
  margin: 0 auto;
}

/* =========================
   SLIDER
   ========================= */

.slider-shell {
  position: relative;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 30%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-card {
  min-height: 420px;
  scroll-snap-align: start;
  padding: 0;
}

.slider-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.04) saturate(0.95);
  transition: transform .5s ease, filter .5s ease;
}

.slider-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1.05);
}

.slider-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.85));
}

.slider-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.slider-content h3 {
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slider-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* =========================
   TABLE
   ========================= */

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table td {
  color: var(--soft);
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.club-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.career-table-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 26px;
}

/* =========================
   GALLERY / LIGHTBOX
   ========================= */

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
}

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

.gallery-item {
  min-height: 320px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.04) saturate(0.94);
  transition: transform .5s ease, filter .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.05) saturate(1.06);
}

.gallery-item.is-hidden,
.is-missing {
  display: none !important;
}

.gallery-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.gallery-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.gallery-caption strong {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.gallery-count,
.empty-state,
.lightbox-counter,
.footer-copy {
  color: var(--muted);
}

.empty-state {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: center;
  display: none;
}

.empty-state.show {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.94);
  padding: 28px;
}

.lightbox.open {
  display: grid;
}

.lightbox-inner {
  position: relative;
  width: min(1220px, 100%);
}

.lightbox-media {
  position: relative;
  width: 100%;
  min-height: min(72svh, 760px);
  border-radius: 28px;
  overflow: hidden;
  background: #040404;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.lightbox-media img {
  width: 100%;
  max-height: min(72svh, 760px);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-top,
.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-top {
  margin-bottom: 12px;
}

.lightbox-bottom {
  margin-top: 14px;
  flex-wrap: wrap;
}

.lightbox-meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.lightbox-controls {
  position: absolute;
  inset: 50% 14px auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-controls .lightbox-btn {
  pointer-events: auto;
}

/* =========================
   CAREER PAGE - CLEAN FIX
   ========================= */

.career-hero {
  min-height: 88svh;
  isolation: isolate;
}

.career-hero .hero-page-inner {
  min-height: 88svh;
  align-items: flex-end;
  padding-bottom: 84px;
}

.career-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 178, 107, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.career-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.03);
  filter: grayscale(0.06) contrast(1.05) saturate(0.96);
}

.career-hero-bg.no-image::before {
  content: "HG22";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.16);
}

.career-intro-band {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  padding-bottom: 28px;
}

.career-intro-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.career-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.career-intro-number {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: #fff;
}

.career-intro-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.career-story-section {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, #efe9df 0%, #e5ddd2 100%);
  color: #111;
  overflow: hidden;
}

.career-story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left top, rgba(0, 0, 0, 0.03), transparent 24%),
    radial-gradient(circle at right bottom, rgba(0, 0, 0, 0.04), transparent 20%);
  pointer-events: none;
}

.career-story-head {
  margin-bottom: 48px;
}

.career-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #8d6a2e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.career-story-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8d6a2e;
}

.career-story-main-title {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 14px;
}

.career-story-head p {
  max-width: 760px;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.9;
}

.career-story-list {
  position: relative;
  display: grid;
  gap: 30px;
}

.career-story-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 122px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.10), rgba(17, 17, 17, 0.26), rgba(17, 17, 17, 0.10));
}

.career-story-row {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.career-story-side {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: 26px;
}

.career-story-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  border: 5px solid #f8f4ed;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.10);
  margin-left: 112px;
}

.career-story-year {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  color: #111;
  text-transform: uppercase;
}

.career-story-panel {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.career-story-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.15fr);
  align-items: stretch;
}

.career-story-row.is-reverse .career-story-copy {
  order: 2;
}

.career-story-row.is-reverse .career-story-media {
  order: 1;
}

.career-story-copy {
  padding: 30px;
}

.career-story-club {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.career-story-logo {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.career-story-title {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}

.career-story-subtitle {
  display: inline-block;
  margin-top: 6px;
  color: #8d6a2e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.career-story-copy p {
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.85;
}

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

.career-story-tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.10);
  color: #111;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-story-tag.is-gold {
  background: rgba(141, 106, 46, 0.10);
  border-color: rgba(141, 106, 46, 0.24);
  color: #8d6a2e;
}

.career-story-media {
  position: relative;
  min-height: 360px;
  background: #d7d1c7;
  overflow: hidden;
}

.career-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.career-story-row:hover .career-story-media img {
  transform: scale(1.03);
}

.career-story-media.no-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.06), rgba(17, 17, 17, 0.02)),
    #d7d1c7;
}

.career-story-media.no-image::before {
  content: "Image indisponible";
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
}

.career-club-card {
  padding: 24px;
}

.career-club-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.career-club-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.career-club-card h3 {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.career-years {
  display: inline-block;
  color: var(--gold);
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(18px);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
}

.footer-link {
  opacity: 0.9;
  transition: transform .25s ease, opacity .25s ease;
}

.footer-link:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.footer-mark {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.footer-copy {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   REVEAL / ANIMATIONS
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.mt-18 {
  margin-top: 18px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes loadbar {
  0% {
    transform: translateX(-120%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(260%);
  }
}

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

@media (max-width: 1180px) {

  .info-grid-4,
  .contact-grid,
  .gallery-grid,
  .club-grid,
  .kpi-grid,
  .career-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid-3,
  .trophy-grid,
  .feature-grid,
  .stats-grid,
  .palmares-grid,
  .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-feature {
    grid-column: span 2;
  }

  .overlay-grid {
    grid-template-columns: 1fr;
  }

  .slider-track {
    grid-auto-columns: minmax(280px, 44%);
  }

  .career-story-list::before {
    left: 90px;
  }

  .career-story-row {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .career-story-dot {
    margin-left: 80px;
  }

  .career-story-inner {
    grid-template-columns: 1fr;
  }

  .career-story-row.is-reverse .career-story-copy,
  .career-story-row.is-reverse .career-story-media {
    order: initial;
  }

  .career-story-media {
    min-height: 320px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }

  .brand-center {
    width: 84px;
  }

  .hero-name h1 {
    font-size: clamp(4.2rem, 18vw, 9rem);
  }

  .hero-page-title {
    font-size: clamp(3.2rem, 12vw, 6rem);
  }

  .slider-track {
    grid-auto-columns: minmax(260px, 70%);
  }

  .lightbox-controls {
    inset: auto 0 10px;
    transform: none;
    justify-content: center;
    gap: 12px;
  }

  .career-story-list::before {
    left: 14px;
  }

  .career-story-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 42px;
  }

  .career-story-side {
    padding-top: 0;
    gap: 10px;
  }

  .career-story-dot {
    position: absolute;
    top: 8px;
    left: -42px;
    margin-left: 0;
  }

  .career-story-year {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .career-clubs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .section,
  .section-tight {
    padding: 68px 0;
  }

  .info-grid-2,
  .info-grid-3,
  .info-grid-4,
  .feature-grid,
  .club-grid,
  .stats-grid,
  .contact-grid,
  .trophy-grid,
  .gallery-grid,
  .kpi-grid,
  .identity-grid,
  .palmares-grid,
  .career-intro-grid,
  .career-clubs-grid {
    grid-template-columns: 1fr;
  }

  .identity-feature {
    grid-column: span 1;
  }

  .identity-feature-media {
    height: 280px;
  }

  .hero-photo img {
    width: min(96vw, 720px);
    height: min(82svh, 760px);
  }

  .hero-name {
    align-items: flex-end;
    padding-bottom: 70px;
  }

  .hero-name h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .gallery-item {
    min-height: 280px;
  }

  .gallery-controls,
  .lightbox-top,
  .lightbox-bottom,
  .footer-inner,
  .section-head,
  .hero-page-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn,
  .gallery-actions .btn,
  .hero-cta .btn {
    width: 100%;
    min-width: 0;
  }

  .slider-track {
    grid-auto-columns: minmax(250px, 86%);
  }

  .trophy-visual {
    height: 180px;
  }

  .trophy-count-big {
    font-size: 3.3rem;
  }

  .career-intro-band {
    margin-top: -30px;
  }

  .career-story-section {
    padding: 80px 0;
  }

  .career-story-copy {
    padding: 22px;
  }

  .career-story-media {
    min-height: 240px;
  }

  .career-story-club {
    align-items: flex-start;
  }

  .career-story-logo {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }

  .career-story-title {
    font-size: 1.6rem;
  }

  .career-club-head {
    align-items: flex-start;
  }

  .career-club-logo {
    width: 64px;
    height: 64px;
  }
}

/* =========================
   MATCH PANEL
   ========================= */

.match-panel {
  display: grid;
  gap: 16px;
}

.match-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.match-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--soft);
  font-weight: 700;
  transition: .25s ease;
}

.match-tab.active,
.match-tab:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.match-feature {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 16px;
}

.match-empty {
  color: var(--muted);
  line-height: 1.7;
}

.match-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.match-status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.match-status-pill.upcoming {
  background: rgba(213, 178, 107, 0.12);
  border: 1px solid rgba(213, 178, 107, 0.28);
  color: var(--gold);
}

.match-status-pill.finished {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.match-comp {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.match-team {
  display: grid;
  gap: 6px;
  text-align: center;
}

.match-team strong {
  font-size: 1.05rem;
}

.match-team span {
  color: var(--muted);
  font-size: .88rem;
}

.match-vs {
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-score-center {
  min-width: 86px;
  border-radius: 18px;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.match-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 700;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-box {
  padding: 14px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.countdown-box strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.countdown-box span {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.match-live-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.match-list {
  display: grid;
  gap: 10px;
}

.match-list-item {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: .25s ease;
}

.match-list-item:hover,
.match-list-item.active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.match-list-top,
.match-list-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.match-list-top strong {
  font-size: .98rem;
}

.match-list-top span,
.match-list-bottom span {
  color: var(--muted);
  font-size: .80rem;
}

.match-mini-pill,
.match-mini-score {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem !important;
  font-weight: 800;
}

.match-mini-pill {
  background: rgba(213, 178, 107, 0.12);
  color: var(--gold) !important;
}

.match-mini-score {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

@media (max-width: 640px) {
  .match-teams {
    grid-template-columns: 1fr;
  }

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

/* =========================
   STATS PAGE ENHANCED
   ========================= */

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

.pill-link {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--soft);
  font-weight: 700;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.pill-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.08);
}

.recent-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.recent-feature-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.recent-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.recent-feature-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(213, 178, 107, 0.12);
  border: 1px solid rgba(213, 178, 107, 0.28);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recent-feature-comp {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.recent-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.recent-team {
  display: grid;
  gap: 8px;
  text-align: center;
}

.recent-team strong {
  font-size: 1.05rem;
}

.recent-team span {
  color: var(--muted);
  font-size: 0.84rem;
}

.recent-score {
  min-width: 100px;
  min-height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.05em;
}

.recent-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.recent-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.recent-note {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-match-item {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.recent-match-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.recent-match-top,
.recent-match-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.recent-match-top strong {
  font-size: 1rem;
}

.recent-match-top span,
.recent-match-bottom span {
  color: var(--muted);
  font-size: 0.82rem;
}

.recent-mini-score {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-size: 0.76rem !important;
  font-weight: 800;
}

.stats-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats-performance-card {
  min-height: 100%;
}

.stats-performance-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.stats-performance-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(213, 178, 107, 0.22), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(213, 178, 107, 0.22);
}

.stats-performance-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-performance-subtitle {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.performance-values {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.performance-value {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.performance-value span:last-child {
  color: var(--soft);
  font-weight: 700;
}

.stats-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.table-total-row td {
  background: rgba(213, 178, 107, 0.08);
  color: #fff;
  font-weight: 800;
}

.table-total-row:hover td {
  background: rgba(213, 178, 107, 0.12) !important;
}

@media (max-width: 1180px) {

  .recent-results-grid,
  .stats-performance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .recent-feature-top,
  .recent-match-top,
  .recent-match-bottom,
  .recent-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-score-row {
    grid-template-columns: 1fr;
  }

  .recent-score {
    min-width: 0;
    width: 100%;
  }
}
/* =========================
   STATS HERO
   ========================= */

.hero-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 178, 107, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.hero-page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.03);
  filter: grayscale(0.06) contrast(1.05) saturate(0.96);
}

.stats-hero {
  min-height: 88svh;
  isolation: isolate;
}

.stats-hero .hero-page-inner {
  min-height: 88svh;
  align-items: flex-end;
  padding-bottom: 84px;
}

/* =========================
   STATS INTRO BAND
   ========================= */

.stats-intro-band {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  padding-bottom: 28px;
}

.stats-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-intro-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-intro-number {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: #fff;
}

.stats-intro-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .stats-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats-intro-band {
    margin-top: -30px;
  }

  .stats-intro-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   GALLERY PAGE ENHANCED
   ========================= */

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-video-card {
  min-height: 320px;
  cursor: pointer;
  padding: 0;
}

.gallery-video-thumb {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.gallery-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.04) saturate(0.94);
  transition: transform .5s ease, filter .5s ease;
}

.gallery-video-card:hover .gallery-video-thumb img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05) saturate(1.04);
}

.gallery-video-card::after,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.84));
  pointer-events: none;
}

.video-play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 1.3rem;
}

.gallery-video-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.gallery-video-meta strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery-video-meta span {
  color: var(--soft);
  line-height: 1.7;
}

.lightbox-media video {
  display: none;
  width: 100%;
  max-height: min(72svh, 760px);
  object-fit: contain;
  margin: 0 auto;
  background: #000;
}

.text-muted {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-video-card,
  .gallery-video-thumb {
    min-height: 280px;
  }
}
#lightboxYoutube {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
}
.lightbox-media img,
.lightbox-media video,
.lightbox-media iframe {
  width: 100%;
  max-width: 100%;
}

/* =========================
   LANGUAGE SWITCHER
========================= */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 255, 255, 0.10);
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 8px;
    gap: 6px;
    padding: 5px 7px;
  }

  .lang-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* =========================
   RTL SUPPORT
========================= */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .section-head,
html[dir="rtl"] .hero-page-bottom,
html[dir="rtl"] .hero-quick,
html[dir="rtl"] .meta-lines,
html[dir="rtl"] .player-list,
html[dir="rtl"] .overlay-grid,
html[dir="rtl"] .career-story-row,
html[dir="rtl"] .career-story-row.is-reverse,
html[dir="rtl"] .table-wrap,
html[dir="rtl"] .table {
  direction: rtl;
}

html[dir="rtl"] .hero-cta,
html[dir="rtl"] .overlay-chips,
html[dir="rtl"] .identity-badges,
html[dir="rtl"] .filter-bar,
html[dir="rtl"] .slider-nav,
html[dir="rtl"] .lightbox-controls,
html[dir="rtl"] .social-header {
  flex-direction: row-reverse;
}