/* ============================================================
   首页 · LIVE 心事（对齐 public/demo/minimal-home.html）
   照片上浮着白字，没有卡片：压暗只靠画面顶部的一层薄纱。
   ============================================================ */

/* 顶部薄纱：让白字在浅蓝天空上也能读；不压狐狸（狐狸在 z1） */
.screen-home::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(-1 * var(--pad-x));
  right: calc(-1 * var(--pad-x));
  top: 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(22, 16, 44, .56) 0%,
    rgba(22, 16, 44, .30) 28%,
    rgba(22, 16, 44, 0) 64%
  );
}

.screen-home .topbar {
  position: relative;
  z-index: 2;
}

.screen-home .home-fox {
  z-index: 1;
}

.home-live {
  position: absolute;
  z-index: 3;
  left: 0;
  top: calc(104px + env(safe-area-inset-top));
  width: min(78%, 330px);
  color: #fff;
  animation: hl-in .5s cubic-bezier(.22, 1, .36, 1) both;
}

/* 文字背后的一团柔光：不是卡片，只是一层让白字落得住的暗部 */
.home-live::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -22px -20px -24px;
  pointer-events: none;
  background: radial-gradient(
    110% 100% at 18% 18%,
    rgba(22, 16, 44, .62) 0%,
    rgba(22, 16, 44, .38) 52%,
    rgba(22, 16, 44, 0) 78%
  );
  filter: blur(10px);
}

@keyframes hl-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* 红色 LIVE：与样本同一尺寸/字距 */
.home-live .hl-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 5px;
  margin-bottom: 12px;
  background: #e0453a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
}

.home-live .hl-live i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* 标题：25px / 1.28 / 600，和样本一致 */
.home-live .hl-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: .01em;
  text-shadow: 0 1px 14px rgba(20, 14, 40, .55);
}

.home-live .hl-sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 3px rgba(20, 14, 40, .8), 0 2px 12px rgba(20, 14, 40, .5);
}

.home-live .hl-sub[hidden] { display: none; }

/* 时间线：40px 时间列 + 14.5px 文本 */
.home-live .hl-rows {
  display: grid;
  gap: 9px;
}

.home-live .hl-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.home-live .hl-t {
  flex: 0 0 40px;
  min-width: 40px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .56);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(20, 14, 40, .7);
}

.home-live .hl-what {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 3px rgba(20, 14, 40, .8), 0 2px 12px rgba(20, 14, 40, .5);
}

@media (max-width: 360px) {
  .home-live {
    top: calc(94px + env(safe-area-inset-top));
    width: min(82%, 270px);
  }
  .home-live .hl-title {
    -webkit-line-clamp: 1;
    font-size: 20px;
  }
  .home-live .hl-sub { font-size: 11.5px; }
  .home-live .hl-what { font-size: 12px; }
  /* 320 上狐狸耳朵顶得高：只留 LIVE + 标题 + 副题，不压住耳朵 */
  .home-live .hl-rows { display: none; }
}

@media (max-height: 620px) {
  .home-live { top: calc(88px + env(safe-area-inset-top)); }
  .home-live .hl-rows .hl-row:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-live { animation: none; }
}
