:root,
[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #eef3f9;
  --text: #1a1a2e;
  --muted: #5c6b7a;
  --accent: #5b9fd4;
  --accent-bright: #7eb8e8;
  --accent-dim: #5b9fd433;
  --accent-glow: #5b9fd455;
  --accent-on: #ffffff;
  --border: #d8e2ed;
  --header-bg: #ffffffdd;
  --hero-overlay: linear-gradient(105deg, #f5f8fcee 42%, #f5f8fc66 68%, transparent);
  --hero-bg-mid: #e8f0f8;
  --hero-accent-radial: #5b9fd422;
  --hero-accent-glow: #5b9fd418;
  --hero-grid-line: #1a1a2e06;
  --filter-hero-card-bg: #ffffffcc;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-card: 16px;
  --card-border: transparent;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 18px rgba(15, 23, 42, 0.07);
  --gols-feature-bg: linear-gradient(160deg, #f0f6fc 0%, #ffffff 100%);
  --gols-feature-border: transparent;
  --gols-feature-shadow: var(--card-shadow), 0 0 0 1px var(--accent-dim);
  --day-reel-overlay-fade: linear-gradient(
    to top right,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.42) 42%,
    transparent 68%
  );
  --day-reel-overlay-match: #1a1a2e;
  --day-reel-overlay-comp: #5c6b7a;
  --day-reel-overlay-players: #4a8fc8;
  --thumb-bg: linear-gradient(135deg, #dce8f4, #c5d9ec);
  --chip-avatar-bg: linear-gradient(145deg, #e8f0f8, #d0dce8);
  --chip-avatar-photo-bg: #eef3f9;
  --shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #0a0e14;
  --bg-elevated: #111820;
  --card: #151c28;
  --card-hover: #1a2332;
  --text: #f0f4f8;
  --muted: #8b9cb3;
  --accent: #00c853;
  --accent-bright: #00e676;
  --accent-dim: #00c85333;
  --accent-glow: #00c85355;
  --accent-on: #041008;
  --border: #243044;
  --header-bg: #0a0e14dd;
  --hero-overlay: linear-gradient(105deg, #0a0e14ee 42%, #0a0e1466 68%, transparent);
  --hero-bg-mid: #0d1520;
  --hero-accent-radial: #00c85322;
  --hero-accent-glow: #00c85318;
  --hero-grid-line: #ffffff04;
  --filter-hero-card-bg: #0d1219cc;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-card: 16px;
  --card-border: #2d3d52;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --gols-feature-bg: linear-gradient(160deg, #0f161f 0%, #111820 100%);
  --gols-feature-border: #2d3d52;
  --gols-feature-shadow: var(--card-shadow), 0 0 0 1px var(--accent-dim);
  --day-reel-overlay-fade: linear-gradient(
    to top right,
    rgba(6, 10, 16, 0.88) 0%,
    rgba(6, 10, 16, 0.4) 42%,
    transparent 68%
  );
  --day-reel-overlay-match: #f0f4f8;
  --day-reel-overlay-comp: #9aabb8;
  --day-reel-overlay-players: #7eb8e8;
  --thumb-bg: linear-gradient(135deg, #1a2838, #0d1218);
  --chip-avatar-bg: linear-gradient(145deg, #1e2a3a, #0f1419);
  --chip-avatar-photo-bg: #1a2332;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

img,
video {
  max-width: 100%;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

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

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-logo {
  --logo-size: 44px;
  height: var(--logo-size);
  width: var(--logo-size);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 11px;
  filter: drop-shadow(0 2px 6px rgba(26, 26, 46, 0.1));
  transition:
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.22s ease;
}

.brand:hover .site-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px var(--accent-glow));
}

[data-theme="dark"] .site-logo {
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

[data-theme="dark"] .brand:hover .site-logo {
  filter: drop-shadow(0 0 16px var(--accent-glow));
}

.site-logo--footer {
  --logo-size: 30px;
  opacity: 0.9;
  filter: drop-shadow(0 1px 4px rgba(26, 26, 46, 0.08));
}

[data-theme="dark"] .site-logo--footer {
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.footer-brand:hover .site-logo--footer {
  transform: scale(1.04);
  opacity: 1;
}

.nav-main {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
}

.header-search {
  flex: 0 1 220px;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
}

.header-search input::placeholder {
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

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

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

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

@media (min-width: 768px) {
  .theme-toggle-label {
    display: inline;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--hero-overlay),
    radial-gradient(ellipse 80% 60% at 75% 40%, var(--hero-accent-radial), transparent),
    linear-gradient(160deg, var(--hero-bg-mid) 0%, var(--bg) 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      var(--hero-grid-line) 48px,
      var(--hero-grid-line) 49px
    );
}

.hero-bg::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle at 60% 50%, var(--hero-accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 1.25rem 0 1.15rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.hero-col-copy {
  min-width: 0;
}

.hero-col-search {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.75rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.stat-pill-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.stat-pill-value {
  font-weight: 700;
  color: var(--text);
}

.stat-pill-label {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Hero search (compact) */
.hero-col-search .filter-card {
  background: var(--filter-hero-card-bg);
  backdrop-filter: blur(8px);
}

.filter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem 0.6rem;
  box-shadow: var(--shadow);
}

.filter-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.hero-col-search .filter-form {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.hero-col-search .filter-swap {
  display: none;
}

.hero-col-search .filter-actions {
  margin-top: 0.1rem;
}

.hero-col-search .filter-actions .btn-primary {
  width: 100%;
}

.hero-col-search .advanced-search {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.hero-col-search .advanced-grid {
  grid-template-columns: 1fr;
}

.filter-form .field {
  display: none;
}

.filter-form.mode-team .field-team,
.filter-form.mode-competition .field-competition,
.filter-form.mode-team .field-team-competition {
  display: block;
}

.field-team-competition label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.filter-form select,
.filter-form input[type="text"] {
  width: 100%;
  padding: 0.42rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
}

.filter-swap {
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-primary {
  padding: 0.42rem 0.9rem;
  background: var(--accent);
  color: var(--accent-on);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn-ghost:hover {
  color: var(--text);
}

.advanced-search {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.advanced-search summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  margin-top: 0.45rem;
  align-items: center;
}

/* Sections */
.section {
  padding: 2rem 0 0.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}

.section-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
  height: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Gols de Hoje: mini reel em destaque */
.gols-de-hoje-feature {
  background: var(--gols-feature-bg);
  border: 1px solid var(--gols-feature-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: var(--gols-feature-shadow);
  margin-bottom: 2rem;
}

.gols-de-hoje-head {
  margin-bottom: 1.15rem;
}

.day-reel-player {
  width: 100%;
}

.ultimos-gols--after-feature {
  margin-top: 0;
}

.day-reel-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.day-reel-stage {
  position: relative;
  width: 100%;
}

.day-reel-slide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease;
}

.day-reel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.gols-de-hoje-feature .day-reel-thumb {
  container-type: inline-size;
  container-name: day-reel;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.gols-de-hoje-feature .day-reel-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: min(88%, 22rem);
  padding: clamp(0.28rem, 1.6cqi + 0.14rem, 0.52rem)
    clamp(0.38rem, 2cqi + 0.18rem, 0.72rem);
  background: var(--day-reel-overlay-fade);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gols-de-hoje-feature .day-reel-overlay p {
  margin: 0;
  line-height: 1.32;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gols-de-hoje-feature .day-reel-overlay p + p {
  margin-top: clamp(0.04rem, 0.35cqi, 0.1rem);
}

.gols-de-hoje-feature .day-reel-overlay-match {
  font-size: clamp(
    0.56rem,
    min(3.1cqi + 0.26rem, 2vw + 0.2rem),
    0.9rem
  );
  font-weight: 700;
  color: var(--day-reel-overlay-match);
  letter-spacing: -0.01em;
}

.gols-de-hoje-feature .day-reel-overlay-comp {
  font-size: clamp(
    0.48rem,
    min(2.4cqi + 0.2rem, 1.55vw + 0.16rem),
    0.74rem
  );
  font-weight: 500;
  color: var(--day-reel-overlay-comp);
}

.gols-de-hoje-feature .day-reel-overlay-players {
  font-size: clamp(
    0.48rem,
    min(2.5cqi + 0.2rem, 1.6vw + 0.16rem),
    0.76rem
  );
  font-weight: 600;
  color: var(--day-reel-overlay-players);
}

@container day-reel (max-width: 280px) {
  .gols-de-hoje-feature .day-reel-overlay {
    max-width: 92%;
  }
}

@container day-reel (max-width: 200px) {
  .gols-de-hoje-feature .day-reel-overlay {
    max-width: 94%;
  }
}

[data-theme="dark"] .gols-de-hoje-feature .day-reel-overlay {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}

.gols-de-hoje-feature .day-reel-thumb.playing .day-reel-overlay {
  z-index: 2;
}

.goal-video-card .day-reel-overlay {
  display: none;
}

/* Team / competition / player carousel cards */
.chip-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.chip-card:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow), 0 0 0 1px var(--accent-dim);
  transform: translateY(-2px);
}

[data-theme="light"] .chip-card:hover,
[data-theme="light"] .goal-video-card:hover,
[data-theme="light"] .day-reel-card:hover {
  border-color: transparent;
}

.chip-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--chip-avatar-bg);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  overflow: hidden;
}

.chip-avatar.has-logo {
  background: #fff;
  padding: 4px;
}

.chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.chip-initials {
  line-height: 1;
}

.chip-card.competition .chip-avatar {
  border-radius: var(--radius-sm);
}

.chip-card.competition .chip-avatar:not(.has-logo) {
  font-size: 0.95rem;
}

.chip-card.player .chip-avatar.has-photo {
  background: var(--chip-avatar-photo-bg);
  padding: 0;
}

.chip-card.player .chip-avatar.has-photo img {
  object-fit: cover;
  border-radius: 50%;
}

.chip-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-count {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Browse all teams / players */
.browse-page {
  padding-bottom: 2.5rem;
}

.browse-page-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.browse-grid .browse-chip {
  flex: unset;
  min-width: 0;
}

@media (min-width: 640px) {
  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (min-width: 1024px) {
  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.15rem;
  }
}

/* Video goal cards (últimos gols + resultados) */
.goal-video-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.goal-video-card:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow), 0 0 0 1px var(--accent-dim);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--thumb-bg);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  cursor: pointer;
}

.thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  opacity: 0.35;
  pointer-events: none;
}

.thumb-wrap video[poster] + .thumb-placeholder {
  display: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #00000044;
  transition: background 0.15s;
}

.play-overlay span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.thumb-wrap:hover .play-overlay {
  background: #00000066;
}

.badge-novo {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.badge-time {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #000000aa;
  color: var(--text);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-chat {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: #000000aa;
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-video-card .badge-chat {
  display: none;
}

.goal-card-body {
  padding: 0.85rem 1rem 1rem;
}

.match-line {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.match-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.scorer-line {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.badge-golaco {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f5c542;
  border: 1px solid #f5c54266;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Search results */
.results-section {
  padding: 2rem 0;
}

.results-filter-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-filter-hint strong {
  color: var(--text);
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.per-page-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.per-page-form select {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

.results-meta {
  color: var(--muted);
  margin: 0;
}

.competition-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-on);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 999px;
  box-shadow: 0 2px 12px var(--accent-glow);
  line-height: 1.2;
}

.goal-card-body .goal-entity-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.goal-card-body .goal-entity-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.goal-card-body .competition-badge.goal-entity-link:hover {
  color: var(--accent-on);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.match-meta .goal-entity-link {
  color: var(--muted);
}

.match-meta .goal-entity-link:hover {
  color: var(--accent);
}

.scorer-line .goal-entity-link {
  color: inherit;
}

.scorer-line .goal-entity-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.result-card--filtered .match-line {
  margin-top: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.pagination-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination-link:hover:not(.disabled) {
  text-decoration: underline;
}

.pagination-link.disabled {
  color: var(--muted);
  opacity: 0.5;
  cursor: default;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.88rem;
}

.results-grid {
  display: flex;
  gap: 1.25rem;
}

.results-grid.scroll-row {
  flex-direction: row;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.results-grid:not(.scroll-row) {
  flex-direction: column;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.result-card video {
  width: 100%;
  max-height: 400px;
  display: block;
  background: #000;
}

.result-body {
  padding: 1rem 1.15rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-col-search {
    display: none;
  }

  .hero-col-copy {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    margin-top: 0.65rem;
  }

  .hero-inner {
    padding: 1rem 0 0.9rem;
  }
}

@media (max-width: 900px) {
  .results-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-swap {
    display: none;
  }

  .nav-main {
    display: none;
  }

  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-search {
    display: none;
  }

  .site-logo {
    --logo-size: 40px;
  }

  .site-logo--footer {
    --logo-size: 26px;
  }
}

@media (max-width: 520px) {
  .filter-tabs {
    flex-wrap: wrap;
  }
}
