:root {
  --channel-line: #ffffff12;
}

html body .site-header--design {
  height: auto;
  padding-inline: var(--site-gutter);
  background: var(--site-bg);
  border-bottom: 1px solid #ffffff18;
}

html body .site-header--design .header-inner {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 380px) repeat(3, max-content);
  grid-template-areas: "brand search vip wallet account" "nav nav nav nav nav";
  grid-template-rows: 71px 60px;
  gap: 0 32px !important;
  height: auto !important;
  zoom: 1;
}

html body .site-header--design .brand-lockup {
  grid-area: brand;
  justify-self: start;
  margin: 0 !important;
}

html body .site-header--design .brand-logo {
  width: 152px;
  height: auto;
}

html body .site-header--design .header-nav {
  grid-area: nav;
  height: 100%;
  gap: 32px !important;
  align-items: stretch;
}

html body .site-header--design .header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0 !important;
  color: #b5b7b9;
  font-size: 15px !important;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

html body .site-header--design .header-nav a:is(:hover, [aria-current]) {
  color: #fff;
}

.site-header--design .header-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--site-blue);
  transform: translateX(-50%);
}

html body .site-header--design .header-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  background: #202224;
}

html body .site-header--design .header-search:focus-within {
  border-color: var(--site-blue);
}

html body .site-header--design .header-wallet,
.header-membership {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--site-gold);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.header-membership { grid-area: vip; }
html body .site-header--design .header-wallet { grid-area: wallet; }
html body .site-header--design .header-wallet img { width: 22px; height: 22px; }
html body .site-header--design .header-wallet-separator { display: none; }
.header-account-control { grid-area: account; position: relative; }
html body .site-header--design .account-avatar-photo,
html body .site-header--design .account-avatar { width: 30px; height: 30px; flex-basis: 30px; }
html body .site-header--design .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.header-profile-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 120;
  display: grid;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: #1b1e20;
  box-shadow: 0 15px 35px #0006;
}

.header-profile-menu[hidden] { display: none; }

.header-profile-menu a,
.mobile-nav-drawer .drawer-links > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #e2e5e7;
  font-size: 14px;
  text-decoration: none;
}

.header-profile-menu a:hover,
.mobile-nav-drawer .drawer-links > a:is(:hover, [aria-current]) {
  background: var(--site-blue-panel);
  color: var(--site-blue-text);
}

.footer-brand .brand-logo { width: 150px; height: auto; }
html body .footer-box { padding-block: 8px; }
html body .friend-section { background: #191b1d; }

html body.is-home-page .page-shell {
  gap: 0;
  padding-block: 24px 42px;
}

html body.is-home-page .page-shell > :is(.hero-section, .home-notice, .home-ads, .content-section, .site-banner-ads) {
  width: var(--site-content) !important;
  max-width: none !important;
  margin-inline: auto;
  zoom: 1;
}

html body.is-home-page .hero-section {
  background: transparent;
  overflow: visible;
}

html body.is-home-page .hero-banner {
  aspect-ratio: 3.93453;
  height: auto !important;
}

html body.is-home-page .hero-swiper {
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 14px;
}

html body.is-home-page .hero-card {
  display: block;
  border-radius: 14px;
  background: #171b24;
}

html body.is-home-page .hero-image { object-fit: cover; }
html body.is-home-page .hero-overlay { background: linear-gradient(0deg, #080b18ef, #080b18a6 20%, #080b1830 44%, transparent 70%); }

html body.is-home-page .hero-info {
  inset: auto 8.5% 6% !important;
  width: auto !important;
  max-width: none !important;
  gap: 6px !important;
  zoom: 1;
}

html body.is-home-page .hero-title {
  display: block;
  font-size: clamp(18px, 2.4vw, 36px) !important;
  line-height: 1.23 !important;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.is-home-page .hero-summary {
  display: block;
  width: 100%;
  margin: 2px 0;
  overflow: hidden;
  color: #d4d6df;
  font-size: clamp(12px, 1.2vw, 17px) !important;
  line-height: 1.5 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 1;
}

.hero-meta,
.hero-keywords {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-meta {
  justify-content: space-between;
  width: 100%;
  color: #b3b8c4;
  font-size: clamp(12px, 1.2vw, 16px);
  white-space: nowrap;
}

.hero-keywords { overflow: hidden; }
.hero-meta strong { color: #ff268a; font-weight: 650; }

@media (min-width: 768px) {
  html body.is-home-page #heroSwiper .swiper-wrapper {
    transform: none !important;
  }

  html body.is-home-page #heroSwiper .swiper-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100% !important;
    pointer-events: none;
  }

  html body.is-home-page #heroSwiper .hero-card {
    --slide-width: 45.2%;
    --slide-shift: 0%;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--slide-width);
    height: auto;
    aspect-ratio: 16 / 9;
    visibility: hidden;
    transform: translate(calc(-50% + var(--slide-shift)), -50%);
    transition: transform .48s cubic-bezier(.22,.7,.2,1), width .48s cubic-bezier(.22,.7,.2,1);
  }

  html body.is-home-page #heroSwiper .swiper-slide:is([data-hero-slot="0"], :not([data-hero-slot]):first-child) { z-index: 3; }
  html body.is-home-page #heroSwiper :is([data-hero-slot="-1"], [data-hero-slot="1"]) { z-index: 2; }
  html body.is-home-page #heroSwiper :is([data-hero-slot="-2"], [data-hero-slot="2"]) { z-index: 1; }
  html body.is-home-page #heroSwiper .swiper-slide:is([data-hero-slot="0"], :not([data-hero-slot]):first-child) > .hero-card { visibility: visible; pointer-events: auto; }

  html body.is-home-page #heroSwiper :is([data-hero-slot="-1"], [data-hero-slot="1"]) > .hero-card {
    --slide-width: 31%;
    visibility: visible;
  }

  html body.is-home-page #heroSwiper :is([data-hero-slot="-2"], [data-hero-slot="2"]) > .hero-card {
    --slide-width: 27.2%;
    visibility: visible;
  }

  html body.is-home-page #heroSwiper [data-hero-slot="-1"] > .hero-card { --slide-shift: -59%; }
  html body.is-home-page #heroSwiper [data-hero-slot="1"] > .hero-card { --slide-shift: 59%; }
  html body.is-home-page #heroSwiper [data-hero-slot="-2"] > .hero-card { --slide-shift: -114%; }
  html body.is-home-page #heroSwiper [data-hero-slot="2"] > .hero-card { --slide-shift: 114%; }
  html body.is-home-page #heroSwiper [data-hero-slot]:not([data-hero-slot="0"]) .hero-info { visibility: hidden; }
  html body.is-home-page #heroSwiper :is([data-hero-slot="-1"], [data-hero-slot="1"]) .hero-overlay { background: #06091848; }
  html body.is-home-page #heroSwiper :is([data-hero-slot="-2"], [data-hero-slot="2"]) .hero-overlay { background: #06091875; }

  html body.is-home-page #heroSwiper .hero-controls {
    inset: 50% 10px auto !important;
    justify-content: space-between;
    max-width: none !important;
    transform: translateY(-50%);
    zoom: 1;
    pointer-events: none;
  }

  html body.is-home-page #heroSwiper .hero-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff35;
    border-radius: 50%;
    background: #191d2b;
    pointer-events: auto;
  }

  html body.is-home-page #heroSwiper .hero-arrow img { width: 16px; height: 16px; }
  html body.is-home-page #heroSwiper .hero-arrow:hover { background: var(--site-blue-panel); }
  html body.is-home-page #heroSwiper .hero-thumbs { display: none; }
}

html body.is-home-page .home-notice {
  min-height: 44px;
  gap: 0;
  margin-top: 24px;
  padding-inline: 14px 2px;
  border: 1px solid #123145;
  border-radius: 10px;
  background: #101a21;
}

html body.is-home-page .home-notice-label {
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--site-blue);
}

html body.is-home-page .home-notice-message {
  padding: 5px 14px;
  border: 0;
  background: none;
  color: #a9afb8;
  font-size: 14px;
  line-height: 22px;
}

html body.is-home-page .home-ads { margin-top: 24px; }
html body .cinema-ad-strip .home-ads { width: 100%; max-width: none; margin: 0; }
html body .home-ads { min-width: 0; scrollbar-width: none; }
html body .home-ads .home-marquee-track,
html body .home-ads .home-marquee-group { display: flex; width: max-content; gap: 14px; }
html body .home-ads .home-marquee-group { flex: none; align-items: inherit; }
html body.is-home-page .home-notice-message .home-marquee-group { gap: 14px; }
html body .home-ads .home-ad { gap: 7px; color: #ddd; }
html body .home-ads .home-ad img { border-radius: 17px; }

html body.is-home-page .page-shell > :is(.content-section, .site-banner-ads) {
  margin-top: 32px;
  background-color: transparent;
}

html body.is-home-page .page-shell > .content-section { padding: 0; gap: 26px; }
html body.is-home-page .section-title { font-size: 24px; line-height: 32px; font-weight: 700; }
html body.is-home-page .section-header { align-items: center; }
html body.is-home-page .section-title::before { width: 6px; height: 26px; margin-right: 4px; border-radius: 6px; }

html body:is(.home-page, .drama-shared-cards) .poster-card .poster-cover,
html body .account-library .poster-card .poster-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 10;
  border-radius: 12px;
}

html body .poster-card .poster-card-title { font-weight: 650; }
html body .poster-card .poster-card-body { color: var(--site-text); }
html body.is-home-page .poster-card .episode-badge { background: none; font-weight: 700; padding-inline: 0; }
html body.is-home-page .poster-card .poster-like-badge { display: none; }

html body .haijiao-channel {
  --site-breadcrumb-parent-scale: 1;
  width: var(--site-content) !important;
  max-width: none !important;
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--site-text);
  zoom: 1;
}

.channel-crumb,
html body .haijiao-channel .topic-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 18px;
}

.channel-crumb a { color: inherit; text-decoration: none; }
.channel-crumb a:hover { color: #fff; }

.channel-heading { margin: 0 0 24px; }
.channel-heading h1,
html body .haijiao-channel > h1 { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 650; }
.channel-heading p,
html body .haijiao-channel .topic-intro { margin: 9px 0 0; color: var(--site-muted); font-size: 13px; line-height: 1.5; }

.category-page .category-filters { margin: 0 0 22px; padding: 20px 24px; border-radius: 12px; background: #191b1d; }
.category-filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; }
.category-filter-line > span { flex: 0 0 46px; color: var(--site-muted); font-size: 13px; }
.category-filter-line a,
.category-summary a { padding: 7px 14px; border-radius: 6px; color: #c1c4c6; font-size: 13px; text-decoration: none; }
.category-filter-line a:is(:hover, [aria-current]) { background: var(--site-blue-panel); color: var(--site-blue-text); }
.category-summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0 0 18px; color: var(--site-muted); font-size: 13px; }
.category-summary p { margin: 0; }
.category-summary a { border: 1px solid var(--channel-line); }

html body .haijiao-channel .card-grid,
html body.is-home-page .card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 26px 20px !important;
  width: 100%;
}

html body .haijiao-channel.rank-layout .card-grid {
  gap: 32px 16px !important;
}

html body .haijiao-channel .rank-tabs { justify-content: flex-start; gap: 8px; margin: 14px 0 0; }
html body .haijiao-channel .rank-tab { padding: 8px 16px; min-height: 38px; border-radius: 7px; min-width: 0; }
html body .haijiao-channel .rank-tab--active { background: var(--site-blue); color: var(--site-blue-on-primary); }
html body .haijiao-channel .rank-tab--active .rank-tab-text { color: inherit; }

.haijiao-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--site-blue);
  color: var(--site-blue-ink);
  font-weight: 650;
  text-decoration: none;
}

.haijiao-account {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
  width: var(--site-content);
  margin: 0 auto;
  padding: 32px 0 42px;
  color: var(--site-text);
}

.haijiao-account > .channel-crumb { grid-column: 1 / -1; }
.account-rail { position: sticky; top: calc(var(--global-header-height, 135px) + 29px); display: grid; gap: 6px; padding-right: 20px; border-right: 1px solid var(--channel-line); }
.account-rail > span { padding: 0 14px 14px; color: var(--site-muted); font-size: 12px; line-height: 18px; }
.account-rail a { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 13px 14px; border-radius: 8px; color: #afb3b7; font-size: 14px; line-height: 21px; white-space: nowrap; text-decoration: none; }
.account-rail a svg { width: 19px; height: 19px; flex-shrink: 0; }
.account-rail a:hover { background: #1c1e20; color: #fff; }
.account-rail a[aria-current] { background: #26292b; color: #fff; }
.account-rail .account-rail-help { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--channel-line); border-radius: 0; }

html body .haijiao-account .account-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  padding: 0;
  margin: 0;
  gap: 24px;
  zoom: 1;
}

html body .haijiao-account h1 { font-size: 28px; line-height: 1.4; font-weight: 650; }

html body .haijiao-account .user-center-profile {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) minmax(140px,.72fr);
  gap: 26px 30px;
  padding: 30px;
  min-height: 216px;
  background: #1a1c1e;
  border: 0;
  border-radius: 14px;
}

html body .haijiao-account .user-center-profile > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  min-width: 0;
  padding: 0 0 0 24px;
  border: 0;
  border-left: 1px solid var(--channel-line);
  border-radius: 0;
  background: transparent;
}

html body .haijiao-account .user-center-avatar { width: 74px; height: 74px; }
html body .haijiao-account .account-name-row { min-width: 0; flex-wrap: wrap; }
html body .haijiao-account .account-name-row h2 { overflow-wrap: anywhere; }
html body .haijiao-account .account-library-tabs { display: flex; gap: 32px; align-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--channel-line); }
.account-library-tabs :is(a,button) { min-height: 40px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--site-muted); font: inherit; font-size: 14px; text-decoration: none; }
.account-library-tabs a[aria-current] { border-bottom-color: var(--site-blue); color: #fff; }
.account-library-tabs button { margin-left: auto; cursor: pointer; }

html body .account-library .card-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; width: 100%; }
html body .account-library .poster-card { background: transparent; }

html body.deposit-layout .haijiao-account .deposit-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,27%); align-items: start; }
html body .haijiao-account .deposit-page > * { min-width: 0; grid-column: 1 / -1; }
html body .haijiao-account .deposit-page > .deposit-tab-panel { grid-column: 1; }
html body .haijiao-account .deposit-page > .deposit-purchase { grid-column: 2; display: grid; gap: 14px; padding: 22px; border: 1px solid #3b4550; border-radius: 14px; background: #191e24; }
html body .haijiao-account .deposit-purchase .deposit-submit { min-width: 0; width: 100%; border-radius: 8px; }
html body .haijiao-account .deposit-purchase h2 { font-size: 18px; font-weight: 650; }
.wallet-order-lines { display: grid; gap: 12px; margin: 0; }
.wallet-order-lines > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.wallet-order-lines dt { color: var(--site-muted); }
.wallet-order-lines dd { margin: 0; text-align: right; }
.wallet-order-lines > div:last-child { padding-top: 11px; border-top: 1px solid var(--channel-line); }
.wallet-order-lines > div:last-child dd { color: var(--site-gold); font-size: 17px; font-weight: 650; }

.wallet-vip-hero {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #554838;
  border-radius: 14px;
  background: #2a251f;
  color: var(--site-gold);
}

.wallet-vip-emblem { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 12px; background: #ffffff0c; }
.wallet-vip-emblem svg { width: 32px; height: 32px; }
.wallet-vip-hero h2 { font-size: 20px; font-weight: 650; }
.wallet-vip-hero p { margin-top: 5px; font-size: 13px; }
.wallet-vip-status { display: grid; gap: 5px; min-width: 85px; text-align: right; }
.wallet-vip-status span { color: #d5c5af; font-size: 12px; }
.deposit-layout[data-deposit-tab="vip"] .wallet-balance-card,
.deposit-layout:not([data-deposit-tab="vip"]) .wallet-vip-hero { display: none; }
html body .haijiao-account .deposit-mobile-banner { display: none; }
html body .haijiao-account .deposit-packages-panel { padding: 0; border: 0; background: none; }
html body .haijiao-account .deposit-packages--vip { grid-template-columns: repeat(3,minmax(0,1fr)); }

@media (max-width: 1040px) {
  html body .site-header--design .header-inner { gap: 0 20px !important; }
  .haijiao-account { grid-template-columns: 160px minmax(0,1fr); column-gap: 24px; }
  html body .haijiao-account .user-center-profile { gap: 14px; padding: 20px; }
  html body .haijiao-account .user-center-profile > a { padding-left: 12px; }
}

@media (max-width: 767px) {
  html body .site-header--design { padding-inline: 12px; }
  html body .site-header--design .header-inner { display: flex; height: 62px !important; gap: 4px !important; }
  html body .site-header--design .brand-logo { width: 114px; }
  html body .site-header--design :is(.header-menu-toggle, .header-mobile-search, .header-account) { display: grid; place-items: center; width: 44px; height: 44px; }
  html body .site-header--design :is(.header-nav, .header-search, .header-wallet, .header-membership) { display: none; }
  html body .site-header--design .header-menu-toggle { margin-right: auto; }

  html body.is-home-page .page-shell { padding-top: 16px; }
  html body.is-home-page .hero-banner { aspect-ratio: 16 / 9; }
  html body.is-home-page .hero-info { inset: auto 14px 24px !important; gap: 3px !important; }
  html body.is-home-page .hero-title { font-size: clamp(17px,5.5vw,24px) !important; }
  html body.is-home-page .hero-summary { font-size: 12px !important; }
  .hero-meta { font-size: 11px; }
  html body.is-home-page .hero-dot--active { background: var(--site-blue); }
  html body.is-home-page .home-notice { margin-top: 14px; min-height: 36px; }
  html body.is-home-page .home-notice-message { font-size: 12px; padding-inline: 8px; }
  html body.is-home-page .home-ads { margin-top: 14px; }
  html body .home-ads .home-ad img { border-radius: 12px; }
  html body.is-home-page .section-title { font-size: 18px; line-height: 1.4; }
  html body.is-home-page .section-title::before { width: 4px; height: 18px; margin-right: 2px; }
  html body.is-home-page .page-shell > .content-section { margin-top: 24px; gap: 14px; }

  html body .haijiao-channel { padding: 22px 0 32px; }
  .channel-crumb, html body .haijiao-channel .topic-breadcrumb { margin-bottom: 16px; }
  .channel-heading, .category-page .category-filters { margin-bottom: 18px; }
  .channel-heading h1, html body .haijiao-channel > h1 { font-size: 24px; }
  .category-page .category-filters { padding: 12px; }
  .category-filter-line { gap: 4px; }
  .category-filter-line > span { width: 100%; flex-basis: 100%; }
  .category-filter-line a { padding: 8px 9px; }
  html body .haijiao-channel .card-grid,
  html body .haijiao-channel.rank-layout .card-grid,
  html body.is-home-page .card-grid,
  html body .account-library .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 18px 10px !important; }
  html body.is-home-page .poster-card .home-corner-badge { min-height: 20px; font-size: 11px; padding: 1px 5px; }

  .haijiao-account { display: flex; flex-direction: column; gap: 0; padding-block: 20px 28px; }
  .haijiao-account > .channel-crumb { display: none; }
  .haijiao-account .account-rail { position: static; display: flex; width: 100%; margin-bottom: 22px; padding: 0 0 18px; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--channel-line); scrollbar-width: none; }
  .haijiao-account .account-rail > span { display: none; }
  .haijiao-account .account-rail a { flex: none; gap: 6px; font-size: 12px; min-height: 38px; padding: 8px 10px; }
  .haijiao-account .account-rail a svg { width: 15px; height: 15px; }
  .haijiao-account .account-rail .account-rail-help { display: none; }
  html body .haijiao-account h1 { font-size: 24px; }
  html body .haijiao-account .user-center-profile { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; padding: 16px; }
  html body .haijiao-account .account-identity { grid-column: 1 / -1; }
  html body .haijiao-account .user-center-profile > a { display: flex; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--channel-line); }
  html body .haijiao-account .user-center-avatar { width: 54px; height: 54px; }

  html body.deposit-layout .haijiao-account .deposit-page { grid-template-columns: minmax(0,1fr); }
  html body .haijiao-account .deposit-page > .deposit-purchase { grid-column: 1; position: static; }
  html body .haijiao-account .deposit-purchase .deposit-submit { position: static; }
  html body .haijiao-account .deposit-packages--vip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wallet-vip-hero { gap: 9px; padding: 14px; }
  .wallet-vip-emblem { width: 38px; height: 38px; }
  .wallet-vip-emblem svg { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html body.is-home-page #heroSwiper .hero-card { transition: none; }
}

/* One poster for catalog, rankings, related titles, search and account history. */
html body .haijiao-poster.poster-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: visible;
  border: 0;
  background: none;
  text-decoration: none;
}

html body .haijiao-poster.poster-card:not(.haijiao-poster--selection) { border-radius: 0; }
html body .haijiao-poster.poster-card:is(:hover, :focus-visible) { background: transparent; }
html body .haijiao-poster.poster-card:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 4px; }

html body .haijiao-poster.poster-card .poster-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  aspect-ratio: 7 / 10;
  border-radius: 12px;
}

.haijiao-poster-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

html body .haijiao-poster .poster-cover-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  html body .haijiao-poster .poster-cover-img { transition: transform .38s cubic-bezier(.2,.65,.3,1); }
  html body .haijiao-poster:focus-visible .poster-cover-img { transform: scale(1.06); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html body .haijiao-poster:hover .poster-cover-img { transform: scale(1.06); }
}

.haijiao-poster .poster-cover::after {
  content: "";
  position: absolute;
  inset: 66% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, #090b1087);
}

.poster-cover-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(34px, 4.2vw, 48px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff9e;
  border-radius: 50%;
  background: #0a101866;
  box-shadow: 0 2px 10px #0003;
  color: #fff;
  pointer-events: none;
}

.poster-cover-play svg { display: block; width: 50%; height: 50%; }

.haijiao-poster:focus-visible .poster-cover-play {
  border-color: var(--site-blue-hover);
  background: var(--site-blue);
  color: var(--site-blue-on-primary);
}

@media (hover: hover) and (pointer: fine) {
  .haijiao-poster:hover .poster-cover-play {
    border-color: var(--site-blue-hover);
    background: var(--site-blue);
    color: var(--site-blue-on-primary);
  }
}

html body .haijiao-poster .home-corner-badge {
  position: absolute;
  z-index: 2;
  inset: 8px 8px auto auto;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

html body .haijiao-poster .episode-badge {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 7px;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

html body .haijiao-poster .episode-badge span {
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

html body .haijiao-poster.poster-card .poster-card-body {
  min-height: 0;
  height: auto;
  overflow: visible;
  gap: 7px;
  padding: 11px 0 0;
  background: none;
}

html body .haijiao-poster .poster-card-title {
  display: block;
  line-height: 24px;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

html body .haijiao-poster .poster-card-subtitle {
  display: block;
  min-height: 16px;
  color: #a1a9a4;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

html body .haijiao-poster .poster-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 9px;
  min-width: 0;
  overflow: visible;
  color: #a7ada9;
  font-size: 12px;
  line-height: 16px;
}

.haijiao-poster-labels { display: flex; min-width: 0; overflow: hidden; white-space: nowrap; }
.haijiao-poster-labels > span { overflow: hidden; text-overflow: ellipsis; }
.haijiao-poster-labels > span + span { border-left: 1px solid #ffffff1d; margin-left: 6px; padding-left: 6px; }
.haijiao-poster-labels [data-tag-href]:hover { color: var(--site-blue); }
.haijiao-poster-likes { display: inline-flex; align-items: center; flex: none; gap: 3px; color: #ff7657; white-space: nowrap; }
.haijiao-poster-likes svg { width: 12px; height: 12px; }

.poster-card-progress {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 8px;
  max-width: 64%;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html body .haijiao-poster.haijiao-poster--ranked .poster-cover { overflow: visible; border-radius: 8px; }
.haijiao-poster--ranked .poster-cover::after { border-radius: 8px; }
.haijiao-poster-rank { position: absolute; z-index: 3; left: 0; bottom: -22px; color: #fff; font: 900 72px/.95 Arial, sans-serif; letter-spacing: -4px; -webkit-text-stroke: 2px #131414; paint-order: stroke fill; text-shadow: 0 2px #131414; pointer-events: none; }
html body .haijiao-poster.haijiao-poster--ranked .poster-card-body { padding-top: 30px; }
html body .haijiao-poster.haijiao-poster--ranked .poster-card-subtitle { display: none; }

html body .card-grid.category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.category-card-grid > .section-empty { grid-column: 1 / -1; }

html body .category-card-grid .haijiao-poster--selection {
  --selection-background: #20251f;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: var(--selection-background);
}

html body .category-card-grid .haijiao-poster--selection:is(:hover, :focus-visible) {
  background: var(--selection-background);
}

.category-card-grid .haijiao-poster--selection:nth-child(6n + 2) { --selection-background: #25211f; }
.category-card-grid .haijiao-poster--selection:nth-child(6n + 3) { --selection-background: #251f20; }
.category-card-grid .haijiao-poster--selection:nth-child(6n + 4) { --selection-background: #211f24; }
.category-card-grid .haijiao-poster--selection:nth-child(6n + 5) { --selection-background: #1e2226; }
.category-card-grid .haijiao-poster--selection:nth-child(6n + 6) { --selection-background: #252124; }

html body .category-card-grid .haijiao-poster--selection .poster-card-body {
  align-self: center;
  min-width: 0;
  gap: 10px;
  padding: 0;
}

html body .category-card-grid .haijiao-poster--selection .poster-card-meta { margin-top: 0; }

.poster-card-selection-label {
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 8px;
  border-bottom: 1px solid #b5bfa44a;
  color: #b5bfa4;
  font-size: 12px;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .category-card-grid .haijiao-poster--selection :is(.poster-card-title, .poster-card-subtitle) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}

html body .category-card-grid .haijiao-poster--selection .poster-card-title {
  color: #eeeade;
  font: 500 22px/1.35 "Songti SC", STSong, "Noto Serif CJK SC", serif;
}

html body .category-card-grid .haijiao-poster--selection .poster-card-subtitle {
  min-height: 0;
  color: #a5ada2;
  font-size: 12px;
  line-height: 1.7;
}

.poster-card-watch {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid #ffffff38;
  border-radius: 4px;
  color: #eeeade;
  font-size: 12px;
  font-weight: 650;
  transition: color .18s, background-color .18s, border-color .18s;
}

.poster-card-watch svg { width: 13px; height: 13px; }
.haijiao-poster--selection:is(:hover, :focus-visible) .poster-card-watch { color: #8fd3fa; }
.haijiao-poster--selection .haijiao-poster-rank { bottom: 5px; left: 7px; }

@media (min-width: 761px) {
  .haijiao-poster--selection:is(:hover, :focus-visible) .poster-card-watch {
    color: var(--site-blue-on-primary);
    border-color: var(--site-blue);
    background: var(--site-blue);
  }
}

@media (max-width: 1180px) {
  html body .card-grid.category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  html body .card-grid.category-card-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body .category-card-grid .haijiao-poster--selection {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 12px;
    padding: 12px;
  }
  html body .category-card-grid .haijiao-poster--selection .poster-card-body { gap: 0; }
  .haijiao-poster--selection .poster-card-selection-label {
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 1px;
  }
  html body .category-card-grid .haijiao-poster--selection .poster-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
  }
  html body .category-card-grid .haijiao-poster--selection .poster-card-subtitle {
    min-height: 2.8em;
    margin: 0 0 6px;
    color: #8e968c;
    line-height: 1.4;
  }
  html body .category-card-grid .haijiao-poster--selection .poster-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }
  html body .category-card-grid .haijiao-poster--selection .home-corner-badge {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 18px;
  }
  .haijiao-poster--selection .poster-card-watch {
    gap: 8px;
    min-height: 26px;
    margin-top: 8px;
    padding: 4px 8px;
    border: 0;
    line-height: 18px;
  }
  .haijiao-poster--selection .poster-card-watch svg { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .poster-card-watch { transition: none; }
}

html body :is(.topics-page .haijiao-channel, .haijiao-channel.rank-layout) { display: block; }
html body .topics-page .haijiao-channel .content-section { margin-top: 32px; padding: 0; background: transparent; }
html body .haijiao-channel.rank-layout .rank-tabs { margin-block: 12px 15px; }
html body .haijiao-channel.rank-layout .card-grid > .haijiao-poster { margin: 0; align-self: start; }
html body .haijiao-channel .pagination { margin-top: 28px; }

html body .footer-box { padding: 32px 0 26px; }
html body .footer-outer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px 24px; padding: 0; }
html body .footer-main, html body .footer-bottom { display: contents; }
.footer-brand { grid-column: 1 / -1; }
html body .footer-links { grid-column: 1; grid-row: 2; justify-content: flex-start; }
html body .footer-copy { grid-column: 1; grid-row: 3; }
html body .footer-actions { grid-column: 2; grid-row: 2 / span 2; }
html body .footer-addresses { grid-column: 1 / -1; grid-row: 4; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; }
html body .footer-icon-link { background: #ffffff09; width: 36px; height: 36px; }

@media (max-width: 1000px) {
  html body .haijiao-channel.rank-layout .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}

@media (max-width: 600px) {
  html body .haijiao-channel.rank-layout .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .haijiao-poster-rank { bottom: -18px; font-size: 56px; letter-spacing: -3px; }
  html body .haijiao-poster.haijiao-poster--ranked .poster-card-body { padding-top: 24px; }
  html body .footer-outer { grid-template-columns: minmax(0,1fr); }
  html body .footer-actions { grid-column: 1; grid-row: 5; justify-content: flex-end; }
  html body .haijiao-poster .poster-card-title { font-size: 13px; line-height: 19px; }
  html body .haijiao-poster .episode-badge span { font-size: 11px; }
  html body .haijiao-poster .poster-card-meta { gap: 4px; font-size: 11px; }
}

.brand-logo--app .brand-logo-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo--app img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-logo--app .brand-logo-text {
  display: grid;
  min-width: 0;
  gap: 3px;
  line-height: 1.1;
  text-align: left;
}
.brand-logo--app strong,
.brand-logo--app small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-logo--app strong {
  color: #f2f7fa;
  font-size: 18px;
  font-weight: 700;
}
.brand-logo--app small {
  color: #b9c9d6;
  font-size: 13px;
}
@media (max-width: 767px) {
  .brand-logo--app .brand-logo-content { gap: 7px; }
  .brand-logo--app img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 8px;
  }
  .brand-logo--app strong { font-size: 15px; }
  .brand-logo--app small { font-size: 11px; }
}
