@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;600;700&display=swap");

:root {
  --blue-900: #0a1b3d;
  --blue-700: #143b8a;
  --blue-500: #1f5bd9;
  --blue-300: #7fb2ff;
  --accent: #1f5bd9;
  --muted: #6f7a8c;
  --card-bg: #ffffff;
  --ink: #0b1020;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, Arial, sans-serif;
  margin: 0;
  color: var(--ink);
  background: url('team.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(400px 300px at 85% 15%, rgba(127, 178, 255, 0.45), transparent 60%),
    radial-gradient(520px 420px at 10% 70%, rgba(31, 91, 217, 0.35), transparent 60%);
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.site-header {
  background-color: #0E265D;
  background-image: url('new-logo.png');
  background-size: 35% auto;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  min-height: 160px;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 27, 61, 0.4), rgba(15, 46, 110, 0.3));
  z-index: 0;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.socials a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.top-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-controls .search {
  min-width: 140px;
}

.top-controls select.lang {
  min-width: 70px;
}

.logo {
  justify-self: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.main-nav {
  position: relative;
}

.main-nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 10px 18px 16px;
  margin: 0;
  justify-content: center;
}

.main-nav a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Nav toggle (CSS-only mobile menu) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  position: absolute;
  right: 18px;
  top: 14px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 5;
}
.nav-toggle-label .hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}
.nav-toggle-label .hamburger::before,
.nav-toggle-label .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}
.nav-toggle-label .hamburger::before { top: -7px }
.nav-toggle-label .hamburger::after { top: 7px }

/* When nav-toggle checked, show the mobile menu */
.nav-toggle:checked ~ .main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(10,27,61,0.95);
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 40;
}

.hero-bg {
  background: linear-gradient(145deg, rgba(10, 27, 61, 0.9) 0%, rgba(31, 91, 217, 0.35) 60%, rgba(10, 27, 61, 0.95) 100%);
  padding: 28px 0 36px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(15, 46, 110, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(10, 27, 61, 0.12);
}

.sidebar .card {
  padding: 16px;
  margin-bottom: 12px;
}

.main-col .card {
  padding: 18px;
  margin-bottom: 18px;
}

.calendar h4 {
  margin: 0 0 8px 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.6px;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(31, 91, 217, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  color: #1f5bd9;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(31, 91, 217, 0.1);
  line-height: 1;
  padding: 0;
}

.calendar-nav-btn:hover {
  background: linear-gradient(135deg, #1f5bd9 0%, #4a7ce6 100%);
  color: #ffffff;
  border-color: #1f5bd9;
  box-shadow: 0 4px 12px rgba(31, 91, 217, 0.25);
  transform: translateY(-1px);
}

.calendar-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(31, 91, 217, 0.2);
}

.calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f2f4f8;
  color: #8c9ab5;
  border-color: rgba(31, 91, 217, 0.1);
  box-shadow: none;
  transform: none;
}

.calendar-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.calendar-sub {
  font-size: 11px;
  color: var(--muted);
}

.calendar-legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  font-size: 10px;
  border-radius: 999px;
  background: #f2f6ff;
  border: 1px solid rgba(31, 91, 217, 0.18);
  color: #143b8a;
}

.legend::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f5bd9;
}

.legend.away::before {
  background: #d4af37;
}

.legend.cup::before {
  background: #7a4ac2;
}

.legend.home::before {
  background: #1f5bd9;
}

.calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.calendar-day {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #5a6c8f;
  padding: 2px 0;
  font-weight: 600;
}

.calendar-cell {
  min-height: 34px;
  padding: 3px;
  border-radius: 8px;
  background: #f7f9ff;
  border: 1px solid rgba(31, 91, 217, 0.12);
  vertical-align: top;
  overflow: visible;
  position: relative;
}

.calendar-cell.has-fixture {
  cursor: pointer;
}

.calendar-cell.has-fixture:hover {
  filter: brightness(0.97);
  border-color: rgba(11, 16, 32, 0.25);
  z-index: 10;
}

.calendar-cell.has-fixture .calendar-date {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.calendar-cell.fixture-home {
  background: linear-gradient(145deg, #2d72ff 0%, #1f5bd9 100%);
  border-color: rgba(31, 91, 217, 0.55);
}

.calendar-cell.fixture-away {
  background: linear-gradient(145deg, #f0c75b 0%, #d4a63a 100%);
  border-color: rgba(166, 134, 41, 0.55);
}

.calendar-cell.fixture-cup {
  background: linear-gradient(145deg, #9a6de0 0%, #7a4ac2 100%);
  border-color: rgba(90, 44, 138, 0.55);
}

.calendar-cell.is-muted {
  opacity: 0.45;
}

.calendar-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1;
}

.event {
  width: 6px;
  height: 6px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.event.home {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.event.away {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.event.cup {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

/* Calendar Tooltips */
.calendar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  max-width: 210px;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.calendar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.calendar-cell.has-fixture:hover .calendar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.calendar-cell.has-fixture:focus-within .calendar-tooltip,
.calendar-cell.has-fixture:focus .calendar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip-match {
  font-weight: 600;
  margin-bottom: 3px;
}

.tooltip-time {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
}

.main-col {
  max-width: 720px;
  width: 100%;
  margin: 0;
  grid-column: 2;
}

.sidebar {
  width: 220px;
  justify-self: end;
  grid-column: 1;
}

.hero-callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  animation: rise 0.7s ease both;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.95)),
    linear-gradient(140deg, rgba(31, 91, 217, 0.15), rgba(10, 27, 61, 0.05));
}

.matchday-meta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 91, 217, 0.12);
  color: #20408f;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.primary {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 91, 217, 0.25);
}

.cta.secondary {
  border: 1px solid rgba(31, 91, 217, 0.25);
  color: #20408f;
  background: #fff;
}

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

.video-card {
  text-align: left;
}

.video-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #eef3ff;
  color: #143b8a;
  border: 1px solid rgba(31, 91, 217, 0.2);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f5bd9;
}

.video-card.is-live .video-status {
  background: #fff0f0;
  border-color: rgba(194, 39, 39, 0.25);
  color: #9c1f1f;
}

.video-card.is-live .status-dot {
  background: #d11f1f;
  box-shadow: 0 0 0 0 rgba(209, 31, 31, 0.45);
  animation: live-pulse 1.6s infinite;
}

.video-wrap {
  width: 100%;
  margin: 0 0 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
}

.video-meta {
  margin-top: 8px;
  font-size: 13px;
}

.iframe-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(120deg, #f1f6ff, #d8e6ff);
  border: 1px solid rgba(31, 91, 217, 0.2);
  margin-bottom: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6c8f;
}

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

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 31, 31, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(209, 31, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(209, 31, 31, 0);
  }
}

/* Form Styles */
.form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 3px;
}

.form-field .required {
  color: #e74c3c;
  font-weight: bold;
}

.form input,
.form textarea {
  padding: 9px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form input.error,
.form textarea.error {
  border-color: #e74c3c;
}

.form input.error:focus,
.form textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form input.success,
.form textarea.success {
  border-color: #27ae60;
}

.form textarea {
  resize: vertical;
  min-height: 70px;
}

.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  font-weight: 500;
  min-height: 1rem;
  display: block;
}

.field-hint {
  color: #666;
  font-size: 0.8rem;
}

.form-actions {
  margin-top: 4px;
}

.submit-btn {
  position: relative;
  padding: 10px 28px;
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-message {
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.players {
  padding: 26px 0 34px;
  overflow: hidden;
}

.player-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  animation: rise 0.7s ease both;
}

.player-photo {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #d8e6ff, #b8d0ff);
  border-radius: 16px;
}

.player-info {
  flex: 1;
}

.badges {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(31, 91, 217, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fbff;
}

.sponsor-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sponsor {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(31, 91, 217, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  background: rgba(10, 27, 61, 0.9);
  color: #dbe7ff;
}

.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(127, 178, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 27, 61, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 120;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 27, 61, 0.42);
}

.scroll-top-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 178, 255, 0.5), 0 12px 24px rgba(10, 27, 61, 0.35);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header input,
.site-header select {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}

.site-header input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.site-header select {
  appearance: none;
}

.news h2,
.hero-callout h1,
.form h3,
.player-name {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.6px;
}

.legal {
  padding: 12px 0 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: #dbe7ff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

@keyframes squad-float {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
    width: 100%;
    justify-self: stretch;
    grid-column: auto;
  }

  .main-col {
    order: 1;
    grid-column: auto;
  }

  .player-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }
}


/* Players grid */
.section-title {
  margin: 6px 0 12px 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  color: #fff;
}

.players-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
  position: relative;
  width: max-content;
  animation: squad-float 26s linear infinite;
  will-change: transform;
}

.player-card {
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 260px;
}

.player-card .player-photo {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
}

.player-info {
  flex: 1;
  color: var(--ink);
}

.player-number {
  font-weight: 700;
  color: var(--blue-700);
}

.player-name {
  margin: 4px 0;
}

.badges {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.badges .badge {
  padding: 6px 10px;
  background: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(10, 27, 61, 0.06);
}

/* Sponsors row */
.sponsors-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  overflow-x: auto;
}
.sponsor {
  flex: 0 0 auto;
  width: 140px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.sponsor img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* Sponsors carousel wrapper */
.sponsors-carousel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px;
}

.sponsors-carousel .sponsors-row {
  display: flex;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-btn:focus {
  outline: 2px solid rgba(31, 91, 217, 0.25);
}

@media (max-width: 1000px) {
  .players-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .players-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .nav-toggle-label {
    display: flex;
  }

  .container {
    padding: 12px;
  }

  .hero-bg {
    padding: 18px 0 22px;
  }

  .main-col .card {
    padding: 14px;
  }
}

/* Utility */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile improvements */
@media (max-width: 600px) {
  /* Hide full nav and show the toggle control */
  .main-nav ul {
    display: none;
  }

  .scroll-top-btn {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 12px 12px 8px;
    gap: 8px;
    align-items: center;
    text-align: left;
  }

  .site-header {
    min-height: 130px;
  }

  .logo {
    font-size: 20px;
  }

  .top-controls {
    width: 100%;
    max-width: 220px;
    justify-content: flex-end;
  }

  .top-controls .search {
    width: 100%;
  }

  .hero-bg {
    padding: 16px 0 20px;
  }

  .hero-callout {
    padding: 12px;
  }

  .player-photo {
    width: 120px;
    height: 120px;
  }

  .player-card {
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .players-grid {
    gap: 12px;
  }

  .sponsor {
    width: 110px;
    height: 50px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

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

  .container {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .players-grid {
    animation: none;
    transform: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 110px;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .logo {
    font-size: 18px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .player-photo {
    width: 92px;
    height: 92px;
  }

  .sponsor {
    width: 96px;
    height: 44px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .site-header {
    min-height: 100px;
  }

  .topbar {
    padding: 10px;
  }

  .logo {
    font-size: 16px;
  }

  .hero-callout h1 {
    font-size: 20px;
  }
}