:root {
  --ovfc-red: #C2030D;
  --ovfc-red-dark: #930008;
  --ovfc-white: #FFFFFF;
  --ovfc-black: #000000;
  --ovfc-graphite: #111214;
  --ovfc-graphite-2: #18191c;
  --ovfc-gold: #C68B13;
  --ovfc-cream: #f6f3ee;
  --ovfc-muted: #6d7077;
  --ovfc-line: rgba(17, 18, 20, .12);
  --ovfc-line-dark: rgba(255, 255, 255, .13);
  --ovfc-font: 'Rajdhani', system-ui, sans-serif;
  --container: min(1180px, calc(100vw - 40px));
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --space-xs: .5rem;
  --space-sm: .875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: clamp(3.5rem, 7vw, 7rem);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, .12);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, .22);
  --transition-fast: 160ms ease;
  --transition-normal: 280ms cubic-bezier(.22,1,.36,1);
  --transition-slow: 700ms cubic-bezier(.22,1,.36,1);
  --header-height: 84px;
  --z-header: 20;
  --z-modal: 60;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  font-family: var(--ovfc-font);
  background: var(--ovfc-graphite);
  color: var(--ovfc-graphite);
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--ovfc-red); color: var(--ovfc-white); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ovfc-white);
  color: var(--ovfc-graphite);
  transform: translateY(-140%);
  transition: transform var(--transition-fast);
}
.skip-link:focus { transform: translateY(0); }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 8%, rgba(194, 3, 13, .22), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(198, 139, 19, .09), transparent 26%),
    linear-gradient(135deg, #08090a, var(--ovfc-graphite) 48%, #050506);
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px, 88px 88px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--ovfc-white);
  background: rgba(17, 18, 20, .82);
  border-bottom: 1px solid var(--ovfc-line-dark);
  backdrop-filter: blur(18px);
  transition: background var(--transition-normal), min-height var(--transition-normal);
}
.site-header.is-scrolled { min-height: 72px; background: rgba(17, 18, 20, .96); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; text-transform: uppercase; line-height: .9; letter-spacing: .08em; }
.brand strong { font-size: 1.05rem; font-weight: 700; }
.brand em { font-style: normal; font-size: .82rem; color: rgba(255,255,255,.72); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.main-nav a {
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .88rem;
  color: rgba(255,255,255,.76);
  transition: color var(--transition-fast);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--ovfc-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ovfc-white); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ovfc-line-dark); background: transparent; border-radius: var(--radius-sm); padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ovfc-white); margin: 5px 0; transition: transform var(--transition-normal), opacity var(--transition-normal); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section-shell { width: var(--container); margin-inline: auto; }
.section-dark, .section-light, .section-red { position: relative; padding: var(--space-xl) 0; overflow: hidden; }
.section-dark { color: var(--ovfc-white); background: var(--ovfc-graphite); }
.section-light { color: var(--ovfc-graphite); background: var(--ovfc-cream); }
.section-red { color: var(--ovfc-white); background: var(--ovfc-red); }
.section-red::before, .section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image:
    repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 22px),
    radial-gradient(circle at 25% 12%, var(--ovfc-white), transparent 22%);
}
.section-light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: repeating-linear-gradient(135deg, var(--ovfc-graphite) 0 1px, transparent 1px 26px);
}
.section-heading { position: relative; max-width: 760px; margin-bottom: 36px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; }
.section-heading.row > p { max-width: 360px; margin: 0; color: rgba(255,255,255,.72); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ovfc-red);
}
.kicker.light { color: var(--ovfc-white); }
.kicker span { width: 36px; height: 2px; background: var(--ovfc-gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 11vw, 9.8rem); line-height: .78; margin-bottom: 20px; }
h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .86; margin-bottom: 18px; }
h3 { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1; }
p { font-size: 1.08rem; line-height: 1.55; }
.section-heading p, .identity-copy > p, .kit-copy p, .sponsor-copy p, .contact-copy p { color: inherit; opacity: .75; }

.btn {
  --btn-bg: transparent;
  --btn-color: currentColor;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px 12px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary { --btn-bg: var(--ovfc-red); --btn-color: var(--ovfc-white); --btn-border: var(--ovfc-red); box-shadow: 0 18px 34px rgba(194, 3, 13, .25); }
.btn-primary:hover { --btn-bg: var(--ovfc-red-dark); --btn-border: var(--ovfc-red-dark); }
.btn-secondary { --btn-color: var(--ovfc-white); --btn-border: rgba(255,255,255,.46); }
.btn-secondary.dark { --btn-color: var(--ovfc-graphite); --btn-border: rgba(17,18,20,.28); }
.btn-ghost { --btn-color: var(--ovfc-white); --btn-border: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.inline-link { display: inline-flex; margin-top: 12px; color: var(--ovfc-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.hero {
  min-height: min(760px, calc(88vh - var(--header-height)));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(34px, 4.8vw, 62px) clamp(20px, 5vw, 72px);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-lead { font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.05; font-weight: 700; text-transform: uppercase; color: var(--ovfc-white); margin-bottom: 18px; }
.hero-copy { max-width: 620px; color: rgba(255,255,255,.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card {
  position: relative;
  min-height: clamp(360px, 40vw, 520px);
  border: 1px solid var(--ovfc-line-dark);
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(194,3,13,.96) 0 49%, rgba(246,243,238,.98) 49% 100%);
  box-shadow: var(--shadow-md);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: repeating-linear-gradient(135deg, #000 0 1px, transparent 1px 18px);
  z-index: -1;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 54%;
  height: 180%;
  background: var(--ovfc-graphite);
  transform: rotate(15deg) translateX(-6%);
  opacity: .95;
  z-index: -1;
}
.hero-crest { width: min(62%, 360px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(0,0,0,.34)); animation: crestFloat 6s ease-in-out infinite; }
.hero-mark { position: absolute; right: 28px; bottom: 28px; width: 90px; opacity: .1; filter: grayscale(1); }
.hero-card-line { position: absolute; left: 28px; right: 28px; height: 3px; background: var(--ovfc-gold); opacity: .95; }
.hero-card-line.top { top: 28px; }
.hero-card-line.bottom { bottom: 28px; }
.hero-stats { position: absolute; left: 26px; bottom: 42px; display: flex; gap: 12px; color: var(--ovfc-white); }
.hero-stats div { border-left: 2px solid var(--ovfc-gold); padding-left: 10px; }
.hero-stats strong { display: block; font-size: 1.65rem; line-height: .9; text-transform: uppercase; }
.hero-stats span { display: block; color: rgba(255,255,255,.72); text-transform: uppercase; font-weight: 600; }

.identity-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.identity-copy > p { font-size: 1.28rem; font-weight: 600; color: var(--ovfc-graphite); opacity: .78; }
.identity-points { display: grid; gap: 14px; margin-top: 28px; }
.identity-points article { position: relative; border: 1px solid var(--ovfc-line); border-left: 4px solid var(--ovfc-red); border-radius: var(--radius-md); padding: 22px 22px 18px; background: var(--ovfc-white); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.identity-points article:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.identity-points span { color: var(--ovfc-gold); font-weight: 700; letter-spacing: .12em; }
.identity-points h3 { margin: 10px 0 6px; }
.identity-points p { color: var(--ovfc-muted); margin: 0; }

.match-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.match-card { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.26); background: rgba(17,18,20,.18); overflow: hidden; transform-style: preserve-3d; }
.match-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.25), transparent 60%); pointer-events: none; }
.match-card.featured { min-height: 270px; background: var(--ovfc-graphite); }
.match-card.result { background: rgba(255,255,255,.12); }
.match-label { position: relative; z-index: 1; display: inline-flex; padding: 6px 10px 4px; border: 1px solid var(--ovfc-gold); color: var(--ovfc-white); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.teams-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 30px 0 26px; text-align: center; }
.teams-row strong { font-size: clamp(1.5rem, 3.2vw, 3rem); line-height: .9; text-transform: uppercase; }
.teams-row span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--ovfc-red); border: 2px solid var(--ovfc-white); font-weight: 700; }
.match-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.match-meta div { padding: 14px; border: 1px solid var(--ovfc-line-dark); background: rgba(255,255,255,.06); border-radius: var(--radius-sm); }
.match-meta dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.match-meta dd { margin: 3px 0 0; font-weight: 700; font-size: 1.15rem; }
.scoreboard { position: relative; z-index: 1; display: grid; gap: 10px; text-align: center; margin: 20px 0; }
.scoreboard strong { font-size: clamp(3.8rem, 7vw, 6rem); line-height: .8; letter-spacing: -.03em; }
.scoreboard span { font-weight: 700; text-transform: uppercase; }
.match-note { position: relative; z-index: 1; color: rgba(255,255,255,.72); margin-bottom: 0; }
.calendar-list { margin-top: 20px; display: grid; gap: 10px; }
.calendar-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center; padding: 15px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm); background: rgba(255,255,255,.12); }
.calendar-item time { font-weight: 700; color: var(--ovfc-white); }
.calendar-item strong { font-size: 1.2rem; text-transform: uppercase; }
.calendar-item span { color: rgba(255,255,255,.75); }

.table-card { overflow: auto; border: 1px solid var(--ovfc-line); border-radius: var(--radius-md); background: var(--ovfc-white); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--ovfc-line); font-weight: 600; }
th { background: var(--ovfc-graphite); color: var(--ovfc-white); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
td:first-child, td:nth-child(3) { font-weight: 700; color: var(--ovfc-red); }
tr.ovfc-row { background: linear-gradient(90deg, rgba(194,3,13,.12), rgba(255,255,255,1)); }
tr.ovfc-row td { font-weight: 700; }

.players-track { display: flex; gap: 18px; overflow-x: auto; padding: 10px 4px 28px; cursor: grab; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.players-track:active { cursor: grabbing; }
.players-track::-webkit-scrollbar { height: 8px; }
.players-track::-webkit-scrollbar-thumb { background: var(--ovfc-red); border-radius: 99px; }
.player-card { position: relative; flex: 0 0 clamp(250px, 24vw, 318px); min-height: 500px; border-radius: var(--radius-lg); border: 1px solid var(--ovfc-line-dark); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); scroll-snap-align: start; transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); }
.player-card:hover { transform: translateY(-8px); border-color: rgba(198,139,19,.65); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.player-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--ovfc-red) 0 40%, var(--ovfc-white) 40% 43%, var(--ovfc-graphite) 43% 100%); opacity: .94; }
.player-card::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 18px); }
.player-number { position: absolute; z-index: 2; top: 18px; left: 18px; font-size: clamp(4.4rem, 8vw, 6.4rem); line-height: .72; color: rgba(255,255,255,.84); font-weight: 700; letter-spacing: -.08em; }
.player-photo { position: absolute; z-index: 3; left: 50%; top: 38px; width: 88%; max-height: 355px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 22px 26px rgba(0,0,0,.44)); mask-image: linear-gradient(to bottom, #000 0 72%, rgba(0,0,0,.78) 86%, transparent 100%); }
.player-info { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 28px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,.94), rgba(0,0,0,.68), transparent); color: var(--ovfc-white); }
.player-info h3 { margin-bottom: 3px; font-size: 2rem; }
.player-position { margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ovfc-gold); }
.player-desc { display: block; min-height: 42px; color: rgba(255,255,255,.76); }
.player-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.player-meta div {
  min-height: 58px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
}
.player-meta span { display: block; font-size: .64rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .12em; line-height: 1; }
.player-meta strong { display: flex; align-items: center; justify-content: center; min-height: 24px; margin-top: 5px; font-size: .88rem; line-height: 1; }

.kit-grid, .sponsors-grid, .contact-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.kit-visual { display: grid; place-items: center; }
.kit-product-card { position: relative; width: min(440px, 88vw); min-height: 540px; display: grid; place-items: center; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--ovfc-line); background: linear-gradient(135deg, var(--ovfc-graphite) 0 48%, var(--ovfc-red) 48% 72%, var(--ovfc-cream) 72%); overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.kit-product-card:hover { transform: translateY(-6px); box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.kit-product-card::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(100deg, #fff 0 1px, transparent 1px 16px); }
.kit-provider { position: absolute; z-index: 2; top: 22px; left: 22px; right: 22px; color: rgba(255,255,255,.76); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .86rem; }
.kit-image-placeholder { position: relative; z-index: 2; width: min(300px, 74vw); aspect-ratio: .72; display: grid; place-items: center; align-content: center; gap: 12px; border-radius: 26px 26px 16px 16px; border: 1px dashed rgba(255,255,255,.48); background: rgba(255,255,255,.08); text-align: center; color: var(--ovfc-white); backdrop-filter: blur(6px); }
.kit-image-placeholder img { width: 92px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.kit-image-placeholder strong { font-size: 2.4rem; line-height: .9; text-transform: uppercase; letter-spacing: -.03em; }
.kit-image-placeholder small { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.66); }
.kit-card-mark { position: absolute; z-index: 1; right: 24px; bottom: 24px; width: 86px; opacity: .15; filter: grayscale(1); }
.jersey { position: relative; width: min(430px, 88vw); aspect-ratio: .78; border-radius: 32px 32px 18px 18px; background: var(--ovfc-red); overflow: hidden; box-shadow: var(--shadow-md); display: grid; place-items: center; }
.jersey::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(100deg, #fff 0 1px, transparent 1px 14px); }
.jersey::after { content: ""; position: absolute; top: -28%; left: 50%; width: 58%; height: 150%; background: var(--ovfc-white); transform: translateX(-50%) rotate(13deg); }
.jersey-neck { position: absolute; z-index: 2; top: 0; width: 130px; height: 76px; border-radius: 0 0 70px 70px; background: var(--ovfc-graphite); border: 8px solid var(--ovfc-white); border-top: 0; }
.jersey-panel { position: absolute; z-index: 1; top: 0; width: 26%; height: 100%; background: var(--ovfc-graphite); opacity: .98; }
.jersey-panel.left { left: 0; clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%); }
.jersey-panel.right { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%); }
.jersey img:not(.jersey-mark) { position: relative; z-index: 3; width: 90px; margin-bottom: 68px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.22)); }
.jersey-sponsor { position: absolute; z-index: 4; top: 56%; color: var(--ovfc-graphite); font-size: 3.5rem; font-weight: 700; letter-spacing: .08em; }
.jersey small { position: absolute; z-index: 4; bottom: 36px; color: rgba(17,18,20,.7); font-weight: 700; letter-spacing: .14em; }
.jersey-mark { position: absolute; z-index: 4; bottom: 70px; width: 54px; opacity: .13; }
.kit-list { display: grid; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.kit-list li { position: relative; padding-left: 24px; font-weight: 700; }
.kit-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--ovfc-gold); }

.sponsor-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sponsor-card { min-height: 190px; display: grid; place-items: center; gap: 12px; padding: 24px; border: 1px solid var(--ovfc-line-dark); border-radius: var(--radius-md); background: rgba(255,255,255,.05); text-align: center; transition: transform var(--transition-normal), background var(--transition-normal); }
.sponsor-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.sponsor-card img { max-width: 130px; max-height: 70px; object-fit: contain; }
.sponsor-card span { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.sponsor-card.placeholder { border-style: dashed; color: rgba(255,255,255,.7); }

.social-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-card { min-height: 240px; position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--ovfc-line); background: var(--ovfc-white); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.gallery-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--ovfc-red) 0 38%, var(--ovfc-graphite) 38% 62%, var(--ovfc-cream) 62%); opacity: .92; }
.gallery-card img { position: absolute; top: 18px; right: 18px; width: 56px; opacity: .35; }
.gallery-card strong, .gallery-card span { position: relative; z-index: 1; }
.gallery-card strong { color: var(--ovfc-white); font-size: 1.6rem; text-transform: uppercase; line-height: .95; }
.gallery-card span { color: rgba(255,255,255,.72); font-weight: 600; }
.social-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.contact-cards { display: grid; gap: 10px; margin-top: 24px; }
.contact-cards a { padding: 16px 18px; border: 1px solid var(--ovfc-line-dark); border-left: 4px solid var(--ovfc-gold); border-radius: var(--radius-sm); background: rgba(255,255,255,.05); transition: transform var(--transition-normal), background var(--transition-normal); }
.contact-cards a:hover { transform: translateX(4px); background: rgba(255,255,255,.08); }
.contact-cards span { display: block; color: rgba(255,255,255,.58); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; }
.contact-cards strong { display: block; margin-top: 3px; }
.contact-form { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--ovfc-line-dark); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label, .legal-check { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; color: rgba(255,255,255,.84); }
input, select, textarea { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); background: rgba(0,0,0,.18); color: var(--ovfc-white); padding: 13px 14px; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
select option { color: var(--ovfc-graphite); }
input:focus, select:focus, textarea:focus { border-color: var(--ovfc-gold); box-shadow: 0 0 0 3px rgba(198,139,19,.15); }
.legal-check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; margin: 10px 0 18px; }
.legal-check input { width: 18px; margin-top: 3px; flex: 0 0 auto; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-message { min-height: 24px; margin: 12px 0 0; color: var(--ovfc-gold); font-weight: 700; }
.form-message.error { color: #ffb4b4; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px clamp(20px, 5vw, 72px); color: var(--ovfc-white); background: #050506; border-top: 3px solid var(--ovfc-gold); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 70px; height: 70px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { text-transform: uppercase; font-size: 1.28rem; }
.footer-brand span { color: rgba(255,255,255,.62); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a, .footer-links button { border: 0; background: transparent; color: rgba(255,255,255,.72); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--ovfc-white); }

.cookie-banner { position: fixed; z-index: var(--z-modal); left: 20px; right: 20px; bottom: 20px; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--ovfc-line-dark); border-radius: var(--radius-md); color: var(--ovfc-white); background: rgba(17,18,20,.96); box-shadow: var(--shadow-md); }
.cookie-banner[hidden], .modal[hidden] { display: none; }
.cookie-banner p { margin: 4px 0 0; color: rgba(255,255,255,.7); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modal { position: fixed; z-index: var(--z-modal); inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); }
.modal-panel { position: relative; width: min(560px, 100%); max-height: min(760px, 90vh); overflow: auto; padding: 28px; border-radius: var(--radius-lg); background: var(--ovfc-white); color: var(--ovfc-graphite); box-shadow: var(--shadow-md); }
.modal-close { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border: 1px solid var(--ovfc-line); background: transparent; border-radius: var(--radius-sm); font-size: 1.6rem; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--ovfc-line); font-weight: 700; }
.switch-row input { width: 20px; }
.legal-panel { width: min(780px, 100%); }
.legal-panel h3 { margin-top: 22px; }
.legal-panel p, .legal-panel li { color: var(--ovfc-muted); }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes crestFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

@media (max-width: 1060px) {
  .header-cta { display: none; }
  .main-nav { gap: 14px; }
  .hero, .identity-grid, .kit-grid, .sponsors-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { min-height: 420px; }
  .match-grid { grid-template-columns: 1fr; }
  .social-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-height: 74px; }
  .site-header { min-height: var(--header-height); }
  .brand img { width: 46px; height: 46px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(17,18,20,.98);
    border-bottom: 1px solid var(--ovfc-line-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--ovfc-line-dark); }
  .main-nav a::after { display: none; }
  h1 { font-size: clamp(3.6rem, 18vw, 6rem); }
  h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero { padding: 32px 20px 44px; }
  .hero-card { min-height: 340px; }
  .hero-crest { width: min(70%, 270px); }
  .hero-stats { display: none; }
  .section-heading.row { display: block; }
  .match-meta { grid-template-columns: repeat(2, 1fr); }
  .teams-row { grid-template-columns: 1fr; }
  .teams-row span { margin: 0 auto; }
  .calendar-item { grid-template-columns: 1fr; gap: 4px; }
  .sponsor-logos, .social-gallery { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
  .footer-links { justify-content: flex-start; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .section-dark, .section-light, .section-red { padding: 64px 0; }
  .section-shell { width: min(100% - 32px, 1180px); }
  .hero-actions .btn, .social-actions .btn { width: 100%; }
  .match-meta { grid-template-columns: 1fr; }
  .player-card { flex-basis: min(82vw, 304px); }
  .jersey-sponsor { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Ajustes V3 · cromos, banderas, slider y patrocinadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.players-heading { align-items: end; gap: 18px; }
.players-controls { display: flex; gap: 10px; align-items: center; }
.slider-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--ovfc-white);
  font: 700 1.6rem/1 var(--ovfc-font);
  cursor: pointer;
  transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}
.slider-btn:hover,
.slider-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ovfc-gold);
  background: var(--ovfc-red);
  outline: none;
}

.players-slider { position: relative; margin-top: 8px; }
.players-slider::before,
.players-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: clamp(34px, 7vw, 86px);
  z-index: 6;
  pointer-events: none;
}
.players-slider::before { left: 0; background: linear-gradient(90deg, var(--ovfc-graphite), transparent); }
.players-slider::after { right: 0; background: linear-gradient(270deg, var(--ovfc-graphite), transparent); }
.players-track {
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 54px) 34px;
  scroll-behavior: smooth;
  scrollbar-color: var(--ovfc-red) rgba(255,255,255,.08);
}
.player-card {
  flex-basis: clamp(268px, 23vw, 334px);
  transform-style: preserve-3d;
  will-change: transform;
}
.player-card:hover,
.player-card:focus-within {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(198,139,19,.8);
  box-shadow: 0 30px 86px rgba(0,0,0,.36), 0 0 0 1px rgba(198,139,19,.12) inset;
}
.player-card:hover::before,
.player-card:focus-within::before { opacity: 1; }
.player-card:hover .player-photo,
.player-card:focus-within .player-photo {
  transform: translateX(-50%) translateY(-8px) scale(1.045);
  filter: drop-shadow(0 30px 34px rgba(0,0,0,.55));
}
.player-card:hover .player-number,
.player-card:focus-within .player-number { color: rgba(255,255,255,.98); transform: translateY(-3px); }
.player-photo,
.player-number { transition: transform var(--transition-normal), filter var(--transition-normal), color var(--transition-normal); }
.player-info { padding-bottom: 18px; }
.origin-value { display: inline-flex !important; align-items: center; justify-content: center; gap: 0; min-height: 22px; }
.origin-flags { display: inline-flex; gap: 7px; align-items: center; justify-content: center; }
.flag-custom {

  position: relative;

  width: 34px;

  height: 23px;

  display: inline-block;

  overflow: hidden;

  border-radius: 4px;

  border: 1px solid rgba(17, 18, 20, .18);

  box-shadow: 0 5px 14px rgba(0, 0, 0, .16);

  background-clip: padding-box;

}
/* FRANCIA */
.flag-france {
  background: linear-gradient(90deg, #0055a4 0 33.333%, #ffffff 33.333% 66.666%, #ef4135 66.666% 100%) !important;
}
.flag-france::before,
.flag-france::after {
  content: none !important;
  display: none !important;
}

/* ASTURIAS */
.flag-asturias {
  background: #005eb8;
}

.flag-asturias::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 4px;
  height: 13px;
  background: #ffd200;
  border-radius: 1px;
  transform: translateX(-50%);
}

.flag-asturias::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 8px;
  height: 4px;
  background: #ffd200;
  border-radius: 1px;
}
/* GALICIA */
.flag-galicia {
  background: #ffffff;
}

.flag-galicia::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: calc(100% + 14px);
  height: 7px;
  background: #4fa3dc;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
  border-radius: 0;
}

.flag-galicia::after {
  content: none;
}
.flag-uk { background: #012169; }
.flag-uk::before { content: ""; position: absolute; inset: 0; background: linear-gradient(28deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58% 100%), linear-gradient(152deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58% 100%); }
.flag-uk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62% 100%), linear-gradient(0deg, transparent 0 34%, #fff 34% 42%, #c8102e 42% 58%, #fff 58% 66%, transparent 66% 100%); }
.player-instagram {
  position: absolute;
  z-index: 7;
  top: 14px;
  right: 14px;
  max-width: calc(100% - 92px);
  min-height: 30px;
  padding: 7px 10px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: var(--ovfc-white);
  background: rgba(17,18,20,.78);
  font-weight: 700;
  text-transform: none;
  letter-spacing: .03em;
  font-size: .74rem;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
  transition: background var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal), color var(--transition-normal);
}
.player-instagram:hover,
.player-instagram:focus-visible {
  background: var(--ovfc-red);
  border-color: var(--ovfc-gold);
  transform: translateY(-2px);
  outline: none;
}

.sponsor-card { gap: 14px; min-height: 174px; }
.sponsor-card img { max-width: min(180px, 72%); max-height: 96px; transition: transform var(--transition-normal), filter var(--transition-normal); }
.sponsor-role { color: rgba(255,255,255,.78); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.sponsor-card:hover img { transform: scale(1.04); filter: drop-shadow(0 18px 28px rgba(0,0,0,.28)); }
.sponsor-card.placeholder strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.38);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: 1.6rem;
}

@media (max-width: 760px) {
  .players-heading { align-items: start; }
  .players-controls { width: 100%; justify-content: flex-start; }
  .players-slider::before,
  .players-slider::after { width: 26px; }
  .players-track { padding-inline: 18px; gap: 16px; }
  .player-card { flex-basis: min(82vw, 310px); }
  .slider-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .players-track { scroll-behavior: auto; }
  .player-card:hover .player-photo,
  .player-card:focus-within .player-photo,
  .player-card:hover .player-number,
  .player-card:focus-within .player-number,
  .sponsor-card:hover img { transform: none; }
}
.slider-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.players-track.is-dragging { scroll-snap-type: none; user-select: none; }

/* =========================================================
   OVFC — DIRECCIÓN VISUAL MANGA / EDITORIAL AVANZADA
   Capa estética no invasiva. Mantiene Rajdhani y la estructura.
   ========================================================= */

:root {
  --editorial-ink: rgba(5, 6, 7, .92);
  --editorial-line: rgba(194, 3, 13, .9);
  --editorial-gold: rgba(198, 139, 19, .92);
  --editorial-halftone-dark: rgba(255, 255, 255, .08);
  --editorial-halftone-light: rgba(17, 18, 20, .07);
  --editorial-cut: 24px;
}

/* Cortes editoriales de sección */
#equipo,
#partidos,
#clasificacion,
#plantilla,
#camiseta,
#patrocinadores,
#galeria,
#contacto {
  position: relative;
  isolation: isolate;
}

#partidos::before,
#plantilla::before,
#patrocinadores::before,
#contacto::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -1px;
  left: 0;
  width: min(36vw, 460px);
  height: 18px;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--ovfc-gold) 0 8px, transparent 8px),
    linear-gradient(135deg, var(--ovfc-white) 0 52%, transparent 52%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%);
}

#clasificacion::before,
#camiseta::before,
#galeria::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: min(30vw, 390px);
  height: 12px;
  pointer-events: none;
  background: var(--ovfc-red);
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
}

/* Títulos con códigos y trazos editoriales */
.section-heading h2,
.kit-copy h2,
.sponsor-copy h2,
.contact-copy h2 {
  position: relative;
}

.section-heading h2::after,
.kit-copy h2::after,
.sponsor-copy h2::after,
.contact-copy h2::after {
  content: "";
  display: block;
  width: clamp(56px, 7vw, 104px);
  height: 5px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--ovfc-red) 0 70%, var(--ovfc-gold) 70% 82%, transparent 82%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.section-heading.centered h2::after { margin-inline: auto; }
.section-dark .section-heading h2::after,
.section-red .section-heading h2::after,
.sponsor-copy h2::after,
.contact-copy h2::after {
  background: linear-gradient(90deg, var(--ovfc-red) 0 66%, var(--ovfc-gold) 66% 80%, rgba(255,255,255,.65) 80% 100%);
}

/* Hero: composición por capas y trama focal */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -8vw;
  top: 9%;
  width: min(52vw, 760px);
  aspect-ratio: 1.35;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.36) 1.2px, transparent 1.4px),
    linear-gradient(120deg, transparent 0 62%, rgba(194,3,13,.32) 62% 63%, transparent 63% 100%);
  background-size: 11px 11px, 100% 100%;
  mask-image: linear-gradient(110deg, transparent 0, #000 35%, #000 76%, transparent 100%);
}

.hero-card {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.hero-card > * { position: relative; z-index: 2; }
.hero-card::before { z-index: 0; }
.hero-card::after {
  z-index: 1;
  opacity: .2;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 1px, transparent 1px 17px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.28) 0 1px, transparent 1.3px);
  background-size: auto, 9px 9px;
}

.hero-identity::before,
.hero-identity::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  right: -12px;
  width: 42%;
  height: 3px;
  background: var(--ovfc-red);
  transform: rotate(-12deg);
  transform-origin: right center;
  box-shadow: 0 10px 0 rgba(198,139,19,.8), 0 20px 0 rgba(255,255,255,.28);
}
.hero-identity::before { top: 18%; }
.hero-identity::after { bottom: 14%; width: 32%; opacity: .7; }

/* Marcadores y calendario: panel deportivo editorial */
.match-card {
  clip-path: polygon(0 0, calc(100% - var(--editorial-cut)) 0, 100% var(--editorial-cut), 100% 100%, var(--editorial-cut) 100%, 0 calc(100% - var(--editorial-cut)));
}

.match-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.25px);
  background-size: 10px 10px;
  mask-image: linear-gradient(135deg, #000 0 25%, transparent 60%);
}

.match-card > * { position: relative; z-index: 2; }
.match-label {
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 7px 7px 0 rgba(194,3,13,.3);
}

.calendar-item {
  position: relative;
  overflow: hidden;
}
.calendar-item::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -44px;
  width: 90px;
  height: 120px;
  opacity: .18;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 2px, transparent 2px 9px);
  transform: rotate(28deg);
}

/* Clasificación: énfasis de equipo y lectura intacta */
.table-card {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.table-card::before {
  content: "LEAGUE TABLE / OVFC";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 20px;
  padding: 5px 10px 4px;
  color: var(--ovfc-white);
  background: var(--ovfc-graphite);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  pointer-events: none;
}
.standings-table .ovfc-row td {
  position: relative;
  box-shadow: inset 0 1px rgba(255,255,255,.09), inset 0 -1px rgba(255,255,255,.09);
}
.standings-table .ovfc-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--ovfc-gold);
}

/* Cromos: tratamiento manga/editorial avanzado */
.player-card {
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.player-card::after {
  z-index: 1;
  opacity: .13;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1.35px),
    repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 1px, transparent 1px 17px);
  background-size: 9px 9px, auto;
  mask-image: linear-gradient(145deg, #000 0 42%, transparent 76%);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.player-card:hover::after,
.player-card:focus-within::after {
  opacity: .24;
  transform: translate3d(4px, -3px, 0);
}

.player-card::marker { display: none; }
.player-editorial-code {
  position: absolute;
  z-index: 7;
  top: 52px;
  right: 15px;
  color: rgba(255,255,255,.66);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  pointer-events: none;
}

.player-speed-lines {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: -12%;
  width: 65%;
  height: 22%;
  opacity: .22;
  pointer-events: none;
  background: repeating-linear-gradient(168deg, transparent 0 8px, rgba(255,255,255,.9) 8px 10px, transparent 10px 18px);
  clip-path: polygon(0 24%, 100% 0, 78% 100%, 0 76%);
  transition: opacity var(--transition-fast), transform var(--transition-normal);
}
.player-card:hover .player-speed-lines,
.player-card:focus-within .player-speed-lines {
  opacity: .48;
  transform: translate3d(10px, -4px, 0);
}

.player-photo {
  filter: saturate(.82) contrast(1.02) drop-shadow(0 22px 30px rgba(0,0,0,.45));
}
.player-card:hover .player-photo,
.player-card:focus-within .player-photo {
  filter: saturate(1.08) contrast(1.1) drop-shadow(0 34px 38px rgba(0,0,0,.58));
}

.player-number {
  text-shadow: 5px 5px 0 rgba(0,0,0,.16);
}
.player-info::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 16px;
  width: 76px;
  height: 7px;
  background: linear-gradient(90deg, var(--ovfc-gold) 0 22%, var(--ovfc-red) 22% 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.player-info h3 {
  display: inline-block;
  padding-right: 16px;
  border-bottom: 2px solid rgba(198,139,19,.65);
}
.player-meta > div {
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

/* Equipación y sponsors: marcos de viñeta controlados */
.kit-product-card,
.sponsor-card {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.kit-product-card::after,
.sponsor-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(198,139,19,.22);
  pointer-events: none;
  clip-path: inherit;
}

/* Galería: paneles asimétricos tipo viñeta */
.social-gallery {
  grid-template-columns: 1.25fr .75fr .75fr 1.25fr;
  align-items: stretch;
}
.gallery-card {
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.gallery-card:nth-child(1),
.gallery-card:nth-child(4) { min-height: 290px; }
.gallery-card:nth-child(2),
.gallery-card:nth-child(3) { margin-top: 34px; min-height: 256px; }
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 1px, transparent 1.3px);
  background-size: 9px 9px;
  mask-image: linear-gradient(150deg, transparent 22%, #000 60%, transparent 100%);
}
.gallery-card > * { z-index: 2; }
.gallery-index {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 14px;
  color: rgba(255,255,255,.88);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  text-shadow: 3px 3px 0 rgba(0,0,0,.18);
}
.gallery-card:hover {
  transform: translateY(-8px) rotate(-.4deg);
  box-shadow: 14px 16px 0 rgba(194,3,13,.14), var(--shadow-sm);
}
.gallery-card:nth-child(even):hover { transform: translateY(-8px) rotate(.4deg); }

/* CTA final y footer: identidad editorial sobria */
.contact-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4vw;
  bottom: 4%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  opacity: .09;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #fff 1.1px, transparent 1.35px),
    linear-gradient(140deg, transparent 0 49%, var(--ovfc-red) 49% 51%, transparent 51% 100%);
  background-size: 12px 12px, 100% 100%;
  mask-image: radial-gradient(circle, #000 0 46%, transparent 72%);
}

.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  content: "OVFC / VIGO / 2024";
  position: absolute;
  right: 2vw;
  bottom: -8px;
  color: rgba(255,255,255,.035);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }

/* Responsive: reducir intensidad sin perder identidad */
@media (max-width: 1080px) {
  .social-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-card:nth-child(n) { margin-top: 0; min-height: 250px; }
  .hero::after { right: -18vw; opacity: .16; }
}

@media (max-width: 760px) {
  :root { --editorial-cut: 14px; }
  #partidos::before,
  #plantilla::before,
  #patrocinadores::before,
  #contacto::before { width: 58vw; height: 10px; }
  #clasificacion::before,
  #camiseta::before,
  #galeria::before { width: 42vw; height: 8px; }
  .hero::after,
  .hero-identity::before,
  .hero-identity::after { opacity: .1; }
  .hero-card,
  .match-card,
  .player-card,
  .kit-product-card,
  .sponsor-card,
  .gallery-card { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
  .player-editorial-code { display: none; }
  .player-speed-lines { opacity: .14; }
  .table-card::before { display: none; }
  .social-gallery { grid-template-columns: 1fr; }
  .gallery-card:nth-child(n) { min-height: 220px; }
  .gallery-card:hover,
  .gallery-card:nth-child(even):hover { transform: translateY(-4px); }
  .site-footer::after { font-size: 3.2rem; right: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .match-card,
  .player-card,
  .gallery-card { transition-duration: .01ms !important; }
  .player-card:hover .player-speed-lines,
  .player-card:focus-within .player-speed-lines,
  .player-card:hover::after,
  .player-card:focus-within::after { transform: none; }
}

/* --- Ajustes versión avanzada · julio 2026 --- */

/* Hero: eliminar líneas exteriores del bloque del escudo */
.hero-identity::before,
.hero-identity::after {
  display: none;
}

/* Patrocinadores: soporte para cards no clicables y nueva jerarquía */
.sponsor-card,
.sponsor-card:visited {
  text-decoration: none;
  color: var(--ovfc-white);
}

.sponsor-card .sponsor-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-size: .76rem;
  letter-spacing: .12em;
}

.sponsor-card.is-kivolab img {
  max-width: min(190px, 76%);
}

.sponsor-card.placeholder {
  background: rgba(255,255,255,.03);
}

.sponsor-card.placeholder strong {
  font-size: 2.2rem;
  line-height: 1;
}

/* Galería/redes: tarjetas homogéneas y legibles */
.social-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card,
.gallery-card:visited {
  min-height: 248px;
  margin-top: 0 !important;
  text-decoration: none;
  text-align: left;
  color: var(--ovfc-white);
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, rgba(17,18,20,.84) 0%, rgba(17,18,20,.92) 100%);
}

.gallery-card::before {
  background:
    linear-gradient(180deg, rgba(17,18,20,.14) 0%, rgba(17,18,20,.18) 100%),
    linear-gradient(135deg, var(--ovfc-red) 0 28%, var(--ovfc-graphite) 28% 72%, #efeee9 72% 100%);
  opacity: 1;
}

.gallery-card::after {
  opacity: .12;
}

.gallery-card img {
  width: 72px;
  top: auto;
  right: 18px;
  bottom: 18px;
  opacity: .12;
}

.gallery-card > strong,
.gallery-card > span,
.gallery-card > .gallery-tag,
.gallery-card > .gallery-index {
  position: relative;
  z-index: 2;
}

.gallery-card > strong {
  font-size: 1.42rem;
  line-height: .98;
  max-width: 12ch;
  margin: 10px 0 8px;
}

.gallery-card > span:not(.gallery-tag):not(.gallery-index) {
  display: block;
  max-width: 22ch;
  color: rgba(255,255,255,.84);
  font-weight: 500;
  font-size: .94rem;
  line-height: 1.35;
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px 5px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-index {
  top: 16px;
  left: 16px;
  font-size: 1.2rem;
  color: rgba(255,255,255,.62);
  text-shadow: none;
}

.gallery-card:nth-child(n) {
  min-height: 248px;
}

.gallery-card:hover,
.gallery-card:nth-child(even):hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
}

/* Footer con crédito KivoLab */
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.03);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.footer-powered:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.footer-powered span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer-powered img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .social-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-powered {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .gallery-card,
  .gallery-card:nth-child(n) {
    min-height: 214px;
  }

  .gallery-card > strong {
    font-size: 1.28rem;
  }

  .site-footer {
    gap: 18px;
  }
}

/* V6 — ajustes aprobados Oliveira Vigo FC */
.brand span { gap: 0; }
.brand strong,
.brand em { font-size: .98rem; line-height: .92; font-weight: 700; color: var(--ovfc-white); letter-spacing: .015em; }
.header-cta { min-height: 44px; padding: 11px 16px 9px; border: 1px solid var(--ovfc-gold); background: var(--ovfc-red); color: var(--ovfc-white); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.header-cta:hover,
.header-cta:focus-visible { background: var(--ovfc-white); color: var(--ovfc-graphite); }

.hero-card { isolation: isolate; }
.hero-card::before { background: radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1.5px); background-size: 11px 11px; opacity: .28; mask-image: linear-gradient(135deg, #000 8%, transparent 72%); }
.hero-card::after { content: ""; position: absolute; z-index: 0; width: 66%; aspect-ratio: 1; right: 5%; top: 12%; border-radius: 50%; background: var(--ovfc-red); opacity: .34; transform: translate(10px, 8px); }
.hero-crest { position: relative; z-index: 2; animation: none; transform: rotate(-1deg); filter: drop-shadow(10px 14px 0 rgba(194,3,13,.22)) drop-shadow(0 22px 34px rgba(0,0,0,.3)); transition: transform var(--transition-normal), filter var(--transition-normal); }
.hero-card:hover .hero-crest { transform: translateY(-4px) rotate(.5deg); filter: drop-shadow(7px 10px 0 rgba(194,3,13,.28)) drop-shadow(0 26px 38px rgba(0,0,0,.34)); }

.result-link { position: relative; z-index: 1; margin-top: 18px; width: fit-content; }
.btn-light { background: var(--ovfc-white); color: var(--ovfc-red); border-color: var(--ovfc-white); }
.btn-light:hover,
.btn-light:focus-visible { background: var(--ovfc-gold); color: var(--ovfc-graphite); border-color: var(--ovfc-gold); }
.match-meta > div { min-width: 0; }
.match-meta dt { white-space: normal; line-height: 1.1; }

.table-card::before { content: none !important; }

.player-card { background: linear-gradient(145deg, rgba(194,3,13,.98), rgba(17,18,20,.98) 52%, rgba(17,18,20,.95)); }
.player-photo { display: none !important; }
.player-placeholder-mark { position: absolute; z-index: 2; top: 31%; left: 50%; transform: translate(-50%,-50%) rotate(-8deg); font-size: clamp(3rem, 7vw, 5.3rem); font-weight: 700; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); opacity: .72; }
.player-number { font-size: clamp(5.6rem, 10vw, 8.2rem); color: rgba(255,255,255,.91); }
.player-card.is-upcoming .player-number { top: 50%; left: 50%; transform: translate(-50%,-60%); font-size: clamp(8rem, 15vw, 11rem); color: rgba(255,255,255,.92); }
.player-card.is-upcoming:hover .player-number,
.player-card.is-upcoming:focus-within .player-number { transform: translate(-50%,-63%); }
.player-info-upcoming { min-height: 112px; display: flex; align-items: center; justify-content: center; text-align: center; }
.player-info-upcoming h3 { margin: 0; padding: 0 0 6px; border-bottom: 2px solid var(--ovfc-gold); font-size: 1.45rem; letter-spacing: .08em; }

.insights-section { position: relative; overflow: hidden; }
.insights-panel { position: relative; min-height: 410px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; overflow: hidden; color: var(--ovfc-white); background: var(--ovfc-graphite); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.insights-panel::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle, rgba(255,255,255,.95) 1px, transparent 1.4px); background-size: 10px 10px; mask-image: linear-gradient(120deg, #000 0 32%, transparent 74%); }
.insights-panel::after { content: ""; position: absolute; right: -8%; top: -20%; width: 48%; height: 140%; background: var(--ovfc-red); transform: skewX(-14deg); opacity: .92; }
.insights-copy { position: relative; z-index: 2; max-width: 760px; }
.insights-copy .kicker { color: rgba(255,255,255,.7); }
.insights-status { margin: 20px 0 2px; color: var(--ovfc-gold); font-size: clamp(2.3rem, 7vw, 6.6rem); line-height: .82; font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; }
.insights-copy h2 { color: var(--ovfc-white); font-size: clamp(2rem, 4.5vw, 4.8rem); margin: 16px 0 14px; }
.insights-copy > p:last-child { max-width: 56ch; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.insights-mark { position: relative; z-index: 2; min-width: 210px; display: grid; justify-items: end; color: var(--ovfc-white); transform: rotate(-4deg); }
.insights-mark span { font-size: 1rem; letter-spacing: .28em; }
.insights-mark strong { font-size: clamp(4.2rem, 8vw, 7.5rem); line-height: .75; }
.insights-mark small { margin-top: 12px; padding: 7px 10px 5px; background: var(--ovfc-gold); color: var(--ovfc-graphite); font-weight: 700; letter-spacing: .15em; }
.insights-section .social-actions { margin-top: 22px; }

@media (max-width: 1100px) {
  .header-cta { display: inline-flex; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .insights-panel { grid-template-columns: 1fr; min-height: 370px; }
  .insights-panel::after { right: -28%; width: 58%; opacity: .55; }
  .insights-mark { display: none; }
}
@media (max-width: 640px) {
  .brand strong, .brand em { font-size: .88rem; }
  .insights-panel { min-height: 340px; padding: 28px 22px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
  .insights-status { font-size: clamp(3rem, 16vw, 5.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card:hover .hero-crest { transform: rotate(-1deg); }
}


/* V6.1 — ajustes visuales finales aprobados */
.hero-identity { display: grid; place-items: center; }
.hero-card {
  min-height: 0;
  width: min(100%, 520px);
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  display: grid;
  place-items: center;
}
.hero-card::before,
.hero-card::after { content: none; }
.hero-crest {
  width: min(84%, 430px);
  transform: rotate(-1deg);
  filter: drop-shadow(12px 16px 0 rgba(194,3,13,.2)) drop-shadow(0 24px 34px rgba(0,0,0,.38));
}
.hero-card:hover .hero-crest {
  transform: translateY(-4px) rotate(.25deg) scale(1.012);
  filter: drop-shadow(8px 12px 0 rgba(194,3,13,.26)) drop-shadow(0 28px 40px rgba(0,0,0,.42));
}
.match-competition dd { display: grid; gap: 2px; }
.match-competition dd span:first-child { white-space: nowrap; }
.player-desc {
  min-height: 0;
  color: rgba(255,255,255,.66);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.insights-mark span { font-size: 1.28rem; letter-spacing: .24em; font-weight: 700; }

@media (max-width: 900px) {
  .hero-card { width: min(88vw, 430px); }
}
@media (max-width: 560px) {
  .hero-card { width: min(82vw, 330px); }
  .hero-crest { width: 100%; }
  .match-competition dd span:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card:hover .hero-crest { transform: rotate(-1deg); }
}

/* SEO/Performance: el contenido principal del hero nunca depende de JavaScript para ser visible. */
.hero .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .hero-crest {
    filter: drop-shadow(6px 8px 0 rgba(194,3,13,.20)) drop-shadow(0 16px 24px rgba(0,0,0,.28));
  }
}

/* V7.1 — correcciones SEO, LCP y responsive móvil */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
main, section, header, footer, .section-shell, .hero, .hero-content, .hero-identity,
.match-grid, .match-card, .match-meta, .calendar-list, .table-card, .players-slider,
.players-track, .kit-grid, .sponsors-grid, .contact-grid, .insights-panel { min-width: 0; max-width: 100%; }

/* El contenido visible no depende de JavaScript: evita NO_LCP y páginas vacías si falla un script. */
.reveal,
.reveal.is-visible { opacity: 1; transform: none; }

.match-competition dd {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-card {
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.cookie-banner {
  width: auto;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

@media (max-width: 820px) {
  .site-header { width: 100%; gap: 12px; padding-inline: 16px; }
  .brand { min-width: 0; }
  .brand span { min-width: 0; }
  .main-nav { width: 100%; }
  .hero { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .hero-content, .hero-identity { width: 100%; }
  .hero-identity { order: 2; }
  .hero-card { min-height: 0; }
  .match-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-meta > div { min-width: 0; }
  .match-meta dd { overflow-wrap: anywhere; }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    padding: 16px;
    gap: 14px;
    border-radius: 12px;
  }
  .cookie-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .cookie-actions .btn { width: 100%; min-height: 44px; }
}

@media (max-width: 560px) {
  :root { --container: calc(100vw - 28px); }
  .section-shell { width: calc(100% - 28px); }
  .hero { padding-inline: 14px; }
  .hero h1 { overflow-wrap: anywhere; }
  .match-meta { grid-template-columns: 1fr; }
  .calendar-item { width: 100%; }
  .players-track { width: 100%; padding-inline: 14px; }
  .player-card { flex-basis: min(86vw, 304px); }
  .modal { padding: 12px; }
  .modal-panel { max-height: calc(100dvh - 24px); padding: 22px 18px; }
}


/* V7.2 — estabilidad de renderizado móvil y auditorías Lighthouse */
[hidden] { display: none !important; }
.reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero-content, .hero-identity, .hero h1, .hero-crest { visibility: visible !important; opacity: 1 !important; }
@media (max-width: 820px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #111214; }
  .section-dark::before, .section-red::before, .section-light::before, .site-bg::after { display: none; }
  .hero { min-height: 0; }
  .hero-crest { filter: drop-shadow(0 12px 18px rgba(0,0,0,.28)); }
  .btn, .hero-crest, .site-header, .main-nav { transition-duration: 0.01ms !important; }
}


/* V7.3 — mobile LCP hardening */
.hero-content,
.hero-identity,
.hero h1,
.hero-crest {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}
.hero-card,
.hero-card:hover,
.hero-crest,
.hero-card:hover .hero-crest {
  transform: none !important;
  transition: none !important;
}
.hero-crest {
  width: min(84%, 430px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.28));
}
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .hero { min-height: auto; contain: layout paint; }
  .hero-content { contain: layout style; }
  .hero-card { width: min(82vw, 330px); aspect-ratio: 1; }
  .hero-crest { width: 100%; filter: none; }
  .site-bg { display: none; }
  .cookie-banner { contain: layout paint; }
}
