/* ============================================================
   鲤鱼影视系统 专属定制多功能播放器 (Liyu Player v1.0)
   设计风格：暗调放映厅 + 黄铜金属高光
   ============================================================ */

.liyu-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  user-select: none;
}

.liyu-player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 弹幕层 */
.liyu-danmaku-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.liyu-danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
  will-change: transform;
}

/* 续播通知条 (Toast) */
.liyu-toast-notice {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 25;
  background: rgba(14, 17, 23, 0.92);
  border: 1px solid var(--brass, #E8B14C);
  color: #E9ECF1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  animation: liyuFadeIn 0.3s ease;
}
.liyu-toast-btn {
  background: var(--brass, #E8B14C);
  color: #181205;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

/* 中间大播放/暂停按钮 */
.liyu-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(232, 177, 76, 0.88);
  border: 2px solid #E8B14C;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #181205;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 0 20px rgba(232, 177, 76, 0.4);
}
.liyu-big-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #f2bf60;
}
.liyu-big-play.is-hidden {
  display: none !important;
}

/* 控制栏 */
.liyu-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(0deg, rgba(14, 17, 23, 0.95) 0%, rgba(14, 17, 23, 0.6) 70%, transparent 100%);
  padding: 24px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.liyu-player-container:hover .liyu-controls,
.liyu-player-container.is-controls-show .liyu-controls {
  opacity: 1;
}

/* 进度条 */
.liyu-progress-bar {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}
.liyu-progress-bar:hover {
  height: 8px;
}
.liyu-progress-buffered {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  width: 0%;
}
.liyu-progress-played {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--brass, #E8B14C);
  border-radius: 3px;
  width: 0%;
}
.liyu-progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  display: none;
}
.liyu-progress-bar:hover .liyu-progress-handle {
  display: block;
}

/* 控制按钮栏 */
.liyu-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #E9ECF1;
  font-size: 13px;
}
.liyu-control-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.liyu-btn {
  background: transparent;
  border: none;
  color: #E9ECF1;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.liyu-btn:hover {
  color: var(--brass, #E8B14C);
  background: rgba(255, 255, 255, 0.1);
}

/* 时间文本 */
.liyu-time-display {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #8A94A6;
}

/* 下拉选择器 (倍速、画幅) */
.liyu-select-menu {
  position: relative;
  display: inline-block;
}
.liyu-select-btn {
  font-size: 12px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
}
.liyu-select-dropdown {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 17, 23, 0.95);
  border: 1px solid var(--line, #262E3A);
  border-radius: 6px;
  padding: 4px 0;
  display: none;
  flex-direction: column;
  min-width: 70px;
  text-align: center;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.liyu-select-menu:hover .liyu-select-dropdown {
  display: flex;
}
.liyu-select-item {
  padding: 6px 12px;
  font-size: 12px;
  color: #8A94A6;
  cursor: pointer;
}
.liyu-select-item:hover, .liyu-select-item.is-active {
  color: var(--brass, #E8B14C);
  background: rgba(232, 177, 76, 0.15);
}

/* 音量滑动条 */
.liyu-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.liyu-volume-slider {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.liyu-volume-val {
  height: 100%;
  background: var(--brass, #E8B14C);
  border-radius: 2px;
  width: 80%;
}

@keyframes liyuFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
