/**
 * MediaDisplay 媒体展示组件样式
 */

/* 全屏模式 */
.media-display {
  position: relative;
  width: 100%;
  height: 100%;

  /* 全屏模式 */
  &--fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* 背景色由 JS 动态设置（从视频帧提取主色），这里设置默认回退值 */
    background: #000;

    /* 全屏模式下视频铺满 */
    .media-display__video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  /* 视频样式（普通模式） */
  &__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 图片容器 */
  &__image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    .pisell-lowcode-image {
      width: 100%;
      height: 100%;
    }
  }

  /* 图片样式 */
  &__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }
}

/**
 * BrandPanel 品牌区组件样式（普通模式）
 */
.webpos-login-brand-panel-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F04A28 0%, #E8421F 100%);
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  flex-shrink: 0;

  /* 品牌内容区 */
  &__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  /* Logo/媒体 容器 */
  &__logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    //max-width: 320px;

    /* 视频在品牌面板中的样式 */
    video {
      max-width: 100%;
      max-height: 240px;
      border-radius: 8px;
    }
  }

  /* Logo 图片 */
  &__logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
  }

  /* 品牌标语 */
  &__slogan {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    line-height: 1.5;
  }

  /* 轮播控件（预留） */
  &__carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
  }
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
  .webpos-login-brand-panel {
    display: none;
  }

  /* 全屏模式在移动端仍然显示 */
  .media-display--fullscreen {
    display: flex;
  }
}
