:root {
  --bg: #0e0f13;
  --panel: #151821;
  --text: #000;
  --muted: #000;
  --brand: #00d084;
  --brand-2: #34d399;
  --accent: #60a5fa;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* background:linear-gradient(180deg, #0b0c10 0%, var(--bg) 40%); */
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: linear-gradient(
    180deg,
    rgba(14, 15, 19, 0.8),
    rgba(14, 15, 19, 0.2)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.4px;
}
.logo-ball {
  font-size: 22px;
  display: inline-block;
  transform: translateY(1px);
}
.brand-text {
  font-size: 18px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: var(--muted);
  
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
.theme-toggle {
  border: 0;
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  gap: 6px;
}
.theme-toggle .sun {
  display: block;
}
.theme-toggle .moon {
  display: none;
}
body.light {
  --bg: #f7f7fb;
  --panel: #ffffff;
  --text: #0b0b0f;
  --muted: #5b5d66;
  --brand: #0ea5e9;
  --brand-2: #22d3ee;
  --accent: #2563eb;
  background: linear-gradient(180deg, #e9eefc 0%, var(--bg) 40%);
}
body.light .theme-toggle .sun {
  display: none;
}
body.light .theme-toggle .moon {
  display: block;
}

.hero {
  position: relative;
  padding: 60px 0 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 10px;
}
.hero-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin: 16px 0 8px;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #051b12;
  box-shadow: 0 10px 25px rgba(34, 211, 146, 0.3);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-highlights {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  padding-left: 16px;
}
.hero-art {
  position: relative;
  height: 380px;
}
.pitch {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: radial-gradient(
      65% 80% at 50% 100%,
      rgba(52, 211, 153, 0.2),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 30px 30px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ball {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fff 0%,
    #ddd 40%,
    #bbb 65%,
    #aaa 100%
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ball-1 {
  top: 18%;
  left: 18%;
  animation: float 6s ease-in-out infinite;
}
.ball-2 {
  top: 35%;
  left: 62%;
  animation: float 7s ease-in-out -0.9s infinite;
}
.ball-3 {
  top: 6%;
  left: 78%;
  width: 30px;
  height: 30px;
  animation: float 5s ease-in-out -1.4s infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent);
}
.ticker-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  padding: 10px 0;
  animation: marquee 24s linear infinite;
}
.ticker-item {
  color: #eafff5;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section {
  padding: 60px 0;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.segmented {
  display: inline-flex;
  /* background: var(--panel); */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 12px;
  padding: 4px;
}
.seg {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.seg.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #051b12;
}
#leagueFilter,
#teamSearch {
  /* background: var(--panel); */
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  padding: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  /* background: var(--panel); */
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  /* box-shadow: var(--shadow); */
  padding: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
}
.match-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}
.vs {
  color: var(--muted);
  font-weight: 700;
}
.match-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
}
.btn.small {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.remind-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #0b0b0f;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.news-media {
  aspect-ratio: 16/9;
  overflow: hidden;
}


.header_space {
  /* padding: 10px 0 10px 0; */
  text-align: center;
  margin-bottom: 10px;
  min-height: 250px;
}
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.4s ease;
}
.news-card:hover .news-media img {
  transform: scale(1.12);
}
.news-body {
  padding: 14px;
  background-color: whitesmoke;
}
.news-body .chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  border: 1px solid;
}
.news-body .chip[data-tag="Transfer"] {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.25);
}
.news-body .chip[data-tag="Match Report"] {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}
.news-body .chip[data-tag="Champions League"] {
  background: rgba(168, 85, 247, 0.15);
  color: #c4b5fd;
  border-color: rgba(168, 85, 247, 0.25);
}
.news-body .chip[data-tag="Premier League"] {
  background: rgba(52, 211, 153, 0.15);
  color: #b9f5dc;
  border-color: rgba(52, 211, 153, 0.25);
}
.news-body .chip[data-tag="Serie A"] {
  background: rgba(245, 158, 11, 0.15);
  color: #fed7aa;
  border-color: rgba(245, 158, 11, 0.25);
}
.news-body .chip[data-tag="Bundesliga"] {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.25);
}
.news-body .title {
  margin: 4px 0 6px;
}
.news-body .excerpt {
  color: var(--muted);
  margin: 0 0 8px;
}
.readmore {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.blog-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-media {
  aspect-ratio: 21/9;
  overflow: hidden;
}
.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-media img {
  transform: scale(1.12);
}
.blog-content {
  padding: 12px;
    background-color: whitesmoke;
}
.blog-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}
.blog-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.blog-card .btn {
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

.gallery-grid {
  columns: 4 200px;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 14px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.credits {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal[open] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.2s ease;
}
.modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: min(900px, 92vw);
  max-height: 85vh;
  overflow: auto;
  animation: pop 0.2s ease;
}
.modal-header {
  position: relative;
  margin: -18px -18px 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.modal-poster {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.modal-header h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 24px;
}
.modal-body {
  padding: 18px;
  background-color: whitesmoke;
}



.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.update-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}
.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
}
.notification-icon {
  font-size: 18px;
}
.notification-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .blog-list {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
}
