/* Base styling for uefa-ergebnisse.de */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #000000;
  --bg-2: #0b0f1a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --accent: #7ef2c4;
  --accent-2: #7ac9ff;
  --accent-3: #f7c266;
  --text: #f6f8fb;
  --muted: #9fb1c7;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  --radius: 18px;
  --font: "Manrope", "Inter", "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --glow-green: 0 10px 35px rgba(126, 242, 196, 0.16);
  --glow-blue: 0 10px 32px rgba(122, 201, 255, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 55%, #02040a 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  padding: 12px 0;
}

.site-header .layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text);
}

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

.nav-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: none;
}

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

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.2s ease, border-color 0.25s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.hero {
  background: linear-gradient(140deg, rgba(126, 242, 196, 0.18), rgba(112, 199, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin-top: 0;
  letter-spacing: -0.6px;
  font-weight: 800;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb {
  margin: 16px 0;
  font-size: 14px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li::after {
  content: "/";
  color: var(--muted);
  margin-left: 8px;
}

.breadcrumb li:last-child::after {
  content: "";
}

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

.section {
  margin: 32px 0;
}

.feed-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  align-items: center;
}

.feed-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-btn:hover,
.feed-btn:focus {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  outline: none;
}

.feed-scroll {
  height: calc(100vh - 70px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  display: grid;
  gap: 12px;
  padding: 4px 0 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scroll-behavior: smooth;
}

.feed-item {
  position: relative;
  scroll-snap-align: start;
  min-height: calc(75vh - 24px);
  padding: 18px 14px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feed-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.feed-item > *:not(.feed-overlay) {
  max-width: 100%;
  margin: 0 auto 10px;
}

.feed-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(126, 242, 196, 0.14), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(122, 201, 255, 0.13), transparent 36%),
    radial-gradient(circle at 60% 80%, rgba(247, 194, 102, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: patternShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.feed-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 10px
  );
  mix-blend-mode: overlay;
  opacity: 0.25;
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
}

.feed-item h3 {
  margin: 0;
  letter-spacing: -0.2px;
  font-size: 20px;
}

.score-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--glow-blue);
}

.score-col {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 10px 12px 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.score-col.win {
  background: linear-gradient(180deg, rgba(126, 242, 196, 0.22) 0%, rgba(126, 242, 196, 0.08) 100%);
  border-color: rgba(126, 242, 196, 0.4);
  box-shadow: var(--glow-green);
}

.score-col.lose {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.score-col.draw {
  background: linear-gradient(180deg, rgba(122, 201, 255, 0.18) 0%, rgba(122, 201, 255, 0.06) 100%);
  border-color: rgba(122, 201, 255, 0.35);
}

.score-col::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.score-num {
  font-size: clamp(36px, 8.5vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.feed-date {
  position: relative;
  z-index: 2;
  font-weight: 700;
  color: #9dd8ff;
  letter-spacing: 1px;
  margin: 2px 0 12px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.feed-title {
  margin: 10px 0 6px;
  letter-spacing: -0.1px;
}
.team-pill {
  display: inline-block;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13.5px;
  letter-spacing: 0.25px;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feed-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.feed-meta a:first-child {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #031018;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.feed-meta a:first-child:hover,
.feed-meta a:first-child:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
}

.like-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.like-btn:hover,
.like-btn:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  outline: none;
}

.like-btn.liked {
  background: rgba(126, 242, 196, 0.15);
  border-color: rgba(126, 242, 196, 0.5);
  color: #dfffee;
  box-shadow: var(--glow-green);
}

.like-btn .like-count {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  text-align: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #f5f8ff;
}

.share-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.share-btn:hover,
.share-btn:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  outline: none;
}

.feed-overlay {
  position: relative;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
  display: grid;
  gap: 14px;
}

.feed-overlay .note {
  margin: 0;
  color: #d7e1ef;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
}

.feed-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.feed-actions a {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.infinite-sentinel {
  height: 60px;
  width: 100%;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0 28px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}

.loader.hidden {
  display: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes patternShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-6%, -4%, 0) scale(1.04);
  }
}

@keyframes gridDrift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20px);
  }
}

.feed-scroll::-webkit-scrollbar {
  width: 6px;
}
.feed-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.feed-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.section h2 {
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list-clean li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.faq {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item h3 {
  margin: 0 0 6px;
}

.table-like {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  align-items: center;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 42px;
  padding-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

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

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

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

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

.legal-fab {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  align-items: center;
}

.legal-fab a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.legal-fab a:hover,
.legal-fab a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.visitor-counter {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 8px;
}

.visitor-counter.visible {
  display: inline-flex;
}

.visitor-counter__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(126, 242, 196, 0.6);
}

.visitor-counter__count {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

@media (max-width: 720px) {
  .site-header .layout {
    flex-direction: row;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .table-like {
    grid-template-columns: 1fr;
  }

  .feed-item {
    padding: 16px 12px 26px;
    min-height: calc(68vh - 28px);
  }

  .feed-date {
    font-size: 12px;
    padding: 6px 10px;
  }

  .score-row {
    grid-template-columns: 1fr 1fr;
    padding: 8px 6px;
    gap: 10px;
  }

  .score-col {
    padding: 10px 11px;
  }

  .score-num {
    font-size: clamp(34px, 8vw, 48px);
  }

  .team-pill {
    font-size: 13px;
    padding: 6px 10px;
  }

  .feed-item h3 {
    font-size: 18px;
  }

  .feed-meta {
    gap: 8px;
  }

  .feed-overlay .note {
    font-size: 16px;
    line-height: 1.6;
  }
}
