/* liuhe front: phone shell + nav/notice/image safety (v20261020e) */
html { background: #f0f0f0; }
body {
  max-width: 480px;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #fff;
  box-shadow: 0 0 24px rgba(0,0,0,.08);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fixed bottom nav: exactly 5 items, aligned to phone column */
#foot .foot,
.foot {
  max-width: 480px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 100% !important;
  box-sizing: border-box;
  z-index: 9999;
  overflow: hidden;
}
#foot .foot > ul,
.foot > ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  overflow: hidden;
  box-sizing: border-box;
}
#foot .foot > ul > a,
.foot > ul > a {
  flex: 1 1 0 !important;
  max-width: 20% !important;
  width: 20% !important;
  float: none !important;
  display: block !important;
  text-align: center;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
#foot .foot > ul > a > li,
.foot > ul > a > li {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
#foot .foot > ul > .clear,
.foot > ul > .clear,
#foot .foot > ul > a:nth-child(n+6),
.foot > ul > a:nth-child(n+6) {
  display: none !important;
}
#foot .foot > ul > a > li > img,
.foot > ul > a > li > img {
  width: 27px !important;
  height: 27px !important;
  max-width: 27px !important;
  display: inline-block !important;
  margin: 0 auto;
}
#foot .foot > ul > a > li > p,
.foot > ul > a > li > p,
#foot .foot > ul > a > li > p.pclass,
.foot > ul > a > li > p.pclass {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  height: auto !important;
  -webkit-line-clamp: unset !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: rgb(112,112,112);
  margin: 0;
  padding: 0 2px;
  box-sizing: border-box;
}

/* Notice bar: stop absolute icon overlap */
.notice {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 8px 0 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
}
.notice > img {
  position: static !important;
  top: auto !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  object-fit: contain !important;
  flex-shrink: 0;
  background: transparent !important;
  z-index: auto !important;
}
.notice > p {
  flex: 1 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Category / recommend / video thumbs */
.gdgride .van-image,
.horizontalItem .imgBox .van-image,
.cover_img.van-image,
.movie-list-item .van-image {
  background: #f2f2f2;
}
.van-image__img {
  object-fit: cover;
}
img.img-broken {
  object-fit: cover !important;
  background: #eee url('/static/theme/img/image.png') center/40% no-repeat !important;
  min-height: 64px;
}

/* Keep horizontal category scroller usable inside 480px */
.gdgride { flex-shrink: 0; }

.material-icons {
  font-family: 'Material Icons' !important;
}

/* Hide Vant image error glyph (circular 404); onerror supplies placeholder */
.van-image__error {
  background: #eee url('/static/theme/img/image.png') center/40% no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}
.van-image__error .van-icon,
.van-image__error__icon {
  display: none !important;
}
.cover_img.van-image,
.movie-list-item .van-image,
.releaseItem .van-image,
.horizontalItem .van-image,
.gdgride .van-image {
  background: #f0f0f0 url('/static/theme/img/image.png') center/36% no-repeat;
}
