/* =====================================================================
   HuaMusic 设计系统  ·  huamusic.com
   暗色音乐主题 / 粉紫渐变强调色
   ===================================================================== */

/* Ensure [hidden] attribute always hides regardless of element's display rule */
[hidden] { display: none !important; }

:root {
  /* 色板 */
  --bg-0: #0a0a0f;
  --bg-1: #12121a;
  --bg-2: #1a1a26;
  --bg-3: #232336;
  --bg-card: #161622;
  --border: #2a2a3c;
  --border-soft: #1f1f2e;

  --text: #f2f2f8;
  --text-2: #b3b3c6;
  --text-3: #6e6e85;

  --accent: #ff4d8d;       /* 粉 */
  --accent-2: #8a5bff;    /* 紫 */
  --accent-3: #36d6c3;    /* 青 */
  --grad: linear-gradient(135deg, #ff4d8d 0%, #8a5bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,77,141,.15), rgba(138,91,255,.15));

  /* 影 / 圆角 */
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  /* 尺寸 */
  --header-h: 64px;
  --maxw: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #33334a; }

/* ===================== 通用容器 ===================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== 顶部导航 ===================== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,15,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: .5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(255,77,141,.4);
  font-size: 18px;
}
.logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo span { color: var(--text-3); font-weight: 600; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--text-2); font-size: 15px; font-weight: 600; transition: .2s;
}
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a.active { color: #fff; background: var(--grad-soft); }

.header-search {
  flex: 1; max-width: 420px; position: relative;
  margin-left: auto;
}
.header-search input {
  width: 100%; height: 40px;
  padding: 0 16px 0 42px;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  color: var(--text); border-radius: var(--radius-pill); outline: none; font-size: 14px;
  transition: .2s;
}
.header-search input:focus { border-color: var(--accent); background: var(--bg-3); }
.header-search input::placeholder { color: var(--text-3); }
.header-search .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3); pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 14px;
  transition: .2s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(255,77,141,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,77,141,.5); }
.btn-ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { height: 48px; font-size: 15px; }

/* ===================== 页面通用 ===================== */
.page { padding: 28px 0 80px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 18px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head .more { color: var(--text-3); font-size: 14px; }
.section-head .more:hover { color: var(--accent); }

/* 排序下拉 */
.sort-bar { display: flex; align-items: center; gap: 8px; }
.sort-bar label { color: var(--text-3); font-size: 13px; font-weight: 600; }
.sort-bar select {
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
}
.sort-bar select:hover { border-color: var(--accent); color: var(--text-1); }
@media (max-width: 560px) {
  .sort-bar label { display: none; }
}

/* 分类标签条 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--border); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(255,77,141,.35); }

/* ===================== 热门推荐区 ===================== */
.hot-zone {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.hot-zone .card { position: relative; }
.hot-zone .card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,77,141,.4), rgba(138,91,255,.3));
  z-index: -1; opacity: .6; pointer-events: none;
}
.hot-zone .empty { grid-column: 1/-1; }

/* ===================== Hero 横幅 ===================== */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 48px 44px;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(138,91,255,.35), transparent 60%),
    radial-gradient(700px 400px at 15% 90%, rgba(255,77,141,.3), transparent 60%),
    linear-gradient(135deg, #1b1030, #0d0d16);
  border: 1px solid var(--border);
  margin-top: 24px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08); color: var(--accent-3);
  font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; max-width: 620px; }
.hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.hero p { color: var(--text-2); font-size: 16px; max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; }
.hero-deco {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--grad); opacity: .22; filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 18px))} }

/* ===================== MV 卡片网格 ===================== */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.card {
  cursor: pointer; transition: .25s; border-radius: var(--radius);
}
.card .thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); border: 1px solid var(--border-soft);
}
.card .thumb .cover-img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .thumb .cover-img { transform: scale(1.06); }
.card .play-ico {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.28); opacity: 0; transition: .25s;
}
.card:hover .play-ico { opacity: 1; }
.play-ico svg { width: 52px; height: 52px; fill: #fff; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.card .dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 8px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.72); color: #fff; border-radius: 5px;
}
.card .body { padding: 12px 4px 0; }
.card .title {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: 6px; color: var(--text-3); font-size: 13px; display: flex; gap: 10px; }
.card .meta .artist { color: var(--text-2); }
.card:hover .title { color: var(--accent); }

/* 渐变占位封面 (无图片时) */
.cover-grad {
  width: 100%; height: 100%; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.cover-grad::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cg, linear-gradient(135deg,#3a1d6e,#ff4d8d));
}
.cover-grad .cg-letter {
  position: relative; font-size: 46px; font-weight: 800; color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ===================== Watch 页布局 ===================== */
.watch-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 380px;
  gap: 32px; margin-top: 24px;
}
.player-shell {
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.player-shell video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }

/* 播放器工具栏: 上一首 / 倍速 / 下一首 */
.player-tools {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
}
.pt-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  color: var(--text-2); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .2s; white-space: nowrap;
}
.pt-btn svg { width: 16px; height: 16px; }
.pt-btn .caret { width: 12px; height: 12px; }
.pt-btn:hover:not(:disabled) { color: #fff; border-color: var(--accent); }
.pt-btn:disabled { opacity: .35; cursor: not-allowed; }
.pt-btn.primary { margin-left: auto; background: var(--grad); color: #fff; border-color: transparent; }
.pt-btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,77,141,.35); }

.speed-wrap { position: relative; }
.speed-pop {
  position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 30;
  display: flex; flex-direction: column; min-width: 132px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px;
}
/* display:flex 会覆盖 hidden 属性默认的 display:none, 必须显式声明 */
.speed-pop[hidden] { display: none; }
.speed-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: none; border: none;
  color: var(--text-2); font-size: 13px; font-weight: 600;
  border-radius: 6px; cursor: pointer; text-align: left;
}
.speed-opt svg { width: 14px; height: 14px; color: var(--accent); }
.speed-opt:hover { background: var(--bg-3); color: #fff; }
.speed-opt.active { color: var(--accent); }

.watch-meta { margin-top: 18px; }
.watch-title { font-size: 22px; font-weight: 800; line-height: 1.35; }
.watch-tags { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text-3); font-size: 14px; }
.watch-tags .pl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--grad-soft); color: var(--accent); font-weight: 700;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* 操作条 */
.action-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
}
.act {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: .2s;
}
.act:hover { color: var(--text); border-color: var(--border); }
.act svg { width: 17px; height: 17px; }
.act.liked { color: var(--accent); border-color: var(--accent); background: var(--grad-soft); }
.act.saved { color: var(--accent); border-color: var(--accent); background: var(--grad-soft); }
.act.primary { background: var(--grad); color: #fff; border-color: transparent; }
.act.primary:hover { transform: translateY(-1px); }

/* 描述区 */
.desc-box {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 18px 20px; font-size: 15px; color: var(--text-2);
  white-space: pre-wrap; line-height: 1.75;
}

/* ===================== 接下来播放 侧栏 ===================== */
.upnext { display: flex; flex-direction: column; }
.upnext h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.upnext h3 svg { width: 18px; height: 18px; color: var(--accent); }
.upnext .auto-note { color: var(--text-3); font-size: 13px; margin-bottom: 14px; }

/* Up Next 列表 - 可滚动 (infinite scroll) */
#upList {
  max-height: calc(100vh - 240px);
  min-height: 280px;
  overflow-y: auto;
  scroll-behavior: smooth;
  margin: 0 -4px;
  padding: 0 4px;
}
#upList::-webkit-scrollbar { width: 6px; }
#upList::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
#upList::-webkit-scrollbar-thumb:hover { background: var(--border); }
#upList > .empty { padding: 24px 8px; text-align: center; color: var(--text-3); }

/* 加载更多指示器 */
.up-load-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; color: var(--text-3); font-size: 13px;
}
.up-sentinel { opacity: .75; font-size: 12px; }
.spinner.small { width: 14px; height: 14px; border-width: 2px; }

/* Up Next Tab 切换条 */
.tab-bar {
  display: flex; gap: 4px; margin: 8px 0 14px;
  background: var(--bg-2); border-radius: var(--radius-pill);
  padding: 4px;
}
.tab {
  flex: 1; padding: 7px 12px; border: none; background: transparent;
  color: var(--text-3); font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: var(--radius-pill); transition: .2s;
}
.tab:hover { color: var(--text-2); }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(255,77,141,.3); }

.up-item {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: .2s; align-items: center;
}
.up-item:hover { background: var(--bg-card); }
.up-item.active { background: var(--grad-soft); border: 1px solid rgba(255,77,141,.3); cursor: default; }
.up-item .u-thumb {
  position: relative; flex: 0 0 132px; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden; background: var(--bg-2);
}
.up-item .u-thumb img, .up-item .u-thumb .cover-grad { width: 100%; height: 100%; object-fit: cover; }
.up-item .u-dur {
  position: absolute; right: 4px; bottom: 4px;
  padding: 1px 5px; font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,.72); color: #fff; border-radius: 3px;
}
/* Now playing 角标: 三条跳动的均衡器 (无文字) */
.up-item .u-now {
  position: absolute; left: 4px; bottom: 4px;
  display: flex; align-items: flex-end; gap: 2px;
  padding: 3px 5px;
  background: var(--grad); border-radius: 3px;
  box-shadow: 0 2px 8px rgba(255,77,141,.5);
}
.up-item .u-now i {
  display: inline-block; width: 2px; height: 6px;
  background: #fff; border-radius: 1px;
  animation: u-eq .8s ease-in-out infinite;
}
.up-item .u-now i:nth-child(2) { animation-delay: .18s; }
.up-item .u-now i:nth-child(3) { animation-delay: .36s; }
@keyframes u-eq {
  0%, 100% { height: 4px; }
  50% { height: 11px; }
}
.up-item .u-body { min-width: 0; flex: 1; }
.up-item .u-title {
  font-size: 14px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.up-item:hover .u-title { color: var(--accent); }
.up-item.active .u-title { color: var(--accent); }
.up-item .u-meta { color: var(--text-3); font-size: 12px; margin-top: 4px; }

/* ===================== 评论区 ===================== */
.comments { margin-top: 36px; }
.comments h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.comment-input {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 28px;
}
.avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  font-weight: 800; color: #fff;
}
.comment-input .ci-main { flex: 1; }
.comment-input input {
  width: 100%; height: 42px; padding: 0 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); outline: none; font-size: 14px;
}
.comment-input input:focus { border-color: var(--accent); }
.comment-input .ci-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment { display: flex; gap: 12px; }
.comment .c-body { flex: 1; }
.comment .c-head { display: flex; align-items: center; gap: 8px; }
.comment .c-name { font-weight: 700; font-size: 14px; }
.comment .c-time { color: var(--text-3); font-size: 12px; }
.comment .c-text { color: var(--text-2); font-size: 14px; margin-top: 4px; }

.empty { color: var(--text-3); text-align: center; padding: 40px 0; font-size: 14px; }

/* ===================== 上传页 ===================== */
.upload-wrap { max-width: 880px; margin: 28px auto 0; }
.upload-card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 32px;
}
.upload-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.upload-card .sub { color: var(--text-3); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input[type=text], .field input[type=number], .field select, .field textarea {
  height: 44px; padding: 0 14px;
  background: var(--bg-1); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); outline: none; font-size: 14px;
  transition: .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

/* 拖拽上传区 */
.dropzone {
  grid-column: 1 / -1;
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 34px; text-align: center; cursor: pointer; transition: .2s;
  background: var(--bg-1);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--grad-soft); }
.dropzone .dz-ico { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--accent); }
.dropzone .dz-title { font-weight: 700; font-size: 15px; }
.dropzone .dz-hint { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.dropzone .dz-file { margin-top: 12px; color: var(--accent-3); font-size: 13px; font-weight: 600; word-break: break-all; }

.field-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.progress {
  grid-column: 1 / -1; height: 8px; background: var(--bg-3); border-radius: 6px; overflow: hidden;
}
.progress[hidden] { display: none; }
.progress > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .15s; }
.upload-actions { grid-column: 1 / -1; display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text);
  padding: 12px 22px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transition: .25s; pointer-events: none; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.toast.ok { border-color: var(--accent-3); }
.toast.err { border-color: var(--accent); }

/* ===================== 会员登录态 ===================== */
.user-area { display: flex; align-items: center; gap: 10px; }
.user-area .u-name { font-size: 14px; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-area .u-ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 14px;
}
.btn-link { color: var(--text-2); font-size: 14px; font-weight: 700; padding: 8px 6px; }
.btn-link:hover { color: var(--accent); }

/* ===================== 认证页 ===================== */
.auth-wrap { max-width: 440px; margin: 50px auto 0; }
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-3); margin-bottom: 26px; font-size: 14px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.auth-card .field input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--bg-1); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); outline: none; font-size: 14px; transition: .2s;
}
.auth-card .field input:focus { border-color: var(--accent); }
.auth-card .field .hint { color: var(--text-3); font-size: 12px; margin-top: 6px; }
.auth-card .err-msg {
  display: none; margin-bottom: 16px; padding: 10px 14px;
  background: rgba(255,77,141,.12); border: 1px solid rgba(255,77,141,.4);
  color: #ff8fb0; border-radius: var(--radius-sm); font-size: 13px;
}
.auth-card .err-msg.show { display: block; }
.auth-card .auth-foot { text-align: center; margin-top: 22px; color: var(--text-3); font-size: 14px; }
.auth-card .auth-foot a { color: var(--accent); font-weight: 700; }

/* 多文件上传列表 */
.file-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.file-item {
  display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 12px; align-items: center;
  background: var(--bg-1); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.file-item .fi-name { font-weight: 700; font-size: 13px; word-break: break-all; color: var(--text); }
.file-item .fi-size { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.file-item input, .file-item select {
  height: 38px; padding: 0 10px; background: var(--bg-2); border: 1px solid var(--border-soft);
  color: var(--text); border-radius: 7px; outline: none; font-size: 13px; min-width: 0;
}
.file-item input:focus, .file-item select:focus { border-color: var(--accent); }
.file-item .fi-rm {
  width: 34px; height: 34px; border-radius: 8px; color: var(--text-3);
  background: var(--bg-2); border: 1px solid var(--border-soft); display: grid; place-items: center;
  transition: .2s; flex: 0 0 34px;
}
.file-item .fi-rm:hover { color: var(--accent); border-color: var(--accent); }
.file-item .fi-rm svg { width: 16px; height: 16px; }
.empty-tip { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; text-align: center; padding: 8px; }

/* 页脚 */
.footer {
  border-top: 1px solid var(--border-soft); padding: 36px 0 28px; margin-top: 60px;
  color: var(--text-3); font-size: 13px;
}
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }
.foot-col { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.foot-brand { font-size: 16px; font-weight: 800; color: var(--text-2); }
.foot-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-desc { font-size: 12.5px; line-height: 1.7; }

/* 无 JS / 爬虫可读的 SEO 内容 */
.seo-body { padding: 20px 24px 40px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.seo-body h1, .seo-body h2 { color: var(--text); margin-bottom: 10px; }
.seo-body ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; }
.seo-body a { color: var(--accent); }
.seo-body img { border-radius: var(--radius-sm); max-width: 100%; height: auto; margin: 12px 0; }

/* 骨架/加载 */
.loading { display: flex; justify-content: center; padding: 60px 0; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--bg-3); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== 个人中心 ===================== */
.user-chip { display: flex; align-items: center; gap: 8px; border-radius: var(--radius-pill); padding: 2px 10px 2px 2px; transition: .2s; }
.user-chip:hover { background: var(--bg-2); }

.btn-danger { background: rgba(255,77,141,.14); color: #ff8fb0; border: 1px solid rgba(255,77,141,.45); height: 40px; padding: 0 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; transition: .2s; }
.btn-danger:hover { background: var(--accent); color: #fff; }

.profile-head {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px 30px; margin-top: 12px; box-shadow: var(--shadow-sm);
}
.ph-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.ph-ava {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: grid; place-items: center;
  font-size: 36px; font-weight: 800; color: #fff; box-shadow: 0 8px 22px rgba(255,77,141,.35);
}
.ph-info { min-width: 0; }
.ph-info h1 { font-size: 26px; font-weight: 800; }
.ph-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.ph-bio { color: var(--text-2); font-size: 14px; margin-top: 10px; max-width: 520px; }
.ph-bio.is-empty { color: var(--text-3); font-style: italic; }

.ph-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.ph-stats { display: flex; gap: 28px; }
.ph-stats .stat { text-align: center; }
.ph-stats .stat b { display: block; font-size: 22px; font-weight: 800; }
.ph-stats .stat span { color: var(--text-3); font-size: 12px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ph-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-sm); }

/* 我的视频管理列表 */
.mine-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mine-card {
  display: grid; grid-template-columns: 22px 200px 1fr; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 12px; transition: .2s;
}
.mine-card:hover { border-color: var(--border); background: #191927; }
.mc-check { display: grid; place-items: center; align-self: center; cursor: pointer; }
.mc-sel { width: 17px; height: 17px; cursor: pointer; accent-color: var(--accent); }
.mc-size { color: var(--text-3); font-size: 12px; }

/* 我的视频工具栏: 搜索 + 排序 + 全选 + 批量操作 */
.mine-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.mt-search {
  position: relative; display: flex; align-items: center;
  flex: 1; min-width: 220px; max-width: 420px;
}
.mt-search svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.mt-search input {
  width: 100%; height: 40px; padding: 0 12px 0 38px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
}
.mt-search input:focus { outline: none; border-color: var(--accent); }
.mt-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-right select {
  height: 40px; padding: 0 28px 0 12px; background: var(--bg-card);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; cursor: pointer;
}
.mt-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.mt-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.mt-dir {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  display: grid; place-items: center; color: var(--text-2); cursor: pointer; transition: .2s;
}
.mt-dir svg { width: 18px; height: 18px; transition: transform .2s; }
.mt-dir:hover { color: var(--text); border-color: var(--border); background: var(--bg-3); }
.mt-dir.is-asc svg { transform: rotate(180deg); }
/* 首页 Discover 排序方向按钮 (与 .mt-dir 同形) */
.sort-dir {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  display: inline-grid; place-items: center; vertical-align: middle;
  color: var(--text-2); cursor: pointer; transition: .2s;
}
.sort-dir svg { width: 18px; height: 18px; transition: transform .2s; }
.sort-dir:hover { color: var(--text); border-color: var(--border); background: var(--bg-3); }
.sort-dir.is-asc svg { transform: rotate(180deg); }
.mt-batch { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-sm); }
.mt-batch:disabled { opacity: .45; cursor: not-allowed; }

/* 批量重命名弹窗 */
.batch-list { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.batch-row { display: flex; }
.batch-input {
  flex: 1; height: 40px; padding: 0 12px; background: var(--bg-2);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
}
.batch-input:focus { outline: none; border-color: var(--accent); }
.mc-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.mc-thumb .cover-img, .mc-thumb .cover-grad { width: 100%; height: 100%; object-fit: cover; }
.mc-thumb .play-ico { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: .2s; background: rgba(0,0,0,.25); }
.mc-thumb:hover .play-ico { opacity: 1; }
.mc-thumb .dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72);
  font-size: 12px; padding: 2px 7px; border-radius: 6px; color: #fff;
}
.mc-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 4px 6px; }
.mc-main { min-width: 0; }
.mc-title { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-title:hover { color: var(--accent); }
.mc-artist { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.mc-meta { display: flex; gap: 14px; color: var(--text-3); font-size: 12px; margin-top: 8px; }
.mc-ops { display: flex; gap: 8px; flex-shrink: 0; }
.op-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  display: grid; place-items: center; color: var(--text-2); transition: .2s;
}
.op-btn svg { width: 17px; height: 17px; }
.op-btn:hover { color: var(--text); border-color: var(--border); background: var(--bg-3); }
.op-btn.danger:hover { color: #ff8fb0; border-color: rgba(255,77,141,.5); background: rgba(255,77,141,.12); }
/* 隐藏状态: 整卡压暗 + 缩略图上的 Hidden 角标 */
.mine-card.is-hidden { opacity: .55; }
.mine-card.is-hidden:hover { opacity: .8; }
.mc-hidden-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.72); color: #ffd166; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .3px;
}
.mc-hidden-badge svg { width: 12px; height: 12px; }

/* 首页 Load more 与个人中心分页 */
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.load-more[hidden] { display: none; }
.load-more-info { color: var(--text-3); font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 22px 0 8px; }
.pager[hidden] { display: none; }
.pager .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.pager .btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-info { color: var(--text-2); font-size: 14px; min-width: 90px; text-align: center; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,5,10,.68); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal {
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px;
}
.modal-sm { max-width: 400px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 18px; font-weight: 800; }
.modal-x { font-size: 24px; line-height: 1; color: var(--text-3); padding: 0 4px; }
.modal-x:hover { color: var(--text); }
.modal .field { margin-bottom: 14px; }
.modal .field input, .modal .field textarea, .modal .field select {
  width: 100%; padding: 11px 14px; background: var(--bg-1);
  border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); outline: none; font-size: 14px; transition: .2s;
}
.modal .field textarea { resize: vertical; }
.modal .field input:focus, .modal .field textarea:focus, .modal .field select:focus { border-color: var(--accent); }
.modal .err-msg {
  display: none; margin-bottom: 14px; padding: 9px 13px;
  background: rgba(255,77,141,.12); border: 1px solid rgba(255,77,141,.4);
  color: #ff8fb0; border-radius: var(--radius-sm); font-size: 13px;
}
.modal .err-msg.show { display: block; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal-foot .btn { height: 40px; padding: 0 18px; font-size: 14px; border-radius: var(--radius-sm); }
.cf-text { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.vf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 响应式 */
@media (max-width: 1024px) {
  .watch-layout { grid-template-columns: 1fr; }
  .upnext { margin-top: 8px; }
}
@media (max-width: 720px) {
  .header-search { display: none; }
  /* 手机浏览器也显示顶部导航 —— 但缩小间距 */
  .header .nav { gap: 8px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
  .header .nav a { padding: 4px 8px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 28px; }
  .hero-deco { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-covers { grid-template-columns: 1fr; }
  .watch-title { font-size: 18px; }
  .file-item { grid-template-columns: 1fr; gap: 8px; }
  .user-area .u-name { display: none; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .ph-right { align-items: flex-start; width: 100%; }
  .ph-stats { gap: 20px; }
  .mine-card { grid-template-columns: 22px 1fr; gap: 10px; }
  .mc-thumb { aspect-ratio: 16/9; }
  .mine-toolbar { gap: 10px; }
  .mt-search { min-width: 0; max-width: none; }
  .vf-row { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; padding: 0 14px; }
  .logo { font-size: 18px; }
  .user-area { gap: 6px; }
  .user-area .btn { padding: 0 12px; height: 36px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo b, .logo { font-size: 17px; }
}

/* ---------- App 下载页 ---------- */
.app-hero {
  text-align: center;
  padding: 46px 16px 30px;
}
.app-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 38px rgba(255, 77, 141, .35);
}
.app-hero h1 {
  font-size: 32px;
  margin: 0 0 10px;
}
.app-hero .sub {
  color: var(--text-2);
  margin: 0 0 26px;
  font-size: 15px;
}
.app-hero .btn-lg {
  padding: 14px 46px;
  font-size: 16px;
}
.app-meta {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
}
.app-section {
  max-width: 720px;
  margin: 0 auto 22px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}
.app-section h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
.app-section p {
  color: var(--text-2);
  line-height: 1.75;
  margin: 0;
  font-size: 15px;
}
.app-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  line-height: 2;
  font-size: 15px;
}
.app-steps b {
  color: var(--text);
}
@media (max-width: 640px) {
  .app-hero { padding: 30px 12px 20px; }
  .app-hero h1 { font-size: 25px; }
  .app-section { padding: 18px 16px; margin: 0 12px 18px; }
}

/* =====================================================================
   Profile Tabs (Uploads / History / Likes / Saves / Downloads)
   ===================================================================== */
.profile-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 16px;
  background: var(--bg-2);
  border-radius: var(--radius-pill);
  padding: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-tabs .tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: .2s;
  white-space: nowrap;
}
.profile-tabs .tab:hover { color: var(--text-2); }
.profile-tabs .tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 77, 141, .3);
}

/* Simple card variant for history/likes/saves tabs */
.mine-card.is-simple .mc-check { display: none; }
.mine-card .mc-extra,
.mine-card .mc-watched {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
}
.mine-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.7;
}

/* =====================================================================
   Download List
   ===================================================================== */
.dl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.dl-info {
  flex: 1 1 auto;
  min-width: 0;
}
.dl-title {
  display: block;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-title:hover { color: var(--accent); }
.dl-meta {
  font-size: 12px;
  color: var(--text-3);
}
.dl-progress {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dl-bar {
  height: 6px;
  background: var(--bg-2);
  border-radius: 3px;
  overflow: hidden;
}
.dl-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
  transition: width .3s ease;
}
.dl-status {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
.dl-status.is-completed { color: #7ee787; }
.dl-status.is-failed { color: #ff6b6b; }
.dl-status.is-downloading { color: var(--accent); }
.dl-del {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.dl-del:hover { background: rgba(255, 77, 141, .15); color: var(--accent); }
.dl-del svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .dl-item { flex-wrap: wrap; gap: 10px; }
  .dl-progress { flex: 1 1 100%; }
  .dl-del { position: absolute; top: 10px; right: 10px; }
  .dl-item { position: relative; }
}

/* =====================================================================
   Admin Panel
   ===================================================================== */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 18px;
  background: var(--bg-2);
  border-radius: var(--radius-pill);
  padding: 5px;
  width: fit-content;
}
.admin-tabs .tab {
  flex: 0 0 auto;
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: .2s;
}
.admin-tabs .tab:hover { color: var(--text-2); }
.admin-tabs .tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 77, 141, .3);
}

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table thead {
  background: var(--bg-2);
}
.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--border-soft);
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--text-2);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.ad-td-id { font-family: "SF Mono", Consolas, monospace; color: var(--text-3); font-size: 12px; }
.ad-td-title a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.ad-td-title a:hover { color: var(--accent); }
.ad-td-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.ad-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}
.ad-badge.is-visible { background: rgba(126, 231, 135, .15); color: #7ee787; }
.ad-badge.is-hidden { background: rgba(255, 107, 107, .15); color: #ff6b6b; }
.ad-badge.is-admin { background: rgba(255, 77, 141, .15); color: var(--accent); }
.ad-badge.is-member { background: var(--bg-2); color: var(--text-3); }

.ad-role {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text);
  font-size: 12px;
  margin-right: 8px;
  cursor: pointer;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  margin-right: 4px;
}

@media (max-width: 720px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
  }
  .admin-table td {
    padding: 4px 0;
    border: none;
    font-size: 13px;
  }
}

.admin-entry {
  background: rgba(255, 77, 141, .12);
  color: var(--accent);
  border: 1px solid rgba(255, 77, 141, .3);
}
.admin-entry:hover {
  background: rgba(255, 77, 141, .2);
}

/* =====================================================================
   Playlist / Likes list page (mine-lists.html)
   ===================================================================== */

/* ---- Gate ---- */
.list-gate {
  display: grid;
  place-items: center;
  padding: 80px 20px;
}

/* ---- Hero banner ---- */
.list-hero {
  --hero-from-rgb: 255,77,141;   /* pink */
  --hero-to-rgb: 138,91,255;     /* purple */
  --hero-cover-from: #ff4d8d;
  --hero-cover-to: #8a5bff;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 10px 0 28px;
  isolation: isolate;
}
.list-hero .lh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(var(--hero-from-rgb), .55) 0%, transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(var(--hero-to-rgb), .55) 0%, transparent 55%),
    linear-gradient(135deg, #1c1626 0%, #120f1e 100%);
  z-index: -2;
}
.list-hero .lh-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,.02) 40px 42px);
  pointer-events: none;
}
.list-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
}
.lh-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  position: relative;
}
.lh-cover {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--hero-cover-from), var(--hero-cover-to));
  box-shadow:
    0 10px 40px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.1),
    inset 0 1px 0 rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.lh-cover > svg:first-child {
  width: 58px;
  height: 58px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.lh-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  opacity: .55;
  z-index: 1;
  mix-blend-mode: overlay;
}
.lh-tile {
  background-size: cover;
  background-position: center;
}
.lh-info {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}
.lh-kicker {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
}
.lh-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.lh-sub {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
  max-width: 520px;
}
.lh-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
}
.lh-dot { color: rgba(255,255,255,.35); }
.lh-actions { flex: 0 0 auto; display: flex; align-items: center; }

/* ---- Bar (sort + count + clear) ---- */
.list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 14px;
}
.list-bar-left, .list-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lb-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}
.lb-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}
.lb-sort select {
  padding: 7px 28px 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e85' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 10px center;
  color: var(--text);
  appearance: none;
  cursor: pointer;
  font-size: 13px;
}
.lb-sort select:hover { border-color: var(--accent); }

/* ---- Grid wrapper ---- */
.list-grid-wrap {
  position: relative;
  padding-bottom: 40px;
}

/* ---- Card extras (lc-) ---- */
.lc-card .thumb { overflow: visible; position: relative; }
.lc-card .thumb .lc-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(.85);
  transition: .2s cubic-bezier(.34,1.56,.64,1);
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.lc-card:hover .thumb .lc-remove {
  opacity: 1;
  transform: scale(1);
}
.lc-card .thumb .lc-remove:hover {
  background: var(--accent);
  border-color: transparent;
}
.lc-card .thumb .lc-remove svg { width: 14px; height: 14px; }

.lc-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-2);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  letter-spacing: .3px;
}

/* ---- Empty state ---- */
.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
}
.list-empty .le-ico {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--accent);
}
.list-empty .le-ico svg { width: 42px; height: 42px; }
.list-empty h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.list-empty p {
  font-size: 14px;
  margin-bottom: 22px;
  max-width: 420px;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .lh-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 18px;
  }
  .lh-cover {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 16px;
  }
  .lh-cover > svg:first-child { width: 42px; height: 42px; }
  .lh-title { font-size: 22px; }
  .lh-sub { margin-left: auto; margin-right: auto; }
  .lh-actions { display: none; }
  .list-bar { flex-direction: column; gap: 10px; align-items: stretch; }
  .list-bar-right { justify-content: space-between; }
}
@media (max-width: 480px) {
  .lh-stats { flex-wrap: wrap; justify-content: center; }
  .lb-sort { flex: 1; }
  .lb-sort select { flex: 1; }
}

/* =====================================================================
   Profile 4 tabs: History / Likes / Saves / Downloads — beautified
   ===================================================================== */

/* ---- Grid override for tab content (use homepage grid, not .mine-grid row) ---- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.pf-grid .card { transition: transform .25s ease, box-shadow .25s ease; }
.pf-grid .card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* ---- Accent corner badges on thumbnail (watched clock / liked heart / saved bookmark) ---- */
.lc-pf-card .thumb { position: relative; }
.lc-pf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  z-index: 3;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.lc-pf-badge svg { width: 16px; height: 16px; }
.lc-pf-badge-watched { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.lc-pf-badge-liked   { background: rgba(255,77,141,.9);  color: #fff; border: 1px solid rgba(255,77,141,.5); }
.lc-pf-badge-saved   { background: rgba(54,214,195,.9);  color: #fff; border: 1px solid rgba(54,214,195,.5); }

/* ---- Date badge under meta row ---- */
.lc-pf-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
}
.lc-pf-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.lc-pf-date svg { width: 12px; height: 12px; }

/* ---- Empty state icons (for History/Likes/Saves) ---- */
.pf-grid + .empty h3 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.pf-grid + .empty p { font-size: 13px; color: var(--text-3); margin-bottom: 18px; max-width: 380px; line-height: 1.55; }
.pf-empty-ico {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--accent);
}
.pf-empty-ico svg { width: 36px; height: 36px; }

/* ---- Downloads: card with thumbnail (replaces old flat .dl-item) ---- */
.dl-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  transition: .2s;
  margin-bottom: 10px;
}
.dl-card:hover { border-color: var(--border); background: #191927; transform: translateX(2px); }
.dl-thumb {
  position: relative;
  width: 110px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  flex: 0 0 110px;
}
.dl-thumb .cover-img, .dl-thumb .cover-grad { width: 100%; height: 100%; object-fit: cover; }
.dl-thumb .cover-grad { display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 28px; }
.dl-status-dot {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.6);
}
.dl-status-dot.is-pending     { background: #f59e0b; }
.dl-status-dot.is-downloading { background: var(--accent); animation: dl-pulse 1.2s ease-in-out infinite; }
.dl-status-dot.is-completed   { background: #7ee787; }
.dl-status-dot.is-failed      { background: #ff6b6b; }
@keyframes dl-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.dl-info { min-width: 0; }
.dl-title {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-title:hover { color: var(--accent); }
.dl-meta { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.dl-progress { display: flex; flex-direction: column; gap: 4px; }
.dl-bar {
  height: 5px;
  background: var(--bg-2);
  border-radius: 3px;
  overflow: hidden;
}
.dl-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
  transition: width .4s ease;
}
.dl-bar-fill.is-complete {
  background: linear-gradient(90deg, #3ccf8f, #7ee787);
}
.dl-status {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}
.dl-status.is-completed   { color: #7ee787; }
.dl-status.is-failed      { color: #ff6b6b; }
.dl-status.is-downloading { color: var(--accent); }

.dl-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dl-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border-radius: 8px;
  text-decoration: none;
  transition: .2s;
}
.dl-open svg { width: 13px; height: 13px; }
.dl-open:hover { filter: brightness(1.1); transform: translateY(-1px); }
.dl-del {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--text-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .2s;
}
.dl-del svg { width: 14px; height: 14px; }
.dl-del:hover { color: #ff6b6b; border-color: #ff6b6b; background: rgba(255,107,107,.08); }

/* ---- Downloads empty state ---- */
#downloadsEmpty { padding: 50px 20px; text-align: center; color: var(--text-3); }
#downloadsEmpty h3 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
#downloadsEmpty p { font-size: 13px; max-width: 340px; margin: 0 auto; }

@media (max-width: 640px) {
  .dl-card { grid-template-columns: 72px 1fr; padding: 10px; gap: 10px; }
  .dl-thumb { width: 72px; flex-basis: 72px; }
  .dl-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--border-soft); }
  .dl-open { padding: 5px 10px; font-size: 11px; }
}

/* =====================================================================
   Trending Banner + Home Category Tabs (参考图 home.jpeg)
   ===================================================================== */
.trending-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 8px 0 22px;
  isolation: isolate;
  background: #161027;
}
.trending-banner .tb-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(255,77,141,.65) 0%, transparent 48%),
    radial-gradient(circle at 25% 80%, rgba(138,91,255,.6) 0%, transparent 48%),
    linear-gradient(135deg, #1b0f2b 0%, #0d0822 100%);
  z-index: -2;
}
.trending-banner .tb-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(255,255,255,.018) 34px 36px);
  pointer-events: none;
}
.tb-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 38px 42px;
  position: relative;
}
.tb-text { flex: 1 1 auto; min-width: 0; color: #fff; }
.tb-kicker {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  margin-bottom: 14px;
}
.tb-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.4px;
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.tb-sub { font-size: 14px; color: rgba(255,255,255,.72); margin-bottom: 18px; max-width: 460px; }
.tb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  transition: .2s;
}
.tb-chips:hover { background: rgba(255,255,255,.18); }

/* Right side decorative cover */
.tb-cover {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  position: relative;
}
.tb-cover-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.18);
  animation: ringSpin 22s linear infinite;
}
.tb-cover-glow {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,141,.5) 0%, rgba(138,91,255,.4) 50%, transparent 80%);
  filter: blur(12px);
}
.tb-cover-inner {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d8d, #8a5bff, #36d6c3);
  background-size: 200% 200%;
  animation: ringSpin 8s linear infinite, gradMove 6s ease-in-out infinite;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
.tb-cover-inner svg { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes gradMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--bg-2);
  border-radius: 999px;
  margin: 18px 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ctab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: .2s;
}
.ctab:hover { color: var(--text-2); }
.ctab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,77,141,.3);
}

@media (max-width: 720px) {
  .tb-inner { flex-direction: column; text-align: center; padding: 28px 20px; gap: 18px; }
  .tb-actions { justify-content: center; }
  .tb-sub { margin-left: auto; margin-right: auto; }
  .tb-cover { width: 140px; height: 140px; flex-basis: 140px; }
}

/* =====================================================================
   Watch Page Hero — cover + wave (参考图 player.jpeg)
   ===================================================================== */
.watch-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 8px 0 22px;
  isolation: isolate;
  background: #100a1e;
}
.watch-hero .wh-blur {
  position: absolute;
  inset: -40px -20px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.45);
  z-index: -2;
  opacity: .85;
}
.watch-hero .wh-blur::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,25,.75) 0%, rgba(10,8,25,0) 45%, rgba(10,8,25,.85) 100%);
}
.wh-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 42px;
  position: relative;
}
.wh-cover-wrap {
  flex: 0 0 auto;
  position: relative;
  width: 220px;
  height: 220px;
}
.wh-cover {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.08);
  z-index: 2;
}
.wh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wh-cover .cover-grad { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 80px; background-size: 200% 200%; animation: gradMove 8s ease-in-out infinite; }
.wh-ring {
  position: absolute; inset: -8px;
  border-radius: 22px;
  border: 2px dashed rgba(255,255,255,.2);
  animation: ringSpin 28s linear infinite;
  z-index: 1;
}
.wh-glow {
  position: absolute; inset: -20px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255,77,141,.55) 0%, rgba(138,91,255,.4) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: haloPulse 3.5s ease-in-out infinite;
}
@keyframes haloPulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* 波形 SVG 装饰 */
.wh-wave {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -52px;
  width: 170%;
  height: 80px;
  filter: drop-shadow(0 0 12px rgba(255,77,141,.5));
  pointer-events: none;
  z-index: 3;
}
.wh-bars .whb { transform-origin: center bottom; }
/* 每个 bar 不同的延迟 — 波浪动画 */
.wh-bars .whb:nth-child(1)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .00s; }
.wh-bars .whb:nth-child(2)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .04s; }
.wh-bars .whb:nth-child(3)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .08s; }
.wh-bars .whb:nth-child(4)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .12s; }
.wh-bars .whb:nth-child(5)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .16s; }
.wh-bars .whb:nth-child(6)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .20s; }
.wh-bars .whb:nth-child(7)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .24s; }
.wh-bars .whb:nth-child(8)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .28s; }
.wh-bars .whb:nth-child(9)  { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .32s; }
.wh-bars .whb:nth-child(10) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .36s; }
.wh-bars .whb:nth-child(11) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .40s; }
.wh-bars .whb:nth-child(12) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .44s; }
.wh-bars .whb:nth-child(13) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .48s; }
.wh-bars .whb:nth-child(14) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .52s; }
.wh-bars .whb:nth-child(15) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .56s; }
.wh-bars .whb:nth-child(16) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .60s; }
.wh-bars .whb:nth-child(17) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .64s; }
.wh-bars .whb:nth-child(18) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .68s; }
.wh-bars .whb:nth-child(19) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .72s; }
.wh-bars .whb:nth-child(20) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .76s; }
.wh-bars .whb:nth-child(21) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .80s; }
.wh-bars .whb:nth-child(22) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .84s; }
.wh-bars .whb:nth-child(23) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .88s; }
.wh-bars .whb:nth-child(24) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .92s; }
.wh-bars .whb:nth-child(25) { animation: wavePulse 1.6s ease-in-out infinite; animation-delay: .96s; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

.wh-info { flex: 1 1 auto; min-width: 0; color: #fff; }
.wh-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--grad);
  margin-bottom: 12px;
}
.wh-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.3px;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wh-artist {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
}
.wh-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}

/* 给 watch-layout 上间距 (wave 悬垂了 50px) */
.watch-hero[hidden] + .watch-layout { margin-top: 0; }
.watch-hero:not([hidden]) + .watch-layout { margin-top: 24px; }

/* watch-hero 响应式竖排 —— 已移入 html.app-mode 里, 不影响 Web */

/* =====================================================================
   移动端底部导航栏 (参考图 home.jpeg)
   ===================================================================== */
.tabbar {
  display: none;    /* 默认桌面端隐藏 */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(12, 10, 24, .92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -8px 30px rgba(0,0,0,.45);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 2px;
  height: 100%;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s, transform .15s;
  font-size: 11px;
  font-weight: 600;
}
.tabbar-item svg { width: 22px; height: 22px; }
.tabbar-item.active {
  color: var(--accent);
}
.tabbar-item.active svg {
  filter: drop-shadow(0 0 8px rgba(255,77,141,.5));
}

/* 中心上传加号按钮 */
.tabbar-center {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d8d, #8a5bff);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(255,77,141,.5),
    0 0 0 3px rgba(12,10,24,1);
  position: relative;
  transition: transform .2s;
}
.tabbar-center:active { transform: scale(.92); }
.tabbar-center svg { width: 26px; height: 26px; }
.tabbar-center .tbc-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.35);
  animation: ringSpin 18s linear infinite;
}

/* =====================================================================
   APP / Web 互斥显隐控制 (通用, 可选使用)
   .app-only:  只在 APP 模式下显示 (默认 hidden)
   .web-only:  只在 Web 模式下显示 (默认显示, APP 模式下 hidden)
   注: Trending Banner + cat-tabs 全站显示, 不加 app-only
   ===================================================================== */
html.app-mode .web-only { display: none !important; }

/* =====================================================================
   APP 专属样式 —— 仅在 Android WebView (?app=1) 下生效
   电脑端和普通手机浏览器完全不受影响
   ===================================================================== */

/* tabbar: 默认全局隐藏, 只在 .app-mode 下显示 (基础样式在上面 .tabbar) */
html.app-mode .tabbar { display: flex; align-items: center; }

/* 主体给 tabbar 留空间 */
html.app-mode body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }

/* 桌面 footer 在 APP 内隐藏 */
html.app-mode .footer { display: none; }

/* header 简化 */
html.app-mode .header {
  position: sticky; top: 0; z-index: 100;
  height: auto; padding: 8px 14px;
  border-bottom: 1px solid var(--border-soft);
}
html.app-mode .header-inner { gap: 8px; flex-wrap: nowrap; align-items: center; }
html.app-mode .header .nav { display: none; }
html.app-mode .header-search { display: none; }
html.app-mode .header-actions { display: none; }
html.app-mode .logo { font-size: 16px; gap: 6px; }
html.app-mode .logo-mark { width: 22px; height: 22px; }

/* 页面容器 */
html.app-mode .page.wrap { padding: 12px; max-width: 100%; }

/* 播放页专用: 全宽无留白 */
html.app-mode.watch-page .page.wrap { padding: 0 0 0 0 !important; margin: 0 !important; }
html.app-mode.watch-page .player-shell {
  margin: 0 !important; padding: 0 !important; border-radius: 0 !important;
}
html.app-mode.watch-page .player-shell video {
  width: 100% !important; height: auto !important;
  display: block; border-radius: 0 !important;
}
html.app-mode.watch-page .watch-layout { display: block !important; margin: 0 !important; padding: 0 !important; }
html.app-mode.watch-page .watch-main { width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* Home trending banner 竖排 */
html.app-mode .trending-banner .tb-inner {
  flex-direction: column; text-align: center;
  padding: 24px 20px; gap: 16px;
}
html.app-mode .tb-cover { flex-basis: 130px; width: 130px; height: 130px; }
html.app-mode .tb-title { font-size: 22px; }
html.app-mode .tb-actions { justify-content: center; flex-wrap: wrap; }

/* 分类 tabs 可横滑 */
html.app-mode .cat-tabs { padding: 4px; margin: 12px 0 8px; overflow-x: auto; }
html.app-mode .ctab { padding: 7px 14px; font-size: 12px; }

/* 视频网格 2 列 */
html.app-mode .grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
html.app-mode .grid .card .thumb { border-radius: 10px; }
html.app-mode .grid .card .body .title { font-size: 13px; }

/* Hot Picks: APP 模式下 2 行横向滚动 */
html.app-mode .hot-zone {
  display: grid;
  grid-template-columns: repeat(auto-fill, 160px);
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
html.app-mode .hot-zone .card {
  scroll-snap-align: start;
  width: 160px;
  flex: 0 0 160px;
}
html.app-mode .hot-zone .card .thumb {
  width: 160px;
  height: 90px;
  border-radius: 10px;
}
html.app-mode .hot-zone .card .body .title {
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 隐藏滚动条但保持功能 */
html.app-mode .hot-zone::-webkit-scrollbar { height: 4px; }
html.app-mode .hot-zone::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2); border-radius: 4px;
}
html.app-mode .grid .card .body .meta { font-size: 11px; }

/* ========== APP 播放页自定义控件 ========== */

/* 顶栏 */
html.app-mode .app-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(10,8,19,.95), rgba(10,8,19,.7));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html.app-mode .atb-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
}
html.app-mode .atb-back:active { background: rgba(255,255,255,.2); }
html.app-mode .atb-back svg { width: 20px; height: 20px; }
html.app-mode .atb-title {
  font-weight: 700; font-size: 16px; color: #fff;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #ff4d8d, #8a5bff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
html.app-mode .atb-actions { display: flex; gap: 8px; }
html.app-mode .atb-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
html.app-mode .atb-btn:active { background: rgba(255,255,255,.2); }
html.app-mode .atb-btn svg { width: 18px; height: 18px; }
html.app-mode .atb-btn.liked { color: #ff4d8d; }
html.app-mode .atb-btn.saved { color: #f7c948; }

/* 隐藏原生 player-tools 和 header/footer/action-bar */
html.app-mode .player-tools { display: none !important; }
html.app-mode .header { display: none !important; }
html.app-mode .footer { display: none !important; }
/* APP 播放页: 简化布局 */
html.app-mode .watch-hero { display: none !important; }
html.app-mode .player-tools { display: none !important; }
html.app-mode .header { display: none !important; }
html.app-mode .footer { display: none !important; }
html.app-mode .watch-meta { display: none !important; }
html.app-mode .action-bar { display: none !important; }
html.app-mode .watch-side { display: none !important; }
html.app-mode .comments { display: none !important; }
html.app-mode .desc-box { display: none !important; }
html.app-mode .watch-layout { display: block !important; }
html.app-mode .watch-main { width: 100%; margin: 0; }
html.app-mode .watch-main h1,
html.app-mode .watch-main .desc-box { display: none !important; }

/* APP player controls 整体 */
html.app-mode .app-player-controls {
  padding: 16px 16px 80px;  /* 底部留 tabbar 空间 */
  background: linear-gradient(180deg, rgba(10,8,19,.85), rgba(10,8,19,.95));
  color: #fff;
  /* 增大 tap 区域 */
  -webkit-tap-highlight-color: transparent;
}

/* 信息区 */
html.app-mode .apc-info { margin-bottom: 14px; }
html.app-mode .apc-title {
  font-size: 20px; font-weight: 800; color: #fff;
  margin: 0 0 4px; letter-spacing: -.3px;
  line-height: 1.25;
}
html.app-mode .apc-sub {
  font-size: 14px; color: rgba(255,255,255,.6);
  margin: 0;
}

/* 进度条 */
html.app-mode .apc-progress {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
html.app-mode .apc-time {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
  min-width: 32px; text-align: center;
}
html.app-mode .apc-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.15);
  position: relative; cursor: pointer;
}
html.app-mode .apc-bar-buffered {
  position: absolute; inset: 0; border-radius: 3px;
  background: rgba(255,255,255,.25);
  width: 0%;
}
html.app-mode .apc-bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  border-radius: 3px; width: 0%;
  background: linear-gradient(90deg, #ff4d8d, #8a5bff);
  box-shadow: 0 0 8px rgba(255,77,141,.4);
}
html.app-mode .apc-bar-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,77,141,.5), 0 2px 6px rgba(0,0,0,.4);
  left: 0%;
  transition: transform .15s;
}
html.app-mode .apc-bar:active .apc-bar-thumb { transform: translate(-50%, -50%) scale(1.3); }

/* 控制按钮 —— 更大 tap 区域 + 无 transition 延迟 */
html.app-mode .apc-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 16px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html.app-mode .apc-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  /* 零延迟 —— 不阻碍 Android tap */
  transition: none !important;
  -webkit-tap-highlight-color: transparent;
}
html.app-mode .apc-btn:active { background: rgba(255,255,255,.22); }
html.app-mode .apc-btn svg { width: 24px; height: 24px; }
html.app-mode .apc-btn.speed {
  font-size: 14px; font-weight: 700;
  background: rgba(138,91,255,.25);
}
html.app-mode .apc-btn.favorite.liked { color: #ff4d8d; }

/* Play 大按钮 — 更大 tap */
html.app-mode .apc-btn.play {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #ff4d8d, #8a5bff);
  box-shadow: 0 6px 24px rgba(255,77,141,.5), 0 0 40px rgba(138,91,255,.3);
}
html.app-mode .apc-btn.play svg { width: 32px; height: 32px; }

/* Footer */
html.app-mode .apc-footer {
  text-align: center;
  font-size: 11px; color: rgba(255,255,255,.4);
  letter-spacing: .8px; text-transform: uppercase;
}

/* Watch page: APP 模式下 watch-hero 竖排 + watch-layout 堆叠 */
html.app-mode .watch-hero .wh-inner {
  flex-direction: column; text-align: center;
  padding: 22px 16px 40px; gap: 18px;
}
html.app-mode .wh-cover-wrap { width: 140px; height: 140px; }
html.app-mode .wh-cover { width: 130px; height: 130px; border-radius: 12px; }
html.app-mode .wh-wave { bottom: -30px; height: 48px; }
html.app-mode .wh-title { font-size: 20px; }
html.app-mode .wh-meta { justify-content: center; }
html.app-mode .watch-layout { flex-direction: column; gap: 16px; }
html.app-mode .watch-side { width: 100%; }

/* Profile 页 tabs */
html.app-mode .profile-tabs { gap: 4px; padding: 4px; }
html.app-mode .profile-tabs .tab { padding: 7px 10px; font-size: 11px; }
html.app-mode .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Playlist/Likes 页 */
html.app-mode .list-hero .lh-inner {
  flex-direction: column; text-align: center;
  padding: 22px 16px; gap: 16px;
}
html.app-mode .lh-cover { flex-basis: 90px; width: 90px; height: 90px; }
html.app-mode .lh-title { font-size: 20px; }
html.app-mode .lh-actions { display: none; }
html.app-mode .list-bar { flex-direction: column; align-items: stretch; gap: 8px; }

/* Downloads */
html.app-mode .dl-card {
  grid-template-columns: 90px 1fr;
  padding: 10px; gap: 10px;
}
html.app-mode .dl-thumb { width: 90px; flex-basis: 90px; }
html.app-mode .dl-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; }

/* 隐藏桌面特有元素 */
html.app-mode .more { display: none !important; }
html.app-mode .sort-dir { display: none; }
html.app-mode .section-head h2 { font-size: 18px; }
