@charset "UTF-8";

:root {
  --psx-header-h: 70px;
  --psx-sidebar-w: 260px;
}

main#vue-app.psx-shell {
  display: block;
  min-height: 100vh;
}

main#vue-app.psx-shell .psx-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--psx-sidebar-w);
  min-width: var(--psx-sidebar-w);
  height: 100vh;
  padding: calc(var(--psx-header-h) + 20px) 16px 24px;
  overflow-y: auto;
  background: var(--psx-color-surface-soft);
  border-right: 1px solid var(--psx-color-border);
  border-bottom-right-radius: var(--psx-radius-lg);
  z-index: 900 !important;
}

main#vue-app.psx-shell .psx-content {
  margin-left: var(--psx-sidebar-w);
  width: calc(100% - var(--psx-sidebar-w));
  min-height: calc(100vh - var(--psx-header-h));
  box-sizing: border-box;
}

/* Single source for page container spacing, instead of long per-page selector lists */
main#vue-app.psx-shell .psx-content > :first-child {
  width: min(1200px, calc(100% - 64px));
  margin-top: calc(var(--psx-header-h) + 40px);
  margin-left: 32px;
  margin-right: 32px;
  margin-bottom: 140px;
  display: flex;
  flex-direction: column;
}

main#vue-app.psx-shell .psx-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.16s ease;
}

main#vue-app.psx-shell .psx-sidebar a:hover {
  background: rgba(0, 0, 0, 0.03);
}

main#vue-app.psx-shell .psx-sidebar a svg {
  flex: 0 0 auto;
}

main#vue-app.psx-shell .psx-sidebar a p,
main#vue-app.psx-shell .psx-subtabs a p {
  margin: 14px 0;
  font: 16px Inter;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

main#vue-app.psx-shell .psx-subtabs {
  display: none;
  flex-direction: column;
  margin: 0 0 12px 28px;
}

main#vue-app.psx-shell .psx-subtabs a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
}

main#vue-app.psx-shell .psx-subtabs a p {
  margin: 5px 0;
  font-weight: 300;
}

main#vue-app.psx-shell .psx-subtabs a .number {
  padding: 2px 6px;
  background-color: rgb(240, 240, 240);
  color: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  text-decoration: none !important;
}

main#vue-app.psx-shell .psx-sidebar a:hover p,
main#vue-app.psx-shell .psx-subtabs a:hover p {
  text-decoration: underline;
}

main#vue-app.psx-shell .psx-subtabs.is-open {
  display: flex;
}

main#vue-app.psx-shell .your_music_arrow {
  transition: transform 0.2s ease;
}

main#vue-app.psx-shell .your_music_arrow.is-open {
  transform: rotate(180deg);
}

@media (max-width: 1200px) {
  :root {
    --psx-sidebar-w: 236px;
  }

  main#vue-app.psx-shell .psx-content > :first-child {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 992px) {
  main#vue-app.psx-shell {
    padding-top: calc(var(--psx-header-h) + 56px);
  }

  main#vue-app.psx-shell .psx-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    top: calc(var(--psx-header-h) + 8px);
    left: 10px;
    right: 10px;
    z-index: 1002;
    height: 42px;
    margin: 0;
    width: calc(100% - 20px);
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  }

  main#vue-app.psx-shell .psx-mobile-nav-toggle.is-open {
    border-color: var(--psx-color-accent);
    color: var(--psx-color-accent);
  }

  main#vue-app.psx-shell .psx-sidebar {
    display: none;
    position: fixed;
    top: calc(var(--psx-header-h) + 56px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: calc(100vh - (var(--psx-header-h) + 56px));
    border-right: 0;
    border-bottom: 1px solid var(--psx-color-border);
    border-bottom-right-radius: 0;
    padding: 10px;
    gap: 6px;
    background: var(--psx-color-surface-soft);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    z-index: 1001 !important;
  }

  main#vue-app.psx-shell .psx-sidebar.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  main#vue-app.psx-shell .psx-sidebar a {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    justify-content: flex-start;
  }

  main#vue-app.psx-shell .psx-content {
    width: 100%;
    margin-left: 0;
    padding: 0 10px;
    min-height: auto;
  }

  main#vue-app.psx-shell .psx-content > :first-child {
    width: 100%;
    margin: 18px 0 120px;
  }
}
