/* =========================
   12. 我的喜欢（fav-*）最终合并版
   - 外层：.fav-table（横向滚动）
   - 内层：.fav-table-body（行容器）
   ========================= */

.fav-page{
  padding: 10px 8px 14px;
  border-radius: 18px;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== Hero：两列等高（封面跟右侧一样高） ===== */
.fav-hero{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: stretch; /* ✅ 两列等高 */
  padding: 10px 10px 14px;
}

.fav-cover-wrap{
  position: relative;
  width: 100%;
  flex: 0 0 auto;
}

.fav-cover{
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1; /* ✅ 正方形 */
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: 0 18px 46px rgba(17,24,39,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-cover img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ 封面爱心：SVG（改成你的真实路径） */
.fav-cover-heart{
  position: relative;
  z-index: 2;
  width: 85px;
  height: 85px;
  pointer-events: none;
  opacity: .95;
  background: url('/UQ/UQ-img/heart.svg') no-repeat center;
  background-size: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}

.fav-meta{
  padding-top: 8px;
  min-width: 240px;
}

.fav-title{
  font-size: 34px;
  font-weight: 1000;
  color: #111827;
  letter-spacing: .5px;
  margin: 0 0 10px;
}

.fav-sub{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(17,24,39,.65);
  font-weight: 800;
}

/* 没头像时的 fallback */
.fav-avatar{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(79,70,229,.14);
  color: #111827;
  font-weight: 1000;
}

/* ✅ 用户头像（有图时） */
.fav-avatar-img{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  border: 1px solid rgba(148,163,184,.45);
  background: rgba(255,255,255,.65);
}

.fav-actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fav-btn{
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 1000;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.fav-btn.primary{
  background: #ff3b5c;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255,59,92,.28);
}

.fav-btn.ghost{
  background: rgba(17,24,39,.06);
  border: 1px solid rgba(148,163,184,.45);
  color: #111827;
}

.fav-btn:hover{ transform: translateY(-1px); }
.fav-btn:active{ transform: translateY(0); opacity: .96; }

/* ===== Tabs + Search ===== */
.fav-tabs-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px 10px;
  flex-wrap: wrap;
}

.fav-tabs{
  display: flex;
  gap: 18px;
  align-items: flex-end;
}

.fav-tab{
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 1000;
  color: rgba(17,24,39,.6);
  padding: 8px 0;
  cursor: pointer;
  position: relative;
}

.fav-tab.active{ color: #111827; }

.fav-tab.active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #ff3b5c;
}

.fav-count{
  font-size: 14px;
  font-weight: 1000;
  margin-left: 6px;
  color: rgba(17,24,39,.55);
}

.fav-search{
  position: relative;
  min-width: 220px;
}

.fav-search-ico{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: .7;
  pointer-events: none;
  background: url('/UQ/UQ-img/search.svg') no-repeat center;
  background-size: 16px 16px;
}

.fav-search input{
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.45);
  background: rgba(255,255,255,.65);
  padding: 8px 12px 8px 40px;
  outline: none;
}

/* ===== 喜欢按钮 ===== */
.btn-like{
  width: 40px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.55);
  background-color: rgba(255,255,255,.65);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url('/UQ/UQ-img/weixihuan.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

/* 若你有喜欢 svg：取消注释并换成真实路径 */
/*
.btn-like.liked{
  background-image: url('/UQ/UQ-img/xihuan.svg');
}
*/

/* ===== 表格横向滚动（只在表格区域滚动） ===== */
.fav-table{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
}

.fav-table-body{ display: block; }

/* 表头 & 行：一致 grid + 设定最小宽度 */
.fav-table-head,
.fav-row{
  min-width: 760px;
  display: grid;
  grid-template-columns: 56px 56px 260px 220px 90px 90px;
  gap: 10px;
  align-items: center;
  justify-items: start;
}

.fav-table-head{
  color: rgba(17,24,39,.55);
  font-weight: 900;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148,163,184,.25);
}

.fav-row{
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.fav-row:hover{
  background: rgba(255,255,255,.55);
}

/* 第 5 列居中（喜欢） */
.fav-table-head > div:nth-child(5),
.fav-row > div:nth-child(5){
  justify-self: center;
}

/* 第 6 列右对齐（时长） */
.fav-table-head > div:nth-child(6),
.fav-row > div:nth-child(6){
  justify-self: end;
  text-align: right;
  padding-right: 8px;
}

/* 文本省略 */
.fav-title-main,
.fav-title-sub,
.c-album{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ✅ 歌名/歌手：歌手更小更灰 */
.fav-row .fav-title-main{
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}
.fav-row .fav-title-sub{
  font-size: 13px;
  font-weight: 700;
  color: rgba(17,24,39,.55);
  line-height: 1.2;
  margin-top: 4px;
}

/* 缩略封面 */
.fav-mini-cover{
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* 手机端：不隐藏列，统一横向滚动 */
@media (max-width: 900px){
  .c-album,
  .c-time{
    display: block !important;
  }
}

@media (max-width: 768px){
  .fav-table::after{
    content: "左右滑动查看更多 →";
    display: block;
    text-align: center;
    font-size: 12px;
    opacity: .55;
    padding: 6px 0 2px;
    pointer-events: none;
  }
}

/* 小屏：hero 上下布局 */
@media (max-width: 720px){
  .fav-hero{
    grid-template-columns: 1fr;
  }
  .fav-cover{
    height: auto;
  }
}

/* ✅ Hero 始终横向 + 封面自适应缩小（电脑/手机都横向） */
/* ✅ 桌面端：封面更小（最大 180） */
.fav-hero{
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 180px) 1fr; /* 以前最大 220 -> 180 */
  gap: 16px;
  align-items: center;
}

/* 手机端保持横向但更紧凑 */
@media (max-width: 720px){
  .fav-hero{
    grid-template-columns: clamp(110px, 28vw, 160px) 1fr;
  }
  .fav-cover-wrap{ max-width: 160px; }
}

/* 封面：只跟随宽度，不跟随高度撑大 */
.fav-cover{
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

/* 左侧封面列再加个硬上限，防止过宽 */
.fav-cover-wrap{
  width: 100%;
  max-width: 180px; /* ✅ 以前 220 -> 180 */
}

/* 标题/按钮在手机上别太大 */
@media (max-width: 520px){
  .fav-title{ font-size: 26px; }
  .fav-actions{ gap: 10px; }
  .fav-btn{ padding: 10px 14px; border-radius: 10px; }
}


