/* 画中画窗口样式 */
/* 视频边框协调深色主题 */
.site_video_div {
  vertical-align: middle;
  text-align: center;
  margin-top: 20px;
}
.site_video_div video {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}
.video_div_fixed {
    position: fixed;
    width: 400px;
    height: 200px;
    background: var(--surfaces-surface-container-bright);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    resize: both;
    min-width: 400px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 80vh;
    z-index: 100;
    left: 0px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.video_div_close {
    position: unset;
    width: unset;
    height: unset;
    border: unset;
    box-shadow: unset;
    overflow: unset;
}
.pip-window video {
  width: 100%;
  height: 100%;
  border: none;
}
.video_show {
  display: block;
}
.video_hide {
  display: none !important;
}

.window-header {
    position: relative;
}
.control-btn {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    color: white;
    font-size: larger;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 101;
    display: none;
    background: var(--roles-primary-primary);
}

.control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 缩放控制点 */
.resize-handle {
  position: absolute;
  background: transparent;
  z-index: 10;
}

.resize-n {
  top: 0;
  left: 10px;
  right: 10px;
  height: 6px;
  cursor: n-resize;
}

.resize-s {
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 6px;
  cursor: s-resize;
}

.resize-e {
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 6px;
  cursor: e-resize;
}

.resize-w {
  top: 10px;
  left: 0;
  bottom: 10px;
  width: 6px;
  cursor: w-resize;
}

.resize-ne {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: ne-resize;
}

.resize-nw {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nw-resize;
}

.resize-se {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: se-resize;
}

.resize-sw {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: sw-resize;
}

/* 控制按钮 */
.actions {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  z-index: 90;
}

.action-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  color: #3949ab;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.action-btn:active {
  transform: translateY(0);
}

/* 画中画模式样式 */
.pip-mode .pip-window {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #3949ab;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pip-window {
    width: 100%;
    height: 280px;
  }
}
