:root {
  --bg: #eaf6ff;
  --paper: rgba(255, 249, 242, 0.8);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --ink: #151515;
  --muted: #5f666d;
  --line: rgba(21, 21, 21, 0.12);
  --accent: #ef2b2d;
  --shadow: 0 24px 60px rgba(16, 60, 90, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 43, 45, 0.08), transparent 25%),
    radial-gradient(circle at top right, rgba(135, 205, 251, 0.24), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #fff8ef 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  opacity: 0.04;
}

body.gate-locked { height: 100svh; overflow: hidden; }
body.gate-locked .hero,
body.gate-locked main,
body.gate-locked .footer,
body.gate-locked .site-footnote { visibility: hidden; pointer-events: none; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
}

h1 { font-size: clamp(2.35rem, 4.7vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.hero, .section, .footer, .startpage {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
}

.startpage {
  position: fixed;
  inset: 0;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.97) 0%, rgba(234, 246, 255, 0.97) 55%, rgba(255, 248, 239, 0.97) 100%);
  transition: opacity 320ms ease, visibility 320ms ease;
  z-index: 50;
}

.startpage.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }

.startpage-inner {
  width: min(100%, 66rem);
  min-height: calc(100svh - 2rem);
  padding: clamp(1.6rem, 5vw, 4rem);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at top right, rgba(135, 205, 251, 0.22), transparent 32%),
    radial-gradient(circle at bottom left, rgba(239, 43, 45, 0.1), transparent 28%),
    rgba(255, 249, 242, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
}

.startpage-inner.cookie-choice-open > :not(.cookie-panel) {
  opacity: 0.16;
  pointer-events: none;
  filter: blur(2px);
}

.startpage-logo { width: min(76vw, 28rem); height: auto; display: block; }
.startpage-copy { max-width: 40rem; font-size: clamp(1rem, 2vw, 1.16rem); }

.startpage-actions,
.cookie-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cookie-panel {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 2rem), 34rem);
  padding: 1.2rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow: var(--shadow);
  z-index: 3;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.countdown-bar {
  width: min(100%, 86rem);
  margin: 0 auto 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(16, 60, 90, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.countdown-copy {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.countdown-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.countdown-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 45, 0.18);
  background: rgba(255, 45, 45, 0.08);
  color: var(--accent);
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.countdown-social-link svg {
  width: 1.12rem;
  height: 1.12rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.countdown-social-link .icon-fill {
  fill: currentColor;
  stroke: none;
}

.countdown-social-link .icon-line {
  fill: none;
}

.countdown-social-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 45, 45, 0.14);
  border-color: rgba(255, 45, 45, 0.28);
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21, 21, 21, 0.08);
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#countdown-days {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  min-height: 2.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.85rem;
  background: var(--accent);
  color: #fff8f3;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: clamp(205px, 26vw, 320px); height: auto; }
.nav-cluster {
  display: grid;
  justify-items: end;
  gap: 0.72rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.nav-links a, .eyebrow, .section-tag, .strip-kicker, .card-label, .panel-title, .time, .practical-label, .rank-number, .panel-label { letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links a {
  font-size: 0.82rem;
  text-decoration: none;
  color: rgba(21, 21, 21, 0.72);
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.nav-cta-primary {
  background: var(--accent);
  color: #fff8f3;
  box-shadow: 0 10px 24px rgba(239, 43, 45, 0.16);
}

.nav-cta-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border: 1px solid rgba(21, 21, 21, 0.1);
  box-shadow: 0 6px 18px rgba(21, 21, 21, 0.05);
}
.eyebrow, .section-tag, .strip-kicker, .card-label, .panel-title, .time, .practical-label, .rank-number, .panel-label { color: var(--accent); font-size: 0.82rem; font-weight: 800; }

.hero { padding: 1rem clamp(1.2rem, 3vw, 3.2rem) 2rem; }
.hero-kicker { margin: 0 0 0.8rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 1rem;
  align-items: start;
}

.hero-copy, .section-copy-block, .closing-copy, .admin-login-form, .dj-meta {
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
}
.hero-copy { align-content: start; max-width: 50rem; }
.hero-copy h1 {
  white-space: nowrap;
}
.hero-text, .section-note, .footer-details { max-width: 38rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff8f3; box-shadow: 0 12px 30px rgba(239, 43, 45, 0.18); }
.button-secondary { background: rgba(255, 255, 255, 0.85); color: var(--ink); border: 1px solid var(--line); }

.hero-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 45rem);
  margin-top: 0.45rem;
}

.hero-actions .button {
  min-height: 3.45rem;
  padding-inline: 1.45rem;
}

.hero-highlights {
  width: min(100%, 45rem);
  margin-top: 0.4rem;
  align-items: stretch;
  gap: 0.8rem;
}

.hero-highlight {
  min-height: 100%;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 248, 241, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(16, 60, 90, 0.08);
  display: grid;
  align-content: start;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.hero-highlight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(239, 43, 45, 0.95), rgba(239, 43, 45, 0.22));
  opacity: 0.88;
}

.hero-highlight strong {
  display: block;
  line-height: 1.42;
  font-size: 1.02rem;
  padding-right: 0.15rem;
}

.hero-highlights,
.intro-strip,
.mood-grid,
.timeline,
.practical-grid,
.sponsors-grid,
.group-admin-grid,
.group-section-grid,
.bracket-grid,
.ranking-grid,
.dj-grid,
.stats-grid,
.dashboard-links { display: grid; gap: 0.9rem; }

.hero-highlights, .intro-strip, .mood-grid, .sponsors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.practical-grid, .split-section, .closing-section, .group-admin-grid, .group-section-grid, .bracket-grid { grid-template-columns: 1fr 1fr; }
.ranking-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dj-grid, .stats-grid, .dashboard-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.results-stack,
.group-section,
.bracket-stage,
.ranking-grid,
.fairplay-summary {
  width: min(100%, 86rem);
  margin-inline: auto;
}

.hero-card,
.hero-highlight,
.strip-item,
.editorial-panel,
.panel-box,
.timeline-item,
.practical-card,
.closing-card,
.group-admin-card,
.group-card,
.rank-card,
.match-card,
.bracket-stage,
.dj-card,
.sponsor-card,
.stat-card,
.dashboard-link-card,
.admin-login-card,
.fairplay-badge {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card { padding: 0.85rem; border-radius: 2rem; }
.hero-card-stack { display: grid; grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.1fr); gap: 0.7rem; }
.hero-poster, .mood-card { overflow: hidden; border-radius: 1.5rem; }
.hero-poster img, .mood-card img { width: 100%; display: block; object-fit: cover; }
.hero-poster img { height: 100%; aspect-ratio: 1 / 1; }
.mood-card {
  margin: 0;
  height: 100%;
  aspect-ratio: 0.72 / 1;
}
.mood-card img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
}
.hero-note { background: var(--paper-strong); border-radius: 1.5rem; padding: 1.05rem; }

.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.65rem; }
.feature-list li { padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }

.section { padding: clamp(2.2rem, 5vw, 4rem) clamp(1.2rem, 3vw, 3.2rem); }
.split-section, .results-stack, .bracket-stage { display: grid; gap: 1.2rem; }
.editorial-panel { padding: 0.7rem; border-radius: 1.8rem; display: grid; gap: 0.55rem; }
.strip-item, .timeline-item, .panel-box, .practical-card, .closing-card, .group-admin-card, .group-card, .rank-card, .match-card, .dj-card, .sponsor-card, .stat-card, .dashboard-link-card { padding: 1.2rem; border-radius: 1.5rem; }

.closing-section {
  align-items: start;
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}

.closing-copy {
  padding-bottom: 0.35rem;
}

.closing-copy h2 {
  margin-bottom: 0.2rem;
}

.newsletter-section {
  padding-top: 0;
}

.engagement-grid {
  width: min(100%, 86rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.newsletter-card {
  padding: clamp(1.2rem, 2.8vw, 1.7rem);
  border-radius: 1.8rem;
  background: rgba(255, 249, 242, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1rem;
  min-width: 0;
}

.contact-card {
  align-items: stretch;
}

.newsletter-copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}

.newsletter-form {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-card .newsletter-form {
  width: 100%;
}

.newsletter-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.newsletter-button {
  width: 100%;
}

.newsletter-status {
  min-height: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.newsletter-status.is-success {
  color: #1f7a3f;
}

.newsletter-status.is-error {
  color: var(--accent);
}

.contact-textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-card h2,
.newsletter-card h2 {
  max-width: 12ch;
}

.contact-card p,
.newsletter-card p {
  max-width: 28rem;
}

.group-section,
.bracket-stage {
  padding: 1rem;
  border-radius: 1.8rem;
  background: rgba(255, 249, 242, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(16, 60, 90, 0.08);
  backdrop-filter: blur(16px);
}

.group-section-grid,
.bracket-grid {
  align-items: start;
  gap: 1rem;
}

.group-card-header {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.95rem;
}

.group-card {
  background: rgba(255, 253, 249, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(16, 60, 90, 0.08);
}

.intro-strip {
  align-items: stretch;
}

.strip-item {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.strip-item strong {
  display: block;
  line-height: 1.45;
}

.sponsors-grid {
  align-items: stretch;
  gap: 1.15rem;
}

.sponsors-section {
  position: relative;
  z-index: 2;
}

.sponsors-marquee {
  width: min(100%, 86rem);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.sponsors-marquee::before,
.sponsors-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2.5rem, 8vw, 6rem);
  z-index: 2;
  pointer-events: none;
}

.sponsors-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(234, 246, 255, 1) 0%, rgba(234, 246, 255, 0) 100%);
}

.sponsors-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(234, 246, 255, 1) 0%, rgba(234, 246, 255, 0) 100%);
}

.sponsors-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  position: relative;
}

.sponsors-track {
  --sponsor-gap: 1.15rem;
  display: flex;
  gap: var(--sponsor-gap);
  width: max-content;
  will-change: transform;
  animation: sponsors-marquee 55s linear infinite;
}

.sponsors-group {
  display: flex;
  align-items: stretch;
  gap: var(--sponsor-gap);
  flex: 0 0 auto;
  width: max-content;
}

.sponsors-grid-redesigned {
  display: flex;
}

.sponsor-card {
  flex: 0 0 clamp(18rem, 24vw, 24rem);
  width: clamp(18rem, 24vw, 24rem);
  height: 24.5rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(16, 60, 90, 0.09);
}

.sponsor-card-brand {
  padding: 1.35rem 1.35rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  gap: 0.85rem;
  border-radius: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.sponsor-card-brand:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 43, 45, 0.18);
  box-shadow: 0 24px 46px rgba(16, 60, 90, 0.12);
}

.sponsor-card-brand:focus-visible {
  outline: 3px solid rgba(239, 43, 45, 0.2);
  outline-offset: 4px;
}

.sponsor-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0.2rem 0.3rem;
}

.section-heading, .footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.section-heading {
  position: relative;
  z-index: 3;
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

.sponsor-cta-button {
  min-height: 3.15rem;
  background: var(--accent);
  color: #fff8f3;
  border-color: transparent;
  box-shadow: 0 18px 30px rgba(255, 45, 45, 0.2);
}

.sponsor-cta-button:hover {
  background: #ff3f3f;
}

.sponsor-cta-wrap {
  width: min(100%, 86rem);
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: center;
}

.dashboard-newsletter-summary {
  width: min(100%, 86rem);
  margin: 0 auto 1rem;
}

.newsletter-admin-list {
  width: min(100%, 86rem);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.newsletter-admin-item {
  display: grid;
  gap: 0.35rem;
}

.newsletter-admin-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.dashboard-shell-section {
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

.dashboard-shell {
  width: min(100%, 86rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-panel {
  background: rgba(255, 249, 242, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.dashboard-sidebar {
  position: sticky;
  top: 1.2rem;
  padding: 1.2rem;
  border-radius: 1.7rem;
  display: grid;
  gap: 1rem;
}

.dashboard-sidebar h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 0.94;
}

.dashboard-sidebar .section-note {
  font-size: 0.98rem;
}

.dashboard-sidebar-nav {
  display: grid;
  gap: 0.65rem;
}

.dashboard-filter-button {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

a.dashboard-filter-button {
  display: block;
  text-decoration: none;
}

.dashboard-filter-button:hover {
  transform: translateY(-1px);
}

.dashboard-filter-button.is-active {
  background: var(--accent);
  color: #fff8f3;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(239, 43, 45, 0.18);
}

.dashboard-content {
  display: grid;
}

.dashboard-panel {
  display: none;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 1.8rem;
}

.dashboard-panel.is-active {
  display: grid;
}

.dashboard-panel-heading {
  width: 100%;
  margin-bottom: 0;
  align-items: start;
}

.dashboard-panel-heading h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 0.95;
}

.dashboard-links-single {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 86rem);
  margin: 0 auto;
}

.section-heading + *,
.hero-copy > .hero-highlights,
.hero-copy > .hero-actions {
  position: relative;
  z-index: 1;
}

.hero-grid,
.intro-strip,
.mood-grid,
.timeline,
.split-section,
.practical-grid,
.closing-section,
.sponsors-grid,
.group-section-grid,
.bracket-grid,
.ranking-grid,
.dj-grid,
.stats-grid,
.dashboard-links {
  align-items: start;
}

.video-section {
  position: relative;
  width: min(100% - 2.4rem, 46rem);
  margin: clamp(2.2rem, 5vw, 4rem) auto;
  min-height: 100svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(135, 205, 251, 0.24), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #fff8ef 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 36px rgba(16, 60, 90, 0.08);
}

.promo-video { display: block; width: 100%; height: auto; max-height: 88vh; }
.video-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(5,13,18,0.06) 100%); pointer-events: none; }
.video-controls { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 0.85rem; padding: clamp(1rem, 3vw, 2rem); }
.video-sound-toggle { border: 1px solid rgba(255,255,255,0.38); background: rgba(15,31,44,0.72); color: #fff8f1; padding: 0.8rem 1rem; border-radius: 999px; font-weight: 800; cursor: pointer; }
.video-volume-slider { width: min(220px, 58vw); accent-color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(21,21,21,0.06);
}
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.standings-table th, .standings-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid rgba(21,21,21,0.08); text-align: center; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2) { text-align: left; }
.standings-table thead th {
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.7);
}
.standings-table tbody tr:last-child td { border-bottom: 0; }

.match-editor-grid, .group-admin-list { display: grid; gap: 0.85rem; }
.match-score-row, .knockout-team-row { display: grid; align-items: center; gap: 0.65rem; }
.match-score-row { grid-template-columns: 1fr auto 1fr; }
.knockout-team-row { grid-template-columns: minmax(0, 1fr) 88px; }
.score-input, .number-input, .text-input, .winner-select { width: 100%; border-radius: 0.95rem; border: 1px solid var(--line); background: rgba(255,255,255,0.82); padding: 0.8rem 0.9rem; }
.score-input, .number-input { text-align: center; }
.score-divider { font-weight: 800; color: var(--accent); }
.team-config-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 0.7rem; align-items: end; }
.field-label, .match-label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.match-schedule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.9rem; }
.match-meta { margin: -0.15rem 0 0.95rem; font-size: 0.82rem; font-weight: 700; color: rgba(21, 21, 21, 0.5); }
.match-meta-input { min-height: 2.85rem; }

.match-card {
  background: rgba(255, 253, 249, 0.92);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(16, 60, 90, 0.07);
}

.match-label {
  margin-bottom: 0.85rem;
  color: rgba(21, 21, 21, 0.74);
  text-transform: none;
  letter-spacing: 0;
}

.knockout-team-row {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(21,21,21,0.08);
}

.knockout-team-row:first-of-type { padding-top: 0; }
.knockout-team-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.knockout-team-row strong {
  justify-self: end;
  min-width: 1.7rem;
  text-align: right;
}

.bracket-card { min-height: 100%; }

.rank-card {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  background: rgba(255, 253, 249, 0.9);
}

.rank-card strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.2rem;
}

.admin-login-card {
  width: min(100%, 540px);
  display: grid;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 1.8rem);
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at top right, rgba(135, 205, 251, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(239, 43, 45, 0.08), transparent 28%),
    rgba(255, 249, 242, 0.86);
}

.admin-login-card h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  line-height: 0.92;
}

.admin-login-card .hero-text {
  max-width: 28rem;
}

.admin-login-form {
  gap: 0.9rem;
}

.admin-login-form .winner-select-label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-login-card .text-input {
  min-height: 3.1rem;
  border-radius: 1.1rem;
  background: rgba(237, 244, 255, 0.88);
  border: 1px solid rgba(120, 148, 183, 0.26);
}

.admin-login-card .button-primary {
  min-height: 3.4rem;
  margin-top: 0.15rem;
}

.admin-login-backlink {
  font-size: 0.96rem;
}

.admin-login-error {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.fairplay-summary { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.fairplay-badge { min-width: 110px; border-radius: 1.2rem; padding: 0.9rem 1rem; display: grid; gap: 0.15rem; text-align: center; }
.fairplay-badge strong, .metric-value { font-size: 1.8rem; color: var(--accent); }

.dj-card { gap: 0.9rem; transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease; }
.dj-card:hover, .dashboard-link-card:hover { transform: translateY(-4px); }
.dj-photo, .dj-photo-placeholder { width: 100%; min-height: 190px; border-radius: 1.1rem; display: block; }
.dj-photo { object-fit: cover; }
.dj-photo-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, rgba(239,43,45,0.12), rgba(135,205,251,0.18)); border: 1px dashed rgba(21,21,21,0.18); color: var(--muted); font-weight: 800; }
.dj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 86rem; margin: 0 auto; }
.dj-grid > :nth-child(5):nth-last-child(3) { grid-column: 2; }
.dashboard-link-card { display: grid; gap: 0.4rem; }

.content-editor-shell {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.content-editor-form,
.content-editor-fields {
  display: grid;
  gap: 1rem;
}

.content-editor-field {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid rgba(21, 21, 21, 0.06);
}

.content-editor-textarea {
  min-height: 7rem;
  resize: vertical;
}

.content-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sponsor-card-logo {
  align-content: start;
  gap: 0.85rem;
}

.sponsor-link {
  display: grid;
  gap: 0.65rem;
  align-items: start;
  text-decoration: none;
}

.sponsor-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12));
}

.sponsor-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.sponsor-card-brand .sponsor-name {
  font-size: 0.98rem;
}

.sponsor-logo-toutbien {
  max-height: 5rem;
}

.sponsor-logo-ago {
  max-height: 7rem;
  width: auto;
}

.sponsor-logo-abinbev {
  max-height: 4.2rem;
}

.sponsor-logo-stella {
  max-height: 5.25rem;
}

@keyframes sponsors-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.575rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-track {
    animation: none;
  }
}

.results-page .hero { margin: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) 0; }
.results-page .hero-grid,
.results-page .section-heading,
.results-page .footer {
  width: min(100%, 86rem);
  margin-inline: auto;
}

.results-page .section-heading {
  margin-bottom: 1.3rem;
}

.results-page .section {
  padding-top: clamp(2rem, 4vw, 3.2rem);
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}

.results-page .hero-note.results-note {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.hero-admin-compact {
  padding-top: 0.8rem;
  padding-bottom: 0.2rem;
}

.admin-nav-logout {
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
}

.footer { padding: 0 clamp(1.2rem, 3vw, 3.2rem) 1.2rem; }
.site-footnote { margin: 0.2rem 1rem 1.4rem; font-size: 0.74rem; line-height: 1.5; color: rgba(21,21,21,0.56); text-align: center; }

.reveal { opacity: 0; transform: translateY(22px) scale(0.992); transition: opacity 820ms cubic-bezier(0.22,1,0.36,1), transform 820ms cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 820px) {
  .hero-grid, .hero-highlights, .intro-strip, .mood-grid, .timeline, .split-section, .closing-section, .practical-grid, .sponsors-grid, .sponsors-grid-redesigned, .group-admin-grid, .group-section-grid, .bracket-grid, .ranking-grid, .dj-grid, .stats-grid, .dashboard-links, .engagement-grid { grid-template-columns: 1fr; }
  .sponsors-marquee { padding-inline: 1rem; }
  .sponsor-card { flex-basis: min(calc(100vw - 2rem), 20rem); width: min(calc(100vw - 2rem), 20rem); height: 22.5rem; }
  .nav, .section-heading, .footer { flex-direction: column; align-items: flex-start; }
  .nav-cluster { width: 100%; justify-items: stretch; }
  .nav-actions { justify-content: flex-start; }
  .nav-links { justify-content: flex-start; }
  .hero-card { max-width: 100%; }
  .hero-card-stack { grid-template-columns: 1fr; }
  .video-section { min-height: auto; }
  .newsletter-card { grid-template-columns: 1fr; }
  .newsletter-form { width: 100%; }
  .countdown-bar { flex-direction: column; align-items: flex-start; border-radius: 1.5rem; }
  .countdown-socials { justify-content: flex-start; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .startpage-inner { min-height: calc(100svh - 1.8rem); padding: 1.2rem; border-radius: 2rem; }
  .cookie-panel { width: min(calc(100% - 1.2rem), 34rem); padding: 1rem; }
  .startpage-actions, .cookie-actions, .hero-actions { width: 100%; flex-direction: column; }
  .hero { padding: 0.9rem 1rem 1.4rem; }
  .section { padding: 1.4rem 1rem; }
  .nav { align-items: center; gap: 0.8rem; }
  .nav-cluster { width: 100%; justify-items: center; }
  .nav-actions { width: 100%; justify-content: center; }
  .nav-links { width: 100%; justify-content: center; gap: 0.7rem 1rem; }
  .brand { width: 100%; justify-content: center; }
  .brand-logo { width: min(78vw, 310px); }
  .hero-kicker, .hero-copy, .section-heading, .footer, .closing-copy { text-align: center; }
  .hero-copy h1 { white-space: normal; }
  .hero-text, .section-note, .footer-details { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-highlights { width: 100%; }
  .button { width: 100%; }
  .countdown-bar, .countdown-copy { text-align: center; }
  .countdown-bar { align-items: center; }
  .countdown-socials { justify-content: center; }
  .newsletter-card, .newsletter-copy { text-align: center; }
  .newsletter-card { align-items: center; }
  .newsletter-form, .newsletter-field { width: 100%; }
  .sponsor-cta-wrap { width: 100%; }
  .dashboard-sidebar, .dashboard-panel, .dashboard-filter-button { text-align: center; }
  .hero-note, .hero-card, .hero-highlight, .strip-item, .timeline-item, .sponsor-card, .practical-card, .closing-card, .group-admin-card, .group-card, .rank-card, .stat-card, .dashboard-link-card, .dj-card, .match-card { padding: 1rem; border-radius: 1.25rem; }
  .mood-card img { min-height: 15rem; }
  .hero-poster img { aspect-ratio: 4 / 2.8; }
  .video-controls { padding: 0.8rem; gap: 0.55rem; flex-direction: column; }
  .video-volume-slider { width: min(180px, 48vw); }
  .team-config-row, .knockout-team-row { grid-template-columns: 1fr; }
  .match-schedule-row { grid-template-columns: 1fr; }
  .standings-table { font-size: 0.82rem; }
  .standings-table th, .standings-table td { padding: 0.5rem 0.35rem; }
  .admin-login-card { width: 100%; border-radius: 1.5rem; padding: 1.2rem; }
}
