/* =========================================
   GOALZ. — Sports Football Template
   Theme: Emerald Green + Slate (Dark / Light)
   ========================================= */

:root,
[data-theme="dark"] {
  --bg: #0c1322;
  --header-bg: #0a101c;
  --surface: #131c30;
  --surface-2: #1b2742;
  --panel: #141e36;
  --panel-2: #1d2a49;
  --field: #0f1728;
  --text: #e8edf7;
  --heading: #ffffff;
  --muted: #93a0ba;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #00c37e;
  --accent-2: #17e39c;
  --on-accent: #04130b;
  --accent-soft: rgba(0, 195, 126, 0.12);
  --accent-ring: rgba(0, 195, 126, 0.25);
  --shadow: 0 8px 28px rgba(2, 8, 22, 0.45);
  --live: #ff4757;
  --win: #2ecc71;
  --loss: #e74c3c;
  --dot: #ff4d6d;
}

[data-theme="light"] {
  --bg: #eef2f8;
  --header-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --panel: #ffffff;
  --panel-2: #eef1f7;
  --field: #f7f9fc;
  --text: #22304d;
  --heading: #101c36;
  --muted: #64708a;
  --border: #e3e8f1;
  --border-strong: #d3dae6;
  --accent: #009e66;
  --accent-2: #00b877;
  --on-accent: #ffffff;
  --accent-soft: rgba(0, 158, 102, 0.1);
  --accent-ring: rgba(0, 158, 102, 0.22);
  --shadow: 0 8px 28px rgba(30, 45, 80, 0.1);
}

:root {
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Poppins", "Roboto", system-ui, sans-serif;
  --sidebar-w: 240px;
  --topbar-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  color: var(--heading);
}

[hidden] {
  display: none !important;
}

/* ========== TOPBAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
}

.topbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--heading);
  white-space: nowrap;
}

.brand__dot {
  color: var(--dot);
}

.brand--footer {
  display: inline-block;
  margin-bottom: 12px;
}

.mainnav {
  flex: 1;
}

.mainnav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.mainnav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.mainnav > ul > li > a:hover,
.mainnav > ul > li > a.active {
  color: var(--accent);
}

.mainnav > ul > li > a i {
  font-size: 0.6rem;
  opacity: 0.7;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s;
  box-shadow: var(--shadow);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: var(--text);
}

.dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

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

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-switch button {
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.lang-switch button.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

.lang-switch button:not(.is-active):hover {
  color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  transition: 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}

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

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--outline {
  border: 1.5px solid var(--border-strong);
  color: var(--muted);
  background: var(--panel);
}

.btn--outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 6px;
}

.nav-toggle:hover {
  background: var(--accent-soft);
}

/* ========== LAYOUT ========== */
.layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  gap: 20px;
  align-items: start;
}

/* ========== SIDEBAR ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
}

.side-widget {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.side-widget__title {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  text-transform: uppercase;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: 0.15s;
}

.side-list li:last-child a {
  border-bottom: none;
}

.side-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  padding-left: 18px;
}

.league-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.league-toggle > span:nth-child(2) {
  flex: 1;
}

.league-toggle:hover,
.league-item.is-open > .league-toggle {
  color: var(--accent);
  background: var(--accent-soft);
}

.league-arrow {
  font-size: 0.64rem;
  transition: transform 0.2s ease;
}

.league-item.is-open .league-arrow {
  transform: rotate(180deg);
}

.club-list {
  max-height: 0;
  overflow: hidden;
  background: var(--surface-2);
  transition: max-height 0.25s ease;
}

.league-item.is-open > .club-list {
  max-height: 150px;
}

.side-list .club-list a {
  position: relative;
  min-height: 34px;
  padding: 8px 14px 8px 54px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.73rem;
  font-weight: 500;
}

.side-list .club-list a::before {
  content: "";
  position: absolute;
  left: 36px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.side-list .club-list a:hover {
  padding-left: 58px;
  color: var(--accent);
}

.side-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}

.side-ico--red { background: #e53935; }
.side-ico--orange { background: #fb8c00; }
.side-ico--blue { background: #1e88e5; }
.side-ico--teal { background: #00897b; }
.side-ico--purple { background: #8e24aa; }
.side-ico--green { background: #43a047; }

/* Flag circles */
.flag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px var(--border-strong);
}

.flag--en { background-image: linear-gradient(180deg, #012169 33%, #fff 33%, #fff 66%, #c8102e 66%); }
.flag--es { background-image: linear-gradient(180deg, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%); }
.flag--de { background-image: linear-gradient(180deg, #000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%); }
.flag--it { background-image: linear-gradient(90deg, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%); }
.flag--fr { background-image: linear-gradient(90deg, #002395 33%, #fff 33%, #fff 66%, #ed2939 66%); }
.flag--id { background-image: linear-gradient(180deg, #ce1126 50%, #fff 50%); }
.flag--br { background: #009c3b; box-shadow: inset 0 0 0 6px #ffdf00, 0 0 0 2px var(--border-strong); }
.flag--ar { background-image: linear-gradient(180deg, #74acdf 33%, #fff 33%, #fff 66%, #74acdf 66%); }

/* Ad banner */
.ad-banner {
  display: block;
  padding: 20px 16px 18px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, var(--surface-2) 0%, var(--surface) 70%);
}

.ad-banner__art {
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2) 0%, var(--accent) 70%);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: var(--on-accent);
  box-shadow: 0 0 0 8px var(--accent-ring), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ad-banner__text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--heading);
}

.ad-banner__cta {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 4px;
}

.ad-banner:hover .ad-banner__cta {
  background: var(--accent-2);
}

.info-list {
  padding: 14px 16px;
}

.info-list li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.45;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li > span {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.scorer-list {
  padding: 8px 0;
}

.scorer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.scorer-list li:last-child {
  border-bottom: none;
}

.scorer-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.scorer-info {
  flex: 1;
  min-width: 0;
}

.scorer-info b {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
}

.scorer-info small {
  font-size: 0.68rem;
  color: var(--muted);
}

.scorer-goals {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ========== CONTENT ========== */
.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Live video banner (full width) */
.video-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 420px;
  background: #06121f;
}

.video-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.55) 0%, rgba(4, 10, 20, 0.05) 55%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.1) 35%, rgba(4, 10, 20, 0.88) 100%);
}

.video-banner__inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.video-banner__info {
  position: absolute;
  left: 20px;
  bottom: 30px;
  right: 120px;
  color: #fff;
}

.video-banner__info h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 12px 0 8px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.video-banner__info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.vb-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e11d48;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 999px;
}

.vb-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: vbPulse 1.2s ease-in-out infinite;
}

@keyframes vbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.video-banner__controls {
  position: absolute;
  right: 20px;
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.vb-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 12, 26, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vb-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #04110b;
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow);
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg--1 {
  background-image:
    linear-gradient(120deg, rgba(8, 14, 28, 0.85) 0%, rgba(8, 14, 28, 0.35) 100%),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1400&q=80");
}

.hero__bg--2 {
  background-image:
    linear-gradient(120deg, rgba(8, 14, 28, 0.85) 0%, rgba(8, 14, 28, 0.35) 100%),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1400&q=80");
}

.hero__bg--3 {
  background-image:
    linear-gradient(120deg, rgba(8, 14, 28, 0.85) 0%, rgba(8, 14, 28, 0.35) 100%),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1400&q=80");
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 26, 0.75) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  max-width: 560px;
}

.hero__content h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
  line-height: 1.55;
}

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

.odd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  transition: 0.2s;
}

.odd-chip b {
  font-weight: 800;
  color: var(--accent-2);
}

.odd-chip:hover {
  background: rgba(0, 195, 126, 0.25);
  border-color: var(--accent);
}

.odd-chip--accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  font-weight: 700;
}

.odd-chip--accent:hover {
  background: var(--accent-2);
}

.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.2s;
}

.hero__dots button.is-active,
.hero__dots button:hover {
  background: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* Panels */
.panel {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.panel__head h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.link-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-more:hover {
  color: var(--accent);
}

/* Live toggle */
.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.live-toggle__track {
  width: 46px;
  height: 24px;
  background: var(--panel-2);
  border-radius: 99px;
  position: relative;
  transition: 0.25s;
}

.live-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: 0.25s;
}

.live-toggle input:checked + .live-toggle__track {
  background: var(--live);
}

.live-toggle input:checked + .live-toggle__track .live-toggle__thumb {
  left: 25px;
}

.live-toggle__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.live-toggle input:checked ~ .live-toggle__label {
  color: var(--live);
}

.live-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Tools: tabs + search */
.panel__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
}

.tab {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: 0.2s;
}

.tab:hover {
  color: var(--heading);
}

.tab.is-active {
  color: var(--heading);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.search {
  position: relative;
}

.search input {
  width: 220px;
  padding: 10px 38px 10px 14px;
  background: var(--field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text);
  transition: 0.2s;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.search i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}

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

.match-table,
.standing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.match-table thead th,
.standing-table thead th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.th-left,
.td-left {
  text-align: left !important;
}

.th-group {
  position: relative;
}

.th-sub {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--heading);
}

.match-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.match-table tbody tr:hover {
  background: var(--accent-soft);
}

.match-table tbody tr.is-live {
  background: rgba(255, 71, 87, 0.07);
}

.match-table td {
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  color: var(--text);
}

.date-cell {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.35;
}

.date-cell .live-badge {
  display: inline-block;
  background: var(--live);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}

.teams {
  text-align: left;
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;
  color: var(--heading);
}

.teams .vs {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
}

.odd-box {
  display: inline-block;
  min-width: 42px;
  padding: 6px 8px;
  background: var(--panel-2);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--heading);
  cursor: pointer;
  transition: 0.15s;
  border: 1px solid transparent;
}

.odd-box:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.odd-box.is-hot {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.form-dots {
  display: inline-flex;
  gap: 3px;
}

.form-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #fff;
}

.form-dot--w { background: var(--win); }
.form-dot--d { background: #8b96ad; }
.form-dot--l { background: var(--loss); }

.more-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: 0.15s;
}

.more-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.panel__foot {
  margin-top: 18px;
  text-align: center;
}

/* Standing table */
.standing-table tbody td {
  padding: 11px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.rank--up { background: var(--accent); color: var(--on-accent); }
.rank--mid { background: #8b96ad; }
.rank--down { background: #fb8c00; }

.td-pts {
  font-weight: 800 !important;
  color: var(--accent) !important;
}

/* Bracket */
.bracket {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 2px 4px;
}

.bracket__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}

.bracket__matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
  height: calc(100% - 32px);
}

.bracket-match {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bracket-match--final {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.bracket-team + .bracket-team {
  border-top: 1px solid var(--border);
}

.bracket-team__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team b {
  font-size: 0.85rem;
}

.bracket-team.is-winner {
  color: var(--heading);
  font-weight: 600;
}

.bracket-team.is-winner b {
  color: var(--accent);
}

.bracket-champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  text-align: center;
}

.bracket-champion i {
  font-size: 1.4rem;
  color: var(--accent);
}

.bracket-champion span {
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.bracket-champion b {
  font-size: 0.92rem;
  color: var(--heading);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.25s;
  background: var(--panel);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-ring);
}

.news-card__img {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-card__img--1 {
  background-image: linear-gradient(rgba(8,14,28,0.2), rgba(8,14,28,0.5)),
    url("https://images.unsplash.com/photo-1579952363873-27f3bade9f55?auto=format&fit=crop&w=600&q=80");
}

.news-card__img--2 {
  background-image: linear-gradient(rgba(8,14,28,0.2), rgba(8,14,28,0.5)),
    url("https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=600&q=80");
}

.news-card__img--3 {
  background-image: linear-gradient(rgba(8,14,28,0.2), rgba(8,14,28,0.5)),
    url("https://images.unsplash.com/photo-1489944440615-453fc2b6a9a9?auto=format&fit=crop&w=600&q=80");
}

.news-card__img--4 {
  background-image: linear-gradient(rgba(8,14,28,0.2), rgba(8,14,28,0.5)),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=600&q=80");
}

.news-card__img--5 {
  background-image: linear-gradient(rgba(8,14,28,0.2), rgba(8,14,28,0.5)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=600&q=80");
}

.news-card__img--6 {
  background-image: linear-gradient(rgba(8,14,28,0.2), rgba(8,14,28,0.5)),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=600&q=80");
}

.news-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 3px;
}

.news-card__body {
  padding: 14px 16px 18px;
}

.news-card__date {
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.news-card__body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__body h3 a:hover {
  color: var(--accent);
}

.news-card__body p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News: hero + headline list */
.news-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.news-hero__img {
  height: 300px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.news-hero__title {
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 30ch;
}

.news-hero__main > p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 72ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-hero__list {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-hero__list a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: 0.2s;
}

.news-hero__list a:last-child {
  border-bottom: none;
}

.news-hero__list a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.news-hero__list a i {
  color: #f5a623;
  margin-top: 2px;
}

/* News: compact list items */
.news-list-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.news-list-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  padding-top: 4px;
}

.news-item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.news-item__thumb {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 135px;
  min-height: 0;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

.news-item__thumb .news-card__tag {
  display: none;
}

.news-item__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 135px;
  padding: 4px 0;
}

.news-item__body h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__body h3 a:hover {
  color: var(--accent);
}

.news-item__body p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .news-actions {
  margin-top: auto;
}

.news-item__date {
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Like / share actions */
.news-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.news-action:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.news-action.is-liked {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.news-action b {
  font-weight: 700;
}

/* Comments */
.comments-count {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.comment-form {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.comment-form__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.comment-form__fields input,
.comment-form__fields textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.84rem;
  font-family: var(--font);
  resize: vertical;
  transition: 0.2s;
}

.comment-form__fields input:focus,
.comment-form__fields textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.comment-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  display: flex;
  gap: 14px;
}

.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.comment__head b {
  font-size: 0.86rem;
  color: var(--heading);
}

.comment__head span {
  font-size: 0.7rem;
  color: var(--muted);
}

.comment__body p {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 8px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer__col p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer__col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: 0.15s;
}

.footer__col ul a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: 0.2s;
}

.footer__social a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer__contact i {
  color: var(--accent);
  margin-top: 3px;
}

.footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer__bottom a:hover {
  color: var(--accent);
}

/* =========================================
   PAGE TRANSITION — two players passing a ball
   ========================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 120%, rgba(0, 195, 126, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, #14233f 0%, #080e1c 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.pt-stage {
  position: relative;
  width: 280px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.pt-stage::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 195, 126, 0.6), transparent);
}

.pt-player {
  font-size: 3.2rem;
  color: #00e08c;
  filter: drop-shadow(0 6px 14px rgba(0, 224, 140, 0.35));
  line-height: 1;
}

.pt-player--right {
  transform: scaleX(-1);
}

.pt-player i {
  display: block;
  animation: pt-kick 1.4s ease-in-out infinite;
}

.pt-player--right i {
  animation-delay: 0.7s;
}

@keyframes pt-kick {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  8% { transform: translateY(-8px) rotate(-8deg); }
  16% { transform: translateY(0) rotate(0deg); }
}

.pt-ball {
  position: absolute;
  left: 50%;
  bottom: 4px;
  margin-left: -15px;
  font-size: 30px;
  color: #ffffff;
  animation: pt-pass 1.4s ease-in-out infinite;
  z-index: 2;
}

@keyframes pt-pass {
  0%   { transform: translate(-92px, 0); }
  25%  { transform: translate(0, -52px); }
  50%  { transform: translate(92px, 0); }
  75%  { transform: translate(0, -52px); }
  100% { transform: translate(-92px, 0); }
}

.pt-ball i {
  display: block;
  animation: pt-spin 0.7s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@keyframes pt-spin {
  to { transform: rotate(360deg); }
}

.pt-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.pt-brand span {
  color: var(--dot);
}

.pt-loading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  animation: pt-blink 1.2s ease-in-out infinite;
}

@keyframes pt-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-ball,
  .pt-player i,
  .pt-ball i,
  .pt-loading {
    animation: none;
  }
}

/* =========================================
   SUBPAGE STYLES
   ========================================= */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 56px 44px;
  background:
    linear-gradient(120deg, rgba(6, 12, 26, 0.92) 0%, rgba(14, 26, 50, 0.7) 100%),
    url("https://images.unsplash.com/photo-1489944440615-453fc2b6a9a9?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.breadcrumb i {
  font-size: 0.6rem;
}

.breadcrumb .current {
  color: var(--accent-2);
  font-weight: 600;
}

/* ========== NEWS DETAIL ========== */
.page-hero--article {
  padding: 40px 44px;
}

.page-hero--article .article__tag,
.page-hero--article .news-card__tag {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}

.page-hero--article h1 {
  max-width: 820px;
  margin-bottom: 14px;
  line-height: 1.2;
}

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

.article-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
}

.article {
  padding: 0;
  overflow: hidden;
}

.article__cover {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.article__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article__author {
  color: var(--text);
}

.article__author b {
  color: var(--heading);
}

.article__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.65rem;
  font-weight: 800;
}

.article__body {
  padding: 22px 24px 8px;
}

.article__body p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

.article__lead {
  font-size: 1.02rem !important;
  font-weight: 500;
  color: var(--heading) !important;
}

.article__quote {
  margin: 8px 0 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--heading);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.article__tags a {
  color: var(--accent);
  font-weight: 600;
}

.article__tags a:hover {
  color: var(--accent-2);
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-related {
  display: flex;
  flex-direction: column;
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.related-item:last-child {
  border-bottom: none;
}

.related-item:hover {
  background: var(--accent-soft);
}

.related-item__thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.related-item__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-item__info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.related-item:hover .related-item__info b {
  color: var(--accent);
}

.related-item__info small {
  font-size: 0.68rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.about-grid h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.about-grid p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-img {
  height: 280px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(8, 14, 28, 0.15), rgba(8, 14, 28, 0.35)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=900&q=80") center/cover;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}

.stat-card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-card b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--heading);
}

.stat-card span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Players */
.player-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.player-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: 0.25s;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-ring);
}

.player-photo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--panel-2);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.player-photo > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.club-badge {
  position: absolute;
  right: -5px;
  bottom: 2px;
  width: 31px;
  height: 31px;
  padding: 4px;
  display: grid;
  place-items: center;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.club-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.club-badge--text {
  padding: 0;
  background: #1674d1;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.club-badge--red {
  background: #d71920;
  font-size: 0.56rem;
}

.player-search input {
  width: min(300px, 35vw);
}

.player-empty {
  padding: 36px 16px;
  color: var(--muted);
  text-align: center;
}

.player-card h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.player-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.player-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--muted);
}

.player-meta b {
  color: var(--accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-grid--mosaic {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
}

.gallery-item--big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover > img {
  transform: scale(1.06);
}

.gallery-grid--mosaic .gallery-item {
  height: 100%;
}

.gallery-item {
  position: relative;
  margin: 0;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 14, 28, 0), rgba(8, 14, 28, 0.55));
  opacity: 0;
  transition: 0.25s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s;
}

.gallery-item:hover span {
  opacity: 1;
  transform: none;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox__stage {
  position: relative;
  margin: 0;
  max-width: 88vw;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: auto;
}

.lightbox__stage img {
  max-width: 88vw;
  max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
  transform-origin: center center;
  cursor: zoom-in;
}

.lightbox__stage figcaption {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.lightbox__btn {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.lightbox__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
}

.lightbox__tools {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox__zoom {
  min-width: 52px;
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.contact-info ul li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.contact-info ul li i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info ul li b {
  display: block;
  color: var(--heading);
  font-size: 0.8rem;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  transition: 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.form-control::placeholder {
  color: var(--muted);
}

select.form-control option {
  background: var(--panel);
  color: var(--text);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.form-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Auth — split-screen layout */
.auth-wrap {
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-split {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-side {
  position: relative;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background:
    linear-gradient(165deg, rgba(3, 18, 12, 0.93) 0%, rgba(0, 92, 60, 0.82) 100%),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=900&q=80") center/cover;
  color: #fff;
}

.auth-side .brand {
  color: #fff;
}

.auth-side__body {
  flex: 1;
}

.auth-side__body h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-side__body > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-side__foot {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* Vertical steps (register) */
.steps-v {
  display: flex;
  flex-direction: column;
}

.steps-v .wp-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 28px;
}

.steps-v .wp-step:last-child {
  padding-bottom: 0;
}

.steps-v .wp-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: 0.25s;
}

.steps-v .wp-step:last-child::before {
  display: none;
}

.steps-v .wp-step.is-done::before {
  background: var(--accent-2);
}

.wp-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: 0.25s;
}

.wp-text {
  padding-top: 2px;
}

.wp-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  transition: 0.25s;
}

.wp-text small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}

.wp-step.is-active .wp-dot {
  background: #fff;
  border-color: #fff;
  color: #046b44;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.wp-step.is-active .wp-label {
  color: #fff;
}

.wp-step.is-done .wp-dot {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #04130b;
}

.wp-step.is-done .wp-dot::before {
  content: "\2713";
}

.wp-step.is-done .wp-dot span {
  display: none;
}

.wp-step.is-done .wp-label {
  color: var(--accent-2);
}

/* Right panel */
.auth-main {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-step__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.wizard-step__desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.btn--block {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.85rem;
}

.auth-alt {
  text-align: center;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-alt a {
  color: var(--accent);
  font-weight: 700;
}

.auth-alt a:hover {
  text-decoration: underline;
}

.wizard-step {
  display: none;
  animation: wiz-in 0.3s ease;
}

.wizard-step.is-active {
  display: block;
}

@keyframes wiz-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.review-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.review-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.review-list li:last-child {
  border-bottom: none;
}

.review-list li span {
  color: var(--muted);
}

.review-list li b {
  color: var(--heading);
  text-align: right;
  word-break: break-word;
}

.wizard-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.wizard-success {
  text-align: center;
  padding: 18px 0 6px;
}

.wizard-success i {
  font-size: 3.4rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.wizard-success h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.wizard-success p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
  .mainnav > ul > li > a {
    padding: 10px 9px;
  }
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 200px 1fr 200px;
    gap: 14px;
  }

  :root {
    --sidebar-w: 200px;
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .sidebar--left {
    order: 2;
  }

  .sidebar--right {
    order: 3;
  }

  .content {
    order: 1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }

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

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

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

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

  .mainnav {
    display: none;
  }

  .mainnav.is-open {
    display: block;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
  }

  .mainnav.is-open > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .mainnav.is-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 12px;
  }

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

  .topbar__inner {
    position: relative;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-grid--mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

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

  .bracket__matches {
    height: auto;
  }
}

@media (max-width: 640px) {
  .sidebar {
    grid-template-columns: 1fr;
  }

  .page-hero--article {
    padding: 28px 20px;
  }

  .article__cover {
    height: 180px;
  }

  .article__body {
    padding: 18px 16px 8px;
  }

  .article__meta,
  .article__foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    height: 280px;
  }

  .video-banner {
    height: 220px;
  }

  .video-banner__info {
    left: 16px;
    bottom: 16px;
    right: 70px;
  }

  .video-banner__info h2 {
    font-size: 1.2rem;
  }

  .video-banner__info p {
    display: none;
  }

  .video-banner__controls {
    right: 14px;
    bottom: 14px;
  }

  .hero__content {
    padding: 24px 20px;
  }

  .panel {
    padding: 16px;
  }

  .player-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .player-search,
  .player-search input {
    width: 100%;
  }

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

  .news-item {
    flex-direction: column;
  }

  .news-item__thumb {
    width: 100%;
    height: 160px;
  }

  .comment-form {
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn--ghost {
    display: none;
  }

  .search input {
    width: 100%;
  }

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

  .search {
    width: 100%;
  }

}

@media (max-width: 860px) {
  .auth-split {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .auth-side {
    padding: 26px 24px;
    gap: 14px;
  }

  .auth-side__foot {
    display: none;
  }

  .steps-v {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .steps-v .wp-step {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 0;
    flex: 1;
  }

  .steps-v .wp-step::before {
    display: none;
  }

  .wp-text {
    text-align: center;
    padding-top: 0;
  }

  .wp-label {
    font-size: 0.6rem;
  }

  .wp-text small {
    display: none;
  }

  .auth-main {
    padding: 26px 24px;
  }
}

@media (max-width: 560px) {
  .player-grid,
  .gallery-grid,
  .stat-cards {
    grid-template-columns: 1fr;
  }

  .gallery-item--big,
  .gallery-item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
