@import url('uyghur.css');

/* 全局基础：仅手机适配、清除默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'UKIJ Tor', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

body {
    min-width: 320px;
    max-width: 767px;
    margin: 0 auto;
}
.rtl{
    direction: rtl;
}
.show-main {
    width: 100%;
    min-width: 320px;
    max-width: 767px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.show-head {
    width: 100%;
    height: 50px;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    flex-shrink: 0;
}

.show-h-title {
    color: #fff;
    text-align: center;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    direction: rtl;
}
.show-h-icon{
    display: flex;
    height: 40px;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.3);
    padding: 0 5px;
    border-radius: 8px;
    cursor: pointer;
}
.show-h-ishome {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-h-isback {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-players {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
}

.kinojan {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-info {
    width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-title {
    width: 100%;
    height: 45px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}
.video-tit{
    direction: rtl;
}
.fave-topin {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
}

.faves-icon,
.fave-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.show-episodes {
    margin: 15px 5px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    max-width: 380px;
}

.show-episodes-title {
    text-align: right;
    padding: 5px 10px;
}

/* 选集 */
.show-episode-list {
    direction: rtl;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 5px;
	width: 100%;
	margin: 0 auto;
	overflow-y: scroll;
	overflow-x: visible;
}

.show-episode-item {
    background: #949494;
	padding: 15px 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.show-episode-item.active {
    background: #e63939;
}

/* 视频 */
.show-players video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-desc {
    width: 100%;
    padding: 12px 15px;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    text-align: right;
    /*border-bottom: 1px solid #eee;*/
}

.movie-desc-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 15px;
    color: #000;
}

.related-movies {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: column;
}

.related-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: right;
}

.related-list {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 32% 32% 32%;
    gap: 8px;
    direction: rtl;
}

.related-item {
    /*width: 30%;*/
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.related-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.related-item-name {
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
}

.movie-info-bar {
    width: 100%;
    padding: 10px 5px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    /*border-bottom: 1px solid #eee;*/
    flex-direction: row-reverse;
}

.info-tag {
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
}

.score-tag {
    padding: 4px 10px;
    background: #f5a623;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

/*sitwal*/
.show-players {
    position: relative;
}

.trial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    color: #fff;
    text-align: center;
    flex-direction: column;
}

.trial-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #ff4444;
    direction: rtl;
}

.trial-desc {
    font-size: 16px;
    margin-bottom: 30px;
    direction: rtl;
}

.trial-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
}

.trial-btn {
    padding: 10px 10px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    direction: rtl;
}

.buy-btn {
    background: #ff6b35;
    color: #fff;
}
.buy-epbtn {
    background: #2992ff;
    color: #fff;
}
.vip-btn {
    background: #ffd700;
    color: #333;
}

/**/
 /* 遮罩层：全屏半透明背景 */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: none; /* 默认隐藏 */
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    /* 弹窗内容框 */
    .popup-content {
      background: #fff;
      width: 90%;
      max-width: 500px;
      padding: 30px;
      border-radius: 12px;
      position: relative;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
      animation: popupFade 0.3s ease; /* 淡入动画 */
    }

    /* 关闭按钮 */
    .popup-close {
      position: absolute;
      top: 15px;
      right: 18px;
      font-size: 22px;
      background: none;
      border: none;
      cursor: pointer;
      color: #666;
    }
    .popup-close:hover {
      color: #000;
    }

    /* 淡入动画 */
    @keyframes popupFade {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }