:root {
  color-scheme: dark;
  --bg: #080d14;
  --bg-soft: #111b2b;
  --surface: rgba(16, 24, 38, 0.72);
  --surface-strong: #162237;
  --line: rgba(126, 171, 226, 0.22);
  --line-strong: rgba(126, 171, 226, 0.38);
  --text: #ecf3ff;
  --muted: #90a4c2;
  --primary: #3ec7a8;
  --primary-strong: #27b191;
  --accent: #66b3ff;
  --danger: #ff6d7f;
  --warning: #f4b66d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.28);
  --motion-fast: 180ms;
  --motion-slow: 460ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(62, 199, 168, 0.24), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(102, 179, 255, 0.2), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(244, 182, 109, 0.14), transparent 45%),
    conic-gradient(from 220deg at 72% 42%, rgba(62, 199, 168, 0.14), rgba(102, 179, 255, 0.08), rgba(244, 182, 109, 0.1), rgba(62, 199, 168, 0.14)),
    linear-gradient(160deg, #070b11 0%, #0a111c 45%, #10182a 100%);
  background-size: 170% 170%, 160% 160%, 180% 180%, 135% 135%, 100% 100%;
  animation: bg-flow 20s ease-in-out infinite alternate;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 42px 42px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 100%);
  opacity: 0.32;
  will-change: transform, opacity;
  animation: grid-float 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(62, 199, 168, 0.16), transparent 42%),
    radial-gradient(circle at 76% 25%, rgba(102, 179, 255, 0.14), transparent 44%),
    radial-gradient(circle at 42% 76%, rgba(244, 182, 109, 0.12), transparent 40%),
    conic-gradient(from 40deg at 56% 52%, rgba(102, 179, 255, 0.1), rgba(62, 199, 168, 0.08), rgba(244, 182, 109, 0.1), rgba(102, 179, 255, 0.1));
  filter: blur(34px);
  opacity: 0.55;
  will-change: transform, opacity;
  animation: ambient-drift 20s ease-in-out infinite alternate, ambient-spin 46s linear infinite;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

a:hover {
  color: #8ec7ff;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 14px 44px;
}

.page-shell.shell-narrow {
  max-width: 560px;
}

.page-shell.shell-wide {
  max-width: 860px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 10px;
  z-index: 95;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 19, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.16) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: topbar-sweep 9s ease-in-out infinite;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(141, 176, 231, 0.24);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(12, 20, 33, 0.86), rgba(11, 18, 30, 0.64));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--text);
  font-weight: 700;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.brand::before {
  content: "";
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid rgba(141, 176, 231, 0.34);
  background-image:
    linear-gradient(135deg, rgba(62, 199, 168, 0.16), rgba(102, 179, 255, 0.1)),
    url("/turnier/public/assets/logo.png");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(62, 199, 168, 0.16) inset;
}

.brand::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 56px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 11px;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(62, 199, 168, 0.22);
  opacity: 0.7;
}

@media (hover: hover) {
  .brand:hover {
    transform: translateY(-1px);
    border-color: rgba(141, 176, 231, 0.46);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-section-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 2px;
  border-radius: 999px;
  border: 1px solid rgba(62, 199, 168, 0.35);
  background: rgba(62, 199, 168, 0.12);
  color: #a8f1df;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-section-label--public {
  border-color: rgba(244, 182, 109, 0.38);
  background: rgba(244, 182, 109, 0.14);
  color: #ffd6a6;
}

.nav-divider {
  width: 1px;
  min-height: 28px;
  align-self: center;
  background: linear-gradient(180deg, transparent, rgba(141, 176, 231, 0.55), transparent);
  margin: 0 3px;
}


.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(141, 176, 231, 0.3);
  border-radius: 10px;
  background: rgba(14, 24, 39, 0.72);
  color: #dbe9ff;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 70;
}

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

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.24);
  color: #bed8ff;
  font-size: 0.92rem;
  background: rgba(14, 24, 39, 0.72);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.nav-logout-form {
  margin: 0;
}

.nav-link-button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.24);
  color: #bed8ff;
  font-size: 0.92rem;
  background: rgba(14, 24, 39, 0.72);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.nav-links a:hover {
  border-color: rgba(141, 176, 231, 0.5);
  background: rgba(22, 37, 61, 0.86);
  color: #dbe9ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(35, 65, 104, 0.3);
}

.nav-link-button:hover {
  border-color: rgba(141, 176, 231, 0.5);
  background: rgba(22, 37, 61, 0.86);
  color: #dbe9ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(35, 65, 104, 0.3);
}

.inline-checkbox {
  width: auto;
  margin-right: 8px;
}
.nav-links .nav-link-website {
  border-color: rgba(244, 182, 109, 0.45);
  background: rgba(74, 52, 28, 0.6);
  color: #ffd9ac;
  font-weight: 700;
}

.nav-links .nav-link-website:hover {
  border-color: rgba(244, 182, 109, 0.65);
  background: rgba(108, 70, 30, 0.74);
  color: #ffe7c9;
  box-shadow: 0 8px 18px rgba(128, 82, 34, 0.35);
}


.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: rise-in 420ms ease both;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.hero {
  padding: 28px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.live-hero {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.live-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.live-hero-score {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1;
}

.live-hero-time {
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-counter-main {
  font-size: 1.3rem;
  padding: 6px 14px;
  animation: counter-pulse 2.8s ease-in-out infinite;
}

.live-next-round {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 980px;
}

.next-match-card {
  margin-top: 12px;
  width: min(100%, 920px);
  border: 1px solid rgba(126, 171, 226, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(14, 24, 38, 0.88), rgba(17, 34, 58, 0.72)),
    radial-gradient(circle at 14% 18%, rgba(62, 199, 168, 0.16), transparent 50%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  align-self: stretch;
  text-align: left;
}

.next-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.next-match-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9c6eb;
  font-weight: 700;
}

.next-match-main {
  margin: 0;
  font-size: clamp(1.12rem, 2.6vw, 1.46rem);
  line-height: 1.25;
  font-weight: 700;
  color: #f1f7ff;
}

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

.next-match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.3);
  background: rgba(9, 16, 28, 0.72);
  color: #d8e8ff;
  font-size: 0.84rem;
  padding: 5px 10px;
}

.next-match-chip--kickoff {
  border-color: rgba(62, 199, 168, 0.5);
  background: rgba(62, 199, 168, 0.14);
  color: #d7ffef;
  font-size: 0.9rem;
  font-weight: 700;
}

.next-match-chip--round {
  border-color: rgba(141, 176, 231, 0.4);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(62, 199, 168, 0.28), transparent 72%);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
}

.hero p,
.muted {
  color: var(--muted);
}

.panel {
  padding: 20px 18px;
}

.panel + .panel {
  margin-top: 14px;
}

.admin-quick-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  overflow-x: auto;
  padding: 2px 1px 6px;
  scrollbar-width: thin;
}

.admin-quick-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.34);
  background: rgba(13, 22, 36, 0.76);
  color: #d7e8ff;
  padding: 7px 12px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.admin-quick-nav a:hover {
  border-color: rgba(62, 199, 168, 0.55);
  color: #eff8ff;
  transform: translateY(-1px);
}

@media (hover: hover) {
  .panel:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.42);
  }
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.panel.admin-panel--enhanced .admin-panel-head {
  margin-bottom: 0;
}

.panel.admin-panel--enhanced .admin-panel-body {
  margin-top: 12px;
}

.panel.admin-panel--enhanced.admin-panel--collapsed .admin-panel-body {
  margin-top: 0;
}

.admin-panel-toggle {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.34);
  background: rgba(13, 22, 36, 0.82);
  color: #d7e8ff;
  box-shadow: none;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-panel-toggle::after {
  display: none;
}

.admin-panel-toggle:hover {
  background: rgba(23, 36, 58, 0.86);
  border-color: rgba(141, 176, 231, 0.5);
  box-shadow: none;
}

.admin-panel-toggle:focus-visible {
  outline: 2px solid rgba(102, 179, 255, 0.72);
  outline-offset: 2px;
}

.admin-panel-toggle-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-panel-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.admin-panel-toggle[aria-expanded=\"false\"] .admin-panel-chevron {
  transform: rotate(-45deg);
}

.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.match-list li {
  border: 1px solid rgba(122, 166, 221, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(12, 19, 30, 0.8);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

@media (hover: hover) {
  .match-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(141, 176, 231, 0.42);
    box-shadow: var(--shadow-soft);
  }
}

.match-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-matches-panel .panel-title {
  margin-bottom: 8px;
}

.home-matches-group-title {
  margin: 16px 0 10px;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9d2f2;
}

.home-match-list {
  gap: 12px;
}

.home-match-card {
  padding: 0 !important;
  overflow: hidden;
  border-color: rgba(128, 168, 222, 0.24) !important;
  background: linear-gradient(160deg, rgba(12, 20, 33, 0.88), rgba(10, 17, 29, 0.86)) !important;
}

.home-match-card-link {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
  min-height: 100%;
}

.home-match-card-link:hover {
  color: var(--text);
}

.home-match-card .home-match-slot--teams {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  line-height: 1.25;
  font-weight: 700;
}

.home-match-card .home-match-slot--meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.home-match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.35);
  background: rgba(9, 16, 28, 0.72);
  color: #d8e8ff;
  font-size: 0.84rem;
  padding: 5px 10px;
}

.home-match-chip--kickoff {
  border-color: rgba(62, 199, 168, 0.52);
  background: rgba(62, 199, 168, 0.14);
  color: #d7ffef;
  font-weight: 700;
}

.home-match-slot--score,
.home-match-slot--penalties,
.home-match-slot--cards {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed rgba(141, 176, 231, 0.26);
  padding-top: 8px;
}

.home-match-score-label,
.home-match-cards-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-match-score-value {
  font-size: 1.06rem;
  color: #ffe2ac;
  letter-spacing: 0.03em;
}

.home-match-cards-value {
  color: #d5e7ff;
  font-weight: 700;
}

.home-match-card .status {
  margin-left: auto;
}

@media (hover: hover) {
  .home-match-card:hover {
    border-color: rgba(62, 199, 168, 0.48) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(62, 199, 168, 0.12) inset;
    transform: translateY(-2px);
  }
}

.team-label {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.08;
  gap: 2px;
  vertical-align: middle;
}

.team-label-main {
  font-weight: 700;
}

.team-label-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.team-vs {
  margin: 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-card {
  display: grid;
  gap: 8px;
}

.live-scoreline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.live-counter-value {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 182, 109, 0.5);
  background: rgba(244, 182, 109, 0.16);
  color: #ffd7a8;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.live-minute-inline {
  margin-left: 6px;
  color: #ffd7a8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.live-admin-clock {
  margin: 8px 0 16px;
}

.live-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.live-score-team {
  border: 1px solid rgba(128, 168, 222, 0.2);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.78);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.live-score-team h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #d2e4ff;
}

.live-score-number {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: #ffd7a8;
}

.live-score-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.live-score-actions form {
  margin: 0;
}

.live-score-actions button {
  width: 100%;
}

.live-penalty-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-penalty-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.live-penalty-actions form {
  margin: 0;
  display: grid;
  gap: 6px;
}

.live-penalty-actions button {
  width: 100%;
}

.live-score-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--muted);
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.status--scheduled {
  border-color: rgba(126, 171, 226, 0.35);
  background: rgba(77, 112, 158, 0.22);
  color: #b6d4ff;
}

.status--live {
  border-color: rgba(244, 182, 109, 0.44);
  background: rgba(244, 182, 109, 0.17);
  color: #ffd09a;
  animation: live-glow 2.2s ease-in-out infinite;
}

.status--finished {
  border-color: rgba(62, 199, 168, 0.4);
  background: rgba(62, 199, 168, 0.16);
  color: #95f0da;
}

.status--unknown {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #d6dce5;
}

.table-wrap {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(128, 168, 222, 0.16);
  text-align: left;
}

.data-table th {
  color: #c9defd;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(17, 28, 44, 0.92);
}

.data-table tr:nth-child(even) td {
  background: rgba(15, 24, 38, 0.48);
}

.data-table tbody tr {
  transition: background-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.data-table tbody tr:hover td {
  background: rgba(33, 53, 83, 0.58);
}

.points {
  font-weight: 700;
  color: #9ee8d7;
}

.alert {
  margin: 0 0 14px;
  border: 1px solid rgba(255, 109, 127, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffd2d8;
  background: rgba(255, 109, 127, 0.12);
}

.notice {
  margin: 0 0 14px;
  border: 1px solid rgba(62, 199, 168, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  color: #bdf4e7;
  background: rgba(62, 199, 168, 0.16);
}

.field + .field {
  margin-top: 12px;
}

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

.form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.table-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.team-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(90px, 120px) minmax(100px, 140px) auto auto auto;
  gap: 8px;
  align-items: center;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.member-card {
  border: 1px solid rgba(128, 168, 222, 0.2);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.75);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-self: start;
}

.member-add-form,
.member-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.member-dropdown {
  border: 1px solid rgba(128, 168, 222, 0.24);
  border-radius: 10px;
  background: rgba(10, 16, 27, 0.54);
  padding: 8px 10px;
}

.member-dropdown summary {
  cursor: pointer;
  font-weight: 700;
  color: #c7ddfb;
}

.member-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(126, 171, 226, 0.24);
  border-radius: 8px;
  padding: 7px 8px;
  background: rgba(9, 14, 24, 0.62);
}

.member-delete-form {
  margin: 0;
}

.member-delete-form button {
  padding: 6px 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #bfd4f4;
  font-size: 0.94rem;
}

input,
select,
button {
  font-family: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(133, 176, 231, 0.32);
  border-radius: 10px;
  background: rgba(13, 20, 31, 0.9);
  color: #ecf3ff;
  padding: 10px 11px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus {
  border-color: rgba(62, 199, 168, 0.6);
  box-shadow: 0 0 0 3px rgba(62, 199, 168, 0.2);
}

.score-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  max-width: 230px;
}

.score-sep {
  color: var(--muted);
  font-weight: 700;
}

.score-inputs--compact {
  max-width: 190px;
}

.table-input,
.table-select {
  min-width: 0;
}

.table-input {
  padding: 8px 10px;
}

.table-input--kickoff {
  min-width: 172px;
}

.table-input--score,
.table-input--minute {
  text-align: center;
}

.table-input--minute {
  max-width: 88px;
}

.match-admin-cell {
  display: grid;
  gap: 6px;
}

.match-admin-status-preview {
  margin-top: 8px;
}

.data-table--matches-admin td {
  vertical-align: middle;
}

.actions {
  margin-top: 16px;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.admin-control-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-control-box {
  border: 1px solid rgba(128, 168, 222, 0.2);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.75);
  padding: 10px;
}

.admin-control-box h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #c7ddfb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.scorer-team-box {
  border: 1px solid rgba(128, 168, 222, 0.2);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.75);
  padding: 10px;
}

.scorer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.scorer-row {
  border: 1px solid rgba(126, 171, 226, 0.24);
  border-radius: 8px;
  background: rgba(9, 14, 24, 0.62);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scorer-name {
  font-weight: 600;
}

.scorer-action-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scorer-action-form button {
  padding: 6px 10px;
}

.scorer-goals {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .live-score-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-score-divider {
    display: none;
  }

  .live-penalty-actions {
    grid-template-columns: 1fr;
  }
}

button,
.button {
  border: 1px solid rgba(62, 199, 168, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(62, 199, 168, 0.95), rgba(39, 177, 145, 0.95));
  color: #06131a;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--motion-fast) ease, filter var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

button::after,
.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 52%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left var(--motion-slow) ease;
}

button:hover,
.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(39, 177, 145, 0.28);
}

button:hover::after,
.button:hover::after {
  left: 120%;
}

.button-danger {
  border-color: rgba(255, 109, 127, 0.55);
  background: linear-gradient(135deg, rgba(255, 109, 127, 0.95), rgba(219, 66, 92, 0.95));
  color: #fff1f4;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #bee7de;
}

.bracket-scroll {
  overflow-x: auto;
  padding: 12px 6px 8px;
}

.bracket-board {
  --match-h: 118px;
  --base-gap: 14px;
  --step: calc(var(--match-h) + var(--base-gap));
  --branch-w: 22px;
  --title-h: 24px;
  --line-connector: rgba(126, 171, 226, 0.5);
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 240px);
  gap: 42px;
  align-items: start;
  min-width: max-content;
  padding: 4px 0 8px;
}

.bracket-round {
  min-width: 220px;
  position: relative;
}

.bracket-round-body {
  display: flex;
  flex-direction: column;
  gap: var(--round-gap, 14px);
  padding-top: var(--round-offset, 0);
}

.round-title {
  font-size: 0.78rem;
  min-height: var(--title-h);
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bracket-round.round-index-1 {
  --round-gap: var(--base-gap);
  --round-offset: 0;
  --branch-size: calc(var(--step) / 2);
}

.bracket-round.round-index-2 {
  --round-gap: calc((2 * var(--step)) - var(--match-h));
  --round-offset: calc(var(--step) / 2);
  --branch-size: var(--step);
}

.bracket-round.round-index-3 {
  --round-gap: calc((4 * var(--step)) - var(--match-h));
  --round-offset: calc((3 * var(--step)) / 2);
  --branch-size: calc(2 * var(--step));
}

.bracket-round.round-index-4 {
  --round-gap: calc((8 * var(--step)) - var(--match-h));
  --round-offset: calc((7 * var(--step)) / 2);
  --branch-size: calc(4 * var(--step));
}

.bracket-match {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(13, 21, 35, 0.94), rgba(11, 18, 30, 0.94));
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: visible;
  min-height: var(--match-h);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.bracket-match--empty {
  background: rgba(12, 19, 30, 0.64);
  border-color: rgba(126, 171, 226, 0.3);
  border-style: dashed;
}

.bracket-stage {
  background: rgba(10, 16, 27, 0.62);
  border-color: var(--line);
}

.bracket-stage .muted {
  color: var(--muted);
}

.incoming-line {
  display: none;
  position: absolute;
  left: calc(-1 * var(--branch-w));
  top: calc(50% - 1px);
  width: var(--branch-w);
  border-top: 2px solid var(--line-connector);
}

.bracket-round.with-prev .incoming-line {
  display: block;
}

.bracket-match.has-next::before {
  content: "";
  position: absolute;
  right: calc(-1 * var(--branch-w));
  top: calc(50% - 1px);
  width: var(--branch-w);
  border-top: 2px solid var(--line-connector);
}

.bracket-match.has-next.is-top-branch::after,
.bracket-match.has-next.is-bottom-branch::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--branch-w));
  width: 0;
  border-left: 2px solid var(--line-connector);
}

.bracket-match.has-next.is-top-branch::after {
  top: calc(50% - 1px);
  height: var(--branch-size, 66px);
}

.bracket-match.has-next.is-bottom-branch::after {
  top: calc(50% - var(--branch-size, 66px));
  height: var(--branch-size, 66px);
}

.node-main {
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.node-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.bracket-teams {
  display: grid;
  gap: 6px;
}

.bracket-team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(126, 171, 226, 0.24);
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(9, 14, 24, 0.62);
}

.bracket-team-line.is-winner {
  border-color: rgba(244, 182, 109, 0.95);
  outline: 2px solid rgba(244, 182, 109, 0.58);
  box-shadow: inset 0 0 0 1px rgba(244, 182, 109, 0.45);
  background: rgba(244, 182, 109, 0.16);
}

.bracket-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.05;
}

.bracket-team-name .team-label {
  display: flex;
  align-items: flex-start;
}

.bracket-team-name .team-label-sub {
  font-size: 0.62rem;
}

.bracket-team-goals {
  min-width: 28px;
  text-align: right;
  font-weight: 800;
  color: #d7e8ff;
}

.champion-col {
  display: flex;
  align-items: center;
  min-width: 220px;
  padding-top: calc(var(--title-h) + ((7 * var(--step)) / 2) + (var(--match-h) / 2) - 1px);
}

.champion-line {
  width: 42px;
  border-top: 2px solid var(--line-connector);
}

.champion-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 168px;
  min-height: 66px;
  border-radius: 12px;
  border: 1px solid rgba(244, 182, 109, 0.6);
  background: linear-gradient(145deg, rgba(244, 182, 109, 0.22), rgba(62, 199, 168, 0.16));
  color: #f4fbff;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
}

.champion-box span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #ffd6a2;
}

.champion-box strong {
  font-size: 1rem;
  line-height: 1.1;
}

.bracket-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.bracket-simple-round {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(9, 15, 24, 0.5);
}

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

.bracket-simple-match {
  border: 1px solid rgba(126, 171, 226, 0.24);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 13, 22, 0.66);
}

.bracket-simple-match--empty {
  opacity: 0.72;
}

.bracket-simple-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.bracket-simple-head strong {
  font-size: 0.92rem;
}

.bracket-simple-head span {
  color: var(--muted);
}

.bracket-simple-status {
  margin: 0 0 8px;
}

.bracket-simple-teams {
  display: grid;
  gap: 6px;
}

.bracket-simple-link {
  margin-top: 8px;
  display: inline-flex;
  font-size: 0.84rem;
}

.bracket-simple-champion {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(244, 182, 109, 0.6);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(244, 182, 109, 0.22), rgba(62, 199, 168, 0.16));
  text-align: center;
}

.bracket-simple-champion span {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd6a2;
  font-weight: 700;
}

.bracket-simple-champion strong {
  font-size: 1.08rem;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  filter: blur(2px);
  transition: opacity var(--motion-slow) ease var(--reveal-delay, 0ms),
    transform var(--motion-slow) ease var(--reveal-delay, 0ms),
    filter var(--motion-slow) ease var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 18px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    position: sticky;
    top: 8px;
    overflow: visible;
  }

  .brand::before {
    width: 48px;
    height: 34px;
  }

  .brand::after {
    left: 12px;
    width: 48px;
    height: 34px;
  }

  .hero,
  .panel {
    padding: 18px 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(82vw, 320px);
    padding: 78px 14px 18px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    border-right: 1px solid rgba(141, 176, 231, 0.24);
    background: rgba(9, 15, 24, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.45);
    z-index: 120;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a,
  .nav-links .nav-link-button {
    width: 100%;
    border-radius: 10px;
    color: #e4f0ff;
    border-color: rgba(141, 176, 231, 0.4);
    background: rgba(17, 30, 49, 0.86);
  }
  .nav-links .nav-logout-form {
    width: 100%;
  }
  .nav-section-label {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .nav-divider {
    width: 100%;
    min-height: 1px;
    margin: 2px 0;
    background: linear-gradient(90deg, transparent, rgba(141, 176, 231, 0.55), transparent);
  }


  .field-grid,
  .form-inline,
  .table-form,
  .team-form,
  .admin-control-grid,
  .member-add-form,
  .member-filter-form {
    grid-template-columns: 1fr;
  }

  .scorer-team-grid {
    grid-template-columns: 1fr;
  }

  .scorer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .scorer-action-form {
    justify-content: space-between;
  }

  .member-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bracket-simple-grid {
    grid-template-columns: 1fr;
  }

  .bracket-simple-champion {
    flex-direction: column;
  }

  .champion-col {
    min-width: 180px;
  }

  .admin-quick-nav {
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bg-flow {
  from {
    background-position: 4% 8%, 96% 6%, 50% 100%, 78% 34%, 0% 0%;
  }
  to {
    background-position: 16% 18%, 84% 14%, 44% 82%, 66% 58%, 100% 100%;
  }
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

@keyframes ambient-spin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes grid-float {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.28;
  }
  to {
    transform: translate3d(10px, -8px, 0);
    opacity: 0.38;
  }
}

@keyframes topbar-sweep {
  0%,
  70%,
  100% {
    transform: translateX(-130%);
  }
  85% {
    transform: translateX(130%);
  }
}

@keyframes counter-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 182, 109, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(244, 182, 109, 0.12);
  }
}

@keyframes live-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 182, 109, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(244, 182, 109, 0.1);
  }
}

.live-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid transparent;
}

.card-chip--yellow {
  border-color: rgba(238, 206, 102, 0.5);
  background: rgba(238, 206, 102, 0.18);
  color: #ffe7a7;
}

.card-chip--red {
  border-color: rgba(255, 109, 127, 0.5);
  background: rgba(255, 109, 127, 0.16);
  color: #ffd2d8;
}

.card-chip--penalty {
  border-color: rgba(246, 199, 95, 0.58);
  background: rgba(246, 199, 95, 0.18);
  color: #ffe3aa;
}

.live-cardline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 2px;
}

.live-cardline--stacked {
  display: grid;
  gap: 8px;
}

.live-cardline--stacked .card-chip {
  justify-content: center;
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.home-kpi-card {
  border: 1px solid rgba(128, 168, 222, 0.22);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.74);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.home-kpi-card strong {
  font-size: 1.35rem;
  color: #e9f2ff;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.prize-card {
  border: 1px solid rgba(128, 168, 222, 0.2);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.75);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.prize-card--warn {
  border-color: rgba(255, 109, 127, 0.45);
}

.prize-main {
  margin: 0;
  font-size: 1.02rem;
}

.stats-page .stats-hero {
  border-color: rgba(88, 178, 255, 0.35);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 213, 122, 0.18), transparent 35%),
    radial-gradient(circle at 12% 0%, rgba(62, 199, 168, 0.16), transparent 30%),
    linear-gradient(140deg, rgba(10, 18, 29, 0.92), rgba(13, 24, 40, 0.9));
}

.stats-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.stats-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(145, 186, 245, 0.34);
  background: rgba(9, 16, 28, 0.78);
  color: #deebff;
  padding: 6px 11px;
  font-size: 0.82rem;
}

.stats-chip strong {
  color: #ffe09a;
}

.stats-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.stats-quick-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(145, 186, 245, 0.36);
  background: rgba(11, 18, 30, 0.72);
  color: #dceaff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 7px 12px;
}

.stats-quick-nav a:hover {
  border-color: rgba(62, 199, 168, 0.46);
  background: rgba(62, 199, 168, 0.14);
  color: #e9fff6;
}

.stats-section {
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(62, 199, 168, 0.92), rgba(102, 179, 255, 0.9));
  opacity: 0.9;
}

.stats-grid {
  gap: 14px;
}

.stats-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(143, 182, 236, 0.28);
  background:
    radial-gradient(circle at 88% 12%, rgba(108, 156, 228, 0.14), transparent 32%),
    linear-gradient(165deg, rgba(11, 20, 34, 0.9), rgba(10, 16, 28, 0.9));
}

.stats-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 0 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 182, 236, 0.45), transparent);
}

.stats-card h3 {
  margin: 0 0 2px;
  color: #eef5ff;
}

.stats-card--spotlight {
  border-color: rgba(246, 199, 95, 0.48);
  background:
    radial-gradient(circle at 88% 10%, rgba(246, 199, 95, 0.2), transparent 36%),
    linear-gradient(155deg, rgba(16, 24, 39, 0.92), rgba(12, 19, 30, 0.94));
}

.stats-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: stats-rank;
}

.stats-rank-item {
  counter-increment: stats-rank;
  position: relative;
  display: grid;
  gap: 2px;
  align-content: center;
  border: 1px solid rgba(143, 182, 236, 0.22);
  border-radius: 10px;
  background: rgba(7, 13, 24, 0.62);
  padding: 10px 56px 10px 12px;
  min-height: 48px;
}

.stats-rank-item::before {
  content: counter(stats-rank);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(246, 199, 95, 0.55);
  background: rgba(246, 199, 95, 0.2);
  color: #ffe5a9;
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 1;
}

.stats-rank-item > * {
  position: relative;
  z-index: 2;
}

.stats-rank-item strong {
  display: block;
  line-height: 1.2;
  color: #edf5ff;
}

@media (max-width: 760px) {
  .stats-quick-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .stats-quick-nav a {
    white-space: nowrap;
  }

  .stats-hero-meta {
    gap: 6px;
  }

  .stats-chip {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

/* Team overview with cards + expandable scorers */
.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.sort-chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.28);
  background: rgba(10, 18, 30, 0.66);
  color: #d8e8ff;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.sort-chip:hover {
  border-color: rgba(62, 199, 168, 0.46);
  background: rgba(62, 199, 168, 0.14);
  color: #e9fff6;
}

.sort-chip.is-active {
  border-color: rgba(62, 199, 168, 0.62);
  background: linear-gradient(135deg, rgba(62, 199, 168, 0.22), rgba(102, 179, 255, 0.16));
  color: #f2fffb;
  box-shadow: 0 0 0 1px rgba(62, 199, 168, 0.12) inset;
}

.team-section-block + .team-section-block {
  margin-top: 20px;
}

.team-section-title {
  margin-bottom: 10px;
}

.team-overview-card {
  border: 1px solid rgba(128, 168, 222, 0.2);
  border-radius: 12px;
  background: rgba(14, 23, 36, 0.78);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-self: start;
}

.team-overview-header {
  margin-bottom: 0;
}

.team-overview-header h3 {
  margin: 0;
}

.team-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(141, 176, 231, 0.28);
  border-radius: 999px;
  background: rgba(11, 18, 30, 0.68);
  color: #dbe9ff;
  padding: 5px 10px;
  font-size: 0.84rem;
}

.team-info-badge::before {
  display: inline-flex;
  width: 1.1em;
  justify-content: center;
}

.team-info-badge--members::before {
  content: "\01F465";
}

.team-info-badge--goals::before {
  content: "\26BD";
}

.team-info-badge--yellow::before {
  content: "\01F7E1";
}

.team-info-badge--red::before {
  content: "\01F534";
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-row-name {
  font-weight: 600;
}

.member-goals-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(141, 176, 231, 0.28);
  border-radius: 999px;
  background: rgba(13, 20, 31, 0.85);
  padding: 4px 9px;
  font-size: 0.82rem;
  color: #dbe9ff;
}

.member-stats-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.member-card-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.member-card-pill--yellow {
  border-color: rgba(238, 206, 102, 0.5);
  background: rgba(238, 206, 102, 0.17);
  color: #ffe7a7;
}

.member-card-pill--red {
  border-color: rgba(255, 109, 127, 0.5);
  background: rgba(255, 109, 127, 0.14);
  color: #ffd2d8;
}

.member-row--top {
  border-color: rgba(246, 196, 90, 0.66);
  background: linear-gradient(140deg, rgba(72, 56, 24, 0.54), rgba(16, 23, 36, 0.76));
}

.member-row--top .member-row-name::after {
  content: "\01F451";
  margin-left: 6px;
}

.gold-highlight {
  color: #ffd977;
  text-shadow: 0 0 14px rgba(255, 217, 119, 0.42);
}

/* Cool nav icons */
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-links a::before {
  display: inline-flex;
  width: 1.05em;
  justify-content: center;
  opacity: 0.94;
  content: "\2022";
}

.nav-links a[href$="/index.php"]::before {
  content: "\2302";
}

.nav-links a[href$="/matches.php"]::before {
  content: "\26BD";
}

.nav-links a[href$="/table.php"]::before {
  content: "\01F4CA";
}

.nav-links a[href$="/players.php"]::before {
  content: "\01F465";
}

.nav-links a[href$="/bracket.php"]::before {
  content: "\01F3C6";
}

.nav-links a[href$="/preise.php"]::before {
  content: "\01F4CA";
}

.spotify-panel {
  border-color: rgba(30, 215, 96, 0.36);
  background:
    linear-gradient(140deg, rgba(10, 21, 16, 0.92), rgba(11, 25, 21, 0.78)),
    radial-gradient(circle at 15% 15%, rgba(30, 215, 96, 0.2), transparent 50%);
  overflow: hidden;
  position: relative;
}

.spotify-panel .panel-title h2::before {
  content: "\266B";
  margin-right: 8px;
  color: #1ed760;
}

.spotify-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(141, 176, 231, 0.3);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.spotify-status-pill.is-live {
  border-color: rgba(30, 215, 96, 0.55);
  background: rgba(30, 215, 96, 0.16);
  color: #b8ffd5;
}

.spotify-status-pill.is-paused {
  border-color: rgba(150, 165, 192, 0.42);
  background: rgba(84, 98, 125, 0.22);
  color: #d4deef;
}

.spotify-now {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 2px;
}

.spotify-cover-wrap {
  position: relative;
  width: 132px;
  aspect-ratio: 1 / 1;
}

.spotify-cover {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(141, 176, 231, 0.34);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(30, 215, 96, 0.2) inset;
}

.spotify-cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #b8ffd5;
  background:
    radial-gradient(circle at 30% 20%, rgba(30, 215, 96, 0.28), transparent 52%),
    linear-gradient(140deg, rgba(19, 38, 32, 0.95), rgba(13, 26, 36, 0.9));
}

.spotify-pulse {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1ed760;
  box-shadow: 0 0 0 0 rgba(30, 215, 96, 0.6);
  animation: spotify-ring 1.7s ease-out infinite;
}

@keyframes spotify-ring {
  0% { box-shadow: 0 0 0 0 rgba(30, 215, 96, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(30, 215, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 215, 96, 0); }
}

.spotify-meta {
  min-width: 0;
}

.spotify-kicker {
  margin: 0;
  color: #9ed8b9;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.spotify-track {
  margin: 0;
  font-size: clamp(1.02rem, 2.4vw, 1.38rem);
  line-height: 1.25;
}

.spotify-artists,
.spotify-album {
  margin: 0;
  color: #b8c7df;
}

.spotify-artists {
  margin-top: 6px;
  font-weight: 600;
}

.spotify-album {
  margin-top: 3px;
  font-size: 0.94rem;
}

.spotify-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.spotify-open-button {
  background: linear-gradient(140deg, #1ed760, #17a34a);
  color: #062312;
  border-color: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.spotify-open-button:hover {
  color: #062312;
  filter: brightness(1.05);
}

@media (max-width: 760px) {
  .spotify-now {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .spotify-cover-wrap {
    width: min(220px, 62vw);
    margin: 0 auto;
  }

  .spotify-meta {
    text-align: center;
  }

  .spotify-actions {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .live-hero {
    gap: 12px;
  }

  .live-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
    line-height: 1.12;
  }

  .live-hero .team-vs {
    display: block;
    margin: 6px 0;
  }

  .live-cardline {
    gap: 6px;
  }

  .live-cardline .card-chip {
    justify-content: center;
  }
}

.live-hero .team-label {
  align-items: center;
}

@media (max-width: 760px) {
  .brand {
    max-width: calc(100% - 86px);
    font-size: 0.88rem;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Force centered live hero content */
.live-hero {
  justify-items: center !important;
  text-align: center !important;
}

.live-hero-top {
  justify-content: center !important;
}

.live-hero h1,
.live-hero .live-hero-score,
.live-hero .live-cardline,
.live-hero .live-hero-time,
.live-hero .live-next-round {
  margin-left: auto;
  margin-right: auto;
}

.live-hero .team-label {
  align-items: center !important;
  text-align: center;
}

.legal-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(126, 171, 226, 0.22);
  background: rgba(12, 20, 32, 0.5);
  color: #a9bbd7;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.86;
}

.legal-warning strong {
  color: #c7d6ee;
  letter-spacing: 0.01em;
  font-weight: 700;
}

@media (max-width: 760px) {
  .live-hero-top {
    gap: 8px;
  }

  .live-hero h1 {
    width: 100%;
  }

  .live-hero .live-cardline {
    width: 100%;
    justify-content: center;
  }

  .next-match-card {
    padding: 12px;
    gap: 9px;
  }

  .next-match-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-match-main {
    font-size: 1.1rem;
  }

  .next-match-main .team-vs {
    display: block;
    margin: 5px 0;
  }

  .next-match-meta {
    width: 100%;
  }

  .home-match-card-link {
    padding: 12px;
    gap: 9px;
  }

  .home-match-card .home-match-slot--teams {
    line-height: 1.3;
  }

  .home-match-card .home-match-slot--teams .team-vs {
    display: block;
    margin: 6px 0;
  }

  .home-match-card .home-match-slot--meta,
  .home-match-slot--penalties,
  .home-match-slot--score,
  .home-match-slot--cards {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-match-card .status {
    margin-left: 0;
  }

  .home-match-score-value,
  .home-match-cards-value {
    font-size: 0.98rem;
  }
}

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

.ticker-admin-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 18, 30, 0.56);
}

.ticker-admin-item--goal {
  border-color: rgba(246, 199, 95, 0.42);
}

.ticker-admin-item--yellow_card {
  border-color: rgba(255, 213, 79, 0.46);
}

.ticker-admin-item--red_card {
  border-color: rgba(255, 109, 127, 0.5);
}

.ticker-admin-item--penalty_scored {
  border-color: rgba(246, 199, 95, 0.54);
}

.ticker-admin-item--penalty_missed {
  border-color: rgba(255, 168, 120, 0.54);
}

.ticker-admin-item.is-home {
  border-color: rgba(62, 199, 168, 0.35);
}

.ticker-admin-item.is-away {
  border-color: rgba(102, 179, 255, 0.35);
}

.ticker-admin-item--goal.is-home,
.ticker-admin-item--goal.is-away {
  border-color: rgba(246, 199, 95, 0.48);
}

.ticker-admin-item--yellow_card.is-home,
.ticker-admin-item--yellow_card.is-away {
  border-color: rgba(255, 213, 79, 0.52);
}

.ticker-admin-item--red_card.is-home,
.ticker-admin-item--red_card.is-away {
  border-color: rgba(255, 109, 127, 0.56);
}

.ticker-admin-item--penalty_scored.is-home,
.ticker-admin-item--penalty_scored.is-away {
  border-color: rgba(246, 199, 95, 0.6);
}

.ticker-admin-item--penalty_missed.is-home,
.ticker-admin-item--penalty_missed.is-away {
  border-color: rgba(255, 168, 120, 0.6);
}

.ticker-admin-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ticker-event-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticker-event-badge--goal {
  border-color: rgba(246, 199, 95, 0.58);
  background: rgba(246, 199, 95, 0.2);
  color: #ffe2a3;
}

.ticker-event-badge--yellow_card {
  border-color: rgba(255, 213, 79, 0.62);
  background: rgba(255, 213, 79, 0.2);
  color: #ffeaa8;
}

.ticker-event-badge--red_card {
  border-color: rgba(255, 109, 127, 0.62);
  background: rgba(255, 109, 127, 0.2);
  color: #ffc1cb;
}

.ticker-event-badge--penalty_scored {
  border-color: rgba(246, 199, 95, 0.62);
  background: rgba(246, 199, 95, 0.2);
  color: #ffe2a3;
}

.ticker-event-badge--penalty_missed {
  border-color: rgba(255, 168, 120, 0.62);
  background: rgba(255, 168, 120, 0.2);
  color: #ffd9c4;
}

.ticker-admin-form-inline {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.ticker-admin-form-inline label {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--muted);
}

.ticker-admin-form-inline input,
.ticker-admin-form-inline select {
  min-height: 36px;
}

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

.match-timeline-row {
  display: flex;
  width: 100%;
}

.match-timeline-row.is-home {
  justify-content: flex-start;
}

.match-timeline-row.is-away {
  justify-content: flex-end;
}

.match-timeline-bubble {
  width: min(78%, 560px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(10, 18, 30, 0.62);
  box-shadow: var(--shadow-soft);
}

.match-timeline-bubble.is-home {
  border-color: rgba(62, 199, 168, 0.35);
}

.match-timeline-bubble.is-away {
  border-color: rgba(102, 179, 255, 0.35);
}

.match-timeline-bubble--goal {
  border-color: rgba(246, 199, 95, 0.48);
}

.match-timeline-bubble--yellow_card {
  border-color: rgba(255, 213, 79, 0.52);
}

.match-timeline-bubble--red_card {
  border-color: rgba(255, 109, 127, 0.56);
}

.match-timeline-bubble--penalty_scored {
  border-color: rgba(246, 199, 95, 0.56);
}

.match-timeline-bubble--penalty_missed {
  border-color: rgba(255, 168, 120, 0.56);
}

.match-timeline-bubble header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.match-timeline-bubble p {
  margin: 0;
}

.match-timeline-event-label--goal {
  color: #ffd87d;
}

.match-timeline-event-label--yellow_card {
  color: #ffe48e;
}

.match-timeline-event-label--red_card {
  color: #ffb1bf;
}

.match-timeline-event-label--penalty_scored {
  color: #ffe2a3;
}

.match-timeline-event-label--penalty_missed {
  color: #ffd9c4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .match-timeline-bubble {
    width: 100%;
  }
}

.data-table tbody tr.clickable-row {
  cursor: pointer;
}

.data-table tbody tr.clickable-row:focus-visible td {
  outline: 2px solid rgba(102, 179, 255, 0.62);
  outline-offset: -2px;
}
