// Helpers
.content-inner {
  position: absolute;
  top: var(--navigationBarHeight);
  left: 0;
  padding: 32px;
  width: 100%;
  transition: zoom 1s;
  zoom: 1;
}

.content-inner.centered {
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

// End Helpers

// GitHub Themes
.github-themes-page {
  display: flex;
  flex-direction: column;
  height: 100%;

  .github-avatar {
    height: 42px;
    width: 42px;
    margin: 6px;
    border-radius: 32px;
  }

  .repo-name {
    margin: 0px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
  }

  .repo-url {
    color: var(--textColor);
    font-size: 0.8em;
  }

  .repo-preview-name {
    margin: 0px;
  }

  .repos-list {
    height: 100%;
    width: 320px;
    font-size: 14px;
    overflow: overlay;
    padding-bottom: 16px;
    flex: 0 0 auto;

    > .list-group {
      margin: 0px;
    }

    .list-group-item {
      padding: 12px 6px;

      &:hover {
        filter: brightness(1.2);
      }

      &:active {
        filter: brightness(0.8);
      }
    }
  }

  .github-preview {
    height: 100%;
    flex: 1;
    padding: 16px 32px;
    overflow: auto;
    padding-bottom: 16px;
  }

  .gh-content {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
  }

  .gh-header {
    padding: 16px;
    height: 64px;
    display: grid;
    align-content: center;
    flex: 0 0 auto;

    .header-text {
      position: initial !important;
      justify-content: left !important;
    }
  }

  .installed-themes-page {
    .style-editor-container {
      height: 100%;
      flex: 1;
      background: var(--color2);
      padding: 0px;
      overflow-y: overlay;

      .list-group-item {
        border-radius: 0px;
      }
    }
  }
}

//Styles Page
.installed-themes-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  .themeContextMenu {
    background: transparent;
    color: var(--keyColor);
    border: 0px;
  }

  .list-group-item {
    &.addon {
      background: rgb(86 86 86 / 20%);
    }

    &.applied {
      background: var(--keyColor-disabled);
      pointer-events: none;
    }
  }

  .repo-header {
    font-size: 16px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    z-index: 1;
    background: rgba(36, 36, 36, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: var(--glassFilter);
    overflow: hidden;
    border-bottom: 1px solid rgb(0 0 0 / 18%);
    border-top: 1px solid rgb(135 135 135 / 18%);
  }

  .gh-header {
    z-index: 5;
    padding: 16px;
    flex: 0 0 auto;
    height: 64px;
    display: grid;
    align-content: center;
    .header-text {
      position: initial !important;
      justify-content: left !important;
    }
  }

  .gh-content {
    display: flex;
    flex-direction: row;
    padding: 0px;
    height: 100%;
    flex: 0 0 auto;

    .repos-list {
      width: 320px;
      overflow: overlay;
      height: 90%;
      font-size: 14px;
      white-space: nowrap;

      > .list-group {
        margin: 0px;
        padding-bottom: 16px;
      }

      .list-group-item {
        padding: 12px 6px;

        &:hover {
          filter: brightness(1.2);
        }

        &:active {
          filter: brightness(0.8);
        }
      }
    }

    .style-editor-container {
      height: 100%;
      flex: 1;
      padding: 0px;
      width: 100%;
      overflow: hidden;

      .stylestack-editor {
        padding-bottom: 16px;
      }

      .list-group-item {
        border-radius: 0px;
      }
    }
  }

  .stylestack-editor {
    width: 100%;

    .btn,
    .btn-group {
      width: 100%;
    }

    .themeLabel {
      display: flex;
      align-items: center;
    }

    .handle {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .list-group-item {
      &:hover {
        cursor: grab;
      }

      &:active {
        cursor: grabbing;
      }
    }

    .removeItem {
      border: 0px;
      background: transparent;
      height: 32px;
      font-weight: bold;
      color: var(--textColor);
      cursor: pointer;
    }

    .stylesDropdown {
      > .dropdown-menu {
        height: 300px;
        overflow-y: overlay;
      }
    }
  }
}

// Library - Songs page
.library-page {
  padding: 0px;

  .library-header {
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(200, 200, 200, 0.05);
    z-index: 6;
    background: black;
    padding: 0px 2em;
    backdrop-filter: blur(32px);
    background: rgba(0, 0, 0, 0.25);
    top: var(--navigationBarHeight);
  }

  .well {
    margin: 2em;
  }
}

// Search Page
&.search-page {
  .searchToggle {
    float: right;

    > button {
      min-width: 120px;
    }
  }
  .categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1rem;
  }
  .cd-mediaitem-square.mediaitem-brick {
    width: 100% !important;
    height: 168px;
    padding-block: 0.5rem;
    .artwork-container .artwork {
      height: 168px !important;
      width: 100% !important;
      z-index: 1;
    }
    .info-rect {
      height: max-content;
    }
    .title {
      font-weight: bold;
      justify-content: left;
      font-size: 18px;
      margin-top: -40px;
      z-index: 5;
      pointer-events: none;
    }
  }
}

// Podcast Page
.content-inner.podcasts-page {
  display: flex;
  height: calc(100% - var(--navigationBarHeight));
  padding: 0px;

  .list-flat {
    border-radius: 0px;
  }

  .podcast-artwork {
    width: 200px;
    margin: 16px auto;
    height: 200px;
  }

  .podcasts-list {
    height: 100%;
    width: 280px;
    background: rgb(200 200 200 / 10%);
    overflow-y: overlay;
    border-right: 1px solid var(--color2);
    flex: none;
    overflow-x: hidden;

    .podcast-list-header {
      border-bottom: 1px solid var(--color2);
      font-size: 0.7em;
      padding: 6px;
      background: #ffffff17;
      text-transform: uppercase;
      font-weight: 600;
      opacity: 0.5;
    }

    .podcasts-search {
      padding: 10px;
      position: sticky;
      top: 0;
      left: 0;
      width: 100%;
      border-bottom: 1px solid var(--color2);
      z-index: 2;
      background: #303030;
    }
  }

  .episodes-list {
    height: 100%;
    width: 100%;
    background: rgb(200 200 200 / 6%);
    overflow-y: overlay;
    overflow-x: hidden;

    .episodes-inline-info {
      padding: 14px 14px 0px 14px;

      .podcast-show-info {
        display: flex;
        justify-content: center;
        flex-direction: column;
      }

      .podcast-show-description {
        margin: 32px 6px;
        font-size: 0.8rem;
        white-space: pre-wrap;
        display: block;
      }

      .podcast-artwork {
        width: 120px;
        margin: 0px auto;
        height: 120px;
      }
    }

    .podcast-no-search-results {
      text-align: center;
      margin-top: 40px;
    }
  }

  .podcasts-details {
    width: 300px;
    flex: none;
    background: rgb(255 255 255 / 5%);
    overflow-y: overlay;
    overflow-x: hidden;
    top: 2%;
    z-index: 2;
    border-left: 1px solid var(--color2);
    padding-bottom: 1em;

    .meta-btn {
      font-size: 0.75em;
    }

    .podcasts-details-header {
      display: flex;
      justify-content: end;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 2;
    }

    .close-btn {
      width: 50px;
      height: 42px;
      background-image: var(--gfx-closeBtn);
      background-position: center;
      background-repeat: no-repeat;
      -webkit-app-region: no-drag;
      appearance: none;
      border: 0;
      background-color: transparent;
      position: absolute;
      top: 0;
      right: 0;

      &:hover {
        background-color: rgb(196, 43, 28);
      }
    }

    .podcast-genre {
      text-align: center;
      margin: 6px;
      font-size: 0.8em;
      font-weight: 500;
      opacity: 0.8;
    }

    .podcast-metainfo {
      text-align: center;
      font-size: 0.7em;
      opacity: 0.8;
    }

    .podcast-header {
      text-align: center;
      padding: 0 1rem;
    }

    .podcast-play-btn {
      width: 50%;
      display: block;
      margin: 0 auto;
    }

    .podcast-description {
      margin: 12px;
      font-size: 0.75em;
      white-space: pre-wrap;
      display: block;
      line-break: anywhere;
    }
  }
}

// Podcast Page
.content-inner.library-artists-page {
  // top: 0;
  height: calc(100% - 60px - var(--navigationBarHeight));
  padding: 0px;

  .inner-container {
    display: flex;
    height: calc(100% - var(--navigationBarHeight));
    padding: 0px;
    height: 100%;

    .list-flat {
      border-radius: 0px;
    }

    .podcast-artwork {
      width: 200px;
      margin: 16px auto;
      height: 200px;
    }

    .podcasts-list {
      height: 100%;
      width: 280px;
      background: rgb(200 200 200 / 10%);
      overflow-y: overlay;
      border-right: 1px solid var(--color2);
      flex: none;
      overflow-x: hidden;

      .podcast-list-header {
        border-bottom: 1px solid var(--color2);
        font-size: 0.7em;
        padding: 6px;
        background: #ffffff17;
        text-transform: uppercase;
        font-weight: 600;
        opacity: 0.5;
      }

      .podcasts-search {
        padding: 10px;
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        border-bottom: 1px solid var(--color2);
        z-index: 2;
        background: #303030;
      }
    }

    .episodes-list {
      height: calc(100% + 60px);
      width: 100%;
      background: rgb(200 200 200 / 6%);
      overflow-y: overlay;
      overflow-x: hidden;

      .episodes-inline-info {
        padding: 14px 14px 0px 14px;

        .podcast-show-info {
          display: flex;
          justify-content: center;
          flex-direction: column;
        }

        .podcast-show-description {
          margin: 32px 6px;
          font-size: 0.8rem;
          white-space: pre-wrap;
          display: block;
        }

        .podcast-artwork {
          width: 120px;
          margin: 0px auto;
          height: 120px;
        }
      }

      .podcast-no-search-results {
        text-align: center;
        margin-top: 40px;
      }
    }

    .podcasts-details {
      width: 300px;
      flex: none;
      background: rgb(255 255 255 / 5%);
      overflow-y: overlay;
      overflow-x: hidden;
      top: 2%;
      z-index: 2;
      border-left: 1px solid var(--color2);
      padding-bottom: 1em;

      .meta-btn {
        font-size: 0.75em;
      }

      .podcasts-details-header {
        display: flex;
        justify-content: end;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 2;
      }

      .close-btn {
        width: 50px;
        height: 42px;
        background-image: var(--gfx-closeBtn);
        background-position: center;
        background-repeat: no-repeat;
        -webkit-app-region: no-drag;
        appearance: none;
        border: 0;
        background-color: transparent;
        position: absolute;
        top: 0;
        right: 0;

        &:hover {
          background-color: rgb(196, 43, 28);
        }
      }

      .podcast-genre {
        text-align: center;
        margin: 6px;
        font-size: 0.8em;
        font-weight: 500;
        opacity: 0.8;
      }

      .podcast-metainfo {
        text-align: center;
        font-size: 0.7em;
        opacity: 0.8;
      }

      .podcast-header {
        text-align: center;
      }

      .podcast-play-btn {
        width: 50%;
        display: block;
        margin: 0 auto;
      }

      .podcast-description {
        margin: 12px;
        font-size: 0.75em;
        white-space: pre-wrap;
        display: block;
        line-break: anywhere;
      }
    }
  }

  @media only screen and (max-width: 1230px) {
    .content-inner.podcasts-page {
      .podcasts-details {
        height: 96%;
        width: 300px;
        flex: none;
        background: rgb(20 20 20 / 97%);
        overflow-y: overlay;
        overflow-x: hidden;
        position: absolute;
        right: 2%;
        top: 2%;
        border-radius: 10px;
        box-shadow: var(--ciderShadow-Generic);
        z-index: 2;
      }
    }
  }
}

@media only screen and (max-width: 1230px) {
  .content-inner.podcasts-page {
    .podcasts-details {
      height: 96%;
      width: 300px;
      flex: none;
      background: rgb(20 20 20 / 97%);
      overflow-y: overlay;
      overflow-x: hidden;
      position: absolute;
      right: 2%;
      top: 2%;
      border-radius: 10px;
      box-shadow: var(--ciderShadow-Generic);
      z-index: 2;
    }
  }
}

/* Album / Playlist Page */
.album-header {
  position: sticky;
  left: 0;
  z-index: 6;
  padding: 0px 2em;
  backdrop-filter: blur(32px);
  background: rgba(0, 0, 0, 0.25);
  top: var(--navigationBarHeight);
  --bs-gutter-x: 4rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  border-bottom: 1px solid rgba(200, 200, 200, 0.05);
}
.playlist-page {
  --bgColor: transparent;
  padding: 0px;
  //background: linear-gradient(180deg, var(--bgColor) 32px, var(--bgColor) 18px, transparent 60px, transparent 100%);
  top: 0;
  padding-top: var(--navigationBarHeight);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;

  .cd-mediaitem-list-item {
    &:hover {
      .heart-icon {
        display: flex;
      }
    }

    .heart-icon {
      left: -25px;
    }
  }

  .editTracksBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;

    > span {
      display: flex;
      gap: 8px;
    }
  }

  .mediaContainer {
    transition:
      width 0.5s ease-in-out,
      height 0.5s ease-in-out;
    width: 260px;
    height: 260px;
  }

  .playlist-body {
    padding: 32px;
    // margin-top: -75px;
    overflow-y: overlay;
    height: 100%;
    padding: 0px;
    background-color: var(--color3);

    &.scrollbody {
      .tabs {
        display: flex;
        flex-flow: column;
        height: 100%;

        .nav-link {
          text-transform: capitalize;
        }

        .tab-content {
          height: 100%;
          overflow: hidden;
          margin: 0px;

          .tab-pane {
            height: 100%;
            overflow-y: overlay;
            overflow-x: hidden;
            padding: var(--contentInnerPadding);
            padding-inline: 40px;
            -webkit-mask-image: linear-gradient(180deg, transparent, white 20px);

            .well {
              margin: 0px;
            }
          }
        }
      }
    }

    .search-input-container {
      height: 2.5rem;
      margin: 1rem;
      margin-top: 0;
      scroll-margin-top: 1rem;

      .search-input {
        width: 100%;
        height: 100%;
      }
    }
  }

  .floating-header {
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(200, 200, 200, 0.05);
    z-index: 6;
    padding: 0px 1em;
    backdrop-filter: blur(32px);
    background: rgba(0, 0, 0, 0.25);
    top: var(--navigationBarHeight);
    transition: opacity 0.1s var(--appleEase);
    display: none;
  }

  .playlist-display {
    padding: var(--contentInnerPadding);
    min-height: 300px;
    position: relative;
    box-shadow: 0px 4px 6px 3px rgb(0 0 0 / 10%);
    transition: min-height 0.5s ease-in-out;

    .artworkContainer {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: 0;
      margin-top: calc(var(--navigationBarHeight) * -1);
      margin-bottom: -10px;
      padding: 0;
      -webkit-mask-image: radial-gradient(at top left, black, transparent 70%), radial-gradient(at top right, black, transparent 70%), linear-gradient(180deg, rgb(200 200 200), transparent 98%);
      opacity: 0.7;
      animation: playlistArtworkFadeIn 1s var(--appleEase);

      .artworkMaterial img {
        filter: brightness(100%) blur(80px) saturate(100%) contrast(1);
        object-position: center;
        object-fit: cover;
        width: 100%;
        height: 100%;
        transform: unset;
      }
    }

    .playlistInfo {
      z-index: 1;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      top: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;

      .playlist-hero {
        width: 100%;
        transform: translateX(+25%);
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        .mediaitem-artwork {
          -webkit-mask-image: -webkit-radial-gradient(center, circle cover, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 75%);
          border-radius: 0px;
        }

        .hero-tint {
          position: absolute;
          top: 0;
          opacity: 0.6;
          width: 100%;
          height: 100%;
        }
      }

      > .row {
        width: calc(100% - 32px);
      }

      .playlist-info {
        flex-shrink: unset;
        display: flex;
        flex-flow: column;
        justify-content: flex-end;

        .playlist-name {
          font-weight: 700;
          font-size: 1.6rem;
          //margin-bottom: 6px;
          margin-right: 6px;
          margin-bottom: 6px;
          flex-shrink: unset;
        }

        .search-input::placeholder {
          color: var(--heroplaceholdercolor);
        }

        .nameEdit {
          font-weight: 700;
          font-size: 1.6rem;
          flex-shrink: unset;
          background: transparent;
          border: 0px;
          color: inherit;
          font-family: inherit;
        }

        .descriptionEdit {
          font-size: 14px;
          flex-shrink: unset;
          background: transparent;
          border: 0px;
          color: inherit;
          font-family: inherit;
          width: 60vw;
        }

        .descriptionEdit {
          font-size: 14px;
          flex-shrink: unset;
          background: transparent;
          border: 0px;
          color: inherit;
          font-family: inherit;
          width: 60vw;
        }

        .playlist-artist {
          font-size: 20px;
          margin-bottom: 6px;
          margin-right: 6px;
          flex-shrink: unset;
        }

        .playlist-desc {
          transition:
            height 0.2s ease-in-out,
            opacity 0.2s ease-in-out;
          box-sizing: border-box;
          font-size: 14px;
          flex-shrink: unset;
          margin-right: 5px;
          max-height: 100px;
          position: relative;
          height: 4vh;

          .content {
            height: 4vh;
            -webkit-mask-image: -webkit-gradient(linear, left 50%, left 90%, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
          }

          .more-btn {
            appearance: none;
            position: absolute;
            right: 0;
            bottom: 0;
            padding: 0 5px;
            font-size: 14px;
            color: var(--keyColor);
            background-color: transparent;
            border: 0px;
            cursor: pointer;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
            justify-content: flex-end;
            align-items: flex-end;
            font-weight: 600;
            font-family: inherit;
            text-transform: uppercase;
          }
        }

        .playlist-desc-expanded {
          box-sizing: border-box;
          font-size: 14px;
          position: relative;

          .more-btn {
            appearance: none;
            position: absolute;
            right: 0;
            bottom: 0;
            padding: 0 5px;
            font-size: 14px;
            color: var(--keyColor);
            background-color: transparent;
            border: 0px;
            cursor: pointer;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
            justify-content: flex-end;
            align-items: flex-end;
            font-weight: 600;
            font-family: inherit;
            text-transform: uppercase;
          }
        }

        .search-btn {
          display: flex;
          width: 32px;
          align-items: center;
          margin-right: 1rem;
          background: rgba(100, 100, 100, 0.5);
          border: none;
          cursor: pointer;
          border-radius: 100vmax;
          box-shadow: var(--ciderShadow-Generic);

          > ._svg-icon {
            width: 18px;
            height: 18px;
            margin: auto;
          }
        }

        .search-btn.active {
          animation: enlarge 0.5s ease-in-out;
        }

        .search-btn:hover {
          filter: brightness(125%);
        }

        @keyframes enlarge {
          0% {
            transform: scale(1);
          }
          50% {
            transform: scale(1.2);
          }
          100% {
            transform: scale(1);
          }
        }
      }
    }
  }

  .friends-info {
    display: flex;
    flex-flow: column;

    .badge-container {
      display: flex;
      flex-flow: wrap;

      .socialBadge {
        width: 40px;
        height: 40px;
        border-radius: 100%;
        overflow: hidden;
        box-shadow: var(--mediaItemShadow-ShadowSubtle);
        transition: transform 0.2s var(--appleEase);
        margin: 6px;

        &:hover {
          transform: scale(1.2);
        }
      }
    }

    .friends-name {
      text-align: center;
      font-size: 0.9em;
      margin: 8px;
    }
  }

  .playlist-time {
    font-size: 0.9em;
    margin: 6px;
    opacity: 0.7;
    transition:
      height 0.2s ease-in-out,
      opacity 0.2s ease-in-out;
    height: 0.9em;
  }

  &.inline-playlist {
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: sticky;
    margin-top: calc(var(--navigationBarHeight) * -1);

    .floating-header {
      opacity: 1;
      top: 0px;
      z-index: 6;
      padding: 1em;
      backdrop-filter: unset;
      background: black;

      h3 {
        display: none;
      }
    }

    .playlist-inner {
      background: black;
      width: 80%;
      height: 100%;
      overflow: overlay;
      box-shadow: var(--ciderShadow-Generic);
      border-radius: var(--mediaItemRadius) var(--mediaItemRadius) 0px 0px;

      .close-btn {
        position: sticky;
        top: 16px;
        left: 16px;
        margin-left: 16px;
        z-index: 7;
      }
    }
  }

  .pilldim {
    .nav-pills {
      width: max-content;
      margin: 0 auto;
      margin-top: 16px;
    }
  }

  &.plmin {
    .playlist-display {
      transition: min-height 0.5s ease-in-out;
      min-height: 200px;

      .playlistInfo {
      }

      .mediaContainer {
        transition:
          width 0.5s ease-in-out,
          height 0.5s ease-in-out;
        width: 128px !important;
        height: 128px !important;
      }

      .playlist-time {
        transition:
          height 0.2s ease-in-out,
          opacity 0.2s ease-in-out;
        height: 0px;
        opacity: 0;
      }

      .playlist-desc {
        transition:
          height 0.2s ease-in-out,
          opacity 0.2s ease-in-out;
        height: 0px !important;
        opacity: 0;
      }
    }
  }
}

@keyframes playlistArtworkFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.7;
  }
}

// Collection Page
.collection-page {
  padding-bottom: 128px;

  .top-fab {
    height: 52px;
    width: 52px;
    position: fixed;
    bottom: 32px;
    right: 32px;
    border-radius: 100%;
    background: rgb(60 60 60);
    border: 0px;
    appearance: none;
    box-shadow: var(--ciderShadow-Generic);

    > svg {
      height: 50%;
      color: #eee;
      pointer-events: none;
    }

    &:hover {
      background: rgb(100 100 100);
    }

    &:active {
      background: var(--keyColor);
    }
  }

  .header-text {
    margin-bottom: 32px;
  }
}

/* Artist Page */

.artist-page {
  padding: 0px;
  top: 0;

  .floating-header {
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(200, 200, 200, 0.05);
    z-index: 6;
    padding: 0px 1em;
    backdrop-filter: blur(32px);
    background: rgba(0, 0, 0, 0.25);
    top: var(--navigationBarHeight);
    transition: opacity 0.1s var(--appleEase);
  }

  &.animated .artist-header .more-btn-round {
    position: absolute;
    bottom: 22px !important;
    right: 28px;
  }

  &.animated .artist-header {
    min-height: 80vh;
  }

  &.animated .artist-header-compact {
    min-height: 40vh;
  }

  .artist-header {
    //background: linear-gradient(45deg, var(--keyColor), #0e0e0e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 400px;
    position: relative;
    pointer-events: none;

    .header-content {
      z-index: 1;
      // margin-top: -16px;
    }

    .artist-hero {
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;

      .mediaitem-artwork {
        border-radius: 0px;
      }
    }

    .artworkContainer {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: 0;
      padding: 0;
      -webkit-mask-image: radial-gradient(at top left, black, transparent 70%), radial-gradient(at top right, black, transparent 70%), linear-gradient(180deg, rgb(200 200 200), transparent 98%);
      opacity: 0.7;
      animation: playlistArtworkFadeIn 1s var(--appleEase);

      .artworkMaterial img {
        filter: brightness(100%) blur(80px) saturate(100%) contrast(1);
        object-position: center;
        object-fit: cover;
        width: 100%;
        height: 100%;
        transform: unset;
      }
    }

    .more-btn-round {
      position: absolute;
      bottom: 82px;
      right: 28px;
    }

    .social-btn {
      border-radius: 100%;
      background: transparent;
      height: 17px;
      border: 0px;
      cursor: pointer;
      z-index: 69;
      display: flex;
      justify-content: center;
      align-items: center;
      float: right;
    }
    @media only screen and (min-width: 1133px) and (max-width: 1277px) {
      .about-page {
        .social-btn {
          display: none !important;
        }
      }
    }

    .animated {
      width: 100%;
      height: 100%;
      align-self: center;
      position: absolute;
      overflow: hidden;
      box-shadow: rgb(0 0 0 / 50%) 0 0 0 1000000px inset;
      z-index: 1;

      video {
        overflow: hidden;
        height: 100%;
        width: 100%;
        min-height: 56.25vw;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
      }
    }

    .row .col.cider-flex-center {
      z-index: 4;
    }
  }

  .artist-image {
    width: 200px;
    height: 200px;
    margin: 32px;
    position: relative;

    .overlay-play {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      background: rgb(0 0 0 / 50%);
      transition: opacity 0.1s var(--appleEase);
      border-radius: 100%;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      appearance: none;
      border: 0px;
      padding: 0px;

      &:hover {
        opacity: 1;
      }

      &:active {
        background: var(--selected-click);
      }

      > svg {
        width: 70%;
      }
    }
  }

  .artist-play {
    width: 32px;
    height: 32px;
    background: rgba(100, 100, 100, 0.5);
    box-shadow: var(--ciderShadow-Generic);
    border-radius: 100%;
    box-shadow: var(--mediaItemShadow);
    display: none;
    cursor: pointer;
    appearance: none;
    border: 0px;
    padding: 0px;

    &:hover {
      filter: brightness(125%);
    }

    &:active {
      filter: brightness(75%);
      transform: scale(0.98);
      transition:
        transform 0s var(--appleEase),
        box-shadow 0.2s var(--appleEase);
    }
  }

  .artist-title {
    .artist-play {
      transform: translateY(3px);
      margin: 14px;
    }

    &.artist-animation-on {
      width: 100%;
      flex: unset;
      margin-left: 0.5em;
      color: whitesmoke;
      position: absolute;
      bottom: 0;

      .artist-play {
        display: block;
      }
    }
  }

  .artist-body {
    padding: 0px var(--contentInnerPadding) 0px var(--contentInnerPadding);
    margin: -64px 20px;

    .arow {
      display: flex;
      overflow: hidden;
      padding: 16px 32px;

      > .latestRelease {
        width: 250px;
      }

      > .topSongs {
        width: calc(100% - 250px);
      }

      &.arowb > .topSongs {
        width: 100%;
      }
    }
  }

  &.animated > .artist-body {
    padding: 0px var(--contentInnerPadding) 0px var(--contentInnerPadding);
    margin-top: -57px;
  }

  .showmoreless {
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    border: 0px;
    border-radius: 6px;
    appearance: none;
    color: var(--keyColor);
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 12px;
    float: right;
  }

  .showmoreless:hover {
    background: rgb(200 200 200 / 10%);
  }
}

/* Artist Page End */

// Settings page
.settings-page {
  padding: 0px;

  .nav {
    width: 90%;
    margin: 16px auto 0px;
  }
}

.i18n-page {
  textarea {
    background: black;
    color: #eee;
    font-weight: bold;
    font-size: 1em;
    font-family: system-ui, "Pretendard Variable";
    padding: 0.5em;
  }

  .selectCol {
    display: flex;
    align-items: center;
  }
}

// AudioLabs page
.audiolabs-page {
  padding: 0px;

  .md-option-header {
    padding: 1.25em 1.25em;
    border-bottom: unset;
    border-top: unset;
    font-weight: 600;
    font-size: 1em;
    background: rgb(255 255 255 / 3%);
  }

  .carousel-item > img {
    object-fit: cover;
    width: 100%;
  }

  .spprofile-line {
    height: 300px;
    width: 100%;
    max-width: 1024px;
    padding: 16px;
    margin: 0 auto;

    .spprofile-viewport {
      height: 100%;
      position: relative;
      border-radius: var(--mediaItemRadius);
      overflow: hidden;
      box-shadow: var(--mediaItemShadow-Shadow);
      background: black;

      .spprev,
      .nextprev {
        position: absolute;
        height: 100%;
        width: 64px;
        top: 0;
        background: rgb(0 0 0 / 20%);
        z-index: 1;
        border: 0px;
        transition:
          background 0.2s var(--appleEase),
          transform 0.2s var(--appleEase);

        &:hover {
          background: var(--selected);
          transform: scale(1.1);
        }

        &:active {
          transition: background 0s var(--appleEase);
          background: var(--selected-click);
        }

        &:before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: #eee;
          opacity: 1;
          -webkit-mask-position: center;
          -webkit-mask-repeat: no-repeat;
          -webkit-mask-size: 1em;
        }
      }

      .spprev {
        left: 0;

        &:before {
          -webkit-mask-image: url("./views/svg/chevron-left.svg");
        }
      }

      .nextprev {
        right: 0;

        &:before {
          -webkit-mask-image: url("./views/svg/chevron-right.svg");
        }
      }

      .spslide {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: black;

        > img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .sptitle {
          position: absolute;
          bottom: 0px;
          left: 0;
          width: 100%;
          text-align: center;
          font-size: 18px;
          text-shadow: 0px 2px 4px #00000033;
        }
      }

      .spfade-enter-active,
      .spfade-leave-active {
        --transitionTime: 0.2s;
        transition:
          opacity var(--transitionTime) var(--appleEase),
          transform var(--transitionTime) var(--appleEase);
        will-change: opacity, transform;
      }

      .spfade-enter {
        opacity: 0;
        transform: scale(1.2) translate3d(0, 0, 0);
        will-change: opacity, transform;
      }

      .spfade-leave-to {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
        will-change: opacity, transform;
      }
    }
  }

  .settings-option-body {
    margin: 16px;
  }
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}

//Home
.home-page {
  .md-btn-replay {
    background-image: linear-gradient(-45deg, #2e2173, #925042);
    animation: gradient-animation 5s ease-in-out infinite;
    background-size: 400% 400%;
    border: 0px;
    box-shadow: inset 0px 0px 0px 1px rgba(200, 200, 200, 0.2);
    text-transform: uppercase;
    font-weight: bold;
  }

  .md-btn-replay--hero {
    font-size: 1em;
    padding: 16px;
    background-image: linear-gradient(-45deg, #2e2173, #925042);
    animation: gradient-animation 5s ease-in-out infinite;
    background-size: 400% 400%;
    border: 0px;
    box-shadow: inset 0px 0px 0px 1px rgb(200 200 200 / 20%);
    margin-top: 1em;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: bold;
  }

  .artist-feed-card {
    position: absolute;
    bottom: 0;
    left: 10%;
    z-index: 1;
    background: black;
    width: 80%;
    height: 96%;
    overflow: scroll;
    border-radius: 10px;
  }

  .col.madeforyou-col {
    width: 420px;
    min-width: 0px;
    max-width: 420px;
  }

  .well.artistfeed-well {
    margin-top: 0px;
    height: 392px;
    align-content: flex-start;
  }

  .hint-text {
    font-size: 0.9rem;
    color: rgb(200 200 200 / 70%);
  }

  .user-icon {
    border-radius: 100%;
    width: 128px;
    height: 128px;
    overflow: hidden;
    box-shadow: var(--mediaItemShadow-Shadow);
    margin: 16px;
  }

  .well.profile-well {
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .name {
      margin: 4px;
      font-weight: 500;
    }

    .handle {
      margin: 4px;
      opacity: 0.7;
      font-weight: 500;
    }
  }
}

// Replay
.replay-page {
  --replayTextShadow: 0px 3px 2px #6f3f52;

  .replay-period {
    height: 200px;
    width: 200px;
    margin: 6px;
    border-radius: var(--mediaItemRadius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s var(--appleEase);
    transition-delay: 0.1s;
    align-self: center;

    &:hover {
      transform: translateY(-6px);
      transition-delay: 0s;
    }

    .artwork-container {
      height: 200px;
      width: 200px;
    }
  }

  .replay-playlist-container {
    .cd-mediaitem-square {
      height: 230px;
      width: 230px;

      .info-rect {
        display: none;
      }
    }
  }

  .replay-video {
    max-height: 300px;
    max-width: 800px;
    margin: 0 auto;

    .mediaitem-artwork {
      max-height: 300px;
      max-width: 800px;
    }

    .mediaitem-artwork .animatedartwork-view-box .animated video {
      object-fit: cover;
    }
  }

  .top-genres-container {
    .genre-name {
      font-size: 0.9em;
      margin: 6px 0px;
      font-weight: 500;
    }

    .genre-count {
      width: 100%;
      height: 32px;
      background: #ffffff14;
      border-radius: 10px;
      overflow: hidden;

      .genre-count-bar {
        height: 100%;
        width: 0%;
        background: var(--keyColor);
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 32px;
        font-size: 0.9em;
        font-weight: 500;
      }
    }
  }

  .cd-mediaitem-square {
    .mediaitem-artwork {
      animation: replayFadeIn 0.5s var(--appleEase);
    }

    transition: transform 0.2s var(--appleEase);
    transition-delay: 0.1s;

    &:hover {
      transform: scale(1.1);
      transition-delay: 0s;
    }
  }

  @keyframes replayFadeIn {
    0% {
      //border-radius: 100%;
      transform: translateY(10px) scale(0.9);
      opacity: 0;
    }

    100% {
      //border-radius: var(--mediaItemRadius);
      transform: scale(1);
      opacity: 1;
    }
  }

  .replay-viewport {
    background-image: linear-gradient(-45deg, #2e2173, #925042);
    animation: gradient-animation 5s ease-in-out infinite;
    background-size: 400% 400%;
    padding: 16px 40px;
    border-radius: 10px;
    box-shadow: var(--mediaItemShadow), var(--mediaItemShadow-Shadow);
    color: rgb(238 238 238 / 86%);

    .replay-header {
      text-align: center;
      font-size: 3em;
      text-shadow: var(--replayTextShadow);
    }
  }

  .replay-card {
    background: transparent;
    border: 0px;
  }
}

.content-inner.oobe {
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 100%;
  background: #1e1e1e;

  .oobe-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    max-width: 1280px;
    max-height: 720px;
    align-self: center;
    justify-self: center;
    height: 100%;
    width: 100%;

    .oobe-header {
      font-size: 3em;
      text-shadow: var(--replayTextShadow);
      font-weight: 600;
    }

    .oobe-body {
      flex: 1;
      width: 100%;
      background: #ffffff0d;
      border-radius: 20px;
      padding: 3em;
      overflow-y: scroll;
      overflow-x: hidden;

      @media screen and (max-width: 1161px) {
        font-size: 13px;
      }

      &.text {
        white-space: pre-wrap;
      }

      .blurb {
        white-space: pre-wrap;
        margin: 16px;
        line-height: 1.5em;
      }

      &.visual {
        padding: 1em;

        .stylePicker {
          border-radius: 10px;
          overflow: hidden;
          cursor: pointer;
          transition: 0.25s all;
          box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);
          width: 450px;
          margin: 0 auto;

          .visualPreview {
            pointer-events: none;
            transition: 0.25s all;
            width: 100%;
          }

          .card-body {
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
          }

          .card-footer {
            font-size: 1.25em;
            font-weight: 500;
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            border: 0px;
            text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);
            font-weight: bold;
          }

          &.style-active {
            outline: 4px solid var(--keyColor);
          }

          &:hover {
            transform: scale(1.1) translateZ(-1px) translateY(10px);
            z-index: 1;
            box-shadow: 0px 12px 16px rgb(0 0 0 / 25%);
          }

          @media screen and (max-height: 688px) {
            width: 270px;
          }
        }
      }
    }

    .oobe-footer {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 16px;

      .md-btn {
        font-size: 18px;
        min-width: 128px;
        text-align: center;
      }
    }
  }

  .oobe-titlebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 46px;
    width: 100%;
    align-items: center;
    justify-content: right;
    display: flex;
    -webkit-app-region: drag;

    .button-group {
      -webkit-app-region: no-drag;
      display: flex;
      flex-direction: row;
      width: 100px;
      height: 100%;
      justify-content: center;
      align-items: center;
      gap: 16px;

      > button {
        height: 32px;
        width: 32px;
        font-size: 16px;
        border-radius: 0px;
        border: 0;
        appearance: none;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;

        &.close {
          background-color: #fc3c44aa;

          &:hover {
            background-color: #fc3c44;
          }
        }

        &.min {
          background-color: rgb(200 200 200 / 5%);

          &:hover {
            background-color: rgb(200 200 200 / 10%);
          }
        }

        &.close::before {
          font-family: "codicon";
          content: "";
          color: white;
        }

        &.min::before {
          font-family: "codicon";
          content: "";
          color: white;
        }
      }
    }
  }
}

.content-inner.cider-multiroom {
  padding: 0px;

  .detail {
    padding: 32px;
  }

  .header-desc {
    font-size: 1em;
    font-weight: 400;
  }

  .artworkContainer {
    height: 300px;
    width: 100%;

    img {
      height: 100%;
      width: 100%;
      overflow: hidden;
      object-fit: cover;
      filter: unset;

      &:last-child {
        transform: unset;
      }
    }
  }
}

.settings-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 0 0 / 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 16;

  .settings-window {
    background: var(--baseColorMix);
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: var(--ciderShadow-Generic);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
    backdrop-filter: var(--glassFilterHeavy);
    transition:
      width 0.25s ease-in-out,
      height 0.25s ease-in-out,
      max-width 0.25s ease-in-out,
      max-height 0.25s ease-in-out;

    .header-text {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      opacity: 0.9;
    }

    .nav-pills {
      gap: 6px;
    }

    .nav-pills .nav-link {
      display: flex;
      gap: 10px;
      align-items: center;
      height: 35px;

      :nth-child(2) {
        white-space: nowrap;
      }
    }

    .md-option-header {
      padding: 0px 26px;
      border-bottom: unset;
      border-top: unset;
      font-weight: 600;
      background: rgb(255 255 255 / 0%);
      font-size: 2em;
    }

    .settings-option-body-webview {
      height: 100%;
      width: 100%;
    }

    .settings-option-body {
      margin: 16px;
    }

    &.maxed {
      width: 100%;
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      border-radius: 0px;
      box-shadow: unset;
    }

    .close-btn {
      width: 36px;
      height: 36px;
      background-position: center;
      background-repeat: no-repeat;
      -webkit-app-region: no-drag;
      appearance: none;
      border: 0;
      background-color: transparent;
      position: absolute;
      top: 10px;
      right: 10px;
      border-radius: 50px;
      display: grid;
      align-content: center;
      z-index: 9;

      &:before {
        content: "";
        font-family: "codicon";
        color: var(--textColor);
        font-size: 20px;
      }

      &:hover {
        background-color: rgb(196, 43, 28);
      }

      &.back-btn {
        left: 10px;
        right: unset;
      }

      &.minmax-btn {
        right: 52px;

        &:before {
          content: "";
        }

        &.min {
          &:before {
            content: "";
          }
        }

        &:hover {
          background-color: var(--selected);
        }
      }
    }

    .tabs {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;

      > .col-auto {
        width: auto;
        overflow-x: hidden;
        overflow-y: overlay;
        transition: width 0.25s ease-in-out;
      }

      .tab-content {
        margin: 0 !important;
      }
    }

    .tab-content {
      overflow-y: overlay;
      height: 100%;
      background-color: var(--panelColor2);
      padding: 0px;
      padding-top: 48px;
      border-left: 1px solid var(--borderColor);
    }

    .github-themes-page,
    .installed-themes-page {
      .header-text {
        font-size: 1.25em;
      }
    }

    .tab-pane {
      height: 100%;
    }

    .settings-tab-content {
      height: 100%;
    }

    &.no-sidebar {
      .gh-header {
        > .row {
          &:last-child {
            padding-right: 90px;
          }
        }
      }
      .tab-content {
        padding-top: 0px;
      }

      .tabs {
        .nav-pills .nav-link {
          width: 50px;
          :nth-child(2) {
            // font-size: 0px;
            opacity: 0;
          }
        }
        > .col-auto {
          width: 80px;
        }
      }
    }
  }
}

#hid___BV_tab_button__ {
  display: none;
}
