/* 用户控制台（独立于前台） */
[v-cloak] { display: none; }

.console-body { margin: 0; background: #f4f5fa; }
.uc-app { display: flex; min-height: 100vh; }

/* 侧边栏 */
.uc-sidebar {
  width: 240px; flex: none; height: 100vh; position: sticky; top: 0;
  background: linear-gradient(180deg, #1b1b2f 0%, #141422 100%);
  color: #c8c8dc; display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(20, 20, 40, .08);
}
.uc-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.uc-brand .logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple)); box-shadow: 0 8px 18px rgba(255,77,109,.35); }
.uc-brand b { display: block; font-size: 14px; color: #fff; }
.uc-brand em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 2px; }

.uc-user { display: flex; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.uc-avatar { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff7a95, #7b2ff7); }
.uc-uinfo { min-width: 0; }
.uc-name { font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-mail { font-size: 11px; color: rgba(255,255,255,.45); margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-badges { display: flex; gap: 6px; }
.uc-badges .vip-badge { font-size: 11px; padding: 1px 8px; }
.uc-badges .plain-badge { font-size: 11px; }

.uc-nav { flex: 1; padding: 12px 12px; overflow-y: auto; }
.uc-nav a {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; margin-bottom: 3px;
  border-radius: 10px; font-size: 13.5px; color: #b9b9cf; cursor: pointer; transition: .18s; position: relative;
}
.uc-nav a .ic { width: 20px; text-align: center; font-size: 14px; opacity: .85; }
.uc-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.uc-nav a.active { background: linear-gradient(135deg, var(--primary), #a13ff0); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(255,77,109,.28); }
.uc-nav a .dot { margin-left: auto; min-width: 18px; height: 18px; border-radius: 999px; background: #fff; color: var(--primary);
  font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

.uc-side-foot { padding: 12px 14px 18px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 2px; }
.uc-side-foot a { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.55); cursor: pointer; }
.uc-side-foot a:hover { background: rgba(255,255,255,.07); color: #fff; }

/* 主区 */
.uc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc-top { height: 74px; flex: none; background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.uc-title h1 { margin: 0; font-size: 20px; letter-spacing: .3px; }
.uc-title span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.uc-top-actions { display: flex; gap: 8px; }
.uc-content { padding: 22px 26px 120px; max-width: 1280px; }

/* 卡片与统计 */
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(28,28,40,.04); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.5px; }
.stat-sub { font-size: 13px; font-weight: 400; color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick { padding: 16px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfbfe, #f6f7fc); transition: .18s; }
.quick:hover { transform: translateY(-2px); border-color: #ffd3dc; box-shadow: 0 10px 24px rgba(255,77,109,.1); }
.quick b { display: block; font-size: 14px; margin-bottom: 5px; }
.quick span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.guide { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 2; }
.guide li { list-style: decimal; }

/* 歌单 */
.pl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.pl-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; transition: .2s; position: relative; }
.pl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,28,40,.1); }
.pl-count { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.42);
  padding: 1px 7px; border-radius: 999px; backdrop-filter: blur(4px); }
.pl-meta { padding: 9px 2px 5px; }
.pl-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-actions { display: flex; justify-content: flex-end; gap: 2px; }

.song-rows { display: flex; flex-direction: column; }
.song-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.song-row:last-child { border-bottom: 0; }
.song-row .idx { width: 24px; text-align: center; color: var(--muted); font-size: 12px; }
.cover.mini { width: 40px; height: 40px; border-radius: 8px; aspect-ratio: auto; flex: none; }
.sr-meta { flex: 1; min-width: 0; }
.sr-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search-row { display: flex; gap: 12px; margin-bottom: 12px; max-width: 720px; }
.search-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; margin-top: 18px; }

/* 导入 */
.import-row { display: flex; gap: 12px; max-width: 820px; }
.import-preview { display: flex; gap: 18px; align-items: flex-start; margin-top: 18px; padding: 16px;
  border: 1px dashed var(--line); border-radius: 12px; background: #fbfbfe; flex-wrap: wrap; }
.import-preview .cover { width: 110px; height: 110px; flex: none; }
.ip-info { flex: 1; min-width: 220px; }
.ip-info b { font-size: 15px; display: block; margin-bottom: 4px; }
.ip-info p { margin: 8px 0 0; line-height: 1.7; }
.ip-form { width: 260px; flex: none; }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.rec b { font-size: 13px; }
.rec .el-button { margin-left: auto; }

/* 播放器 */
.pv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pv-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pv-name { font-size: 14.5px; font-weight: 600; }
.pv-preview { margin: 12px 0; border-radius: 12px; overflow: hidden; background: #14101f; }
.pv-preview iframe { width: 100%; height: 180px; display: block; border: 0; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pv-code { font-size: 11px; max-height: 58px; overflow: auto; }

/* 会员 */
.vip-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vip-level { font-size: 17px; font-weight: 600; margin-top: 4px; }
.el-table .level-current { background: rgba(255, 77, 109, .07); }
.el-table .level-current td { font-weight: 600; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; }
.plan-card.hot { border-color: var(--primary); box-shadow: 0 12px 30px rgba(255,77,109,.14); }
.plan-badge { position: absolute; top: -11px; right: 16px; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple)); }
.plan-name { font-size: 14.5px; font-weight: 600; }
.plan-price { font-size: 30px; font-weight: 800; color: var(--primary); margin: 10px 0 6px; }
.plan-price .unit { font-size: 15px; }
.plan-sub { margin-bottom: 14px; }

.form-card { max-width: 560px; }
.pay-box { text-align: center; }
.pay-box p { margin: 8px 0; }

@media (max-width: 1180px) {
  .stat-grid, .quick-grid, .pl-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-grid { grid-template-columns: 1fr; }
  .pv-grid, .plan-grid, .vip-status { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .uc-app { flex-direction: column; }
  .uc-sidebar { width: 100%; height: auto; position: relative; }
  .uc-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .uc-side-foot { flex-direction: row; flex-wrap: wrap; }
  .uc-content { padding: 16px 14px 40px; }
  .uc-top { padding: 0 14px; height: 64px; }
  .stat-grid, .quick-grid, .pl-grid { grid-template-columns: 1fr; }
  .import-preview { flex-direction: column; }
  .ip-form { width: 100%; }
}

/* 播放器编辑器：表单 + 实时预览 */
.player-editor { display: grid; grid-template-columns: 1fr 520px; gap: 20px; align-items: start; }
.pe-form { padding-right: 18px; border-right: 1px solid var(--line); }
.pe-preview { display: flex; flex-direction: column; gap: 8px; }
.pe-preview-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.pe-preview-head .small { font-weight: 400; }

.pe-tip { line-height: 1.6; }
@media (max-width: 900px) {
  .player-editor { grid-template-columns: 1fr; }
  .pe-form { border-right: 0; padding-right: 0; }
}

/* 控制台内试听条 */
.uc-audio {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(28, 28, 40, .18); width: min(720px, calc(100% - 32px));
}
.ua-cover { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #eee; flex: none; }
.ua-cover img { width: 100%; height: 100%; object-fit: cover; }
.ua-info { width: 150px; min-width: 0; }
.ua-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-audio { flex: 1; height: 36px; }

/* 模拟网页插入预览 */
.pe-browser {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 10px 24px rgba(20, 20, 40, .07);
}
.pe-browser-bar {
  height: 26px; display: flex; align-items: center; gap: 5px;
  padding: 0 10px; background: #f4f5f9; border-bottom: 1px solid var(--line);
}
.pe-browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e2e3ec; }
.pe-browser-bar i:nth-child(1) { background: #ff6058; }
.pe-browser-bar i:nth-child(2) { background: #ffbd2e; }
.pe-browser-bar i:nth-child(3) { background: #28c840; }
.pe-browser-bar span {
  margin-left: 8px; font-size: 10px; color: #9a9ab0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pe-page {
  position: relative; padding: 12px; min-height: 320px; overflow: hidden;
  background: linear-gradient(180deg, #fbfbfe, #f0f1f7);
}
.pe-fake { display: flex; flex-direction: column; gap: 8px; padding-right: 10px; }
.fake-line { height: 9px; border-radius: 6px; background: #e5e7f1; }
.fake-line.w60 { width: 60%; }
.fake-line.w75 { width: 75%; }
.fake-line.w85 { width: 85%; }
.fake-line.w90 { width: 90%; }
.fake-img { height: 54px; border-radius: 10px; background: linear-gradient(120deg, #dde2f2, #eef1fa); }
.pe-player {
  position: absolute; right: 10px; bottom: 10px; max-width: 500px;
  width: calc(100% - 20px); filter: drop-shadow(0 14px 26px rgba(20, 20, 40, .2));
  transition: height .2s;
}
.pe-player.hidden { display: none; }
.pe-player iframe {
  width: 100%; display: block; border: 0; border-radius: 14px; background: #14101f;
}
.pe-launcher {
  position: absolute; display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; z-index: 3; user-select: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: opacity .15s;
}
.pe-launcher:hover { opacity: 1 !important; }
.pe-switches { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }

.pe-pos-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
