/* Livescore Search: icon on left, clear button on text */
.timeline-container-wrapper{
   max-height: 1500px;
   overflow-y: auto; 
   scrollbar-width: thin;
   scrollbar-color: var(--cl-primary-bg-color) var(--cl-primary-border-color);
}
.livescore-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}
.livescore-search input[type="search"],
.livescore-search input[type="text"] {
  width: 100%;
  background: var(--cl-secondary-bg-color, #22272d);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  color: var(--cl-primary-text-color, #fff);
  border-radius: 20px;
  height: 38px;
  padding: 8px 36px 8px 36px; /* space for left icon and right clear */
  outline: none;
}
.livescore-search input[type="search"]:focus,
.livescore-search input[type="text"]:focus {
  outline: none;
  box-shadow: none;
}
.livescore-search input::placeholder {
  color: var(--cl-group-text-muted, #9aa3ac);
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
}
.livescore-search .search-icon {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--cl-group-text-muted, #9aa3ac);
  pointer-events: none;
}
.livescore-search .search-icon svg,
.livescore-search .search-icon svg * {
  stroke: currentColor;
}
.livescore-search .clear-btn {
  position: absolute;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--cl-group-text-muted, #9aa3ac);
  cursor: pointer;
}
/* Removed hover effects for clear button in livescore search */
/* Removed dynamic show-on-text behavior for livescore clear button */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Sports Nav */
.sports-nav {
  display: flex;
  gap: 8px;
  padding: 24px 20px 4px 20px;
  background: var(--cl-primary-bg-color, #1a1b1f);
  overflow-x: auto;
}
.sports-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  gap: 6px;
  color: #FFFFFF99;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 11px;
  line-height: 140%;
  letter-spacing: 0;
  padding: 10px 16px;
  border-radius: 20px;
  background: #22272d;
  white-space: nowrap;
  text-decoration: none;
}
.sports-nav a.active {
  background: #3a3f47;
  color: #fff;
}
.livescore-nav-icon-home{
  border-radius: 55%!important;
  
  padding: 10px 10px!important;
  background: var(--cl-primary-bg-color, #22272d)!important;
  border: 1px solid var(--cl-primary-border-color, #2a2f36)!important;
}
/* Force active nav SVG icons to white */
.sports-nav a.active svg *,
.sports-nav a.active svg {
  stroke: #ffffff;
  opacity: 1;
  stroke-opacity: 1;
  fill-opacity: 1;
}

/* Ensure link states keep no underline */
.sports-nav a:hover,
.sports-nav a:focus {
  text-decoration: none;
}

/* Left Content */
.main-content {
  flex: 3;
}
.livescore-header {
  height: 129px;
  margin: 20px 0;
  padding: 62px 0px;
  background-image: url('../img/livescore-head.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--cl-primary-text-color, #fff);
}
.livescore-header h1 {
  font-family: Inter;
  font-weight: 800;
  font-style: Extra Bold;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0%;
}
/* Match Cards */
.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin: 20px 0;
  max-height: 194px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cl-primary-bg-color) var(--cl-primary-border-color);
}
.match-card {
  background-color: var(--cl-primary-bg-color);
  border-radius: var(--cl-primary-border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--cl-input-bg-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 167px;
  transform: rotate(0deg);
  opacity: 1;
  padding:0px;
}
.match-info {
  width: 100%;
  opacity: 1;
  gap: 6px;
  padding-right: 16px;
  padding-left: 16px;
  background-color: var(--cl-primary-bg-color);
  justify-content: space-between;
  align-items: left;
}
.match-card .league-info {
  display: flex;
  width: 100%;
  height: 36px;
  padding: 8px 16px;
  transform: rotate(0deg);
  opacity: 1;
  font-weight: 300;
  font-size: 13px;
  line-height: 140%;
  gap: 10px!important;
  color:var(--cl-primary-text-color, #fff);
  background-color: var(--cl-secondary-bg-color);
  border-bottom: 1px solid var(--cl-secondary-bg-color);
}
.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.livescore-team-name {
  height: 20px;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  color: var(--cl-primary-text-color, #fff);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-display {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  gap: 5px;
}
.match-actions {
  width: 100%;
  height: 44px;
  justify-content: space-between;
  opacity: 1;
  border-top: 1px solid var(--cl-primary-border-color);
  padding: 12px 16px;
  font-family: Inter;
  font-weight: 700;
  font-size: 14px;
  line-height: 140%;
  display: flex;
  align-items: center;
}

.match-actions > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Filters */
.livescore-match-filters {
  width: 100%;
  /* height: 68px; */
  justify-content: space-between;
  opacity: 1;
  padding: 15px 16px;
  display: flex;
}
.livescore-filter-tabs {
  display: flex;
  gap: 10px;
}
.livescore-filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  gap: 10px;
  width: 100%;
  height: 38px;
  background: #1a1e23;  
  color: var(--cl-primary-text-color, #fff);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  padding: 10px 16px;
  border-radius: 40px;
  transform: rotate(0deg);
  opacity: 1;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}
.livescore-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
  transform: rotate(0deg);
  opacity: 1;
  gap: 10px; /* inner content gap if any */
  border-radius: 20px;
  padding: 10px;
  box-sizing: border-box;
  background: var(--cl-secondary-bg-color, #22272d);
  color: var(--cl-secondary-text-color, #aaa);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}
.livescore-filter-tab svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.livescore-filter-tab svg, .livescore-filter-tab svg * {
  opacity: 1;
  stroke-opacity: 1;
  fill-opacity: 1;
  stroke: currentColor;
}
.livescore-filter-tab.active {
  background: #3a3f47;
}
.livescore-filter-tab.active::after {
  background-color:none!important;
}
.livescore-date-nav {
  display: flex;
  overflow-x: auto;
}
/* Calendar trigger button inside the date nav */
.livescore-date-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 20px;
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  background: transparent;
  color: var(--cl-primary-text-color, #fff);
  cursor: pointer;
  outline: none;
  user-select: none;
}
.livescore-date-calendar:hover {
  background: var(--cl-secondary-bg-color, #22272d);
}
.livescore-date-calendar:active {
  background: var(--cl-secondary-bg-color, #22272d);
  transform: translateY(1px);
}
.livescore-date-calendar svg,
.livescore-date-calendar svg * {
  stroke: currentColor;
  opacity: 1;
  stroke-opacity: 1;
  fill-opacity: 1;
}
/* Hide the backing native input but keep it accessible */
.livescore-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 30px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}
.livescore-date-item {
  text-align: center;
  padding: 0px 12px;
  border-radius: 6px;
  color: var(--cl-group-text-muted);
  font-size: 12px;
  flex: 0 0 auto;
  cursor: pointer;
}
.livescore-date-item.active {
  color: var(--cl-primary-text-color, #fff);
}

/* Live Matches */
.live-matches {
  background: var(--cl-primary-bg-color, #1a1e23);
  border-radius: 10px;
}
#livescoreMatches {
  max-height: 1000px;
  overflow-y: scroll;  
  scrollbar-width: thin;
  scrollbar-color: var(--cl-primary-bg-color) var(--cl-primary-border-color);
}

/* Competition Header */
.competition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: var(--cl-secondary-bg-color, #22272d);
  border-bottom: 1px solid var(--cl-primary-border-color, #2a2f36);
}

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

.competition-header-left img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.competition-header-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--cl-primary-text-color, #fff);
  text-transform: uppercase;
}

.competition-header-right {
  display: flex;
  align-items: center;
}

.competition-header-menu {
  background: transparent;
  border: none;
  color: var(--cl-primary-text-color, #fff);
  cursor: pointer;
  padding: 5px;
}

/* Match Row */
.live-match-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 24px;
  column-gap: 12px;
  align-items: center;
  padding: 8px 15px;
  border-bottom: 1px solid var(--cl-primary-border-color, #2a2f36);
}

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

.livescore-match-time {
  height: 20px;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  color: var(--cl-primary-text-color, #9aa3ac);
}

.match-teams {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--cl-secondary-bg-color, #22272d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--cl-primary-text-color, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.team-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--cl-primary-text-color, #fff);
  min-width: 15px;
  text-align: center;
}

.match-star {
  color: var(--cl-group-text-muted, #9aa3ac);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-star svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.match-star.active svg {
  fill: var(--cl-primary-color, #1d9bf0);
  stroke: var(--cl-primary-color, #1d9bf0);
  opacity: 1;
}

.live-match-row:hover .match-star svg {
  opacity: 1;
  transform: scale(1.05);
}

/* Sidebar */
.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-section {
  background: var(--cl-primary-bg-color);
  padding: 5px 15px;
  border-radius: 10px 0px 0px 0px;
  border-bottom: 1px solid var(--cl-primary-border-color);
}
.sidebar-section h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ddd;
}
/* Collapsible sidebar (FAQ-style) */
.sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--cl-primary-text-color, #fff);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
}
.sidebar-toggle svg:last-child {
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.sidebar-toggle[aria-expanded="true"] svg:last-child {
  transform: rotate(90deg);
}
.sidebar-collapse {
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.25s ease;
}
.sidebar-toggle[aria-expanded="true"] + .sidebar-collapse {
  max-height: 242px; /* large enough to fit content; adjust if needed */
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;    /* Firefox */
}
.sidebar-toggle[aria-expanded="true"] + .sidebar-collapse::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.sidebar-collapse .sidebar-item {
  width: 318px;
  /* auto height for two-line layout */
  transform: rotate(0deg);
  opacity: 1;
  gap: 10px;
  border-radius: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-bottom: none;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  align-items: flex-start;
}
.sidebar-collapse .sidebar-item:last-child {
  border-bottom: none;
}
.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: #282A31;
  border: 1px solid var(--cl-primary-border-color);
  font-size: 13px;
  border-radius: 6px;
}
.sidebar-item .sidebar-flag{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 20px;
}
.sidebar-item .sidebar-item-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sidebar-item .sidebar-item-title{
  font-weight: 600;
  color: var(--cl-primary-text-color, #fff);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-item .sidebar-item-sub{
  margin-top: 2px;
  font-weight: 400;
  font-size: 12px;
  color: var(--cl-group-text-muted, #9aa3ac);
}
/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}
.search-box input {
  flex: 0 0 auto;
  width: 253px;
  height: 33px;
  background: transparent;
  border: none;
  padding: 8px 12px;
  transform: rotate(0deg);
  opacity: 1;
  color:var(--cl-primary-text-color, #fff);
}
.search-box input:focus {
  outline: none;
  box-shadow: none;
}
.search-box input::placeholder {
  color: var(--cl-group-text-muted, #9aa3ac);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
}
/* Cross-browser placeholder support for sidebar search */
.search-box input::-webkit-input-placeholder {
  color: var(--cl-group-text-muted, #9aa3ac);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
}
.search-box input::-moz-placeholder {
  color: var(--cl-group-text-muted, #9aa3ac);
  opacity: 1;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
}
.search-box input:-ms-input-placeholder {
  color: var(--cl-group-text-muted, #9aa3ac);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
}
.search-box input::-ms-input-placeholder {
  color: var(--cl-group-text-muted, #9aa3ac);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
}
.search-box button:focus {
  outline: none;
  box-shadow: none;
}
.search-box button {
  background: transparent;
  border: none;
  color:var(--cl-primary-text-color, #fff);
  cursor: pointer;
}

/* Footer */
.footer {
  margin-top: 30px;
  padding: 15px 0;
  border-top: 1px solid #2a2f36;
  font-size: 12px;
  color: #888;
}

/* Responsive */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    order: 2;
  }
  .main-content {
    order: 1;
  }
}

/* Odds Badge */
.livescore-odds {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color:var(--cl-primary-text-color, #fff);
  float: right;
}

/* Match Time */
.livescore-main{
  margin: 20px;
}
/* Live section layout: show sidebar only near live matches */
.timeline-container[data-app="livescore"] .livescore-main {
  padding-left: var(--cl-primary-offset-size, 15px);
  padding-right: var(--cl-primary-offset-size, 15px);
}

.timeline-container[data-app="livescore"] .live-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.live-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0px !important;
  border: 1px solid var(--cl-primary-border-color);
  border-radius: var(--cl-primary-border-radius);
}
.live-aside-content{
  border: 1px solid var(--cl-primary-border-color);
  border-radius: 10px;
}
.timeline-container[data-app="livescore"] .live-aside {
  flex: 0 0 320px;
  max-width: 320px;
}

@media (max-width: 1200px) {
  .timeline-container[data-app="livescore"] .live-aside { flex-basis: 280px; max-width: 280px; }
}

@media (max-width: 992px) {
  .timeline-container[data-app="livescore"] .live-section { flex-direction: column; }
  .timeline-container[data-app="livescore"] .live-aside { flex: 0 0 auto; max-width: 100%; }
}

/* Polishing: league header count badge */
.timeline-container[data-app="livescore"] .live-matches .league-header > div:last-child {
  background: var(--cl-secondary-bg-color, #22272d);
  color: var(--cl-secondary-text-color, #aaa);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
}

/* Live row: grid columns (time | home | away | star) */
.timeline-container[data-app="livescore"] .live-matches .live-match-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 24px;
  column-gap: 12px;
  align-items: center;
}
.timeline-container[data-app="livescore"] .live-matches .live-match-row .match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.timeline-container[data-app="livescore"] .live-matches .live-match-row .match-teams > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.timeline-container[data-app="livescore"] .live-matches .live-match-row .match-star svg {
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.timeline-container[data-app="livescore"] .live-matches .live-match-row:hover .match-star svg {
  opacity: 1;
  transform: scale(1.05);
}

/* Sidebar spacing inside the live section */
.timeline-container[data-app="livescore"] .live-aside .sidebar-section + .sidebar-section {
  margin-top: 16px;
}
.livescore-match-date{
  color: var(--cl-group-text-muted);
  font-weight: 400;
  font-size: 11px;
  height: 20px;
}
/* Small screens: stack live rows for readability */
@media (max-width: 576px) {
  .timeline-container[data-app="livescore"] .live-matches .live-match-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .timeline-container[data-app="livescore"] .live-matches .live-match-row .livescore-match-date {
    width: auto;
    order: -1;
    font-weight: 600;
  }
  .timeline-container[data-app="livescore"] .live-matches .live-match-row .match-star {
    align-self: flex-end;
  }
}

/* Sticky sidebar inside the live section */
.timeline-container[data-app="livescore"] .live-aside {
  position: sticky;
  top: var(--cl-primary-offset-size, 15px);
}

/* Icon sizing inside league-info and sidebar items */
.timeline-container[data-app="livescore"] .league-info svg,
.timeline-container[data-app="livescore"] .sidebar-item svg {
  width: 14px;
  height: 14px;
}

/* Score emphasis inside live match team columns */
.timeline-container[data-app="livescore"] .live-matches .live-match-row .match-teams > div:last-child {
  font-weight: 700;
  color: var(--cl-primary-text-color, #fff);
}

/* Spacing tweaks */
.timeline-container[data-app="livescore"] .live-matches { margin-top: 16px; }
.timeline-container[data-app="livescore"] .livescore-header { margin-bottom: 12px; }
    /* Container */
    .livescore-container {
      width: 100%;
      background: var(--cl-primary-bg-color, #1b1b1b);
      overflow: hidden;
    }

/* Match Header (within livescore-container) */
.livescore-header-match {
  background: #0E0E0F;
  padding: 10px 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #848E9C;
  border-bottom: 1px solid var(--cl-primary-border-color, #333);
}
.sidebar-section-header{
  margin-left: 0;
  color: var(--cl-primary-text-color, #d0d4da);
  font-weight: 700;
}

/* Header icon and menu */
.ls-comp-icon{ display:inline-flex; color: var(--cl-group-text-muted, #9aa3ac); }
.ls-comp-icon svg{ width:16px; height:16px; display:block; }
.ls-header-menu{ margin-left:auto; display:inline-flex; color: var(--cl-secondary-text-color, #aaa); }
.ls-header-menu svg{ width:15px; height:16px; display:block; }

/* Match item */
.livescore-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--cl-primary-border-color, #333);
}

.livescore-time {
  font-size: 13px;
  color: var(--cl-group-text-muted, #9aa3ac);
  width: 50px;
}

.livescore-teams {
  flex: 1;
}

.livescore-team {
  display: flex;
  align-items: center;
  margin: 2px 0;
  cursor: pointer;
  gap: 5px;
}

.livescore-team img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.livescore-score {
  font-size: 14px;
  font-weight: bold;
  text-align: right;
  min-width: 20px;
}

.livescore-star {
  font-size: 18px;
  cursor: pointer;
  margin-left: 45px;
  color: var(--cl-secondary-text-color, #666);
}

.livescore-star.active {
  color: var(--cl-accent-color, #1e90ff); /* theme accent with fallback */
}

/* Bookmarked state: solid star uses primary theme color */
.livescore-star svg.icon__star {
  fill: var(--cl-primary-color);
  stroke: var(--cl-primary-color);
}

/* Unbookmarked state: outline star inherits current text color */
.livescore-star svg.icon__star_border {
  fill: transparent;
  stroke: currentColor;
}

/* Responsive */
@media (max-width: 480px) {
  .livescore-header-match {
    font-size: 12px;
  }
  .livescore-match {
    flex-direction: column;
    align-items: flex-start;
  }
  .livescore-time {
    margin-bottom: 5px;
  }
  .livescore-score {
    margin-top: 5px;
  }
}

/* Footer */
.livescore-footer {
  margin: 20px 0;
  background: var(--cl-primary-bg-color);
  border: 1px solid var(--cl-primary-border-color);
  border-radius: 10px;  
}

.livescore-footer-title{
  background: var(--cl-secondary-bg-color);
  padding: 15px 15px 7px 15px;
}


.livescore-footer-title h3 {
  color: var(--cl-group-text-muted);
  font-weight: 700;
  font-size: 15px;
  line-height: 140%;
}
.livescore-footer-content{
  padding: 15px 15px 0px 15px;  
  max-height: 320px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--cl-primary-bg-color) var(--cl-primary-border-color);
}
.livescore-footer-content-title{
  font-weight: 400;
  font-size: 13px;
  line-height: 140%;
  color: var(--cl-group-text-muted);
  margin-bottom: 10px;
}
.livescore-footer-content-text{
  font-weight: 400;
  font-size: 13px;
  line-height: 140%;
  color: var(--cl-primary-text-color);  
  letter-spacing: 0%;
}

/* Team Detail */
.team-detail-container {
  width: 100%;
  margin: auto;
  background: var(--cl-primary-bg-color, #1a1e23);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  overflow: hidden;
}

/* Header */
.team-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid var(--cl-primary-border-color, #2a2f36);
  background: var(--cl-secondary-bg-color, #22272d);
}

/* Jersey number circular badge */
.jersey-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #848E9C;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.team-detail-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--cl-primary-text-color, #fff);
}

.team-detail-country {
  font-size: 12px;
  color: var(--cl-group-text-muted, #9aa3ac);
  font-weight: 400;
}

/* Nav */
.team-detail-nav {
  display: flex;
  margin: 0;
  border-bottom: 1px solid var(--cl-primary-border-color, #2a2f36);
  background: var(--cl-primary-bg-color, #1a1e23);
}

.team-detail-nav a {
  color: var(--cl-group-text-muted, #9aa3ac);
  text-decoration: none;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  width: 250px;
  position: relative;
}

.team-detail-nav a.active {
  color: var(--cl-primary-text-color, #fff);
}

.team-detail-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cl-primary-text-color, #fff);
  border-radius: 3px 3px 0 0;
}

/* Sections */
.team-detail-section {
  margin: 0;
  padding: 0px 15px;
  
}

.team-detail-title {
  font-size: 15px;
  margin: 19px 0px;
  color: var(--cl-primary-text-color, #fff);
  font-weight: 700;
}

/* Match Info */
.team-detail-match {
  background: var(--cl-primary-bg-color, #1a1e23);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--cl-primary-border-color, #2a2f36);
}

.team-detail-league {
  font-size: 12px;
  color: var(--cl-group-text-muted, #9aa3ac);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.team-detail-match-info {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 24px;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
}

.team-detail-match-time {
  font-size: 13px;
  color: var(--cl-group-text-muted, #9aa3ac);
}

.team-detail-match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.team-detail-match-teams > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-detail-match-teams > div:last-child {
  font-weight: 700;
  color: var(--cl-primary-text-color, #fff);
}

.team-detail-match-star {
  color: var(--cl-group-text-muted, #9aa3ac);
  cursor: pointer;
}

.team-detail-match-star svg {
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.team-detail-match:hover .team-detail-match-star svg {
  opacity: 1;
  transform: scale(1.05);
}

/* Table */
.team-detail-table-scroll{
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Themed scrollbars (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--cl-primary-bg-color) var(--cl-primary-border-color);
  
}
.team-detail-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
}

.team-detail-table th,
.team-detail-table td {
  padding: 12px;
  text-align: left;
}
.team-detail-table th {
  font-weight: 600;
  color: var(--cl-group-text-muted, #9aa3ac);
}

/* Zebra striping: even rows */
.team-detail-table tbody tr:nth-child(odd) td {
  background: var(--cl-secondary-bg-color, #22272d);
  margin-right: 6px;
  vertical-align: middle;
}

/* Results */
.team-detail-result {
  background: #1e1e1e;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.team-detail-score {
  margin-top: 5px;
  font-size: 13px;
}

.team-detail-more {
  display: block;
  text-align: center;
  margin: 15px;
  font-size: 15px;
  text-decoration: none;
}

/* Footer */
.team-detail-footer {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 6px;
  font-size: 13px;
  color: #aaa;
}

.team-detail-footer h4 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 14px;
}
.team-detail-nav-link{
  width: 162px;
  text-align: center;
}

.team-detail-match-league{
  display: flex;
  color: var(--cl-group-text-muted, #9aa3ac);
  width: 100%;
  height: 38px;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  opacity: 1;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  background: #000;
}

.team-detail-header-section{
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.live-aside div.right-sb-container div.sidebar__inner{
padding: 0px !important;
}

.player-detail-table{
  width: 100%;
}
.player-detail-table tr{
  border-top: 1px solid var(--cl-primary-border-color, #2a2f36);
  border-bottom: 1px solid var(--cl-primary-border-color, #2a2f36);
  height: 40px;
  justify-content: space-between;
  opacity: 1;
  padding-top: 11px;
  padding-right: 16px;
  padding-bottom: 11px;
  padding-left: 16px;

}

.player-details-lable{
  color: var(--cl-group-text-muted, #9aa3ac)!important;
}
.player-details-value{
  color: var(--cl-primary-color);
}

/* Center the segmented control and refine visuals */
.ls-controls-right {
  width: 100%;
  display: flex;
  justify-content: center;
}
.match-segmented .seg-btn {
  text-align: center;
}

.match-segmented .seg-btn + .seg-btn {
  /* subtle divider when not active */
  position: relative;
}
.match-segmented .seg-btn + .seg-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: #2e3036;
  pointer-events: none;
}

.match-segmented .seg-btn.active {
  background: #2b2d33;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), inset 0 0 0 1px rgba(0,0,0,0.25);
}
.match-segmented {
  width: 100%;
  margin: 0px 15px;
  display: inline-flex;
  background: #1a1b1f;
  border: 1px solid #2a2b30;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.match-segmented .seg-btn {
  width: 50%;
  background: transparent;
  border: 0;
  color: #a9a9a9;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  border-radius: 999px;
}

.match-segmented .seg-btn:hover {
  color: #e6e6e6;
}
.match-ls-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--cl-primary-bg-color, #1a1b1f);
  color: var(--cl-primary-text-color, #e6e6e6);
  border: none;
  padding: 10px 40px 10px 14px;
  border-radius: 10px;
  max-width: max-content;
  /* Typography per spec */
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;          /* “Bold” -> CSS uses normal/bold; with weight 700 set */
  font-size: 15px;
  line-height: 1.4;            /* 140% */
  letter-spacing: 0;

  /* Replace this with your SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cpath d='M8.4987 11.4284L12.2513 7.67578H4.74609L8.4987 11.4284Z' fill='white' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px 17px; /* match your SVG box */
}
/* Remove focus border/halo */
  .match-ls-select:focus,
  .match-ls-select:focus-visible,
  .match-ls-select:active {
    outline: none;
    box-shadow: none;
    border: none; /* keep border removed on focus as well */
  }
  
  /* Standings controls layout (tabs + right Form button) */
  .ls-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 12px 0;
  }
  .ls-controls-left { flex: 0 0 auto; }
  .ls-controls-center {
    max-width: 350px;
    height: 34px;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
  }
  .ls-controls-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
  }

  /* Right "Form" button */
  .ls-form-btn {
    background: #1a1b1f;
    color: #e6e6e6;
    border: 1px solid #2a2b30;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
  }
  .ls-form-btn:hover { background: #22242a; }
  .Is-controls-filter{
    margin: 0px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

/* ================= Time Dropdown (BY TIME) ================= */
#ls-time-dropdown,
.livescore-time-dropdown {
  background: var(--cl-primary-bg-color, #1a1e23);
  color: var(--cl-primary-text-color, #fff);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  border-radius: 0 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.livescore-time-option {
  padding: 8px 12px;
  border-radius: 0 !important;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.livescore-time-option:hover,
.livescore-time-option[aria-selected="true"] {
  background: var(--cl-secondary-bg-color, #22272d);
}

/* Scrollbar theming */
#ls-time-dropdown { 
  scrollbar-width: thin; 
  scrollbar-color: rgba(255,255,255,0.25) transparent; 
}
#ls-time-dropdown::-webkit-scrollbar { width: 8px; height: 8px; }
#ls-time-dropdown::-webkit-scrollbar-track { background: transparent; }
#ls-time-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.20);
  border-radius: 8px;
  border: 2px solid transparent; /* for padding effect */
  background-clip: padding-box;
}
#ls-time-dropdown:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.32); }

.livescore-star svg.icon__star {
  fill: var(--cl-primary-color);
  stroke: var(--cl-primary-color);
}

.livescore-star svg.icon__star_border {
  fill: none;
  stroke: currentColor;
}


.sidebar-toggle span{
  font-family: Inter;
  font-weight: 400;
  font-size: 11px;
  line-height: 140%;
  color: var(--cl-primary-text-color);
}

/* Count badge inside filter tab (e.g., LIVE) */
.livescore-filter-tab .livescore-filter-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 16px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  top: -9px;
  right: -9px;
  position: absolute;
}

/* Keep good contrast when the tab is active */
.livescore-filter-tab.active .livescore-filter-tab-count {
  background: var(--cl-secondary-bg-color, #22272d);
  color: var(--cl-primary-text-color, #fff);
}

/* Livescore game count badge */
.ls-nav-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  position: absolute;
  top: -9px;
  right: -9px;
}

.sports-mega {
  display: none;
  position: relative;
  margin: 8px 20px 0 20px;
  background: var(--cl-primary-bg-color, #1a1e23);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  padding: 14px;
  z-index: 50;
}
.sports-mega.open { display: block; }

.sports-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
@media (min-width: 768px) { .sports-mega-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sports-mega-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sports-mega-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

.sports-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #22272d;
  color: var(--cl-primary-text-color, #fff);
  border: 1px solid var(--cl-primary-border-color, #2a2f36);
  text-decoration: none;
  position: relative;
  height: 44px;
  overflow: visible;
}
.sports-mega-item:hover { background: #2a2f36; }
.sports-mega-icon svg, .sports-mega-icon svg * { stroke: currentColor; opacity: 1; fill-opacity: 1; }
.sports-mega-icon img { width: 20px; height: 20px; display: block; }
.sports-mega-label { font-size: 12px; font-weight: 700; color: var(--cl-primary-text-color, #fff); }
.sports-mega-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  position: absolute;
  top: -9px;
  right: -9px;
}