/* ========== 直播播放器组件 ========== */
.bili-live {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.bili-live .live-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bili-live .live-player__stage {
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.live-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.live-player__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(251, 114, 153, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.live-player__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.live-player__fail {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  text-align: center;
}
.live-player__fail[hidden] {
  display: none !important;
}
.live-player__fail-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.live-player__fail-btn {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.live-player__fail-btn:hover {
  background: var(--pink-hover, #ff85a1);
}
.live-player__lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.live-player__lines-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.live-player__lines-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.live-player__line {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.live-player__line:hover {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--pink-soft);
}
.live-player__line.is-on {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}
.live-player__bar {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.live-player__bar-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text2);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.live-player__bar-item { color: var(--text2); }
.live-player__bar-item:hover {
  background: #f1f2f3;
  color: var(--pink);
}
.live-player__bar-ico {
  width: 20px;
  height: 20px;
}
.live-player__tag {
  background: rgba(251, 114, 153, 0.12);
  color: var(--pink);
}
.live-player__channels {
  position: fixed;
  inset: 0;
  z-index: 960;
}
.live-player__channels[hidden] {
  display: none !important;
}
.live-player__channels-mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.live-player__channels-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(380px, 90vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.22s var(--ease);
}
.live-player__channels:not([hidden]) .live-player__channels-panel {
  transform: translateX(0);
}
.live-player__channels-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.live-player__channels-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}
.live-player__channels-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.live-player__channels-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.live-player__channels-close:hover {
  background: #f1f2f3;
  color: var(--pink);
}
.live-player__channels-list {
  flex: 1;
  overflow: auto;
  padding: 8px;
}
.live-player__channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.live-player__channel:hover {
  background: #f6f7f8;
}
.live-player__channel.is-cur {
  background: var(--pink-soft);
}
.live-player__channel-logo {
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eceff1;
}
.live-player__channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-player__channel-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-player__channel-now {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: #fff;
  font-size: 11px;
}
body.live-channels-open {
  overflow: hidden;
}
@media (min-width: 821px) {
  .live-player__bar {
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
  }
  .live-player__bar-item {
    min-width: 72px;
    font-size: 12px;
  }
}
@media (max-width: 640px) {
  .bili-live .bili-vinfo__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
