@font-face {
  font-family: "Inter";
  src: url("./Inter-Thin.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-ExtraLight.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
}
@font-face {
  font-family: "Inter";
  src: url("./Inter-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #000000;
  max-height: 100dvh;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.container {
  max-width: 500px;
  padding: 0 16px;
  margin: 0 auto;
  width: 100%;
}

.header {
  padding-top: 16px;
  padding-bottom: 14px;
  flex: 0 0 auto;
}

@media (max-height: 700px) {
  .header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.header__top {
  margin-bottom: 12px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.header .logo {
  max-width: 152px;
  width: 100%;
  display: block;
  object-fit: contain;
}

.header .close {
  display: none;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header .close img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.header__search {
  position: relative;
  width: 100%;
}

.header__search input {
  width: 100%;
  height: 42px;
  border: 1.5px solid #2a2a2a;
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 0 46px 0 18px;
  outline: none;
  pointer-events: none;
}

.header__search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23111111' stroke-width='2.4'/%3E%3Cpath d='M16.5 16.5L21 21' stroke='%23111111' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}

.main {
  flex: 1 0 auto;
  padding-bottom: 12px;
  max-height: 68dvh;
  display: flex;
}

.main .content {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 337 / 522;
  max-height: 100%;
  overflow: hidden;
  background: #000000;
  border-radius: 0;
}

.main .content .loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
}

.main .content .player {
  display: block;
  max-width: 100%;
  width: calc(100% - 10px);
  object-fit: contain;
  position: absolute;
  bottom: 2px;
  left: 5px;
  right: 5px;
  z-index: 2;
  pointer-events: none;
}

.main__btn {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.main__btn .play {
  cursor: pointer;
  display: flex;
  text-decoration: none;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  max-width: 285px;
  margin: 0 auto 16px;
  width: 100%;
  border-radius: 360px;
  background: rgba(55, 55, 55, 0.85);
  color: #ffffff;
  padding: 36px 20px;
}

.main__btn .play.agree {
  display: none;
  max-width: 240px;
  padding: 34px 24px;
  justify-content: space-between;
  gap: 12px;
}

.main__btn .play img {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.main__btn .play.agree img {
  width: 48px;
  height: 48px;
}

.main__btn .play p {
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.main__btn .play p span {
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.main__btn .description {
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
  min-height: 45px;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.main__btn .description .agree {
  display: none;
}

.footer {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #919194;
  flex: 0 0 auto;
  padding: 8px 16px 18px;
}

.footer p {
  max-width: 340px;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.footer p a {
  color: inherit;
  text-decoration: underline;
}

.footer__agree {
  display: none;
}

.loaderItem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  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%;
  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);
  }
}

body.close .header .close {
  display: block;
}

body.agree .main .start {
  display: none;
}

body.agree .main .agree {
  display: flex;
}

body.agree .footer__start {
  display: none;
}

body.agree .footer__agree {
  display: block;
}

body.loader .main .start {
  display: none;
}

body.loader .main .agree {
  display: none;
}

body.loader .main .content .loader {
  display: flex;
}

body.loader .footer__start {
  display: none;
}

body.loader .footer__agree {
  display: block;
}
