/* Single Match Block Styles - Matching 1xbet.com design exactly */

.xbet-single-match-wrapper {
  padding: 1.5em 0;
}

.xbet-single-match-block {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.xbet-single-match-block__container {
  position: relative;
}

.xbet-single-match-block__loading,
.xbet-single-match-block__error {
  text-align: center;
  padding: 1.5em;
  color: #fff;
  font-size: 1em;
}

.xbet-single-match-block__match {
  position: relative;
  background: linear-gradient(180deg, rgba(1, 129, 219, 0.95) 0%, rgba(12, 30, 102, 0.98) 100%);
  border: 2px solid #0d70d3;
  border-radius: 20px;
  box-shadow: inset 0 1px 0.125em 0 rgba(17, 26, 42, 0.7), 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 2em 1.5em;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Header - compact */
.xbet-single-match-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25em;
  padding-bottom: 0.75em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.xbet-single-match-block__header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, #93e20b, transparent);
  border-radius: 2px;
}

.xbet-single-match-block__header-left {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.xbet-single-match-block__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: rgba(13, 112, 211, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.75em;
  font-weight: bold;
  font-style: italic;
  line-height: 1;
}

.xbet-single-match-block__league-title {
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.xbet-single-match-block__header-right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.xbet-single-match-block__trophy-icon,
.xbet-single-match-block__chevron-icon {
  color: #ffd700;
  font-size: 1.1em;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.xbet-single-match-block__chevron-icon {
  color: #fff;
  font-size: 0.9em;
}

/* Main counter/time section - compact */
.xbet-single-match-block__main {
  text-align: center;
  margin-bottom: 1.5em;
  padding: 1em 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.xbet-single-match-block__match-time {
  color: #fff;
  font-size: 1.5em;
  font-weight: 500;
  margin-top: 0.5em;
  letter-spacing: 0.02em;
}

/* Counter styles - matching 1xbet exactly */
.xbet-single-match-block__counter {
  margin: 0.75em 0 0.5em;
}

.counter__list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25em;
  direction: ltr;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.counter.xbet-single-match-block__counter .counter__list {
  margin: 0 0 0 0;
}

.counter__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 60px;
  padding: 0 0.5em;
}

.counter__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.05em;
  top: -0.2em;
  bottom: -0.2em;
  width: 1px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.counter-item__number {
  font-size: 3.5em;
  font-weight: 900;
  color: rgba(200, 200, 200, 0.7);
  line-height: 1;
  margin-bottom: 0.2em;
  letter-spacing: 0.05em;
  font-family: 'Arial', sans-serif;
  /*text-shadow: */
  /*  0 2px 4px rgba(0, 0, 0, 0.4),*/
  /*  0 -1px 2px rgba(255, 255, 255, 0.3),*/
  /*  inset 0 1px 1px rgba(255, 255, 255, 0.2);*/
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(220, 220, 220, 0.8) 0%,
    rgba(180, 180, 180, 0.6) 50%,
    rgba(160, 160, 160, 0.5) 100%
  );
  -webkit-background-clip: text;
  /*-webkit-text-fill-color: transparent;*/
  background-clip: text;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.counter-item__text {
  font-size: 0.75em;
  color: #fff;
  text-transform: lowercase;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: 'Arial', sans-serif;
}

/* Teams section - horizontal layout */
.xbet-single-match-block__teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  gap: 1em;
  position: relative;
  padding: 1em 0;
  flex-wrap: nowrap;
}

.xbet-single-match-block__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  max-width: 200px;
  min-width: 0;
}

.xbet-single-match-block__team-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.xbet-single-match-block__team-name {
  margin: 0.75em 0 0 0;
  text-align: center;
  order: 2;
}

.xbet-single-match-block__team-name span {
  display: block;
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
  text-underline-offset: 0.2em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.xbet-single-match-block__team:hover .xbet-single-match-block__team-name span {
  color: #93e20b;
}

.xbet-single-match-block__team-picture {
  width: 3.5em;
  height: 3.5em;
  order: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xbet-single-match-block__team-picture:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xbet-single-match-block__team-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.xbet-single-match-block__match-date {
  color: #fff;
  font-size: 2.5em;
  font-weight: 800;
  text-align: center;
  min-width: 0;
  flex: 0 0 auto;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  padding: 0.5em 0.75em;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

/* Finished match styles */
.xbet-single-match-block__finished {
  text-align: center;
  margin: 1em 0;
}

.xbet-single-match-block__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.xbet-single-match-block__score-value {
  font-size: 3em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  min-width: 1.2em;
  text-align: center;
}

.xbet-single-match-block__score-separator {
  font-size: 3em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.xbet-single-match-block__finished-label {
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Probabilities section - text only, no progress bar */
.xbet-single-match-block__probabilities {
  margin-top: 1em;
  padding: 1em;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.xbet-single-match-block__probabilities-title {
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.75em;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.xbet-single-match-block__probabilities-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.xbet-single-match-block__prob-item {
  font-size: 0.95em;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4em 0.8em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.xbet-single-match-block__prob-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.xbet-single-match-block__prob-item--victory {
  color: #4caf50;
}

.xbet-single-match-block__prob-item--draw {
  color: #9e9e9e;
}

.xbet-single-match-block__prob-item--lose {
  color: #2196f3;
}

/* Actions */
.xbet-single-match-block__actions {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1.5em;
  flex-wrap: wrap;
}

.xbet-single-match-block__actions a {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

/* Button styles - matching 1xbet design */
.risk-free-bet-button {
  position: relative;
  display: block;
  color: #001261;
  user-select: none;
  border-radius: 6.25em;
  text-align: center;
  transform: translateZ(0);
  transition: all 0.2s linear;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.risk-free-bet-button::before {
  position: absolute;
  top: -.5625em;
  bottom: -.5625em;
  right: -.5625em;
  left: -.5625em;
  content: '';
  pointer-events: none;
  border-radius: 6.25em;
  transition: all 100ms ease-in-out;
}

.risk-free-bet-button__container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.6em 1.25em;
  line-height: 1.3;
}

.risk-free-bet-button--theme-primary {
  color: #32373d;
  
  /*background: linear-gradient(180deg, #93e20b 0%, #7cc509 100%);*/
  background-color: #93e20b;
  box-shadow: 0 0 1.5625em 0 rgba(146, 226, 10, 0.6), inset 0 .125em 0 0 #bdff82, 0 4px 12px rgba(0, 0, 0, 0.2);
}

.risk-free-bet-button--theme-primary::before {
  border: 2px solid #92e305;
}

.risk-free-bet-button--theme-primary:hover {
  background: linear-gradient(180deg, #83ca09 0%, #6db008 100%);
  box-shadow: 0 0 1.875em 0 rgba(146, 226, 10, 0.8), inset 0 .125em 0 0 #bdff82, 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.risk-free-bet-button--theme-primary:hover::before {
  border: 2px solid #83ca09;
}

.risk-free-bet-button--anim-blik {
  background-image: url("https://ccdventures.pro/genfiles/cms/1/desktop/promotions/risk-free-bet/blik.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
  animation: blik-data-v-33695f18 5s linear normal none infinite;
  background-position: -50% 0;
}

.risk-free-bet-button--size-m .risk-free-bet-button__container {
  font-size: 1.1em;
  font-weight: 600;
}

.risk-free-bet-button:hover::before, .risk-free-bet-button:active::before {
  top: -.6875em;
  bottom: -.6875em;
  right: -.6875em;
  left: -.6875em;
}

.xbet-single-match-block__btn {
  width: 14em;
  margin: 0;
}

@keyframes blik-data-v-33695f18 {
  0% {
    background-position-x: -21.5625em;
  }
  20%, 100% {
    background-position-x: 28.125em;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .xbet-single-match-block__match {
    padding: 1em;
  }

  .xbet-single-match-block__teams {
    gap: 0.3em;
    flex-wrap: nowrap;
    padding: 0.5em 0;
  }

  .xbet-single-match-block__match-date {
    font-size: 1.2em;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0.3em 1em;
    font-size: 1.1em;
  }
  
  .xbet-single-match-block__team {
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
  }
  
  .xbet-single-match-block__team-picture {
    width: 2.5em;
    height: 2.5em;
    padding: 0.2em;
  }
  
  .xbet-single-match-block__team-name {
    margin: 0.5em 0 0 0;
  }
  
  .xbet-single-match-block__team-name span {
    font-size: 0.85em;
  }

  .counter-item__number {
    font-size: 2.5em;
  }
  
  .counter-item__text {
    font-size: 0.65em;
  }
  
  .counter__item {
    min-width: 50px;
    padding: 0 0.3em;
  }


  .xbet-single-match-block__probabilities {
    padding: 0.75em;
    margin-top: 0.75em;
  }

  .xbet-single-match-block__probabilities-title {
    font-size: 0.85em;
    margin-bottom: 0.5em;
  }

  .xbet-single-match-block__probabilities-content {
    gap: 0.5em;
  }

  .xbet-single-match-block__prob-item {
    font-size: 0.85em;
    padding: 0.3em 0.6em;
  }

  .xbet-single-match-block__actions {
    flex-direction: column;
    align-items: center;
  }

  .xbet-single-match-block__btn {
    width: 100%;
    max-width: 14em;
  }
}

@media (max-width: 480px) {
  .xbet-single-match-block__match {
    padding: 0.75em;
  }

  .counter-item__number {
    font-size: 2em;
  }

  .counter-item__text {
    font-size: 0.6em;
  }
  
  .counter__item {
    min-width: 45px;
    padding: 0 0.25em;
  }

  .xbet-single-match-block__match {
    padding: 0.5em;
  }

  .xbet-single-match-block__teams {
    gap: 0.2em;
    padding: 0.3em 0;
  }

  .xbet-single-match-block__match-date {
    font-size: 0.95em;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0.25em 0.75em;
  }
  
  .xbet-single-match-block__team {
    min-width: 0;
    flex: 1 1 0;
  }
  
  .xbet-single-match-block__team-picture {
    width: 2em;
    height: 2em;
    padding: 0.15em;
  }
  
  .xbet-single-match-block__team-name {
    margin: 0.4em 0 0 0;
  }
  
  .xbet-single-match-block__team-name span {
    font-size: 0.75em;
    line-height: 1.2;
  }

  .xbet-single-match-block__probabilities {
    padding: 0.5em;
    margin-top: 0.5em;
  }

  .xbet-single-match-block__probabilities-title {
    font-size: 0.75em;
    margin-bottom: 0.4em;
  }

  .xbet-single-match-block__probabilities-content {
    gap: 0.4em;
    flex-direction: column;
  }

  .xbet-single-match-block__prob-item {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
    width: 100%;
  }

  .risk-free-bet-button--size-m .risk-free-bet-button__container {
    font-size: 0.95em;
  }
}

/* Editor styles */
.xbet-single-match-block-editor {
  padding: 1em;
  border: 1px dashed #ccc;
  background: #f9f9f9;
}

.xbet-single-match-block-preview {
  padding: 1em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Results section */
.xbet-single-match-block__results {
  text-align: center;
  /*padding: 2em 1em;*/
}

.xbet-single-match-block__results-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%;
}

.xbet-single-match-block__results-link:hover {
  transform: scale(1.05);
}

.xbet-single-match-block__results-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.xbet-single-match-block__results-text {
  display: block;
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.xbet-single-match-block__results-link:hover .xbet-single-match-block__results-text {
  color: #93e20b;
}
