.resource {
  //min-height: 150px;
  //border: 1px solid #ccc;
  //background: $color-brand1-9;
  //box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, var(--theme-border-color) 0px 0px 0px 1px;

  .coverRectangle {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding-bottom: 100%;
    position: relative;
    //border: 1px solid #E7E7E7;
    border-radius: 3px;

    .absoluteRectangle {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .play, .opts {
      display: none;
    }
    &:hover {
      .play, .opts, .icons {
        display: flex;
      }
    }

    .play {
      position: absolute;
      left: 0;
      bottom: 0;
      button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
      }
    }

    .icons {
      position: absolute;
      right: 0;
      bottom: 0;
      //display: flex;
      display: none;
      align-items: center;
      gap: 1px;
      &>* {
        background: var(--theme-block-background-accent);
        border: 1px solid #aaa;
        border-radius: 4px;
      }
    }

    .opts {
      position: absolute;
      right: 0;
      top: 0;
      padding: 0;
      flex-direction: column;
      flex-wrap: wrap-reverse;
      //display: flex;
      gap: 2.5px;
      max-height: 100%;
      .opt {
        cursor: pointer;
        background: var(--theme-block-background-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        //padding: 2px;
        border: 1px solid #9b9b9b;
        border-radius: 4px;
        height: 22px;
        width: 22px;
        //color: #666;
        //&:hover {
        //  color: #000;
        //}
      }
    }
  }

  .info {
    margin-top: 4px;
    font-size: 13px;
    span {
      word-break: break-all;
    }

    .limitedContent {
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-all;
      display: -webkit-box;
      -webkit-line-clamp: 2; /* number of lines to show */
      line-clamp: 2;
      -webkit-box-orient: vertical;
      position: relative;
      &:hover {
        overflow: unset;
        text-overflow: unset;
        -webkit-line-clamp: unset; /* number of lines to show */
        line-clamp: unset;
        -webkit-box-orient: unset;
        background-color: var(--bakaui-background);

        word-break: break-all;
        z-index: 1;

      }
    }
  }

  .optsPortal {
    position: absolute;
    top: 0;
    right: 0;
  }
}

.resource-component-search-dropdown-menu {
  .next-menu-item-text {
    span {
      font-weight: bold;
    }
  }
}

.resource-component-playlist-collection-popup {
  z-index: 2;
  .playlist-collection {
    //padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.5);
    border-radius: 4px;
  }
}

.media-player {
  .playlist-collection {
    z-index: 1;
    padding: 5px 15px;
    border-color: #888;
    border-radius: 4px;
  }
}

.playlist-item-duration-selector {
  width: 1000px;
  padding: 0 25px;
}
