:root {
  --background-color: #070709;
  --background-second: #070709;
  --text-color: #ffffff;
  --subtext-color: rgba(255, 255, 255, 0.6);
  --btn-bg-color: rgba(255, 30, 90, 0.85);
  --btn-bg-solid: rgba(190, 0, 60, 0.9);
  --btn-text-color: #ffffff;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
}

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

@font-face {
  font-family: 'Manrope';
  src: url('../static/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../static/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--text-color);
  font-weight: 400;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: #f5f5f5;
  box-sizing: border-box;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  line-height: 1;
  text-size-adjust: none;
}

a {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.85);
  text-size-adjust: none;
}

div#app {
  width: 100%;
}

.cla::after {
  content: '';
  clear: both;
  display: table;
}

#header {
  border-top: 2px solid #666565;
  background-color: #dbdbdb92;
  margin: 0 1px 1px 1px;
}

.header__top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 4px;
  background-color: #e8ebf1;
}

.header__top-line-text {
  float: left;
  padding: 0.2% 0 0.2% 0.3%;
  font-size: 12px;
  line-height: 18px;
}

.header__top-line-text span {
  vertical-align: middle;
  display: inline-block;
  line-height: 18px;
}

.over18 {
  background-color: #ef4a46;
  display: inline-block;
  border-radius: 3px;
  padding: 0 3px 0 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.header__top-line-menu {
  flex: 1;
  padding-left: 10px;
}

.header__top-line-menu .reset-list {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  color: rgb(64, 64, 64);
  list-style: none;
}

.header__top-line-menu .reset-list li {
  flex: none;
}

.header__top-line-menu a {
  font-size: 12px;
  font-weight: 600;
  color: #ef4a46;
  text-decoration: none;
  white-space: nowrap;
}

.header__top-line-menu a:hover {
  text-decoration: underline;
}

.close-btn {
  display: none;
  cursor: pointer;
  color: #959595;
  transition: color 0.2s;
  align-items: center;
}

.close-btn:hover {
  color: #ff1e5a;
}

body.agree .close-btn {
  display: flex;
}

.header__body-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
  background-color: #ffffff;
}

.header__logo-container .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-container img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.header__body-menu {
  flex: 1;
}

.header__body-menu .reset-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.header__body-menu .reset-list li {
  flex: none;
}

.header__body-menu .reset-list li a {
  display: block;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgb(64, 64, 64);
  text-decoration: none;
  text-align: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.header__body-menu .reset-list li a.active {
  color: #202020;
  font-weight: 900;
}

.header__account-menu svg {
  display: block;
  color: #404040;
}

.header__account-menu .reset-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  background-color: #ffffff;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(64, 64, 64);
}

.header-icon-btn svg {
  stroke: rgb(64, 64, 64);
  stroke-width: 3;
  width: 16px;
  height: 16px;
}

.header-icon-btn:hover svg {
  stroke: #ef4a46;
}

.video-title {
  background-color: #dbdbdb92;
  padding: 5px 10px 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.middle-box {
  height: 100%;
  width: 100%;
  padding-top: 2px;
  background: #f5f5f5;
  overflow-y: auto;
}

.player {
  height: 45svh;
  background: #0c0c0c;
  margin: 0px auto 0px;
  position: relative;
}

.player-bar {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 36px;
  background: url('../assets/images/player-bar-bg.webp') center center repeat-x;
  opacity: 0;
}

.player-bar::before,
.player-bar::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

.player-bar::before {
  background: url('../assets/images/player-bar-left.webp') left center no-repeat;
}

.player-bar::after {
  background: url('../assets/images/player-bar-right.webp') right center no-repeat;
}

.btn-box {
  position: absolute;
  left: 0px;
  right: 0px;
  top: auto;
  bottom: 15px;
  z-index: 15;
  display: flex;
  flex-direction: column;
}

.btn {
  display: block;
  max-width: 480px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border: none;
  background: rgba(54, 53, 53, 0.85);
  color: rgb(255, 255, 255);
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
  height: auto;
  line-height: 1.2;
  padding: 20px;
}

.btn-text {
  display: inline-block;
  padding-right: 40px;
  position: relative;
  width: 100%;
}

.btn-text1 {
  line-height: normal;
  display: flex;
  padding: inherit;
  box-sizing: border-box;
  position: relative;
  justify-content: center;
  align-items: center;
}

.btn-text::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 0px;
  width: 0px;
  right: 55px;
  margin-top: -20px;
  border-width: 20px 0px 20px 20px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  border-image: initial;
}

.price {
  color: rgb(212, 212, 212);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  padding-top: 4px;
}

.price-bg {
  display: inline-block;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 8px;
  border-radius: 4px;
}

.video-stats {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid #ebebeb;
  flex-wrap: wrap;
  justify-content: center;
}

.video-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-likes,
.stat-dislikes {
  color: #888;
}

.video-meta-block {
  background: #fff;
  padding: 4px 10px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #ebebeb;
  line-height: 1.6;
}

.video-meta-block .meta-label {
  color: #666;
  margin-right: 4px;
}

.video-meta-block .tag-link {
  color: #f72912;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  cursor: pointer;
}

.related-title {
  background-color: #dbdbdb92;
  padding: 6px 10px 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid #c0392b;
  margin-top: 3px;
}

.related {
  padding-top: 0;
  display: flex;
  background: #fff;
}

.related img:first-child {
  width: 50%;
  height: 150px;
  object-fit: cover;
  border: 1px solid #eee;
}

.related img:last-child {
  width: 50%;
  height: 150px;
  object-fit: cover;
  border: 1px solid #eee;
}

.footer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  padding-bottom: 2px;
  background: #ffffff;
  color: rgba(182, 182, 182, 0.683);
  font-size: 10px;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

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

.hideThis {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.showThis {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.footer__agree {
  display: none;
}

body.agree .footer__default {
  display: none;
}

body.agree .footer__agree {
  display: block;
}

@media (max-width: 380px) and (orientation: portrait) {
  .player {
    height: 42svh;
  }
  .btn-box {
    bottom: 10px;
  }
  .btn {
    height: 20vh;
    line-height: 13vh;
    padding: 0;
    font-size: 28px;
  }
  .related {
    padding-top: 2px;
  }
}

@media (min-width: 381px) and (max-width: 480px) and (orientation: portrait) {
  .player {
    height: 50svh;
  }
  .btn-box {
    bottom: 10px;
  }
  .btn {
    height: 22vh;
    line-height: 15vh;
    padding: 0;
    font-size: 32px;
  }
  .related {
    padding-top: 2px;
  }
}

@media only screen and (orientation: landscape) and (max-height: 430px) {
  .player {
    height: 58svh;
    min-height: 180px;
  }
  .btn-box {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .btn {
    height: auto;
    line-height: 1.2;
    padding: 20px 2px;
    font-size: 16px;
    max-width: 450px;
    width: 80%;
  }
  .btn-text {
    padding-right: 30px;
  }
  .btn-text::before {
    right: 10px;
    margin-top: -8px;
    border-width: 8px 0 8px 8px;
  }
  .price {
    font-size: 10px;
    padding-top: 2px;
  }
  .related img:first-child,
  .related img:last-child {
    display: none;
  }
}

@media only screen and (min-width: 481px) and (max-width: 1024px) and (orientation: portrait) {
  .player {
    height: 55svh;
    min-height: 350px;
  }
  .btn-box {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .btn {
    height: auto;
    line-height: 1.3;
    padding: 40px 20px;
    font-size: 36px;
    max-width: none;
    width: 80%;
  }
  .btn-text::before {
    right: 30px;
    margin-top: -16px;
    border-width: 16px 0 16px 16px;
  }
}

@media only screen and (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) and (min-height: 431px) {
  .player {
    height: 80svh;
    min-height: 400px;
  }
  .btn-box {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .btn {
    height: auto;
    line-height: 1.3;
    padding: 50px 20px;
    font-size: 36px;
    max-width: none;
    width: 80%;
  }
  .btn-text::before {
    right: 30px;
    margin-top: -14px;
    border-width: 14px 0 14px 14px;
  }
}

@media (min-width: 1025px) {
  .player {
    height: 88vh;
    min-height: 600px;
  }
  .btn-box {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .btn {
    height: auto;
    line-height: 1.3;
    padding: 40px 20px;
    font-size: 44px;
    max-width: 600px;
    width: 70%;
  }
  .btn-text::before {
    right: 30px;
    margin-top: -12px;
    border-width: 12px 0 12px 12px;
  }
  .related img:first-child,
  .related img:last-child {
    display: none;
  }
}
