:root {
  --gray-color: #6c757d;
  --border-radius: 1rem;
  --lite-bgc: #6c757d;
  --border-color: rgba(81, 81, 81, 0.356);
  --border-color-b: rgb(81, 81, 81);

  /* body */

  --background-color: #fff;
  --color: #000;

  /* card */

  --them-bgc: #bfbfbf;
  --them-color: black;

  /* menu */
  /* --menu-bgc: #2f2f2f;
  --menu-hover: #1515157b; */

  --menu-bgc: #bfbfbf;
  --menu-hover: #7575757b;

  /* like color */

  --like-color: red;
  --co-color: #3eadbc;

  /* icon color */

  --icon-color: #000;
}

.them {
  background-color: var(--them-bgc);
  color: var(--them-color);
}

.post_up {
  display: none;
}

.post_upload_can {
  display: flex;
  position: fixed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -70px);
  height: 150px;
  width: 95%;
  max-width: 650px;
  height: fit-content;
  border-radius: 1.5rem;
}

.content-editor {
  min-height: 80px;
  width: 90%;
  padding: 1rem;
  border-radius: var(--border-radius);
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.content-editor:empty:before {
  content: attr(placeholder);
  color: var(--gray-color);
  pointer-events: none;
  display: block;
}

.post_up > .post_upload_can > .tools_up {
  display: flex;
  width: 90%;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 1rem;
}

.post_up > .post_upload_can > .tools_up > .s_btn > button {
  padding: 0.4rem;
  color: inherit;
  min-width: 80px;
  cursor: pointer;
  border: none;
  background-color: #3eadbc;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  &:hover {
    background-color: #387d6c;
  }
}

.post_up > .post_upload_can > .tools_up > .s_btn > .Cancel {
  background: var(--lite-bgc);
}

.post_up > .post_upload_can > .tools_up > .a_btn {
  display: flex;
  gap: 1rem;
}
.post_up > .post_upload_can > .tools_up > .a_btn > div {
  display: flex;
  position: relative;
  overflow: hidden;
}

.post_up > .post_upload_can > .tools_up > .a_btn > div > input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.post_up > .post_upload_can > .tools_up > .a_btn > div > i {
  cursor: pointer;
  font-size: 1.2rem;
}

/* preview image and video */

.post_up > .post_upload_can > .view_image_video {
  display: flex;
  /* flex-wrap: wrap; */
  width: 90%;
  max-width: 100%;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
}

.post_up > .post_upload_can > .view_image_video > div {
  position: relative;
}

.post_up > .post_upload_can > .view_image_video > div > img {
  width: 150px;
  cursor: pointer;
  aspect-ratio: 2/1.2;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.post_up > .post_upload_can > .view_image_video > div > video {
  width: 150px;
  aspect-ratio: 2/1.2;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.post_up > .post_upload_can > .view_image_video > div > .fa-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  opacity: 0.5;
  text-shadow: 0 0 7px black;
}

.post_up > .post_upload_can > .view_image_video > div > button {
  background-color: inherit;
  position: absolute;
  border: none;
  color: rgba(255, 0, 0, 0.792);
  right: 5px;
  top: 0;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 1;
}

/* preview image video */

.preview_image_video_s {
  display: none;
  align-items: center;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98%;
  max-width: 650px;
  height: 97dvh;
  max-height: fit-content;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.preview_image_video_s > div {
  width: 100%;
  height: auto;
  overflow: auto;
}

.preview_image_video_s > div > img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  padding: 1rem 0 0 0;
}

.preview_image_video_s > div > video {
  width: 100%;
  max-height: 100%;
}

.preview_image_video_s > .image_preview_jj {
  display: flex;
  gap: 10px;
  height: 90%;
  width: fit-content;
  max-width: 650px;
  margin-top: 10px;
  margin-bottom: 10px;
  /* overflow: auto; */
  scrollbar-width: none;
}

.preview_image_video_s > .btn_hhhh,
.btn_hhhh {
  display: flex;
  width: 90%;
  justify-content: space-between;
}

.preview_image_video_s > div > button,
.btn_hhhh > button {
  padding: 3px;
  min-width: 100px;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-bottom: 1rem;
}

/* ! views user post */

.view {
  display: none;
  position: fixed;
  width: 100%;
  max-width: 900px;
  max-height: 95vh;
  min-height: 90dvh;
  gap: 10px;
  padding: 1rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1rem;
}

.view > .close_btn_jj {
  position: absolute;
  cursor: pointer;
  left: 25px;
  z-index: 1;
}

.view > .close_btn_jj > i {
  text-shadow: 0 0 4px black;
  height: 100%;
}

.view > .post_view {
  display: flex;
  width: 50%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.view > .post_view > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.view > .post_view > video {
  width: 100%;
  max-height: 100%;
}

.view > .post_comment_view {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 10px;
  min-height: 100%;
  justify-content: space-between;
}

.view > .post_comment_view > .user_v {
  display: flex;
  width: 100%;
  justify-content: space-around;
  position: relative;
}

.view > .post_comment_view > .user_v > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1rem;
  cursor: pointer;
}

.view > .post_comment_view > .user_v > .u_name {
  display: flex;
  flex: 1;
  margin-left: 20px;
  flex-direction: column;
  justify-content: center;
}

.view > .post_comment_view > .user_v > .u_name > .full_name {
  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  opacity: 0.95;
  cursor: pointer;
  width: fit-content;
}

.view > .post_comment_view > .user_v > .u_name > .user_name_time {
  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  opacity: 0.8;
  cursor: pointer;
  width: fit-content;
}

.view > .post_comment_view > .user_v > .u_name > .user_name_time > span {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 1rem;
}

.view > .post_comment_view > .user_v > .menu {
  font-size: 1.5rem;
  cursor: pointer;
}

.view > .post_comment_view > .user_v > .menu_cantenr {
  display: none;
  position: absolute;
  cursor: pointer;
  right: 1rem;
  top: 2rem;
  background-color: var(--menu-bgc);
  border-radius: 0.8rem;
  box-shadow: 0 0 7px #17171785;
  z-index: 1;
}

.view > .post_comment_view > .user_v > .menu_cantenr > ul {
  list-style-type: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.view > .post_comment_view > .user_v > .menu_cantenr > ul > li {
  padding: 8px;
  border-radius: 0.5rem;
  &:hover {
    background-color: var(--menu-hover);
  }
}

.view > .post_comment_view > .view_comm {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  flex: 1;
  gap: 10px;
  align-items: center;
}

.view > .post_comment_view > .view_comm > p {
  width: 100%;
  max-width: 400px;
  margin-left: 1rem;

  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  white-space: pre-line; /* or pre-wrap */
}

.view > .post_comment_view > .view_comm > .comment_h {
  display: flex;
  flex-direction: column;
  min-width: 90%;
  max-width: 100%;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

.view > .post_comment_view > .view_comm > .comment_h > div {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color-b);
  padding: 0.4rem;
  border-radius: var(--border-radius);
  min-width: 300px;
  max-width: 400px;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .com_meesage {
  opacity: 0.8;
  margin-left: 10px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .uer_c {
  display: flex;
  width: 100%;
  margin: 0px 0 10px 0;
  position: relative;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .uer_c
  > .user_jkd {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .uer_c > div > p {
  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  opacity: 0.95;
  cursor: pointer;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .uer_c
  > div
  > span {
  font-size: 0.8rem;
  margin-left: 10px;
  opacity: 0.7;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .uer_c > span {
  font-size: 1.5rem;
  position: absolute;
  top: -10px;
  right: 10px;
  cursor: pointer;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .uer_c
  > div
  > img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .tools_coo {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 1rem;
  position: relative;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .tools_coo > span {
  display: flex;
  gap: 5px;
}
.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .tools_coo
  > span
  > p {
  color: var(--co-color);
  cursor: pointer;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > .tools_coo
  > span
  > span {
  font-size: 1rem;
}

.replies_comm {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  align-items: center;
  padding: 10px;
  left: 0;
  top: 17px;
  margin-top: 10px;
  z-index: 1;
  max-height: 60dvh;
  box-shadow: 0 0 10px var(--menu-bgc);
}

.replies_comm > span {
  display: flex;
  width: 97%;
  gap: 10px;
}

.replies_comm > span > button {
  width: 50px;
  cursor: pointer;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color-b);
  background-color: inherit;
  color: inherit;
  box-shadow: inset 0 0 10px var(--border-color);
}

.replies_comm > span > input {
  width: 90%;
  background-color: inherit;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: inherit;
  padding: 6px;
}

.comment_comment_bo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  overflow: auto;
  scrollbar-width: none;
}

.comment_comment {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  padding: 10px 10px 4px 10px;
  border-radius: 0.7rem;
}
.comment_comment > div {
  display: flex;
  gap: 10px;
}
.comment_comment > div > img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
}
.comment_comment > pre {
  margin-left: 10px;
  padding: 4px;
}

.comment_comment > .comment_tools_c {
  color: var(--co-color);
  font-size: 0.7rem;
}
.comment_comment > .comment_tools_c > span {
  cursor: pointer;
}

.view > .post_comment_view > .comment_and_like {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view > .post_comment_view > .comment_and_like > .send_comment {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.view > .post_comment_view > .comment_and_like > .send_comment > input {
  width: 90%;
  font-size: 1rem;
  padding: 10px;
  border-radius: 0.7rem;
  border: 1px solid var(--border-color);
  outline: none;
  background-color: inherit;
  color: inherit;
}

.view > .post_comment_view > .comment_and_like > .send_comment > button {
  width: 100px;
  border-radius: 0.7rem;
  border: 1px solid var(--border-color);
  background-color: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 10px var(--menu-bgc);
}

.view > .post_comment_view > .comment_and_like > .toole_p {
  display: flex;
  justify-content: space-between;
}

.view > .post_comment_view > .comment_and_like > .toole_p > div {
  display: flex;
  gap: 10px;
  font-size: 1.3rem;
}

.view > .post_comment_view > .comment_and_like > .toole_p > div > span {
  font-size: 1rem;
}

.view > .post_comment_view > .comment_and_like > .toole_p > div > i {
  cursor: pointer;
}

/* like color */

.fa-heart {
  color: var(--co-color);
}

.like_true {
  color: var(--like-color);
  cursor: pointer;
}

/* post menu */
.menu_post_user_c {
  display: none;
  position: absolute;
  cursor: pointer;
  right: 1rem;
  top: 2rem;
  background-color: var(--menu-bgc);
  border-radius: 0.8rem;
  box-shadow: 0 0 7px #17171785;
  z-index: 1;
  transition: all 0.2s ease;
  overflow: hidden;
}

.menu_post_user_c > ul {
  list-style-type: none;
  min-width: 150px;
}

.menu_post_user_c > ul > li {
  padding: 10px 1rem;
  width: 100%;
  &:hover {
    box-shadow: 0 0 7px var(--menu-hover);
  }
}

/* alert message */

.check_yes_no {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.6rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  align-items: center;
}

.check_yes_no > .btn_alert_h {
  display: flex;
  border-radius: 1rem;
  justify-content: space-between;
  gap: 1rem;
  width: 90%;
}
.check_yes_no > .close_btn_al {
  position: absolute;
  padding: 10px;
  top: 0;
  right: 0;
  cursor: pointer;
}
.check_yes_no > p {
  padding: 1.3rem 3rem;
  font-family: var(--font-ss);
}
.check_yes_no > .btn_alert_h > button {
  padding: 7px;
  border-radius: 0.7rem;
  min-width: 70px;
  cursor: pointer;
  border: 1px solid var(--menu-bgc);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.756);
  &:hover {
    box-shadow: inset 0 0 10px rgba(33, 176, 237, 0.756);
  }
}

#alert_box_SS {
  left: 50%;
  top: 10px;
  transform: translate(-50%, 0);
  max-width: 600px;
}
#alert_box_SS > p {
  padding: 1rem;
}
/* 
${(() => {
                     if (!post?.media[0]?.url) {
                       return ``;
                     } else {
                       return `<img src="${post?.media[0]?.url}">`;
                     }
                   })()} */

/* <button id="stopBtn" class="danger" aria-label="Stop" title="Stop (S)">
          <svg
            width="20"
            height="20"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
            stroke-linejoin="round"
            aria-hidden="true"
          >
            <rect x="6" y="6" width="12" height="12"></rect>
          </svg>
        </button> */

/* post video */

.video-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-height: 550px;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: var(--card-bgc);
  box-shadow: 0 0 4px 0rgba (0, 0, 0, 0.264), 0 0 4px rgba(255, 255, 255, 0.779);
  position: relative;
}

.video-wrap > video {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  &:hover {
    .puss_play_div > button {
      opacity: 1;
    }
  }
}

.video-wrap > video > source {
  width: 100%;
  /* width: 100%; */
  border-radius: 1rem;
}

.puss_play_div {
  display: flex;
  position: absolute;
}

.puss_play_div > button {
  appearance: none;
  border: 0;
  background: rgba(24, 24, 24, 0.789);
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  &:hover {
    opacity: 1;
  }
}

/* Controls */
.controls {
  position: absolute;
  bottom: 0;
  right: 0;
  /* width: 100%; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.controls button {
  appearance: none;
  border: 0;
  background: rgba(29, 29, 29, 0.462);
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.controls button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.controls button:active {
  transform: translateY(1px);
}
.controls button:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

.controls .primary {
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.25),
    rgba(96, 165, 250, 0.15)
  );
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.controls .danger {
  background: linear-gradient(
    180deg,
    rgba(248, 113, 113, 0.2),
    rgba(248, 113, 113, 0.12)
  );
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* .time {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-feature-settings: "tnum" on, "liga" off;
} */
/* .time small {
  color: var(--muted);
} */

.progress {
  --h: 8px;
  flex: 1 1 200px;
  height: var(--h);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.progress .bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.progress input[type="range"] {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent);
}
.progress input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent);
}
.progress input {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 781px) {
  .view {
    /* position: relative; */
    flex-direction: column;
    align-items: center;
    height: fit-content;
    max-height: 100%;
    width: 100%;
    overflow: none;
    /* z-index: 0; */
    top: 0;
    left: 0;
    padding: 0;
    border-radius: 0;
    transform: none;
    /* margin-bottom: 100px; */
    /* max-height: fit-content; */
    overflow: scroll;
  }
  .view > .post_comment_view {
    width: 90%;
    max-height: fit-content;
    border-radius: none;
  }
  .view > .post_view {
    width: 100%;
    height: fit-content;
    align-items: flex-start;
    max-height: fit-content;
    overflow: unset;
    border-radius: none;
  }

  .view > .post_view > img {
    /* max-width: 100%; */
    height: 100%;
    object-fit: cover;
  }

  .view > .post_view > video {
    width: 100%;
    max-height: 100%;
  }

  .view > .post_view > video {
    width: unset;
    max-width: 100%;
    /* height: 100%; */
    max-height: unset;
  }
  .view > .post_comment_view {
    max-width: 100%;
    height: fit-content;
    max-height: fit-content;
  }
  .view > .post_comment_view > .view_comm {
    height: fit-content;
    max-height: fit-content;
    padding-bottom: 100px;
    overflow: visible;
  }

  .view > .close_btn_jj {
    position: fixed;
    top: 1rem;
    left: 1rem;
  }

  .comment_and_like {
    width: 100%;
    position: fixed;
    left: 0;
    padding: 10px;
    bottom: 0px;
    border-radius: 3px;
  }
}

/*  */

.video_show_mu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: fit-content;
  max-height: 500px;
  min-width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: var(--card-bgc);
  box-shadow: 0 0 4px 0rgba (0, 0, 0, 0.264), 0 0 4px rgba(255, 255, 255, 0.779);
  position: relative;
}

.video_show_mu video {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
