:root {
  --uc-bg: #080808;
  --uc-panel: #141414;
  --uc-panel-2: #1b1b1b;
  --uc-line: rgba(255,255,255,.09);
  --uc-text: #f5f5f5;
  --uc-muted: #929292;
  --uc-accent: #fd975a;
}

html.uc-section-viewport {
  background: #050505;
  color-scheme: dark;
}

body.hg-page.uc-theater-page,
body.hg-page.uc-member-page,
body.hg-page.uc-auth-page {
  background: var(--uc-bg) !important;
  color: var(--uc-text);
  min-height: var(--hg-viewport-height);
}

.uc-section-shell {
  min-height: calc(var(--hg-viewport-height) - var(--hg-bottom-nav) - env(safe-area-inset-bottom));
  padding-bottom: 24px;
}

.uc-theater-header {
  background: linear-gradient(180deg,#171717 0,#0b0b0b 100%);
  padding: calc(16px + env(safe-area-inset-top)) 18px 0;
}

.uc-theater-search {
  align-items: center;
  background: #202020;
  border: 1px solid var(--uc-line);
  border-radius: 15px;
  color: #a7a7a7;
  display: flex;
  gap: 11px;
  height: 52px;
  padding: 0 15px;
}

.uc-theater-search .hg-search-icon { flex: 0 0 18px; }
.uc-theater-search input {
  background: transparent;
  border: 0;
  color: #fff;
  flex: 1;
  min-width: 0;
  outline: 0;
}
.uc-theater-search input::placeholder { color: #797979; }
.uc-theater-search__recognize {
  border-left: 1px solid var(--uc-line);
  color: #8d8d8d;
  flex: 0 0 auto;
  font-size: 13px;
  padding-left: 13px;
}

.uc-theater-channels {
  -ms-overflow-style: none;
  display: flex;
  gap: 23px;
  overflow-x: auto;
  padding: 16px 0 14px;
  scrollbar-width: none;
}
.uc-theater-channels::-webkit-scrollbar { display: none; }
.uc-theater-channels a {
  color: #8b8b8b;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
}
.uc-theater-channels a.is-active {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.uc-theater-tools {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 14px 18px 0;
}
.uc-theater-tools > a {
  align-items: center;
  background: var(--uc-panel);
  border: 1px solid var(--uc-line);
  border-radius: 13px;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  height: 46px;
  justify-content: center;
  min-width: 0;
}
.uc-feature-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
}
.uc-feature-icon svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 16px; }
.uc-feature-icon--filter { background: #8256db; }
.uc-feature-icon--rank { background: #f47c2e; }
.uc-feature-icon--rank svg { fill: currentColor; stroke: none; }
.uc-feature-icon--new { background: #42bfc5; }
.uc-feature-icon--new svg { fill: currentColor; stroke: none; }

.uc-filter-panel {
  background: var(--uc-panel);
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  margin: 14px 18px 0;
  overflow: hidden;
  padding: 3px 14px 13px;
}
.uc-filter-panel__head {
  align-items: center;
  border-bottom: 1px solid var(--uc-line);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
}
.uc-filter-panel__head strong { font-size: 16px; }
.uc-filter-panel__head a { color: var(--uc-accent); font-size: 14px; }
.uc-filter-row { padding: 12px 0 4px; }
.uc-filter-row > span { color: #777; display: block; font-size: 13px; margin-bottom: 8px; }
.uc-filter-row > div { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.uc-filter-row > div::-webkit-scrollbar { display: none; }
.uc-filter-row a {
  background: #202020;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #aaa;
  flex: 0 0 auto;
  font-size: 13px;
  padding: 6px 11px;
}
.uc-filter-row a.is-active { border-color: rgba(253,151,90,.35); color: var(--uc-accent); }

.uc-theater-grid {
  display: grid;
  gap: 18px 12px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  padding: 18px 18px 8px;
}
.uc-vod-card { min-width: 0; }
.uc-vod-card__poster {
  aspect-ratio: 2 / 3;
  background: #222;
  border: 1px solid var(--uc-line);
  border-radius: 13px;
  display: block;
  overflow: hidden;
  position: relative;
}
.uc-vod-card__poster::after {
  background: linear-gradient(180deg,transparent 65%,rgba(0,0,0,.72));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.uc-vod-card__poster img { height: 100%; object-fit: cover; position: relative; width: 100%; z-index: 1; }
.uc-vod-card__fallback {
  align-items: center;
  color: #555;
  display: flex;
  font-size: 30px;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  position: absolute;
}
.uc-vod-card__poster:not(.is-empty) .uc-vod-card__fallback { display: none; }
.uc-vod-card__badge {
  background: #ef5364;
  border-radius: 0 0 9px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  left: 0;
  line-height: 25px;
  max-width: 85%;
  overflow: hidden;
  padding: 0 9px;
  position: absolute;
  text-overflow: ellipsis;
  top: 0;
  white-space: nowrap;
  z-index: 3;
}
.uc-vod-card__heat {
  bottom: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  left: 9px;
  position: absolute;
  text-shadow: 0 1px 4px #000;
  z-index: 3;
}
.uc-vod-card__heat i { color: var(--uc-accent); font-size: 8px; font-style: normal; }
.uc-vod-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 9px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-vod-card p {
  color: var(--uc-muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 5px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-list-title,
.uc-subpage-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0,1fr);
  padding: 18px 20px 4px;
}
.uc-list-title h1,.uc-subpage-head h1 { font-size: 20px; margin: 0; }
.uc-list-title p,.uc-subpage-head p { color: var(--uc-muted); font-size: 13px; margin: 4px 0 0; }
.uc-back-link { height: 36px; position: relative; width: 36px; }
.uc-back-link::before { border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; height: 11px; left: 12px; position: absolute; top: 11px; transform: rotate(45deg); width: 11px; }
.uc-search-result { color: #8d8d8d; font-size: 14px; padding: 18px 18px 0; }
.uc-search-result strong { color: #fff; }
.uc-pager { align-items: center; display: flex; gap: 10px; justify-content: center; padding: 24px 18px 12px; }
.uc-pager a,.uc-pager span { background: var(--uc-panel); border: 1px solid var(--uc-line); border-radius: 9px; color: #ddd; font-size: 13px; padding: 8px 12px; }
.uc-pager .is-disabled { color: #555; }
.uc-pager .uc-pager__current { background: transparent; border: 0; color: #888; }

.uc-empty-state {
  align-items: center;
  color: var(--uc-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 43vh;
  padding: 50px 22px;
  text-align: center;
}
.uc-empty-state > span { color: #4f4f4f; font-size: 48px; line-height: 1; margin-bottom: 18px; }
.uc-empty-state strong { color: #e8e8e8; font-size: 17px; }
.uc-empty-state p { font-size: 13px; margin: 8px 0 0; }
.uc-empty-state > a { background: var(--uc-panel-2); border: 1px solid var(--uc-line); border-radius: 18px; color: var(--uc-accent); font-size: 13px; margin-top: 18px; padding: 8px 16px; }

/* Member pages: V10 profile information architecture with the V12 dark palette. */
.uc-member-hero {
  background: radial-gradient(circle at 12% 0,rgba(253,151,90,.18),transparent 43%),linear-gradient(180deg,#1c1c1c,#0d0d0d);
  min-height: 270px;
  padding: calc(18px + env(safe-area-inset-top)) 24px 25px;
  position: relative;
}
.uc-member-hero__tools { display: flex; gap: 10px; position: absolute; right: 20px; top: calc(17px + env(safe-area-inset-top)); }
.uc-member-hero__tools a { align-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--uc-line); border-radius: 50%; display: flex; height: 37px; justify-content: center; width: 37px; }
.uc-member-hero__tools svg,.uc-member-quick svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 19px; }
.uc-member-identity { align-items: center; display: flex; gap: 16px; padding-top: 45px; }
.uc-member-identity img { background: #252525; border: 2px solid rgba(255,255,255,.13); border-radius: 50%; height: 70px; object-fit: cover; width: 70px; }
.uc-member-identity span { display: flex; min-width: 0; flex-direction: column; }
.uc-member-identity strong { font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-member-identity small { color: #9d9d9d; font-size: 13px; margin-top: 6px; }
.uc-member-quick { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 32px; }
.uc-member-quick a { align-items: center; color: #d7d7d7; display: flex; flex-direction: column; font-size: 13px; gap: 8px; }
.uc-member-quick a > span { align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; display: flex; height: 34px; justify-content: center; width: 39px; }
.uc-member-quick em { font-style: normal; }

.uc-member-surface {
  background: #101010;
  border-radius: 24px 24px 0 0;
  margin-top: -18px;
  min-height: 62vh;
  padding: 0 18px 30px;
  position: relative;
  z-index: 2;
}
.uc-member-surface.is-standalone { border-radius: 0; margin-top: 0; min-height: calc(var(--hg-viewport-height) - var(--hg-bottom-nav)); padding-top: calc(10px + env(safe-area-inset-top)); }
.uc-member-tabs { align-items: center; border-bottom: 1px solid var(--uc-line); display: flex; gap: 24px; min-height: 57px; overflow-x: auto; scrollbar-width: none; }
.uc-member-tabs::-webkit-scrollbar { display: none; }
.uc-member-tabs a { color: #777; flex: 0 0 auto; font-size: 15px; }
.uc-member-tabs a.is-active { color: #fff; font-size: 17px; font-weight: 600; }
.uc-member-tabs__search { margin-left: auto; padding: 8px; }

.uc-flash { border: 1px solid; border-radius: 11px; font-size: 13px; margin: 14px 0 0; padding: 11px 13px; }
.uc-flash.is-error { background: rgba(223,75,75,.12); border-color: rgba(223,75,75,.35); color: #ff9696; }
.uc-flash.is-success { background: rgba(78,190,131,.12); border-color: rgba(78,190,131,.35); color: #83dca9; }
.uc-member-section { background: var(--uc-panel); border: 1px solid var(--uc-line); border-radius: 15px; margin-top: 15px; overflow: hidden; padding: 15px; }
.uc-member-section > header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 13px; }
.uc-member-section > header h2 { font-size: 16px; }
.uc-member-section > header span { color: #6f6f6f; font-size: 12px; }
.uc-service-grid { display: grid; gap: 1px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.uc-service-grid a { align-items: center; color: #bdbdbd; display: flex; flex-direction: column; font-size: 12px; gap: 7px; min-width: 0; padding: 8px 2px; text-align: center; }
.uc-service-grid i { align-items: center; background: #222; border-radius: 11px; color: var(--uc-accent); display: flex; font-size: 17px; font-style: normal; height: 40px; justify-content: center; width: 40px; }
.uc-service-grid a:not(:has(i))::before { align-items: center; background: #222; border-radius: 11px; color: var(--uc-accent); content: "◇"; display: flex; font-size: 16px; height: 40px; justify-content: center; width: 40px; }
.uc-account-summary { background: var(--uc-panel); border: 1px solid var(--uc-line); border-radius: 15px; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 15px; padding: 16px 5px; text-align: center; }
.uc-account-summary div + div { border-left: 1px solid var(--uc-line); }
.uc-account-summary span { color: #777; display: block; font-size: 11px; }
.uc-account-summary strong { display: block; font-size: 19px; margin-top: 5px; }
.uc-account-panel { border-top: 1px solid var(--uc-line); }
.uc-account-panel:first-of-type { border-top: 0; }
.uc-account-panel summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; min-height: 48px; }
.uc-account-panel summary::-webkit-details-marker { display: none; }
.uc-account-panel summary span { font-size: 14px; }
.uc-account-panel summary i { border-right: 1.5px solid #777; border-top: 1.5px solid #777; height: 8px; transform: rotate(45deg); transition: transform .2s; width: 8px; }
.uc-account-panel[open] summary i { transform: rotate(135deg); }
.uc-account-panel form,.uc-feedback-compose form { display: grid; gap: 11px; padding: 2px 0 13px; }
.uc-account-panel label,.uc-auth-card label,.uc-feedback-compose label { display: grid; gap: 6px; }
.uc-account-panel label span,.uc-auth-card label > span,.uc-feedback-compose label span { color: #858585; font-size: 12px; }
.uc-account-panel input,.uc-auth-card input,.uc-feedback-compose input,.uc-feedback-compose textarea {
  background: #202020;
  border: 1px solid var(--uc-line);
  border-radius: 10px;
  color: #fff;
  min-height: 43px;
  outline: 0;
  padding: 10px 12px;
  width: 100%;
}
.uc-feedback-compose textarea { min-height: 110px; resize: vertical; }
.uc-account-panel button,.uc-feedback-compose button,.uc-inline-action { background: var(--uc-accent); border: 0; border-radius: 10px; color: #17100c !important; cursor: pointer; font-size: 13px; font-weight: 600; min-height: 42px; padding: 10px 14px; text-align: center; }
.uc-invite-panel { color: #ddd; font-size: 13px; padding: 0 0 13px; }
.uc-invite-panel p { margin: 0 0 10px; word-break: break-all; }
.uc-invite-panel code { color: var(--uc-accent); }
.uc-invite-panel ul { display: grid; gap: 7px; margin-bottom: 10px; }
.uc-invite-panel li { display: flex; justify-content: space-between; }
.uc-invite-panel form { padding-bottom: 0; }
.uc-muted { color: var(--uc-muted); }
.uc-rank-list { display: grid; gap: 10px; }
.uc-rank-list li { align-items: center; display: grid; grid-template-columns: 25px 1fr auto; }
.uc-rank-list b { color: var(--uc-accent); }
.uc-rank-list em { color: #858585; font-size: 12px; font-style: normal; }
.uc-logout { margin-top: 18px; }
.uc-logout button { background: transparent; border: 1px solid var(--uc-line); border-radius: 12px; color: #b7b7b7; height: 46px; width: 100%; }

.uc-member-video-grid { display: grid; gap: 18px 10px; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 0; }
.uc-member-video-grid .uc-vod-card h3 { font-size: 13px; }
.uc-member-video-grid .uc-vod-card p { font-size: 11px; }
.uc-member-video-grid .uc-vod-card__badge { font-size: 10px; line-height: 21px; }
.uc-member-video-grid .uc-vod-card__heat { font-size: 10px; left: 6px; }

.uc-sign-card { align-items: center; background: linear-gradient(135deg,#2a1b13,#171717); border: 1px solid rgba(253,151,90,.18); border-radius: 16px; display: flex; justify-content: space-between; margin-top: 15px; padding: 18px; }
.uc-sign-card span { color: #a58f83; font-size: 12px; }
.uc-sign-card strong { display: block; font-size: 31px; margin-top: 4px; }
.uc-sign-card strong small { font-size: 13px; margin-left: 3px; }
.uc-sign-card p { color: #777; font-size: 11px; margin: 2px 0 0; }
.uc-sign-card button { background: var(--uc-accent); border: 0; border-radius: 19px; color: #17100c; font-size: 13px; font-weight: 600; padding: 9px 15px; }
.uc-sign-card button:disabled { background: #303030; color: #777; }
.uc-task-list { display: grid; gap: 12px; }
.uc-task-list article { background: #1a1a1a; border-radius: 11px; padding: 12px; }
.uc-task-list article > div { display: flex; justify-content: space-between; }
.uc-task-list article strong { font-size: 13px; }
.uc-task-list article span { color: var(--uc-accent); font-size: 11px; }
.uc-task-list article p { color: #777; font-size: 11px; margin: 7px 0 0; }
.uc-task-list article > i { background: #292929; border-radius: 2px; display: block; height: 3px; margin-top: 9px; overflow: hidden; }
.uc-task-list article > i b { background: var(--uc-accent); display: block; height: 100%; }
.uc-empty-copy { color: #777; font-size: 13px; padding: 18px 0; text-align: center; }
.uc-message-card { background: var(--uc-panel); border: 1px solid var(--uc-line); border-radius: 13px; margin-top: 12px; padding: 14px; }
.uc-message-card.is-unread { border-color: rgba(253,151,90,.28); }
.uc-message-card > header { align-items: center; display: flex; justify-content: space-between; }
.uc-message-card > header strong { font-size: 14px; }
.uc-message-card > header span,.uc-message-card > header time { color: #777; font-size: 11px; }
.uc-message-card > p { color: #a2a2a2; font-size: 13px; line-height: 1.65; margin: 9px 0 0; white-space: pre-wrap; }
.uc-message-reply { background: #202020; border-radius: 9px; margin-top: 10px; padding: 10px; }
.uc-message-reply b { color: var(--uc-accent); font-size: 11px; }
.uc-message-reply p { color: #b1b1b1; font-size: 12px; margin: 5px 0 0; }

/* Login and registration */
.uc-auth-shell { min-height: calc(var(--hg-viewport-height) - var(--hg-bottom-nav) - env(safe-area-inset-bottom)); padding: calc(34px + env(safe-area-inset-top)) 22px 34px; }
.uc-auth-brand > a { align-items: center; display: flex; gap: 10px; }
.uc-auth-brand img { border-radius: 12px; height: 40px; width: 40px; }
.uc-auth-brand a span { font-size: 15px; font-weight: 600; }
.uc-auth-brand h1 { font-size: 28px; margin: 34px 0 7px; }
.uc-auth-brand p { color: #838383; font-size: 13px; margin: 0; }
.uc-auth-card { background: var(--uc-panel); border: 1px solid var(--uc-line); border-radius: 18px; margin-top: 23px; padding: 18px; }
.uc-auth-card form { display: grid; gap: 14px; }
.uc-auth-card input { min-height: 48px; }
.uc-auth-card label > span small { color: #606060; font-size: 11px; margin-left: 4px; }
.uc-auth-card .uc-auth-remember { align-items: center; display: flex; gap: 8px; grid-template-columns: none; }
.uc-auth-remember input { accent-color: var(--uc-accent); min-height: 0; width: 16px; }
.uc-primary-button { background: var(--uc-accent); border: 0; border-radius: 11px; color: #17100c; font-size: 15px; font-weight: 700; height: 48px; margin-top: 2px; }
.uc-auth-switch { color: #777; font-size: 13px; margin: 18px 0 0; text-align: center; }
.uc-auth-switch a { color: var(--uc-accent) !important; }
.uc-auth-social { border-top: 1px solid var(--uc-line); margin-top: 18px; padding-top: 16px; }
.uc-auth-social > span { color: #777; display: block; font-size: 12px; margin-bottom: 10px; }

body.uc-theater-page .uc-bottom-nav,
body.uc-member-page .uc-bottom-nav,
body.uc-auth-page .uc-bottom-nav {
  background: rgba(24,24,24,.96);
  border-top-color: var(--uc-line);
}
body.uc-theater-page .uc-bottom-nav__item,
body.uc-member-page .uc-bottom-nav__item,
body.uc-auth-page .uc-bottom-nav__item { color: #777; }
body.uc-theater-page .uc-bottom-nav__item.is-active,
body.uc-member-page .uc-bottom-nav__item.is-active,
body.uc-auth-page .uc-bottom-nav__item.is-active { color: #fff; }

@media (max-width: 374px) {
  .uc-theater-channels { gap: 18px; }
  .uc-theater-tools { gap: 7px; }
  .uc-theater-tools > a { font-size: 13px; gap: 5px; }
  .uc-member-hero { padding-left: 19px; padding-right: 19px; }
  .uc-member-surface { padding-left: 14px; padding-right: 14px; }
  .uc-member-tabs { gap: 18px; }
  .uc-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width: 520px) {
  .uc-theater-grid { gap: 22px 15px; }
  .uc-member-video-grid { gap: 20px 13px; }
}
