@font-face {
  font-family: "Inter";
  src: url("Inter-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --brand-accent: #ef4a46;
  --brand-accent-text: #ffffff;
  --brand-dark: #ffffff;
  --brand-muted: #8e8e8e;
  --brand-light: #ffffff;
  --brand-line: #404040;
  --page-bg: #e6e6e6;
  --header-bg: #393939;
  --header-text: #ffffff;
  --header-border: #393939;
  --header-border-width: 0;
  --header-shadow: none;
  --search-bg: #ffffff;
  --search-border: #ef4a46;
  --search-placeholder: #939393;
  --search-height: 42px;
  --search-button-width: 96px;
  --player-bg: #111111;
  --player-border: #404040;
  --poster-image: url("../../videohub-24xxx-cart/content/thumbs/0.jpg");
  --burger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='4' height='3' rx='0.6' fill='%23ffffff'/%3E%3Crect x='9' y='5' width='12' height='3' rx='0.6' fill='%23ffffff'/%3E%3Crect x='3' y='11' width='4' height='3' rx='0.6' fill='%23ffffff'/%3E%3Crect x='9' y='11' width='12' height='3' rx='0.6' fill='%23ffffff'/%3E%3Crect x='3' y='17' width='4' height='3' rx='0.6' fill='%23ffffff'/%3E%3Crect x='9' y='17' width='12' height='3' rx='0.6' fill='%23ffffff'/%3E%3C/svg%3E");
  --search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4a46' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  --meta-panel: url("meta-panel.svg?v=24xxx-1");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--brand-dark);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

header,
footer {
  flex: 0 0 auto;
}

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

.header {
  position: relative;
  z-index: 1;
  height: 66px;
  margin-bottom: 64px;
  padding: 0;
  overflow: visible;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: var(--header-border-width) solid var(--header-border);
  box-shadow: var(--header-shadow);
}

.header::after {
  content: "";
  position: absolute;
  top: 66px;
  right: 0;
  left: 0;
  z-index: 0;
  height: 64px;
  background: var(--header-bg);
  pointer-events: none;
}

.header > .container.header__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  max-width: 1200px;
  padding-right: 50px;
  padding-left: 50px;
}

.header__left,
.header__right {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 0;
  gap: 0;
}

.header__left > img,
.header__right > img,
.header__age,
.header__close,
body.close .header__close {
  display: none;
}

.header__left::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  display: block;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-image: var(--burger-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header__left::after {
  content: "Eroworld";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  max-width: calc(100vw - 100px);
  transform: translate(-50%, -50%);
  color: var(--brand-accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.header__right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  display: block;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-image: var(--search-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header > .container:not(.header__container) {
  position: absolute;
  top: 76px;
  left: 50%;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding-right: 15px;
  padding-left: 15px;
  transform: translateX(-50%);
}

.header__search {
  position: relative;
  height: var(--search-height);
  overflow: hidden;
  border: 2px solid var(--search-border);
  border-radius: 5px;
  background: var(--search-bg);
  color: var(--brand-dark);
}

.header__search::before {
  content: "Поиск по 9,335,153 видео";
  position: absolute;
  top: 0;
  right: calc(var(--search-button-width) + 18px);
  left: 14px;
  z-index: 2;
  display: block;
  height: var(--search-height);
  overflow: hidden;
  color: var(--search-placeholder);
  font-size: 14px;
  font-weight: 400;
  line-height: var(--search-height);
  white-space: nowrap;
  pointer-events: none;
}

.header__search input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: var(--search-height);
  padding: 0 calc(var(--search-button-width) + 14px) 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: var(--search-height);
  outline: none;
  caret-color: transparent;
  -webkit-text-fill-color: transparent;
}

.header__search input::placeholder {
  color: #a5a5a5;
  opacity: 1;
}

.header__search button {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  z-index: 3;
  width: var(--search-button-width);
  height: calc(var(--search-height) - 8px);
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: var(--brand-accent);
  color: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: calc(var(--search-height) - 8px);
  outline: none;
  -webkit-text-fill-color: transparent;
}

.header__search button::after {
  content: "Найти";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent-text);
  -webkit-text-fill-color: var(--brand-accent-text);
}

.main,
.footer {
  width: calc(100% - 20px);
  max-width: 1200px;
}

.main {
  position: relative;
  --button-bottom: 61px;
  --button-height: 20dvh;
  --button-title-gap: 10px;
  --button-padding-x: 24px;
  --button-text-reserve: 39px;
  --button-font-size: clamp(21px, 5.4vw, 25px);
  --play-width: 25px;
  --play-height: 30px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(218px, calc((100vw - 20px) * 0.563), 330px);
  margin: 0 auto;
  padding: 40px 24px 39px;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  background: var(--player-bg);
  border: 1px solid var(--player-border);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.main::before {
  content: "";
  position: absolute;
  inset: -42px;
  z-index: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.16),
      rgba(0, 0, 0, 0.22) 42%,
      rgba(0, 0, 0, 0.48)
    ),
    var(--poster-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(42px);
  transform: scale(1.25);
  opacity: 0.98;
  pointer-events: none;
}

.main::after {
  content: none;
  display: none;
}

.main > * {
  position: relative;
  z-index: 1;
}

.main__quality,
.main__time {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 3px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  text-wrap: balance;
}

.main__quality {
  left: 14px;
  background: var(--brand-accent);
}

.main__time {
  right: 14px;
  background: rgba(0, 0, 0, 0.72);
}

.main__title {
  position: absolute;
  bottom: calc(
    var(--button-height) + var(--button-bottom) + var(--button-title-gap)
  );
  right: 24px;
  left: 24px;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.main__button {
  position: absolute;
  bottom: var(--button-bottom);
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: var(--button-height);
  min-height: 0;
  margin: 0;
  padding: 0 var(--button-padding-x);
  gap: 14px;
  transform: translateX(-50%);
  border: 2px solid var(--brand-accent);
  border-radius: 7px;
  background: linear-gradient(
    180deg,
    rgba(35, 31, 32, 0.98),
    rgba(6, 6, 6, 0.98)
  );
  color: #ffffff;
  text-decoration: none;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 14px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  appearance: none;
  cursor: pointer;
}

.main__button.agree {
  display: none;
}

.main__button img {
  display: none;
}

.main__button::after {
  content: none;
  display: none;
}

.main__button::before {
  content: "";
  order: 2;
  flex: 0 0 var(--play-width);
  width: var(--play-width);
  height: var(--play-height);
  background: var(--brand-accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.main__button span {
  max-width: calc(100% - var(--button-text-reserve));
  color: #ffffff;
  font-size: var(--button-font-size);
  font-weight: 900;
  line-height: 1.02;
  text-align: left;
  text-transform: uppercase;
}

.main__button.default span::after {
  content: "Возраст";
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.main__price {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 31px;
  margin: 0;
  padding: 8px 14px;
  background: var(--page-bg);
  color: transparent;
  font-size: 0;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.main__price::before {
  content: "Контент предназначен для лиц 18 лет.";
  display: block;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.25;
  text-wrap: balance;
}

.footer {
  --footer-lock-height: 257px;
  --footer-player-pad: 10px;
  --footer-preview-height: 84px;
  --footer-preview-gap: 10px;
  --footer-preview-x: 14px;
  flex: 0 0 var(--footer-lock-height);
  display: flex;
  flex-direction: column;
  height: var(--footer-lock-height);
  margin: 0 auto;
  overflow: hidden;
  background: var(--header-bg);
  color: var(--brand-muted);
  border: 1px solid var(--brand-line);
  border-top: 0;
}

.footer::before {
  content: "";
  order: 0;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 62px;
  background-color: var(--header-bg);
  background-image: var(--meta-panel);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 355px 62px;
  border-bottom: 1px solid var(--brand-line);
}

.footer__player {
  order: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 var(--footer-player-pad);
  background: var(--header-bg);
  border-top: 0;
}

.footer__player img {
  display: block;
  width: 100%;
  height: var(--footer-preview-height);
  margin: var(--footer-preview-gap) var(--footer-preview-x) 0;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
}

.footer .container.footer__content {
  position: relative;
  order: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 18px 18px;
  overflow: visible;
  background: var(--header-bg);
}

.footer .container.footer__content::before {
  content: "Отмена";
  display: block;
  margin: 0 0 12px;
  color: #a0a0a0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.footer .footer__text {
  display: block;
  width: 100%;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  opacity: 0.78;
}

.footer__text a {
  color: inherit;
}

.footer__text.agree,
body.agree .footer__text.default {
  display: none;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.loaderItem {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 3px solid;
  border-color: rgba(255, 255, 255, 0.92) rgba(255, 255, 255, 0.92) transparent
    transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

.loaderItem::after,
.loaderItem::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent var(--brand-accent) var(--brand-accent);
  border-radius: 50%;
  animation: rotationBack 0.5s linear infinite;
}

.loaderItem::before {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.92) rgba(255, 255, 255, 0.92) transparent
    transparent;
  animation: rotation 1.5s linear infinite;
}

body.agree .main__title,
body.agree .main__button.default {
  display: none;
}

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

body.agree .main__price {
  color: var(--brand-muted);
  font-size: 12px;
}

body.agree .main__price::before {
  content: none;
  display: none;
}

body.agree .footer__text.agree {
  display: block;
}

body.agree .footer {
  --footer-player-pad: 6px;
  --footer-preview-height: 73px;
  --footer-preview-gap: 8px;
}

body.agree .footer .container.footer__content {
  padding: 10px 14px 12px;
}

body.agree .footer .container.footer__content::before {
  margin-bottom: 8px;
}

body.agree .footer .footer__text {
  font-size: 11px;
  line-height: 1.12;
}

@media (min-width: 431px) {
  body.agree .footer {
    --footer-preview-height: 70.4px;
  }
}

@media (max-width: 430px) {
  .footer {
    --footer-lock-height: 272px;
  }
}

body.loader .loading {
  display: flex;
}

body.loader .main__title,
body.loader .main__button.default,
body.loader .main__button.agree {
  display: none;
}

body.loader .main__price {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@media (max-width: 360px) {
  .header {
    margin-bottom: 64px;
  }

  .header::after {
    height: 64px;
  }

  .header > .container:not(.header__container) {
    top: 76px;
  }

  .footer::before {
    background-size: 100% 62px;
  }

  .main {
    --button-bottom: 40px;
    --button-padding-x: 22px;
    --button-text-reserve: 34px;
    --button-font-size: clamp(18px, 5.2vw, 21px);
    --play-width: 20px;
    --play-height: 24px;
    --agree-anchor-offset: -4px;
    min-height: clamp(202px, calc((100vw - 20px) * 0.58), 248px);
    padding: 34px 20px 38px;
  }

  .main__title {
    right: 18px;
    left: 18px;
    font-size: clamp(20px, 6vw, 24px);
  }

  .footer {
    --footer-lock-height: 214px;
    --footer-player-pad: 6px;
    --footer-preview-height: 56px;
    --footer-preview-gap: 6px;
    --footer-preview-x: 10px;
  }

  .main > .main__price {
    padding-right: 10px;
    padding-left: 10px;
  }

  .footer .container.footer__content {
    padding: 8px 14px 10px;
  }

  .footer .container.footer__content::before {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .footer .footer__text {
    font-size: 11px;
    line-height: 1.2;
  }

  body.agree .footer {
    --footer-player-pad: 4px;
    --footer-preview-height: 69px;
    --footer-preview-gap: 4px;
  }

  body.agree .footer .container.footer__content {
    padding: 6px 10px 6px;
  }

  body.agree .footer .container.footer__content::before {
    margin-bottom: 4px;
    font-size: 10px;
  }

  body.agree .footer .footer__text {
    font-size: 8px;
    line-height: 1.05;
  }

  body.agree .main__price {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* Search parity with prelend */
.header__search,
.header__search input,
.header__search::before,
.header__search button,
.header__search button::after {
  font-family: Arial, sans-serif;
}

.header__search {
  height: 42px;
  border: 2px solid #ef4a46;
  border-radius: 1px;
  background: #ffffff;
}

.header__search input,
.header__search::before {
  height: 42px;
  line-height: 42px;
}

.header__search input {
  padding: 0 110px 0 14px;
  border-radius: 1px;
}

.header__search button {
  top: 4px;
  bottom: auto;
  width: 96px;
  height: 32px;
  padding: 0 10px 0 32px;
  border: 0;
  border-radius: 1px;
  background: #ef4a46;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  color: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
  -webkit-text-fill-color: transparent;
}

.header__search button::after {
  align-items: center;
  justify-content: center;
  padding: 0 10px 0 32px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(1px);
  -webkit-text-fill-color: #ffffff;
}
