/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.middle-box {
  position: relative;
}

html {
  height: 100%;
  display: flex;
  flex-grow: 1;
}

body {
  font-size: 10px;
  line-height: 1;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  color: #000;
  overflow: hidden;
  flex-grow: 1;
  background: #fff;
  height: 100%;
}

body.loader .hideThis {
  display: none !important;
  opacity: 0;
}
body.loader .showThis,
body.loader .watch {
  display: none !important;
}

a {
  text-decoration: underline;
  color: #000;
}

/* Основные стили для компонентов */
.wrapper {
  max-width: 800px;
  padding: 5px 10px;
  margin: 0 auto;
}
.header {
  display: flex;
  flex-direction: column;
}
.header__inner {
  display: flex !important;
  justify-content: space-between;
  width: 100%;
  flex-grow: 1;
  flex-direction: row;
  align-items: center;
}
#confirmText {
  opacity: 1;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #fff;
}
.header__item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}
.legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.header__menu img {
  width: 125px;
}

.header__person img {
  width: 25px;
}

.header-input {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  text-align: left;
  margin: 10px 0;
  font-size: 12px;
}

.header-input__button {
  position: absolute;
  right: 0;
  top: 0;
  padding: 2px 10px;
  background: #ccc;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.header-input__button img {
  height: 20px;
  display: block;
}

.comments {
  margin-top: 20px;
}

.comments__inner {
  display: flex;
  justify-content: space-between;
}

.comments__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comments__item img {
  width: 25px;
}

.comments__item span {
  font-weight: bold;
  font-size: 11px;
  padding-top: 3px;
}

/* Стили для кнопок */
.btn-box {
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.btn-accept {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 90%;
  max-width: 380px;
  height: 146px;
  margin: 0 auto;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-size: 25px;
  letter-spacing: 0.3px;
  font-weight: 700;
  line-height: normal;
}

.btn-accept img {
  width: 50px;
  height: 55px;
}

.btn-cancel {
  margin-top: 10px;
  display: none;
  width: 60px;
  background: #fff;
  border-radius: 4px;
  color: #000;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Скрытие и отображение элементов */
.hide-element {
  display: none; /* Скрывает элемент по умолчанию */
}

.show-element {
  display: flex; /* Показывает элемент по умолчанию */
}

/* Стили для нижнего блока информации */
.preFooter {
  font-size: 12px;
  font-weight: 400;
  width: 100%;
  padding-bottom: 3px;
  position: absolute;
  bottom: 0px;
  left: 0;
  color: #555555;
  background-color: #fff;
  text-align: center;
}

.footer {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #000;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}
.footer-inner-text {
  color: #000;
}

a.close {
  display: none;
  width: 20px;
  height: 27px;
  color: #000000;
  font-size: 18px;
  font-weight: bold;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  float: right;
  text-decoration: none;
}
body.close a.close {
  display: flex;
}

body.agree .show-element.hideThis {
  display: none !important;
  opacity: 0;
}
body.agree .hide-element.showThis {
  display: flex !important;
  opacity: 1;
}
body.agree #confirmText {
  opacity: 0;
}
body.agree .preFooter {
  display: none;
}
body.agree .footer {
  display: flex !important;
}
body.loader .hide-element.showThis,
body.loader .hide-element.watch,
body.loader .hide-element.showThis.watch {
  display: none !important;
}
/* Стили для плеера */
.player {
  margin: 0 auto;
  height: 65vh;
  position: relative;
  background: url('bg.jpg') center no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-bg {
  background: rgba(0, 0, 0, 0.3);
  bottom: 0;
  right: 0;
  position: absolute;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  -webkit-box-shadow: 0px -3px 0px 0px rgba(255, 255, 255, 0.2);
  -moz-box-shadow: 0px -3px 0px 0px rgba(255, 255, 255, 0.2);
  box-shadow: 0px -3px 0px 0px rgba(255, 255, 255, 0.2);
  background: #00000030;
}

.player-bg img {
  margin: 0 10px;
}
.play-time {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.player__time {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #423f3a;
  color: #fff;
  font-size: 12px;
  padding: 3px;
  border-radius: 2px;
}

.player__extension {
  position: absolute;
  top: 5px;
  left: 5px;
  color: #fff;
  background: #dd2201;
  font-size: 12px;
  padding: 3px;
  border-radius: 2px;
}

/* Стили для текста подтверждения */
#opacityOne {
  opacity: 1;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #fff;
}

/* Адаптивные стили */
@media (max-height: 650px) and (orientation: portrait) {
  .player {
    height: 57vh;
  }
  .btn-accept {
    height: 115px;
    font-size: 20px;
  }
  #opacityOne {
    font-size: 22px;
  }
}

@media (max-height: 530px) and (orientation: portrait) {
  .header-input {
    display: none;
  }
  .player {
    height: 65vh;
  }
}

@media (max-height: 490px) and (orientation: landscape) {
  .comments,
  .header-input {
    display: none;
  }
  .btn-accept {
    height: 110px;
    font-size: 20px;
  }
  .player {
    height: 80vh;
  }
  #opacityOne {
    font-size: 20px;
  }
}

@media (max-height: 320px) and (orientation: landscape) {
  .player {
    height: 75vh;
  }
  .player-bg {
    display: none;
  }
}

.hideThis,
.showThis {
  transition: opacity 1s ease-in-out;
}
.hideWatch,
.hideSearch,
.player,
.player__window {
  transition: all 1s ease-in-out;
}
.hideWatch,
.hideSearch {
  transition: all 500ms ease-in-out;
  z-index: 0;
  margin-top: 0;
}
.player__loader {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  align-items: center;
  justify-content: center;
}
body.loader .player__btn.def {
  display: none;
}
body.loader .player__btn.agree {
  display: none;
}
body.loader .player__loader {
  display: flex;
}
.loaderItem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  position: absolute;
  top: 40%;
  border: 3px solid;
  border-color: #fff #fff transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loaderItem::after,
.loaderItem::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #ff3d00 #ff3d00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loaderItem::before {
  width: 32px;
  height: 32px;
  border-color: #fff #fff transparent transparent;
  animation: rotation 1.5s linear infinite;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
