* {
  box-sizing: border-box;
}

body,
html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #f4f6f9;
  color: #0f172a;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Modern Sticky Glass Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.navbar-brand {
  color: #dc2626 !important;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.navbar-toggler {
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  background: #fef2f2;
  padding: 5px 11px;
  border-radius: 8px;
}

.nav-link {
  color: #334155 !important;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff !important;
  background-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  text-decoration: none;
}

/* Main Layout */
.main-wrapper {
  flex: 1;
  padding-top: 28px;
}

.container-main {
  max-width: 1250px;
}

.page-date {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  margin-top: 18px;
}

.page-date::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #dc2626, transparent);
}

.league-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  margin-top: 24px;
  letter-spacing: -0.3px;
}

.league-title img {
  width: 32px;
}

/* Hero / Stream Banner */
.stream-banner {
  padding: 30px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 48%, #991b1b 100%);
  max-width: 900px;
  margin: 0 auto 16px auto;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.24);
  position: relative;
  overflow: hidden;
}

.stream-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.stream-banner h1 {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.stream-banner p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0;
}

/* Search Box */
.search-box {
  width: 100%;
  position: relative;
  margin-bottom: 20px;
  color: #0f172a;
}

.search-box input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 14px 16px 14px 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  outline: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.search-box .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #dc2626;
  fill: #dc2626 !important;
}

/* Match Cards - Next-Gen Scoreboard Style */
.match-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.match-card:hover {
  background: #ffffff;
  border-color: #fca5a5;
  border-left-color: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.11);
}

.match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #0f172a;
}

.league-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #dc2626;
  border-bottom: 1px solid #fecaca;
  border-right: 1px solid #fecaca;
  padding: 5px 14px 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  border-bottom-right-radius: 10px;
}

.league-badge img {
  width: 15px;
}

.match-date {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 500;
}

.match-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 150px;
  align-items: center;
  padding-top: 10px;
}

.team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.team img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.vs {
  text-align: center;
  color: #dc2626;
  font-weight: 800;
  font-size: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 5px 0;
  border-radius: 999px;
}

.match-info {
  text-align: right;
  color: #0f172a;
}

.match-time {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
  margin-top: 6px;
}

.countdown {
  font-size: 12px;
  color: #dc2626;
  font-weight: 700;
  margin-top: 3px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 86px;
}

.et-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #dc2626;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.et-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.et-time {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 4px 0;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.et-date {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

.et-footer {
  font-size: 12px;
  color: #64748b;
}

.et-match-time {
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 7px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.et-match-time svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: #dc2626;
}

.sidebar-discord {
  width: 100%;
  overflow: hidden;
  margin-bottom: 18px;
}

.discord-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-card:hover {
  border-color: #fca5a5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
}

.discord-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  width: 100%;
}

.discord-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.discord-text {
  font-size: 38px;
  font-weight: 800;
  color: #5865F2;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Empty States */
.no-matches,
.no-league {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px dashed #fca5a5;
  color: #0f172a;
  padding: 40px 20px;
  border-radius: 14px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
}

.no-matches svg,
.no-league svg {
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  fill: #dc2626;
}

.no-matches h3,
.no-league h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0f172a;
}

.no-matches .query-text,
.no-league .query-text {
  color: #dc2626;
}

.no-matches p,
.no-league p {
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .match-card {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .match-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .league-badge {
    padding: 4px 10px;
    font-size: 10px;
    border-bottom-right-radius: 10px;
  }

  .league-badge img {
    width: 12px;
    height: 12px;
  }

  .match-date {
    top: 6px;
    right: 12px;
    font-size: 10px;
  }

  .match-row {
    grid-template-columns: 1fr 40px 1fr 100px;
    gap: 5px;
  }

  .team {
    font-size: 13px;
  }

  .team img {
    width: 22px;
    height: 22px;
  }

  .vs {
    font-size: 10px;
  }

  .match-info {
    text-align: right;
    font-size: 12px;
  }

  .match-time {
    font-size: 12px;
    margin-top: 4px;
  }

  .countdown {
    font-size: 11px;
    margin-top: 2px;
  }

  .live-badge {
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 12px;
    margin-top: 3px;
  }

  .live-dot {
    width: 6px;
    height: 6px;
  }
}

/* Ads */
.ad-container {
  width: 100%;
  overflow: hidden;
  text-align: start;
}

.ad-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 90px !important;
  border: 0;
  margin-bottom: 10px;
}

@media (min-width: 769px) {
  .ad-container {
    display: flex;
    justify-content: start;
  }

  .ad-container iframe {
    width: 728px !important;
    height: 90px !important;
  }
}

.fixed-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  justify-content: center;
  z-index: 9999;
}

.fixed-ad iframe {
  width: 100% !important;
  height: 90px !important;
  border: 0;
}

@media (min-width: 769px) {
  .fixed-ad iframe {
    width: 728px !important;
    height: 90px !important;
  }
}

.close-ad {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  line-height: 25px;
  z-index: 10000;
}

.close-ad img {
  width: 22px;
  height: 22px;
}

.sidebar-ad {
  width: 500px;
  max-width: 100%;
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 14px;
  box-sizing: border-box;
}

.ad-160x300 {
  height: 300px;
  display: flex;
  justify-content: start;
}

.ad-160x300 iframe {
  width: 300px !important;
  height: 250px !important;
  border: 0;
}

@media (max-width: 768px) {
  .sidebar-ad {
    margin: 0 auto 20px;
  }
}

/* Content / Info Sections */
.container7 {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  max-width: 900px;
  margin: 24px auto;
  padding: 32px;
  border-radius: 16px;
  color: #0f172a;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

h2 {
  margin-top: 28px;
  color: #dc2626;
  font-weight: 800;
}

p {
  color: #475569;
}

.box {
  border: 1px solid #e2e8f0;
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
  transform: translateY(-4px);
  border-color: #dc2626;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

th {
  background: #fef2f2;
  color: #991b1b;
  padding: 13px;
  text-align: left;
  font-weight: 700;
}

td {
  padding: 13px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
}

tr:hover {
  background: #fef2f2;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  padding: 16px;
}

.faq-question {
  font-weight: 700;
  color: #0f172a;
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #475569;
}

.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  padding: 5px;
}

.left-ad {
  left: 10px;
}

.right-ad {
  right: 10px;
}

@media only screen and (max-width: 768px) {
  .side-ad {
    position: relative;
    top: 0;
    transform: none;
    margin: 10px auto;
    display: block;
  }

  .left-ad,
  .right-ad {
    left: auto;
    right: auto;
  }
}

#footerAdWrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e2e8f0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  transition: transform 0.4s ease;
}

.footerAdInner {
  max-width: 728px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footerClose {
  position: absolute;
  right: 10px;
  top: 6px;
  width: 28px;
  height: 28px;
  background: #dc2626;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  #footerAdWrap {
    padding: 8px 0;
  }

  .footerAdInner {
    max-width: 100%;
  }

  .footerAdInner iframe {
    width: 100% !important;
    height: 90px !important;
  }

  .footerClose {
    right: 6px;
    top: -12px;
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  text-align: center;
  padding: 32px 20px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 28px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.site-footer .footer-content {
  max-width: 900px;
  margin: auto;
}

.footer-site-name {
  margin: 8px 0;
  font-weight: 800;
  font-size: 18px;
  color: #dc2626;
}

.footer-site-name a {
  color: inherit;
  text-decoration: none;
}

.footer-site-name a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  margin: 12px 0;
  font-weight: 500;
  color: #64748b;
  text-align: left;
}

.footer-links {
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #dc2626;
  text-decoration: underline;
}
