body {
  background: linear-gradient(rgb(7, 10, 32), rgb(5, 5, 17));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: white;
}

html,
body {
  overflow-x: hidden;
  touch-action: pan-y;
  user-select: none;
  height: 15 0%;
  margin: 0;
  scroll-behavior: smooth;
  font-family: "Playfair Display", system-ui, -apple-system, sans-serif;
}

html,
:host {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

:root {
  --back-lock-vidio: linear-gradient(
    145deg,
    rgba(161, 108, 185, 0.712),
    rgba(145, 85, 136, 0.808),
    rgba(111, 187, 111, 0.719)
  );
}

main {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-width: 465px;
  min-width: 325px;
  gap: 10px;
}

.name {
  margin: auto;
}

.vidiomain {
  margin: auto;
  width: 87%;
  height: 310px;
  background: rgba(151, 151, 151, 0.068);
  border: 1px solid rgba(173, 173, 173, 0.164);
  border-radius: 19px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invidio {
  background: var(--back-lock-vidio);
  width: 100%;
  height: 75%;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 100;
  transition: 1s;
  overflow: hidden;
}

.invid-on {
  background: linear-gradient(
    260deg,
    rgb(235, 185, 194),
    rgb(255, 255, 188),
    rgb(211, 255, 211),
    pink
  );
}

.mainvid-on {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 100;
  color: black;
  text-align: center;
}

.progress-container {
  width: 50%;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin: auto;
  position: relative;
}

.loadd {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: auto;
  top: 50px;
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(116, 116, 116, 0.603);
  border-top: 3px solid #4d34db;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2c22b8, #6a13b1);
  border-radius: 10px;
  animation: loading 4s ease-in forwards;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  20% {
    width: 25%;
  }
  40% {
    width: 50%;
  }
  60% {
    width: 75%;
  }
  80% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}

.onvidio {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 101;
  border-radius: 14px;
  backdrop-filter: blur(100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 1s;
}

.wsk {
  margin: auto;
  border-radius: 100%;
  border: 2px solid white;
  width: 20px;
  height: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.errorvidio {
  background: rgba(199, 40, 40, 0.267);
  margin: auto;
  padding: 12px;
  border-radius: 50px;
  border: 2px solid rgba(173, 36, 36, 0.116);
}

.openvidio {
  margin: auto;
  padding: 15px;
  background: rgba(14, 14, 14, 0.877);
  width: 70%;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.678);
  font-size: 13px;
  position: relative;
  bottom: 15px;
}

.media {
  width: 95.5%;
  height: 40px;
  background: rgba(151, 151, 151, 0.068);
  border: 1px solid rgba(173, 173, 173, 0.164);
  border-radius: 14px;
  padding: 7px;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 8px;
}

.mda {
  background: rgba(151, 151, 151, 0.096);
  border: 1px solid rgba(173, 173, 173, 0.164);
  border-radius: 10px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 10px;
  padding-top: 10px;
  transition: 0.3s;
}

.play1 {
  transform: rotate(180deg);
}

.next1 {
  margin-left: auto;
}

.mda:hover {
  background: rgba(151, 151, 151, 0.205);
}

.allvidio {
  margin: auto;
  width: 87%;
  background: rgba(151, 151, 151, 0.068);
  border: 1px solid rgba(173, 173, 173, 0.164);
  border-radius: 19px;
  padding: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.vidio {
  width: 160px;
  height: 140px;
  border: 1px solid rgba(173, 173, 173, 0.164);
  border-radius: 14px;
  position: relative;
  z-index: 102;
  overflow: hidden;
  background-color: rgb(28, 27, 41);
  display: flex;
  flex-direction: column;
}

.onblur {
  position: relative;
  z-index: 103;
  backdrop-filter: blur(200px);
}

.gradn {
  width: 101%;
  height: 75%;
  background: linear-gradient(
    260deg,
    rgb(235, 185, 194),
    rgb(255, 255, 188),
    rgb(211, 255, 211),
    pink
  );
  position: relative;
  top: 0;
}

.namevid {
  text-align: left;
  font-size: 13px;
  margin-left: 15px;
}

.gradn::after {
  position: absolute;
  content: "🔒Yangilangandan keyin mavjud";
  text-wrap: wrap;
  width: 100%;
  height: 39px;
  background-color: rgba(0, 0, 0, 0.527);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: center;
  font-size: 14px;
}



@media (max-width: 400px) {
  main {
    width: 95%;
    margin: auto;
    transform: translatex(50%);
    position: relative;
    left: -50%;
  }

  .allvidio, .vidiomain {
    width: 100%;
    margin: auto;
  }
}








