/* Orlando Pirates × adidas — Media Hub */

@font-face {
  font-family: 'FG Cond';
  src: url('../assets/fonts/ITCFranklinGothicStd-DmCp.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FG Cond';
  src: url('../assets/fonts/ITCFranklinGothicStd-BkCp.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #121011;
  --plate: #23201f;
  --gold: #b6924f;
  --gold-bright: #d8b876;
  --red: #d1401f;
  --white: #ffffff;
  --ink: #171514;
  --gray: #8a8580;
  --line: rgba(255,255,255,.14);
  --radius: 14px;
  --maxw: 1280px;
  --font-display: 'FG Cond', 'Arial Narrow', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 8px;
  font-weight: 600;
}

/* Feature-name typeface rule: adidasFG condensed bold, tracking > 0, optical kerning */
.brand, .hero__title, .kit__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: #171410; }
.btn--primary:hover { background: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--nav { background: var(--gold); color: #171410; padding: 9px 16px; font-size: 13px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18,16,17,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 17px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--white);
}
.brand__x { color: var(--gold-bright); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: #e7e3df;
  opacity: .85;
}
.site-nav a:not(.btn):hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 25%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,16,17,.55) 0%, rgba(18,16,17,.35) 35%, rgba(18,16,17,.92) 100%),
    linear-gradient(90deg, rgba(18,16,17,.75) 0%, rgba(18,16,17,.15) 55%);
}
.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 56px;
  max-width: 780px;
}
.hero__title {
  font-size: clamp(24px, 4.4vw, 48px);
  line-height: .98;
  white-space: nowrap;
  margin: 0 0 18px;
}
.hero__x { color: var(--gold-bright); font-weight: 400; }
.hero__sub {
  font-size: 17px;
  line-height: 1.55;
  color: #ece8e3;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero__meta {
  font-size: 13px;
  color: #c9c4bd;
  letter-spacing: .02em;
}

/* Campaign film & player videos */
.film {
  background: var(--plate);
  padding: 84px 0;
}
.film__header { text-align: center; margin-bottom: 36px; }
.film__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-feature-settings: "kern" 1, "liga" 1;
  font-size: clamp(30px, 4vw, 46px);
  margin: 0;
  color: var(--gold-bright);
}
.film__player {
  display: flex;
  justify-content: center;
}
.film__player video {
  width: min(420px, 100%);
  max-height: 78vh;
  border-radius: var(--radius);
  background: #000;
}
.film__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 0;
}

.players {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 84px 0;
}
.players__note {
  font-size: 14px;
  color: var(--gray);
  margin: 10px 0 0;
}

.players__group { margin-bottom: 64px; }
.players__group:last-child { margin-bottom: 0; }
.players__group-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-feature-settings: "kern" 1, "liga" 1;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--gold-bright);
  text-align: center;
  margin: 0 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.players__person { margin-bottom: 44px; }
.players__person:last-child { margin-bottom: 0; }
.players__person-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  margin: 0 0 16px;
}
.players__person-name--with-role { margin-bottom: 2px; }
.players__person-role {
  font-size: 13px;
  color: var(--gold-bright);
  margin: 0 0 16px;
}

.players__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .players__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .players__grid { grid-template-columns: repeat(3, 1fr); }
}
.player-clip { margin: 0; position: relative; }
.player-clip video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--plate);
}
.player-clip figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #d8d3cc;
  text-align: center;
}
.players__grid--portrait { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) {
  .players__grid--portrait { grid-template-columns: repeat(3, 1fr); }
}
.players__grid--portrait .player-clip video { aspect-ratio: 9 / 16; }

/* Kit sections */
.kit { padding: 84px 0; }
.kit--home { background: var(--black); color: var(--white); }
.kit--away { background: var(--white); color: var(--ink); }

.kit__header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.kit__badge {
  width: 220px;
  border-radius: 12px;
  flex: none;
}
.kit--away .kit__badge {
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.kit__title {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 6px;
}
.kit--home .kit__title { color: var(--gold-bright); }
.kit--away .kit__title { color: var(--red); }
.kit__desc {
  margin: 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.6;
  color: currentColor;
  opacity: .8;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--plate);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.tile:hover img { transform: scale(1.045); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.tile:hover::after { opacity: 1; }

.tile-dl {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18,16,17,.72);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  backdrop-filter: blur(4px);
  transition: background .15s ease, transform .15s ease;
}
.tile-dl:hover { background: var(--gold); color: #171410; transform: scale(1.08); }

/* Footer */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
}
.site-footer__inner {
  font-size: 13px;
  color: #b9b4ad;
  line-height: 1.7;
}
.site-footer__credit a { color: var(--gold-bright); text-decoration: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,9,9,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 34px;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.lightbox__caption {
  color: #d8d3cc;
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header__inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
    gap: 10px;
  }
  .brand { font-size: 14px; }
  .site-nav { gap: 14px; font-size: 13px; }
  .btn--nav { padding: 8px 14px; }
  .hero__content { padding-top: 32px; }
  .kit { padding: 56px 0; }
  .kit__badge { width: 150px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
}
