:root {
  --hg-viewport-height: 100vh;
  --hg-vh: 1vh;
  --hg-orange: #ff6a00;
  --hg-orange-2: #ff8a18;
  --hg-orange-soft: #fff2e5;
  --hg-ink: #101010;
  --hg-text: #242424;
  --hg-muted: #969696;
  --hg-line: #ededed;
  --hg-surface: #ffffff;
  --hg-canvas: #f6f6f4;
  --hg-radius-sm: 10px;
  --hg-radius: 16px;
  --hg-radius-lg: 26px;
  --hg-shadow: 0 12px 34px rgba(20, 20, 20, .08);
  --hg-bottom-nav: clamp(46px, calc(var(--hg-vh) * 6.24), 53px);
}

@supports (height: 100dvh) {
  :root {
    --hg-viewport-height: 100dvh;
    --hg-vh: 1dvh;
  }
}

html {
  background: #e9e9e7;
  color-scheme: light;
}

html.hg-feed-viewport,
html.hg-player-viewport { background:#000; color-scheme:dark; }

body.hg-page {
  background: var(--hg-surface) !important;
  color: var(--hg-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  margin: 0 auto !important;
  max-width: 573px;
  min-height: var(--hg-viewport-height);
  overflow-x: hidden;
  padding: 0 0 calc(var(--hg-bottom-nav) + env(safe-area-inset-bottom)) !important;
  position: relative;
  width: 100%;
}

body.hg-page,
body.hg-page * {
  box-sizing: border-box;
}

body.hg-page a {
  color: inherit;
  text-decoration: none;
}

body.hg-page button,
body.hg-page input {
  font: inherit;
}

body.hg-page img {
  display: block;
  max-width: 100%;
}

body.hg-page .show-pc,
body.hg-page .head_box,
body.hg-page > .header,
body.hg-page .extra-fab-tools,
body.hg-page .theme-foot-text,
body.hg-page .foot-wrap,
body.hg-page .mac-app-dl-bar,
body.hg-page .ads,
body.hg-page .ad_fixed,
body.hg-page #right-float {
  display: none !important;
}

body.hg-page .member-wrap,
body.hg-page .container,
body.hg-page .row,
body.hg-page .pannel {
  background: transparent;
  float: none;
  margin: 0;
  max-width: none;
  padding: 0;
  width: auto;
}

body.hg-subpage {
  padding-bottom: 0 !important;
}

body.hg-subpage .uc-bottom-nav {
  display: none !important;
}

.hg-shell {
  min-height: calc(var(--hg-viewport-height) - var(--hg-bottom-nav));
  padding-bottom: 20px;
}

.hg-safe-top {
  height: max(18px, env(safe-area-inset-top));
}

.hg-page-head {
  align-items: center;
  background: rgba(255,255,255,.94);
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  min-height: 66px;
  padding: 6px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hg-page-head__title {
  font-size: 22px;
  font-weight: 700;
  grid-column: 2;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.hg-page-head__action {
  color: var(--hg-muted);
  font-size: 15px;
  grid-column: 3;
  text-align: right;
}

.hg-back,
.hg-icon-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--hg-ink);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.hg-back::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  height: 13px;
  transform: rotate(45deg);
  width: 13px;
}

.hg-search-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.hg-search-icon::after {
  background: currentColor;
  bottom: -5px;
  content: "";
  height: 2px;
  position: absolute;
  right: -4px;
  transform: rotate(45deg);
  width: 8px;
}

.hg-pill {
  align-items: center;
  background: #f7f7f7;
  border: 0;
  border-radius: 12px;
  color: var(--hg-text);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.hg-pill.is-active,
.hg-pill--orange {
  background: var(--hg-orange-soft);
  color: var(--hg-orange);
}

.hg-scroll-row {
  -ms-overflow-style: none;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
}

.hg-scroll-row::-webkit-scrollbar { display: none; }

.hg-poster {
  aspect-ratio: 2 / 3;
  background: #ececec;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}

.hg-poster img,
.hg-poster .lazyload,
.hg-poster .lazyloaded {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hg-badge {
  background: #ff5a5f;
  border-radius: 0 0 9px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  left: 0;
  line-height: 25px;
  padding: 0 9px;
  position: absolute;
  top: 0;
  z-index: 2;
}

.hg-badge--mint { background: #28c9a8; }
.hg-badge--orange { background: var(--hg-orange); }

.hg-heat {
  align-items: center;
  bottom: 9px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  left: 10px;
  position: absolute;
  text-shadow: 0 1px 5px rgba(0,0,0,.75);
  z-index: 2;
}

.hg-heat::before {
  color: #fff;
  content: "◆";
  font-size: 9px;
  transform: rotate(45deg);
}

.hg-card-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--hg-text);
  display: -webkit-box;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 10px 0 0;
  min-height: 22px;
  overflow: hidden;
}

.hg-card-meta {
  color: #aaa;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-grid-2,
.hg-grid-3 {
  display: grid;
  gap: 18px 12px;
  padding: 18px 20px 26px;
}

.hg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 9px; }

.hg-empty {
  align-items: center;
  color: var(--hg-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52vh;
  padding: 40px 20px;
  text-align: center;
}

.hg-empty__reel {
  height: 94px;
  margin-bottom: 26px;
  position: relative;
  width: 132px;
}

.hg-empty__reel::before,
.hg-empty__reel::after {
  background: radial-gradient(circle at 50% 26%, #fff 0 10px, transparent 11px),
              radial-gradient(circle at 25% 60%, #fff 0 10px, transparent 11px),
              radial-gradient(circle at 75% 60%, #fff 0 10px, transparent 11px),
              #20bdb4;
  border: 4px solid #12a49e;
  border-radius: 50%;
  content: "";
  height: 72px;
  position: absolute;
  width: 72px;
}

.hg-empty__reel::before { left: 8px; top: 9px; }
.hg-empty__reel::after { right: 8px; top: 0; }

.hg-empty__title { color: #555; font-size: 16px; margin: 0; }
.hg-empty__button { margin-top: 28px; }

/* bottom navigation */
.foot { display: contents !important; }
.foot > :not(.uc-bottom-nav):not(script):not(style) { display: none !important; }
.uc-bottom-nav {
  align-items: center;
  background: rgba(250,250,250,.96);
  border-top: 1px solid rgba(0,0,0,.03);
  bottom: 0;
  display: flex !important;
  height: calc(var(--hg-bottom-nav) + env(safe-area-inset-bottom));
  justify-content: space-around;
  left: 50%;
  max-width: 573px;
  padding: 0 8px env(safe-area-inset-bottom);
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.uc-bottom-nav__item {
  align-items: center;
  color: #8d8d8d;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
}

.uc-bottom-nav__item.is-active { color: #111; }

/* home follow + vertical video feed */
.hg-home { background:#fff; color:#111; min-height:calc(var(--hg-viewport-height) - var(--hg-bottom-nav)); }
.hg-home-shell { height:calc(var(--hg-viewport-height) - var(--hg-bottom-nav) - env(safe-area-inset-bottom)); min-height:0; overflow:hidden; position:relative; }
.hg-home__tabs {
  align-items:flex-end;
  background:rgba(255,255,255,.96);
  display:flex;
  gap:28px;
  justify-content:center;
  left:50%;
  max-width:573px;
  padding:calc(20px + env(safe-area-inset-top)) 52px 0;
  position:fixed;
  top:0;
  transform:translateX(-50%);
  width:100%;
  z-index:90;
}
.hg-home__tabs > button,
.hg-home__tabs > a,
.hg-home__category > .hg-home__category-toggle { background:transparent; border:0; color:#777; flex:0 0 auto; font-size:16px !important; font-weight:500; line-height:20px; padding:0 0 13px; position:relative; }
.hg-home__tabs > button,
.hg-home__category button { cursor:pointer; }
.hg-home__tabs > .is-active,
.hg-home__category > .hg-home__category-toggle.is-active { color:#111; }
.hg-home__category { flex:0 0 auto; position:relative; }
.hg-home__category-toggle { align-items:center; display:flex; gap:4px; }
.hg-home__category-toggle svg { fill:none; height:12px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; transition:transform .16s ease; width:12px; }
.hg-home__category-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.hg-home__category-menu { background:rgba(255,255,255,.97); border:1px solid rgba(0,0,0,.08); border-radius:11px; box-shadow:0 12px 30px rgba(0,0,0,.18); display:grid; gap:2px; left:50%; min-width:108px; padding:6px; position:absolute; top:calc(100% - 5px); transform:translateX(-50%); z-index:92; }
.hg-home__category-menu[hidden] { display:none; }
.hg-home__category-menu button { background:transparent; border:0; border-radius:7px; color:#444 !important; font-size:15px !important; font-weight:600; line-height:20px; padding:9px 13px !important; text-align:center; white-space:nowrap; width:100%; }
.hg-home__category-menu button.is-active { background:rgba(0,0,0,.08); color:#111 !important; }
.hg-home__search { align-items:center; bottom:15px; display:flex; height:17px; margin-left:0; padding:0 !important; position:absolute !important; right:18px; }
.hg-home__search .hg-search-icon { border-width:1.7px; height:14px; width:14px; }
.hg-home__search .hg-search-icon::after { bottom:-4px; height:1.7px; right:-4px; width:6px; }

.hg-follow { height:100%; overflow-y:auto; padding:142px 24px 36px; }
.hg-follow__identity { text-align:center; }
.hg-creator-card__avatar { align-items:center; background:linear-gradient(135deg,#ff8e26,#ffd523); border-radius:50%; display:flex; font-size:30px; font-weight:900; height:82px; justify-content:center; margin:0 auto 12px; width:82px; }
.hg-follow__identity h1 { font-size:21px; margin:0; }
.hg-follow__works { display:grid; gap:10px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:54px; }
.hg-creator-card__work .hg-poster { border-radius:12px; }
.hg-creator-card__work p { font-size:14px; margin:8px 0 0; overflow:hidden; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.hg-follow__button { background:linear-gradient(90deg,var(--hg-orange),#ff922d); border:0; border-radius:13px; color:#fff; display:block; font-size:16px; font-weight:700; height:58px; margin:54px 0 0 auto; width:46%; }
.hg-follow__button.is-following { background:#f2f2f2; color:#777; }

.hg-feed-channel { height:100%; overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain; scroll-snap-type:y mandatory; scrollbar-width:none; }
.hg-feed-channel::-webkit-scrollbar { display:none; }
.hg-feed-channel[hidden] { display:none !important; }
.hg-feed-slide { background:#080808; color:#fff; height:100%; min-height:100%; overflow:hidden; position:relative; scroll-snap-align:start; scroll-snap-stop:always; }
.hg-feed-slide__poster,
.hg-feed-slide__player { height:100%; inset:0; position:absolute; width:100%; }
.hg-feed-slide__poster { background-color:#141414; background-position:center; background-size:cover; filter:blur(0); transform:scale(1.01); }
.hg-feed-slide__player { background:#000; opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:2; }
.hg-feed-slide__player .dplayer { height:100%; width:100%; }
.hg-feed-slide__player .dplayer-video { height:100%; object-fit:cover; width:100%; }
.hg-feed-slide__player .dplayer-controller,
.hg-feed-slide__player .dplayer-controller-mask,
.hg-feed-slide__player .dplayer-mobile-play,
.hg-feed-slide__player .dplayer-menu,
.hg-feed-slide__player .dplayer-notice,
.hg-feed-slide__player .dplayer-bezel-icon { display:none !important; }
.hg-feed-slide.is-loaded .hg-feed-slide__player { opacity:1; }
.hg-feed-slide__state { align-items:center; background:rgba(0,0,0,.28); color:#fff; display:flex; flex-direction:column; font-size:14px; gap:12px; inset:0; justify-content:center; padding:24px; pointer-events:none; position:absolute; text-align:center; z-index:10; }
.hg-feed-slide__state[hidden] { display:none !important; }
.hg-feed-slide__spinner { animation:hg-player-spin .85s linear infinite; border:3px solid rgba(255,255,255,.34); border-radius:50%; border-top-color:#fff; height:30px; width:30px; }
.hg-feed-slide__state:not(.is-loading) .hg-feed-slide__spinner { display:none; }
.hg-feed-slide__state button { background:#fff; border:0; border-radius:22px; color:#111; font-size:14px; min-width:104px; padding:10px 18px; pointer-events:auto; }
.hg-feed-slide__shade { background:linear-gradient(180deg,rgba(0,0,0,.52),transparent 19%,transparent 55%,rgba(0,0,0,.86) 88%,rgba(0,0,0,.96)); inset:0; pointer-events:none; position:absolute; z-index:4; }
.hg-feed-slide__play { align-items:center; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.4); border-radius:50%; display:flex; height:62px; justify-content:center; left:50%; position:absolute; top:49%; transform:translate(-50%,-50%); transition:.2s; width:62px; z-index:9; }
.hg-feed-slide__play span { border-bottom:13px solid transparent; border-left:20px solid #fff; border-top:13px solid transparent; filter:drop-shadow(0 0 1px #555); margin-left:5px; }
.hg-feed-slide__play.is-playing { opacity:0; pointer-events:none; transform:translate(-50%,-50%) scale(.85); }
.hg-feed-slide__rail { bottom:calc(132px + var(--hg-feed-ui-bottom,0px)); display:flex; flex-direction:column; gap:18px; position:absolute; right:14px; z-index:8; }
.hg-feed-slide__rail button,
.hg-feed-slide__rail a { align-items:center; background:transparent; border:0; color:#fff; display:flex; flex-direction:column; font-size:12px; gap:2px; min-width:42px; padding:0; }
.hg-feed-slide__caption { bottom:calc(clamp(38px,calc(var(--hg-vh) * 5),46px) + var(--hg-feed-ui-bottom,0px)); left:14px; max-width:calc(100% - 90px); position:absolute; z-index:8; }
.hg-feed-slide__caption h1 { color:#fd975a; font-size:clamp(15px,4.3vw,17px); margin:0 0 9px; overflow:hidden; text-overflow:ellipsis; -webkit-user-select:none; user-select:none; white-space:nowrap; }
.hg-feed-slide__caption h1 a { color:inherit; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-feed-slide__caption p { color:rgba(255,255,255,.76); font-size:14px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-feed-slide__complete { align-items:center; background:rgb(0 0 0 / 60%); bottom:10px; column-gap:6px; display:flex; height:auto; left:0; min-height:0; padding:5px 14px; position:absolute; right:0; z-index:8; }
.hg-feed-slide__complete-series { align-items:center; color:inherit; column-gap:6px; display:flex; flex:1 1 auto; min-width:0; }
.hg-feed-slide__complete-label { color:rgba(255,255,255,.76); font-size:14px; font-weight:400; line-height:20px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-feed-slide__complete-next { appearance:none; -webkit-appearance:none; background:transparent; border:0; color:inherit; cursor:pointer; flex:0 0 auto; font-size:14px; font-weight:500; margin:-5px -4px -5px 0; padding:5px 4px 5px 10px; white-space:nowrap; }
.hg-feed-slide__complete-next:disabled { cursor:default; opacity:.62; }

.hg-home.is-feed-mode { background:#000; color:#fff; padding-bottom:calc(var(--hg-bottom-nav) + env(safe-area-inset-bottom)) !important; }
.hg-home.is-feed-mode .hg-home__tabs { background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.08)); }
.hg-home.is-feed-mode .hg-home__tabs > button,
.hg-home.is-feed-mode .hg-home__tabs > a,
.hg-home.is-feed-mode .hg-home__category > .hg-home__category-toggle { color:rgba(255,255,255,.65); text-shadow:0 1px 4px rgba(0,0,0,.32); }
.hg-home.is-feed-mode .hg-home__tabs > .is-active,
.hg-home.is-feed-mode .hg-home__category > .hg-home__category-toggle.is-active { color:#fff; }
.hg-home.is-feed-mode .hg-home__category-menu { background:rgba(20,20,20,.94); border-color:rgba(255,255,255,.13); box-shadow:0 14px 34px rgba(0,0,0,.38); }
.hg-home.is-feed-mode .hg-home__category-menu button { color:rgba(255,255,255,.76) !important; text-shadow:none; }
.hg-home.is-feed-mode .hg-home__category-menu button.is-active { background:rgba(255,255,255,.14); color:#fff !important; }
.hg-home.is-feed-mode .hg-search-icon { border-color:#fff; }
.hg-home.is-feed-mode .hg-search-icon::after { background:#fff; }
.hg-home.is-feed-mode .uc-bottom-nav { background:#1c1c1c; border-top-color:rgba(255,255,255,.06); }
.hg-home.is-feed-mode .uc-bottom-nav__item { color:#858585; }
.hg-home.is-feed-mode .uc-bottom-nav__item.is-active { color:#fff; }

/* 推荐页内分集播放：复用当前 video，只切换为播放页控制层。 */
.hg-feed-episode-ui {
  --hg-player-edge-x:clamp(14px,4vw,24px);
  --hg-player-bottom:env(safe-area-inset-bottom);
  --hg-player-episode-height:var(--hg-bottom-nav);
  --hg-player-settings-size:clamp(48px,13vw,54px);
  color:#fff;
  inset:0;
  pointer-events:none;
  position:absolute;
  z-index:20;
}
.hg-feed-episode-ui[hidden] { display:none !important; }
.hg-feed-episode-ui .hg-player__top,
.hg-feed-episode-ui .hg-player__episodes,
.hg-feed-episode-ui .hg-player__settings-toggle,
.hg-feed-episode-ui .hg-player__settings-menu,
.hg-feed-episode-ui .hg-sheet-backdrop { pointer-events:auto; }
.hg-feed-episode-ui .hg-back { color:#fff; }
.hg-feed-episode-ui .hg-sheet-backdrop { z-index:1100; }
.hg-feed-episode-ui .hg-episode-grid button { align-items:center; background:#f7f7f7; border:0; border-radius:10px; color:#222; display:flex; height:54px; justify-content:center; min-width:0; padding:3px; }
.hg-feed-episode-ui .hg-episode-grid button.is-active { background:var(--hg-orange-soft); color:var(--hg-orange); }

.hg-home.is-episode-mode { --hg-feed-ui-bottom:calc(var(--hg-bottom-nav) + env(safe-area-inset-bottom)); min-height:var(--hg-viewport-height); padding-bottom:0 !important; }
.hg-home.is-episode-mode .hg-home-shell {
  height:var(--hg-viewport-height);
}
.hg-home.is-episode-mode .hg-home__tabs,
.hg-home.is-episode-mode .uc-bottom-nav,
.hg-home.is-episode-mode > .foot { display:none !important; }
.hg-home.is-episode-mode .hg-feed-slide__complete { display:none; }
.hg-home.is-episode-mode .hg-feed-slide__shade { background:linear-gradient(180deg,rgba(0,0,0,.6),transparent 22%,transparent 62%,rgba(0,0,0,.92)); }

/* theater */
.hg-theater { background: linear-gradient(180deg,#f0faf9 0,#fff 185px); }
.hg-theater__top { padding: 22px 18px 0; }
.hg-searchbar { align-items:center; background:#fff; border-radius:14px; box-shadow:0 5px 20px rgba(30,80,70,.05); color:#9b9b9b; display:flex; gap:10px; height:52px; padding:0 16px; }
.hg-searchbar input { background:transparent; border:0; flex:1; min-width:0; outline:0; }
.hg-searchbar__ai { border-left:1px solid #ededed; color:#aaa; padding-left:14px; }
.hg-channel-tabs { display:flex; gap:22px; overflow-x:auto; padding:16px 0 13px; scrollbar-width:none; }
.hg-channel-tabs a { color:#777; flex:0 0 auto; font-size:17px; font-weight:700; }
.hg-channel-tabs a.is-active { color:#111; font-size:21px; }
.hg-feature-links { display:grid; gap:12px; grid-template-columns:repeat(3,1fr); padding:0 18px; }
.hg-feature-links .hg-pill { background:#fff; box-shadow:0 4px 18px rgba(0,0,0,.035); font-size:16px; justify-content:flex-start; padding:0 14px; }
.hg-feature-dot { align-items:center; border-radius:7px; color:#fff; display:inline-flex; height:25px; justify-content:center; width:25px; }
.hg-feature-dot--filter{background:#8761df}.hg-feature-dot--rank{background:#ff7c24}.hg-feature-dot--new{background:#1ebec4}
.hg-theater .hg-grid-2 { padding-top:18px; }
.hg-theater .hg-card-title { font-size:16px; }
.hg-tags { display:flex; gap:6px; margin-top:8px; overflow:hidden; }
.hg-tags span { background:#f7f7f5; color:#aaa; font-size:12px; padding:3px 6px; white-space:nowrap; }

/* detail and search */
.hg-detail-hero { background:#181818; color:#fff; min-height:370px; overflow:hidden; padding:20px; position:relative; }
.hg-detail-hero::before { background-image:var(--hg-detail-bg); background-position:center; background-size:cover; content:""; filter:blur(28px); inset:-35px; opacity:.45; position:absolute; }
.hg-detail-hero::after { background:linear-gradient(180deg,rgba(0,0,0,.12),#181818 92%); content:""; inset:0; position:absolute; }
.hg-detail-hero > * { position:relative; z-index:2; }
.hg-detail-hero .hg-back { color:#fff; }
.hg-detail-hero__content { align-items:flex-end; display:flex; gap:18px; margin-top:32px; }
.hg-detail-hero__poster { border-radius:14px; flex:0 0 145px; overflow:hidden; }
.hg-detail-hero__poster img { aspect-ratio:2/3; object-fit:cover; width:100%; }
.hg-detail-hero__info { min-width:0; }
.hg-detail-hero__info h1 { font-size:24px; line-height:1.25; margin:0 0 12px; }
.hg-detail-hero__info p { color:rgba(255,255,255,.68); font-size:14px; line-height:1.6; margin:0 0 7px; }
.hg-detail-actions { display:grid; gap:12px; grid-template-columns:1fr 78px; padding:20px; }
.hg-detail-actions a,.hg-detail-actions button { align-items:center; border:0; border-radius:13px; display:flex; font-weight:700; height:52px; justify-content:center; }
.hg-detail-actions__play { background:linear-gradient(90deg,var(--hg-orange),#ff8a1e); color:#fff !important; }
.hg-detail-actions__fav { background:#f5f5f5; color:#222; }
.hg-detail-section { padding:0 20px 20px; }
.hg-detail-section h2 { font-size:19px; margin:16px 0; }
.hg-detail-desc { color:#777; font-size:14px; line-height:1.7; }
.hg-detail-episodes { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.hg-detail-episodes a { align-items:center; background:#f7f7f7; border-radius:10px; display:flex; flex:0 0 58px; height:50px; justify-content:center; }
.hg-search-page { background:linear-gradient(180deg,#f2faf9,#fff 190px); }
.hg-search-page__top { padding:18px; }
.hg-search-page__title { font-size:16px; margin:18px 2px 0; }
.hg-search-page__title em { color:var(--hg-orange); font-style:normal; }
.hg-search-sort { display:flex; gap:10px; padding:0 18px; }

/* filters */
.hg-filter-page { background:#fff; }
.hg-filter-panel { padding:12px 18px 0; }
.hg-filter-row { align-items:flex-start; display:flex; gap:18px; margin-bottom:16px; min-width:0; }
.hg-filter-row__label { background:var(--hg-orange-soft); border-radius:10px; color:#d9832c; flex:0 0 90px; font-size:15px; font-weight:700; line-height:42px; padding:0 10px; text-align:center; }
.hg-filter-row__options { align-items:center; display:flex; flex:1; gap:24px; min-height:42px; overflow-x:auto; scrollbar-width:none; }
.hg-filter-row__options a,.hg-filter-row__options button { background:transparent; border:0; color:#222; flex:0 0 auto; font-size:15px; padding:10px 0; }
.hg-filter-extra[hidden] { display:none !important; }
.hg-filter-toggle { display:block; margin:3px auto 8px; min-height:38px; }
.hg-filter-page .hg-grid-3 { padding-top:12px; }

/* new releases */
.hg-gender-tabs { display:flex; gap:20px; padding:0 18px 13px; }
.hg-gender-tabs a { border-radius:12px; font-size:16px; padding:12px 20px; }
.hg-gender-tabs a.is-active { background:var(--hg-orange-soft); color:#d9832c; }

/* ranking */
.hg-rank-hero { background:linear-gradient(135deg,#49dfc5 0,#9de6d6 45%,#eff9ec 100%); min-height:250px; padding:18px 24px 25px; position:relative; }
.hg-rank-hero::after { border:28px solid rgba(255,255,255,.22); border-radius:50%; content:""; height:130px; position:absolute; right:34px; top:54px; width:130px; }
.hg-rank-hero .hg-back { position:relative; z-index:2; }
.hg-rank-hero h1 { font-size:25px; margin:32px 0 8px; position:relative; z-index:2; }
.hg-rank-hero p { color:rgba(0,0,0,.4); margin:0; position:relative; z-index:2; }
.hg-rank-panel { background:#fff; border-radius:28px 28px 0 0; margin-top:-26px; min-height:calc(100vh - 224px); padding-top:18px; position:relative; z-index:3; }
.hg-rank-list { padding:12px 20px 32px; }
.hg-rank-item { display:grid; gap:16px; grid-template-columns:114px 1fr auto; margin-bottom:20px; }
.hg-rank-item .hg-poster { aspect-ratio:3/4; }
.hg-rank-item__main { min-width:0; padding-top:8px; }
.hg-rank-item__title { font-size:17px; font-weight:700; margin:0 0 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-rank-item__meta,.hg-rank-item__desc { color:#999; font-size:13px; line-height:1.5; margin:0 0 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-rank-item__recommend { color:#e9892d; font-size:13px; font-weight:700; padding-top:12px; white-space:nowrap; }
.hg-rank-number { align-items:center; border-radius:9px 0 9px 0; color:#fff; display:flex; font-weight:800; height:30px; justify-content:center; left:0; position:absolute; top:0; width:30px; z-index:3; }
.hg-rank-number--1{background:#ffb02f}.hg-rank-number--2{background:#25cdb9}.hg-rank-number--3{background:#4d9ae8}.hg-rank-number--n{background:#777}

/* profile */
.hg-profile { background:linear-gradient(180deg,#f4ffff 0,#fff 360px); }
.hg-profile__head { padding:32px 26px 20px; position:relative; }
.hg-profile__tools { display:flex; gap:18px; position:absolute; right:22px; top:24px; }
.hg-profile__identity { align-items:center; display:flex; gap:20px; margin-top:48px; }
.hg-profile__avatar { background:linear-gradient(145deg,#7ec9f8,#fd9658); border-radius:50%; height:74px; object-fit:cover; width:74px; }
.hg-profile__identity h1 { font-size:25px; margin:0 0 7px; }
.hg-profile__identity p { color:#555; margin:0; }
.hg-profile__quick { display:grid; grid-template-columns:repeat(3,1fr); margin-top:40px; text-align:center; }
.hg-profile__quick a { align-items:center; display:flex; flex-direction:column; font-size:15px; gap:9px; }
.hg-profile__quick-icon { align-items:center; border:2px solid #111; border-radius:7px; display:flex; font-size:18px; height:29px; justify-content:center; width:34px; }
.hg-profile__content { background:#fff; border-radius:28px 28px 0 0; min-height:630px; padding:18px 0 80px; }
.hg-profile-tabs { align-items:center; display:flex; gap:26px; overflow-x:auto; padding:0 25px 12px; scrollbar-width:none; }
.hg-profile-tabs a { color:#999; flex:0 0 auto; font-size:17px; }
.hg-profile-tabs a.is-active { color:#111; font-weight:700; }
.hg-profile-tabs .hg-profile-search { margin-left:auto; }
.hg-profile-filters { display:flex; gap:10px; overflow-x:auto; padding:0 25px 10px; scrollbar-width:none; }
.hg-profile-list { padding:10px 25px; }
.hg-profile-list .hg-grid-3 { padding:0; }
.hg-profile-list .data__list { list-style:none; margin:0; }
.hg-profile-list .data__item { float:none !important; margin:0 !important; min-width:0; padding:0 !important; width:auto !important; }
.hg-profile-list .data__img { float:none !important; height:auto !important; margin:0 !important; width:100% !important; }
.hg-profile-list .data__thumb { aspect-ratio:2/3; background-position:center !important; background-size:cover !important; border-radius:13px; display:block; height:auto !important; width:100% !important; }
.hg-profile-list .data__txt { float:none !important; padding:0 !important; width:auto !important; }
.hg-profile-list .data__title { font-size:15px; margin:9px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-profile-list .data__txt p { color:#aaa; font-size:12px; margin:5px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-profile-list .data__del,.hg-profile-list input[type="checkbox"],.hg-profile-list .xz-box { display:none !important; }
.hg-profile-empty { min-height:470px; }
.hg-profile-empty__cover { aspect-ratio:2/3; background:#222; border-radius:12px; margin-bottom:28px; overflow:hidden; width:112px; }
.hg-profile-empty h2 { color:#111; font-size:20px; margin:0 0 10px; }
.hg-profile-empty p { margin:0; }
.hg-fab { align-items:center; background:linear-gradient(135deg,#ffb53a,#ff6400); border:0; border-radius:14px; bottom:90px; box-shadow:0 8px 22px rgba(255,106,0,.25); color:#fff; display:flex; font-size:28px; height:58px; justify-content:center; position:fixed; right:max(calc((100vw - 573px)/2 + 20px),20px); width:58px; z-index:20; }

/* downloads */
.hg-download-tabs { display:flex; justify-content:center; gap:74px; padding:13px 0 0; }
.hg-download-tabs button { background:transparent; border:0; color:#aaa; font-size:19px; font-weight:700; padding:10px 0 15px; position:relative; }
.hg-download-tabs button.is-active { color:#111; }
.hg-download-tabs button.is-active::after { background:#111; bottom:3px; content:""; height:3px; left:50%; position:absolute; transform:translateX(-50%); width:28px; }
.hg-download-categories { display:flex; gap:8px; overflow-x:auto; padding:12px 30px; scrollbar-width:none; }
.hg-download-panel[hidden] { display:none !important; }
.hg-storage { bottom:24px; color:#aaa; font-size:13px; left:0; position:absolute; right:0; text-align:center; }

/* settings */
.hg-settings { background:#f5f5f4; min-height:100vh; }
.hg-settings-group { background:#fff; border-radius:14px; margin:12px 24px; overflow:hidden; }
.hg-setting-row { align-items:center; background:#fff; border:0; color:#222; display:flex; font-size:16px; justify-content:space-between; min-height:65px; padding:0 20px; text-align:left; width:100%; }
.hg-setting-row + .hg-setting-row { border-top:1px solid #fafafa; }
.hg-setting-row__right { align-items:center; color:#aaa; display:flex; gap:10px; }
.hg-chevron { border-right:2px solid #bbb; border-top:2px solid #bbb; height:9px; transform:rotate(45deg); width:9px; }
.hg-switch { background:#e5e5e5; border:0; border-radius:20px; height:28px; padding:3px; transition:.2s; width:48px; }
.hg-switch::before { background:#fff; border-radius:50%; box-shadow:0 1px 4px rgba(0,0,0,.14); content:""; display:block; height:22px; transform:translateX(0); transition:.2s; width:22px; }
.hg-switch[aria-pressed="true"] { background:var(--hg-orange); }
.hg-switch[aria-pressed="true"]::before { transform:translateX(20px); }

/* player */
body.hg-player-page { background:#000 !important; color:#fff; height:var(--hg-viewport-height); min-height:var(--hg-viewport-height); overflow:hidden; padding-bottom:0 !important; }
.hg-player { background:#000; height:var(--hg-viewport-height); min-height:var(--hg-viewport-height); position:relative; }
.hg-player__stage {
  --hg-feed-ui-bottom:calc(var(--hg-bottom-nav) + env(safe-area-inset-bottom));
  --hg-player-edge-x:clamp(14px,4vw,24px);
  --hg-player-bottom:env(safe-area-inset-bottom);
  --hg-player-episode-height:var(--hg-bottom-nav);
  --hg-player-settings-size:clamp(48px,13vw,54px);
  height:var(--hg-viewport-height);
  overflow:hidden;
  position:relative;
}
.hg-player__stage .MacPlayer,
.hg-player__stage .player_video,
.hg-player__stage .hg-player__media-layer,
.hg-player__stage iframe,
.hg-player__stage video { height:100% !important; inset:0; object-fit:cover; padding:0 !important; position:absolute !important; width:100% !important; }
.hg-player__media-layer { background:#000; opacity:0; pointer-events:none; transition:opacity .2s ease; visibility:hidden; z-index:1; }
.hg-player__media-layer.is-active { opacity:1; pointer-events:auto; visibility:visible; z-index:2; }
.hg-mobile-player,
.hg-mobile-player .dplayer { background:#000; height:100%; inset:0; position:absolute; width:100%; }
.hg-mobile-player .dplayer-video { object-fit:cover; }
.hg-mobile-player .dplayer-bezel .dplayer-bezel-icon { display:none !important; }
.hg-mobile-player__state { align-items:center; background:rgba(0,0,0,.18); color:rgba(255,255,255,.86); display:flex; flex-direction:column; font-size:14px; gap:12px; inset:0; justify-content:center; padding:28px; position:absolute; text-align:center; z-index:3; }
.hg-mobile-player__state[hidden] { display:none; }
.hg-mobile-player__spinner { animation:hg-player-spin .8s linear infinite; border:3px solid rgba(255,255,255,.28); border-radius:50%; border-top-color:#fff; display:none; height:34px; width:34px; }
.hg-mobile-player__state.is-loading .hg-mobile-player__spinner { display:block; }
.hg-mobile-player__state.is-error { background:rgba(0,0,0,.72); color:#ffb19b; }
.hg-mobile-player__state button { background:#fff; border:0; border-radius:999px; color:#111; font-weight:700; min-height:38px; padding:0 20px; }
.hg-mobile-player__start { background:rgba(0,0,0,.58); border:1px solid rgba(255,255,255,.5); border-radius:999px; color:#fff; font-size:15px; left:50%; min-height:46px; padding:0 22px; position:absolute; top:50%; transform:translate(-50%,-50%); z-index:3; }
.hg-mobile-player__start[hidden] { display:none; }
@keyframes hg-player-spin { to { transform:rotate(360deg); } }
.hg-player__fallback { background-position:center; background-size:cover; inset:0; position:absolute; }
.hg-player__shade { background:linear-gradient(180deg,rgba(0,0,0,.6),transparent 22%,transparent 62%,rgba(0,0,0,.92)); inset:0; pointer-events:none; position:absolute; z-index:4; }
.hg-player__top { align-items:center; display:flex; gap:clamp(8px,2.8vw,12px); left:var(--hg-player-edge-x); position:absolute; right:var(--hg-player-edge-x); top:max(clamp(12px,calc(var(--hg-vh) * 2.4),20px),env(safe-area-inset-top)); z-index:8; }
.hg-player__top .hg-back { color:#fff; }
.hg-player__speed { margin-left:auto; }
.hg-player__more { font-size:28px; letter-spacing:2px; }
body.hg-page .hg-player__episodes { align-items:center; background:rgb(0 0 0 / 40%); border:1px solid rgba(255,255,255,.08); border-radius:clamp(10px,3.3vw,13px); bottom:var(--hg-player-bottom); color:#fff; display:flex; font-size:clamp(15px,4.3vw,17px); font-weight:400; height:var(--hg-player-episode-height); justify-content:space-between; left:var(--hg-player-edge-x); padding:0 clamp(13px,4.5vw,18px); position:absolute; right:calc(var(--hg-player-edge-x) + var(--hg-player-settings-size) + 8px); z-index:9; }
.hg-player__episodes > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-player__episodes-chevron { fill:none; flex:0 0 auto; height:20px; margin-left:8px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:2.25; width:20px; }
.hg-player__settings-toggle { align-items:center; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); background:rgb(0 0 0 / 40%); border:1px solid rgba(255,255,255,.12); border-radius:clamp(10px,3.3vw,13px); bottom:var(--hg-player-bottom); color:#fff; display:flex; height:var(--hg-player-episode-height); justify-content:center; padding:0; position:absolute; right:var(--hg-player-edge-x); width:var(--hg-player-settings-size); z-index:10; }
.hg-player__settings-toggle svg { fill:none; height:23px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:23px; }
.hg-player__settings-toggle[aria-expanded="true"] { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.32); }
.hg-player__settings-menu { -webkit-overflow-scrolling:touch; animation:hg-settings-rise .16s ease-out; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); background:rgba(18,18,18,.94); border:1px solid rgba(255,255,255,.13); border-radius:16px; bottom:calc(var(--hg-player-bottom) + var(--hg-player-episode-height) + 9px); box-shadow:0 16px 46px rgba(0,0,0,.42); color:#fff; max-height:calc(var(--hg-viewport-height) - var(--hg-player-bottom) - var(--hg-player-episode-height) - env(safe-area-inset-top) - 36px); max-width:calc(100% - (var(--hg-player-edge-x) * 2)); overflow-y:auto; overscroll-behavior:contain; padding:14px; position:absolute; right:var(--hg-player-edge-x); transform-origin:right bottom; width:310px; z-index:12; }
.hg-player__settings-menu[hidden] { display:none; }
@keyframes hg-settings-rise { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.hg-player__settings-group + .hg-player__settings-group { border-top:1px solid rgba(255,255,255,.1); margin-top:13px; padding-top:13px; }
.hg-player__settings-heading { align-items:center; display:flex; font-size:14px; font-weight:700; justify-content:space-between; margin-bottom:10px; }
.hg-player__settings-heading small { color:rgba(255,255,255,.58); font-size:12px; font-weight:500; }
.hg-player__settings-options { display:flex; flex-wrap:wrap; gap:7px; }
.hg-player__settings-options button { background:rgba(255,255,255,.08); border:1px solid transparent; border-radius:8px; color:rgba(255,255,255,.82); font-size:13px; min-height:34px; min-width:48px; padding:0 10px; }
.hg-player__settings-options button.is-active { background:#fff; color:#111; font-weight:700; }
.hg-player__settings-options button:disabled:not(.is-active) { color:rgba(255,255,255,.38); }
.hg-sheet-backdrop { background:rgba(0,0,0,.55); display:none; inset:0; position:fixed; z-index:1100; }
.hg-sheet-backdrop.is-open { display:block; }
.hg-sheet { background:#fff; border-radius:28px 28px 0 0; bottom:0; color:#222; left:50%; max-height:calc(var(--hg-vh) * 73); max-width:573px; overflow-y:auto; padding:20px 24px calc(22px + env(safe-area-inset-bottom)); position:absolute; transform:translateX(-50%); width:100%; }
.hg-sheet__handle { background:#ddd; border-radius:3px; height:4px; margin:0 auto 28px; width:52px; }
.hg-sheet__show { align-items:center; display:flex; gap:14px; }
.hg-sheet__show > div { align-items:baseline; display:flex; gap:12px; justify-content:space-between; min-width:0; width:100%; }
.hg-sheet__cover { border-radius:8px; height:68px; object-fit:cover; width:54px; }
.hg-sheet__show h2 { font-size:17px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hg-sheet__show p { color:#aaa; flex:0 0 auto; margin:0; }
.hg-sheet__source { background:#f7f7f7; border-radius:10px; display:block; font-size:13px; margin:20px 0 26px; padding:15px; }
.hg-sheet__tabs { display:flex; gap:28px; margin:8px 0 8px; }
.hg-sheet__tabs button { background:transparent; border:0; color:#aaa; font-size:18px; font-weight:700; }
.hg-sheet__tabs button.is-active { color:#111; }
.hg-episode-groups { display:flex; gap:30px; margin:0 0 10px; }
.hg-episode-groups button { background:transparent; border:0; color:#aaa; font-size:15px; }
.hg-episode-groups button.is-active { color:#111; font-weight:700; }
.hg-episode-grid { column-gap:12px; display:grid; grid-template-columns:repeat(6,1fr); row-gap:8px; }
.hg-episode-grid a { align-items:center; background:#f7f7f7; border-radius:10px; display:flex; height:54px; justify-content:center; }
.hg-episode-grid a.is-active { background:var(--hg-orange-soft); color:var(--hg-orange); }
.hg-sheet__fav { background:linear-gradient(90deg,var(--hg-orange-2),#ff7100); border:0; border-radius:12px; color:#fff; display:block; font-weight:700; height:52px; margin:22px auto 0; max-width:270px; width:100%; }

.hg-player-page--feed-embed .hg-player__shade,
.hg-player-page--feed-embed .hg-player__top,
.hg-player-page--feed-embed .hg-player__episodes,
.hg-player-page--feed-embed .hg-player__settings-toggle,
.hg-player-page--feed-embed .hg-player__settings-menu,
.hg-player-page--feed-embed .hg-sheet-backdrop,
.hg-player-page--feed-embed .foot { display:none !important; }
.hg-player-page--feed-embed .dplayer-controller,
.hg-player-page--feed-embed .dplayer-menu,
.hg-player-page--feed-embed .dplayer-notice { display:none !important; }

@media (min-width: 574px) {
  body.hg-page { box-shadow:0 0 40px rgba(0,0,0,.12); }
}

@media (max-width: 374px) {
  .hg-grid-3 { gap:16px 7px; padding-left:12px; padding-right:12px; }
  .hg-grid-2 { gap:16px 10px; padding-left:14px; padding-right:14px; }
  .hg-channel-tabs { gap:16px; }
  .hg-feature-links { gap:6px; padding-left:14px; padding-right:14px; }
  .hg-feature-links .hg-pill { font-size:14px; gap:6px; padding:0 7px; }
  .hg-feature-dot { border-radius:6px; height:22px; width:22px; }
  .hg-home__tabs { gap:18px; padding-left:44px; padding-right:44px; }
  .hg-home__tabs > button,
  .hg-home__tabs > a,
  .hg-home__category > .hg-home__category-toggle { font-size:16px !important; }
  .hg-home__search { margin-left:0; right:10px; }
  .hg-follow { padding-left:18px; padding-right:18px; }
  .hg-episode-grid { grid-template-columns:repeat(5,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; }
}
