/* =========================================================
   私有视频站 · 深色主题
   设计原则：信息密度高、留白克制、单一品牌色、无渐变按钮
   ========================================================= */

:root {
  --bg: #0c0d10;
  --bg-2: #121317;
  --surface: #17181d;
  --surface-2: #1e2026;
  --hover: #262930;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eceef1;
  --text-2: #b6bbc4;
  --dim: #7d838e;
  --brand: #f5455c;
  --brand-weak: rgba(245, 69, 92, .12);
  --ok: #37d399;
  --warn: #f0b429;
  --radius: 8px;
  --radius-lg: 12px;
  --bar-h: 56px;
  --tab-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--dim); }
.error { color: var(--brand); }
.small-note { font-size: 12.5px; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: rgba(245, 69, 92, .35); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); }

/* ---------------- 控件 ---------------- */
input[type="text"], input[type="password"], input[type="search"],
input[type="number"], select, textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: border-color .15s, background .15s;
}
input::placeholder { color: #5f656f; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--line-2);
  background: var(--surface-2);
}
select option { background: var(--surface); }

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background .15s, border-color .15s, opacity .15s;
}
button:hover, .button-link:hover { background: var(--surface-2); border-color: var(--line-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover { background: #ff5a70; border-color: #ff5a70; }
button.ghost { background: transparent; }
button.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
button.danger { color: #ff9aa4; border-color: rgba(245, 69, 92, .35); background: rgba(245, 69, 92, .1); }
button.danger:hover { background: rgba(245, 69, 92, .18); }

/* 图标按钮 */
.icon-btn {
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-h);
  padding: 0 20px;
  background: rgba(12, 13, 16, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-group { display: flex; align-items: center; gap: 9px; flex: none; }
.logo {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--brand);
  flex: none;
}
.logo svg { width: 13px; height: 13px; fill: #fff; }
.logo.link:hover { opacity: .85; }
.brand { font-weight: 700; font-size: 15px; letter-spacing: .2px; white-space: nowrap; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}

.topnav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.topnav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a.active { color: var(--text); font-weight: 600; }

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
  width: 210px;
  padding-left: 32px;
  border-radius: 999px;
  background: var(--surface);
}
.search-box svg {
  position: absolute; left: 11px;
  width: 14px; height: 14px; fill: var(--dim);
  pointer-events: none;
}

.points {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.points b { color: var(--text); font-variant-numeric: tabular-nums; }

/* 账户 */
.account { position: relative; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  color: #fff;
  background: #3a3f4b;
  cursor: pointer;
  border: 1px solid var(--line);
}
.account-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  display: none;
  z-index: 50;
}
.account-menu.open { display: block; }
.account-menu .who {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.account-menu .who .n { font-weight: 600; font-size: 13.5px; }
.account-menu .who .p { color: var(--dim); font-size: 12px; margin-top: 2px; }
.account-menu button {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border: none;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-2);
}
.account-menu button:hover { background: var(--surface-2); color: var(--text); }

/* ---------------- 容器与分区 ---------------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px 60px; }

.section { margin-bottom: 34px; }
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .1px;
}
.section-head .sub { color: var(--dim); font-size: 12.5px; }
.section-head .spacer { flex: 1; }
.section-head .more { font-size: 12.5px; color: var(--dim); }
.section-head .more:hover { color: var(--text); }

/* 横向轨道 */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail .card { width: 236px; }

/* ---------------- 视频卡片 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px 16px;
}

.card { cursor: pointer; min-width: 0; }
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  transition: outline-color .15s;
}
.card:hover .card-thumb { outline-color: var(--line-2); }
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--surface-2);
}
.card-thumb .fallback svg { width: 26px; height: 26px; fill: #3d434e; }

.card-badge {
  position: absolute; left: 7px; top: 7px;
  background: rgba(10, 11, 13, .78);
  backdrop-filter: blur(4px);
  color: #dfe3ea;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.card-time {
  position: absolute; right: 7px; bottom: 7px;
  background: rgba(10, 11, 13, .78);
  backdrop-filter: blur(4px);
  color: #dfe3ea;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 11, 13, .62);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .22);
  opacity: 0;
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.card-play svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
.card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .18);
}
.card-progress > span {
  display: block; height: 100%;
  background: var(--brand);
}
.card-info { padding: 8px 2px 0; }
.card-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 12px;
  color: var(--dim);
  margin-top: 3px;
  display: flex; align-items: center; gap: 6px;
}
.card-meta .dot { opacity: .5; }

/* 骨架（静态占位，不用流光） */
.skeleton {
  background: var(--surface);
  border-radius: var(--radius);
}
.sk-thumb { aspect-ratio: 16 / 9; }
.sk-line { height: 11px; border-radius: 4px; margin-top: 9px; background: var(--surface); }
.sk-line.short { width: 45%; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
}
.empty-state .icon { margin-bottom: 12px; }
.empty-state .icon svg { width: 34px; height: 34px; fill: #3d434e; }
.empty-state h3 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.empty-state p { margin: 0; color: var(--dim); font-size: 13px; }

.load-more { display: flex; justify-content: center; padding: 22px 0 4px; }

/* ---------------- 登录页 ---------------- */
.center-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
}
.login-card {
  width: 360px; max-width: 100%;
  padding: 34px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.login-card .logo { width: 38px; height: 38px; border-radius: 9px; margin-bottom: 16px; }
.login-card .logo svg { width: 16px; height: 16px; }
.login-card h1 { margin: 0 0 3px; font-size: 19px; font-weight: 700; }
.login-card > p { margin: 0; font-size: 13px; }
.login-card form { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--dim); }
.login-card input { width: 100%; padding: 10px 12px; }
.login-card button[type="submit"] { margin-top: 4px; padding: 10px; }
.login-hint {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim); text-align: center;
}

/* ---------------- 移动端底部导航 ---------------- */
.tabbar { display: none; }

/* ---------------- 通用面板（后台复用） ---------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.panel h2 { margin-top: 0; font-size: 15px; }
.panel h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.task-list { margin-top: 12px; font-size: 13px; }
.task-item {
  padding: 9px 0; border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: center;
}
.task-bar { flex: 1; height: 5px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.task-bar > span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%);
  background: #22252c;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
  z-index: 90;
  max-width: min(92vw, 460px);
}
.toast.warn { border-color: rgba(245, 69, 92, .5); color: #ffc2c9; }
.toast.info { border-color: var(--line-2); }
.toast.ok { border-color: rgba(55, 211, 153, .45); color: #a9e9cd; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .search-box input { width: 170px; }
}

@media (max-width: 720px) {
  :root { --bar-h: 52px; --tab-h: 54px; }

  .topbar {
    padding: 8px 12px;
    gap: 8px;
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .topnav { display: none; }
  /* 搜索框移到第二行整行显示，避免和积分、头像挤在一起 */
  .search-box { order: 3; width: 100%; }
  .search-box input { width: 100%; padding-left: 32px; }
  .points { padding: 4px 10px; font-size: 12px; flex: none; }
  .points b { font-size: 13px; }
  .brand { font-size: 14.5px; }
  .container { padding: 0 12px calc(var(--tab-h) + 26px + var(--safe-b)); }

  .section { margin-bottom: 26px; }
  .section-head h2 { font-size: 15px; }
  .rail { margin: 0 -12px; padding-left: 12px; padding-right: 12px; gap: 10px; }
  .rail .card { width: 168px; }

  /* 手机 2 列 */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11.5px; }

  /* 底部导航 */
  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--tab-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(16, 17, 21, .96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    z-index: 45;
  }
  .tabbar button {
    flex: 1;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0 0;
    color: var(--dim);
    font-size: 10.5px;
    font-weight: 500;
    border-radius: 0;
  }
  .tabbar button:hover { background: transparent; }
  .tabbar button svg { width: 20px; height: 20px; fill: currentColor; }
  .tabbar button.active { color: var(--text); }

  .toast { bottom: calc(var(--tab-h) + 16px + var(--safe-b)); }
}

/* =========================================================
   播放页
   ========================================================= */
.player-page { padding-bottom: 40px; }

.brand-title {
  font-weight: 600;
  font-size: 14.5px;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-shell {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
}
.player-shell:fullscreen,
.player-shell:-webkit-full-screen {
  border-radius: 0;
  border: none;
  width: 100vw;
  height: 100vh;
}
.player-shell:fullscreen .player-stage,
.player-shell:-webkit-full-screen .player-stage { height: 100vh; }
.player-shell:fullscreen #player,
.player-shell:-webkit-full-screen #player { max-height: 100vh; height: 100vh; object-fit: contain; }

.player-stage { position: relative; width: 100%; background: #000; }
#player {
  width: 100%;
  max-height: 74vh;
  display: block;
  background: #000;
  touch-action: pan-y;
}

/* 中央播放按钮 */
.center-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  border-radius: 50%;
  background: rgba(12, 13, 16, .68);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.center-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.player-stage.show-center .center-play { opacity: 1; }

/* 快进快退提示 */
.seek-hint {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(12, 13, 16, .8);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  transition: opacity .2s;
}
.seek-hint.show { opacity: 1; }

/* 缓冲 */
.player-overlay {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  background: rgba(6, 7, 9, .55);
  z-index: 5;
}
.player-overlay.show { display: flex; }
.spinner {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .16);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-text { font-size: 13px; color: var(--text-2); }

/* 出错 */
.player-error {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(6, 7, 9, .94);
  z-index: 9;
  text-align: center;
  padding: 24px;
}
.player-error.show { display: flex; }
.player-error .err-icon svg { width: 34px; height: 34px; fill: var(--dim); }
.player-error p { margin: 0; color: var(--text-2); max-width: 420px; font-size: 13.5px; }

/* 竖屏提示 */
.rotate-hint {
  position: absolute;
  left: 50%; top: 14px;
  transform: translateX(-50%);
  background: rgba(12, 13, 16, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text-2);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 7;
  display: none;
}
.player-stage.playing .rotate-hint { display: none !important; }

/* 控制条 */
.controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .35) 55%, transparent);
  z-index: 8;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.player-stage.show-controls .controls { opacity: 1; transform: none; pointer-events: auto; }

.track {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.track::before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .28);
  border-radius: 2px;
}
.track-buffered {
  position: absolute; left: 0;
  height: 3px; width: 0;
  background: rgba(255, 255, 255, .4);
  border-radius: 2px;
}
.track-played {
  position: absolute; left: 0;
  height: 3px; width: 0;
  background: var(--brand);
  border-radius: 2px;
}
.track-thumb {
  position: absolute; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.track:hover .track-thumb, .track.dragging .track-thumb { opacity: 1; }

.control-row { display: flex; align-items: center; gap: 2px; }
.ctrl {
  width: 36px; height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  display: grid; place-items: center;
}
.ctrl:hover { background: rgba(255, 255, 255, .13); }
.ctrl svg { width: 21px; height: 21px; fill: #fff; }
.ctrl-time {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
  white-space: nowrap;
}
.control-row .spacer { flex: 1; }

.volume-wrap { display: flex; align-items: center; }
.volume-wrap input[type="range"] {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  height: 4px;
  margin: 0;
  transition: width .18s, opacity .18s, margin .18s;
  accent-color: #fff;
  cursor: pointer;
}
.volume-wrap:hover input[type="range"],
.volume-wrap input[type="range"]:focus { width: 68px; opacity: 1; margin: 0 8px 0 2px; }

/* 信息区 */
.player-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.info-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.info-card .meta-line { color: var(--dim); font-size: 12.5px; margin-bottom: 10px; }
.info-card p.desc {
  color: var(--text-2); font-size: 13.5px; margin: 0 0 12px; white-space: pre-wrap;
}
.kv { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--dim); }
.kv b { color: var(--text); font-weight: 500; }

.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.side-panel h4 {
  margin: 0 0 10px; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.side-panel h4 .count { color: var(--dim); font-size: 12px; font-weight: 400; }
.history-item {
  display: flex; gap: 10px; align-items: center;
  padding: 7px; margin: 0 -7px;
  border-radius: 8px;
  cursor: pointer;
}
.history-item:hover { background: var(--surface-2); }
.history-item img, .history-item .thumb-fallback {
  width: 92px; aspect-ratio: 16/9; border-radius: 5px;
  object-fit: cover; flex: none;
  background: var(--surface-2);
  display: grid; place-items: center; color: #3d434e; font-size: 14px;
}
.history-item .h-title {
  font-size: 12.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.history-item .h-meta { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.mini-progress { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); margin-top: 5px; overflow: hidden; }
.mini-progress > span { display: block; height: 100%; background: var(--brand); }

@media (max-width: 1024px) {
  .player-side { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .player-shell { margin-top: 10px; border-radius: var(--radius); }
  #player { max-height: 52vh; }
  .controls { padding: 26px 6px calc(8px + var(--safe-b)); }
  .ctrl { width: 42px; height: 42px; }
  .ctrl svg { width: 23px; height: 23px; }
  .ctrl-time { font-size: 11.5px; padding: 0 4px; }
  .volume-wrap { display: none; }
  .center-play { width: 58px; height: 58px; }
  .center-play svg { width: 23px; height: 23px; }
  .rotate-hint { display: block; }
  .info-card { padding: 14px 16px; }
  .info-card h3 { font-size: 15.5px; }
}