.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: var(--color-bg-alt);
  /* border-radius: 4px; */
  overflow: hidden;

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

.tabContainer {
  display: flex;
  background: var(--bg-secondary);
}

.tab {
  flex: 1 1;
  padding: 4px 6px;
  background: var(--bg-secondary);
  color: var(--color-text-on-secondary);
  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: var(--color-black);
}

.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: var(--color-text-inverse);
  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: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

.connectingText {
  color: var(--color-text-danger);
  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: var(--color-black);
  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: none;
  /* 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: var(--color-bg-primary);
  /* border-bottom: 1px solid #eee; */
  margin: 0px 4px 7px -1px;
}

.infoIcon {
  color: var(--color-text-black);
  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: var(--color-text-main);
  font-weight: 500;
}

/* Mobile Tab Bar Styles */
.mobileTabBar {
  display: flex;
  background-color: var(--bg-primary);
  /* Vibrant blue */
  /* margin-bottom: 8px; */
  align-items: stretch;
}

.mobileTab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-inverse);
  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: var(--bg-secondary);
  padding: 6px 8px;
  color: var(--color-text-on-secondary);
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
}

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

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

/* Event Title Styles */
.eventTitle {
  background-color: #163439;
  color: #fff;
  position: relative;
  cursor: pointer;
  padding: 5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eventTitle > div:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.playIcon {
  width: 18px;
  float: left;
  margin-right: 5px;
  margin-top: 2px;
}

.mB0 {
  font-weight: bold;
  display: inline-block;
  width: 80%;
  font-size: 14px;
  padding-top: 4px;
  margin: 0;
}

.textRight {
  text-align: right;
}

/* Nav Tabs Styles */
.navTabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}

.navItem {
  flex: 1;
}

.navLink {
  display: block;
  padding: 15px 6px 13px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #5bafc0;
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  cursor: pointer;
}

.navLink:hover,
.navLink:focus {
  border-color: #e9ecef #e9ecef #dee2e6;
}

.navLink.active {
  background: transparent;
  border: 0;
  color: #fff;
  border-bottom: 1px solid #2c4f58;
}

/* Tab Content Styles */
.tabContent {
  width: 100%;
}

.tabPane {
  display: none;
}

.tabPane.active {
  display: block;
}

/* 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: var(--bg-secondary);
    padding: 3px 8px;
    color: var(--color-text-on-secondary);
    font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
  }

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

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