body {
  background: url('https://qycloudreve.s.odn.cc/f/Qlrtk/2025-07-05_14.0lo5.40.webp') no-repeat center center fixed !important;
  background-size: cover !important;
  color: #fff !important; 
}

/* 毛玻璃 */
.container {
  max-width: 1200px; 
  /* 顶部留出 90px 避开你的 fixed 导航栏 */
  margin: 90px auto 40px auto; 
  padding: 30px;
  background: rgba(20, 20, 20, 0.65); /* 深色半透明 */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* 3. 视频容器：占满父容器，移除不必要的外边距 */
.video-container {
  max-width: 100%;
  margin: 0 auto 30px auto;
  padding: 0;
}

/* 视频包装器：提供圆角和阴影，高度由视频实际比例决定 */
.video-wrapper {
  position: relative; 
  border-radius: 12px;
  overflow: hidden; /* 保证圆角生效 */
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  background: #000;
  width: 100%;
  /* 不设置 height，让高度由内部视频撑开 */
}

/* --- 针对 Plyr 播放器的自适应修复（自适应视频原始比例）--- */
.video-wrapper .plyr {
  width: 100%;
  height: auto;
  /* 移除 aspect-ratio: 16/9，让高度由视频实际比例决定 */
  --plyr-color-main: #f8a5c2; /* 将播放器进度条颜色改为主题粉色 */
}

/* 视频元素填满容器宽度，高度自适应，保持原始比例 */
.video-wrapper .plyr video {
  width: 100% !important;
  height: auto !important;  /* 高度自动，由宽度和视频比例决定 */
  object-fit: contain;      /* 确保视频完整显示，不裁剪 */
  background: #000;
  margin: 0;
  display: block;
}

/* 如果使用原生 HTML5 video（非 Plyr），取消注释以下代码 */
/*
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #000;
}
*/

/* 与 gallery/detail.html 风格一致的返回按钮 */
.back-button {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 1000;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.25s ease;
}
.back-button:hover { 
  transform: translateY(-2px); 
  background: rgba(248, 165, 194, 0.5);
}

/* ---------- 控件和其他层 ---------- */
.controls-overlay {
  position: absolute; 
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  transition: opacity 0.2s;
}

.frosted {
  background: rgba(255,255,255,0.06); 
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}

.video-meta { display:flex; align-items:center; width:100%; justify-content: space-between; }
.video-title { font-weight: 600; color: #fff; font-size: 16px; margin-right: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

.res-switch button {
  background: transparent; 
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  margin-left:6px;
  cursor:pointer;
  outline:none;
  transition: all 0.2s;
  font-size:14px;
}
.res-switch button:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }
.res-switch button.active { background: rgba(248,165,194,0.4); border-color: rgba(248,165,194,0.8); color: #fff; box-shadow: 0 4px 12px rgba(248,165,194,0.3); }

/* ---------- Twikoo 评论区深度适配 ---------- */
.comments-section { 
  max-width: 100%;
  margin: 0 auto; 
  padding: 0; 
}

/* 强制把 Twikoo 评论的字体改为浅色，避免在深色毛玻璃上看不清 */
.twikoo, .tk-content, .tk-nick, .tk-action-icon, .tk-time, .tk-comments-title, .tk-comments-count {
  color: #eaeaea !important;
}

/* 修改 Twikoo 输入框的背景为半透明，边框为亮色 */
.tk-input .el-textarea__inner, .tk-input .el-input__inner {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.tk-input .el-textarea__inner:focus, .tk-input .el-input__inner:focus {
  border-color: #f8a5c2 !important;
}

/* ---------- 移动端适配 ---------- */
@media (max-width:768px) {
  .container { 
    margin: 80px 10px 20px 10px; 
    padding: 15px; 
  }
  .video-container { margin: 0 auto 16px auto; } 
  .back-button { top: 70px; left: 10px; padding: 8px 12px; font-size: 14px; }
  .controls-overlay { left:8px; right:8px; bottom:8px; padding:8px; }
  .res-switch button { padding:6px 8px; margin-left:4px; }
}