/* ==========================================================================
   个人网络电台 · 全站样式表
   深色主题 · 主色 #7c5cff · 强调色 #22d3ee
   纯原生 CSS，无外部字体 / 无 CDN 依赖
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  --primary: #7c5cff;
  --primary-d: #6244e0;
  --primary-l: #9d8bff;
  --accent: #22d3ee;
  --accent-d: #0e9fbd;
  --accent-l: #6ee7f5;

  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --bg: #0a0c13;
  --bg-2: #0e1119;
  --surface: #141826;
  --surface-2: #1a1f31;
  --surface-3: #222841;

  --line: #232a42;
  --line-2: #2f3757;

  --text: #e9ebf7;
  --text-2: #b9bfd8;
  --muted: #8a90b0;
  --dim: #666d8f;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --sidebar-w: 232px;
  --topbar-h: 60px;

  --shadow: 0 14px 44px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .32);
  --glow: 0 0 0 3px rgba(124, 92, 255, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", "Courier New", monospace;
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.r-has-shell { background: var(--bg-2); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; line-height: 1.3; }
h1 { font-size: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary-l); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #262d47; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #343d5e; background-clip: content-box; }

::selection { background: rgba(124, 92, 255, .4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. 应用骨架：侧边栏 + 顶栏 + 内容区
   -------------------------------------------------------------------------- */
.r-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #121629 0%, #0d1019 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .22s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0a0c13;
  box-shadow: 0 4px 14px rgba(124, 92, 255, .45);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-text b { font-size: 14.5px; letter-spacing: .2px; }
.brand-text small { font-size: 11px; color: var(--dim); letter-spacing: 1.4px; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(124, 92, 255, .26), rgba(34, 211, 238, .09));
  color: #fff;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.nav-ic { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.nav-ic svg { width: 18px; height: 18px; }
.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.user-box { display: flex; align-items: center; gap: 9px; padding: 4px 6px; min-width: 0; }
.avatar {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #0a0c13; font-weight: 700; font-size: 13px;
}
.user-name { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px;
  background: rgba(10, 12, 19, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: 16.5px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.menu-btn { display: none !important; }

.content { padding: 22px; flex: 1; min-width: 0; max-width: 1560px; width: 100%; }

.scrim { display: none; }

/* --------------------------------------------------------------------------
   4. 页面头部 / 工具栏
   -------------------------------------------------------------------------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.page-head h2 { font-size: 20px; margin-bottom: 3px; }
.page-head p { color: var(--muted); font-size: 13px; margin: 0; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar-left { display: flex; align-items: center; gap: 9px; flex: 1; flex-wrap: wrap; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   5. 布局辅助
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.two-col { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }

.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.center { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }

/* 当前播放信息（仪表盘 / 播放控制页共用） */
.now-title {
  font-size: 19px; font-weight: 650; font-family: var(--font);
  margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.now-artist { font-size: 13.5px; color: var(--muted); margin: 0; }
.now-album { font-size: 12px; color: var(--dim); margin: 4px 0 0; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accent-text { color: var(--accent); }
.primary-text { color: var(--primary-l); }
.ok-text { color: var(--ok); }
.err-text { color: var(--err); }
.center-text { text-align: center; }
.right-text { text-align: right; }

/* --------------------------------------------------------------------------
   6. 卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.card-title { font-size: 14.5px; font-weight: 640; display: flex; align-items: center; gap: 8px; }
.card-title svg { width: 16px; height: 16px; color: var(--primary-l); }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* 统计卡片 */
.stat { display: flex; align-items: center; gap: 14px; padding: 16px; }
.stat-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, .14);
  color: var(--primary-l);
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-icon.accent { background: rgba(34, 211, 238, .13); color: var(--accent); }
.stat-icon.ok { background: rgba(52, 211, 153, .13); color: var(--ok); }
.stat-icon.warn { background: rgba(251, 191, 36, .13); color: var(--warn); }
.stat-body { min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 11.5px; color: var(--dim); }

/* 键值列表 */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; word-break: break-all; }

/* --------------------------------------------------------------------------
   7. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px; font-weight: 560;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s, opacity .15s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: #3b4569; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 255, .3);
}
.btn.primary:hover { background: linear-gradient(135deg, #8a6dff, #6d4ff0); }
.btn.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  border-color: transparent; color: #04222b;
}
.btn.accent:hover { filter: brightness(1.08); }
.btn.danger { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.btn.danger:hover { background: rgba(248, 113, 113, .24); }
.btn.ok { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .4); color: #6ee7b7; }
.btn.ok:hover { background: rgba(52, 211, 153, .22); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.xs { padding: 3px 8px; font-size: 11.5px; border-radius: 7px; gap: 4px; }
.btn.block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}

.icon-btn {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--text-2);
  cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.danger:hover { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.icon-btn.sm { width: 27px; height: 27px; }
.icon-btn.sm svg { width: 15px; height: 15px; }

.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   8. 表单控件
   -------------------------------------------------------------------------- */
.field { margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.label, .field > label {
  display: block; font-size: 12.5px; color: var(--muted);
  margin-bottom: 6px; font-weight: 550;
}
.hint { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  min-width: 0;
}
.input::placeholder, .textarea::placeholder { color: #565d7d; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: var(--glow); background: var(--surface);
}
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90b0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
  padding-right: 32px;
  cursor: pointer;
}
.select option { background: var(--surface-2); color: var(--text); }
.input.sm, .select.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 8px; }
.select.sm { padding-right: 26px; background-position: right 7px center; background-size: 13px; }

.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group .input { flex: 1; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

.search { position: relative; flex: 1; min-width: 180px; max-width: 380px; }
.search .input { padding-left: 34px; }
.search::before {
  content: ''; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; pointer-events: none; opacity: .6;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90b0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 复选框 */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; user-select: none; }
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px; flex: none; margin: 0;
  border: 1.5px solid var(--line-2); border-radius: 5px;
  background: var(--bg-2); cursor: pointer; position: relative;
  transition: background .15s, border-color .15s;
}
.check input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-color: transparent;
}
.check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1.5px;
  width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 40px; height: 22px; flex: none; border-radius: 99px;
  background: var(--surface-3); border: 1px solid var(--line-2);
  position: relative; transition: background .18s, border-color .18s;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); transition: left .18s, background .18s;
}
.switch input:checked + .track { background: linear-gradient(135deg, var(--primary), var(--primary-d)); border-color: transparent; }
.switch input:checked + .track::after { left: 20px; background: #fff; }
.switch input:disabled + .track { opacity: .5; }
.switch.mini .track { width: 34px; height: 19px; }
.switch.mini .track::after { width: 13px; height: 13px; }
.switch.mini input:checked + .track::after { left: 17px; }

/* 滑块（音量 / 进度） */
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 20px; background: transparent; cursor: pointer; margin: 0;
}
.range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) var(--fill, 70%), var(--surface-3) var(--fill, 70%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -4.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .35);
  transition: box-shadow .15s;
}
.range::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(124, 92, 255, .4); }
.range::-moz-range-track { height: 5px; border-radius: 99px; background: var(--surface-3); }
.range::-moz-range-progress { height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.range::-moz-range-thumb {
  width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .35);
}
.range:disabled { opacity: .5; cursor: not-allowed; }
.range.sm { height: 16px; }

/* 进度条 */
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .3s ease;
}
.progress.thin { height: 4px; }

/* --------------------------------------------------------------------------
   9. 表格
   -------------------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 600; font-size: 12px;
  color: var(--muted); letter-spacing: .4px; text-transform: none;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap; position: relative;
}
.tbl td {
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .028); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .col-check { width: 42px; }
.tbl .col-act { width: 1%; white-space: nowrap; }
.tbl td.col-act { text-align: right; }
.tbl .tight { padding-top: 6px; padding-bottom: 6px; }
.tbl .row-title { font-weight: 560; color: var(--text); }
.tbl .row-sub { font-size: 11.5px; color: var(--dim); }
.tbl.compact td, .tbl.compact th { padding: 7px 11px; }
.tbl .sortable { cursor: pointer; user-select: none; }
.tbl .sortable:hover { color: var(--text); }
.tbl .sortable::after { content: '⇅'; margin-left: 5px; opacity: .35; font-size: 11px; }
.tbl .sortable.asc::after { content: '↑'; opacity: 1; color: var(--accent); }
.tbl .sortable.desc::after { content: '↓'; opacity: 1; color: var(--accent); }

.cell-flex { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cover {
  width: 38px; height: 38px; flex: none; border-radius: 8px;
  object-fit: cover; background: var(--surface-3);
  display: grid; place-items: center; color: var(--dim); font-size: 16px;
}
.cover.lg { width: 56px; height: 56px; border-radius: 10px; font-size: 22px; }
.cover.xl { width: 96px; height: 96px; border-radius: 12px; font-size: 34px; }
.cover.sm { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; }
.cover-ph { background: linear-gradient(135deg, #232a45, #1a1f31); color: var(--primary-l); }

/* --------------------------------------------------------------------------
   10. 徽标 / 标签
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  background: var(--surface-3); color: var(--text-2); border: 1px solid transparent;
  white-space: nowrap;
}
.badge.ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.badge.err { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.badge.warn { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.badge.info { background: rgba(34, 211, 238, .13); color: var(--accent-l); }
.badge.primary { background: rgba(124, 92, 255, .16); color: var(--primary-l); }
.badge.muted { background: rgba(255, 255, 255, .05); color: var(--muted); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
.dot-err { background: var(--err); box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
.dot-live { background: var(--err); animation: pulse 1.6s infinite; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-size: 11.5px; font-weight: 750; letter-spacing: 1.2px;
  box-shadow: 0 3px 14px rgba(239, 68, 68, .4);
}
.live-badge .dot { background: #fff; animation: pulse 1.4s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 9px 16px; border: 0; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 550; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; border-bottom-color: var(--primary); }

/* 分段控件 */
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface-3); color: #fff; }

/* --------------------------------------------------------------------------
   11. 分页
   -------------------------------------------------------------------------- */
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn {
  min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2);
  border-radius: 8px; cursor: pointer; font-size: 12.5px;
  transition: background .15s, color .15s, border-color .15s;
}
.pg-btn:hover:not(:disabled):not(.active) { background: var(--surface-3); color: var(--text); }
.pg-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-d)); border-color: transparent; color: #fff; }
.pg-btn:disabled { opacity: .38; cursor: not-allowed; }
.pg-gap { color: var(--dim); padding: 0 2px; }
.pg-info { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* --------------------------------------------------------------------------
   12. 模态框
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 6, 12, .68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .18s ease;
  overflow-y: auto;
}
.modal-overlay.show { opacity: 1; }
.modal {
  width: 100%; max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(.985);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.2);
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  margin: auto;
}
.modal-overlay.show .modal { transform: none; }
.modal.modal-lg { max-width: 760px; }
.modal.modal-sm { max-width: 400px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.modal-title { font-size: 15.5px; font-weight: 650; }
.modal-x { font-size: 14px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot {
  padding: 13px 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap;
}
.confirm-msg { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* --------------------------------------------------------------------------
   13. Toast
   -------------------------------------------------------------------------- */
.toasts {
  position: fixed; top: 16px; right: 16px; z-index: 2000;
  display: flex; flex-direction: column; gap: 9px;
  pointer-events: none; max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--primary);
  border-radius: 11px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13.5px;
  pointer-events: auto; cursor: pointer;
  opacity: 0; transform: translateX(26px);
  transition: opacity .22s ease, transform .22s ease;
  word-break: break-word;
}
.toast.in { opacity: 1; transform: none; }
.toast-ic {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #0a0c13;
  background: var(--primary-l);
}
.toast-ok { border-left-color: var(--ok); }
.toast-ok .toast-ic { background: var(--ok); }
.toast-err { border-left-color: var(--err); }
.toast-err .toast-ic { background: var(--err); }
.toast-info .toast-ic { background: var(--accent); }

/* --------------------------------------------------------------------------
   14. 上传拖拽区
   -------------------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-2);
  transition: border-color .18s, background .18s, color .18s;
  cursor: pointer;
}
.dropzone:hover { border-color: var(--primary); color: var(--text-2); }
.dropzone.over {
  border-color: var(--accent); background: rgba(34, 211, 238, .07);
  color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .2);
}
.dropzone-ic { font-size: 30px; line-height: 1; margin-bottom: 8px; color: var(--primary-l); }
.dropzone b { color: var(--text); }

.upload-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.upload-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  align-items: center; font-size: 12.5px;
  padding: 8px 12px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
}
.upload-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row .bar { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   15. 拖拽排序视觉反馈
   -------------------------------------------------------------------------- */
[draggable="true"] { cursor: grab; }
tr[draggable="true"] td, .drag-item[draggable="true"] { cursor: grab; }
.dragging { opacity: .42; background: rgba(124, 92, 255, .1) !important; }
.drag-over { box-shadow: inset 0 2px 0 0 var(--accent); }
.drag-over td { box-shadow: inset 0 2px 0 0 var(--accent); }
tr.dragging td { background: rgba(124, 92, 255, .12); }
.drag-handle { color: var(--dim); cursor: grab; display: inline-flex; align-items: center; user-select: none; }
.drag-handle:hover { color: var(--accent); }
.drag-handle svg { width: 15px; height: 15px; }
body.dragging-active { cursor: grabbing; }

/* --------------------------------------------------------------------------
   16. 列表 / 队列
   -------------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; transition: background .12s;
}
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: rgba(255, 255, 255, .028); }
.list-item .idx {
  width: 22px; flex: none; text-align: center;
  color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums;
}
.list-item .meta { min-width: 0; flex: 1; }
.list-item .meta b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta span { font-size: 11.5px; color: var(--muted); }
.list-item.active { background: linear-gradient(90deg, rgba(124, 92, 255, .18), transparent); }
.list-item.active .idx { color: var(--accent); }

/* 可点击的歌单卡片 */
.pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 380px; overflow-y: auto; }
.pick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; font-size: 13px;
  transition: background .13s, border-color .13s;
}
.pick-item:hover { background: rgba(255, 255, 255, .05); }
.pick-item.active { background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .38); }
.pick-item .meta { min-width: 0; flex: 1; }
.pick-item .meta b { display: block; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-item .meta span { font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   17. 空状态 / 加载
   -------------------------------------------------------------------------- */
.empty { padding: 38px 18px; text-align: center; color: var(--dim); font-size: 13px; }
.empty-ic { font-size: 30px; opacity: .5; margin-bottom: 8px; }
.loading { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 10px;
  border: 2.5px solid var(--surface-3); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 8px; height: 14px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   18. 提示条 / 代码块
   -------------------------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 10px; font-size: 13px;
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .28);
  color: var(--text-2); margin-bottom: 14px;
}
.alert-warn { background: rgba(251, 191, 36, .09); border-color: rgba(251, 191, 36, .32); color: #fcd34d; }
.alert-err { background: rgba(248, 113, 113, .09); border-color: rgba(248, 113, 113, .32); color: #fca5a5; }
.alert-ok { background: rgba(52, 211, 153, .09); border-color: rgba(52, 211, 153, .3); color: #6ee7b7; }
.alert.row { align-items: center; flex-wrap: wrap; }

.select.block, .input.block, .textarea.block { width: 100%; }
.search.block { max-width: none; flex: 1 1 auto; width: 100%; }
.drag-cell { width: 34px; text-align: center; padding-right: 0 !important; }
tr.row-off td { opacity: .45; }
tr.row-off td.col-act, tr.row-off td.col-check { opacity: 1; }

.code-box {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12.5px;
  color: var(--accent-l); word-break: break-all;
}
.code-box span { flex: 1; min-width: 0; }

/* --------------------------------------------------------------------------
   19. 折线图（纯 canvas）
   -------------------------------------------------------------------------- */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { width: 100%; display: block; border-radius: 10px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* --------------------------------------------------------------------------
   20. 公共播放器页面（独立样式块，同一份 CSS）
   -------------------------------------------------------------------------- */
.pub-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(124, 92, 255, .30), transparent 62%),
    radial-gradient(760px 460px at 92% 6%, rgba(34, 211, 238, .18), transparent 60%),
    var(--bg);
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 18px 44px;
}
.pub-wrap { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 18px; }

.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pub-brand { display: flex; align-items: center; gap: 11px; }
.pub-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.pub-brand-text b { display: block; font-size: 16px; }
.pub-brand-text span { font-size: 12px; color: var(--muted); }

.pub-hero {
  background: linear-gradient(160deg, rgba(30, 36, 60, .92), rgba(18, 22, 36, .92));
  border: 1px solid var(--line-2);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pub-hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .28), transparent 68%);
  pointer-events: none;
}
.pub-art { position: relative; z-index: 1; }
.pub-cover {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 18px;
  object-fit: cover; background: var(--surface-3);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
  display: grid; place-items: center;
  font-size: 74px; color: var(--primary-l);
}
.pub-cover.ph { background: linear-gradient(140deg, #232a45, #14182a); }

.pub-info { position: relative; z-index: 1; min-width: 0; }
.pub-station { font-size: 13px; color: var(--accent); letter-spacing: 2.4px; text-transform: uppercase; font-weight: 650; }
.pub-desc { color: var(--muted); font-size: 13px; margin: 5px 0 16px; }
.pub-now-label { font-size: 11.5px; color: var(--dim); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 5px; }
.pub-song { font-size: 27px; font-weight: 720; line-height: 1.25; margin: 0 0 6px; word-break: break-word; }
.pub-artist { font-size: 15px; color: var(--text-2); margin: 0; word-break: break-word; }
.pub-album { font-size: 12.5px; color: var(--dim); margin-top: 3px; }

.pub-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.pub-listeners {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px; border-radius: 99px;
  background: rgba(34, 211, 238, .12); color: var(--accent-l);
  font-size: 12.5px; font-weight: 600;
}

.pub-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.pub-eq i { width: 3px; border-radius: 2px; background: currentColor; animation: eq 1.05s ease-in-out infinite; }
.pub-eq i:nth-child(1) { height: 42%; animation-delay: -.5s; }
.pub-eq i:nth-child(2) { height: 88%; animation-delay: -.2s; }
.pub-eq i:nth-child(3) { height: 60%; animation-delay: -.75s; }
.pub-eq i:nth-child(4) { height: 100%; animation-delay: -.35s; }
@keyframes eq { 0%, 100% { transform: scaleY(.34); } 50% { transform: scaleY(1); } }

.pub-controls { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.pub-play {
  width: 62px; height: 62px; flex: none;
  border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #08121a;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .48);
  transition: transform .14s, box-shadow .14s;
}
.pub-play:hover { transform: scale(1.055); box-shadow: 0 14px 36px rgba(124, 92, 255, .6); }
.pub-play:active { transform: scale(.97); }
.pub-play svg { width: 26px; height: 26px; }
.pub-play.loading { animation: pulse 1.1s infinite; }

.pub-vol { display: flex; align-items: center; gap: 9px; min-width: 172px; flex: 1; max-width: 250px; }
.pub-vol .range { flex: 1; }
.pub-vol svg { width: 17px; height: 17px; color: var(--muted); flex: none; }

.pub-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }

.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pub-card {
  background: rgba(20, 24, 38, .78);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.pub-card-head {
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 640;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pub-hist { display: flex; flex-direction: column; }
.pub-hist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pub-hist-item:last-child { border-bottom: 0; }
.pub-hist-item .idx { width: 20px; color: var(--dim); font-size: 12px; flex: none; text-align: center; }
.pub-hist-item .meta { flex: 1; min-width: 0; }
.pub-hist-item .meta b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-hist-item .meta span { font-size: 11.5px; color: var(--muted); }
.pub-hist-item .when { font-size: 11.5px; color: var(--dim); flex: none; }

.pub-foot { text-align: center; color: var(--dim); font-size: 12px; padding-top: 6px; }
.pub-foot a { color: var(--muted); }
.pub-foot a:hover { color: var(--accent); }

.pub-offline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--warn); font-size: 13px; font-weight: 600;
}

/* --------------------------------------------------------------------------
   21. 登录页
   -------------------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(760px 460px at 20% 0%, rgba(124, 92, 255, .30), transparent 60%),
    radial-gradient(640px 420px at 88% 100%, rgba(34, 211, 238, .16), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 390px;
  background: rgba(20, 24, 38, .9);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.login-head { text-align: center; margin-bottom: 24px; }
.login-head .brand-mark { width: 50px; height: 50px; border-radius: 15px; margin: 0 auto 14px; }
.login-head .brand-mark svg { width: 26px; height: 26px; }
.login-head h1 { font-size: 20px; margin-bottom: 5px; }
.login-head p { color: var(--muted); font-size: 12.5px; margin: 0; }
.login-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--dim); }
.login-foot a { color: var(--muted); }
.login-foot a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   22. 日志查看器
   -------------------------------------------------------------------------- */
.log-view {
  margin: 0; padding: 14px 16px;
  background: #07090f; border-radius: 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: #b8c0d8;
  height: 62vh; min-height: 320px; overflow: auto;
  white-space: pre-wrap; word-break: break-all;
  border: 1px solid var(--line);
}
.log-view .l-err { color: #fca5a5; }
.log-view .l-warn { color: #fcd34d; }
.log-view .l-info { color: #7dd3fc; }
.log-view .l-dim { color: #6a7095; }

/* --------------------------------------------------------------------------
   23. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .pub-hero { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .pub-song { font-size: 22px; }
  .pub-cover { font-size: 54px; }
  .pub-play { width: 54px; height: 54px; }
  .pub-play svg { width: 22px; height: 22px; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: grid !important; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(4, 6, 12, .6); opacity: 0; pointer-events: none;
    transition: opacity .2s;
  }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .user-chip { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-hero { grid-template-columns: minmax(0, 1fr); }
  .pub-art { max-width: 210px; margin: 0 auto; }
  .brand-text small { display: none; }
}

@media (max-width: 560px) {
  .content { padding: 12px; }
  .card-body { padding: 13px; }
  .page-head { margin-bottom: 14px; }
  .page-head h2 { font-size: 17.5px; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .toasts { left: 12px; right: 12px; max-width: none; }
  .pub-body { padding: 16px 12px 30px; }
  .pub-hero { padding: 16px; border-radius: 18px; }
  .pub-song { font-size: 19px; }
  .pub-play { width: 48px; height: 48px; }
  .pub-play svg { width: 20px; height: 20px; }
  .stat { padding: 13px; gap: 11px; }
  .stat-value { font-size: 20px; }
  .stat-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
