/* 播放记录 / 收藏 / 预约 — 顶部工具栏 & 批量管理 */
.ul-toolbar-wrap {
  position: relative;
  margin: 0 0 18px;
  z-index: 20;
}
.user-box-right--list#ul-list-hub,
.user-box-right--list #ul-list-hub {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ul-page-head .ul-toolbar-wrap {
  margin-bottom: 0;
  z-index: auto;
}
.ul-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.ul-toolbar .ul-channel-filter {
  flex: 0 0 auto;
}
.ul-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: hsla(0, 0%, 100%, 0.08);
  color: hsla(0, 0%, 100%, 0.88);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.theme1 .ul-pill-btn {
  background: #f0f0f0;
  color: #333;
}
.ul-pill-btn:hover {
  background: hsla(0, 0%, 100%, 0.14);
}
.theme1 .ul-pill-btn:hover {
  background: #e8e8e8;
}
.ul-pill-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.ul-pill-btn .fa {
  font-size: 15px;
  opacity: 0.9;
}

/* 频道筛选 */
.ul-channel-filter {
  position: relative;
}
.ul-channel-filter__toggle .fa {
  font-size: 12px;
  margin-left: 2px;
  transition: transform 0.2s;
}
.ul-channel-filter.is-open .ul-channel-filter__toggle .fa {
  transform: rotate(180deg);
}
.ul-channel-filter__menu {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  min-width: 148px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
  border-radius: 10px;
  background: rgba(28, 28, 30, 0.96);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  -webkit-overflow-scrolling: touch;
}
.theme1 .ul-channel-filter__menu {
  background: #fff;
  border-color: #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ul-channel-filter__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: hsla(0, 0%, 100%, 0.82);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.theme1 .ul-channel-filter__item {
  color: #444;
}
.ul-channel-filter__item:hover {
  background: hsla(0, 0%, 100%, 0.06);
  color: #fff;
}
.theme1 .ul-channel-filter__item:hover {
  background: #f5f5f5;
  color: #222;
}
.ul-channel-filter__item.is-active {
  color: #40cc92;
}
.ul-channel-check {
  width: 14px;
  height: 14px;
  opacity: 0;
  flex-shrink: 0;
  position: relative;
}
.ul-channel-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #40cc92;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ul-channel-filter__item.is-active .ul-channel-check {
  opacity: 1;
}

/* 批量管理底栏（与顶栏同位置切换） */
.ul-manage-bar {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}
body.ul-manage-mode .ul-toolbar {
  display: none;
}
body.ul-manage-mode .ul-manage-bar {
  display: flex;
}
.ul-manage-bar__select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}
.ul-manage-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.theme1 .ul-manage-bar__select {
  color: #333;
}
.ul-check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid hsla(0, 0%, 100%, 0.45);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.theme1 .ul-check-circle {
  border-color: #bbb;
}
body.ul-manage-mode .ul-manage-bar__select.is-checked .ul-check-circle,
.ul-list-card.is-selected .ul-card-select {
  border-color: #40cc92;
  background: #40cc92;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25);
}
.theme1 body.ul-manage-mode .ul-manage-bar__select.is-checked .ul-check-circle,
.theme1 .ul-list-card.is-selected .ul-card-select {
  box-shadow: inset 0 0 0 3px #fff;
}

/* 卡片选择圈 */
.ul-card-select {
  display: none;
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 12;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid hsla(0, 0%, 100%, 0.75);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  box-sizing: border-box;
}
body.ul-manage-mode .ul-card-select {
  display: block;
}
body.ul-manage-mode .ul-list-card .user-cor-list-del {
  display: none !important;
}
body.ul-manage-mode .ul-list-card .public-list-exp {
  pointer-events: none;
}
body.ul-manage-mode .ul-list-card .time-title {
  pointer-events: none;
}

.user-box-right--list .user-title-bottom {
  display: none;
}
.user-box-right--list .user-tab {
  margin-bottom: 0;
}
.user-list-pc .user-portrait.is-guest > img {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

/* 观看历史 / 预约 / 收藏 — 顶栏 Tab + 工具栏同一行 */
.ul-page-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  border-bottom: 2px solid;
  min-height: 33px;
  padding-bottom: 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background: inherit;
}
.user-box-right--plays .ul-tab-panels {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.user-box-right--plays .ul-tab-panel:not(.is-active) {
  display: none !important;
}
.ul-page-tabs {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  height: 33px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ul-page-tabs::-webkit-scrollbar {
  display: none;
}
.ul-page-tabs a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.ul-page-head__tools {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  min-width: 0;
}
.ul-page-head .ul-channel-filter {
  z-index: 30;
}
.ul-page-head .ul-channel-filter__menu {
  z-index: 31;
}
.ul-page-head .ul-toolbar,
.ul-page-head .ul-manage-bar {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

/* 会员中心列表：统一横版海报（public-pic-a） */
.ul-vod-grid {
  margin-right: -12px;
}
.ul-vod-grid .ul-list-card.public-pic-a {
  width: 20%;
  margin-top: 0;
  margin-bottom: 14px;
  padding-right: 12px;
}
.ul-list-card.public-list-box {
  overflow: visible;
}
.ul-list-card .user-cor-list-del {
  top: -9px;
  right: 7px;
  z-index: 20;
}
@media (min-width: 767px) and (max-width: 1934px) {
  .ul-list-card .user-cor-list-del {
    top: -9px;
    right: 7px;
  }
}
@media (max-width: 766px) {
  .ul-list-card .user-cor-list-del {
    top: -8px;
    right: -3px;
  }
}
.ul-vod-grid .public-list-button {
  padding-top: 6px;
  text-align: left;
}
.ul-vod-grid .public-list-button .time-title {
  font-size: 13px;
  line-height: 1.35;
  height: auto;
  max-height: 2.7em;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ul-vod-grid .public-list-prb {
  font-size: 11px;
  line-height: 18px;
  padding: 0 6px;
  bottom: 0;
}

/* 播放进度条 & 观看信息 */
.plays-group .ul-list-card .plays-progress,
.ul-vod-grid .ul-list-card .plays-progress {
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 3;
}
.plays-group .ul-list-card .plays-progress__bar,
.ul-vod-grid .ul-list-card .plays-progress__bar {
  background: rgba(0, 0, 0, 0.45);
  display: block;
  height: 3px;
  overflow: hidden;
  width: 100%;
}
.plays-group .ul-list-card .plays-progress__bar > i,
.ul-vod-grid .ul-list-card .plays-progress__bar > i {
  background: #00c8b3;
  display: block;
  height: 100%;
  width: 0;
}
.plays-group .ul-list-card .plays-watch-meta,
.ul-vod-grid .ul-list-card .plays-watch-meta {
  align-items: center;
  color: hsla(0, 0%, 100%, 0.55);
  display: flex;
  font-size: 12px;
  gap: 4px;
  line-height: 1.35;
  margin-top: 2px;
  min-width: 0;
  overflow: hidden;
}
.plays-group .ul-list-card .plays-watch-meta__ico,
.ul-vod-grid .ul-list-card .plays-watch-meta__ico {
  display: block;
  flex: 0 0 auto;
  height: 14px;
  opacity: 0.72;
  object-fit: contain;
  width: 14px;
}
.plays-group .ul-list-card .plays-watch-meta__txt,
.ul-vod-grid .ul-list-card .plays-watch-meta__txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme1 .plays-group .ul-list-card .plays-watch-meta,
.theme1 .ul-vod-grid .ul-list-card .plays-watch-meta {
  color: #888;
}
.theme1 .plays-group .ul-list-card .plays-watch-meta__ico,
.theme1 .ul-vod-grid .ul-list-card .plays-watch-meta__ico {
  filter: brightness(0) saturate(100%);
  opacity: 0.45;
}

@media (max-width: 1200px) {
  .ul-vod-grid .ul-list-card.public-pic-a {
    width: 25%;
  }
}
@media (max-width: 992px) {
  .ul-vod-grid .ul-list-card.public-pic-a {
    width: 33.333333%;
  }
}
@media (max-width: 767px) {
  .ul-page-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-height: 30px;
  }
  .ul-page-tabs {
    height: 30px;
    flex: 1 1 auto;
  }
  .ul-page-head__tools {
    width: auto;
    flex: 0 0 auto;
  }
  .ul-page-head .ul-toolbar {
    gap: 6px;
  }
  .ul-toolbar,
  .ul-manage-bar {
    gap: 8px;
  }
  .ul-pill-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
  .ul-channel-filter__toggle {
    max-width: 120px;
  }
  .ul-channel-filter__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 72px;
  }
  .ul-manage-bar {
    justify-content: flex-end;
    width: 100%;
  }
  .ul-manage-bar .ul-btn-batch-del,
  .ul-manage-bar .ul-btn-exit-manage {
    flex: 0 0 auto;
  }
  .ul-vod-grid .ul-list-card.public-pic-a {
    width: 50%;
    margin-bottom: 12px;
  }
}
