body {
  margin: 0;
}

.pip-body {
    margin: 0px;
    display: flex;
    width: 100vw;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    height: 100vh;
}

.scorecard {
    display: block;
    padding: 12px;
    background: rgb(255, 255, 255);
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    text-decoration: none;
    color: rgb(17, 17, 17);
    box-sizing: border-box;
}

.pip-body .scorecard {
  padding-top: 7px;
}

.pip-body .scorecard-tournament {
  padding: 0 22px;
  text-align: center;
}

.match-list-card .scorecard {
    width: 40%;
}

.scorecard-tournament {
    font-size: 13px;
    color: rgb(0, 0, 0);
    margin-bottom: 12px;
}

.scorecard-status, .scorecard-match-status {
    font-size: 12px;
    color: rgb(0, 0, 0);
    margin-top: 8px;
    font-weight: 500;
}

.pip-body .scorecard-status {
    display: none;
}

.scorecard-match-status {
    display: none;
}

.pip-body .scorecard-match-status {
    display: block;
}

.scorecard-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

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

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-name {
    font-size: 14px;
    font-weight: 500;
    color: rgb(17, 24, 39);
}

.team-score {
    font-size: 14px;
    font-weight: 600;
    color: rgb(17, 24, 39);
    text-align: right;
}

.vs {
    display: none;
}

.muted {
    color: rgb(156, 163, 175);
    font-weight: normal;
}

.team-right .team-info {
    flex-direction: row;
}

.vs {
    font-size: 16px;
    font-weight: bold;
    color: rgb(68, 68, 68);
}

.muted {
    color: rgb(153, 153, 153);
    font-style: italic;
}

/* Commentary Styles */
.commentary-feed {
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: system-ui, -apple-system, sans-serif;;
}

.commentary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  transition: background-color 0.2s;
}

.pip-body .commentary-item {
  padding: 4px;
}

.commentary-item:hover {
  background-color: #f3f4f6;
}

.commentary-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pip-body .commentary-header {
  align-items: flex-start;
}

.commentary-over-box {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.over-number {
  font-size: 0.875rem;
  font-weight: 600;
}

.incident-label {
  display: inline-block;
  margin-top: 0.25rem;
  background-color: #e5e7eb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.incident-wicket {
  background-color: #ef4444;
}

.incident-four {
  background-color: #22c55e;
}

.incident-six {
  background-color: #f59e0b;
}

.commentary-content {
  flex: 1;
}

.pip-body .commentary-content p {
  margin: 0;
}

.dismissal-box {
  margin-top: 0.5rem;
  background-color: #fee2e2;
  border-left: 0.25rem solid #ef4444;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #991b1b;
}

.fielder-info {
  color: #7f2929;
}

.over-summary {
  margin-top: 0.5rem;
  padding-left: 5rem;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1rem;
}

.pip-body .scorecard-container {
  width: 100vw;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.pip-body::scroll-button(*) {
  border: 0;
  font-size: 21px;
  background: none;
  color: rgb(0 0 0 / 0.7);
  cursor: pointer;
  display: none;
}

.pip-body.multiple::scroll-button(*) {
  display: block;
}

.pip-body::scroll-button(*):hover,
.pip-body::scroll-button(*):focus {
  color: rgb(0 0 0 / 1);
}

.pip-body::scroll-button(*):active {
  translate: 1px 1px;
}

.pip-body::scroll-button(*):disabled {
  color: rgb(0 0 0 / 0.2);
  cursor: unset;
}

.pip-body::scroll-button(left) {
  content: "◄";
}

.pip-body::scroll-button(right) {
  content: "►";
}

.pip-body {
  anchor-name: --myCarousel;
}

.pip-body::scroll-button(*) {
  position: absolute;
  position-anchor: --myCarousel;
}

.pip-body::scroll-button(left) {
  left: 2px;
  top: 2px;
}

.pip-body::scroll-button(right) {
  right: 2px;
  top: 2px;
}

/* Football Commentary Styles */
.football-commentary-feed {
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: system-ui, -apple-system, sans-serif;
}

.commentary-title {
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  color: #111827;
  margin: 0;
}

.pip-body .commentary-title {
  font-size: 0.875rem;
  padding: 0.5rem;
}

.incident-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.pip-body .incident-item {
  padding: 0.5rem;
}

.incident-item:hover {
  background-color: #f9fafb;
}

.incident-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.incident-time {
  flex-shrink: 0;
  min-width: 3rem;
}

.time-badge {
  display: inline-block;
  background-color: #e5e7eb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.incident-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pip-body .incident-icon {
  font-size: 1rem;
}

.incident-content {
  flex: 1;
  min-width: 0;
}

.incident-description {
  font-size: 0.875rem;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.pip-body .incident-description {
  font-size: 0.75rem;
}

.incident-description.home-team {
  border-left: 3px solid #3b82f6;
  padding-left: 0.5rem;
}

.incident-description.away-team {
  border-left: 3px solid #ef4444;
  padding-left: 0.5rem;
}

.incident-score {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-weight: 600;
}

.goal-details {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid #e5e7eb;
}

.goal-detail-item {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

/* Incident type specific styles */
.incident-goal {
  background-color: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.incident-goal:hover {
  background-color: #dcfce7;
}

.incident-goal .time-badge {
  background-color: #22c55e;
  color: white;
}

.incident-red-card {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.incident-red-card:hover {
  background-color: #fee2e2;
}

.incident-red-card .time-badge {
  background-color: #ef4444;
  color: white;
}

.incident-yellow-card {
  background-color: #fefce8;
  border-left: 4px solid #eab308;
}

.incident-yellow-card:hover {
  background-color: #fef9c3;
}

.incident-yellow-card .time-badge {
  background-color: #eab308;
  color: white;
}

.incident-period {
  background-color: #f3f4f6;
  border-left: 4px solid #6b7280;
  font-weight: 600;
}

.incident-period .time-badge {
  background-color: #6b7280;
  color: white;
}

.incident-substitution {
  background-color: #fafaf9;
  border-left: 4px solid #a3a3a3;
}

.incident-substitution:hover {
  background-color: #f5f5f4;
}

.incident-var {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.incident-var:hover {
  background-color: #dbeafe;
}

.incident-var .time-badge {
  background-color: #3b82f6;
  color: white;
}

.incident-injury-time {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  font-style: italic;
}

.incident-injury-time:hover {
  background-color: #fde68a;
}

.incident-injury-time .time-badge {
  background-color: #f59e0b;
  color: white;
}

.no-incidents {
  padding: 2rem;
  text-align: center;
}

.pip-body .no-incidents {
  padding: 1rem;
}