/* Shared phone column for every H5 page that extends base.html.
   Design sizes are rem. Root font-size tracks the window until 480px, then stops. */
@font-face {
  font-family: "ALKATIP Basma Tom";
  src: url("../fonts/ALKATIPBasmaTom.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --van-badge-font-family: "ALKATIP Basma Tom", "Microsoft YaHei", sans-serif;
  font-family: "ALKATIP Basma Tom", "Microsoft YaHei", sans-serif !important;
}

html {
  font-size: min(calc(100vw * 16 / 375), 20.48px);
}

body,
button,
input,
textarea,
select {
  font-family: "ALKATIP Basma Tom", "Microsoft YaHei", sans-serif !important;
}

body {
  margin: 0;
  background: #111;
  overflow-x: hidden;
}

.h5-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow-x: hidden;
}

.h5-shell .page {
  box-sizing: border-box;
  height: auto !important;
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.msg_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.msg_data_box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: #fff;
  border-radius: 0.625rem;
  padding: 1.25rem 0.9375rem 0.9375rem;
  min-width: 17.57811rem;
  box-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.15);
}

.msg_data_box h3 {
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 600;
}

.msg_data_2box {
  display: flex;
  justify-content: space-between;
  padding: 0;
  gap: 0.75rem;
  flex-direction: row-reverse;
}

.msg_data_2box > div {
  flex: 1;
  height: 2.75rem;
  line-height: 2.75rem;
  text-align: center;
  font-size: 1rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  border: none;
}

.msg_data_2box > div:first-child {
  background-color: #f8f8f8;
  color: #646464;
  border: 0.0625rem solid #e5e5e5;
}

.msg_data_2box > div.r {
  background: linear-gradient(135deg, #ffb701 0%, #ff8917 100%);
  color: #fff;
  font-weight: 700;
}

.h5-search-empty {
  padding: 48px 16px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

.h5-shell .van-tabbar.van-tabbar--fixed {
  width: min(100%, 480px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  box-sizing: border-box;
  z-index: 30;
  background: #fff;
}

.h5-shell .swiper {
  overflow: hidden;
  position: relative;
}

.h5-shell .swiper-wrapper {
  display: flex;
  box-sizing: content-box;
}

.h5-shell .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
}

.h5-shell .my-swipe-thumb {
  display: none;
}

.h5-shell .my-swipe {
  margin: 12px 12px 8px !important;
}

.h5-shell .my-swipe .van-image {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.h5-shell .my-swipe .van-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h5-shell .page,
.h5-shell .container,
.h5-shell .movie-list-card,
.h5-shell .search-filter,
.h5-shell .link-section,
.h5-shell .card-content,
.h5-shell .movie-list-section,
.h5-shell .vip-sell-mode-section {
  min-width: 0;
  max-width: 100%;
}

.h5-shell .link-section,
.h5-shell .vip-sell-mode-section {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.h5-shell .movie-list-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h5-shell .h5-entry {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 10;
}

.h5-shell .link-card,
.h5-shell .movie-item-section {
  min-width: 0;
}

.h5-shell .movie-item-section {
  display: flex;
  flex-direction: column;
}

.h5-shell .link-card-label,
.h5-shell .movie-item-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.h5-shell .movie-item-info {
  flex: 0 0 auto;
  line-height: 1.65;
  padding: 0.4rem 0.15rem 0.2rem;
}

.h5-shell .movie-item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  word-break: break-word;
  line-height: 1.65;
}

.h5-shell .movie-list-card .card-content {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.h5-shell .movie-list-card .card-content::-webkit-scrollbar {
  display: none;
  height: 0;
}

.h5-shell .movie-list-card .movie-item-section {
  flex: 0 0 30%;
  width: 30%;
  box-sizing: border-box;
}

.h5-shell .h5-poster {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto !important;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
}

.h5-shell .h5-poster > .van-image__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h5-shell .h5-cn-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 6px;
  border-radius: 4px;
}

.h5-shell .filter-list {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.h5-shell .filter-list::-webkit-scrollbar {
  display: none;
  height: 0;
}

.h5-shell .filter-list > div {
  width: max-content !important;
}

.h5-shell .h5-player-slot {
  position: relative;
  width: 100%;
}

.h5-shell .video-2js,
.h5-shell #player {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-height: none !important;
  display: block;
}

.h5-shell .h5-unmute {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.h5-shell .h5-unmute span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 16px;
  line-height: 1.4;
}

.h5-shell .vip-sell-mode_box {
  min-width: 0;
}

.h5-shell .watching-card {
  box-sizing: border-box;
  max-width: 100%;
}
