* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  color: #fff;
  line-height: 1.5;
  height: 100svh;
  overflow-y: hidden;
  /* Add hardware acceleration for smoother animations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.container {
  padding: 8px;
  background-color: white;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 4px;
  background: #0f0f0f;
  position: relative;
  /* Add will-change for performance */
  border-bottom: 1px solid #2a2a2a;
  will-change: transform;
}

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

.team-info.right {
  justify-content: flex-end;
}

/* .flag {
  font-size: 32px;
} */

.team-name {
  font-weight: 600;
  font-size: 12px;
}

.team-result {
  font-size: 13px;
  color: #888;
}

.score-center {
  text-align: center;
}
.fs-12 {
  font-size: 12px !important;
}
.text-green {
  color: #4caf50 !important;
}
.py-2 {
  padding: 4px 0 !important;
}

.status {
  background-color: #222241;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  display: inline-block;
  padding: 0 4px;
  border: 1px solid #949494;
  border-top: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  opacity: 0.8;
  /* Add hardware acceleration */
  will-change: transform;
}

.graph-section {
  background: #0f0f0f;
  padding: 0 8px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Add hardware acceleration */
  will-change: transform;
}
.chart-out {
  flex: 1;
  min-width: 0;
}

.innings-tabs.innings-selector {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-bottom: 0px !important;
  border-bottom: 0;
  flex: none;
  flex-shrink: 0;
}

.innings-btn {
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #888;
  padding: 2px 8px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.3s;
  width: 100px;
  /* Add hardware acceleration for transitions */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.innings-btn.active {
  background: #5ab0bb;
  color: #fff;
}

.innings-btn.active:hover {
  background: #00acc1;
}

.run-rate-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: #666;
  letter-spacing: 1px;
  z-index: 1;
  /* Add hardware acceleration */
  will-change: transform;
}

#runRateChart {
  width: 100%;
  height: 138px;
  display: block;
  max-width: 100%;
  /* Add hardware acceleration for canvas */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.expand-toggle {
  text-align: center;
  padding: 2px 12px;
  background: #0f0f0f;
  border-top: 1px solid #2a2a2a;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 0;
  position: relative;
  overflow: hidden;
  /* Add hardware acceleration */
  will-change: transform;
}

.expand-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 50%;
  transition: width 0.4s ease, height 0.4s ease;
  /* Add hardware acceleration */
  will-change: transform;
}

.expand-toggle:hover::before {
  width: 200px;
  height: 200px;
}

.expand-toggle:hover {
  background: #1a1a1a;
}

.arrow-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #07bcd4;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.3));
  /* Add hardware acceleration */
  will-change: transform;
}

.expand-toggle.expanded .arrow-icon {
  transform: rotate(180deg);
}

.iframe-section {
  max-height: 0;
  overflow: hidden;
  background: #0f0f0f;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  contain: layout style paint;
  /* Add hardware acceleration */
  will-change: transform;
}

.iframe-section.expanded {
  max-height: calc(100svh - 248px);
  opacity: 1;
}

.main-content {
  padding: 0;
  display: flex;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  /* Add hardware acceleration */
  will-change: transform;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-summary {
  background: linear-gradient(135deg, #2d5a2d 0%, #1a3a1a 100%);
  /* padding: 30px; */
  display: flex;
  overflow: hidden;
  flex-direction: column;
  position: relative;
  width: 50%;
  opacity: 0;
  animation: fadeInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  /* Add hardware acceleration */
  will-change: transform;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.match-status {
  display: flex;
  gap: 15px;
  align-items: center;
  height: 72px;
  background-color: #334a32;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  box-shadow: 0 2px 8px #282929;
  /* Add hardware acceleration */
  will-change: transform;
}

.icon-wrapper {
  height: 72px;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a2419;
  /* Add hardware acceleration */
  will-change: transform;
}

.status-icon {
  animation: pulse 2s infinite;
  height: 34px;
  width: 34px;
  /* Add hardware acceleration */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.status-icon {
  fill: white;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Add hardware acceleration */
  will-change: transform;
}

.status-result {
  font-size: 12px;
  color: #b8e6b8;
  line-height: 1.4;
  max-width: 400px;
  /* Add hardware acceleration */
  will-change: transform;
}

.cricket-field {
  position: relative;
  /* Add hardware acceleration */
  will-change: transform;
}

.cricket-field svg.round {
  display: block;
  background-color: #517f23;
}
.cricket-field svg.pitch {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  width: 100%;
  /* Add hardware acceleration */
  will-change: transform;
}

.field-svg {
  width: 100%;
  height: auto;
}
.final-score {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  /* Add hardware acceleration */
  margin-top: 8px;
  will-change: transform;
}

.live-over {
  text-align: center;
  font-size: 12px;
  color: #b8e6b8;
  letter-spacing: 0.6px;
  text-transform: none;
  display: block;
}

/* Responsiveness: slightly smaller on very small screens */
@media (max-width: 400px) {
  .live-over {
    font-size: 11px;
    margin-top: 2px;
  }
}

.score-overlay {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #334932;
  padding: 8px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.23),
    0px 3px 6px 0px rgba(0, 0, 0, 0.16);
  min-width: 280px;
  max-width: 90%;
  /* Add hardware acceleration */
  will-change: transform;
}
.score-overlay .inner {
  display: flex;
  gap: 4px;
}

.score-box {
  text-align: center;
  width: 50%;
  min-width: 120px;
}
.score-box:first-child {
  padding-right: 8px;
}
.score-box:last-child {
  padding-left: 8px;
}

.score-large {
  font-size: 16px;
  font-weight: 700;
  background-color: #fff;
  padding: 2px;
  border-radius: 4px;
  color: #0b0b0b;
  /* Add hardware acceleration */
  will-change: transform;
}

.score-team {
  font-size: 12px;
  color: #ffffff;
  margin-top: 2px;
  text-transform: uppercase;
  /* Add hardware acceleration */
  will-change: transform;
}

.score-divider {
  font-size: 18px;
  color: #ffffff;
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -70%);
  font-size: 28px;
  /* Add hardware acceleration */
  will-change: transform;
}

.match-info-wrapper {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 32px;
  background-color: #334932;
  padding: 0;
  box-shadow: 0 2px 8px #282929;
  height: 137px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  /* Add hardware acceleration */
  will-change: transform;
}

.match-info-wrapper:active {
  cursor: grabbing;
}

.info-slider {
  position: relative;
  width: 400%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Add hardware acceleration */
  will-change: transform;
}

.info-slider.no-transition {
  transition: none;
}

.info-slide {
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
  position: relative;
  contain: layout style paint;
  /* Add hardware acceleration */
  will-change: transform;
}

.match-info {
  font-size: 13px;
  line-height: 1.8;
}

.info-row {
  margin-bottom: 8px;
}

.venue {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.weather-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
  padding: 12px 16px;
  align-items: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.match-details-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 12px 16px;
  gap: 16px;
  /* Add hardware acceleration */
  will-change: transform;
}

.match-series-info {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  /* Add hardware acceleration */
  will-change: transform;
}

.series-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Add hardware acceleration */
  will-change: transform;
}

.match-date {
  font-size: 13px;
  color: #b8e6b8;
  line-height: 1.3;
  /* Add hardware acceleration */
  will-change: transform;
}

.venue-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* Add hardware acceleration */
  will-change: transform;
}

.venue-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  fill: #fff;
  /* Add hardware acceleration */
  will-change: transform;
}

.venue-details {
  flex: 1;
  min-width: 0;
  /* Add hardware acceleration */
  will-change: transform;
}

.venue-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Add hardware acceleration */
  will-change: transform;
}

.venue-location {
  font-size: 12px;
  color: #b8e6b8;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Add hardware acceleration */
  will-change: transform;
}

.weather-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.2;
  /* Add hardware acceleration */
  will-change: transform;
}

.weather-item svg {
  height: 18px;
  width: 18px;
  fill: #fff;
  flex-shrink: 0;
  /* Add hardware acceleration */
  will-change: transform;
}

.weather-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Add hardware acceleration */
  will-change: transform;
}

.tabs-section {
  background: #1a1a1a;
  width: 50%;
  opacity: 0;
  animation: fadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  /* Add hardware acceleration */
  will-change: transform;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tabs {
  display: flex;
  background: #0f0f0f;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 20px;
  gap: 2px;
  /* Add hardware acceleration */
  will-change: transform;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 4px 12px;
  flex: 1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  margin-bottom: 0;
  /* Add hardware acceleration */
  will-change: transform;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn svg {
  height: 14px;
  width: 14px;
}

.tab-btn.active {
  color: #5ab0bb;
  border-bottom-color: #5ab0bb;
}

.tab-content {
  padding: 2px 12px;
  border-bottom: 1px solid #2a2a2a;
  height: calc(100svh - 275px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Add hardware acceleration */
  will-change: transform;
}

.tab-pane {
  display: none;
  contain: layout style paint;
  /* Add hardware acceleration */
  will-change: transform;
}

.tab-pane.active {
  display: block;
}

.scorecard-content {
  color: #fff;
}

.team-summary {
  font-size: 10px;
  /* Add hardware acceleration */
  will-change: transform;
}

.innings-tabs {
  display: flex;
  gap: 8px;
  padding-top: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 2px;
  justify-content: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.innings-tab {
  background: #2a2a2a;
  border: none;
  color: #888;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  /* Add hardware acceleration */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.innings-tab.active {
  background: #5ab0bb;
  color: #fff;
}

.innings-tab:hover {
  background: #3a3a3a;
}

.innings-tab.active:hover {
  background: #00acc1;
}

.innings-tab.disabled {
  background: #1a1a1a;
  color: #555;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  /* Add hardware acceleration */
  will-change: transform;
}

.innings-tab.disabled:hover {
  background: #1a1a1a;
}

.innings-btn.disabled {
  background: #4d4a4a;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  /* Add hardware acceleration */
  will-change: transform;
}

.innings-btn.disabled:hover {
  background: #1a1a1a;
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
  /* Add hardware acceleration */
  will-change: transform;
}

.scorecard-table th {
  background: #0f0f0f;
  padding: 2px 0;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 1px solid #5d5959;
  /* Add hardware acceleration */
  will-change: transform;
}

.scorecard-table td {
  padding: 2px 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 10px;
  /* Add hardware acceleration */
  will-change: transform;
}

.scorecard-table tbody tr:hover {
  background: #1a1a1a;
}

.player-name {
  font-weight: 600;
  padding: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  /* Add hardware acceleration */
  will-change: transform;
}

.keeper-badge {
  font-size: 10px;
  background: #5ab0bb;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.dismissal {
  font-size: 10px;
  color: #888;
  /* Add hardware acceleration */
  will-change: transform;
}

.not-out {
  color: #4caf50;
  font-weight: 600;
}

.total-row td {
  border-top: 1px solid #5d5959 !important;
  border-top-width: 1px;
}

.extras-info,
.did-not-bat,
.fall-of-wickets {
  font-size: 10px;
  color: #888;
  margin-bottom: 1px;
  line-height: 1.6;
  /* Add hardware acceleration */
  will-change: transform;
}

.bowling-section {
  margin-top: 8px;
  /* Add hardware acceleration */
  will-change: transform;
}

.bowling-section h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 8px;
  /* Add hardware acceleration */
  will-change: transform;
}

.bowling-table {
  width: 100%;
  border-collapse: collapse;
  /* Add hardware acceleration */
  will-change: transform;
}

.bowling-table th {
  background: #0f0f0f;
  padding: 2px 0;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  /* Add hardware acceleration */
  border-bottom: 1px solid #5d5959;
  will-change: transform;
}

.bowling-table td {
  padding: 4px 0px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 12px;
  /* Add hardware acceleration */
  will-change: transform;
}

.bowling-table tbody tr:hover {
  background: #1a1a1a;
}

.statistics-content {
  position: relative;
  /* Add hardware acceleration */
  will-change: transform;
}

.pagination {
  position: absolute;
  top: 0;
  right: 0;
  color: #888;
  font-size: 12px;
  /* Add hardware acceleration */
  will-change: transform;
}

.wagon-wheel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin: 0px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 0px 20px;
  border-radius: 8px;
  /* Add hardware acceleration */
  will-change: transform;
}

.side-stats {
  text-align: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.side-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  /* Add hardware acceleration */
  will-change: transform;
}

.side-runs {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Add hardware acceleration */
  will-change: transform;
}

.side-text {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Add hardware acceleration */
  will-change: transform;
}

.wheel-container {
  position: relative;
  width: 450px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.all-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  /* Add hardware acceleration */
  will-change: transform;
}

#wagonWheel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Add hardware acceleration for canvas */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 0px;
  /* Add hardware acceleration */
  will-change: transform;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  /* Add hardware acceleration */
  will-change: transform;
}

.legend-label {
  font-weight: 600;
  color: #888;
  /* Add hardware acceleration */
  will-change: transform;
}

.legend-dot {
  font-size: 20px;
  /* Add hardware acceleration */
  will-change: transform;
}

.legend-item:nth-child(1) .legend-dot {
  color: #3498db;
}
.legend-item:nth-child(2) .legend-dot {
  color: #e74c3c;
}
.legend-item:nth-child(3) .legend-dot {
  color: #f39c12;
}
.legend-item:nth-child(4) .legend-dot {
  color: #2ecc71;
}
.legend-item:nth-child(5) .legend-dot {
  color: #9b59b6;
}

.legend-count {
  color: #fff;
  font-weight: 600;
  /* Add hardware acceleration */
  will-change: transform;
}

.headtohead-content {
  max-width: 800px;
  margin: 0 auto;
  /* Add hardware acceleration */
  will-change: transform;
}

.previous-meetings {
  margin-bottom: 50px;
  /* Add hardware acceleration */
  will-change: transform;
}

.meeting-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 20px;
  text-align: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.meeting-score {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Add hardware acceleration */
  will-change: transform;
}

.meeting-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  /* Add hardware acceleration */
  will-change: transform;
}

.meeting-team .wins {
  font-size: 48px;
  font-weight: 700;
  color: #5ab0bb;
  /* Add hardware acceleration */
  will-change: transform;
}

.meeting-team.wi .wins {
  color: #e74c3c;
}

.wins-label {
  font-size: 11px;
  color: #888;
  /* Add hardware acceleration */
  will-change: transform;
}

.meeting-bar {
  flex: 1;
  height: 8px;
  background: #e74c3c;
  border-radius: 4px;
  overflow: hidden;
  /* Add hardware acceleration */
  will-change: transform;
}

.bar-india {
  height: 100%;
  background: #5ab0bb;
  transition: width 0.5s;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-section {
  margin-top: 50px;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 30px;
  text-align: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-team {
  text-align: center;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-percentage {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-team.india .form-percentage {
  color: #5ab0bb;
}

.form-team.wi .form-percentage {
  color: #e74c3c;
}

.form-text {
  font-size: 11px;
  color: #888;
  margin-bottom: 20px;
  /* Add hardware acceleration */
  will-change: transform;
}

.form-results {
  display: flex;
  justify-content: center;
  gap: 8px;
  /* Add hardware acceleration */
  will-change: transform;
}

.result-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  /* Add hardware acceleration */
  will-change: transform;
}

.result-badge.w {
  background: #2ecc71;
  color: #fff;
}

.result-badge.l {
  background: #e74c3c;
  color: #fff;
}

.result-badge.d {
  background: #95a5a6;
  color: #fff;
}

.lineups-content {
  position: relative;
  /* Add hardware acceleration */
  will-change: transform;
}

.lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  /* Add hardware acceleration */
  will-change: transform;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2a2a2a;
  /* Add hardware acceleration */
  will-change: transform;
}

.team-header .team-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  /* Add hardware acceleration */
  will-change: transform;
}

.players-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  /* Add hardware acceleration */
  will-change: transform;
}

.players-list .player-item .player-name svg {
  height: 12px;
  width: 12px;
  fill: #00acc1;
  /* Add hardware acceleration */
  will-change: transform;
}

.players-list .player-item .player-name {
  padding: 2px 0 0;
  font-size: 12px;
  margin-bottom: 0;
  /* Add hardware acceleration */
  will-change: transform;
}

.player-item {
  padding: 0 0 2px;
  border-radius: 6px;
  transition: all 0.3s;
  /* Add hardware acceleration */
  will-change: transform;
}

.player-role {
  font-size: 10px;
  line-height: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* Add hardware acceleration */
  will-change: transform;
}

#runRateChart {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: linear-gradient(180deg, #111 0%, #0b0b0b 100%);
  /* Add hardware acceleration */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (max-width: 1200px) {
  .match-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }
  body {
    overflow-y: auto;
  }
  .iframe-section.expanded {
    max-height: 100%;
  }
  .tab-content {
    height: 100%;
    padding: 2px 12px 12px;
  }

  .side-runs {
    font-size: 40px;
    line-height: 44px;
  }
  .wagon-wheel {
    gap: 12px;
  }
  .tabs-section {
    width: 100%;
  }

  .wheel-container {
    width: 100%;
    max-width: 400px;
    height: 350px;
  }

  .lineups-grid {
    grid-template-columns: 1fr;
  }

  .form-comparison {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .main-content {
    flex-direction: column;
  }

  #runRateChart {
    height: 120px;
  }
}

@media (max-width: 991px) {
  .side-label {
    margin-bottom: 0;
  }
  .wagon-wheel {
    flex-direction: column;
  }

  .wheel-container {
    max-width: 350px;
    height: 320px;
  }

  #runRateChart {
    height: 110px;
  }
}
@media (max-width: 768px) {
  .header {
    gap: 8px;
    padding: 16px 8px 0;
  }
  .team-info {
    flex-direction: column;
    text-align: center;
  }

  .graph-section {
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px 0;
  }
  .chart-out {
    width: 100%;
  }
  .innings-tabs.innings-selector {
    flex-direction: row;
    padding-top: 4px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .innings-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 80px;
  }
  .match-info-wrapper {
    height: 100px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .match-status {
    height: 42px;
  }

  /* Slider responsive adjustments */
  .weather-info {
    gap: 8px;
    padding: 8px 12px;
    grid-template-columns: 1fr 1fr;
  }

  .match-details-info {
    padding: 10px 12px;
    gap: 12px;
  }

  .weather-item {
    font-size: 12px;
    gap: 4px;
  }

  .weather-item svg {
    width: 16px;
    height: 16px;
  }

  .series-name {
    font-size: 13px;
  }

  .match-date {
    font-size: 11px;
  }

  .venue-name {
    font-size: 13px;
  }

  .venue-location {
    font-size: 11px;
  }

  .venue-icon {
    width: 16px;
    height: 16px;
  }

  .icon-wrapper {
    height: 46px;
    width: 46px;
  }
  .status-icon {
    height: 22px;
    width: 22px;
  }
  .cricket-field {
    min-height: 350px;
  }

  .team-info img {
    height: 20px;
    width: 20px;
  }
  .team-name {
    font-weight: 400;
    line-height: 12px;
  }

  .tabs {
    overflow-x: auto;
  }

  .wagon-wheel {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
  }

  .wheel-container {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }
  #runRateChart {
    width: 100%;
    height: 100px;
    display: block;
    border-radius: 6px;
    background: linear-gradient(180deg, #111 0%, #0b0b0b 100%);
  }

  .score-overlay {
    min-width: 240px;
  }

  .score-box {
    min-width: 100px;
  }
}
@media (max-width: 575px) {
  .score-team {
    font-size: 8px;
  }
  .score-large {
    font-size: 11px;
  }
  .final-score {
    font-size: 12px;
  }
  .cricket-field svg.pitch {
    top: 30%;
  }
  .tab-btn {
    font-size: 12px;
    padding: 4px 2px;
  }
  .status-text {
    font-size: 12px;
  }
  .status-result {
    font-size: 10px;
  }
  .legend {
    flex-wrap: wrap;
  }

  .wheel-container {
    max-width: 280px;
    height: 280px;
  }

  #runRateChart {
    height: 90px;
  }

  .innings-btn {
    font-size: 9px;
    padding: 2px 6px;
    min-width: 70px;
  }

  /* Mobile slider optimization */
  .match-info-wrapper {
    height: 90px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }

  .weather-info {
    gap: 6px;
    padding: 6px 8px;
  }

  .match-details-info {
    padding: 8px 10px;
    gap: 10px;
  }

  .weather-item {
    font-size: 11px;
    gap: 3px;
  }

  .weather-item svg {
    width: 14px;
    height: 14px;
  }

  .score-overlay {
    min-width: 200px;
  }

  .score-box {
    min-width: 80px;
  }

  .series-name {
    font-size: 12px;
  }

  .match-date {
    font-size: 10px;
  }

  .venue-name {
    font-size: 11px;
  }

  .venue-location {
    font-size: 10px;
  }

  .venue-icon {
    width: 14px;
    height: 14px;
  }

  .match-series-info {
    padding-bottom: 8px;
  }
}
