@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --lb-red:#d11a2a;
  --lb-red-2:#8f0f13;
  --lb-dark:#0b0b0f;
  --lb-gray:#14141a;
  --lb-gray-2:#1b1b22;
  --lb-text:#f4f6fb;
  --lb-muted:rgba(244,246,251,.72);
  --lb-border:rgba(255,255,255,.08);
  --lb-glow:rgba(209,26,42,.25);
}

/* Base */
html,body{ height:100%; }
body.lb-body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(209,26,42,.20), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, #07070a 0%, #0d0d12 45%, #0a0a0e 100%);
  color:var(--lb-text);
  overflow-x: hidden;
}

/* Make media fluid by default */
img{ max-width:100%; height:auto; }

/* subtle texture */
body.lb-body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.06) 0 1px, transparent 2px) 0 0/18px 18px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.04) 0 1px, transparent 2px) 0 0/22px 22px;
  opacity:.35;
  mix-blend-mode:overlay;
}

/* Links */
a{ color:inherit; }
a:hover{ color:var(--lb-text); }

/* Navbar */
.lb-nav{
  background: rgba(10,10,14,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-border);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.lb-nav .navbar-brand{ letter-spacing:.5px; text-transform:uppercase; }
.lb-nav .nav-link{
  color: rgba(255,255,255,.78);
  font-weight:600;
  padding: .65rem .9rem;
  border-radius: 999px;
}
.lb-nav .nav-link:hover{
  color:#fff;
  background: rgba(255,255,255,.06);
}
.lb-nav .nav-link.active{
  color:#fff;
  background: linear-gradient(135deg, rgba(209,26,42,.28), rgba(143,15,19,.12));
  box-shadow: 0 0 0 1px rgba(209,26,42,.22) inset;
}

/* Brand mark */
.lb-mark{
  width: 38px; height: 38px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center; justify-content:center;
  font-weight:900;
  letter-spacing:.5px;
  background: linear-gradient(135deg, var(--lb-red), var(--lb-red-2));
  box-shadow: 0 10px 26px var(--lb-glow);
}

/* Utility */
.lb-muted{ color: var(--lb-muted); }
.lb-img{ border-radius: 14px; border: 1px solid var(--lb-border); }

/* Card */
.lb-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--lb-border);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.lb-card hr{ border-color: rgba(255,255,255,.08); }

/* Buttons */
.lb-btn,
.btn.lb-btn{
  background: linear-gradient(135deg, var(--lb-red), var(--lb-red-2));
  border: none;
  color:#fff;
  font-weight:800;
  border-radius: 999px;
  padding: .6rem 1rem;
  box-shadow: 0 14px 28px var(--lb-glow);
}
.lb-btn:hover,
.btn.lb-btn:hover{ filter: brightness(1.08); color:#fff; }
.btn-outline-light{
  border-color: rgba(255,255,255,.22);
}
.btn-outline-light:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.30);
}

/* Hero */
.lb-hero{
  position:relative;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 350px at 20% 10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, rgba(209,26,42,.92), rgba(0,0,0,.82));
  box-shadow: 0 26px 90px rgba(0,0,0,.55);
}
.lb-hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.12) 0 2px, transparent 3px) 0 0/28px 28px,
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.10) 0 2px, transparent 3px) 0 0/34px 34px;
  opacity:.25;
  mix-blend-mode:overlay;
  pointer-events:none;
}
.lb-hero > *{ position:relative; z-index:1; }
.lb-hero-badge{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding:.45rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-weight:700;
}

/* Sections */
.lb-section-title{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin: 6px 0 14px;
}
.lb-section-title .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--lb-red);
  box-shadow: 0 0 0 6px rgba(209,26,42,.18);
}
.lb-section-title h2{
  margin:0;
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
}

/* News grid */
.lb-news-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.lb-news-card{
  background: rgba(20,20,26,.75);
  border: 1px solid var(--lb-border);
  border-radius: 16px;
  overflow:hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.lb-news-card:hover{
  transform: translateY(-6px);
  border-color: rgba(209,26,42,.25);
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}
.lb-news-card img{
  width:100%;
  height: 160px;
  object-fit:cover;
}
.lb-news-card .p{
  padding: 14px 14px 16px;
}
.lb-news-card .meta{
  color: var(--lb-muted);
  font-size: .85rem;
  margin-bottom: 6px;
}
.lb-news-card .title{
  font-weight:800;
  margin:0 0 8px;
  line-height:1.2;
}
.lb-news-card .teaser{
  color: var(--lb-muted);
  margin:0;
}

/* Banner list */
.lb-banner{
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 10px;
  transition: background .2s ease, transform .2s ease;
}
.lb-banner:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}
.lb-banner img{
  width:100%;
  height:auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
}

/* Forms & tables (Admin + public) */
.form-control, .form-select, textarea {
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #000 !important;
}
.form-control:focus, .form-select:focus, textarea:focus{
  border-color: rgba(209,26,42,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(209,26,42,.18) !important;
}
.table{
  color: rgba(255,255,255,.90);
}

/* smoother horizontal scrolling on mobile */
.table-responsive{ -webkit-overflow-scrolling: touch; }
.table thead th{
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.10);
}
.table td, .table th{
  border-color: rgba(255,255,255,.10);
}
.badge{
  border: 1px solid rgba(255,255,255,.12);
}

/* Footer */
.lb-footer{
  background: rgba(10,10,14,.75);
  border-top: 1px solid var(--lb-border);
}

/* Pagination should wrap on small screens */
.pagination{ flex-wrap: wrap; gap: 6px; }

/* Responsive */
@media (max-width: 575px){
  main.py-4{ padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
  .lb-hero{ padding: 22px !important; border-radius: 16px; }
  .lb-nav .nav-link{ padding: .55rem .75rem; }
  .lb-brand-logo{ width:34px; height:34px; }
  .lb-news-card img{ height: 140px; }

  /* Stats & match rows should not force horizontal overflow */
  .stat-box{ flex:1 1 0; min-width:0; }
  .match-row .team{ min-width: 0; }
}

/* Brand */
.lb-brand-logo{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.45));}

/* Scoreboard (overlay style) */
.lb-scoreboard-overlay{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(196,22,28,.35), transparent 60%),
    radial-gradient(1000px 500px at 90% 30%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #070707 0%, #111 100%);
}

.lb-scoreboard{
  width:min(1000px, 100%);
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 30px 80px rgba(0,0,0,.65);
  background:linear-gradient(135deg, rgba(196,22,28,.18), rgba(0,0,0,.85));
}

.lb-scoreboard-top{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  background:rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.lb-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
  background:linear-gradient(135deg, rgba(196,22,28,1), rgba(143,15,19,1));
  color:#fff;
  font-size:.82rem;
}

.lb-scoreboard-main{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:18px;
  align-items:center;
  padding:26px 18px 18px;
}

.lb-team{
  display:flex;
  align-items:center;
  gap:14px;
}

.lb-team.right{justify-content:flex-end;text-align:right;}

.lb-team-logo{
  width:86px;
  height:86px;
  border-radius:22px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.12);
  object-fit:contain;
}

.lb-team-name{
  font-weight:900;
  font-size:1.6rem;
  text-transform:uppercase;
  letter-spacing:.8px;
}

.lb-center{
  text-align:center;
  padding:10px 18px;
  border-radius:20px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.12);
}

.lb-vs{font-weight:900;letter-spacing:1px;opacity:.9;}

.lb-score{
  font-weight:1000;
  font-size:3.4rem;
  line-height:1;
  letter-spacing:1px;
}

.lb-scoreboard-bottom{
  padding:14px 18px 18px;
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
}

@media (max-width: 720px){
  .lb-team-logo{width:64px;height:64px;border-radius:18px;}
  .lb-team-name{font-size:1.1rem;}
  .lb-score{font-size:2.4rem;}
  .lb-scoreboard-main{grid-template-columns:1fr;}
  .lb-team.right{justify-content:flex-start;text-align:left;}
}


/* Matchline (Index Hero) */
.lb-matchline{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.lb-matchteam{
  display:flex;
  align-items:center;
  gap:12px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding:10px 14px;
}
.lb-matchteam-right{
  justify-content:flex-end;
}
.lb-teamlogo{
  width:56px;
  height:56px;
  border-radius: 999px;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
}
.lb-teamlogo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lb-teamname{
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
  line-height:1.1;
}
.lb-vs{
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  padding:10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(196,22,28,.92), rgba(143,15,19,.92));
  border:1px solid rgba(255,255,255,.14);
}
@media (max-width: 575px){
  .lb-matchline{justify-content:center}
  .lb-teamname{font-size:.95rem}
  .lb-teamlogo{width:48px;height:48px}
}


/* V10: Public matches page */
.match-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.match-row .team{display:flex;align-items:center;gap:10px;min-width:220px}
.match-row .team-logo{width:34px;height:34px;object-fit:contain;border-radius:8px;background:rgba(255,255,255,0.06);padding:4px}
.match-row .team-name{font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.match-row .vs{opacity:.7;font-weight:900;letter-spacing:2px;text-transform:uppercase}

.lb-badge{background:rgba(196,22,28,.2);border:1px solid rgba(196,22,28,.45);color:#fff}
.stat-box{border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:14px 18px;min-width:90px;text-align:center;background:rgba(0,0,0,.25)}
.stat-num{font-size:28px;font-weight:900;line-height:1}
.stat-label{font-size:12px;opacity:.8;text-transform:uppercase;letter-spacing:1px;margin-top:6px}
.stat-win{border-color:rgba(46, 204, 113, .45)}
.stat-lose{border-color:rgba(231, 76, 60, .45)}
.stat-draw{border-color:rgba(241, 196, 15, .45)}

tr.res-win td{border-top:1px solid rgba(46,204,113,.15)}
tr.res-win{box-shadow:inset 4px 0 0 rgba(46,204,113,.8)}
tr.res-lose td{border-top:1px solid rgba(231,76,60,.15)}
tr.res-lose{box-shadow:inset 4px 0 0 rgba(231,76,60,.85)}
tr.res-draw td{border-top:1px solid rgba(241,196,15,.15)}
tr.res-draw{box-shadow:inset 4px 0 0 rgba(241,196,15,.85)}

.live-badge{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.45rem .75rem;
  margin:.75rem 0;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
  color:#fff;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
}

.live-badge strong{
  margin-left:.35rem;
  font-weight:900;
}

.live-badge .dot{
  width:.65rem;
  height:.65rem;
  border-radius:50%;
  background:#ff2a2a;
  box-shadow:0 0 0 0 rgba(255,42,42,.6);
  animation:livePulse 1.3s infinite;
}

@keyframes livePulse{
  0%{ box-shadow:0 0 0 0 rgba(255,42,42,.6); }
  70%{ box-shadow:0 0 0 12px rgba(255,42,42,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,42,42,0); }
}

