/* Общие стили для body */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Основной контейнер */
.main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Страница с фоном */
.page {
  position: relative;
  height: 100vh;
  background-image: var(--background-image);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.page::after {
  position: fixed;
  content: "";
  width: 100%;
  height: 100vh;
  background-color: var(--background-fon);
}

/* Секция с заголовком */
.record-header-section {
  margin: 10px;
  white-space: nowrap;
  text-align: center;
  z-index: var(--z-index-content);
}

.record-section_title {
  font-family: var(--font-primary);
  font-size: clamp(2.8125rem, 0.2013rem + 13.6166vw, 33.625rem);
  color: var(--title-color);
  line-height: 0.8;
  text-align: start;
  opacity: 0;
}

/* Секция с описанием */
.record-description-section {
  display: flex;
  margin: 10px 18px;
  justify-content: space-between;
  z-index: var(--z-index-content);
}

.record-number {
  font-family: var(--font-primary);
  color: #cf4342;
}

.record-description {
  width: 45%;
  font-size: 14px;
  font-weight: var(--font-weight);
  color: var(--text-color);
  opacity: 0.5;
}

.developer {
  font-size: 14px;
  font-weight: var(--font-weight);
  color: var(--accent-color);
  opacity: 0;
}

.developer_dev {
  opacity: 0.5;
}

/* Секция с топовыми игроками */
.top-scorers-section {
  margin: 20px 18px;
  display: flex;
  justify-content: space-between;
  z-index: var(--z-index-content);
}

.video {
  width: 20vw;
  height: 11vw;
  border: none;
  border-radius: 5px;
  opacity: 0;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-scorer-item {
  position: relative;
  width: clamp(200px, 50vw, 430px);
  height: clamp(55px, 8vh, 85px);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  background: #2b2128;
  border-radius: 5px;
}

.top-scorer-item:hover {
  opacity: 0.85;
  cursor: pointer;
}

a:hover {
  opacity: 0.85;
}

.progress-bar {
  position: absolute;
  width: 0%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, #161b21 0%, #e2323b 99.99%, #7c1b20 100%);
  border-radius: 5px;
  transition: width 2.1s ease-in-out;
}

.item-image_circle {
  padding: 0 12px;
  display: flex;
  align-items: center;
  z-index: var(--z-index-content);
}

.player-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.player-info {
  padding: 0 10px 0 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  z-index: var(--z-index-content);
}

.player {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-name {
  font-size: 20px;
  font-weight: var(--font-weight-title);
}

.player-season {
  font-size: 12px;
  color: #ffffff;
  opacity: 0.6;
}

.puck-icon {
  width: 12%;
  display: flex;
  justify-content: start;
  align-items: center;
  z-index: var(--z-index-content);
}

/* Секция с прогрессом */
.record-progress-section {
  margin: 0 18px 18px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  z-index: 1;
}

.remaining-to-record {
  position: fixed;
  display: flex;
  align-items: flex-end;
}

.record-progress__title {
  font-family: var(--font-primary);
  font-size: clamp(0.75rem, 0.4205rem + 1.6477vw, 4.375rem);
  color: var(--text-color);
  text-transform: uppercase;
  opacity: 0;
}

.record-difference {
  font-size: clamp(0.75rem, -0.6023rem + 6.7614vw, 15.625rem);
  color: #cf4342;
  line-height: 0.9;
  position: relative;
}

/* Обертка для изображения Овечкина */
.player-image-wrapper {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  object-fit: contain;
  z-index: 1;
}

.ovechkin-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90%;
}

/* Меню выбора темы */
.header__theme-menu-list {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header__theme-menu-label {
  font-size: 14px;
  color: var(--accent-color);
  text-transform: lowercase;
}

.header__theme-menu-select {
  padding: 0px 5px;
  color: var(--accent-color);
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 3px;
  text-transform: lowercase;
  font-size: 14px;
  transition: 0.3s ease-in-out;
  outline: none;
  cursor: pointer;
}

.header__theme-menu-select:hover,
.header__theme-menu-select:focus {
  background-color: var(--text-color);
  border-color: var(--accent-color);
  color: var(--shum-backgroung);
}

/* Кнопка показа видео */
#show-video-btn {
  display: none;
  width: 200px;
  height: 40px;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--btn-color);
  background-color: var(--btn-backgroung);
  border: none;
  border-radius: 5px;
  text-align: start;
  position: relative;
}

#show-video-btn::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  left: 83%;
  top: 50%;
  transform: translateY(-50%) translateX(2px);
  border: 1px solid var(--btn-color);
  border-radius: 50%;
}

#show-video-btn::before {
  content: "";
  position: absolute;
  left: 87.3%;
  top: 50%;
  transform: translateY(-50%) translateX(2px);
  width: 0;
  height: 0;
  border-left: 8px solid var(--btn-color);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Общие классы */
.opacity {
  opacity: 80%;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.player-goals {
  font-family: var(--font-primary);
  font-size: clamp(1.0625rem, 0.8864rem + 0.8807vw, 3rem);
}
