@charset "UTF-8";

/* Tangxin Theater: shared mobile interaction and fixed-layer corrections. */
html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

@media screen and (max-width: 820px) {
  body:not(.ai-chat-page):not(.page-art-read):not(.vod-search-hub-body) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body:not(.ai-chat-page) .extra.extra-fab {
    display: none !important;
  }

  /* Keep the rotating search hint inside one centred 22px line. */
  #topnav .head_search_capsule_host .head_search_capsule_field {
    overflow: hidden;
  }

  #topnav .head_search_capsule_host .head_hot_overlay_home {
    overflow: hidden !important;
  }

  #topnav .head_search_capsule_host .head_hot_overlay_viewport {
    align-items: flex-start !important;
    display: block !important;
    height: 22px !important;
    line-height: 22px !important;
    overflow: hidden !important;
  }

  #topnav .head_search_capsule_host .head_hot_overlay_track {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
  }

  #topnav .head_search_capsule_host .head_hot_overlay_item {
    align-items: center;
    display: flex;
    flex: 0 0 22px;
    height: 22px !important;
    line-height: 22px !important;
    margin: 0 !important;
    max-height: 22px !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    white-space: nowrap;
  }

  /* Mobile header controls keep a full touch box even when the icon stays small. */
  .mobile-head .head_menu_b > a.menu,
  .mobile-head .head_b > a.back,
  .mobile-head .head_b > .back,
  .mobile-head a.flip {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* A transformed header can leave the closed drawer a few pixels onscreen. */
  .mobile-head .all_menu:not(.menu_block) {
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .mobile-head .all_menu.menu_block {
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .head_inner_mobile_toolbar .bk_btn,
  .head_inner_mobile_toolbar .se_btn {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
  }

  .mac-catalog-show .mac-catalog-filter-head__menu-col {
    margin-left: 2px;
  }

  /* Sort controls and primary detail actions meet a practical mobile touch size. */
  .mac-catalog-show .wrapper_fl.wrapper_tm .screen_list.sx_tz li button.mac-cat-filter-item,
  .detail-wrap .vod-playlist-head-sort .sort_btn,
  #play_page .vod-playlist-head-sort .sort_btn {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    line-height: 1.2 !important;
    min-height: 40px;
    padding: 8px 10px;
  }

  .detail-wrap .content_btn .playbtn a.btn,
  .detail-wrap .content_btn .playbtn a.btn_share {
    min-height: 44px;
  }

  .detail-wrap #detail_rating.detail-rating-mobile-inline #rating.rating-svg-root .play-star-btn,
  #play_page .play-page-rating-mobile .play-star-btn {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 40px !important;
    min-width: 36px !important;
    padding: 8px 5px !important;
  }

  /* Keep the five detail-page stars on one compact row. The base detail CSS
     otherwise lets the zero-width flex child wrap into a tall vertical stack. */
  .detail-wrap #detail_rating.detail-rating-mobile-inline #rating.rating-svg-root {
    align-items: flex-start !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
  }

  .detail-wrap #detail_rating.detail-rating-mobile-inline #rating.rating-svg-root .rating-s.rating-s--svg {
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    min-height: 40px !important;
    width: 100% !important;
  }

  .detail-wrap #detail_rating.detail-rating-mobile-inline #rating.rating-svg-root .rating-svg__hint.list_tips {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    width: 100% !important;
  }

  /* Filter chips wrap instead of disappearing off the right edge. */
  .mac-catalog-show:not(.mac-catalog-show--filter-collapsed) .mac-catalog-show__filter-drawer {
    max-height: calc(100dvh - 128px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .mac-catalog-show .mac-catalog-show__filter-drawer .vod_all .mac-catalog-filter-h-scroll {
    align-items: flex-start;
    padding-bottom: 6px;
    padding-top: 6px;
  }

  .mac-catalog-show .mac-catalog-show__filter-drawer .vod_all .mac-catalog-filter-h-scroll__track,
  .mac-catalog-show .mac-catalog-show__filter-drawer .vod_all .wrapper_fl .scroller {
    max-width: 100%;
    overflow: visible !important;
  }

  .mac-catalog-show .mac-catalog-show__filter-drawer .vod_all .screen_list:not(.sx_tz) {
    display: flex;
    flex-flow: row wrap;
    gap: 6px 4px;
    max-width: 100%;
    width: 100%;
  }

  .mac-catalog-show .mac-catalog-show__filter-drawer .vod_all .screen_list:not(.sx_tz) li button.mac-cat-filter-item,
  .mac-catalog-show .mac-catalog-show__filter-drawer .vod_all .screen_list:not(.sx_tz) li > a {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    line-height: 1.25 !important;
    margin: 0 4px 0 0 !important;
    min-height: 40px !important;
    padding: 8px 11px !important;
  }

  /* The filter drawer behaves as one modal layer. */
  body:has(.mac-catalog-show:not(.mac-catalog-show--filter-collapsed)) #bottomNav,
  body:has(.mac-catalog-show:not(.mac-catalog-show--filter-collapsed)) .extra.extra-fab {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  /* Empty descriptions remain explicit without creating a tall blank block. */
  .detail-wrap .tabs:has(.js-vod-content-short > span[data-lang="string_no_have"]) > .content > section {
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .detail-wrap .tabs:has(.js-vod-content-short > span[data-lang="string_no_have"]) .content_desc.context {
    line-height: 1.4;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 8px 0 !important;
  }

  .detail-wrap .tabs:has(.js-vod-content-short > span[data-lang="string_no_have"]) .content_desc.full_text,
  .detail-wrap .tabs:has(.js-vod-content-short > span[data-lang="string_no_have"]) .show_btn {
    display: none !important;
  }

  /* The detail template has one introduction panel; keep it visible on H5. */
  .detail-wrap .left_row > .pannel:first-child > .tabs > .content > section:first-child {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #topnav .head_search_capsule_host .head_hot_overlay_track {
    animation: none !important;
    transform: none !important;
  }
}
