/* =========================================================
   优衣库店铺音乐 - 最终合并版样式
   - 以 playlist 冷色玻璃主题为基础
   - 保留歌曲页 / 播放器 / 登录弹窗 等功能样式
   - 适配壳页顶部主导航：全部歌曲 / 歌单广场 / 个人中心
   ========================================================= */

/* =========================
   0. 全局 & 主题变量
   ========================= */
:root{
  /* 播放栏真实高度，JS 写入 */
  --player-h: 0px;

  /* 背景 & 卡片主色（冷色玻璃风格） */
  --bg1:#eef1ff;
  --bg2:#e6edf7;

  --on-bg: rgba(17,24,39,.96);
  --on-bg-muted: rgba(17,24,39,.72);

  --card: rgba(255,255,255,.86);
  --card2: rgba(255,255,255,.76);

  --text:#0b1220;
  --muted: rgba(11,18,32,.68);

  --brand1:#4f46e5;
  --brand2:#06b6d4;

  --shadow1: 0 18px 46px rgba(17,24,39,.14);
  --shadow2: 0 10px 30px rgba(17,24,39,.12);

  --radius:18px;

  /* 底部播放器 */
  --player-bg: rgba(10,14,25,.90);
  --player-border: rgba(255,255,255,.14);
  --player-text: rgba(255,255,255,.92);
  --player-muted: rgba(255,255,255,.70);
  --player-btn-bg: rgba(255,255,255,.10);
  --player-btn-bg-hover: rgba(255,255,255,.16);
  --player-btn-border: rgba(255,255,255,.16);
}

html{ font-size:16px; }
*{ box-sizing:border-box; }

/* 背景：冷色渐变 + 光晕 */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC","Microsoft YaHei", Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(6,182,212,.16), transparent 60%),
    radial-gradient(1100px 800px at 50% 95%, rgba(16,185,129,.09), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
  overflow-x:hidden;
  background: transparent !important;
}

/* 固定背景图层（不随滚动）
   - 有 --bgimg：显示图片
   - 没有 --bgimg：不影响（透明），由 body 的渐变兜底 */
/* ===== 固定背景图（使用 body 上的 --bgimg）===== */
body{
  position: relative; /* 让伪元素层级稳定 */
}

/* 图片层 */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;                 /* ✅ 不要用负数，避免被 html 背景盖住 */
  pointer-events: none;

  background-image: var(--bgimg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.02);
}

/* 让页面所有真实内容在背景层之上 */
body > *{
  position: relative;
  z-index: 2;
}

/* 内容容器：1100 宽 + 为播放器留位置 */
.container{
  width:100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 12px calc(24px + var(--player-h, 0px) + env(safe-area-inset-bottom)) 12px;

  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.70));
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15,23,42,.20);
}

/* 主标题（通用） */
h1{
  text-align:center;
  color:#f97316;
  font-size: 3rem;
  margin: 16px 0 24px;
  font-weight: 900;
  letter-spacing: .05em;
  text-shadow: 0 6px 18px rgba(0,0,0,.30);
}

/* =========================
   1. 壳页顶部主导航 + 登录
   ========================= */
/* 整条玻璃条顶栏 */
.main-topbar{
  position: sticky;
  top: 0;
  z-index: 40;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;

  padding: 12px 18px;
  margin-bottom: 18px;

  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 18px 46px rgba(15,23,42,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.main-topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.main-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* 顶部导航：全部歌曲 / 歌单广场 / 个人中心 */
.topbar-link{
  font-size:14px;
  padding:6px 12px;
  border-radius:999px;
  text-decoration:none;
  border:none;
  background: transparent;
  color:#4b5563;
  font-weight:700;

  transition:
    background-color .15s ease,
    color .15s ease,
    transform .12s ease;
}
.topbar-link:hover{
  background: rgba(148,163,184,.16);
  color:#111827;
  transform: translateY(-1px);
}

/* 可选：当前选中态（如果你在 PHP 里加上 active 类） */
.topbar-link.active{
  background: linear-gradient(135deg,
    rgba(79,70,229,.18),
    rgba(236,72,153,.18)
  );
  color:#111827;
  box-shadow: 0 6px 16px rgba(79,70,229,.25);
}


/* 登录状态胶囊 */
.main-topbar .user-badge{
  font-size:13px;
  color:#1f2937;
  padding:7px 12px;
  background:rgba(255,255,255,.9);
  border-radius:999px;
  border:1px solid rgba(209,213,219,.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 登录 / 退出按钮 */
.main-topbar .login-btn,
.main-topbar .logout-btn{
  border:1px solid rgba(17,24,39,.10);
  cursor:pointer;
  font-size:13px;
  padding:8px 16px;
  border-radius:999px;
  background: linear-gradient(135deg,#111827,#0b1220);
  color:#fff;
  box-shadow:0 12px 26px rgba(15,23,42,.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.main-topbar .logout-btn{
  background: linear-gradient(135deg,#6b7280,#374151);
}
.main-topbar .login-btn:hover,
.main-topbar .logout-btn:hover{
  transform: translateY(-1px);
  box-shadow:0 16px 34px rgba(15,23,42,.40);
}
.main-topbar .login-btn:active,
.main-topbar .logout-btn:active{
  transform: translateY(0);
  opacity:.96;
}

/* 小屏：竖向排布 */
@media (max-width: 768px){
  .main-topbar{
    flex-direction:column;
    align-items:flex-start;
    border-radius:20px;
  }
}

/* =========================
   2. 歌单广场列表页（playlist_list）
   ========================= */

/* 顶部玻璃条：歌单广场 header */
.topbar{
  position: sticky;
  top: 0;
  z-index: 30;

  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
  flex-wrap:wrap;

  padding: 14px;
  margin-bottom: 12px;

  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: var(--shadow1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow:hidden;
}
.topbar::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 22px;
  background: radial-gradient(700px 220px at 12% 0%, rgba(79,70,229,.12), transparent 60%);
  pointer-events:none;
}
.title-wrap,.actions{ position:relative; z-index:1; }

.title{
  margin:0;
  font-size: 26px;
  font-weight: 1000;
  color: var(--on-bg);
  display:flex;
  align-items:center;
  gap:10px;
}
.subtitle{
  margin:0;
  font-size: 13px;
  font-weight: 800;
  color: var(--on-bg-muted);
}

/* 顶部按钮（歌单广场内部用） */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 1000;
  cursor:pointer;
  text-decoration:none;
  border:none;
  transition:.18s ease;
  user-select:none;
  white-space:nowrap;
}
.btn.ghost{
  color: rgba(17,24,39,.92);
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(148,163,184,.40);
}
.btn.ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.94);
}
.btn.primary{
  color:#fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 16px 34px rgba(79,70,229,.18);
}

/* 工具栏（搜索、筛选等） */
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;

  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(148,163,184,.30);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  margin-bottom: 14px;
}
.search-wrap{ 
  flex:1; 
  position:relative; 
  min-width:240px; 
}

/* 用 SVG 替换 🔎 */
.search-wrap::before{
  content:"";
  position:absolute;
  left:14px;
  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;
}
.search{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.50);
  padding: 11px 12px 11px 42px; /* 左侧给 SVG 搜索图标留空间 */
  background: rgba(255,255,255,.96);
  color:#0b1220;
  outline:none;
}

.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.50);
  background: rgba(17,24,39,.04);
  font-size: 13px;
  font-weight: 900;
}

/* 歌单卡片网格 */
.pl-grid{
  display:grid;
  gap:14px;
}
@media(min-width:780px){
  .pl-grid{ grid-template-columns:1fr 1fr; }
}

.pl-card{
  display:flex;
  gap:10px;
  align-items:center;

  padding:12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: var(--shadow2);
  position:relative;
  overflow:hidden;
  transition:.18s ease;
}
.pl-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 10% 0%, rgba(79,70,229,.10), transparent 60%);
  opacity:.35;
}
.pl-card>*{ position:relative; z-index:1; }

.pl-card:hover{
  transform: translateY(-2px);
  border-color: rgba(79,70,229,.30);
  box-shadow:
    0 20px 46px rgba(17,24,39,.18),
    0 10px 18px rgba(17,24,39,.10);
}

.pl-cover{
  width:78px;
  height:78px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid rgba(148,163,184,.40);
  background: rgba(0,0,0,.03);
}

/* 歌单信息区 */
.pl-meta{
  flex: 1;
  min-width: 0;
  padding-right: 6px;
}
.pl-name{
  margin:0;
  font-size:15px;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pl-desc{
  margin-top:6px;
  margin-bottom:8px;
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}
.pl-sub{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(17,24,39,.04);
  border:1px solid rgba(148,163,184,.40);
  font-size:12px;
  font-weight:900;
}

/* 进入歌单按钮 */
.pl-go{
  margin-left:auto;
  padding:9px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.90);
  border:1px solid rgba(148,163,184,.40);
  font-weight:1000;
  text-decoration:none;
  color: rgba(17,24,39,.92);
  font-size:14px;
}
.pl-card:hover .pl-go{
  background: rgba(79,70,229,.10);
  border-color: rgba(79,70,229,.30);
}

/* 空状态 */
.empty{
  padding:18px 12px;
  border-radius:16px;
  border:1px dashed rgba(148,163,184,.60);
  background: rgba(255,255,255,.80);
  text-align:center;
}

/* =========================
   3. 歌单详情页（playlist_view）头部
   ========================= */
.pl-head{
  position: sticky;
  top: 0;
  z-index: 30;

  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap:wrap;

  padding: 14px;
  border-radius: 20px;

  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.78));
  border: 1px solid rgba(148,163,184,.30);
  box-shadow: var(--shadow1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  margin-bottom: 14px;
  overflow:hidden;
}
.pl-head::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 22px;
  background: radial-gradient(700px 220px at 12% 0%, rgba(79,70,229,.12), transparent 60%);
  pointer-events:none;
}
.pl-head > *{ position:relative; z-index:1; }

.pl-head .pl-cover{
  width:108px;
  height:108px;
  border-radius:18px;
}
.pl-title{
  margin:0;
  font-size:20px;
  font-weight:1000;
  color:var(--on-bg);
  letter-spacing:.2px;
  text-shadow:0 2px 10px rgba(0,0,0,.08);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pl-head .pl-desc{
  margin: 8px 0 0;
  color: var(--on-bg-muted);
  font-size: 13px;
  line-height: 1.5;
}
.pl-time{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 1000;
  border: 1px solid rgba(148,163,184,.50);
  background: rgba(17,24,39,.04);
  color: rgba(17,24,39,.88);
  white-space:nowrap;
  line-height: 1;              /* ✅ 防止基线影响 */
}

/* ✅ 图标容器：确保一定有尺寸、一定显示 */
.badge-ico{
  display:inline-block;         /* ✅ 很关键：不然有时会被当成 0 尺寸 */
  width:16px;
  height:16px;
  flex: 0 0 16px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
  background-image: url('/UQ/UQ-img/time.svg');
  opacity:.9;
}

.pl-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-left:auto;
}

/* =========================
   4. 歌曲列表页（全部歌曲 & 歌单内歌曲）
   ========================= */

/* 筛选区域 */
.filter-container{
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.filter-container form{
  display:flex;
  gap:10px;
  justify-content:flex-start;
  flex-wrap:wrap;
  width:100%;
}
select{
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.50);
  background: rgba(255,255,255,.90);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
select:focus{
  border-color:#4CAF50;
  outline:none;
  box-shadow: 0 0 0 4px rgba(76,175,80,.15);
  transform: translateY(-1px);
}

/* “歌单广场”返回按钮（歌曲页右侧） */
.back{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:10px 16px;
  border-radius:999px;

  font-size:14px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;

  color:#111827;
  background: rgba(255,255,255,.95);
  border:1px solid rgba(148,163,184,.50);

  box-shadow:0 10px 24px rgba(15,23,42,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    color .15s ease;
}
.back:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.98);
  box-shadow:0 14px 32px rgba(15,23,42,.16);
}
.back:active{
  transform: translateY(0);
  box-shadow:0 8px 18px rgba(15,23,42,.12);
}
.filter-container .back{ margin-left:auto; }

/* 歌曲列表：统一白玻璃卡片（ID = songsList） */
#songsList{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* 歌曲卡片 */
#songsList .song{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid rgba(148,163,184,.40);
  box-shadow: var(--shadow2);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
#songsList .song::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 220px at 10% 0%, rgba(79,70,229,.10), transparent 60%);
  pointer-events:none;
  opacity:.35;
}
#songsList .song > *{ position:relative; z-index:1; }

#songsList .song:hover{
  transform: translateY(-2px);
  border-color: rgba(79,70,229,.30);
  box-shadow:
    0 20px 46px rgba(17,24,39,.18),
    0 10px 18px rgba(17,24,39,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86));
}

#songsList .song .cover-image{
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,.40);
  background: rgba(0,0,0,.03);
  box-shadow: 0 12px 26px rgba(17,24,39,.10);
  flex: 0 0 auto;
}

#songsList .song .song-info{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
#songsList .song .song-info h2{
  margin:0;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#songsList .song .song-info p{
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 强制详情按钮不被其它 .btn/.details-button 样式影响 */
#songsList .details-button a.btn-detail{
  width: 40px !important;
  height: 32px !important;
  min-width: 40px !important;
  min-height: 32px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;     /* 防止 a 的文字行高撑开 */
  border-radius: 10px !important;

  border: 1px solid rgba(148,163,184,.55) !important;
  background-color: rgba(255,255,255,.65) !important;

  background-image: url('/UQ/UQ-img/xiangqing.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;

  box-shadow: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

#songsList .details-button a.btn-detail:hover{
  transform: translateY(-1px);
  background-color: rgba(255,255,255,.75) !important;
  border-color: rgba(148,163,184,.65) !important;
  box-shadow: 0 10px 22px rgba(17,24,39,.12);
}

./* 详情按钮：完全复制喜欢按钮的背景/边框/动效 */
.btn-detail{
  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/xiangqing.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;
}

.btn-detail:hover{
  transform: translateY(-1px);
  border-color: rgba(79,70,229,.35);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

.btn-detail:active{
  transform: translateY(0px);
}



/* 分页 */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:20px;
}
.pagination a{
  padding:8px 16px;
  border:1px solid rgba(148,163,184,.80);
  border-radius:6px;
  text-decoration:none;
  color:#374151;
  background:#f9fafb;
  font-size:14px;
}
.pagination a:hover{ background:#e5e7eb; }
.pagination .prev-button,
.pagination .next-button{ font-weight:900; }
.pagination span{ font-size:14px; padding:0 6px; }

/* =========================
   5. 登录弹窗（壳页）
   ========================= */
.login-modal-mask{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.25), transparent 55%),
    radial-gradient(900px 500px at 80% 90%, rgba(255,255,255,.18), transparent 60%),
    rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.login-modal-mask.show{ display:flex; }

.login-modal{
  width:100%;
  max-width:440px;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 25px 80px rgba(0,0,0,.40);
  transform: translateY(10px) scale(.98);
  opacity:.85;
  animation: loginPop .18s ease-out forwards;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@keyframes loginPop{
  to{ transform: translateY(0) scale(1); opacity:1; }
}
.login-modal-header{
  position:relative;
  padding:16px 18px;
  color:#fff;
  background: linear-gradient(135deg,#111827,#4f46e5,#ec4899);
}
.login-modal-header h3{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
  font-weight:900;
}
.login-modal-subtitle{
  margin-top:6px;
  font-size:12px;
  opacity:.9;
  line-height:1.4;
}
.login-close{
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:34px;
  text-align:center;
  transition: transform .12s ease, background .12s ease;
}
.login-close:hover{ transform: scale(1.03); background: rgba(255,255,255,.18); }
.login-close:active{ transform: scale(.98); }

.login-modal-body{ padding:16px 18px 18px; }
.login-field{ margin-bottom:12px; }

.input-group{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.60);
  background: rgba(255,255,255,.90);
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}
.input-group:focus-within{
  border-color: rgba(79,70,229,.70);
  box-shadow: 0 0 0 4px rgba(79,70,229,.18);
  transform: translateY(-1px);
}
.input-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(79,70,229,.10);
  color:#4f46e5;
  flex:0 0 auto;
}
.input-group input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:#111827;
}
.login-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
}
.login-submit{
  flex:1;
  border:none;
  cursor:pointer;
  font-size:14px;
  padding:11px 12px;
  border-radius:14px;
  color:#fff;
  background: linear-gradient(135deg,#111827,#4f46e5);
  box-shadow:0 12px 26px rgba(79,70,229,.24);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.login-submit:hover{ transform: translateY(-1px); box-shadow:0 16px 34px rgba(79,70,229,.28); }
.login-submit:active{ transform: translateY(0); opacity:.95; }

.login-cancel{
  flex:1;
  border:1px solid rgba(148,163,184,.60);
  cursor:pointer;
  font-size:14px;
  padding:11px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.90);
  color:#111827;
  transition: transform .14s ease, opacity .14s ease, box-shadow .14s ease;
}
.login-cancel:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(15,23,42,.10); }
.login-cancel:active{ transform: translateY(0); opacity:.95; }

.login-error,
.login-success{
  margin-top:12px;
  font-size:13px;
  padding:10px 12px;
  border-radius:14px;
  display:none;
}
.login-error{
  color:#7f1d1d;
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.22);
}
.login-success{
  color:#14532d;
  background: rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.22);
}
.login-loading{ opacity:.75; pointer-events:none; }

@media (max-width:420px){
  .login-actions{ flex-direction:column; }
}

/* =========================
   6. 通用按钮（播放器等）
   ========================= */
.pc-btn{
  border:1px solid var(--player-btn-border);
  background: var(--player-btn-bg);
  color:var(--player-text);
  cursor:pointer;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:14px;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.20);

  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.pc-btn:hover{
  transform: translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,.25);
}
.pc-btn:active{ transform: translateY(0); opacity:.95; }
.pc-btn.primary{
  border:none;
  color:#fff;
  background: linear-gradient(135deg,#4f46e5,#ec4899);
  box-shadow:0 12px 26px rgba(79,70,229,.32);
}
.pc-btn.ghost{
  background: rgba(17,24,39,.06);
  border:1px solid rgba(148,163,184,.60);
}
.pc-btn.small{ padding:8px 12px; font-size:13px; }
.pc-btn.on{
  border:none;
  color:#fff;
  background: linear-gradient(135deg,#111827,#ec4899);
}

/* 图标尺寸 */
.pc-btn .btn-icon{
  width:22px;
  height:22px;
  display:block;
}
#playPauseBtn .btn-icon{
  width:26px;
  height:26px;
}
#playPauseBtn{ min-width:56px; }

/* =========================
   7. 播放列表面板
   ========================= */
.playlist-panel{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: calc(var(--player-h) + env(safe-area-inset-bottom) + 10px);
  width: calc(100% - 24px);
  max-width:760px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.45);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:0 18px 50px rgba(15,23,42,.28);
  display:none;
  z-index:9997;
}
.playlist-panel.show{ display:block; }
.playlist-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background: linear-gradient(135deg,#111827,#4f46e5);
  color:#fff;
}
.playlist-title{ font-weight:900; font-size:14px; }
.playlist-body{ max-height:340px; overflow:auto; padding:8px; }

.playlist-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  border:1px solid transparent;
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
}
.playlist-item:hover{
  background: rgba(17,24,39,.04);
  transform: translateY(-1px);
}
.playlist-item.active{
  background: rgba(79,70,229,.12);
  border-color: rgba(79,70,229,.30);
}
.playlist-item.disabled{
  opacity:.55;
  cursor:not-allowed;
}

.playlist-left{ min-width:0; }
.playlist-name{
  font-weight:900;
  font-size:14px;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.playlist-artist{
  font-size:12px;
  color:#6b7280;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.playlist-right{
  font-size:12px;
  color:#6b7280;
  flex:0 0 auto;
}

/* =========================
   8. 底部播放器
   ========================= */
.now-playing{
  z-index: 9998;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--player-bg);
  color: #fff;
  border-top: 1px solid var(--player-border);
  box-shadow: 0 -10px 35px rgba(0,0,0,.55);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .25s ease;
}
.now-playing{
  pointer-events:none;
}
.now-playing *{
  pointer-events:auto;
}

.now-playing.hidden{
  transform: translateY(110%);
}
.now-playing.show{
  transform: translateY(0);
}

.now-playing .top-info{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
}
.now-playing .cover-image{
  width:52px;
  height:52px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 8px 20px rgba(0,0,0,.45);
}
.now-playing .song-info{ min-width:0; }

#now-playing-song-name{
  margin:0;
  font-size:15px;
  font-weight:900;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:0 1px 2px rgba(0,0,0,.4);
}
#now-playing-artist{
  margin:2px 0 0;
  font-size:13px;
  color: rgba(255,255,255,.85);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 进度条 */
.progress-container{
  width:100%;
  height:6px;
  max-width:1050px;
  background: rgba(255,255,255,.15);
  cursor:pointer;
  margin:0 auto;
}
.progress-bar{
  height:100%;
  width:0;
  background: linear-gradient(90deg,#4f46e5,#ec4899);
}

/* 控制按钮行 */
.player-controls.in-player{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.player-controls.in-player .left,
.player-controls.in-player .right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* 折叠箭头 */
.arrow-button{
  text-align:center;
  font-size:18px;
  padding:6px 0;
  color:#fff;
  opacity:.7;
  cursor:pointer;
  user-select:none;
}
.arrow-button:hover{ opacity:1; }

/* 封面旋转动画 */
@keyframes rotateAnimation{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
.rotate{
  animation: rotateAnimation 2s linear infinite;
}

/* =========================
   9. 个人中心区域
   ========================= */
/* 个人中心布局 */
.user-center{
  padding: 16px;
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
  margin-top: 14px;
}

.user-center h1{
  font-size: 22px;
  margin: 0 0 16px;
  text-align: left;
  color: #8B0000;
  text-shadow: none;
}

/* 主信息卡片：左头像 + 右文字 */
.user-card-main{
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-card{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(148,163,184,.60);
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

/* 头像区 */
.user-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color:#fff;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(79,70,229,.35);
  border: 2px solid rgba(255,255,255,.90);
}

.user-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-initial{
  display:inline-block;
}

/* 右侧文字 */
.user-info{
  min-width: 0;
}
.user-info p{
  margin: 2px 0;
}

/* 小屏收紧一点 */
@media (max-width: 480px){
  .user-card-main{
    align-items: flex-start;
  }
  .user-avatar{
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
}


/* =========================
   10. 响应式微调
   ========================= */
@media (max-width: 768px){
  h1{ font-size:30px; }

  .container{
    padding: 12px 10px calc(24px + var(--player-h, 0px) + env(safe-area-inset-bottom)) 10px;
    border-radius:18px;
  }

  #songsList .song{
    padding: 12px;
    gap: 10px;
  }
  #songsList .song .cover-image{
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .pl-head{
    position: relative;
    top: auto;
    border-radius: 18px;
  }
  .pl-head .pl-cover{
    width:78px;
    height:78px;
    border-radius:16px;
  }
  .pl-title{ font-size:18px; }

  .pl-actions{
    width:100%;
    gap:8px;
    margin-left:0;
  }
  .pl-actions .btn{
    flex:1;
    padding:11px 10px;
  }
}

@media (max-width: 480px){
  .now-playing .top-info{ padding: 8px 10px; }
  .now-playing .cover-image{ width:46px; height:46px; }
  #now-playing-song-name{ font-size:14px; }
  #now-playing-artist{ font-size:12px; }

  .playlist-panel{
    width: calc(100% - 20px);
  }
}
/* =========================
   11. 喜欢按钮（SVG 文件版：全局通用）
   - 默认：weixihuan.svg（未喜欢）
   - .liked：xihuan.svg（已喜欢）
   ========================= */
.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;
}
.btn-like:hover{
  transform: translateY(-1px);
  border-color: rgba(79,70,229,.35);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}
.btn-like.liked{
  background-image: url('/UQ/UQ-img/xihuan.svg');
  background-color: rgba(255,59,92,.10);
  border-color: rgba(236,72,153,.35);
}
.btn-like:active{ transform: scale(.96); }
.btn-like:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}