body {
  background: #0e0e10;
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* Live Chat Styles */

.timeline-livechat-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
}

.timeline-livechat-ls {
  width: 100%;
  display: block;
  padding: 0px;
}

.livechat-list-item {
  display: flex;
  align-items: center;
  padding: 14px 0px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  gap: 12px;
}

.livechat-list-item:last-child {
  margin-bottom: 0;
}

.livechat-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Avatar */
.avatar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.league-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #2a2b30;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Match details */
.livechat-list-item__data {
  flex: 1;
  margin-right: 12px;
  min-width: 0;
}

.livechat-data__info {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #a1a1a1;
}

.info-item__league {
  font-weight: 600;
  color: #d1d1d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-item__round {
  color: #8a8a8a;
  white-space: nowrap;
}

.livechat-data__name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 2px 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-time {
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 2px;
}

.info-item__league {
  position: relative;
  font-weight: 500;
  color: #d1d1d1;
  font-size: 13px;
  font-weight: 600;
}

.info-item__round {
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
}

.livechat-data__name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Viewers section */
.livechat-data__viewers {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  background-clip: padding-box;
  border: 1px solid transparent;
  background-image: linear-gradient(#15202b, #15202b), 
                    linear-gradient(90deg, #0C8FE6 0%, #9843FF 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Fallback for older browsers */
@supports not (background-clip: padding-box) {
  .livechat-data__viewers {
    position: relative;
    background: #1a1b1f;
    border: 1px solid transparent;
  }
  
  .livechat-data__viewers::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(90deg, #0C8FE6 0%, #9843FF 100%);
    z-index: -1;
  }
}

.livechat-data__right-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.8;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 50%;
}

.livechat-data__right-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.livechat-data__right-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

.livechat-list-item:hover .livechat-data__right-icon {
  opacity: 1;
  color: #fff;
}

.viewer-avatars {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.viewer-avatars img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #2a2b30;
  object-fit: cover;
  margin-left: -6px;
  transition: transform 0.2s ease;
}

.viewer-avatars img:first-child {
  margin-left: 0;
}

.viewer-count {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 8px;
}

.icon-open {
  color: #a1a1a1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.livechat-list-item:hover .icon-open {
  opacity: 1;
  color: #fff;
}

/* Responsive styles */
@media (max-width: 480px) {
  .livechat-list-item {
    padding: 12px;
  }
  
  .livechat-data__info {
    font-size: 12px;
  }
  
  .livechat-data__name {
    font-size: 14px;
  }
  
  .livechat-data__viewers {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .viewer-avatars img {
    width: 18px;
    height: 18px;
  }
}

/* Hover effects */

.livechat-list-item:hover .viewer-avatars img {
  transform: translateY(-1px);
}

/* Filter and Sort Select Dropdowns */
.game-filter select,
.sorting-options select {
  background-color: transparent;
  color:var(--cl-primary-text-color);
  border: 1px solid var(--cl-primary-border-color);
  border-radius: 6px;
  padding: 8px 8px 8px 16px;
  font-family: 'Inter', sans-serif; 
  font-size: 14px;
}

.game-filter select option,
.sorting-options select option {
  background: var(--cl-primary-bg-color);
  color:var(--cl-primary-text-color);
}

/* ===============================
   Livescore: Matches Controls UI
   (All Competitions dropdown + Fixtures/Results segmented)
   =============================== */

.ls-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 15px 18px;
}

.ls-controls-left,
.ls-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Accessible helper for hidden labels */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* All Competitions dropdown */
.ls-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #1a1b1f;
  color: var(--cl-primary-text-color, #e6e6e6);
  border: none;
  padding: 10px 40px 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A1A1A1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.ls-select:focus {
  outline: none;
  border-color: #3a3b41;
  box-shadow: 0 0 0 2px rgba(56, 132, 255, 0.15);
}

/* Segmented control */
.segmented {
  width: 100%;
  margin: 0px 15px;
  display: inline-flex;
  background: #1a1b1f;
  border: 1px solid #2a2b30;
  border-radius: 999px;
  overflow: hidden;
}

.segmented .seg-btn {
  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;
}

.segmented .seg-btn:hover {
  color: #e6e6e6;
}

.segmented .seg-btn.active {
  background: #2b2d33;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ls-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .ls-controls-right {
    justify-content: center;
  }
}

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

.match-segmented {
  margin: 0px 15px;
  padding: 2px;
  background: #17181c; /* slightly different from page bg for pill */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.segmented .seg-btn {
  border-radius: 999px;
  min-width: 350px; /* balanced width like screenshot */
  text-align: center;
}

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

.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);
}
