/* ===== 视频列表（前台） ===== */
.video-search{display:flex; gap:10px; align-items:center;}
.vs-input{
  width: 220px;
  max-width: 46vw;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:0;
}
.vs-input::placeholder{color:rgba(255,255,255,.45); opacity:1;}
.vs-btn{
  padding:10px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  color:#111;
  font-weight:800;
  background:linear-gradient(135deg, rgba(245,230,179,.95), rgba(212,185,106,.92));
}

.video-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (min-width: 720px){
  .video-grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (min-width: 1100px){
  .video-grid{grid-template-columns: repeat(4, minmax(0, 1fr));}
}

.video-card{
  display:flex;
  flex-direction:column;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:rgba(255,255,255,.92);
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  transition:transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
  cursor:pointer;
}
.video-card:hover{
  transform:translateY(-2px);
  border-color:rgba(212,185,106,.35);
  background:rgba(0,0,0,.28);
  box-shadow:0 16px 36px rgba(0,0,0,.45);
}
.video-cover{position:relative; background:rgba(255,255,255,.04);}
.video-cover img{width:100%; display:block; aspect-ratio: 16/9; object-fit:cover;}
.cover-fallback{
  aspect-ratio:16/9;
  display:flex; align-items:center; justify-content:center;
  color:rgba(245,230,179,.9);
  font-weight:900;
  font-size:28px;
}
.play-badge{
  position:absolute; right:10px; bottom:10px;
  width:36px; height:36px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(245,230,179,.95), rgba(212,185,106,.92));
  color:#111;
  font-weight:900;
  box-shadow:0 10px 24px rgba(212,185,106,.30);
}
.video-meta{padding:12px 12px 14px;}
.vc-title{font-weight:900; font-size:14px; line-height:1.25;}
.vc-brief{margin-top:6px; font-size:12px; color:rgba(255,255,255,.62); line-height:1.45;}
.vc-foot{display:flex; align-items:center; justify-content:space-between; margin-top:10px; font-size:12px; color:rgba(255,255,255,.70);}
.vc-open{color:rgba(245,230,179,.92); font-weight:800;}

.pager-dark :where(a,span){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:12px;
  margin: 4px 4px 0 0;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.82);
}
.pager-dark .active{
  background:linear-gradient(135deg, rgba(245,230,179,.22), rgba(212,185,106,.12));
  border-color:rgba(212,185,106,.45);
}

/* ===== 弹窗播放器 ===== */
html.modal-open{overflow:hidden;}
.vmodal{
  position:fixed; inset:0;
  display:none;
  z-index:2000;
}
.vmodal[aria-hidden="false"]{display:block;}
.vmodal-mask{
  position:absolute; inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(6px);
}
.vmodal-dialog{
  position:relative;
  width:min(980px, 92vw);
  margin: 6vh auto 0;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 26px 70px rgba(0,0,0,.60);
}
.vmodal-hd{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background:rgba(0,0,0,.25);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.vmodal-title{
  font-weight:900;
  color:rgba(255,255,255,.92);
  font-size:14px;
  max-width: calc(100% - 50px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vmodal-x{
  border:0;
  cursor:pointer;
  width:36px; height:36px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.88);
}
.vmodal-x:hover{background:rgba(255,255,255,.10);}

.vmodal-body{padding:14px;}
.player{
  width:100%;
  aspect-ratio:16/9;
  background:rgba(0,0,0,.35);
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.player iframe,.player video{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#000;
}
.vmodal-desc{
  margin-top:10px;
  color:rgba(255,255,255,.70);
  font-size:13px;
  line-height:1.6;
}
.vmodal-sub{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:rgba(255,255,255,.70);
  font-size:12px;
}
.vmodal-link{
  color:rgba(245,230,179,.92);
  text-decoration:none;
  font-weight:800;
}
.vmodal-link:hover{text-decoration:underline;}

@media (max-width: 520px){
  .video-search{width:100%; margin-top:10px;}
  .vs-input{flex:1; width:auto; max-width:none;}
  .panel-hd{flex-wrap:wrap; align-items:flex-start;}
  .vmodal-dialog{margin-top: 10vh;}
}
