/* ==================== 兰小才直播间 ====================
   竖屏整页 + 横屏 16:9 视频区 + 四 Tab + 输入条 + 报名抽屉
   ==================================================== */

.lv-page {
  background: #0d1526;
  min-height: 100vh;
  padding-bottom: 68px;   /* 给固定底部的输入条留位，别被挡住 */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部标题栏 ---------- */
.lv-head {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #0d1526;
  color: #fff;
}
.lv-head .t {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-head .v {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #8ea1bf;
  white-space: nowrap;
}
.lv-head .x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* ---------- 正在直播横幅 ---------- */
.lv-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 8px 12px;
  background: linear-gradient(90deg, #ff4d4f, #ff7a45);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.35;
}
.lv-banner .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
  animation: lvPulse 1.2s infinite;
}
.lv-banner .txt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lv-banner .txt b { font-weight: 700; }
.lv-banner .go {
  background: #fff;
  color: #e2341f;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 12px;
  flex: 0 0 auto;
}
.lv-banner .x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* ---------- 视频区（16:9） ---------- */
.lv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.lv-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.lv-stage .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
}
.lv-stage .veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.42) 0%, transparent 26%, transparent 58%, rgba(6, 12, 24, 0.72) 100%);
}
.lv-stage .lv-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.lv-stage .lv-unmute {
  position: absolute;
  right: 10px;
  bottom: 42px;
  z-index: 7;
  display: none;
  border: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  color: #fff;
  background: rgba(15, 23, 40, 0.84);
  backdrop-filter: blur(4px);
  font-family: inherit;
}
.lv-stage .lv-stream-err {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: #fff;
  background: rgba(10, 16, 30, 0.55);
  font-size: 12px;
  padding: 0 22px;
}
.lv-stage .lv-stream-err b { font-size: 14px; }
.lv-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(233, 56, 56, 0.94);
  color: #fff;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 20px;
}
.lv-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: lvPulse 1.2s infinite;
}
.lv-badge.end { background: rgba(60, 72, 92, 0.9); }
.lv-viewers {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 20px;
}
.lv-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(10, 20, 38, 0.9), rgba(10, 20, 38, 0.55));
  color: #dbe6ff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.lv-overlay .lb { color: #ffd24d; font-weight: 700; flex: 0 0 auto; }
.lv-overlay .sc { overflow: hidden; text-overflow: ellipsis; }
.lv-stage .tip {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 16, 32, 0.34);
  color: #e8f0ff;
  font-size: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.lv-stage .tip b { font-size: 14px; color: #fff; }
.lv-stage .tip .pillbtn {
  margin-top: 8px;
  padding: 6px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  color: #fff;
}

/* ---------- 四个 Tab ---------- */
.lv-tabs {
  display: flex;
  background: #111c31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 48px;
  z-index: 35;
}
.lv-tabs a {
  flex: 1;
  text-align: center;
  padding: 11px 0 10px;
  font-size: 12px;
  color: #8ea1bf;
  position: relative;
}
.lv-tabs a.on {
  color: #fff;
  font-weight: 700;
}
.lv-tabs a.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #4c8dff;
}

/* ---------- 内容区 ---------- */
.lv-body {
  background: #f4f6fb;
  min-height: 46vh;
  flex: 1 0 auto;
  padding: 10px 12px 12px;
}

/* 直播互动 */
.lv-msgs { display: flex; flex-direction: column; gap: 9px; }
.lv-msg { display: flex; gap: 7px; align-items: flex-start; }
.lv-msg .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid #fff;
  background: #1f6bff;
}
.lv-msg .bub {
  max-width: 76%;
  background: #fff;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #22314a;
  box-shadow: 0 4px 14px rgba(20, 48, 100, 0.06);
}
.lv-msg.me { flex-direction: row-reverse; }
.lv-msg.me .bub {
  background: #1f6bff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 107, 255, 0.2);
}
.lv-msg .mini-job {
  margin-top: 7px;
  background: #f7f9fe;
  border-radius: 9px;
  padding: 8px 9px;
  border: 1px solid #e8eefb;
}
.lv-msg .mini-job b { display: block; font-size: 12.5px; color: #0f1b2d; }
.lv-msg .mini-job .s { font-size: 11px; color: #8996ab; margin-top: 2px; }
.lv-msg .mini-job .sal { color: #ff6a00; font-weight: 800; font-size: 12px; }

/* 岗位信息 */
.lv-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lv-filters::-webkit-scrollbar { display: none; }
.lv-filters span {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 14px;
  background: #fff;
  color: #4b5a73;
  font-size: 11.5px;
  border: 1px solid #eaeef5;
}
.lv-filters span.on {
  background: #1f6bff;
  color: #fff;
  border-color: #1f6bff;
  font-weight: 700;
}
.lv-job {
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(20, 48, 100, 0.05);
}
.lv-job .h { display: flex; align-items: baseline; gap: 8px; }
.lv-job .h b { font-size: 14px; }
.lv-job .h .sal { margin-left: auto; color: #ff6a00; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.lv-job .m { font-size: 11.5px; color: #8996ab; margin-top: 5px; }
.lv-job .tags { margin-top: 7px; display: flex; gap: 5px; flex-wrap: wrap; }
.lv-job .tags em {
  font-style: normal;
  font-size: 10.5px;
  color: #1f6bff;
  background: #eef4ff;
  padding: 2px 7px;
  border-radius: 8px;
}
.lv-job .act { display: flex; gap: 8px; margin-top: 9px; }
.lv-job .act .b1 {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff7a45, #ff3d00);
  color: #fff;
}
.lv-job .act .b2 {
  flex: 0 0 84px;
  text-align: center;
  padding: 7px 0;
  border-radius: 16px;
  font-size: 12px;
  color: #1f6bff;
  background: #eef4ff;
}
.lv-empty {
  text-align: center;
  color: #8996ab;
  font-size: 12px;
  padding: 26px 0 18px;
}

/* 往期回顾 */
.lv-hist {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 9px;
  box-shadow: 0 4px 14px rgba(20, 48, 100, 0.05);
}
.lv-hist .hd { display: flex; gap: 10px; padding: 10px 11px; align-items: center; }
.lv-hist .cov {
  width: 78px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 22%;
  background: #dbe4f5;
  flex: 0 0 auto;
}
.lv-hist .info { flex: 1; min-width: 0; }
.lv-hist .info b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-hist .info .d { font-size: 11px; color: #8996ab; margin-top: 3px; }
.lv-hist .tagline { margin-top: 5px; font-size: 11px; color: #ff6a00; font-weight: 700; }
.lv-hist .tagline.still { color: #16a34a; }
.lv-hist .liveflag {
  display: inline-block;
  margin-left: 6px;
  background: #e93838;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
}

/* ---------- 输入条 ---------- */
.lv-inputbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 720px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #eaeef5;
  box-shadow: 0 -6px 18px rgba(20, 48, 100, 0.06);
}
.lv-inputbar input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 18px;
  border: 1px solid #e6ebf4;
  background: #f2f5fa;
  padding: 0 13px;
  font-size: 12.5px;
}
.lv-acts { display: flex; gap: 5px; flex: 0 0 auto; }
.lv-act {
  width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9.5px;
  color: #4b5a73;
}
.lv-act .ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f4fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.lv-act.primary .ic {
  background: linear-gradient(135deg, #ff7a45, #ff3d00);
  color: #fff;
}

/* ---------- 直播中胶囊 ---------- */
.lv-pill {
  position: fixed;
  right: 12px;
  bottom: 104px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff4d4f, #ff7a45);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 8px 22px rgba(255, 77, 79, 0.36);
}
.lv-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: lvPulse 1.2s infinite;
}

/* ---------- 报名抽屉 ---------- */
.lv-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 16, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lv-mask.on { opacity: 1; pointer-events: auto; }
.lv-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  transform: translateY(102%);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
  max-height: 88vh;
  overflow-y: auto;
}
.lv-sheet.on { transform: translateY(0); }
.lv-sheet .sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 6px;
}
.lv-sheet .sh h3 { margin: 0; font-size: 16px; }
.lv-sheet .sh .x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2f5fa;
  color: #4b5a73;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-sheet .sub { padding: 0 16px; font-size: 11.5px; color: #8996ab; }
.lv-field { padding: 0 16px; }
.lv-field label { display: block; font-size: 11px; color: #8996ab; margin: 13px 0 5px; }
.lv-field label i { color: #ff4d4f; font-style: normal; }
.lv-field input,
.lv-field textarea {
  width: 100%;
  border: 1px solid #e6ebf4;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.lv-field textarea { min-height: 62px; resize: none; }
.lv-field .hint { font-size: 10.5px; color: #a4b0c4; margin-top: 5px; }
.lv-submit {
  margin: 16px 16px calc(16px + env(safe-area-inset-bottom));
  height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, #ff7a45, #ff3d00);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-ok { padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.lv-ok .ic {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #1f6bff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.lv-ok b { font-size: 15px; }
.lv-ok .d { font-size: 12px; color: #8996ab; margin-top: 7px; line-height: 1.6; }
.lv-ok .btns { display: flex; gap: 10px; margin-top: 18px; }
.lv-ok .btns a {
  flex: 1;
  padding: 11px 0;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.lv-ok .btns .b1 { background: #eef4ff; color: #1f6bff; }
.lv-ok .btns .b2 { background: #1f6bff; color: #fff; }

@keyframes lvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}

/* 自动播放被浏览器拦时的兜底按钮（居中等一下） */
.lv-playhint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;
  border:0;border-radius:26px;padding:11px 26px;font-size:15px;font-weight:600;color:#fff;
  background:rgba(29,78,216,.9);box-shadow:0 8px 22px rgba(0,0,0,.32);cursor:pointer;
  letter-spacing:.5px;white-space:nowrap}
.lv-playhint:active{transform:translate(-50%,-50%) scale(.97)}

/* 画面右下角全屏按钮 */
.lv-stage .lv-full{position:absolute;right:10px;bottom:10px;z-index:6;width:34px;height:34px;
  border:0;border-radius:8px;background:rgba(0,0,0,.42);color:#fff;font-size:16px;line-height:1;
  display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(2px)}
.lv-stage .lv-full:active{background:rgba(0,0,0,.6)}

/* 全屏态：视频铺满整屏 */
.lv-stage:fullscreen{aspect-ratio:auto!important;width:100vw;height:100vh;display:block;background:#000}
.lv-stage:fullscreen .cover,.lv-stage:fullscreen .lv-video{width:100vw!important;height:100vh!important;object-fit:contain}
.lv-stage:fullscreen .lv-badge{bottom:16px;left:16px}
.lv-stage:fullscreen .lv-unmute{right:56px;bottom:14px}
.lv-stage:fullscreen .lv-full{right:14px;bottom:14px}
.lv-stage:-webkit-full-screen{aspect-ratio:auto!important;width:100vw;height:100vh;display:block;background:#000}
.lv-stage:-webkit-full-screen .lv-video{width:100vw!important;height:100vh!important;object-fit:contain}

/* 顶部整块（标题栏 + 视频区 + Tab）粘在最上层，下方内容单独滚动 */
.lv-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0d1526;
  flex: 0 0 auto;
}
.lv-top .lv-head { position: static; }
.lv-top .lv-tabs { position: static; top: auto; }

/* 窄屏/小视口时把视频区高度收一点，别把可视区全吃掉 */
@media (max-height: 700px) {
  .lv-top .lv-stage { max-height: 52vh; }
}

/* 顶部整块 fixed 钉死（sticky 在 overflow-x:hidden 的祖先下会失效） */
.lv-top {
  position: fixed !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  z-index: 40;
  background: #0d1526;
}
.lv-top-ph { display: block; width: 100%; }
