html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

button, a { -webkit-tap-highlight-color: transparent; }

img { -webkit-user-drag: none; user-select: none; }

[hidden] { display: none !important; }

.ico { display: block; width: 100%; height: 100%; }
.ico svg { width: 100%; height: 100%; display: block; }

/* ---------- desktop ---------- */
.desk-root {
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  background: #000;
}

.desk {
  --d: 1.2;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  user-select: none;
}

.bg { position: absolute; inset: 0; z-index: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.logo-area {
  position: absolute;
  left: calc(41px * var(--d));
  top: calc(39px * var(--d));
  width: calc(300px * var(--d));
  height: calc(82px * var(--d));
  z-index: 3;
}

.app-icon {
  position: absolute;
  left: 0;
  top: calc(4px * var(--d));
  width: calc(78px * var(--d));
  height: calc(78px * var(--d));
  border-radius: calc(16px * var(--d));
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.logo-text { position: absolute; left: calc(90px * var(--d)); top: 0; color: #fff; }
.logo-text .brand {
  margin: 0;
  font-weight: 300;
  font-size: calc(38.07px * var(--d));
  line-height: 1.4;
  letter-spacing: calc(3.807px * var(--d));
  white-space: nowrap;
}
.logo-text .domain {
  position: absolute;
  left: calc(2.24px * var(--d));
  top: calc(42.97px * var(--d));
  margin: 0;
  font-weight: 300;
  font-size: calc(26.509px * var(--d));
  line-height: 1.4;
  letter-spacing: calc(2.6509px * var(--d));
  white-space: nowrap;
}

.topTitle {
  position: absolute;
  top: calc(45px * var(--d));
  right: calc(54px * var(--d));
  z-index: 3;
}
.topTitle .right { display: flex; align-items: flex-start; gap: calc(24.72px * var(--d)); }
.topTitle .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(47.461px * var(--d));
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.topTitle .item:active { transform: scale(0.94); opacity: 0.85; }
.topTitle .item .ico { width: calc(47.461px * var(--d)); height: calc(47.461px * var(--d)); }
.topTitle .item span:last-child {
  margin-top: calc(3.54px * var(--d));
  font-size: calc(20px * var(--d));
  line-height: calc(24px * var(--d));
  white-space: nowrap;
}

.qr-area {
  position: absolute;
  left: calc(131px * var(--d));
  top: calc(720px * var(--d));
  width: calc(424px * var(--d));
  height: calc(112.024px * var(--d));
  z-index: 3;
  display: flex;
  align-items: stretch;
  gap: calc(8.31px * var(--d));
}
.qr-box {
  display: flex;
  align-items: center;
  gap: calc(5.21px * var(--d));
  width: calc(134.328px * var(--d));
  height: calc(112.024px * var(--d));
  padding: calc(3.908px * var(--d));
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: calc(0.651px * var(--d)) solid #a35ff7;
  border-radius: calc(3.908px * var(--d));
  flex-shrink: 0;
}
.qr-pad {
  width: calc(104.209px * var(--d));
  height: calc(104.209px * var(--d));
  padding: calc(4.737px * var(--d));
  box-sizing: border-box;
  background: #fff;
  border-radius: calc(4.737px * var(--d));
  flex-shrink: 0;
}
.qr-pad svg { width: 100%; height: 100%; display: block; }
.qr-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(17.093px * var(--d));
  flex-shrink: 0;
}
.qr-scan .ico { width: calc(17.093px * var(--d)); height: calc(17.093px * var(--d)); }
.qr-scan p {
  margin: calc(5.33px * var(--d)) 0 0;
  color: #fff;
  font-size: calc(11.723px * var(--d));
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}
.qr-info { position: relative; flex: 1; min-width: 0; padding-top: calc(2.55px * var(--d)); }
.qr-title {
  display: flex;
  align-items: center;
  gap: calc(11.072px * var(--d));
  width: calc(281.364px * var(--d));
  height: calc(24.098px * var(--d));
  padding: calc(3.257px * var(--d)) calc(9.118px * var(--d));
  box-sizing: border-box;
  border-radius: calc(5.21px * var(--d));
  background-image: linear-gradient(247.77deg, transparent 1.65%, #a662ff 98.87%), linear-gradient(90deg, #eb56fc, rgba(51, 8, 5, 0));
  font-size: calc(14.329px * var(--d));
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.qr-desc {
  margin: calc(6.57px * var(--d)) 0 0 calc(2.6px * var(--d));
  width: calc(259.219px * var(--d));
  font-size: calc(10.421px * var(--d));
  line-height: 1.77;
}
.qr-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(9.77px * var(--d)) 0 0 calc(2.6px * var(--d));
  width: calc(246.193px * var(--d));
  height: calc(18.938px * var(--d));
  padding: 0 calc(5.739px * var(--d));
  box-sizing: border-box;
  border: calc(0.287px * var(--d)) solid #dedede;
  border-radius: calc(2.296px * var(--d));
  font-size: calc(8.034px * var(--d));
  line-height: 1.77;
  white-space: nowrap;
}

/* ---------- mobile ---------- */
.page {
  --header-h: 1.34rem;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(179.36deg, #0c0c0d 10.63%, #0c062f 168.46%);
  color: #fff;
  user-select: none;
  cursor: pointer;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(2.0097560976rem + env(safe-area-inset-bottom, 0px));
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 0.3395rem 0 0.2601rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #200203;
}
.brand { display: flex; align-items: center; flex: 1; min-width: 0; gap: 0.1073rem; }
.logo { width: 0.761rem; height: 0.761rem; flex-shrink: 0; border-radius: 0.16rem; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-text p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.328rem;
  line-height: 0.41rem;
  letter-spacing: 0.033rem;
}
.brand-name { font-weight: 600; }
.brand-sub { font-weight: 400; }
.entries { display: flex; align-items: flex-start; gap: 0.28rem; flex-shrink: 0; margin-left: 0.156rem; }
.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04rem;
  width: 0.48rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.entry .ico { width: 0.48rem; height: 0.48rem; }
.entry span:last-child { font-size: 0.2rem; line-height: 1.2; letter-spacing: 0.016rem; white-space: nowrap; }

.banner { position: relative; flex-shrink: 0; width: 100%; height: 3.4362rem; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.banner:after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0.7415rem;
  pointer-events: none;
  background: linear-gradient(86.73deg, transparent 17.1%, #000 90.08%);
}

.panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 6.9073rem;
  margin: 0.1737rem auto 0;
  padding: 0.1405rem 0.1229rem 0.2341rem;
  box-sizing: border-box;
  background: #040425;
  border: 0.02rem solid #230c6f;
  border-radius: 0.42rem;
}
.tabs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 0.679rem;
  padding: 0 0.0583rem;
  box-sizing: border-box;
  border: 0.0194rem solid #2d78f7;
  border-radius: 19.4rem;
  background: linear-gradient(90deg, #6d45f1, #1a6cf1);
}
.tab {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.233rem;
  font-weight: 500;
  cursor: pointer;
}
.tab span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.9708rem;
  height: 0.5631rem;
  border-radius: 18rem;
  letter-spacing: 0.0466rem;
  pointer-events: none;
}
.tab.active span { background: #fff; color: #1c6bf0; }

.list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.list::-webkit-scrollbar { width: 0; height: 0; }

.grid { display: grid; }
.card { min-width: 0; }
.card img { width: 100%; object-fit: cover; display: block; }
.card p {
  margin: 0;
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2331rem 0.0971rem;
  padding-top: 0.1639rem;
}
.drama-grid img { height: 3.1862rem; border-radius: 0.1554rem; }
.drama-grid p { margin-top: 0.1943rem; font-size: 0.2331rem; line-height: 0.3497rem; }
.pick-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.1756rem 0.1327rem;
  padding: 0.2341rem 0.1854rem 0;
}
.pick-grid img { height: 1.7547rem; border-radius: 0.1561rem; }
.pick-grid p { margin-top: 0.1828rem; font-size: 0.1828rem; line-height: 0.3082rem; }

.cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: block;
  width: 100%;
  height: calc(2.0098rem + env(safe-area-inset-bottom, 0px));
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  border: 0;
  background: #0c062f;
  cursor: pointer;
}
.cta img { width: 100%; height: 2.0098rem; object-fit: cover; display: block; pointer-events: none; }

.android-tip {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.tip-card {
  position: relative;
  width: 5.94rem;
  height: 8.82rem;
  border-radius: 0.24rem;
  overflow: hidden;
}
.tip-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.confirm-hit {
  position: absolute;
  left: 50%;
  top: 7.6rem;
  transform: translateX(-50%);
  width: 2.8rem;
  height: 0.72rem;
  border-radius: 0.8rem;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.service-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.service-card {
  width: 320px;
  padding: 28px 24px 20px;
  border-radius: 16px;
  background: #141428;
  border: 1px solid #3a2a78;
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.service-title { margin: 0; font-size: 20px; font-weight: 600; }
.service-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.service-go, .service-close {
  display: block;
  width: 100%;
  margin-top: 16px;
  height: 40px;
  border-radius: 20px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
}
.service-go {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #fb6c14, #ff2baa);
  color: #fff;
  text-decoration: none;
}
.service-close { background: transparent; color: rgba(255, 255, 255, 0.7); }
