.CricketDetails {
  flex: 1;

  @media (max-width: 1024px) {
    width: 100%;
  }
}

.Container {
  display: flex;

  @media (max-width: 1024px) {
    flex-direction: column;
    width: 100%;
  }
}

.SectionB {
  width: 25.6rem;
  /* min-width: 26.5rem; */
  display: flex;
  flex-direction: column;

  @media (max-width: 1024px) {
    width: 100%;
    min-width: 100%;
  }
}

/* Stream Container Styles */
.streamContainer {
  width: 100%;
  margin: 0px 12px 4px 3px;
  background: #f5f5f5;
  /* border-radius: 4px; */
  overflow: hidden;

  @media (max-width: 1024px) {
    margin: 0 0 8px 0;
    border-radius: 2px;
  }
}

.tabContainer {
  display: flex;
  background: #2d2d2d;
}

.tab {
  flex: 1 1;
  padding: 4px 6px;
  background: #2c3e50;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: justify;
}

/* .tab:first-child {
  border-right: 1px solid #fff;
} */

/* .activeTab {
  background: linear-gradient(45deg, #0088cc, black) !important;
} */

/* Stream Wrapper */
.streamWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.4s ease;
  background: #000;
}

.streamWrapper.fullHeight {
  height: 32.5vh;

  @media (max-width: 1024px) {
    height: 30vh;
    z-index: 1;
  }
}

.streamWrapper.collapsed {
  height: 6.75rem;
}

.streamWrapper.expanded {
  height: 18.5rem;
}

.toggleButton {
  position: absolute;
  bottom: 4px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;


  @media (max-width: 1024px) {
    font-size: 10px;
    padding: 2px 6px;
    z-index: 100000;
  }
}

.scoreArea {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.scoreCardContent {
  width: 100%;
  height: 100%;
}

.connectingText {
  color: #ff4444;
  font-size: 14px;
  font-weight: 500;
  padding: 5rem;
  text-align: center;

  @media (max-width: 1024px) {
    font-size: 12px;
    padding: 2rem;
  }
}

/* Legacy TV styles - kept for backward compatibility if needed */
.Tv {
  background-color: #000;
  height: 32.5vh;
  margin: 0px 12px 4px 3px;
  overflow: hidden;
  width: 100%;

  @media (max-width: 1024px) {
    display: block;
    width: 100%;
    height: 30vh;
    margin: 0;
  }
}

.placeBet {
  /* Default styles for PC view */
  position: static;
  /* width: 25rem; */
  z-index: auto;
  display: none;
  /* Hidden by default */
}

.placeBet.visible {
  display: block;
  /* Show when visible class is present */
}

@media (max-width: 600px) {
  .placeBet {
    display: none;
  }

  .placeBet.visible {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .tab {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .tab {
    font-size: 11px;
    padding: 6px 8px;
  }
}

.infoHeader {
  display: flex;
  align-items: center;
  padding: 2px;
  background: #fff;
  /* border-bottom: 1px solid #eee; */
  margin: 0px 4px 7px -1px;
}

.infoIcon {
  color: #000;
  margin-right: 8px;
  font-size: 20px !important;
}

@keyframes blinktext {
  0% {
    opacity: 1;
    color: rgb(255, 189, 0);
  }

  50% {
    opacity: 1;
    color: rgb(255, 7, 0);
  }

  100% {
    opacity: 1;
    color: rgb(255, 189, 0);
  }
}

.infoText {

  width: calc(100% - 30px);
  animation: blinktext normal 1s infinite ease-in-out;
  text-decoration: underline;
  line-height: 1.5;
  font-size: 18px;
  font-weight: 400;
}

.loadingOverlay {
  position: fixed;
  inset: 0;
  /* top/right/bottom/left = 0 */
  /* background: rgba(255, 255, 255, 0.95); */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Centering wrapper */
.loaderWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Rotating animation for the SVG loader */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rotatingLoader {
  width: 24px;
  /* adjust size as you like */
  height: 24px;
  animation: spin 1.2s linear infinite;
}

/* Optional loading text */
.loadingText {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* Mobile Tab Bar Styles */
.mobileTabBar {
  display: flex;
  background-color: #0088cc;
  /* Vibrant blue */
  /* margin-bottom: 8px; */
  align-items: stretch;
}

.mobileTab {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-weight: 700;
  padding: 12px 8px;
  text-transform: uppercase;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-top: 4px solid transparent;
  /* Reserve space for active border at TOP */
}

/* Vertical Separator */
.mobileTab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.6);
}

.mobileTabActive {
  border-top: 2px solid #e0e0e0cb;
  /* Thin grey bar at TOP */
}

.tvTab {
  /* width: 50px; Removed fixed width to make it equidistant */
  flex: 1;
}

.mobileMatchTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 6px 8px;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
}

.mobileMatchName {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}

.mobileMatchTime {
  font-size: 15px;
  font-weight: bold;
}

/* Forced Mobile Place Bet Wrapper - applied via JS state */
.mobilePlaceBetWrapper.visible {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 2000 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 760px) {
 .mobileMatchTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 3px 8px;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
}

 .mobileMatchName {
  font-size: 12px;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}

 .mobileMatchTime {
  font-size: 12px;
  font-weight: bold;
}
}