/* ===== TÀI KHOẢN v137: Trang Tin đã lưu route riêng ===== */
/* SP: trang /tin-da-luu dùng file riêng, giao diện giống mẫu tin đã lưu */
.routePage[data-route-page="accountSavedPosts"]{
  padding-top:0;
  background:#fff;
}

body.is-account-saved-posts-route .appHeader,
body.is-account-saved-posts-route .bottomNav{
  display:none;
}

body.is-account-saved-posts-route,
body.is-account-saved-posts-route .pageShell{
  padding-top:0;
  padding-bottom:0;
  background:#fff;
}

.savedPostsPage{
  min-height:100dvh;
  padding:calc(6px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); /* SP có thể sửa lề trang Tin đã lưu tại đây */
  background:#fff;
  color:#000;
}

.savedPostsHead{
  height:58px; /* SP có thể sửa chiều cao đầu trang Tin đã lưu tại đây */
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  margin:0 -16px 24px;
  padding:0 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.savedPostsHead h1{
  margin:0;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:20px; /* SP có thể sửa cỡ chữ tiêu đề Tin đã lưu tại đây */
  line-height:1.05;
  font-weight:588;
  color:#000;
}

.savedPostsClose{
  width:44px; /* SP có thể sửa kích thước nút X Tin đã lưu tại đây */
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#444;
  font-size:34px; /* SP có thể sửa cỡ dấu X Tin đã lưu tại đây */
  line-height:1;
  font-weight:600;
  cursor:pointer;
  touch-action:manipulation;
}

.savedPostsCount{
  margin:0 0 20px;
  font-size:20px; /* SP có thể sửa cỡ chữ dòng Có X tin đã lưu tại đây */
  line-height:1.2;
  font-weight:588;
  color:#000;
}

.savedPostsList{
  display:flex;
  flex-direction:column;
  gap:16px; /* SP có thể sửa khoảng cách giữa các tin đã lưu tại đây */
}

.savedPostsCard{
  box-sizing:border-box;
  width:100%;
  min-height:130px; /* SP có thể sửa chiều cao tối thiểu card Tin đã lưu tại đây */
  display:grid;
  grid-template-columns:88px minmax(0,1fr) 48px; /* SP có thể sửa kích thước cột ảnh/nút lưu tại đây */
  align-items:center;
  gap:16px;
  padding:16px; /* SP có thể sửa padding card Tin đã lưu tại đây */
  border:1px solid rgba(0,0,0,.10);
  border-radius:22px; /* SP có thể sửa bo góc card Tin đã lưu tại đây */
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.035);
  cursor:pointer;
  touch-action:manipulation;
}

.savedPostsCard__thumb{
  width:88px; /* SP có thể sửa kích thước ảnh card Tin đã lưu tại đây */
  height:88px;
  display:block;
  object-fit:cover;
  border-radius:8px;
  background:#eee;
}

.savedPostsCard__info{
  min-width:0;
}

.savedPostsCard__title{
  margin:0 0 14px;
  color:#000;
  font-size:18px; /* SP có thể sửa cỡ chữ tiêu đề tin đã lưu tại đây */
  line-height:1.22;
  font-weight:500;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.savedPostsCard__price{
  color:#ff2f86;
  font-size:20px; /* SP có thể sửa cỡ chữ giá tin đã lưu tại đây */
  line-height:1.18;
  font-weight:588;
}

.savedPostsCard__save{
  width:48px; /* SP có thể sửa kích thước nút lưu trong Tin đã lưu tại đây */
  height:48px;
  border:0;
  background:transparent;
  color:#ff2f86;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  touch-action:manipulation;
}

.savedPostsCard__save svg{
  width:34px; /* SP có thể sửa cỡ icon lưu trong Tin đã lưu tại đây */
  height:34px;
  display:block;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.14));
}

.savedPostsCard__save .saveIcon__fill{
  opacity:1;
}

.savedPostsLoading,
.savedPostsEmpty{
  padding:22px 0;
  color:rgba(0,0,0,.62);
  font-size:16px;
  line-height:1.4;
  font-weight:400;
}

.savedPostsLoginBtn{
  width:100%;
  min-height:54px;
  margin-top:10px;
  border:1px solid #ff2f86;
  border-radius:18px;
  background:#ff2f86;
  color:#fff;
  font-size:18px;
  font-weight:588;
  cursor:pointer;
  touch-action:manipulation;
}

@media (max-width:390px){
  .savedPostsPage{padding-left:14px;padding-right:14px;}
  .savedPostsHead{margin-left:-14px;margin-right:-14px;}
  .savedPostsCard{grid-template-columns:82px minmax(0,1fr) 44px;gap:14px;padding:14px;}
  .savedPostsCard__thumb{width:82px;height:82px;}
  .savedPostsCard__title{font-size:18px;}
  .savedPostsCard__price{font-size:19px;}
}

/* SP v422: thêm tab Tin đã lưu / Video đã lưu trong trang Tin đã lưu */
.savedPostsTabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px; /* SP có thể sửa khoảng cách 2 tab Tin đã lưu / Video đã lưu tại đây */
  margin:0 0 18px;
  padding:4px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px; /* SP có thể sửa bo góc khung tab Tin đã lưu tại đây */
  background:#f7f7f7;
}

.savedPostsTab{
  min-height:44px; /* SP có thể sửa chiều cao tab Tin đã lưu / Video đã lưu tại đây */
  border:0;
  border-radius:14px;
  background:transparent;
  color:#000;
  font-size:18px; /* SP có thể sửa cỡ chữ tab Tin đã lưu / Video đã lưu tại đây */
  line-height:1.1;
  font-weight:588;
  cursor:pointer;
  touch-action:manipulation;
}

.savedPostsTab.is-active{
  background:#fff;
  color:#ff2f86;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.savedVideosList{
  display:flex;
  flex-direction:column;
  gap:16px; /* SP có thể sửa khoảng cách giữa các video đã lưu tại đây */
}

.savedVideoCard{
  box-sizing:border-box;
  width:100%;
  min-height:132px; /* SP có thể sửa chiều cao tối thiểu card Video đã lưu tại đây */
  display:grid;
  grid-template-columns:118px minmax(0,1fr) 48px; /* SP có thể sửa kích thước cột ảnh/nút lưu video tại đây */
  align-items:center;
  gap:16px;
  padding:16px; /* SP có thể sửa padding card Video đã lưu tại đây */
  border:1px solid rgba(0,0,0,.10);
  border-radius:22px; /* SP có thể sửa bo góc card Video đã lưu tại đây */
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.035);
  cursor:pointer;
  touch-action:manipulation;
}

.savedVideoCard__thumbWrap{
  position:relative;
  width:118px; /* SP có thể sửa chiều ngang ảnh video đã lưu tại đây */
  height:82px; /* SP có thể sửa chiều cao ảnh video đã lưu tại đây */
  border-radius:10px;
  overflow:hidden;
  background:#111;
}

.savedVideoCard__thumb{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.savedVideoCard__play{
  position:absolute;
  left:50%;
  top:50%;
  width:34px; /* SP có thể sửa kích thước nút play video đã lưu tại đây */
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:15px;
  line-height:1;
  padding-left:2px;
}

.savedVideoCard__info{min-width:0;}

.savedVideoCard__title{
  margin:0 0 12px;
  color:#000;
  font-size:18px; /* SP có thể sửa cỡ chữ tiêu đề video đã lưu tại đây */
  line-height:1.22;
  font-weight:500;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.savedVideoCard__meta{
  color:rgba(0,0,0,.62);
  font-size:16px; /* SP có thể sửa cỡ chữ phụ video đã lưu tại đây */
  line-height:1.2;
  font-weight:400;
}

.savedVideoCard__save{
  width:48px; /* SP có thể sửa kích thước nút lưu video đã lưu tại đây */
  height:48px;
  border:0;
  background:transparent;
  color:#ff2f86;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  touch-action:manipulation;
}

.savedVideoCard__save svg{
  width:34px; /* SP có thể sửa cỡ icon lưu video đã lưu tại đây */
  height:34px;
  display:block;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.14));
}

.savedVideoCard__save .saveIcon__fill{opacity:1;}

@media (max-width:390px){
  .savedVideoCard{grid-template-columns:104px minmax(0,1fr) 44px;gap:14px;padding:14px;}
  .savedVideoCard__thumbWrap{width:104px;height:74px;}
  .savedPostsTab{font-size:17px;}
}
