﻿/* FlexTV mobile homepage - pure local static rewrite */

:root {
  --vh: 1vh;
  --pink: #fb3867;
  --pink-2: #fe1eab;
  --text: #fff;
  --muted: #9e9e9e;
  --bg: #000;
  --card: #1f1f1f;
  --line: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: default;
}

img {
  border: 0;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-select: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile page shell: rem based on 750 design (1rem = 100px @ 750w) */
.mbPage {
  width: 100%;
  min-width: 0;
  max-width: 7.5rem;
  margin: 0 auto;
  min-height: 100vh;
  background: #000;
  overflow-x: clip;
  padding-bottom: 1.4rem;
  position: relative;
}

/* Header */
.mb-header-wrapper {
  z-index: 1222;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 7.5rem;
  margin: 0 auto;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.mb-header-wrapper.header_nav {
  height: 1.7rem;
}

.mb-header-wrapper.home-glass-header {
  background: transparent;
}

.mb-header-wrapper.home-glass-header > .home-header-banner-clip {
  pointer-events: none;
  z-index: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mb-header-wrapper.home-glass-header > .home-header-banner-clip > .home-header-backdrop {
  filter: blur(0.5rem);
  object-fit: cover;
  opacity: 0.95;
  pointer-events: none;
  transform-origin: top;
  width: 15.04rem;
  max-width: none;
  height: 7.9rem;
  display: block;
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%) scale(1.08);
}

.mb-header-wrapper.home-glass-header::before {
  content: "";
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  inset: 0;
  transition: opacity 0.2s;
}

.mb-header-wrapper.home-glass-header.is-scrolled::before {
  opacity: var(--home-header-scroll-glass-opacity, 1);
}

.mb-header-wrapper.home-glass-header > .header,
.mb-header-wrapper.home-glass-header > .nav {
  z-index: 2;
  position: relative;
}

.mb-header-wrapper.home-glass-header > .header {
  background: transparent;
}

.header {
  justify-content: space-between;
  align-items: center;
  height: 0.9rem;
  padding: 0 0.32rem;
  display: flex;
}

.header .left,
.header .center,
.header .right {
  display: flex;
  align-items: center;
}

.header .left {
  flex: 1;
  justify-content: flex-start;
}

.header .center {
  flex: 1;
  justify-content: center;
}

.header .right {
  flex: 1;
  justify-content: flex-end;
  gap: 0.32rem;
}

.header .left img,
.header .right img {
  width: 0.48rem;
  height: 0.48rem;
  object-fit: contain;
}

.header .center .logo {
  width: 0.48rem;
  height: 0.48rem;
  object-fit: contain;
}

.header .center .brand {
  align-items: center;
  gap: 0.12rem;
  display: inline-flex;
  text-decoration: none;
}

.header .center .brand-name {
  color: #fff;
  font-size: 0.36rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.header .avatar {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  align-items: center;
  height: 0.9rem;
  padding: 0 0.32rem 0.1rem;
  display: flex;
}

.nav .link_item {
  color: #fff;
  opacity: 0.5;
  white-space: nowrap;
  margin-right: 0.52rem;
  font-size: 0.28rem;
  font-weight: 500;
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.nav .link_item.active {
  opacity: 1;
}

.nav .link_item.active::after {
  content: "";
  background: var(--pink);
  width: 0.52rem;
  height: 0.04rem;
  position: absolute;
  bottom: -0.1rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Main offset under fixed header */
.main-content {
  padding-top: 1.7rem;
}

/* Carousel */
.carousel {
  isolation: isolate;
  width: 100%;
  max-width: 7.5rem;
  height: 3.7rem;
  margin: 0.18rem auto 0;
  position: relative;
  overflow: visible;
}

.banner-atmosphere {
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  width: 14.04rem;
  height: 6.9rem;
  position: absolute;
  top: -1.88rem;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(#000, #000 66%, rgba(0, 0, 0, 0.74) 82%, transparent);
  mask-image: linear-gradient(#000, #000 66%, rgba(0, 0, 0, 0.74) 82%, transparent);
}

.banner-atmosphere-img {
  filter: blur(0.5rem);
  object-fit: cover;
  transform-origin: top;
  width: calc(100% + 1rem);
  height: calc(100% + 1rem);
  display: block;
  position: absolute;
  inset: -0.5rem;
  transform: scale(1.08);
}

.banner-atmosphere-glass {
  background: linear-gradient(
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.18) 52%,
      rgba(0, 0, 0, 0.86) 84%,
      #000
    ),
    rgba(0, 0, 0, 0.08);
  position: absolute;
  inset: 0;
}

.carousel-slides {
  z-index: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  width: calc(100% - 0.96rem);
  height: 100%;
  transition: opacity 0.35s, transform 0.35s;
  position: absolute;
  top: 0;
  left: 0.48rem;
  transform: translateZ(0) scale(0.985);
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: translateZ(0) scale(1);
}

.carousel-slide.prev {
  opacity: 1;
  z-index: 2;
  transform: translateX(calc(-100% - 0.01rem)) scale(0.95);
}

.carousel-slide.next {
  opacity: 1;
  z-index: 2;
  transform: translateX(calc(100% + 0.01rem)) scale(0.95);
}

.slide-inner {
  background: #121212;
  border-radius: 0.16rem;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(#000, #000 calc(100% - 1.48rem), transparent);
  mask-image: linear-gradient(#000, #000 calc(100% - 1.48rem), transparent);
}

.msg-wrap {
  pointer-events: none;
  z-index: 222;
  align-items: center;
  width: 100%;
  padding: 0.16rem 0.24rem 0.08rem;
  display: flex;
  position: absolute;
  bottom: 0.16rem;
  left: 0;
}

.msg-title {
  color: #fff;
  text-align: left;
  text-shadow: 0 0 0.2rem #000;
  text-transform: capitalize;
  word-break: break-word;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  font-size: 0.36rem;
  font-weight: 600;
  line-height: normal;
  display: -webkit-box;
  overflow: hidden;
}

.pagination {
  z-index: 223;
  align-items: center;
  gap: 0.12rem;
  display: flex;
  position: absolute;
  bottom: 0.16rem;
  right: 0.64rem;
}

.pagination-dot {
  appearance: none;
  box-shadow: none;
  background: rgba(217, 217, 217, 0.5);
  border: 0;
  border-radius: 1.8rem;
  flex: none;
  width: 0.08rem;
  height: 0.08rem;
  padding: 0;
  transition: width 0.3s, background-color 0.3s;
  display: block;
}

.pagination-dot.active {
  background: #fff;
  width: 0.32rem;
}

/* Drama floors */
.home-floor-block {
  content-visibility: auto;
}

.drama {
  margin-top: 0.4rem;
  padding-left: 0.32rem;
}

.category {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.36rem;
  display: flex;
  padding-right: 0.32rem;
}

.category .title {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.32rem;
  font-weight: 700;
  overflow: hidden;
}

.category .more {
  color: #9e9e9e;
  flex-shrink: 0;
  height: 0.3rem;
  font-size: 0.28rem;
  font-weight: 500;
  line-height: 0.3rem;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.category .more::after {
  content: "";
  width: 0.12rem;
  height: 0.19rem;
  margin-left: 0.06rem;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 19'%3E%3Cpath fill='%23000' d='M2 1l8 8.5L2 18' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 19'%3E%3Cpath fill='%23000' d='M2 1l8 8.5L2 18' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.drama_list {
  scrollbar-width: none;
  width: 100%;
  display: flex;
  overflow-x: auto;
  padding-right: 0.32rem;
}

.drama_list::-webkit-scrollbar {
  display: none;
}

.drama_list .item {
  flex-shrink: 0;
  width: 2.18rem;
  margin-right: 0.16rem;
}

.drama-cover-box {
  aspect-ratio: 170 / 235;
  background: #1f1f1f;
  border-radius: 0.08rem;
  position: relative;
  overflow: hidden;
}

.drama-cover-box .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-title {
  color: #fff;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
  -webkit-box-orient: vertical;
  height: 0.8rem;
  margin-top: 0.16rem;
  font-size: 0.28rem;
  font-weight: 500;
  line-height: 0.38rem;
  display: -webkit-box;
  overflow: hidden;
}

/* SEO */
.seo-block {
  padding: 0.48rem 0.32rem 0.24rem;
  color: #9e9e9e;
  font-size: 0.24rem;
  line-height: 0.36rem;
}

.seo-block p + p {
  margin-top: 0.2rem;
}

/* Footer */
.mb-footer-copyright {
  margin-top: 0.24rem;
}

.mb-footer-download-box {
  flex-direction: column;
  align-items: center;
  gap: 0.24rem;
  width: 100%;
  padding-top: 0.32rem;
  padding-bottom: 0.48rem;
  display: flex;
}

.mb-footer-download-tip {
  color: #fff;
  text-align: center;
  width: 6.16rem;
  font-size: 0.28rem;
  font-weight: 400;
  line-height: 0.36rem;
}

.mb-footer-download-tip.bottom-margin {
  margin-bottom: 0.28rem;
}

.mb-footer-download-btn {
  color: #fff;
  text-align: center;
  background: linear-gradient(141.5deg, #fb3867 41.63%, #fe1eab 72.99%);
  border-radius: 1.2rem;
  width: 4.44rem;
  height: 0.8rem;
  font-size: 0.32rem;
  font-weight: 500;
  line-height: 0.8rem;
  position: relative;
  display: block;
}

.mb-footer-li {
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.4rem 0.32rem;
  display: flex;
}

.mb-footer-caption {
  color: #fff;
  font-size: 0.32rem;
  font-weight: 500;
  line-height: 1;
}

.mb-footer-collapse-icon {
  width: 0.4rem;
  height: 0.4rem;
  margin-left: auto;
  position: relative;
}

.mb-footer-collapse-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.18rem;
  height: 0.18rem;
  border-right: 0.03rem solid #999;
  border-bottom: 0.03rem solid #999;
  transform: translate(-50%, -65%) rotate(45deg);
}

.mb-footer-copyright-text {
  box-sizing: border-box;
  color: #666;
  text-align: center;
  width: 100%;
  margin-top: 0.24rem;
  margin-bottom: 0.24rem;
  padding: 0 0.32rem 1.5rem;
  font-size: 0.24rem;
  font-weight: 400;
  line-height: 1;
}

/* Bottom fixed banner */
.mb-footer-app-banner {
  box-sizing: border-box;
  z-index: 9;
  background: linear-gradient(97deg, #581836, #291b29 50%, #11183f);
  width: 100%;
  max-width: 7.5rem;
  margin: 0 auto;
  padding: 0.24rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.mb-footer-app-banner-content {
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.mb-footer-app-icon {
  border-radius: 0.08rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 0.64rem;
  height: 0.64rem;
  display: flex;
  overflow: hidden;
  background: #000;
}

.mb-footer-icon-img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.mb-footer-app-text {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  margin-left: 0.16rem;
  margin-right: 0.14rem;
  display: flex;
}

.mb-footer-text-line1 {
  margin: 0;
  font-size: 0.26rem;
  font-weight: 400;
  line-height: 0.3rem;
  color: #fff;
}

.mb-footer-open-btn {
  color: #fff;
  text-align: center;
  background: linear-gradient(120deg, #fb3867 41.63%, #fe1eab 73%);
  border-radius: 0.64rem;
  flex-shrink: 0;
  min-width: 1.6rem;
  height: 0.64rem;
  padding: 0 0.2rem;
  font-size: 0.28rem;
  font-weight: 500;
  line-height: 0.64rem;
  display: inline-block;
}

/* Desktop: center phone-like frame for visual fidelity */
@media (min-width: 760px) {
  body {
    background: #0a0a0a;
  }

  .mbPage {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.55);
    min-height: 100vh;
  }

  .mb-header-wrapper,
  .mb-footer-app-banner {
    left: 50%;
    transform: translateX(-50%);
  }
}
