.music-form-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;

    .image-wrap {
      width: 12rem;  /* 필요 시 조정 */
      height: 12rem;
      display: grid;
      place-items: center;
      margin: 0 auto 0.5rem;
      position: relative;

      .profile-image {
        width: 100%;
        height: 100%;
        border: 2px solid #fff;
        cursor: pointer;
        user-select: none;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #000;
      }

      .delete-button {
        position: absolute;
        bottom: 0;
        left: 100%;
        background: none;
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;

        &:hover {
          background-color: #222;
        }

        .xi {
          color: #fff;
        }
      }
    }

    .row {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;

      input[name="orderby[]"] {
        width: 50px;
        margin-left: 5px;
      }

    }

    button {
      margin-top: 0.5rem;
    }
  }
}


.music-layer-wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: 5;

  .music-layer-wrap-in {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    // z-index: 6;
    position: relative;

    .file-list {
      min-width: 300px;
      padding: 1rem;
      background: #000;
      position: relative;
      border: 1px solid #333;

      .close-button {
        position: absolute;
        top: 0;
        right: -3.5rem;
        font-size: 1.5rem;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }
}

#file-list {
  max-width: 50%;
  max-height: 90%;
  overflow-y: auto;

  .music-layer {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    form {
      display: flex;
      justify-content: space-between;

      input {
        border: 1px solid #333;
        background: none;
        color: #999;
        padding: 0.25rem;
        flex: 1;
      }
      button {
        padding: 0.5rem;
        color: #fff;
      }
    }

    ul.image-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      max-width: 27rem;

      li {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;

        .img {
          width: 5rem;
          height: 5rem;
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
        }
      }
    }
    ul:not(.image-wrap) {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;

      li {
        cursor: pointer;

        .title {
          display: flex;
          align-items: center;
          gap: 0.25rem;
        }
      }
    }

    ul.artist-list-wrap {
      flex-direction: row;
      flex-wrap: wrap;

      li {
        width: calc(50% - 0.25rem);
      }
    }
  }
}

.music-view-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  // position: relative;

  .music-info-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;

    .img-wrap {
      width: 10rem;
      height: 10rem;
      display: inline-block;
      border-radius: 1rem;
    }

    .info-wrap {
      width: 100%;
      flex: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .info-wrap-in {
        .title {
          font-size: 2rem;
          font-weight: bold;
          padding-left: 1rem;
        }
        .artist {
          color: #999;
          font-size: 1.5rem;
          padding-left: 1rem;
          width: 100%;
          text-align: left;
          margin: 0.5rem 0;

          &:hover {
            background: none;
          }
        }
      }
    }


    .controller-wrap {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;

      a, button {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        .xi {
          color: #999;
          font-size: 1.5rem;
          padding: 1rem;
        }
      }
    }
  }

  .lyrics-wrap {
    letter-spacing: 0.15rem;
    font-size: 1rem;
    line-height: 1.75;
  }
}



.artist-wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: 5;


  .artist-list-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    // z-index: 6;
    position: relative;

    .artist-list {
      max-height: 90%;
      overflow-y: auto;
      min-width: 300px;
      max-width: 400px;
      padding: 1rem;
      background: #000;
      position: relative;
      border: 1px solid #333;

      .list {
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;

        li {
          width: 100%;
          display: flex;
          gap: 0.5rem;
          align-items: center;
          justify-content: space-between;

          .song-title {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
            gap: 0.25rem;
            overflow: hidden;
            width: 100%;

            .title {
              font-size: 1rem;
              font-weight: bold;
              text-overflow: ellipsis;
              text-wrap-mode: nowrap;
              overflow: hidden;
              justify-content: space-between;
              display: flex;
              align-items: center;
              width: 100%;
              padding: 0.5rem;
              &:hover {
                background: none;
              }
            }
          }
        }
      }
    }
  }
}
