.popup {
  position: fixed;
  right: 0px;
  top: 0px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.popup_is-animated {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.6s, opacity 0.6s;
}

.popup__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  width: 50%;
  height: 100vh;
  padding: 15px;
  border-radius: 10px 0 0 10px;
  box-sizing: border-box;
  background: linear-gradient(159deg, #7c1b20 0%, #00081b 51.68%);
  cursor: default;
}

.popup_is-opened {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: visibility 0.6s, opacity 0.6s;
}

.section__picture_content {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  grid-auto-rows: minmax(70px, 180px);
  grid-auto-flow: dense;
  gap: 15px;
  max-width: 100%;
  margin: 0 auto 15px;
}

.picture__img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  object-position: top center;
}

.popup__body {
  display: flex;
  flex-direction: column;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
}

.popup__body-player {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 150px;
}

.popup__body-player-info {
  display: flex;
  gap: 10px;
  padding-bottom: 15px;
}

.popup__body-player-title-img {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.popup__title {
  font-size: 14px;
  text-transform: uppercase;
  text-align: left;
  color: #ffffff;
}

.popup__body-player-info-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 20px;
}

.popup__body__img {
  border-radius: 5px;
  object-fit: cover;
  object-position: top center;
}

.info-list {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 2px;
  font-size: 14px;
  color: #ffffff;
}

.info-list_up-stonge {
  display: flex;
  gap: 20px;
}

.info-list-citizenship {
  display: flex;
  gap: 10px;
}

.info-list-citizenship-flag {
  width: 20px;
  height: 12px;
  align-self: center;
}

.info-list-title {
  font-weight: 500;
}

.info-list-text {
  font-weight: 200;
}

.next-match-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
  border-radius: 5px;
  height: max-content;
  background-color: #ffffff;
}

.time-games-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.next-match-text {
  font-size: 12px;
  font-weight: 600;
  color: #161b21;
  text-align: center;
}

.team-info {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  text-align: center;
}

.home-team,
.time-games,
.away-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
}

.home-team {
  width: 30%;
}

.time-games {
  flex-grow: 2;
  font-size: 10px;
  font-weight: 400;
  color: #161b21;
  gap: 5px;
}

.away-team {
  width: 30%;
}

.home-team-logo,
.away-team-logo {
  height: 100%;
}

.team-text {
  font-size: 12px;
  font-weight: 600;
  color: #161b21;
}

.popup__statistics {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.table {
  display: grid;
  grid-template-columns: repeat(6, 1fr) auto;
  grid-template-rows: auto;
  justify-items: stretch;
  align-items: center;
  width: 100%;
  margin: auto;
  color: #ffffff;
}

.table-header {
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  padding: 5px;
  border-right: 1px solid #989898;
  align-self: end;
}

.table-header:nth-child(1) {
  border-left: 1px solid #989898;
}

.table-cell {
  font-size: 18px;
  font-family: var(--font-primary);
  text-align: center;
  padding: 5px;
  border-right: 1px solid #989898;
}

.table-cell:nth-child(8) {
  border-left: 1px solid #989898;
}

.popup__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 15px;
  color: #ffffff;
}

.facts-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 10px;
  border-radius: 20px 0 20px 0;
  border: 1px solid white;
}

.fact-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.fact-number {
  font-size: 35px;
  font-family: var(--font-primary);
  color: #fff;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.fact-text {
  font-size: 14px;
  font-weight: 300;
}

.popup__section-history {
  display: flex;
  gap: 20px;
  padding: 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
}

.popup__history-text {
  font-size: 14px;
  font-weight: 200;
  color: #ffffff;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.text {
  font-size: 14px;
}

.button {
  cursor: pointer;
  width: 150px;
  height: 35px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background-color: transparent;
  border: 1px solid white;
  z-index: 4;
}

.button:hover {
  color: #161b21;
  background-color: #ffffff;
}

.button-down {
  display: none;
}
