.feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.82) saturate(1.04);
}

.detail-media {
  height: 58vh;
  position: relative;
  background: #050505;
}

.detail-video,
.detail-media .detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(transparent, #030303);
}

.feed-shell {
  height: calc(100dvh - 64px - env(safe-area-inset-bottom));
  position: relative;
  background: #030303;
}

.feed-scroll {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.feed-scroll::-webkit-scrollbar { display: none; }

.feed-item {
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.feed-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#000a 0, transparent 20%, transparent 48%, #0003 62%, #000 96%);
}

.feed-shell .feed-top {
  position: absolute;
  z-index: 20;
  top: 0;
  min-height: 68px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: linear-gradient(#000b, transparent);
}

.feed-top button.active {
  color: #fff;
  position: relative;
}

.feed-top button.active::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  left: 30%;
  right: 30%;
  bottom: -7px;
}

.feed-item .feed-copy,
.feed-item .feed-actions,
.feed-item .progress { z-index: 3; }
.feed-item.feed-expanded { min-height: calc(100dvh - 68px); padding-bottom: 228px; }
.feed-episode-drawer { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; min-height: 218px; padding: 10px 18px 20px; border-radius: 22px 22px 0 0; background: #090a0b; box-shadow: 0 -12px 34px #000b; }
.feed-episode-drawer .handle { margin-bottom: 12px; }
.feed-episode-drawer .series-row { margin-bottom: 12px; }
.feed-episode-drawer h2 { margin: 0 0 4px; font-size: 16px; }
.feed-episode-drawer p { margin: 0; color: #858585; font-size: 12px; }
.feed-episode-drawer > h3 { margin: 0 0 9px; font-size: 15px; }

/* Bottom navigation icons */
.nav { height: 68px; padding: 4px 5px max(4px, env(safe-area-inset-bottom)); }
.nav button { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 3px 0 2px; font-size: 11px; line-height: 1; transition: color 160ms ease, transform 160ms ease; }
.nav button:active { transform: scale(.94); }
.nav i { width: 27px; height: 27px; display: grid; place-items: center; font-size: 0; }
.nav i svg { width: 23px; height: 23px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.nav i svg .icon-fill { fill: currentColor; stroke: none; }
.nav button.active i svg { stroke-width: 2.15; filter: drop-shadow(0 0 7px #64ddb477); }
.nav button span { min-height: 12px; white-space: nowrap; }
.nav .create { transform: translateY(-6px); }
.nav .create:active { transform: translateY(-6px) scale(.94); }
.nav .create i { width: 50px; height: 38px; border-radius: 12px; background: var(--mint); color: #06130f; box-shadow: 0 7px 18px #0009, 0 0 0 1px #95f1d044 inset; }
.nav .create i svg { width: 25px; height: 25px; stroke-width: 2.25; }

.feed-item .feed-copy { left: 18px; right: 76px; bottom: 18px; }

.creator-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 5px #000;
}
.creator-name b { width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--mint); color: #07130f; font-size: 9px; text-shadow: none; }
.feed-description { margin-top: 7px !important; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px !important; line-height: 1.4; color: #e4e4e4 !important; text-shadow: 0 1px 4px #000; }
.feed-copy .caption { margin-top: 5px !important; color: #c8c8c8; font-size: 12px; line-height: 1.4; }

.collection {
  display: grid;
  grid-template-columns: 31px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  width: calc(100% + 58px);
  min-height: 52px;
  margin-top: 13px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: #1d1d1fe8;
  box-shadow: 0 5px 18px #0006;
  backdrop-filter: blur(14px);
  text-align: left;
  font-size: 13px;
}
.collection-icon { position: relative; width: 29px; height: 27px; display: block; }
.collection-icon i { position: absolute; left: 3px; width: 22px; height: 12px; border: 2px solid var(--mint); border-radius: 3px; transform: rotate(29deg) skewX(-2deg); }
.collection-icon i:nth-child(1) { top: 1px; }
.collection-icon i:nth-child(2) { top: 7px; }
.collection-icon i:nth-child(3) { top: 13px; }
.collection strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f1f1f1; font-size: 13px; font-weight: 650; }
.collection > b { color: #d7d7d7; font-size: 21px; font-weight: 400; }
.feed-item .feed-actions { right: 11px; bottom: 84px; gap: 12px; }
.feed-actions .round { width: 42px; height: 42px; border: 1px solid #ffffff12; background: #111313b8; box-shadow: 0 3px 11px #0006; backdrop-filter: blur(8px); }
.feed-actions small { margin-top: 2px; color: #eee; font-size: 10px; text-shadow: 0 1px 4px #000; }
.feed-item .progress { left: 0; right: 0; bottom: 2px; height: 22px; background: transparent; cursor: pointer; touch-action: none; }
.feed-item .progress::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: #ffffff26; }
.feed-item .progress i { position: absolute; z-index: 1; left: 0; top: 10px; width: 0; height: 2px; background: var(--mint); box-shadow: 0 0 6px #64ddb499; }
.feed-item .progress i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); opacity: 0; transform: scale(.7); transition: opacity 120ms ease, transform 120ms ease; }
.feed-item .progress:hover i::after, .feed-item .progress:focus-visible i::after, .feed-item .progress.dragging i::after { opacity: 1; transform: scale(1); }

.caption { margin-top: 8px !important; }
.creator-stack { position: relative; }
.creator-avatar { border: 2px solid #fff; }
.follow-dot {
  position: absolute;
  right: 0;
  bottom: 13px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ef4e68;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}
.feed-actions .liked { color: #ff5570; }
.follow-dot.followed { background: var(--mint); color: #07110d; }
.following-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
  color: #777;
}
.following-empty b { color: #eee; font-size: 18px; }
.following-empty button { margin: 10px auto; background: var(--mint); color: #08120e; padding: 10px 18px; border-radius: 22px; font-weight: 800; }
.profile-head .avatar { border: 0; color: #fff; }
.profile-uid { padding: 0; color: #777; font-size: 12px; text-align: left; }
.profile-bio { margin-top: 7px !important; }
.social button,.social span { color: inherit; font-size: inherit; padding: 0; }
.social button { text-align: left; }
.bonus-balance { padding: 0; text-align: left; }
.bonus-balance span { display: block; }
.avatar-large { width: 112px; height: 112px; margin: 22px auto; font-size: 52px; }
.profile-empty { height: 43vh; }
.profile-liked-grid { padding: 14px 0 30px; }
.comment-list p { background: #292a2b; padding: 12px; border-radius: 9px; color: #bbb; font-size: 13px; }
.comment-list b { color: #fff; }
.comment-box { display: flex; gap: 8px; margin-top: 16px; }
.comment-box input { flex: 1; min-width: 0; border: 1px solid #444; border-radius: 21px; background: #111; color: #fff; padding: 10px 14px; }
.comment-box button { color: var(--mint); font-weight: 800; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-grid button { display: grid; gap: 8px; place-items: center; background: #292a2b; border-radius: 12px; padding: 16px 8px; }
.share-grid b { font-size: 25px; }
.share-grid span { font-size: 12px; }

.watch-page {
  height: calc(100dvh - 64px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) 210px;
  overflow: hidden;
  background: #030303;
}

.watch-stage {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #000;
}

.watch-video-frame { position: absolute; inset: 0; }

.watch-player-head {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  right: 0;
  min-height: calc(64px + env(safe-area-inset-top));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: max(12px,calc(env(safe-area-inset-top) + 8px)) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));
  background: linear-gradient(#000b,transparent);
  pointer-events: none;
}
.watch-player-head button { pointer-events: auto; }

/* Some Android/desktop-installed PWAs report a zero top safe-area while the
   system status bar still overlays the web view. Keep player controls below it. */
@media (display-mode: standalone) and (max-width:899px) {
  .watch-player-head {
    min-height: max(104px, calc(64px + env(safe-area-inset-top)));
    padding-top: max(54px, calc(env(safe-area-inset-top) + 12px));
  }
}

.watch-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.watch-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0009, transparent 18%, transparent 75%, #000b);
}

.watch-back,
.watch-menu {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  color: #fff;
  background: #101312b8;
  box-shadow: 0 8px 24px #0008,0 1px 0 #ffffff16 inset;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  transition: transform .16s ease,background .16s ease,border-color .16s ease;
}
.watch-back { left: auto; }
.watch-menu { right: auto; }
.watch-back svg,.watch-menu svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.watch-menu svg { width: 23px; height: 23px; }
.watch-back:hover,.watch-menu:hover,.watch-back:focus-visible,.watch-menu:focus-visible { border-color: #80e5bf80; background: #202725e6; }
.watch-back:active,.watch-menu:active { transform: scale(.92); }

@media (max-width:899px) and (orientation:portrait) {
  .watch-video-frame { inset: auto 0; top: 50%; width: 100%; aspect-ratio: 16 / 9; transform: translateY(-50%); }
  .watch-video-frame video { position: absolute; inset: 0; }
}

@media (max-width:899px) and (orientation:landscape) {
  .watch-player-head { min-height: 54px; padding-top: max(8px,env(safe-area-inset-top)); }
  .watch-back,.watch-menu { width: 42px; height: 42px; }
}

@media (display-mode: standalone) and (max-width:899px) and (orientation:landscape) {
  .watch-player-head {
    min-height: max(76px, calc(54px + env(safe-area-inset-top)));
    padding-top: max(28px, calc(env(safe-area-inset-top) + 8px));
  }
}

@media (max-width:374px) {
  .watch-player-head { padding-inline: 10px; }
  .watch-back,.watch-menu { width: 42px; height: 42px; }
}

.watch-actions {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 25px;
  display: grid;
  gap: 14px;
}

.watch-actions button {
  width: 43px;
  min-height: 43px;
  border-radius: 50%;
  background: #111b;
  font-size: 21px;
}
.watch-actions small { display: block; font-size: 9px; margin-top: 2px; }
.watch-actions .liked,.watch-actions .followed { color: var(--mint); }

.episode-drawer {
  position: relative;
  z-index: 5;
  min-height: 0;
  border-radius: 16px 16px 0 0;
  background: #080808;
  padding: 8px 16px 14px;
  border-top: 1px solid #252525;
}

.episode-drawer .handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #4a4b4c;
}

.series-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 11px;
  margin: 0 0 13px;
}
.mini-poster { width: 48px; height: 62px; border-radius: 6px; background: var(--poster) center/cover no-repeat; }
.series-row h2 { margin: 0 0 4px; font-size: 16px; }
.series-row p { margin: 0; color: #858585; font-size: 12px; }
.episode-drawer > h3 { margin: 0 0 9px; font-size: 15px; line-height: 18px; }
.watch-episodes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.watch-episodes::-webkit-scrollbar { display: none; }
.watch-episodes button { flex: 0 0 58px; height: 50px; border-radius: 8px; background: #202122; color: #aaa; position: relative; }
.watch-episodes button.active { border: 2px solid var(--mint); color: var(--mint); background: #17392e; }
.episode-number { position: absolute; top: 6px; right: 8px; font-size: 11px; line-height: 1; }
.episode-lock { display: block; position: relative; width: 13px; height: 11px; margin: 10px auto 0; border: 2px solid #8b8d8e; border-radius: 2px; }
.episode-lock::before { content: ""; position: absolute; left: 1px; top: -9px; width: 7px; height: 8px; border: 2px solid #8b8d8e; border-bottom: 0; border-radius: 7px 7px 0 0; }
.episode-lock::after { content: ""; position: absolute; left: 4px; top: 3px; width: 2px; height: 4px; border-radius: 2px; background: #8b8d8e; }
.playing-bars { position: absolute; left: 12px; bottom: 9px; display: flex; align-items: end; gap: 3px; height: 13px; }
.playing-bars i { display: block; width: 3px; height: 9px; border-radius: 2px; background: var(--mint); }
.playing-bars i:last-child { height: 13px; }

/* YesTV-style menu: constrained to the phone canvas and sliding in from its right edge. */
.drawer-layer {
  left: 50%;
  right: auto;
  width: min(430px, 100vw);
  height: 100dvh;
  transform: translateX(-50%);
  overflow: hidden;
  background: rgb(0 0 0 / 64%);
}

.drawer {
  width: min(320px, 74.5vw);
  height: 100dvh;
  padding: 14px 24px 24px;
  background: #1d1d1e;
  box-shadow: -10px 0 32px rgb(0 0 0 / 38%);
  animation: menu-slide-in 220ms cubic-bezier(.22,.8,.25,1) both;
}

@keyframes menu-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.menu-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-head h2 { margin: 0; font-size: 18px; }
.menu-head .close { width: 38px; height: 38px; background: #303031; font-size: 25px; font-weight: 300; }
.menu-label { margin: 13px 0 9px; color: #6f7071; font-size: 12px; }
.drawer .setting-row { min-height: 44px; padding: 9px 0; align-items: center; color: #e7e7e7; font-size: 16px; }
.drawer .setting-row span { display: flex; align-items: center; min-width: 0; }
.drawer .setting-row span > i { width: 25px; color: #a4a5a6; font-style: normal; font-size: 14px; }
.drawer .setting-row small { color: #777879; font-size: 13px; }
.notification-row { cursor: default; }
.menu-switch { width: 43px; height: 25px; padding: 2px; border-radius: 999px; background: #48494a; transition: background 160ms ease; }
.menu-switch > i { display: block; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0008; transition: transform 160ms ease; }
.menu-switch.on { background: var(--mint); }
.menu-switch.on > i { transform: translateX(18px); }
.language-trigger.open { color: #fff; }
.language-list { margin: -2px 0 5px; border-left: 1px solid #343536; }
.more-settings-links { margin: -2px 0 5px 12px; padding-left: 14px; border-left: 1px solid #343536; animation: continueRise .22s ease both; }
.more-settings-links .setting-row { min-height: 42px; padding: 7px 0; font-size: 14px; }
.legal-sheet { max-height: 88vh; }
.legal-document { color: #d8d8d8; font-size: 14px; line-height: 1.65; }
.legal-document h3 { margin: 18px 0 5px; color: #fff; font-size: 15px; }
.legal-document p { margin: 0; }
.legal-document .legal-updated { margin-bottom: 15px; color: #858585; font-size: 12px; }
.legal-confirm { position: sticky; bottom: 0; box-shadow: 0 -12px 22px #202122; }
.language-option { width: 100%; min-height: 38px; padding: 7px 4px 7px 18px; display: flex; align-items: center; justify-content: space-between; color: #a6a7a8; text-align: left; font-size: 14px; }
.language-option:hover,.language-option.selected { color: #fff; background: #242526; }
.language-option b { color: var(--mint); font-size: 16px; }

.theater {
  padding: 0 12px 30px;
  background: #050505;
}

.theater-hero {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 25 / 23;
  margin: 0 -12px 12px;
  padding: max(9px, calc(env(safe-area-inset-top) + 8px)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: var(--hero) var(--hero-focus,72% 50%) / cover no-repeat;
  overflow: hidden;
}
.theater-hero { touch-action: pan-y; cursor: grab; transform: translateX(var(--swipe-x,0)); transition: transform 180ms ease; }
.theater-hero.swiping { cursor: grabbing; transition: none; }

.theater-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#050505a6 0, transparent 29%, transparent 63%, #050505 100%);
}

.theater .search,.theater .category,.hero-hit,.hero-dots { position: relative; z-index: 2; }
.theater .search { height: 37px; margin: 0; border-radius: 20px; background: #282a2bcc; backdrop-filter: blur(12px); }
.theater .search button { font-size: 19px; }
.theater-search-entry { justify-content: space-between; }
.theater-search-entry > button:first-child { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: #b9b9b9; text-align: left; font-size: 14px; }
.theater .category {
  margin: 9px -6px 0;
  gap: 3px;
  padding: 0 6px 4px;
  overflow-x: auto;
  mask-image: linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 18px),transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 18px),transparent 100%);
}
.theater .category button {
  min-height: 32px;
  padding: 5px 10px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #c4c7c6;
  background: #080a0957;
  font-size: clamp(14px,3.8vw,15px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 1px 4px #000;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  transition: color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;
}
.theater .category button:active { transform: scale(.96); }
.theater .category button.active { color: #f5fff9; border-color: #75e4bd42; background: linear-gradient(180deg,#17211dcc,#101513a8); box-shadow: 0 5px 18px #0005,0 0 0 1px #ffffff08 inset; }
.theater .category button.active::after { left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--mint); box-shadow: 0 0 7px #64ddb488; }
.hero-hit { position: absolute; inset: calc(74px + env(safe-area-inset-top)) 0 0; width: 100%; text-align: left; }
.hero-hit span { position: absolute; left: 20px; bottom: 34px; max-width: 80%; font-family: Georgia,serif; font-size: clamp(24px, 6.5vw, 28px); font-style: italic; font-weight: 700; text-shadow: 0 2px 9px #000; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; }
.hero-dots button { width: 6px; height: 3px; padding: 0; border-radius: 4px; background: #777; }
.hero-dots button.active { width: 14px; background: #fff; }
.theater-hero { animation: heroReveal .42s ease both; }
@keyframes heroReveal { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .theater-hero { animation: none; } }
.continue-card { position: fixed; z-index: 29; left: max(calc(50% - 193px), 18px); bottom: calc(82px + env(safe-area-inset-bottom)); width: 114px; height: 188px; border-radius: 12px; background: #111; box-shadow: 0 8px 28px #000b; animation: continueRise .3s ease both; }
.continue-main { width: 100%; height: 100%; padding: 0 0 27px; overflow: hidden; border-radius: 12px; background: var(--mint); color: #08130f; }
.continue-poster { width: 100%; height: 151px; position: relative; background: var(--poster) center/cover no-repeat; }
.continue-poster::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,#000a); }
.continue-poster span { position: absolute; z-index: 2; left: 7px; right: 7px; bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 1px 4px #000; font-size: 12px; font-weight: 800; }
.continue-poster b { position: absolute; z-index: 2; left: 7px; top: 7px; padding: 3px 6px; border-radius: 8px; background: #000b; color: #fff; font-size: 10px; }
.continue-main strong { display: block; height: 27px; line-height: 27px; font-size: 13px; }
.continue-main small { position: absolute; right: 6px; bottom: 5px; color: #0c4f3c; font-size: 8px; }
.continue-close { position: absolute; z-index: 3; top: -11px; right: -8px; width: 34px; height: 34px; border: 1px solid #ddd; border-radius: 50%; background: #080808; color: #fff; font-size: 27px; line-height: 28px; }
@media (max-width:374px) {
  .continue-card { left: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 106px; height: 176px; }
  .continue-poster { height: 139px; }
}
.recommend-backdrop { position: fixed; z-index: 45; inset: 0; width: min(430px,100vw); margin: auto; background: #000d; animation: recommendFade .22s ease both; }
.recommend-card { position: absolute; left: 50%; top: 35%; width: calc(100% - 64px); max-width: 358px; transform: translate(-50%,-20%); }
.recommend-main { display: block; width: 100%; overflow: hidden; border: 1px solid #3b3c3d; border-radius: 15px; background: #101112; box-shadow: 0 18px 48px #000e; }
.recommend-media { position: relative; height: min(56dvh,500px); min-height: 390px; background: var(--poster) center/cover no-repeat; overflow: hidden; }
.recommend-media::after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent,#101112); pointer-events: none; }
.recommend-media video { width: 100%; height: 100%; object-fit: cover; }
.recommend-tags { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.recommend-tags span { padding: 3px 7px; border: 1px solid #bfc2c5; border-radius: 3px; background: #4a4b4dcc; color: #fff; font-size: 12px; }
.recommend-main strong { display: block; margin: 14px 18px 18px; padding: 13px 10px; border-radius: 11px; background: var(--mint); color: #07130f; font-size: 21px; letter-spacing: .02em; }
.recommend-close { position: absolute; z-index: 3; right: 0; top: -58px; width: 48px; height: 48px; border-radius: 50%; background: #292a2b; color: #fff; font-size: 30px; line-height: 44px; box-shadow: 0 5px 20px #0008; }
@keyframes recommendFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-height:720px) { .recommend-card { top: 31%; } .recommend-media { height: 50dvh; min-height: 310px; } }
@keyframes continueRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.theater-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.theater-grid .card { border-radius: 4px; background: #0b0c0d; }
.theater-grid .poster { aspect-ratio: .72; }
.card-preview { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; opacity: 0; transition: opacity 180ms ease; background: #080808; }
.preview-card.previewing .card-preview { visibility: visible; opacity: 1; }
.preview-card.preview-loading .card-preview { filter: brightness(.72); }
.preview-card.previewing .poster::after { content: ""; position: absolute; z-index: 2; inset: 65% 0 0; background: linear-gradient(transparent,#000b); pointer-events: none; }
.preview-pill { position: absolute; z-index: 3; left: 8px; top: 8px; padding: 3px 7px; border-radius: 10px; color: #fff; background: #0009; font-size: 10px; opacity: 0; transform: translateY(-3px); transition: 160ms ease; }
.preview-card.previewing .preview-pill { opacity: 1; transform: translateY(0); }
.preview-card .badge,.preview-card .heat { z-index: 4; }
.theater-grid .card-copy { padding: 9px 10px 10px; }
.theater-grid .card h3 { font-size: 14px; }
.theater-grid .meta { gap: 7px; }
.theater-empty { grid-column: 1/-1; height: 230px; display: grid; place-items: center; color: #777; }

.search-page { min-height: calc(100dvh - 64px); padding: 0 14px 28px; background: #050505; }
.search-page-head { position: sticky; z-index: 10; top: 0; min-height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; background: #050505; border-bottom: 1px solid #171819; }
.search-field { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 19px; background: #242526; color: #aaa; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; }
.search-field > button { width: 24px; height: 24px; border-radius: 50%; color: #888; background: #363738; font-size: 18px; line-height: 1; }
.search-page-head > button { padding: 8px 0; color: #ddd; font-size: 14px; }
.search-empty { min-height: 180px; display: grid; place-items: center; color: #626364; font-size: 13px; }
.search-results { padding: 9px 0 18px; }
.search-result { width: 100%; min-height: 77px; display: grid; grid-template-columns: 48px minmax(0,1fr) 18px; gap: 11px; align-items: center; text-align: left; }
.search-thumb { width: 48px; height: 64px; border-radius: 5px; background: var(--poster) center/cover no-repeat; }
.search-result h3 { margin: 0 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.search-result p { margin: 0; color: #8b8c8d; font-size: 11px; }
.search-result > span { color: #777; font-size: 22px; }
.hot-search { padding: 20px 0 18px; }
.hot-search > header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.hot-search > header h2 { margin: 0 0 3px; font-size: 18px; }
.hot-search > header p { margin: 0; color: #747576; font-size: 11px; }
.hot-search > header > span { color: #ff5b72; font-size: 22px; }
.hot-search-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 28px 42px minmax(0,1fr) auto; gap: 10px; align-items: center; text-align: left; border-bottom: 1px solid #161718; }
.hot-rank { color: #777; text-align: center; font-size: 17px; font-style: italic; }
.hot-rank.rank-1 { color: #ff4f64; font-size: 22px; }
.hot-rank.rank-2 { color: #ff8b46; font-size: 20px; }
.hot-rank.rank-3 { color: #f2c95b; font-size: 19px; }
.hot-poster { width: 42px; height: 56px; border-radius: 4px; background: var(--poster) center/cover no-repeat; }
.hot-copy { min-width: 0; }
.hot-copy h3 { margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.hot-copy h3 i { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 7px; border-radius: 4px; background: #f0475c; color: #fff; font-size: 10px; font-style: normal; }
.hot-copy p { margin: 0; color: #777; font-size: 10px; }
.hot-search-row > span { color: #f15b6d; font-size: 11px; font-weight: 700; }

.locked-page {
  min-height: calc(100dvh - 64px);
  padding: 0 16px 28px;
  background: radial-gradient(circle at 50% 23%, #17342c 0, #0c1714 25%, #050505 68%);
}
.locked-page header { position: relative; z-index: 6; min-height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; pointer-events: auto; }
.locked-page header button { font-size: 24px; }
.locked-page header .unlock-page-exit { width: 40px; height: 40px; border-radius: 50%; color: #fff; background: #161918cc; font-size: 34px; line-height: 1; box-shadow: 0 4px 18px #0008; }
.locked-page header .unlock-page-exit:hover,.locked-page header .unlock-page-exit:focus-visible { color: var(--mint); background: #252a28; }
.locked-page header h1 { margin: 0; text-align: center; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locked-page header small { color: #888; font-weight: 500; }
.install-wall { position: relative; margin: 28px 12px 0; padding: 20px 12px 24px; }
.install-preview { width: 100%; height: clamp(280px, 42dvh, 390px); border-radius: 25px; position: relative; z-index: 3; overflow: hidden; background: var(--poster) center / cover no-repeat; box-shadow: 0 22px 50px #000; }
.install-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 62%, #0008); }
.install-preview-lock { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; font-size: 36px; text-shadow: 0 3px 16px #000; }
.stack-card { position: absolute; left: 24px; right: 24px; top: 8px; height: clamp(280px, 42dvh, 390px); border-radius: 24px; background: var(--mint); opacity: .42; }
.back-one { transform: rotate(-6deg); }
.back-two { transform: rotate(6deg); }
.install-wall h2 { position: relative; z-index: 4; font-size: 27px; line-height: 1.05; margin: 22px 0 14px; }
.install-wall .primary { position: relative; z-index: 4; border-radius: 6px; font-size: 16px; }
.install-note { max-width: 290px; margin: 8px auto 0; }
.unlock-wall { min-height: calc(100dvh - 64px); position: relative; margin: calc(-64px - env(safe-area-inset-top)) -16px -28px; overflow: hidden; }
.unlock-backdrop { position: absolute; inset: 0; background: var(--poster) center/cover no-repeat; filter: brightness(.48); }
.unlock-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0004,#0001 42%,#000b); }
.unlock-content { position: relative; z-index: 2; min-height: calc(100dvh - 64px); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 90px 16px 120px; text-align: center; }
.unlock-icon { font-size: 34px; }
.unlock-content h2 { margin: 0 0 28px; font-size: 24px; }
.unlock-option { width: 100%; min-height: 76px; display: grid; place-items: center; gap: 4px; padding: 13px; border: 1px solid #fff; border-radius: 8px; background: #101211b8; backdrop-filter: blur(8px); }
.unlock-option.reward { border-color: var(--mint); color: #07130f; background: var(--mint); }
.unlock-option b { font-size: 17px; }
.unlock-option small { color: #a9adaa; }
.unlock-option.reward small { color: #286751; }
.unlock-balance { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #3b3c3d; font-weight: 800; }
.unlock-balance button { color: #aaa; }
.diamond-grid.compact { margin-bottom: 22px; }
.membership-entry { width: 100%; display: grid; gap: 7px; padding: 18px; border: 1px solid #e1c07a; border-radius: 12px; color: #3d2d1c; background: linear-gradient(120deg,#f2d491,#fff2d0); text-align: left; }
.membership-entry b { font-size: 20px; }
.membership-entry small { color: #6d573c; }
.pc-unlock-actions { display: flex; gap: 10px; margin-top: 22px; }
.pc-unlock-methods { display: grid; gap: 10px; margin-top: 22px; }
.pc-unlock-methods button { min-height: 48px; padding: 11px 16px; border: 1px solid #353a38; border-radius: 9px; background: #171a19; text-align: left; }
.purchase-group-title { margin: 20px 0 10px; font-size: 16px; }
.subscription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.subscription-tier { min-height: 112px; display: grid; gap: 5px; padding: 15px; border: 1px solid #d8b66f; border-radius: 12px; color: #442f18; background: linear-gradient(130deg,#efd08b,#fff0c9); text-align: left; }
.subscription-tier span { font-weight: 800; }
.subscription-tier b { font-size: 24px; }
.subscription-tier small { color: #725936; }
.unlock-exit-layer { position: fixed; z-index: 90; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(16px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom)); background: #000b; backdrop-filter: blur(12px); }
.unlock-exit-panel { width: min(680px,100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid #343735; border-radius: 24px; background: linear-gradient(160deg,#202321f7,#111311fa); box-shadow: 0 24px 80px #000e; scrollbar-width: none; }
.unlock-exit-panel::-webkit-scrollbar { display: none; }
.unlock-exit-panel h2 { margin: 0 0 18px; font-size: clamp(21px,5vw,27px); }
.unlock-exit-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 2px; overflow: visible; }
.unlock-exit-card { min-width: 0; padding: 0; border: 2px solid #303431; border-radius: 14px; overflow: hidden; background: #272a28; text-align: left; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.unlock-exit-card.active { border-color: #f0d394; transform: translateY(-3px); box-shadow: 0 10px 28px #0008,0 0 0 1px #f0d39455; }
.unlock-exit-card img { width: 100%; aspect-ratio: 3 / 4; display: block; object-fit: cover; pointer-events: none; }
.unlock-exit-card span { display: block; padding: 9px 10px 10px; overflow: hidden; color: #f4f4f4; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.unlock-exit-panel > h3 { margin: 18px 0 16px; text-align: center; font-size: 22px; }
.unlock-exit-actions { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; }
.unlock-exit-actions button { height: 52px; border: 1px solid #3b3f3c; border-radius: 12px; background: #2b2e2c; font-size: 17px; font-weight: 800; }
.unlock-exit-actions .play { position: static; width: auto; height: 52px; margin: 0; border: 0; border-radius: 12px; color: #07130f; background: var(--mint); box-shadow: 0 8px 24px #62d2aa33; }
@media (max-width:430px){.unlock-exit-panel{padding:20px 14px 16px;border-radius:20px}.unlock-exit-row{gap:8px}.unlock-exit-card span{padding:7px 7px 8px;font-size:12px}.unlock-exit-panel>h3{margin:15px 0 13px;font-size:20px}.unlock-exit-actions button,.unlock-exit-actions .play{height:48px}}
.install-steps { max-width: 310px; margin: 16px auto 2px; padding: 0; list-style: none; counter-reset: install-step; text-align: left; }
.install-steps li { position: relative; min-height: 30px; padding: 5px 0 5px 37px; color: #d8d8d8; font-size: 13px; line-height: 1.45; counter-increment: install-step; }
.install-steps li::before { content: counter(install-step); position: absolute; left: 0; top: 2px; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #303332; color: var(--mint); font-weight: 800; }
.install-copy-url { padding: 0; border: 0; border-radius: 0; color: #e8e8e8; background: transparent; font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.install-copy-url:hover,.install-copy-url:focus-visible { color: var(--mint); }
.install-copy-url.copied { color: var(--mint); text-decoration: none; }

/* Desktop catalogue — a separate wide-screen composition, matching the service's PC information density. */
.pc-app { min-height: 100vh; overflow: hidden; background: #050606; color: #fff; }
.pc-home-feed { min-height: calc(100vh - 70px); background: radial-gradient(circle at 50% 25%,#17231f,#050606 62%); }
.pc-home-feed .feed-shell { width: min(760px,100vw); height: calc(100vh - 70px); min-height: 560px; margin: 0 auto; border-inline: 1px solid #202422; box-shadow: 0 0 70px #000b; }
.pc-home-feed .feed-scroll { height: calc(100vh - 70px); }
.pc-home-feed .feed-item { min-height: calc(100vh - 70px); height: calc(100vh - 70px); }
.pc-home-feed .feed-item.feed-expanded { min-height: calc(100vh - 70px); padding-bottom: 228px; }
.pc-home-feed .feed-top { top: 20px; }
.pc-home-feed .feed-copy { left: 28px; right: 108px; bottom: 26px; }
.pc-home-feed .feed-actions { right: 24px; bottom: 94px; }
.pc-home-feed .feed-video { object-fit: contain; background: #000; }
.pc-header { position: sticky; z-index: 50; top: 0; height: 70px; display: grid; grid-template-columns: 190px minmax(350px,1fr) auto; align-items: center; gap: 24px; padding: 0 clamp(28px,4.2vw,76px); border-bottom: 1px solid #ffffff12; background: #070909ed; backdrop-filter: blur(22px); }
.pc-brand { display: flex; align-items: center; gap: 10px; padding: 0; color: #f7fffc; font-size: 23px; text-shadow: 0 0 18px #64ddb426; }
.pc-brand img { width: 38px; height: 38px; border-radius: 10px; }
.pc-header nav { height: 100%; display: flex; align-items: center; gap: clamp(20px,2.4vw,40px); }
.pc-header nav button { height: 100%; position: relative; padding: 0 3px; color: #c2c8c5; font-weight: 650; transition: color 160ms ease,text-shadow 160ms ease; }
.pc-header nav button:hover { color: #effff9; }
.pc-header nav button.active { color: #78e2bc; text-shadow: 0 0 15px #64ddb444; }
.pc-header nav button.active::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mint); }
.pc-tools { display: flex; align-items: center; gap: 10px; }
.pc-tools > button { height: 38px; padding: 0 13px; border: 1px solid #ffffff0d; border-radius: 20px; color: #dce3e0; background: #171a1a; white-space: nowrap; transition: color 160ms ease,background 160ms ease,border-color 160ms ease; }
.pc-tools > button:hover { color: #fff; border-color: #64ddb43d; background: #202523; }
.pc-tools .pc-search { width: clamp(45px,13vw,185px); justify-content: flex-start; color: #b8bfbc; text-align: left; }
.pc-tools .pc-install { color: #07120e; background: var(--mint); font-weight: 800; }
.pc-tools .pc-install:hover { color: #04100b; border-color: #a7f2d7; background: #7ce4be; }
.pc-tools .pc-avatar { width: 38px; padding: 0; color: #fff; background: linear-gradient(135deg,#cb512d,#6e1d13); font-weight: 900; }
.pc-hero { height: clamp(460px,56vw,710px); max-height: calc(100vh - 70px); position: relative; overflow: hidden; background: var(--hero) var(--hero-focus,72% 50%) / cover no-repeat; animation: heroReveal .35s ease both; }
.pc-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#030504 0%,#030504e8 18%,#0506065e 53%,#05060612 75%),linear-gradient(0deg,#050606 0%,transparent 42%); }
.pc-hero-copy { position: absolute; z-index: 4; left: clamp(36px,7vw,116px); bottom: clamp(76px,10vw,135px); width: min(520px,42vw); }
.pc-featured { display: inline-block; margin-bottom: 14px; color: var(--mint); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.pc-hero-copy h1 { margin: 0 0 15px; font-size: clamp(43px,5.4vw,78px); line-height: .98; letter-spacing: -.04em; text-shadow: 0 3px 24px #000; }
.pc-hero-copy p { margin: 0 0 25px; color: #d3d6d5; font-size: clamp(14px,1.25vw,18px); line-height: 1.7; text-shadow: 0 2px 10px #000; }
.pc-primary,.pc-secondary { min-width: 132px; height: 46px; margin-right: 10px; padding: 0 22px; border-radius: 24px; font-weight: 850; }
.pc-primary { color: #07120e; background: var(--mint); }
.pc-secondary { color: #fff; background: #ffffff26; backdrop-filter: blur(10px); }
.pc-hero .hero-hit { position: absolute; z-index: 2; inset: 0; font-size: 0; }
.pc-hero .hero-hit span { display: none; }
.pc-hero .hero-dots { position: absolute; z-index: 7; left: auto; right: clamp(35px,5vw,80px); bottom: 55px; display: flex; gap: 8px; }
.pc-hero .hero-dots button { width: 23px; height: 4px; border-radius: 3px; background: #ffffff5c; }
.pc-hero .hero-dots button.active { width: 38px; background: var(--mint); }
.pc-content { position: relative; z-index: 5; margin-top: -36px; padding: 0 clamp(28px,4.2vw,76px) 70px; }
.pc-section { margin-bottom: 38px; }
.pc-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.pc-section-head h2 { margin: 0; font-size: clamp(20px,2vw,28px); }
.pc-section-head button { color: #8c9190; font-size: 13px; }
.pc-row { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(10px,1.25vw,20px); }
.pc-card { min-width: 0; padding: 0; text-align: left; transition: transform 180ms ease; }
.pc-card:hover { z-index: 5; transform: translateY(-7px) scale(1.025); }
.pc-poster { aspect-ratio: .71; position: relative; overflow: hidden; border-radius: 8px; background: var(--poster) center / cover no-repeat; box-shadow: 0 8px 25px #0008; }
.pc-poster-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pc-poster::after { content: ""; position: absolute; z-index: 2; inset: 50% 0 0; background: linear-gradient(transparent,#000c); pointer-events: none; }
.pc-card h3 { margin: 10px 0 4px; overflow: hidden; color: #f2f3f3; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.pc-card p { margin: 0; color: #777d7a; font-size: 11px; }
.pc-rank { position: absolute; z-index: 4; left: 8px; top: 6px; color: #fff; font-size: 34px; font-style: italic; text-shadow: 0 3px 8px #000; }
.pc-heat { position: absolute; z-index: 4; left: 9px; bottom: 8px; font-size: 10px; font-weight: 800; }
.pc-play { position: absolute; z-index: 5; inset: 0; width: 48px; height: 48px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: #06110d; background: #82e4c1e8; opacity: 0; transform: scale(.8); transition: 160ms ease; }
.pc-card:hover .pc-play { opacity: 1; transform: scale(1); }
.pc-card .card-preview { z-index: 1; pointer-events: none; }
.pc-footer { min-height: 210px; padding: 45px clamp(28px,4.2vw,76px); border-top: 1px solid #1b1d1d; background: #080909; color: #737776; }
.pc-footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; color: #fff; }
.pc-footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.pc-footer-brand b { font-size: 21px; }
.pc-footer-brand span { margin-left: 8px; color: #747977; font-size: 13px; }
.pc-footer button { margin-right: 28px; color: #9ca09f; font-size: 13px; }
.pc-footer p { margin-top: 34px; font-size: 12px; }
.pc-inner { min-height: calc(100vh - 70px); padding: 54px clamp(28px,5vw,88px) 90px; }
.pc-inner > h1 { margin: 0 0 25px; font-size: 36px; }
.pc-inner > h2 { margin: 34px 0 20px; }
.pc-tabs { display: flex; gap: 32px; margin-bottom: 30px; border-bottom: 1px solid #202322; }
.pc-tabs button { position: relative; padding: 0 2px 15px; color: #858a88; font-weight: 700; }
.pc-tabs button.active { color: #fff; }
.pc-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--mint); }
.pc-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 26px clamp(10px,1.25vw,20px); }
.pc-empty { min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 18px; color: #747977; }
.pc-empty button { padding: 11px 20px; border-radius: 22px; color: #06120e; background: var(--mint); font-weight: 800; }
.pc-profile { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; gap: 26px; align-items: center; margin-bottom: 30px; padding: 28px; border-radius: 18px; background: linear-gradient(115deg,#17231f,#101211 60%); }
.pc-profile-avatar { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#d85223,#812217); font-size: 48px; font-weight: 900; }
.pc-profile h1 { margin: 0 0 8px; }
.pc-profile p { color: #898e8c; }
.pc-profile > button { padding: 10px 16px; border-radius: 20px; background: #252827; }
.pc-profile-actions { display: flex; gap: 10px; }
.pc-profile-actions button { padding: 10px 16px; border-radius: 20px; background: #252827; white-space: nowrap; }
.pc-profile-actions .pc-add-drama { color: #06120e; background: var(--mint); font-weight: 850; }
.pc-profile-stats { display: flex; gap: 28px; margin-top: 18px; color: #929795; font-size: 13px; }
.pc-profile-stats b { margin-right: 7px; color: #fff; font-size: 18px; }
.pc-member { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; padding: 20px 24px; border: 1px solid #31483f; border-radius: 15px; background: #111815; }
.pc-member div { flex: 1; }
.pc-member b,.pc-member span { display: block; }
.pc-member span { margin-top: 5px; color: #8c928f; font-size: 12px; }
.pc-member button { padding: 10px 17px; border-radius: 20px; background: #252b29; }
.pc-member button:first-of-type { color: #07120e; background: var(--mint); font-weight: 800; }
.pc-search-page { height: 58px; display: grid; grid-template-columns: 30px 1fr 36px; align-items: center; max-width: 780px; margin: 0 auto 38px; padding: 0 18px; border: 1px solid #313534; border-radius: 30px; background: #171918; }
.pc-search-page input { min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 17px; }
.pc-search-page button { font-size: 24px; color: #8d9290; }
.pc-watch { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(0,1.65fr) minmax(390px,.8fr); background: #050606; }
.pc-watch-media { min-height: calc(100vh - 70px); position: sticky; top: 70px; align-self: start; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at center,#18231f,#000 65%); }
.pc-watch-media video { width: 100%; height: calc(100vh - 70px); object-fit: contain; background: #000; }
.pc-watch-back { position: absolute; z-index: 3; left: 24px; top: 22px; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 17px 0 13px; border: 1px solid #ffffff20; border-radius: 24px; background: #101312c7; box-shadow: 0 8px 24px #0007; backdrop-filter: blur(14px); transition: background .16s ease,transform .16s ease; }
.pc-watch-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-watch-back:hover { background: #242a28e8; }
.pc-watch-back:active { transform: scale(.96); }
.pc-watch-info { min-height: calc(100vh - 70px); padding: 38px clamp(28px,3vw,52px) 60px; border-left: 1px solid #202322; background: #0b0d0c; }
.pc-watch-title { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 18px; align-items: center; }
.pc-watch-poster { width: 94px; aspect-ratio: .72; border-radius: 8px; background: var(--poster) center/cover no-repeat; box-shadow: 0 8px 25px #0009; }
.pc-watch-title span { color: var(--mint); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.pc-watch-title h1 { margin: 8px 0; font-size: clamp(26px,2.5vw,40px); line-height: 1.1; }
.pc-watch-title p,.pc-watch-description { color: #8d9390; font-size: 13px; line-height: 1.65; }
.pc-watch-description { margin: 24px 0; }
.pc-watch-buttons { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.pc-watch-buttons button { min-width: 0; padding: 10px 7px; border: 1px solid #2d3230; border-radius: 9px; color: #bdc2c0; background: #171a19; font-size: 12px; }
.pc-watch-buttons button.active { color: #07120e; border-color: var(--mint); background: var(--mint); font-weight: 800; }
.pc-episode-head { display: flex; justify-content: space-between; align-items: end; margin: 36px 0 14px; }
.pc-episode-head h2 { margin: 0; font-size: 20px; }
.pc-episode-head span { color: #777d7a; font-size: 12px; }
.pc-episodes { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.pc-episodes button { min-height: 66px; position: relative; display: grid; place-items: center; border: 1px solid #282c2a; border-radius: 9px; background: #171918; }
.pc-episodes button.active { color: #06120d; border-color: var(--mint); background: var(--mint); }
.pc-episodes button b { font-size: 16px; }
.pc-episodes button small { font-size: 9px; }
.pc-episodes .episode-lock { margin: 0; }
.pc-creator { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid #232624; }
.pc-creator-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #252927; font-weight: 900; }
.pc-creator b,.pc-creator small { display: block; }
.pc-creator small { margin-top: 3px; color: #727775; }
.pc-creator > button { padding: 9px 15px; border-radius: 19px; color: #06120d; background: var(--mint); font-weight: 800; }
.pc-locked { min-height: calc(100vh - 70px); position: relative; display: grid; grid-template-columns: minmax(340px,480px) minmax(360px,540px); justify-content: center; align-items: center; gap: clamp(60px,8vw,130px); padding: 70px; background: radial-gradient(circle at 28% 45%,#16352c,#070a09 38%,#030404 76%); }
.pc-page-back { position: absolute; left: clamp(28px,4vw,70px); top: 30px; color: #aeb4b1; }
.pc-lock-visual { width: min(400px,34vw); position: relative; justify-self: center; }
.pc-lock-visual .install-preview { height: min(58vh,610px); }
.pc-lock-visual .stack-card { left: 16px; right: 16px; height: min(58vh,610px); }
.pc-lock-copy > span { color: var(--mint); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.pc-lock-copy h1 { margin: 12px 0 34px; color: #9ba19e; font-size: 20px; }
.pc-lock-copy h2 { max-width: 520px; margin: 0 0 18px; font-size: clamp(34px,4vw,58px); line-height: 1.05; }
.pc-lock-copy p { max-width: 500px; color: #8c928f; line-height: 1.7; }
.pc-lock-copy .pc-primary { margin-top: 24px; min-width: 240px; }
.pc-text-button { display: block; margin-top: 20px; color: #8d9390; }
.pc-rewards { max-width: 1050px; margin: auto; }
.pc-reward-hero { min-height: 190px; display: flex; align-items: center; gap: 30px; margin: 35px 0 45px; padding: 34px 45px; border: 1px solid #30473e; border-radius: 22px; background: radial-gradient(circle at 85% 10%,#326f59,#172820 40%,#101512); }
.pc-reward-hero > span { font-size: 76px; }
.pc-reward-hero p { margin: 0; color: #a7b1ad; }
.pc-reward-hero h1 { margin: 4px 0 0; font-size: 58px; }
.pc-task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-task-grid .task { margin: 0; min-height: 94px; padding: 21px; border: 1px solid #242826; }

@media (min-width:900px) {
  .sheet-layer { align-items: center; padding: 30px; }
  .sheet { width: min(540px,92vw); max-height: 82vh; border: 1px solid #373b39; border-radius: 20px; padding: 20px 24px 28px; box-shadow: 0 24px 80px #000d; }
  .sheet > .handle { display: none; }
  .drawer { width: min(410px,36vw); padding: 26px 30px; box-shadow: -20px 0 70px #000b; }
  .recommend-backdrop { width: 100vw; }
  .recommend-card { max-width: 420px; top: 42%; }
  .continue-card { left: 28px; bottom: 28px; }
  .toast { bottom: 28px; }
}

@media (min-width:900px) and (max-width:1180px) {
  .pc-header { grid-template-columns: 150px 1fr auto; padding-inline: 28px; }
  .pc-header nav { gap: 18px; }
  .pc-tools .pc-search span,.pc-tools .pc-install { display: none; }
  .pc-tools .pc-search { width: 38px; padding: 0; text-align: center; }
  .pc-row { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .pc-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .pc-row .pc-card:nth-child(7) { display: none; }
  .pc-watch { grid-template-columns: minmax(0,1.35fr) minmax(360px,.8fr); }
  .pc-watch-info { padding-inline: 26px; }
  .pc-watch-buttons { grid-template-columns: 1fr 1fr; }
  .pc-locked { gap: 45px; padding-inline: 45px; }
}

/* App launch sequence */
.startup-splash { position: fixed; z-index: 9999; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 44%,#123127 0,#07100d 30%,#020303 70%); opacity: 1; visibility: visible; transition: opacity .48s ease,visibility .48s ease; }
.startup-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.startup-glow { position: absolute; width: min(76vw,520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,#66e0b553 0,#55d5aa12 44%,transparent 70%); filter: blur(14px); animation: startup-breathe 1.25s ease-in-out infinite alternate; }
.startup-orbit { position: absolute; width: min(54vw,330px); aspect-ratio: 1; border: 1px solid #7ce4bd4d; border-radius: 50%; transform: rotate(18deg); animation: startup-spin 2.8s linear infinite; }
.startup-orbit::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #83e6c1; box-shadow: 0 0 18px #68ddb3; }
.startup-orbit.orbit-two { width: min(68vw,410px); border-color: #5fc9a728; transform: rotate(-32deg); animation-direction: reverse; animation-duration: 3.7s; }
.startup-logo-wrap { position: relative; width: 112px; height: 112px; padding: 7px; border-radius: 30px; background: linear-gradient(145deg,#91ebcb,#45c99d); box-shadow: 0 22px 70px #55d5a84d,0 0 0 1px #caffec55 inset; animation: startup-logo 1.05s cubic-bezier(.2,.8,.2,1) both; }
.startup-logo-wrap img { width: 100%; height: 100%; display: block; border-radius: 24px; object-fit: cover; }
.startup-name { position: relative; margin-top: 24px; font-size: 31px; font-weight: 900; letter-spacing: .02em; animation: startup-copy .65s .28s ease both; }
.startup-tagline { position: relative; margin-top: 6px; color: #a8b7b1; font-size: 13px; letter-spacing: .32em; text-indent: .32em; animation: startup-copy .65s .4s ease both; }
.startup-loader { position: relative; width: 128px; height: 3px; margin-top: 32px; overflow: hidden; border-radius: 10px; background: #ffffff18; }
.startup-loader i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,transparent,#79e4bd,#d2ffef); animation: startup-load 1.05s .18s ease-in-out both; }
@keyframes startup-logo { 0%{opacity:0;transform:scale(.54) rotate(-12deg);filter:blur(12px)} 62%{opacity:1;transform:scale(1.08) rotate(2deg);filter:blur(0)} 100%{transform:scale(1) rotate(0)} }
@keyframes startup-copy { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes startup-spin { to{transform:rotate(378deg)} }
@keyframes startup-breathe { from{transform:scale(.86);opacity:.55} to{transform:scale(1.08);opacity:1} }
@keyframes startup-load { from{transform:translateX(-115%)} to{transform:translateX(240%)} }
@media (max-width:430px){.startup-logo-wrap{width:94px;height:94px;border-radius:26px}.startup-logo-wrap img{border-radius:20px}.startup-name{font-size:27px}.startup-orbit{width:58vw}.startup-orbit.orbit-two{width:76vw}}
@media (prefers-reduced-motion:reduce){.startup-glow,.startup-orbit,.startup-logo-wrap,.startup-name,.startup-tagline,.startup-loader i{animation:none}.startup-splash{transition-duration:.18s}}

/* Cross-device hardening: phones, tablets, short landscape screens and wide desktops. */
html { width: 100%; min-height: 100%; overflow-x: hidden; background: #050606; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { width: 100%; min-height: 100dvh; overflow-x: hidden; overscroll-behavior-x: none; }
button,a,input { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
img,video { max-width: 100%; }
.phone { width: var(--app-canvas,min(430px,100vw)); min-height: 100dvh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.nav { width: var(--app-canvas,min(430px,100vw)); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: max(4px,env(safe-area-inset-bottom)); }
.drawer-layer,.recommend-backdrop { width: var(--app-canvas,min(430px,100vw)); }
.sheet { padding-bottom: max(25px,calc(14px + env(safe-area-inset-bottom))); }
.drawer { padding-top: max(14px,env(safe-area-inset-top)); padding-bottom: max(24px,env(safe-area-inset-bottom)); }
.toast { max-width: calc(100vw - 28px); text-align: center; white-space: normal; }
.theater,.search-page,.profile,.page { overflow-x: clip; }
.page:not(.theater),.profile { padding-top: max(18px, calc(env(safe-area-inset-top) + 14px)); }

/* Installed Android PWAs can expose a zero env() inset even when the system
   status bar overlays content, so mobile app mode also gets a visual fallback. */
@media (display-mode: standalone) and (max-width:899px) {
  .page:not(.theater),.profile { padding-top: max(54px, calc(env(safe-area-inset-top) + 14px)); }
  .theater-hero { padding-top: max(54px, calc(env(safe-area-inset-top) + 8px)); }
  .search-page-head { min-height: max(100px, calc(52px + env(safe-area-inset-top))); padding-top: max(48px, env(safe-area-inset-top)); }
  .locked-page header { min-height: max(112px, calc(64px + env(safe-area-inset-top))); padding-top: max(48px, env(safe-area-inset-top)); }
}
.tabs,.category { overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.theater-hero { min-height: 300px; }
.search-field input,.pc-search-page input { font-size: max(16px,1em); }

@media (min-width:600px) and (max-width:899px), (min-width:900px) and (max-height:599px) {
  :root { --app-canvas: min(640px,100vw); }
  .theater-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .theater-hero { aspect-ratio: 16 / 10; }
  .recommend-card { max-width: 460px; }
  .drawer { width: min(360px,62vw); }
}

@media (max-width:374px) {
  .page,.profile { padding-inline: 12px; }
  .feed-item .feed-copy { left: 12px; right: 68px; }
  .feed-actions { right: 8px; }
  .feed-actions .round { width: 40px; height: 40px; }
  .collection { padding: 8px 10px; }
  .theater-hero { min-height: 278px; }
  .theater .category { gap: 2px; }
  .theater .category button { padding-inline: 8px; font-size: 13px; }
  .subscription-grid { grid-template-columns: 1fr; }
  .subscription-tier { min-height: 90px; }
  .unlock-exit-panel { padding-inline: 11px; }
  .unlock-exit-row { gap: 6px; }
  .unlock-exit-card span { font-size: 11px; }
}

@media (max-height:560px) and (orientation:landscape) {
  .feed-shell,.feed-scroll,.feed-item { min-height: calc(100dvh - 64px - env(safe-area-inset-bottom)); height: calc(100dvh - 64px - env(safe-area-inset-bottom)); }
  .feed-top { min-height: 50px; padding-top: 8px; }
  .feed-item .feed-copy { bottom: 10px; }
  .feed-actions { bottom: 10px; grid-template-columns: repeat(3,44px); gap: 8px; }
  .feed-actions > div:nth-child(n+4) { display: none; }
  .unlock-content { min-height: 100dvh; padding: 64px 16px 76px; justify-content: flex-start; overflow-y: auto; }
  .unlock-content h2 { margin-bottom: 8px; }
  .sheet { max-height: 94dvh; }
  .install-card .install-logo { width: 58px; height: 58px; margin-block: 6px; }
}

@media (min-width:900px) and (min-height:600px) and (max-width:1040px) {
  .pc-header { grid-template-columns: 130px minmax(290px,1fr) auto; gap: 12px; padding-inline: 22px; }
  .pc-header nav { gap: 14px; }
  .pc-tools > button { padding-inline: 10px; }
  .pc-row,.pc-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .pc-row .pc-card:nth-child(n+6) { display: none; }
  .pc-watch { grid-template-columns: minmax(0,1.2fr) minmax(350px,.9fr); }
  .pc-watch-info { padding-inline: 22px; }
  .pc-locked { grid-template-columns: minmax(280px,360px) minmax(330px,440px); gap: 30px; padding-inline: 34px; }
}

@media (min-width:1600px) {
  .pc-content,.pc-inner { width: 100%; max-width: 1800px; margin-inline: auto; }
  .pc-watch { max-width: 1920px; margin-inline: auto; }
}

@supports not (height:100dvh) {
  body,.phone,.drawer-layer,.drawer { min-height: 100vh; }
  .feed-shell,.locked-page,.unlock-wall,.unlock-content { min-height: calc(100vh - 64px); }
  .sheet { max-height: 82vh; }
}
