/* ============ YT//PULSE 赛博朋克主题 ============ */
/* 本地字体（离线可用） */
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/orbitron-500.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/orbitron-700.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 900; font-display: swap; src: url('/static/fonts/orbitron-900.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/jbmono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/jbmono-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 800; font-display: swap; src: url('/static/fonts/jbmono-800.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/rajdhani-500.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/rajdhani-600.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/rajdhani-700.woff2') format('woff2'); }

:root {
  --bg: #0a0a0f;
  --bg2: #0d0d16;
  --panel: rgba(13, 15, 28, 0.55);
  --neon: #00ff88;
  --neon-dim: rgba(0, 255, 136, 0.35);
  --cyan: #00d4ff;
  --magenta: #ff00c8;
  --amber: #ffb800;
  --red: #ff3b5c;
  --txt: #d7ffe9;
  --dim: #5f7a6e;
  --font-d: 'Orbitron', 'Rajdhani', sans-serif;
  --font-m: 'JetBrains Mono', Consolas, monospace;
  --font-b: 'Rajdhani', 'Segoe UI', sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-b);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(0, 255, 136, 0.3); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-dim), rgba(0,212,255,.3));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-dim); }

.mono { font-family: var(--font-m); }

/* ============ 背景层 ============ */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,136,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.scanlines {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 20%, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ============ HUD 顶栏 ============ */
.hud {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 34px 6px;
  max-width: 1080px; margin: 0 auto;
}

.logo {
  font-family: var(--font-d);
  font-size: 30px; font-weight: 900; letter-spacing: 3px;
  color: #fff; text-shadow: 0 0 14px rgba(0,255,136,.55);
}
.logo .slash { color: var(--neon); }
.logo .cursor {
  display: inline-block; color: var(--neon);
  animation: blink 1s steps(2) infinite;
}
.tagline {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 4px;
  color: var(--dim); margin-top: 4px;
}

.hud-right { display: flex; gap: 26px; }
.hud-item { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hud-label {
  font-family: var(--font-m); font-size: 9px; letter-spacing: 3px; color: var(--dim);
}
.hud-value { font-family: var(--font-d); font-size: 14px; letter-spacing: 1px; }
.led-green { color: var(--neon); text-shadow: 0 0 8px var(--neon-dim); }
.mono { font-family: var(--font-m); }

@keyframes blink { 50% { opacity: 0; } }

/* ============ 主布局 ============ */
.wrap {
  position: relative; z-index: 4;
  max-width: 1080px; margin: 0 auto;
  padding: 18px 20px 90px;
  display: flex; flex-direction: column; gap: 20px;
}

/* ============ 玻璃卡片 ============ */
.card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 50px rgba(0,0,0,.55),
              inset 0 0 60px rgba(0,255,136,.025);
  transition: border-color .3s, box-shadow .3s;
}
.card:hover {
  border-color: rgba(0, 255, 136, 0.32);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 50px rgba(0,0,0,.55),
              0 0 34px rgba(0,255,136,.08), inset 0 0 60px rgba(0,255,136,.04);
}

/* HUD 四角括号 */
.corner::before, .corner::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  pointer-events: none;
}
.corner::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--neon); border-left: 2px solid var(--neon);
  border-top-left-radius: 14px;
  filter: drop-shadow(0 0 6px var(--neon-dim));
}
.corner::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan);
  border-bottom-right-radius: 14px;
  filter: drop-shadow(0 0 6px rgba(0,212,255,.4));
}

.card-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.ct-index {
  font-family: var(--font-m); font-size: 11px; color: var(--cyan);
  border: 1px solid rgba(0,212,255,.35); border-radius: 4px;
  padding: 2px 7px;
}
.ct-text {
  font-family: var(--font-d); font-size: 12px; letter-spacing: 4px; color: var(--neon);
  text-shadow: 0 0 10px var(--neon-dim);
}
.ct-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--neon-dim), transparent);
}

.hidden { display: none !important; }

/* ============ 输入区 ============ */
.input-row { display: flex; gap: 12px; }

.url-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: rgba(4, 6, 14, 0.75);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 10px;
  padding: 0 16px;
  transition: border-color .25s, box-shadow .25s;
}
.url-box:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(0,255,136,.22), inset 0 0 12px rgba(0,255,136,.06);
}
.url-prefix { color: var(--neon); font-size: 13px; animation: blink 1.2s steps(2) infinite; }

input {
  all: unset;
  flex: 1; height: 52px;
  font-family: var(--font-m); font-size: 14px; color: var(--txt);
}
input::placeholder { color: var(--dim); }

/* 按钮 */
.btn {
  position: relative; cursor: pointer; overflow: hidden;
  font-family: var(--font-d); letter-spacing: 2px;
  border-radius: 10px; border: none;
  height: 52px; padding: 0 26px;
  font-size: 13px; color: #02130c;
  background: linear-gradient(135deg, var(--neon), #00c97a);
  box-shadow: 0 0 18px rgba(0,255,136,.35), inset 0 0 8px rgba(255,255,255,.25);
  transition: transform .15s, box-shadow .25s, filter .25s;
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,255,136,.6), inset 0 0 8px rgba(255,255,255,.3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { filter: grayscale(.9) brightness(.6); cursor: not-allowed; transform: none; }
.btn.big { height: 58px; padding: 0 40px; font-size: 15px; }
.btn.ghost {
  background: transparent; color: var(--neon);
  border: 1px solid var(--neon-dim); box-shadow: none; height: 38px;
  font-size: 11px; padding: 0 16px;
}
.btn.ghost:hover { background: rgba(0,255,136,.08); box-shadow: 0 0 14px rgba(0,255,136,.25); }
.btn.ghost.small { height: 32px; font-size: 10px; padding: 0 12px; }
.btn-cn { font-family: var(--font-b); letter-spacing: 1px; opacity: .85; }

@keyframes shine { 0% { left: -80%; } 55% { left: 120%; } 100% { left: 120%; } }

.input-sub {
  display: flex; align-items: center; gap: 18px; margin-top: 14px;
}
.proxy-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(4, 6, 14, 0.6);
  border: 1px solid rgba(0,212,255,.18); border-radius: 8px;
  padding: 0 12px; width: 300px;
}
.proxy-box input { height: 36px; font-size: 12px; }
.proxy-label {
  font-family: var(--font-m); font-size: 9px; letter-spacing: 2px; color: var(--cyan);
}
.hint { font-size: 12.5px; color: var(--dim); letter-spacing: .5px; }

/* ============ 视频信息 ============ */
.info-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }

.thumb-wrap {
  position: relative; aspect-ratio: 16/9; border-radius: 10px;
  overflow: hidden; border: 1px solid rgba(0,255,136,.2);
  background: #05070c;
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,7,12,.75));
}
.thumb-scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 47%, rgba(0,255,136,.16) 50%, transparent 53%);
  background-size: 100% 220%;
  animation: thscan 3.4s linear infinite;
}
@keyframes thscan { 0% { background-position: 0 -120%; } 100% { background-position: 0 220%; } }

.thumb-corner { position: absolute; width: 14px; height: 14px; z-index: 3; border-color: var(--neon); }
.thumb-corner.tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.thumb-corner.tr { top: 6px; right: 6px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.thumb-corner.bl { bottom: 6px; left: 6px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.thumb-corner.br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

.dur-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  font-size: 12px; padding: 3px 9px; border-radius: 5px;
  color: #03140b; font-weight: 800;
  background: var(--neon); box-shadow: 0 0 12px rgba(0,255,136,.5);
}
.play-glyph {
  position: absolute; inset: 0; z-index: 3; display: none;
  align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.35);
  text-shadow: 0 0 20px var(--neon);
}

.info-body { min-width: 0; display: flex; flex-direction: column; }
.vtitle {
  font-family: var(--font-d); font-weight: 700; font-size: 19px;
  line-height: 1.45; color: #fff; letter-spacing: .5px;
  text-shadow: 0 0 18px rgba(0,255,136,.25);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  font-family: var(--font-m); font-size: 11px; color: var(--txt);
  background: rgba(0,255,136,.07); border: 1px solid rgba(0,255,136,.25);
  border-radius: 20px; padding: 4px 12px;
}
.chip b { color: var(--neon); font-weight: 600; }

.fmt-title {
  font-family: var(--font-d); font-size: 11px; letter-spacing: 3px;
  color: var(--cyan); margin: 16px 0 10px;
}

/* 播放列表 */
.pl-box {
  margin-top: 12px;
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.04);
  overflow: hidden;
}
.pl-head {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px dashed rgba(255, 184, 0, 0.2);
}
.pl-badge {
  font-size: 11px; letter-spacing: 2px; font-weight: 800;
  color: var(--amber);
  border: 1px solid rgba(255, 184, 0, 0.5);
  background: rgba(255, 184, 0, 0.1);
  padding: 3px 10px; border-radius: 5px;
  text-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
}
.pl-note { font-size: 11px; color: var(--dim); }
.pl-box.inpl { border-color: rgba(0, 212, 255, 0.3); background: rgba(0, 212, 255, 0.05); }
.pl-box.inpl .pl-badge { color: var(--cyan); border-color: rgba(0,212,255,.5); background: rgba(0,212,255,.1); text-shadow: 0 0 8px rgba(0,212,255,.4); }
.pl-box.inpl .pl-head { border-bottom: none; }
.link.amber { color: var(--amber); }
.link.amber:hover { color: #ffd966; }
.pl-list {
  max-height: 132px; overflow-y: auto;
  padding: 6px 14px;
}
.pl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11.5px;
}
.pl-row:last-child { border-bottom: none; }
.pl-idx { color: var(--amber); flex-shrink: 0; font-size: 10px; }
.pl-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--txt);
}
.pl-dur { color: var(--dim); flex-shrink: 0; font-size: 10px; }

.fmt-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.fmt-card {
  cursor: pointer; user-select: none;
  min-width: 118px; padding: 11px 14px;
  background: rgba(4, 6, 14, 0.7);
  border: 1px solid rgba(0,255,136,.18); border-radius: 10px;
  transition: all .2s;
}
.fmt-card:hover { border-color: rgba(0,255,136,.5); transform: translateY(-1px); }
.fmt-card.sel {
  border-color: var(--neon);
  background: rgba(0,255,136,.1);
  box-shadow: 0 0 16px rgba(0,255,136,.3), inset 0 0 14px rgba(0,255,136,.08);
}
.fmt-type {
  font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.fmt-card.mp3 .fmt-type { color: var(--magenta); }
.fmt-card.mp4 .fmt-type { color: var(--cyan); }
.fmt-card.sel.mp3 .fmt-type { color: #ff7ae0; text-shadow: 0 0 10px rgba(255,0,200,.6); }
.fmt-card.sel.mp4 .fmt-type { color: #6fe8ff; text-shadow: 0 0 10px rgba(0,212,255,.6); }
.fmt-meta { font-family: var(--font-m); font-size: 10px; color: var(--dim); margin-top: 4px; }
.fmt-card.sel .fmt-meta { color: var(--txt); }

.actions {
  display: flex; align-items: center; gap: 18px; margin-top: 20px;
  padding-top: 16px; border-top: 1px dashed rgba(0,255,136,.15);
}
.dl-note { font-size: 11px; color: var(--dim); }

/* ============ 进度 ============ */
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.p-title { font-size: 12px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-stage {
  font-size: 11px; padding: 3px 10px; border-radius: 5px; flex-shrink: 0;
  color: var(--neon); border: 1px solid var(--neon-dim);
  text-shadow: 0 0 8px var(--neon-dim);
}

.p-bar {
  position: relative; height: 22px; border-radius: 6px;
  background: rgba(4, 6, 14, 0.85);
  border: 1px solid rgba(0,255,136,.2);
  overflow: hidden;
}
.p-fill {
  position: relative; height: 100%; width: 0%;
  background: linear-gradient(90deg, #00c97a, var(--neon), #7dffc4);
  box-shadow: 0 0 18px rgba(0,255,136,.7), inset 0 0 8px rgba(255,255,255,.3);
  transition: width .3s ease;
}
.p-fill::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,.18) 0 8px, transparent 8px 16px);
  animation: stripe .8s linear infinite;
}
.p-fill.err { background: linear-gradient(90deg, #b3253f, var(--red)); box-shadow: 0 0 18px rgba(255,59,92,.6); }
.p-fill.indet { width: 34% !important; transition: none; animation: indetmove 1.3s linear infinite; }
@keyframes indetmove { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
@keyframes stripe { 0% { background-position: 0 0; } 100% { background-position: 22px 0; } }

.p-stats { display: flex; align-items: baseline; gap: 22px; margin-top: 12px; }
.p-pct { font-size: 34px; font-weight: 800; color: var(--neon); text-shadow: 0 0 22px var(--neon-dim); }
.p-cell { font-size: 12px; color: var(--dim); }
.p-cell b { color: var(--txt); font-weight: 600; }

.p-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* 均衡器 */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.eq i {
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--neon), var(--cyan));
  border-radius: 2px;
  animation: eqbar .9s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0,255,136,.5);
}
.eq i:nth-child(2n) { animation-duration: .7s; animation-delay: .1s; }
.eq i:nth-child(3n) { animation-duration: 1.1s; animation-delay: .25s; }
.eq i:nth-child(5n) { background: linear-gradient(180deg, var(--magenta), var(--cyan)); }
.eq.paused i { animation-play-state: paused; }
@keyframes eqbar {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}

/* ============ 历史 ============ */
.hlist { display: flex; flex-direction: column; gap: 10px; }

.hrow {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: rgba(4, 6, 14, 0.55);
  border: 1px solid rgba(0,255,136,.1); border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.hrow:hover { border-color: rgba(0,255,136,.35); background: rgba(4, 6, 14, 0.8); }

.hthumb {
  width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(0,255,136,.2); flex-shrink: 0; background: #05070c;
}
.hinfo { flex: 1; min-width: 0; }
.htitle {
  font-family: var(--font-b); font-size: 14px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hmeta { font-family: var(--font-m); font-size: 10.5px; color: var(--dim); margin-top: 4px; }
.hmeta .badge {
  display: inline-block; padding: 1px 7px; border-radius: 4px; margin-right: 6px;
  font-weight: 800; font-size: 9.5px; letter-spacing: 1px;
}
.badge.mp3 { color: #ff7ae0; border: 1px solid rgba(255,0,200,.4); background: rgba(255,0,200,.08); }
.badge.mp4 { color: #6fe8ff; border: 1px solid rgba(0,212,255,.4); background: rgba(0,212,255,.08); }

.hbtns { display: flex; gap: 8px; flex-shrink: 0; }
.hbtn {
  cursor: pointer;
  font-family: var(--font-m); font-size: 11px;
  padding: 7px 13px; border-radius: 7px;
  border: 1px solid rgba(0,255,136,.3);
  color: var(--neon); background: transparent;
  transition: all .2s;
}
.hbtn:hover { background: rgba(0,255,136,.12); box-shadow: 0 0 12px rgba(0,255,136,.3); }
.hbtn.play { border-color: rgba(0,212,255,.4); color: var(--cyan); }
.hbtn.play:hover { background: rgba(0,212,255,.12); box-shadow: 0 0 12px rgba(0,212,255,.3); }
.hbtn.del { border-color: rgba(255,59,92,.35); color: var(--red); }
.hbtn.del:hover { background: rgba(255,59,92,.12); }
.hbtn.exp { border-style: dashed; border-color: rgba(255,255,255,.18); color: #8a93a3; cursor: default; }
.hbtn.exp:hover { background: transparent; box-shadow: none; }

.empty { text-align: center; color: var(--dim); font-size: 12px; padding: 26px 0 18px; letter-spacing: 1px; }

.link {
  cursor: pointer; background: none; border: none;
  font-family: var(--font-m); font-size: 11px; color: var(--dim);
  margin-left: auto; letter-spacing: 1px; transition: color .2s;
}
.link:hover { color: var(--red); }

/* ============ 终端日志 ============ */
.log {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  height: 108px; overflow-y: auto;
  padding: 8px 22px 10px;
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,255,136,.15);
  font-size: 11px; line-height: 1.7;
}
.log::-webkit-scrollbar { height: 4px; }
.lrow .lt { color: var(--dim); margin-right: 8px; }
.lrow .ok { color: var(--neon); }
.lrow .err { color: var(--red); }
.lrow .info { color: var(--cyan); }

/* ============ 播放器弹窗 ============ */
.modal {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 3, 8, 0.82);
  backdrop-filter: blur(10px);
  animation: fadein .2s ease;
}
.modal-box {
  width: min(760px, 92vw);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(0,255,136,.25);
  box-shadow: 0 0 60px rgba(0,255,136,.12), 0 30px 80px rgba(0,0,0,.7);
}
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.m-title { font-size: 12px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-body video { width: 100%; border-radius: 10px; background: #000; max-height: 60vh; }
.m-body audio { width: 100%; margin-top: 8px; }

.viz-wrap { position: relative; border: 1px solid rgba(0,255,136,.2); border-radius: 10px; overflow: hidden; }
.viz-wrap canvas { display: block; width: 100%; height: 160px; background: radial-gradient(ellipse at 50% 0%, rgba(0,255,136,.06), transparent 70%), #05070c; }
.viz-title {
  position: absolute; top: 8px; left: 12px;
  font-family: var(--font-m); font-size: 9px; letter-spacing: 3px; color: var(--neon);
  text-shadow: 0 0 8px var(--neon-dim);
}

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ============ Toast ============ */
.toast-wrap {
  position: fixed; top: 20px; right: 20px; z-index: 30;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 240px; max-width: 380px;
  padding: 13px 18px; border-radius: 10px;
  font-family: var(--font-m); font-size: 12px;
  background: rgba(6, 10, 18, 0.92);
  border: 1px solid var(--neon-dim);
  box-shadow: 0 0 20px rgba(0,255,136,.15);
  animation: toastin .3s ease;
}
.toast.ok { border-color: rgba(0,255,136,.5); color: var(--neon); }
.toast.err { border-color: rgba(255,59,92,.5); color: var(--red); box-shadow: 0 0 20px rgba(255,59,92,.15); }
.toast.info { border-color: rgba(0,212,255,.5); color: var(--cyan); }
@keyframes toastin { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ 响应式 ============ */
@media (max-width: 780px) {
  .hud { padding: 16px 18px 4px; }
  .logo { font-size: 22px; }
  .hud-right { gap: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .thumb-wrap { max-width: 420px; }
  .input-row { flex-direction: column; }
  .input-sub { flex-direction: column; align-items: stretch; }
  .proxy-box { width: 100%; }
  .hrow { flex-wrap: wrap; }
  .hbtns { width: 100%; justify-content: flex-end; }
  .wrap { padding-bottom: 140px; }
}

/* ---- 公开站用户栏 ---- */
#user-email { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#btn-logout { cursor: pointer; background: none; border: none; font: inherit; }
.hbtn.dl2 { color: #7fe8ff; border-color: rgba(127,232,255,.4); }
