@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: #242424;
  color: #ffffff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  overflow-x: hidden;
}

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

.header {
  flex: 0 0 auto;
  background: #242424;
  padding: 12px 0 10px;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header .close {
  display: none;
  width: 20px;
  height: 20px;
  opacity: 0.75;
}

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

.header__search {
  display: block;
  width: 18px;
  height: 18px;
}

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

.header__age {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.stage {
  flex: 0 0 auto;
  background: #000000;
  padding: 10px 0 16px;
}

.topics {
  display: flex;
  /* align-items: center; */
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topics::-webkit-scrollbar {
  display: none;
}

.topics__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  background: #2f2f2f;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  padding: 9px 12px;
  white-space: nowrap;
  pointer-events: none;
}

.topics__icon {
  width: 14px;
  height: 14px;
  display: block;
  background: center / contain no-repeat;
  flex-shrink: 0;
}

.topics__icon--fire {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cfcfcf'%3E%3Cpath d='M12 2c1.5 3 1 5.5-.5 7.5C14 9 16 11.2 16 14.2 16 17.5 14 20 12 21.5 10 20 8 17.5 8 14.2c0-2.2 1.2-4 2.4-5.2C9.2 7.5 8 5.8 8 4c0 0 2.2-.5 4-2z'/%3E%3C/svg%3E");
}

.topics__icon--new {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cfcfcf'%3E%3Cpath d='M12 1l2.1 5.3L20 7.2l-4.4 3.6L17.2 17 12 14.2 6.8 17l1.6-6.2L4 7.2l5.9-.9L12 1z'/%3E%3Ccircle cx='12' cy='11' r='2.2' fill='%23000'/%3E%3C/svg%3E");
}

.stats {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stats__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.stats__icon {
  width: 24px;
  height: 24px;
  display: block;
  background: center / contain no-repeat;
}

.stats__item--like {
  color: #4ad26d;
}

.stats__item--like .stats__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234ad26d'%3E%3Cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E");
}

.stats__item--dislike {
  color: #ff4a4a;
}

.stats__item--dislike .stats__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4a4a'%3E%3Cpath d='M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z'/%3E%3C/svg%3E");
}

.stats__item--views {
  color: #9a9a9a;
}

.stats__item--views .stats__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239a9a9a'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.content {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 200;
  min-height: 168px;
  background: #3b3b3b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.play {
  border: none;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  z-index: 2;
}

.play.start {
  display: block;
  width: 100%;
  padding: 20px 12px;
}

.play.agree {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px 12px;
}

.play.agree img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

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

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 16px 12px 8px;
}

.price {
  color: #9a9a9a;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.footer {
  flex: 0 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 20px;
}

.footer p {
  max-width: 320px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: #8a8a8a;
  font-weight: 400;
}

.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;
  inset: 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 .play.start {
  display: none;
}

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

body.agree .footer__start {
  display: none;
}

body.agree .footer__agree {
  display: block;
}

body.loader .play.start,
body.loader .play.agree {
  display: none;
}

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

body.loader .footer__start {
  display: none;
}

body.loader .footer__agree {
  display: block;
}
