:root {
  --bg: #eff4f6;
  --card: #ffffff;
  --card-soft: #fbfdff;
  --text: #13212b;
  --muted: #5a6b76;
  --line: #d8e2e8;
  --primary: #0d4f8b;
  --primary-2: #14324c;
  --orange: #ff8a00;
  --green: #2f9e44;
  --danger: #ba2d2d;
  --success: #16794a;
  --shadow: 0 10px 26px rgba(16, 35, 49, 0.08);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container,
.hero-inner,
.admin-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lineup-box.drag-over {
  border-color: #0d4f8b;
  background: #eef6ff;
}
.hero-logo {
  position: absolute;
  top: 88px;
  right: 30px;
  z-index: 5;
  width: 170px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(16, 35, 49, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
  max-height: 145px;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 1;
  filter: none;
}

.container {
  padding: 24px 20px 48px;
}

.lineup-box {
  min-height: 250px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 10px;
  background: #f9fbfc;
}

.player-card {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 8px;
  background: white;
  border: 1px solid #ddd;
  cursor: grab;
}

.player-card:active {
  cursor: grabbing;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(rgba(8, 23, 35, 0.52), rgba(8, 23, 35, 0.60)),
    url("team-foto.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: 100%;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-text {
  max-width: 720px;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dbeafe;
}

.eyebrow.dark {
  color: var(--primary);
}

.lead {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 62ch;
  color: #f3f4f6;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.logo-card,
.card,
.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.logo-card {
  padding: 18px;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.logo-card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 12px;
}

.floating-card {
  transform: rotate(-2deg);
}

.mini-scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-scoreboard > div {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 14px;
  color: white;
}

.mini-scoreboard span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.86;
}

.mini-scoreboard strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

/* Sections */
.card {
  padding: 22px;
  margin-bottom: 22px;
}

.inset-card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  box-shadow: none;
  margin-bottom: 0;
}

.accent-card {
  border-left: 6px solid transparent;
}

.accent-card.accent-orange {
  border-left-color: var(--orange);
}

.accent-card.accent-green {
  border-left-color: var(--green);
}

.accent-card.accent-blue {
  border-left-color: var(--primary);
}

.feature-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #e5f0ff, #ffffff);
}

/* Grids */
.stats-grid,
.grid-2,
.grid-3,
.predictor-grid,
.mini-grid,
.admin-login-grid,
.highlights-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.highlights-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.predictor-grid,
.admin-login-grid {
  grid-template-columns: 1fr 1fr;
}

.mini-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

/* Stat cards */
.stat-card {
  padding: 18px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.gradient-blue {
  background: linear-gradient(135deg, #0d4f8b, #2f7ed1);
}

.gradient-orange {
  background: linear-gradient(135deg, #d46a00, #ff9b25);
}

.gradient-green {
  background: linear-gradient(135deg, #1c7b35, #43b960);
}

.gradient-dark {
  background: linear-gradient(135deg, #14324c, #315777);
}

.stat-label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.stat-card strong {
  font-size: 1.55rem;
}

/* Headings */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  transition: 0.2s ease;
}

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

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.secondary,
.btn.small {
  background: #e7f0f7;
  color: var(--text);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.small {
  padding: 8px 12px;
}

.btn.danger {
  background: #ffe7e7;
  color: #8f1d1d;
}

.full-width {
  width: 100%;
  margin-top: 14px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

/* Forms */
label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: white;
  color: var(--text);
  font: inherit;
}

select[multiple] {
  min-height: 230px;
}

.predictor-actions,
.admin-actions {
  margin-top: 16px;
}

/* Utility */
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: white;
  white-space: nowrap;
}

.tag.orange {
  background: var(--orange);
}

.tag.green {
  background: var(--green);
}

.result-box {
  margin-top: 16px;
  padding: 14px 16px;
  min-height: 66px;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-soft);
}

.result-box.success {
  background: #eaf8f0;
  border-color: #b9e4c9;
  color: var(--success);
}

.result-box.error {
  background: #fff1f1;
  border-color: #f0c3c3;
  color: var(--danger);
}

.result-box.muted {
  color: var(--muted);
}

.admin-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

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

.small-text {
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 20px;
  background: var(--primary-2);
  color: white;
}

.footer-inner {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-link {
  opacity: 0.95;
}

/* Admin page */
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--line);
}

.admin-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

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

.manage-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--card-soft);
}

.manage-item h4 {
  margin: 0 0 6px;
}

.manage-item p {
  margin: 4px 0;
}

.item-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  font-weight: 700;
}

.bar-track {
  background: #e7f0f7;
  border-radius: 999px;
  overflow: hidden;
  height: 18px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--orange), var(--primary));
  border-radius: 999px;
}

.bar-value {
  font-weight: 700;
  text-align: right;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner,
  .grid-2,
  .grid-3,
  .predictor-grid,
  .stats-grid,
  .mini-grid,
  .admin-login-grid,
  .highlights-grid,
  .mini-scoreboard {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .feature-banner,
  .admin-topbar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stacked-mobile {
    align-items: flex-start;
  }
}




/* Fixed language toggle */
.language-toggle {
  position: fixed;
  top: 16px;
  left: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 226, 232, 0.95);
  box-shadow: 0 8px 22px rgba(16, 35, 49, 0.18);
  backdrop-filter: blur(8px);
}

.language-toggle-label {
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-2);
  white-space: nowrap;
}

.language-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.language-toggle a.active {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 560px) {
  .language-toggle {
    top: 10px;
    left: 10px;
    padding: 5px;
  }

  .language-toggle-label {
    display: none;
  }

  .language-toggle a {
    min-width: 34px;
    padding: 6px 9px;
  }
}


@media (max-width: 980px) {
  .hero-logo {
    position: static;
    width: 150px;
    margin: 18px auto 0;
  }
}
