/* Homepage-only visual alignment with the supplied reference screenshots. */
body,
#app,
.indexbox {
  background-color: #21232a;
  background-image: url('../images/index/longvideo-toutiao-bg.png');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: min(520px, 100vw) auto;
  background-attachment: fixed;
}

/* Channel and catalogue pages share the homepage backdrop from the very top. */
.specialbox,
.hotlistbox,
.vodlistbox,
.vod-searchbox,
.label-searchbox,
.specialbox .mint-loadmore,
.hotlistbox .mint-loadmore,
.vodlistbox .mint-loadmore,
.specialbox .mint-loadmore-content,
.hotlistbox .mint-loadmore-content,
.vodlistbox .mint-loadmore-content,
.specialbox .actorbox,
.specialbox .tag-container {
  background: transparent !important;
}

.specialbox > header.navbar,
.hotlistbox > header.navbar,
.vodlistbox > header.navbar,
.vod-searchbox > header.navbar,
.label-searchbox > header.navbar {
  background: transparent !important;
}

/* Search entry and results: keep the same fixed purple backdrop and lighter panels. */
.label-searchbox header,
.vod-searchbox header,
.label-searchform,
.searchform,
.label-searchbox .hot-search,
.vod-searchbox .mint-loadmore,
.vod-searchbox .mint-loadmore-content,
.vod-searchbox .search-listbox,
.vod-searchbox .resultbox {
  background: transparent !important;
}

.label-searchform,
.searchform {
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 5px 15px rgba(38, 0, 45, .16);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.label-searchform li.schinput input,
.searchform li.schinput input {
  height: 34px;
  margin: 8px 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(24, 15, 29, .58);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .18);
}

.label-searchform li.schinput input::placeholder,
.searchform li.schinput input::placeholder {
  color: rgba(255, 255, 255, .68);
}

.label-searchbox .hot-search {
  margin: 8px 10px 0;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(25, 21, 29, .35) !important;
}

.label-searchbox .hot-search a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(47, 31, 51, .62);
}

.label-searchbox .history a {
  color: #ffd4e2;
  background: rgba(76, 28, 53, .65);
}

.vod-searchbox .search-listbox > h2 {
  margin: 8px 10px 10px;
  border-radius: 10px;
  background: rgba(25, 21, 29, .35);
}

.label-searchbox > .list-caption {
  height: 36px;
  margin: 10px 10px 0;
  padding: 0;
  color: #fff;
  text-indent: 29px;
  line-height: 36px;
  background: url('../images/index/headline-mark.png') left center / 21px 11px no-repeat;
}

.label-searchbox > .list-caption em {
  font-size: 15px;
  font-weight: 700;
}

.label-searchbox .hotvods {
  margin: 4px 10px 0;
}

.reference-app-download {
  position: fixed;
  z-index: 1001;
  top: 0;
  display: flex;
  width: 100%;
  max-width: 520px;
  height: 64px;
  padding: 7px 9px 7px 14px;
  align-items: center;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(100deg, #310040, #9400a9 68%, #c600c4);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 12px rgba(27,0,37,.28);
  transition: transform .25s ease, opacity .25s ease;
}
.reference-app-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.reference-app-copy { display: flex; min-width: 0; margin-left: 8px; flex: 1; justify-content: center; flex-direction: column; }
.reference-app-copy b { overflow: hidden; color: #fff62e; font-size: 14px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.reference-app-copy small { overflow: hidden; color: #fff; font-size: 12px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.reference-app-button {
  height: 36px;
  padding: 0 21px;
  color: #8c7100;
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
  white-space: nowrap;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff06b, #ffdd40);
  box-shadow: 0 3px 8px rgba(62,0,56,.22);
}
.reference-app-close {
  width: 20px;
  height: 36px;
  padding: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.reference-app-download.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }

.reference-header {
  position: fixed;
  z-index: 999;
  top: 72px;
  width: 100%;
  max-width: 520px;
  height: 40px;
  background: transparent;
  transition: top .25s ease, height .25s ease, background .25s ease;
}
body.reference-app-closed .reference-header {
  top: 0;
  height: 96px;
  background: linear-gradient(145deg, rgba(129, 0, 177, .98), rgba(168, 0, 190, .95));
  box-shadow: 0 5px 18px rgba(40, 0, 52, .28);
}

.reference-header-main {
  display: none;
  height: 56px;
  padding: 8px 14px 5px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
body.reference-app-closed .reference-header-main { display: flex; }

.reference-logo { display: flex; align-items: center; color: #fff; }
.reference-logo img {
  display: block;
  width: auto;
  height: 35px;
  max-width: 42px;
  object-fit: contain;
}
.reference-logo span { display: flex; margin-left: 6px; flex-direction: column; line-height: 1; }
.reference-logo b { font-size: 14px; letter-spacing: .5px; }
.reference-logo small { margin-top: 3px; font-size: 8px; color: rgba(255,255,255,.82); }

.reference-actions { display: flex; gap: 9px; align-items: center; }
.reference-action {
  display: grid;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.reference-action img { width: 19px; height: 19px; object-fit: contain; }
.reference-action.history img { width: 21px; height: 21px; }
.reference-action.categories i {
  width: 15px;
  height: 15px;
  background:
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) 0 0/7px 7px;
}

.reference-channel-nav {
  display: flex;
  height: 40px;
  margin: 0 10px;
  padding: 0 8px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border: 1px solid rgba(243,123,255,.38);
  border-radius: 18px;
  background: rgba(64, 0, 72, .35);
  box-shadow: inset 0 0 10px rgba(255,255,255,.06);
}
.reference-channel-nav::-webkit-scrollbar { display: none; }
.reference-channel-nav a {
	box-sizing: border-box;
	padding: 7px 4px;
	flex: 0 0 20%;
	text-align: center;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.reference-channel-nav a:nth-child(1) {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,255,255,.5);
}

.reference-channel-nav a.active {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,255,255,.5);
}

.reference-channel-nav a:nth-child(1):not(.active) {
  font-size: 14px;
  font-weight: 400;
  text-shadow: none;
}

.reference-home-slider {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.reference-home-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform .28s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.reference-home-slide {
  width: 100%;
  min-width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  contain: layout paint;
  backface-visibility: hidden;
}

.reference-home-slide.is-active {
  height: auto;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  contain: layout;
}

.reference-channel-caption { margin-top: 10px !important; }
.reference-channel-content { padding-bottom: 0; }
.reference-channel-loader {
  height: 58px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 58px;
  text-align: center;
  margin-bottom: 68px;
}
.reference-channel-loader.is-loading span::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  vertical-align: -2px;
  content: '';
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: reference-loader-spin .7s linear infinite;
}
@keyframes reference-loader-spin { to { transform: rotate(360deg); } }

.indexbox .pad50,
.indexbox .pad56 { height: 112px; transition: height .25s ease; }
body.reference-app-closed .indexbox .pad50,
body.reference-app-closed .indexbox .pad56 { height: 96px; }
.indexbox .marquee { background: rgba(28, 26, 31, .82); }

/* Keep yesterday's inset carousel appearance while retaining the backend slider. */
.indexbox .swiper-box {
  width: auto;
  margin: 10px 10px 0;
  padding-top: 43%;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(18, 18, 20, .35);
  touch-action: pan-y;
  user-select: none;
}
.indexbox .swiper-box-wrapper,
.indexbox .swiper-box .swiper-slide img { border-radius: 12px; }
.indexbox .swiper-box-wrapper,
.indexbox .swiper-box .swiper-container { overflow: hidden; }
.indexbox .reference-flat-carousel .swiper-wrapper {
  height: 100%;
  transform: none !important;
}
.indexbox .reference-flat-carousel .swiper-slide {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transform: none !important;
  transition: opacity .3s ease;
  pointer-events: none;
}
.indexbox .reference-flat-carousel .swiper-slide.swiper-slide-active {
  opacity: 1;
  pointer-events: auto;
}
.indexbox .swiper-box .swiper-slide img { object-fit: cover; }
.indexbox .swiper-pagination-box { height: 17px; line-height: 17px; }
.indexbox .swiper-pagination-box .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 4px;
  background: rgba(255, 255, 255, .42);
}
.indexbox .swiper-pagination-box .swiper-pagination-bullet-active {
  width: 22px;
  background: #fff;
}

/* Real game banners in the reference site's compact purple thumbnail rail. */
.indexbox .hot_game_box {
  display: block;
  width: auto;
  height: 88px;
  margin: 9px 13px 12px;
  padding: 8px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 15px;
  background: rgba(0, 0, 0, .30);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .10);
}
.indexbox .hot_game_box .hgb_left { display: none; }
.indexbox .hot_game_box .hgb_right {
  display: flex;
  width: 100%;
  height: 68px;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}
.indexbox .hot_game_box .hgb_right::-webkit-scrollbar { display: none; }
.indexbox .hot_game_box .hgb_right .game_cell {
  display: block;
  width: 62px;
  height: 68px;
  padding: 0;
  margin: 0;
  flex: 0 0 62px;
}
.indexbox .hot_game_box .hgb_right .game_cell .imgbox {
  display: block;
  width: 62px;
  height: 68px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(32, 12, 41, .75);
}
.indexbox .hot_game_box .hgb_right .game_cell .imgbox img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* Reuse the homepage game rail on all catalogue/type routes. */
.vodlistbox .hot_game_box {
  display: block;
  width: auto;
  height: 88px;
  margin: 9px 13px 12px;
  padding: 8px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 15px;
  background: rgba(0, 0, 0, .30);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .10);
}
.vodlistbox .hot_game_box .hgb_left { display: none; }
.vodlistbox .hot_game_box .hgb_right {
  display: flex;
  width: 100%;
  height: 68px;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}
.vodlistbox .hot_game_box .hgb_right::-webkit-scrollbar { display: none; }
.vodlistbox .hot_game_box .game_cell {
  display: block;
  width: 62px;
  height: 68px;
  margin: 0;
  padding: 0;
  flex: 0 0 62px;
}
.vodlistbox .hot_game_box .hgb_right .game_cell .imgbox {
  display: block;
  width: 62px;
  height: 68px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(32, 12, 41, .75);
}
.vodlistbox .hot_game_box .hgb_right .game_cell .imgbox img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.indexbox .index-grid { display: none !important; }

.indexbox .list-caption {
  height: 36px;
  margin: 8px 10px 0;
  padding-left: 0;
  text-indent: 29px;
  line-height: 36px;
  background: url('../images/index/headline-mark.png') left center / 21px 11px no-repeat;
}
.indexbox .list-caption em { font-size: 15px; font-weight: 700; }
.indexbox .list-caption span { right: 0; }
.indexbox .todays,
.indexbox .latests { margin: 4px 10px 0; }

/* Headline uses full-width cards; the remaining sections keep two columns. */
.indexbox .list-item-1 { display: block; }
.indexbox .list-item-2 { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.indexbox .list-item-2 li,
.indexbox .list-item-2 li:nth-child(-n+2) {
  float: none;
  width: calc(50% - 4px);
  height: auto;
  margin: 0;
  padding: 0;
}
.indexbox .list-item-2 li a { position: relative; display: block; }
.indexbox .list-item-2 dt img { border-radius: 9px; object-fit: cover; }
.indexbox .list-item-1 li {
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  padding: 0;
}
.indexbox .list-item-1 li a { position: relative; display: block; width: 100%; height: auto; }
.indexbox .list-item-1 li img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
}
.indexbox .list-item-1 li h3 {
  position: static;
  height: auto;
  min-height: 22px;
  margin-top: 6px;
  padding: 0 2px;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  white-space: normal;
}
.indexbox .list-item-1 li i { bottom: 28px; }
.indexbox .list-item-1 li em { top: 45%; width: 42px; height: 42px; background-size: 42px; }
.indexbox .list-item-2 dt { padding-top: 61%; border-radius: 9px; overflow: hidden; }
.indexbox .list-item-2 dd h3 {
  height: 36px;
  padding: 4px 2px 0;
  font-size: 12px;
  line-height: 16px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.indexbox .list-item-1 li strong,
.indexbox .list-item-2 dt strong { width: 32px; height: 32px; background-size: 32px; }

@media (max-width: 360px) {
  .reference-channel-nav a { padding: 7px 4px; font-size: 12px; }
  .reference-logo img { max-width: 122px; }
  .reference-app-copy b { font-size: 12px; }
  .reference-app-copy small { font-size: 10px; }
  .reference-app-button { padding: 0 13px; font-size: 14px; }
}
