:root {
  --bg: #141313;
  --bg-2: #1a1a1a;
  --header: #231f20;
  --panel: #1c1b1b;
  --surface: #f2f2f2;
  --surface-2: #ffffff;
  --ink: #1a1a1a;
  --accent: #003087;
  --accent-dark: #001d54;
  --text: #ffffff;
  --muted: #cccccc;
  --muted-dark: #5c5c5c;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(26, 26, 26, 0.12);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(24px, calc((100% - 1240px) / 2 + 24px));
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.7);
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

.eyebrow,
.kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.badge-number {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.primary-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.primary-btn:hover {
  background: #ffffff;
  color: var(--ink);
}

.sponsor-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
}

.sponsor-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.hero {
  background: linear-gradient(160deg, #1a1a1a 0%, #101010 60%, #0c1220 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 24px;
  margin: 0 -24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 220%;
  background: radial-gradient(circle, rgba(0, 48, 135, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-logo-wrap,
.hero-info {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  flex: 1.2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-photo {
  width: 210px;
  height: 210px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.hero-info {
  flex: 1;
}

.hero h2 {
  margin-top: 10px;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.weather-widget {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  max-width: 320px;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.weather-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.weather-temp {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
}

.weather-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.weather-updated {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.7;
}

.ticker-section {
  margin: 32px 0;
}

.ticker-kicker {
  margin-bottom: 12px;
}

.ticker-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 18px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-wrap.ticker-static .ticker-track {
  animation: none;
  width: 100%;
  justify-content: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.ticker-category {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-empty {
  color: var(--muted);
  border-right: none;
  font-weight: 600;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 22px 20px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
}

.stat-label {
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-value {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-trend.up {
  color: #0a7a3d;
  background: rgba(10, 122, 61, 0.1);
}

.stat-trend.down {
  color: #b0212f;
  background: rgba(176, 33, 47, 0.1);
}

.fixture-panel {
  background: var(--surface);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--line-dark);
}

.standings-panel {
  background: var(--surface);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  margin: 32px 0;
}

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

.standings-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

.standings-table th,
.standings-table td {
  padding: 12px 14px;
  text-align: center;
  white-space: nowrap;
}

.standings-table th {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.standings-table th:first-child,
.standings-table td:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.standings-table th:last-child,
.standings-table td:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--line-dark);
}

.standings-table tbody tr:last-child {
  border-bottom: none;
}

.standings-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}

.standings-team {
  text-align: left;
  font-weight: 700;
}

.standings-pos {
  font-weight: 800;
  color: var(--muted-dark);
}

.standings-pts {
  font-weight: 800;
  color: var(--accent);
}

.standings-group-header td {
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  border-radius: 6px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: var(--ink);
}

.panel-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

#fixtureCount {
  color: var(--muted-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fixture-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.fixture-card {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 18px;
  background: var(--surface-2);
  color: var(--ink);
}

.fecha-header {
  background: var(--accent);
  color: white;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 12px;
}

.teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-right {
  justify-content: flex-end;
  text-align: right;
}

.team-badge {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
}

.left-badge {
  background: var(--accent);
}

.right-badge {
  background: var(--ink);
}

.team-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}

/* About Section Styles */
.about-section {
  background: linear-gradient(160deg, #0c1220 0%, #101010 60%, #1a1a1a 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 32px;
  margin: 40px 0;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.sponsor-card {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 48, 135, 0.2);
}

.sponsor-logo {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 16px;
}

.sponsor-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content {
  text-align: center;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 32px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.social-link i {
  font-size: 1.3rem;
}

.social-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow);
  position: relative;
  animation: slideUp 0.4s ease-out;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--muted-dark);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-logo {
  width: 180px;
  height: 180px;
  border-radius: 12px;
}

.modal-content h2 {
  margin: 0 0 16px 0;
  font-size: 28px;
  color: var(--ink);
}

.modal-message {
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.modal-message strong {
  color: var(--accent);
  font-weight: 700;
}

.modal-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.modal-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

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

.modal-btn-primary {
  display: inline-block;
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 840px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo-wrap {
    width: 100%;
    justify-content: center;
  }

  .hero-info {
    width: 100%;
  }

  .hero-photo {
    width: 150px;
    height: 150px;
  }

  .header-right {
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

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

  .fixture-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy h1 {
    font-size: 1.1rem;
  }

  .eyebrow {
    font-size: 9px;
  }

  .sponsor-btn,
  .primary-btn {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .hero {
    padding: 24px 16px;
    margin: 0 -16px 0;
    gap: 16px;
  }

  .weather-widget {
    max-width: 100%;
    margin: 0 auto;
  }

  .weather-main {
    justify-content: center;
  }

  .ticker-item {
    padding: 0 18px;
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 30px 20px;
    max-width: 90vw;
  }

  .modal-logo {
    width: 140px;
    height: 140px;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .modal-message {
    font-size: 14px;
  }

  .modal-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .teams-row {
    gap: 8px;
    margin: 12px 0;
  }

  .team-badge {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .team-name {
    font-size: 0.9rem;
  }

  .about-section {
    padding: 28px 20px;
    margin: 28px 0;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
  }

  .sponsor-logo {
    width: 100px;
    height: 100px;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .social-links {
    gap: 16px;
  }

  .social-link {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .social-link i {
    font-size: 1.2rem;
  }

  .social-logo {
    width: 22px;
    height: 22px;
  }

  .fecha-header {
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy h1 {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 8px;
  }

  .sponsor-btn,
  .primary-btn {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 16px 12px;
    margin: 0 -12px 0;
  }

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

  .hero h2 {
    font-size: 1.3rem;
  }

  .modal-content {
    padding: 20px 16px;
    max-width: 95vw;
  }

  .modal-logo {
    width: 120px;
    height: 120px;
  }

  .modal-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .modal-message {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .modal-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .container {
    padding: 0 12px 40px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .teams-row {
    gap: 6px;
    margin: 10px 0;
  }

  .team {
    gap: 8px;
  }

  .team-badge {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .team-name {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .panel-header h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .about-section {
    padding: 20px 12px;
    margin: 20px 0;
    border-radius: 10px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .sponsor-logo {
    width: 80px;
    height: 80px;
  }

  .sponsor-text {
    font-size: 0.75rem;
  }

  .about-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .social-links {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }

  .social-link {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .social-link i {
    font-size: 1.2rem;
  }

  .social-logo {
    width: 20px;
    height: 20px;
  }

  .fecha-header {
    padding: 10px 12px;
    font-size: 0.85rem;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  .fixture-card {
    padding: 14px;
  }
}
