@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --card: #1a1a1a;
  --border: #2e2020;
  --accent: #e8192c;
  --text: #e8f0f7;
  --muted: #7a6060;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

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

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center;
  height: 60px; gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem; letter-spacing: 2px;
  color: var(--accent); white-space: nowrap;
  text-shadow: 0 0 20px rgba(232,25,44,0.4);
}
.logo span { color: var(--text); }
.logo a { color: inherit; }

.sport-nav {
  display: flex; align-items: center; gap: 0.15rem;
  overflow-x: auto; scrollbar-width: none; flex: 1;
}
.sport-nav::-webkit-scrollbar { display: none; }
.sport-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 1.5px;
  color: var(--muted); padding: 0.35rem 0.75rem;
  border-radius: 4px; transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.sport-nav a:hover, .sport-nav a.active {
  color: var(--accent); background: rgba(232,25,44,0.07);
}

.live-badge-nav {
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  padding: 2px 7px; border-radius: 3px;
  animation: pulse 1.5s ease-in-out infinite; margin-left: auto;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* ── HERO ── */
.hero {
  position: relative; padding: 3.5rem 2rem 2.5rem;
  text-align: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,25,44,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 3px; line-height: 1; color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin-top: 0.75rem; color: var(--muted); font-size: 1rem; max-width: 480px; margin-inline: auto; }
.hero-badges { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-badge {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.4rem 1rem;
  font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px rgba(232,25,44,0.6);
}

/* ── SECTION HEADER ── */
.section-header {
  padding: 0 2rem; display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.section-title { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 2px; color: var(--text); }
.match-count {
  font-size: 0.8rem; color: var(--muted); background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px;
}

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 0.5rem; padding: 0 2rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; color: var(--muted); background: var(--card);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.35rem 0.9rem; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.filter-tab:hover { color: var(--text); border-color: var(--accent); }
.filter-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ── GAMES GRID ── */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem; padding: 0 2rem 3rem;
}

.game-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  cursor: pointer; transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative; overflow: hidden;
  animation: fadeUp 0.4s ease both;
}
.game-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--border); transition: background 0.2s;
}
.game-card:hover { border-color: rgba(232,25,44,0.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.game-card:hover::before, .game-card.live::before { background: var(--accent); }

.card-top { display: flex; align-items: center; justify-content: space-between; }
.league-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.status-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; }
.status-live { background: rgba(232,25,44,0.15); color: var(--accent); border: 1px solid rgba(232,25,44,0.3); animation: pulse 1.5s infinite; }
.status-upcoming { background: rgba(232,25,44,0.08); color: var(--accent); border: 1px solid rgba(232,25,44,0.2); }
.status-finished { background: rgba(60,40,40,0.15); color: var(--muted); border: 1px solid var(--border); }

.teams { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.team { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; }
.team-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.team-name { font-size: 0.78rem; font-weight: 600; text-align: center; color: var(--text); line-height: 1.2; }
.vs { font-family: var(--font-display); font-size: 1rem; letter-spacing: 2px; color: var(--muted); }

/* ── SPORT PAGE HERO ── */
.sport-hero {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem; text-align: center;
  margin: 2rem 2rem 1.5rem; position: relative; overflow: hidden;
}
.sport-hero::after {
  content: attr(data-sport); position: absolute;
  right: -20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 8rem;
  color: rgba(255,255,255,0.03); letter-spacing: 5px; pointer-events: none;
}
.sport-hero h2 { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 3px; color: var(--accent); }
.sport-hero p { color: var(--muted); margin-top: 0.5rem; }

/* ── MATCH DETAIL ── */
.match-detail-wrap { padding: 1.5rem 2rem 3rem; max-width: 1000px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #3a2a2a; }

.match-league-tag {
  display: inline-block; background: var(--accent);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; padding: 3px 10px; border-radius: 4px;
  margin-bottom: 0.75rem; text-transform: uppercase;
}

.match-title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: var(--text); margin-bottom: 0.4rem; line-height: 1.2;
}

.match-meta {
  font-size: 0.82rem; color: var(--muted); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.match-meta .meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

.discord-bar {
  background: #5865f2; border-radius: 8px; padding: 0.85rem 1.5rem;
  text-align: center; font-size: 0.9rem; font-weight: 600;
  color: #fff; margin-bottom: 1.25rem; cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.discord-bar:hover { background: #4752c4; }

.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border: 2px solid var(--accent);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 1.5rem; cursor: pointer;
}
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn svg {
  width: 64px; height: 64px; opacity: 0.7;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.3));
  transition: opacity 0.2s, transform 0.2s;
}
.video-wrap:hover .video-play-btn svg { opacity: 1; transform: scale(1.08); }
.video-overlay-text {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; color: rgba(255,255,255,0.25);
  white-space: nowrap; letter-spacing: 0.5px;
}

.alt-streams-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.source-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.source-btn {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.55rem 1.1rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 0.6rem;
}
.source-btn:hover, .source-btn.active-src { border-color: var(--accent); background: rgba(232,25,44,0.07); }
.source-btn .hd-badge {
  background: #1a7a3a; color: #fff;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.5px;
  padding: 1px 5px; border-radius: 3px;
}

/* ── STATIC PAGES ── */
.static-wrap { padding: 2rem; max-width: 860px; margin: 0 auto; }

.static-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.static-header h1 { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 3px; color: var(--text); }
.static-header p { color: var(--muted); margin-top: 0.5rem; font-size: 0.9rem; }
.static-header .accent-line { width: 40px; height: 3px; background: var(--accent); margin-top: 1rem; border-radius: 2px; }

.policy-section { margin-bottom: 2rem; }
.policy-section h2 {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.policy-section h2::before { content: ''; width: 3px; height: 1.1em; background: var(--accent); border-radius: 2px; display: inline-block; }
.policy-section p { color: #b0a0a0; font-size: 0.92rem; line-height: 1.7; }
.policy-section ul { list-style: none; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.policy-section ul li {
  color: #b0a0a0; font-size: 0.92rem; line-height: 1.6;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}
.policy-section a { color: var(--accent); text-decoration: underline; }

.terms-section { margin-bottom: 2rem; }
.terms-section h2 {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 2px;
  color: var(--text); margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.terms-section h2 span { color: var(--accent); margin-right: 0.5rem; }
.terms-section p { color: #b0a0a0; font-size: 0.92rem; line-height: 1.7; }
.terms-section ul { list-style: none; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.terms-section ul li {
  color: #b0a0a0; font-size: 0.92rem; line-height: 1.6;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}

/* ── CONTACT ── */
.contact-form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  background: #111; border: 1px solid var(--border);
  border-radius: 6px; padding: 0.75rem 1rem;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s; outline: none; resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #3a2a2a; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a6060' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; cursor: pointer; }
.form-group select option { background: #1a1a1a; }
.send-btn {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.8rem 2rem; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.send-btn:hover { background: #c4151f; transform: translateY(-1px); }

.contact-info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.info-card .info-icon { font-size: 1.5rem; }
.info-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.info-card a { font-size: 0.82rem; color: var(--accent); }
.info-card span { font-size: 0.82rem; color: var(--muted); }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto 2rem; }
.footer-brand .logo { font-size: 1.6rem; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 2px; color: var(--muted); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.footer-pill { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; text-align: center; font-size: 0.78rem; color: var(--muted); max-width: 1100px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; gap: 1rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .games-grid { padding: 0 1rem 2rem; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-header, .filter-tabs { padding: 0 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .static-wrap, .match-detail-wrap { padding: 1.25rem; }
  .sport-hero { margin: 1rem 1rem 1rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
