:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  background: #d9dee6;
  color: #141414;
  --teal: #54c7c3;
  --teal-strong: #1ca8a4;
  --gold: #f4d778;
  --gold-dark: #7d5b12;
  --ink: #111318;
  --muted: #8d93a0;
  --line: #eceef3;
  --purchase: #f15b3d;
  --purchase-2: #ffb25f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: #d9dee6;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.phone {
  width: min(100vw, 430px);
  max-width: 430px;
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
  box-shadow: 0 26px 80px rgba(16, 19, 27, 0.18);
}

.home-page {
  min-height: 100vh;
  background: #f7f8fa;
  padding-bottom: 36px;
}

.with-tabbar {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100vw, 430px);
  max-width: 430px;
  transform: translateX(-50%);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid #eceef3;
  background: rgba(255, 255, 255, 0.96);
}

.bottom-tab {
  height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #7d8490;
  cursor: pointer;
}

.bottom-tab span {
  font-size: 20px;
  line-height: 1;
}

.bottom-tab b {
  font-size: 12px;
  line-height: 1;
}

.bottom-tab.active {
  color: var(--purchase);
}

.follow-page,
.mine-page {
  min-height: 100vh;
  background: #f7f8fa;
}

.simple-head {
  padding: 24px 18px 0;
}

.simple-head h1 {
  margin: 0;
  color: #151820;
  font-size: 28px;
  line-height: 1.15;
}

.simple-head p {
  margin: 6px 0 0;
  color: #7d8490;
  font-size: 14px;
}

.follow-continue button {
  min-width: 104px;
  white-space: nowrap;
}

.watch-list {
  display: grid;
  gap: 10px;
}

.watch-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
}

.watch-cover {
  width: 58px;
  height: 75px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #dce5ec, #a9b9c8);
}

.watch-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-copy {
  min-width: 0;
}

.watch-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #151820;
  font-size: 15px;
}

.watch-copy span {
  display: block;
  margin-top: 5px;
  color: #7d8490;
  font-size: 12px;
  line-height: 1.4;
}

.watch-item button {
  border: 0;
  border-radius: 16px;
  padding: 7px 12px;
  background: #fff3ef;
  color: var(--purchase);
  font-weight: 850;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 18px 0;
  padding: 14px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: #fff;
}

.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff3ef;
  color: var(--purchase);
  font-size: 19px;
  font-weight: 900;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  color: #151820;
  font-size: 16px;
}

.profile-card span {
  margin-top: 4px;
  color: #8d93a0;
  font-size: 12px;
}

.menu-list {
  overflow: hidden;
  margin: 18px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
}

.menu-block {
  border-bottom: 1px solid #edf0f4;
}

.menu-block:last-child {
  border-bottom: 0;
}

.menu-list button {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: block;
  border: 0;
  padding: 12px 34px 12px 14px;
  background: #fff;
  text-align: left;
}

.menu-list button::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b6bdc8;
  font-size: 26px;
}

.menu-list strong,
.menu-list span {
  display: block;
}

.menu-list strong {
  color: #151820;
  font-size: 15px;
}

.menu-list span {
  margin-top: 5px;
  color: #7d8490;
  font-size: 12px;
}

.inline-panel {
  padding: 0 14px 14px;
}

.order-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.order-item strong,
.order-item span,
.order-item small {
  display: block;
}

.order-item strong {
  color: #151820;
  font-size: 15px;
}

.order-item span,
.order-item small {
  margin-top: 4px;
  color: #7d8490;
  font-size: 12px;
}

.order-item b {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f3f6;
  color: #7d8490;
  font-size: 12px;
}

.order-item b.paid {
  background: #eaf8ef;
  color: #1a9b56;
}

.feedback-panel textarea {
  width: 100%;
  min-height: 120px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  background: #f7f8fa;
  color: #151820;
  font: inherit;
  resize: vertical;
}

.feedback-history {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 12px;
}

.feedback-record {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fafbfc;
}

.feedback-record div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.feedback-record strong {
  color: #a15c00;
  font-size: 12px;
}

.feedback-record small {
  color: #98a2b3;
  font-size: 11px;
}

.feedback-record p {
  margin: 0;
  color: #151820;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-record section {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: #eaf8ef;
  color: #1a7f43;
}

.feedback-record section b,
.feedback-record section span {
  display: block;
  font-size: 12px;
}

.home-hero {
  padding: 22px 18px 18px;
  color: #151820;
  background: white;
  border-bottom: 1px solid #edf0f4;
}

.home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-top span {
  color: var(--purchase);
  font-size: 13px;
  font-weight: 800;
}

.home-top h1 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.home-top button {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 18px;
  background: #f5f6f8;
  color: #626a76;
  font-size: 18px;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-top: 18px;
  padding: 0 14px;
  border-radius: 22px;
  background: #f7f8fa;
  border: 1px solid #edf0f4;
  color: #7d8490;
}

.search-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #151820;
  background: transparent;
}

.home-search input::placeholder {
  color: #a1a8b2;
}

.home-tabs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-tabs::-webkit-scrollbar {
  display: none;
}

.home-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 18px;
  padding: 8px 16px;
  background: #f1f3f6;
  color: #626a76;
  font-weight: 850;
  cursor: pointer;
}

.home-tabs .active {
  background: #fff3ef;
  color: var(--purchase);
}

.continue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 18px 0;
  padding: 14px;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: white;
}

.continue-card span,
.continue-card strong {
  display: block;
}

.continue-card > div {
  min-width: 0;
}

.continue-card span {
  color: var(--muted);
  font-size: 13px;
}

.continue-card strong {
  margin-top: 3px;
  font-size: 16px;
}

.continue-card button {
  min-width: 74px;
  height: 34px;
  border: 0;
  border-radius: 18px;
  background: var(--teal);
  color: white;
  font-weight: 850;
}

.continue-card.follow-continue button {
  min-width: 104px;
  white-space: nowrap;
}

.home-section {
  padding: 20px 18px 0;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-section-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
}

.home-section-head span,
.home-section-head button {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.home-section-head button {
  flex: 0 0 66px;
  width: 66px;
  max-width: 66px;
  min-width: 64px;
  border: 0;
  border-radius: 14px;
  padding: 7px 10px;
  background: #f5f6f8;
  box-sizing: border-box;
  white-space: nowrap;
}

.drama-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.drama-card {
  overflow: hidden;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 26px rgba(16, 19, 27, 0.06);
}

.drama-cover {
  position: relative;
  min-height: 176px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: white;
  background:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #a9bdcc, #5d7286);
}

.drama-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.62));
}

.drama-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drama-card:nth-child(2n) .drama-cover {
  background:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #d5b880, #71543e);
}

.drama-cover span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 800;
}

.drama-info {
  padding: 10px;
}

.drama-info strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.drama-info span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid #edf0f4;
}

.rank-index {
  color: var(--teal-strong);
  font-size: 18px;
  font-weight: 950;
}

.rank-item strong {
  display: block;
  font-size: 15px;
}

.rank-item span {
  color: var(--muted);
  font-size: 12px;
}

.rank-item button {
  border: 0;
  border-radius: 16px;
  padding: 7px 12px;
  background: #edf8f7;
  color: var(--teal-strong);
  font-weight: 850;
}

.player {
  position: relative;
  background: #050609;
  color: white;
  overflow: hidden;
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at 50% 28%, #746c5f 0 14%, transparent 15%),
    linear-gradient(135deg, #1e2938, #0b0d12 56%, #382b21);
}

.player video:not([src]) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 28% 32%, rgba(244, 215, 120, 0.18), transparent 26%),
    linear-gradient(135deg, #2a241f, #11151b 58%, #0c0d10);
}

.player::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 38%, rgba(0, 0, 0, 0.46));
}

.player-top {
  position: absolute;
  inset: 12px 14px auto;
  z-index: 3;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
}

.back {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 38px;
  line-height: 1;
}

.player-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

.player-icons span {
  min-width: 28px;
  text-align: center;
}

.paywall {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
  gap: 5px 10px;
  background: rgba(8, 9, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  backdrop-filter: blur(8px);
}

.paywall strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
}

.paywall span {
  grid-column: 1;
  grid-row: 2;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.paywall button {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 86px;
  height: 34px;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  border: 0;
  border-radius: 18px;
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 13px 18px;
  color: #f3dd99;
  background:
    linear-gradient(135deg, rgba(244, 215, 120, 0.12), rgba(84, 199, 195, 0.08)),
    #15171d;
  border-top: 1px solid rgba(244, 215, 120, 0.12);
}

.player-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 13px 12px;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.diagnostic-pay {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border: 1px solid #d6dbe4;
  border-radius: 22px;
  background: #fff;
  color: #626a76;
  font-size: 14px;
  font-weight: 800;
}

.player-actions button {
  min-width: 0;
  height: 34px;
  border: 1px solid #d5dbe5;
  border-radius: 18px;
  background: #fff;
  color: #626a76;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.vip-banner strong,
.vip-banner span {
  display: block;
}

.vip-banner strong {
  font-size: 15px;
}

.vip-banner span {
  margin-top: 4px;
  color: rgba(246, 231, 178, 0.72);
  font-size: 13px;
}

.vip-banner button {
  flex: 0 0 auto;
  height: 34px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  background: #f3dd99;
  color: #4f3600;
  font-weight: 850;
}

.detail {
  padding: 18px 18px 10px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title-row h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
  max-width: 310px;
}

.title-row button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.intro-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fa;
  color: #454b57;
  font-size: 14px;
  line-height: 1.6;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-pills span {
  border-radius: 999px;
  background: #f5f6f8;
  color: #303642;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 750;
}

.updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.episode-section {
  padding: 10px 18px 0;
}

.episode-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.episode-head h3 {
  margin: 0;
  font-size: 22px;
}

.episode-head span {
  color: var(--muted);
  font-size: 14px;
}

.season-tabs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.season-tabs::-webkit-scrollbar {
  display: none;
}

.season-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 18px;
  background: #f5f6f8;
  color: #8a909b;
  padding: 9px 17px;
  font-weight: 800;
}

.season-tabs .active {
  background: #e8fbfa;
  color: var(--teal-strong);
}

.episodes {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0 16px;
  scrollbar-width: none;
}

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

.episode {
  position: relative;
  flex: 0 0 64px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #f6f7f9;
  color: #111318;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.episode.vip::after {
  content: "VIP";
  position: absolute;
  top: 0;
  right: 0;
  min-width: 28px;
  background: var(--gold);
  color: #62460b;
  font-size: 11px;
  font-weight: 850;
  padding: 2px 5px;
  border-bottom-left-radius: 5px;
}

.episode.current {
  border-color: #b7eeeb;
  background: #e8fbfa;
  color: var(--teal-strong);
}

.recommend {
  padding: 16px 18px 34px;
}

.player-recommend {
  padding-top: 20px;
}

.ad-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f5f7;
}

.ad-media {
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.24)),
    linear-gradient(135deg, #796448, #242928 58%, #0f1418);
  font-size: 13px;
}

.ad-media img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  margin: -10px;
}

.ad-copy {
  padding: 16px 14px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.ad-copy strong {
  font-size: 17px;
  line-height: 1.25;
}

.ad-copy span {
  color: #5d6470;
  font-size: 13px;
  line-height: 1.35;
}

.ad-copy button {
  width: fit-content;
  border: 0;
  border-radius: 18px;
  background: var(--teal);
  color: white;
  padding: 8px 14px;
  font-weight: 850;
}

.payment-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(11, 15, 22, 0.46);
}

.payment-panel {
  width: min(100vw, 430px);
  border-radius: 22px 22px 0 0;
  background: #fff;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 54px rgba(9, 12, 18, 0.2);
}

.sheet-grip {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d8dde6;
  margin: 0 auto 16px;
}

.payment-head,
.payment-summary div,
.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-head span,
.payment-summary span,
.payment-method span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.payment-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.payment-head button {
  width: 38px;
  height: 38px;
  border: 1px solid #e4e8ef;
  border-radius: 20px;
  background: #fff;
  color: #303642;
  font-size: 24px;
  line-height: 1;
}

.payment-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #edf0f4;
}

.payment-method {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #d7eeeb;
  background: #f2fbfa;
}

.confirm-pay {
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 25px;
  background: var(--teal);
  color: white;
  font-size: 17px;
  font-weight: 950;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
  color: white;
  padding: 10px 14px;
  border-radius: 20px;
  z-index: 30;
}

.hidden {
  display: none !important;
}

@media (max-width: 390px) {
  .title-row h2 {
    font-size: 23px;
  }

  .vip-banner {
    padding-inline: 14px;
  }

  .vip-banner button {
    padding: 0 12px;
  }
}
