/* ===================================================
   MC Vasara – Kotisivut
   =================================================== */

/* ===== Custom Properties ===== */
:root {
  --c-bg:           #0a0a0a;
  --c-bg-alt:       #111111;
  --c-surface:      #1c1c1c;
  --c-surface-2:    #242424;
  --c-white:        #ffffff;
  --c-gold:         #e8c820;
  --c-gold-dark:    #c9ac18;
  --c-gray:         #777777;
  --c-gray-light:   #b0b0b0;
  --c-win:          #2ecc71;
  --c-draw:         #f39c12;
  --c-loss:         #e74c3c;

  --font-heading:   'Bebas Neue', sans-serif;
  --font-body:      'Inter', sans-serif;

  --radius:         8px;
  --radius-lg:      14px;
  --ease:           0.25s ease;
  --nav-h:          64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); }

/* ===== Utility ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary {
  background: var(--c-gold);
  color: #000;
  border-color: var(--c-gold);
}
.btn--primary:hover {
  background: transparent;
  color: var(--c-gold);
}

/* ===================================================
   NAVIGAATIO
   =================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--ease);
}
.nav.scrolled { background: rgba(10, 10, 10, 0.97); }

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--c-white);
  line-height: 1;
}
.nav__logo span { color: var(--c-gold); }

.nav__links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray-light);
  position: relative;
  transition: color var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--c-gold);
  transition: width var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--c-white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}
.nav__hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(232, 200, 32, 0.18) 0%, transparent 70%),
    linear-gradient(160deg, #0a0a0a 60%, #0f0f0f 100%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--c-bg));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  text-shadow:
    0 0 120px rgba(232, 200, 32, 0.15),
    0 2px 60px rgba(0,0,0,0.6);
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-gray-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.8rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-gold);
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: 5px; opacity: 1; }
  70%  { top: 20px; opacity: 0.2; }
  100% { top: 5px; opacity: 0; }
}

/* ===================================================
   SECTIONS
   =================================================== */
.section { padding: 6rem 0; }
.section--alt { background: var(--c-bg-alt); }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  display: inline-block;
  position: relative;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 56px; height: 4px;
  background: var(--c-gold);
  border-radius: 2px;
}

/* ===================================================
   UUTISET
   =================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 200, 32, 0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.news-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.news-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card__text {
  font-size: 0.9rem;
  color: var(--c-gray-light);
  line-height: 1.7;
  flex: 1;
}
.news-card__time {
  font-weight: 400;
  opacity: 0.55;
  font-size: 0.7rem;
}
.news-card__preview p,
.news-card__expanded p {
  font-size: 0.9rem;
  color: var(--c-gray-light);
  line-height: 1.7;
}
.news-card__section {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 1.2rem 0 0.1rem;
}
.news-card__player {
  margin: 0.8rem 0 0.4rem;
}
.news-card__player audio {
  width: 100%;
  accent-color: var(--accent);
}
.news-card__expanded p + p { margin-top: 0.75rem; }
.news-card__expanded { margin-top: 0.75rem; }

.news-card__toggle {
  align-self: flex-start;
  margin-top: 0.6rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  cursor: pointer;
  transition: letter-spacing var(--ease);
}
.news-card__toggle:hover { letter-spacing: 0.14em; }

/* ===================================================
   PELAAJAT
   =================================================== */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

.player-card {
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.player-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 200, 32, 0.45);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.player-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-bg);
}
.player-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.player-card:hover .player-card__photo img {
  transform: scale(1.05);
}
.player-card__num {
  position: absolute;
  bottom: 0.5rem;
  right: 0.6rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  letter-spacing: -0.02em;
}

.player-card__info {
  padding: 0.85rem 0.9rem 1rem;
}
.player-card__nick {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--c-gold);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-card__info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.player-card__pos {
  font-size: 0.68rem;
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.player-card__desc {
  font-size: 0.75rem;
  color: var(--c-white);
  line-height: 1.55;
  margin-top: 0.55rem;
}

/* ===================================================
   TULOKSET & TILASTOT
   =================================================== */

/* Stats bar */
.result-stats-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  min-width: 80px;
  flex: 1;
}
.stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-white);
}
.stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray);
  margin-top: 0.35rem;
}
.stat-item--win  .stat-val { color: var(--c-win); }
.stat-item--draw .stat-val { color: var(--c-draw); }
.stat-item--loss .stat-val { color: var(--c-loss); }

/* Results table */
.results-table-wrap { overflow-x: auto; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.results-table thead tr {
  border-bottom: 2px solid var(--c-gold);
}
.results-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray);
}
.results-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.results-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.results-table .score {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.res-date { white-space: nowrap; color: var(--c-gray); font-size: 0.82rem; }
.res-date-inline { display: none; }
.res-tournament { font-size: 0.72rem; color: var(--c-gray); opacity: 0.7; margin-left: 0.3rem; }

/* Year header rows */
.results-year td {
  padding: 1.2rem 0.8rem 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  border-bottom: 1px solid rgba(232,200,32,0.2);
}

/* Note rows (e.g. SM-puulaaki) */
.results-note td {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--c-gray);
}

/* Home/away badge */
.loc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.loc-badge--home { background: rgba(232,200,32,0.15); color: var(--c-gold); }
.loc-badge--away { background: rgba(255,255,255,0.07); color: var(--c-gray-light); }

/* Result badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge--win  { background: rgba(46, 204, 113, 0.15); color: var(--c-win); }
.badge--draw { background: rgba(243, 156, 18, 0.15);  color: var(--c-draw); }
.badge--loss { background: rgba(231, 76, 60, 0.15);   color: var(--c-loss); }

/* Rows with reports: clickable indicator + hover */
.results-table tr.has-report { cursor: pointer; }
.results-table tr.has-report:hover td { background: rgba(232,200,32,0.04); }
.results-table tr.report-open td { background: rgba(232,200,32,0.06); }

.report-chevron {
  display: inline-block;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--c-gold);
  opacity: 0.55;
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.results-table tr.report-open .report-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Report detail row */
.report-row { display: none; }
.report-row.open { display: table-row; }
.report-row td {
  padding: 0 !important;
  background: var(--c-surface) !important;
  border-bottom: 2px solid rgba(232,200,32,0.2);
}

.report-panel {
  padding: 1.4rem 1.6rem 1.6rem;
  border-left: 3px solid var(--c-gold);
}

.report-panel__meta {
  font-size: 0.8rem;
  color: var(--c-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.report-panel__text p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.9rem;
}
.report-panel__text p:last-child { margin-bottom: 0; }

.report-panel__section {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.report-panel__section strong { color: var(--c-white); }

.report-panel__aa {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.report-panel__aa li {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  padding-left: 3rem;
  position: relative;
}
.report-panel__aa li:nth-child(1)::before { content: '👍👍👍'; position: absolute; left: 0; font-size: 0.72rem; top: 0.1em; }
.report-panel__aa li:nth-child(2)::before { content: '👍👍'; position: absolute; left: 0; font-size: 0.72rem; top: 0.1em; }
.report-panel__aa li:nth-child(3)::before { content: '👍'; position: absolute; left: 0; font-size: 0.72rem; top: 0.1em; }

/* ===================================================
   TILASTOKORTIT
   =================================================== */
.stats-section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--c-white);
  margin: 3rem 0 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.stat-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--c-gold);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.stat-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-card__list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.stat-card__list li::before {
  content: counter(list-item) ".";
  font-size: 0.7rem;
  color: var(--c-gray);
  min-width: 1.2rem;
}

.stat-card__list { counter-reset: list-item; }
.stat-card__list li { counter-increment: list-item; }

.stat-card__top .stat-card__name {
  color: var(--c-white);
  font-weight: 600;
}

.stat-card__name {
  flex: 1;
  color: var(--c-gray-light);
}

.stat-card__val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--c-gold);
  line-height: 1;
}

.stat-card__list li.stat-card__row--hidden { display: none; }

.stat-card__toggle {
  background: none;
  border: none;
  padding: 0.5rem 0;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-gold);
  cursor: pointer;
  display: block;
}

/* ===================================================
   GALLERIA
   =================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  outline: none;
}
.gallery-item:focus-visible {
  box-shadow: 0 0 0 3px var(--c-gold);
}

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.4s ease;
}
.gallery-placeholder span { font-size: 2.8rem; }
.gallery-placeholder small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.gp-1 { background: linear-gradient(135deg, #151525 0%, #1a1a35 100%); }
.gp-2 { background: linear-gradient(135deg, #152515 0%, #1a351a 100%); }
.gp-3 { background: linear-gradient(135deg, #251515 0%, #351a1a 100%); }
.gp-4 { background: linear-gradient(135deg, #181818 0%, #252525 100%); }
.gp-5 { background: linear-gradient(135deg, #252515 0%, #35351a 100%); }
.gp-6 { background: linear-gradient(135deg, #152525 0%, #1a3535 100%); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 200, 32, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox image & caption */
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}
.lightbox__caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 680px;
  line-height: 1.6;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--c-bg);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--c-gray);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer__copy a {
  color: var(--c-gold);
  opacity: 0.6;
  transition: opacity var(--ease);
}
.footer__copy a:hover { opacity: 1; }

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease);
}
.lightbox__close:hover { color: var(--c-gold); }

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-white);
  font-size: 1.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.lightbox__nav:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #000;
}
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ===================================================
   FADE-IN ANIMAATIO (Intersection Observer)
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIIVISUUS
   =================================================== */
@media (max-width: 1024px) {
  .result-stats-bar {
    gap: 0.5rem;
  }
  .stat-item {
    padding: 0.75rem 1rem;
    min-width: 60px;
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav__hamburger { display: flex; }
  .nav__logo { display: none; }
  .nav.menu-open .nav__logo { display: block; }

  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.6rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__link { font-size: 1rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Players */
  .players-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* Lightbox nav */
  .lightbox__nav--prev { left: 0.75rem; }
  .lightbox__nav--next { right: 0.75rem; }

  /* Results table – hide date column on small screens */
  .results-table th:first-child,
  .results-table td:first-child { display: none; }
  .results-table .report-row td,
  .results-table .results-year td { display: table-cell; }
  .res-date-inline {
    display: block;
    font-size: 0.72rem;
    color: var(--c-gray);
    margin-top: 0.15rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .gallery-grid { gap: 0.6rem; }
  .news-grid { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
}
