:root {
  --bg-deep-charcoal: #121214;
  --bg-dark-panel: #1a1a1e;
  --bg-nav-dark: #232328;
  --bg-light-grey: #e8eaf0; /* Sidebar background */
  
  --text-primary: #e0e6ed;
  --text-secondary: #a4abbd;
  --text-sidebar: #333d47;
  
  --accent-teal: #0fe3e0;
  --accent-teal-soft: rgba(15, 227, 224, 0.15);
  
  --score-green: #37d67a;
  --live-red: #ff3e60;
  --tag-dark: #2c2c36;
  
  --border-subtle: #2d2d33;
  --shadow-subtle: 0 4px 12px rgba(0,0,0,0.4);
  
  --shimmer-bg: #e6e9f0; 
  --shimmer-move: #f0f2f7;

  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-deep-charcoal);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}


/* Main Header */
header {
  background-color: var(--bg-nav-dark);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Mobile Sidebar Trigger Toggle Button */
.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-speed);
}

.sidebar-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.logo-area {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.logo-area span {
  color: var(--live-red);
  font-size: 0.7rem;
  background-color: rgba(255, 62, 96, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.header-actions {
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}
.header-actions:hover { color: var(--accent-teal); }


.top-menu {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Main Content Area Layout */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Desktop Sidebar */
.sidebar {
  width: 280px;
  background-color: #101010;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #151515;
  color: var(--bg-light-grey);
  flex-shrink: 0;
  transition: transform var(--transition-speed) ease;
  z-index: 30;
}


.sidebar h3 { font-size: 1.1rem; color: var(--bg-light-grey);; margin-bottom: 20px;}
.sidebar-item {
  color: #989898;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 139, 139, .1);
  padding: 6px 0;
  width: 100%;
  display: block;
}

.sidebar-item:hover {
  background-color: #151515;
  color: #fafafa;
}
.sidebar-item.active {
  background-color: #151515;
  color: #fafafa;
}


/* Mobile Backdrop Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 25;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Live Match Content Panel */
.match-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: var(--bg-deep-charcoal);
  position: relative;
}


/* Live Match Panels UI */
.league-group { margin-bottom: 25px; }

.league-title {
  background-color: var(--bg-dark-panel);
  color: var(--accent-teal);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow-subtle);
}

.match-panel {
  background-color: var(--bg-dark-panel);
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}
.match-panel:last-child { border-radius: 0 0 8px 8px; }

.match-panel a { text-decoration: none; }

.match-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.match-team-row img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 15px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  background: #222;
}

.team-info { display: flex; align-items: center; }
.team-name { color: var(--text-primary); font-size: 1rem; font-weight: 500;}

.team-score {
  font-family: 'Courier New', Courier, monospace;
  color: var(--bg-light-grey);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 800;
  text-align: right;
  border: 1px solid #202020;
}

.match-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.badge {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-live { color: #fff; background-color: var(--live-red); letter-spacing: 1px; }
.badge-over { color: var(--text-primary); background-color: rgba(255, 255, 255, 0.05); }
.badge-status { color: var(--text-secondary); background-color: var(--tag-dark); font-weight: normal; }
.badge-none { color: #989898; }

/* --- RESPONSIVE & MOBILE DESIGN --- */

@media (max-width: 1024px) {
    .sidebar { width: 240px; }
}

@media (max-width: 768px) {
  /* Show Hamburger Menu Trigger */
  .sidebar-toggle-btn { display: block; }

  /* Off-Canvas Mobile Sidebar Overlay Setup */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .match-content { padding: 15px; }
  .sports-nav-item { padding: 12px 15px; }
}



.navbar {
  display: flex;
  align-items: center;
  background-color: #333;
  overflow: visible;
  padding: 0px;
  margin: 0px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  flex-grow: 1;
  padding: 0px;
  margin: 0px;
}

.menu-item { white-space: nowrap; }
.menu-item a, .dropdown-btn {
  display: block;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-item a:hover, .dropdown-btn:hover {
  background-color: #555;
  border-left: 1px solid #606060;
  border-right: 1px solid #606060;
}
.menu-item .active { background-color: #555; }

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #333;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 1000;
  list-style: none;
  min-width: 200px;
}

.dropdown.open .dropdown-menu { display: block; }
.hidden { display: none !important; }


/* Table */
.custom-table { background:transparent; color:rgba(139, 139, 139, .9); font-size:14px; }
.custom-table tr td { background:transparent; color:rgba(139, 139, 139, .9); border-bottom:1px solid rgba(139, 139, 139, .1);}
.custom-table tr th { background:transparent; color:rgba(139, 139, 139, .9); border-bottom:1px solid rgba(139, 139, 139, .1);}

/* Scorebox */
.score-box {
  background: #000000;
  border-radius:18px;
  color: #989898;
  font-size: 16px;
}
.score-box .border-down { border-bottom:1px solid rgba(139, 139, 139, .1); }
.score-box .team { 
  text-align: center;
  align-items: center;
  padding: 16px;
  font-weight: 800;
  width:33.33%;
  color: #989898;
}
.score-box  .score {
  font-size: 35px;
  text-align: center;
  align-items: center;
  width:33.33%;
  color: #dddddd;
  font-weight: 700;
}
.score-box .fs-14 {font-size: 14px; }
.score-box .batting { color:var(--accent-teal); }

/* Tooltip */
.custom-tooltip {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.custom-tooltip::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  background: #404040;
  color: var(--accent-teal);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  z-index: 999;
  border: 1px solid #454545;
  font-weight: 800;
}

/* Arrow */
.custom-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 118%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #404040;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}
.custom-tooltip:hover::after,
.custom-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}


.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  display: inline-block;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.title {
  color: var(--accent-teal);
  border-bottom: 1px solid rgba(139, 139, 139, .1);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin: 8px 4px;
  padding: 10px;
}

@media (max-width: 480px) {
    .sports-nav-item { padding: 10px 12px; font-size: 0.85rem; }
    .logo-area { font-size: 1rem; }
    .match-panel { padding: 15px; }
    .team-name { font-size: 0.9rem; }
    .team-score { font-size: 0.85rem; min-width: 55px;}
}



/* Match Highlight*/


.timeline-container {
  width: 100%;
  max-width: 800px;
  background: #303030;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Timeline Layout */
.timeline-body {
  position: relative;
  padding: 40px 0 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical Center Line */
.timeline-line {
  position: absolute;
  top: 40px;
  bottom: 60px;
  width: 2px;
  background-color: #1e88e5;
  z-index: 1;
}

/* Timeline Item (Row) */
.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

/* Circle in the middle */
.time-circle {
  width: 32px;
  height: 32px;
  background-color: #1e88e5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 13px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Cards (Event Popups) */
.timeline-item .card {
  background: #303030;
  border: 1px solid rgba(139, 139, 139, .2);
  border-radius: 4px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

/* Left & Right Card Positioning */
.timeline-item.left .card {
  margin-right: calc(50% + 28px);
  margin-left: auto;
}

.timeline-item.right .card {
  margin-left: calc(50% + 28px);
  margin-right: auto;
}

/* Card Speech-Bubble Pointer Arrows */
.card-left::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #303030;
}

.card-left::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #303030;
}

.card-right::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #303030 transparent transparent;
}

.card-right::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #303030 transparent transparent;
}

/* Content Inside Cards */
.timeline-item .d-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #dddddd;
}

.timeline-item.right .row { justify-content: flex-start; }
.timeline-item .player-name {  font-weight: 500; }

/* Icons & Badges */
.timeline-item .green-arrow { color: #2e7d32; font-weight: bold; }
.timeline-item .red-arrow { color: #d32f2f; font-weight: bold; }

.timeline-item .yellow-card {
  width: 10px;
  height: 14px;
  background-color: #fbc02d;
  border-radius: 1px;
  display: inline-block;
}

.timeline-item .red-card {
  width: 10px;
  height: 14px;
  background-color: #d32f2f;
  border-radius: 1px;
  display: inline-block;
}

/* Half Time Box */
.timeline-container .ht-badge {
  position: relative;
  z-index: 2;
  background-color: #303030;
  color: #dddddd;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 4px;
  margin: 12px 0 28px 0;
}

/* Bottom Timeline End */
.timeline-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -10px;
}

.timeline-bottom .dot {
  width: 6px;
  height: 6px;
  background-color: #1e88e5;
  border-radius: 50%;
  margin-bottom: 8px;
}

.timeline-bottom .clock-icon {
  color: #1e88e5;
  font-size: 16px;
}

.match-table { background:#151515; border:1px solid #202020; }
.match-row {
  display:grid;
  grid-template-columns:120px 1fr 100px 1fr 35px;
  align-items:center;
  min-height:42px;
  border-bottom:1px solid #202020;
  font-size:14px;
}
.match-row:last-child{ border-bottom:0; }

.match-row a { text-decoration: none; color: #989898; }
.match-row a:hover { color: #fafafa; }

.team-left{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  padding-right:15px;
}
.team-right{
  display:flex;
  align-items:center;
  gap:8px;
  padding-left:15px;
}
.team-name{
  color:#989898;
  text-decoration:none;
  font-weight:500;
}
.team-name:hover{ color:#fafafa; }

.score-box-card {
  background:#404040;
  color:#fafafa;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  height:100%;
  font-weight:700;
}

.mg-1 {margin: 1px; }
.events .btn { background: transparent;  color: #989898; border-radius: 0px; border:none; border-radius: 4px; }
.events .btn:hover { color: #ffffff; }
.events .active { color: #ffffff; border: 1px solid rgba(139, 139, 139, .4); border-bottom: 2px solid var(--accent-teal); }
.border { border: 1px solid rgba(139, 139, 139, .1) !important;}
.border-bottom { border-bottom: 1px solid rgba(139, 139, 139, .1) !important;}
.border-start { border-left: 1px solid rgba(139, 139, 139, .1) !important;}
.border-end { border-right: 1px solid rgba(139, 139, 139, .1) !important;}

.layout .border-bottom:last-child{ border-bottom: 0px !important; }

.table { background: transparent; width: 100%;}
.table tr th { background: transparent; color: rgba(139, 139, 139, .9); border-bottom: 1px solid rgba(139, 139, 139, .2);}
.table tr td { background: transparent; color: rgba(139, 139, 139, .9); border-bottom: 1px solid rgba(139, 139, 139, .2);}

.layout { background-color: #151515; color:#989898; font-size: 13px; width:100%; overflow: hidden;}
.layout a { color:#989898; text-decoration: none;}
.layout a:hover {color:#fafafa;}


.teams, .group { border-bottom: 1px solid rgba(139, 139, 139, .1); }
.teams .btn { background: transparent; margin: 2px 5px;  color: #989898; border: none; border-radius: 0px; }
.teams .btn:hover { color: #ffffff; }
.teams .active { color: #ffffff; border-bottom: 1px solid var(--accent-teal); }


.group .btn { background: transparent; margin: 8px 5px;  color: #989898; border: none; }
.group .btn:hover { color: #ffffff; }
.group .active { color: #ffffff; border-bottom: 1px solid var(--live-red); }


.time-box{ 
  border: 1px solid #101010;
  border-radius:5px;
  text-align:center; 
  font-size:20px; color:#989898; 
  font-weight:800;
  padding: 8px 10px;
  margin: 5px;
}
.secound { color:#fafafa; }
.tname { font-size:11px; color:#989898; font-weight:500; }

.over-no { font-size:22px; font-weight:700; }
.over-title { font-size:12px; }
.ball { 
  height: 25px;
  width: 25px;
  line-height: 23px;
  text-align: center;
  border: 1px solid rgba(139, 139, 139, .1);
  margin: 3px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

.b-0 { border: 1px solid #303030; }
.b-1 { background:#544028; color: #ffffff; }
.b-2 { background:#3e2f80; color: #ffffff; }
.b-4 { background:#173b98; color: #fafafa; }
.b-6 { background:#11530e; color: #ffffff; }
.b-W { background:#8b1118; color: #ffffff; }


.fs-12 { font-size: 12px;} 


.bracket-container {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  overflow-x: auto;
  padding: 20px;
}

.round-column {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 220px;
  position: relative;
}

.column-title {
  font-size: 13px;
  font-weight: bold;
  color: #989898;
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-group {
  position: relative;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.match-box {
  background: #202020;
  border: 1px solid #252525;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #353535;
  font-size: 13px;
}

.player-row:last-child {
  border-bottom: none;
}

.player-row .player-name {
  font-weight: 500;
  color: #989898;
}

.player-row .seed {
  color: #727272;
  font-size: 11px;
  margin-left: 4px;
}

.player-row .score {
  font-weight: bold;
  color: #ffffff;
  padding-left: 8px;
}

.player-row .empty-slot {
  min-height: 52px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed #252525;
}

.match-group::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  width: 15px;
  height: 2px;
  background-color: #252525;
  z-index: 1;
}

.round-column:last-child .match-group::after {
  display: none;
}

.round-column:not(:first-child) .match-group::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  width: 15px;
  height: 2px;
  background-color: #252525;
  z-index: 1;
}

.tree-pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
}

.tree-pair::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background-color: #252525;
  z-index: 1;
}
.no-after::after { display: none; }

.h1-text { font-size: 20px; color: #989898;}
.sub-text { font-size: 12px; color: #656565;}

.bracket-container::-webkit-scrollbar, .scroll-bar::-webkit-scrollbar, .sidebar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.bracket-container::-webkit-scrollbar-track, .scroll-bar::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track {
  background: #252525;
  border-radius: 10px;
}

.bracket-container::-webkit-scrollbar-thumb, .scroll-bar::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb  {
  background: #303030;
  border-radius: 10px;
}

.bracket-container::-webkit-scrollbar-thumb:hover, .scroll-bar::-webkit-scrollbar-thumb:hover, .sidebar::-webkit-scrollbar-thumb:hover {
  background: #303030;
}

.arrow { display: block; transition: transform 0.25s ease; float:right;}
.sidebar-item[aria-expanded="true"] .arrow { transform: rotate(180deg); }

.cats a { 
  color: #989898;
  text-decoration: none;
  padding: 5px 16px;
  border: 1px solid rgba(139, 139, 139, .1);
  margin: 4px;
  border-radius: 8px;
  box-shadow: inherit;
}
.cats a:hover { color: #fafafa; }

.cats a.lactive { background-color: #d32f2f; color: #fafafa; }
.cats a.factive { background-color: #fafafa; color: #000000; }
.cats a.uactive { background-color: #353535; color: #fafafa; }

.form-control {
  background: #202020; 
  color: #989898; 
  border: 1px solid rgba(139, 139, 139, .1); 
  border-radius: 4px; padding: 6px 10px;
}
.form-control::-webkit-calendar-picker-indicator { filter: invert(1); }

.skeleton {
  position:relative;
  overflow:hidden;
  background:#101010;
  border-radius:6px
} 

.skeleton:after {
  content:"";
  position:absolute;
  inset:0;
  left:-150%;
  width:150%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
  animation:loading 1.4s infinite
}

@keyframes loading {
  100% {left:150%}
}

.sk-box { width: 100%; height: 150px; }
.sk-line { width: 100%; height: 20px; }