:root {
  --bg: #0a1722;
  --surface: #102334;
  --surface-2: #173246;
  --card: #132838;
  --text: #eef5ff;
  --muted: #aac0d6;
  --line: #2c465a;
  --accent: #00c2a8;
  --accent-2: #ffbe3b;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Onest", "Segoe UI", sans-serif;
  color: var(--text);
  background: #050d14;
  overflow-x: hidden;
}

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: bg-cycle 49s linear infinite;
}

.bg-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 5% -10%, rgba(0, 194, 168, 0.12), transparent 34%),
    radial-gradient(circle at 95% -10%, rgba(255, 190, 59, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(3, 8, 14, 0.34), rgba(3, 8, 14, 0.42));
}

@keyframes bg-cycle {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  18% {
    opacity: 1;
  }

  24% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

main {
  padding-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 26, 0.74);
  border-bottom: 1px solid rgba(170, 192, 214, 0.22);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
}

.hero-overlay {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

h2 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.lead {
  margin-top: 1rem;
  max-width: 67ch;
  color: #dceaf6;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #04121b;
  background: linear-gradient(90deg, var(--accent), #3ae6cf);
  box-shadow: 0 10px 28px rgba(0, 194, 168, 0.34);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(4, 14, 24, 0.28);
}

.hero-stats {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.75rem;
}

.hero-stats article {
  background: rgba(9, 26, 39, 0.78);
  border: 1px solid rgba(170, 192, 214, 0.32);
  border-radius: 14px;
  padding: 0.95rem;
}

.hero-stats h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  color: var(--accent-2);
  font-size: 1.55rem;
}

.hero-stats p {
  margin: 0.2rem 0 0;
  color: #c9dbee;
}

section {
  margin-top: 4.2rem;
}

.section-title {
  margin-bottom: 0.9rem;
}

.section-title h2 {
  text-wrap: balance;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.about p {
  margin: 0;
  color: #c7d7e7;
  line-height: 1.7;
}

.league {
  display: block;
}

.league-board {
  border: 1px solid rgba(170, 192, 214, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 24, 39, 0.88);
  backdrop-filter: blur(2px);
}

.standings-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  border-bottom: 1px solid rgba(170, 192, 214, 0.24);
}

.standings-tab {
  border: 0;
  background: transparent;
  color: #c4d8ec;
  font-weight: 700;
  padding: 0.85rem 0.75rem;
  font-size: 0.95rem;
}

.standings-tab.active {
  color: #ffe257;
  box-shadow: inset 0 -2px 0 #ffe257;
}

.standings-tab:not(.active) {
  cursor: pointer;
}

.league-panel {
  display: none;
}

.league-panel.active {
  display: block;
}

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

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.standings-table thead th {
  text-align: left;
  font-weight: 700;
  color: #d8e8f8;
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(170, 192, 214, 0.22);
}

.standings-table tbody td {
  padding: 0.88rem 1rem;
  border-bottom: 1px solid rgba(170, 192, 214, 0.11);
  color: #e6f1fb;
}

.standings-table tbody tr:nth-child(odd) {
  background: rgba(12, 46, 73, 0.48);
}

.standings-table tbody tr:nth-child(even) {
  background: rgba(8, 33, 56, 0.58);
}

.standings-table tbody tr:hover {
  background: rgba(31, 97, 139, 0.46);
}

.standings-table th:first-child,
.standings-table td:first-child {
  width: 56px;
  text-align: center;
  font-weight: 800;
}

.standings-table th:nth-child(3),
.standings-table th:nth-child(4),
.standings-table th:nth-child(5),
.standings-table td:nth-child(3),
.standings-table td:nth-child(4),
.standings-table td:nth-child(5) {
  width: 90px;
  text-align: center;
}

.team-sever td {
  color: #ffea76;
  font-weight: 800;
}

.team-sever {
  box-shadow: inset 3px 0 0 #00c2a8;
}

.fixtures-head {
  text-align: center;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 2rem;
  padding: 0.9rem 1rem 0.2rem;
}

.fixtures-list {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
}

.fixture-card {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(9, 43, 70, 0.72);
  border: 1px solid rgba(170, 192, 214, 0.17);
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

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

.team-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0a2033;
  background: #d7e8f9;
}

.fixture-team strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.fixture-center {
  text-align: center;
}

.fixture-center span {
  display: block;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.fixture-center small {
  display: block;
  margin-top: 0.25rem;
  color: #bfd4e7;
  font-size: 0.95rem;
}

.team-highlight {
  box-shadow: inset 4px 0 0 #00c2a8;
  border-color: rgba(0, 194, 168, 0.45);
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 65%),
    var(--card);
}

.card p {
  margin: 0.5rem 0 0;
  color: #c4d7e8;
  line-height: 1.6;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.72rem;
}

.players-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
}

.players-grid strong {
  display: block;
  font-size: 0.95rem;
}

.players-grid span {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.85rem;
}

.media-empty {
  margin: 0;
  border: 1px dashed rgba(170, 192, 214, 0.44);
  border-radius: 12px;
  padding: 1rem;
  color: #c3d8ea;
}

.photo {
  margin: 0;
  border-radius: 18px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(170, 192, 214, 0.33);
  background-size: cover;
  background-position: center;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 15, 26, 0.92) 100%);
}

.photo figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #f5fbff;
  font-weight: 700;
}


.partners p {
  max-width: 80ch;
  line-height: 1.7;
  color: #c7d8e9;
}

.partner-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1rem 0 0;
}

.partner-list li {
  border: 1px solid rgba(255, 190, 59, 0.45);
  background: rgba(255, 190, 59, 0.08);
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  font-weight: 700;
  color: #ffcd67;
}

.partner-list a {
  color: inherit;
  text-decoration: none;
}

.partner-list a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 4.2rem;
  border-top: 1px solid rgba(170, 192, 214, 0.22);
  background: rgba(5, 11, 18, 0.62);
}

.footer-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
  color: #bdd2e5;
}

.footer-wrap a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .players-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .media-grid,
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1160px, 94vw);
  }

  section {
    margin-top: 3.1rem;
  }

  .site-header {
    background: rgba(7, 17, 26, 0.92);
  }

  .nav-wrap {
    min-height: 74px;
  }

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

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: rgba(16, 35, 52, 0.8);
    color: var(--text);
    border-radius: 10px;
    padding: 0.45rem 0.72rem;
    font-weight: 700;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: rgba(7, 17, 26, 0.97);
    border-bottom: 1px solid rgba(170, 192, 214, 0.22);
    display: grid;
    gap: 0.85rem;
    padding: 1rem 4vw;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: 68vh;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 5rem 0 2.4rem;
  }

  .lead {
    font-size: 0.97rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    text-align: center;
  }

  .card,
  .players-grid article,
  .partner-list li {
    border-radius: 12px;
  }

  .hero-stats,
  .about,
  .players-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .standings-tab {
    font-size: 0.9rem;
    padding: 0.75rem 0.6rem;
  }

  .standings-table {
    min-width: 640px;
  }

  .fixture-card {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "home score away"
      "time time time";
    text-align: left;
    gap: 0.55rem;
    align-items: center;
  }

  .fixture-team {
    grid-area: home;
    min-width: 0;
  }

  .fixture-team.right {
    grid-area: away;
    justify-content: flex-end;
    text-align: right;
    min-width: 0;
  }

  .fixture-team strong {
    font-size: 0.92rem;
    line-height: 1.2;
  }

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

  .fixture-center {
    display: contents;
  }

  .fixture-center span {
    grid-area: score;
    font-size: 1.5rem;
    text-align: center;
  }

  .fixture-center small {
    grid-area: time;
    text-align: center;
    margin-top: 0;
    font-size: 0.9rem;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.2rem, 14vw, 3.1rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(1.5rem, 9vw, 2rem);
    line-height: 1.02;
  }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }

  .hero {
    min-height: 62vh;
    background-position: 64% center;
  }

  .hero-inner {
    padding: 4.2rem 0 2rem;
  }

  .hero-stats {
    margin-top: 1.2rem;
    gap: 0.6rem;
  }

  .hero-stats article {
    padding: 0.75rem 0.8rem;
  }

  .hero-stats h3 {
    font-size: 1.35rem;
  }

  .players-grid {
    gap: 0.55rem;
  }

  .players-grid article {
    padding: 0.65rem 0.68rem;
  }

  .photo {
    min-height: 205px;
  }

  .partner-list {
    gap: 0.5rem;
  }

  .partner-list li {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .container {
    width: 94vw;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .main-nav {
    top: 68px;
  }

  .brand {
    gap: 0.55rem;
  }

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

  .brand small {
    display: none;
  }

  .menu-toggle {
    padding: 0.4rem 0.62rem;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 58vh;
  }

  .lead {
    font-size: 0.93rem;
  }

  .footer-wrap p,
  .footer-wrap a {
    font-size: 0.88rem;
  }
}
