/* ============================================================
 * 列表视图「返回顶部」按钮
 * 作用视图：午夜剧场（#vodView）、热片推荐·影视排行（#hotView）
 * 规格沿用影视排行详情页顶部返回按钮（php/detail.php 的 .back）：
 *   34×34 无边框圆角方块（radius 5px）+ 毛玻璃 blur(10px) + 18×18 图标
 * 差异：本页图标是白色实心素材（fill="#fff"），列表背景又是浅灰（--bg #f4f4f4），
 *       白底会看不见，故按钮底改为深色毛玻璃，hover 加深 ——
 *       与详情页 .back 的 hover（rgba(0,0,0,.85)）同一套明暗语言
 * ========================================================== */

.to-top {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 15;                 /* 高于列表卡片(1/2)，低于密码门(20)、选集弹窗(1100)、详情弹窗(9999) */
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: rgba(20, 20, 24, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -8px rgba(20, 20, 30, .5);
  color: #ffffff;              /* 兜底：图标 path 自带 fill="#fff" */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
  animation: to-top-in .2s ease both;
}
.to-top[hidden] { display: none; }

/* 图标本身是白色线性素材（fill="#fff"），故按钮底取深色毛玻璃，
   透明度/圆角/模糊值沿用详情页 .back 的语言 */
.to-top svg {
  display: block;
  width: 18px;
  height: 18px;
}

.to-top:hover { background: rgba(0, 0, 0, .85); }
.to-top:active { transform: scale(.92); }

/* 只淡入不动 transform，避免 animation 的 both 覆盖 :active 的缩放 */
@keyframes to-top-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 900px) {
  .to-top { right: 16px; bottom: 16px; }
}
