/* src/styles/base.css */
:root {
  color-scheme: dark;
  --bg: #151216;
  --bg-header: #221d24;
  --panel: #262626;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .6);
  --accent: #52b54b;
  --accent-bright: #6ccf65;
  --danger: #ff6b6b;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
#app {
  min-height: 100%;
}
.wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
h1 {
  font-size: 22px;
  margin: 0;
}
h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.panel {
  background: var(--bg-header);
  border-radius: 12px;
  padding: 20px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
.error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}
.spinner {
  display: inline-block;
  vertical-align: -3px;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}
button {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: var(--accent-bright);
}
button[disabled] {
  opacity: .5;
  cursor: default;
}
.linklike {
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  padding: 4px 0;
}
.linklike:hover {
  background: none;
  color: var(--accent-bright);
}
.code {
  color: var(--accent-bright);
  letter-spacing: .1em;
}
.pageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hide {
  display: none !important;
}

/* src/shell/Shell.css */
.appShell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-header);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebarBrand {
  font-size: 18px;
  font-weight: 700;
  padding: 0 12px 20px;
}
.sidebarNav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.navSectionLabel {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 16px 12px 6px;
}
.navItem {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navItem:hover {
  background: rgba(255, 255, 255, .06);
}
.navItem.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}
.sidebarLogout {
  margin-top: 12px;
  padding: 8px 12px;
}
.mainContent {
  flex: 1;
  min-width: 0;
  padding: 24px clamp(16px, 3vw, 48px) 80px;
}
@media (max-width: 720px) {
  .appShell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sidebarBrand {
    padding: 0 12px 0 0;
  }
  .sidebarNav {
    flex-direction: row;
    flex: none;
  }
  .navSectionLabel {
    display: none;
  }
  .sidebarLogout {
    margin: 0 0 0 12px;
  }
}

/* src/styles/presence.css */
.presenceOverlay {
  display: flex;
  gap: 8px;
}
.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  opacity: .75;
  border: 2px solid rgba(255, 255, 255, .3);
  user-select: none;
}

/* src/styles/trackList.css */
.trackList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.trackRow {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 12px;
  background: var(--bg-header);
  border-radius: 8px;
  padding: 8px 12px;
}
.trackIndex {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.trackName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trackDuration {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.trackRow button {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .trackRow {
    grid-template-columns: 24px 1fr;
  }
  .trackRow .trackDuration,
  .trackRow button {
    grid-column: 2;
    justify-self: start;
  }
}

/* src/musicBar/MusicBar.css */
.musicBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: var(--bg-header);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .3);
}
.musicBarProgressTrack {
  height: 3px;
  background: rgba(255, 255, 255, .12);
}
.musicBarProgressFill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .25s linear;
}
.musicBarRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  flex-wrap: wrap;
}
.musicBarPresence .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.musicBarImage {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--panel);
  flex-shrink: 0;
}
.musicBarImage.noImage {
  visibility: hidden;
}
.musicBarInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}
.musicBarInfo strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.musicBarPosition {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.musicBarQueue {
  max-width: 480px;
  max-height: 50vh;
  overflow-y: auto;
  margin: 0 16px;
  padding: 14px 14px 0;
  background: var(--bg-header);
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
@media (max-width: 720px) {
  .musicBarRow {
    justify-content: center;
  }
  .musicBarInfo {
    margin-right: 0;
    flex-basis: 100%;
    order: -1;
    text-align: center;
  }
  .musicBarQueue {
    max-width: none;
    margin: 0;
    border-radius: 0;
  }
}

/* src/tiles.css */
.searchBar {
  max-width: 320px;
  margin-bottom: 16px;
}
.searchEmpty {
  margin-top: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tile img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
  display: block;
}
.tile img.noImage {
  visibility: hidden;
}
.tileLink {
  position: absolute;
  inset: 0 0 26px 0;
  z-index: 1;
}
.tileLabel {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tileOverlay {
  position: absolute;
  inset: 0 0 26px 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, .55);
  border-radius: 8px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.tile:hover .tileOverlay,
.tile:focus-within .tileOverlay {
  opacity: 1;
  pointer-events: auto;
}
.tileBtn {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}
.tileBtn:hover {
  background: var(--accent-bright);
}
.tileBtnLink {
  background: var(--panel);
  color: var(--text);
}
.tileBtnLink:hover {
  background: #333;
}
@media (hover: none) {
  .tileOverlay {
    opacity: 1;
    pointer-events: auto;
    inset: auto 0 26px 0;
    flex-direction: row;
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, .75),
        transparent);
    padding: 6px;
  }
  .tileBtn {
    font-size: 11px;
    padding: 6px 4px;
  }
}

/* src/views/home/Home.css */
.section {
  margin-bottom: 32px;
}
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.carousel .tile {
  flex: 0 0 160px;
}
.carousel .partyCard {
  flex: 0 0 280px;
}
.partyCard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-header);
  border-radius: 10px;
  padding: 10px;
}
.partyCard img {
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--panel);
  flex-shrink: 0;
}
.partyCard img.noImage {
  visibility: hidden;
}
.partyCardInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.partyCardInfo strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partyCard button {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
}
.partyCardMine {
  flex-shrink: 0;
  padding: 8px 14px;
  color: var(--accent-bright);
  font-weight: 600;
}

/* src/views/series/Series.css */
.seriesHeader {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.seriesPoster {
  width: 160px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
  flex-shrink: 0;
}
.seriesPoster.noImage {
  visibility: hidden;
}
@media (max-width: 600px) {
  .seriesHeader {
    flex-direction: column;
  }
  .seriesPoster {
    width: 120px;
  }
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.tab {
  background: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab:hover {
  background: none;
  color: var(--text);
}
.tab.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}
.episodeList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.episodeRow {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-header);
  border-radius: 10px;
  padding: 10px;
}
.episodeRow img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--panel);
  flex-shrink: 0;
}
.episodeRow img.noImage {
  visibility: hidden;
}
.episodeInfo {
  flex: 1;
  min-width: 0;
}
.episodeInfo strong {
  display: block;
  margin-bottom: 4px;
}
.episodeInfo p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.episodeRow button {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .episodeRow {
    flex-wrap: wrap;
  }
  .episodeInfo {
    order: 3;
    flex-basis: 100%;
  }
}

/* src/views/album/Album.css */
.albumHeader {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.albumCover {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
  flex-shrink: 0;
}
.albumCover.noImage {
  visibility: hidden;
}
@media (max-width: 600px) {
  .albumHeader {
    flex-direction: column;
  }
  .albumCover {
    width: 120px;
  }
}

/* src/views/playlist/Playlist.css */
.playlistHeader {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.playlistCover {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
  flex-shrink: 0;
}
.playlistCover.noImage {
  visibility: hidden;
}
.playlistActions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .playlistHeader {
    flex-direction: column;
  }
  .playlistCover {
    width: 120px;
  }
}

/* src/views/player/Player.css */
.playerWrap {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
}
.playerWrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.topOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .7),
      transparent);
  z-index: 5;
}
.actionBar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  font-size: 13px;
  flex-wrap: wrap;
}
.actionBar .itemTitle {
  font-weight: 600;
}
.actionBar .members {
  color: var(--muted);
  flex: 1;
}
.settingsWrap {
  position: relative;
}
.iconBtn {
  background: none;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
  border-radius: 6px;
}
.iconBtn:hover {
  background: rgba(255, 255, 255, .12);
}
.settingsPanel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-header);
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  z-index: 5;
}
.settingsPanel label {
  color: var(--muted);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settingsPanel select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
}
.settingsPanel select:disabled {
  opacity: .5;
}
.burnInHint {
  margin: 0;
  max-width: 220px;
}
.loadingNotice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.playerError {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 360px;
  text-align: center;
  background: rgba(0, 0, 0, .75);
  padding: 20px;
  border-radius: 10px;
}
.playerError p {
  color: var(--danger);
  font-size: 14px;
  margin: 0 0 10px;
}
.bottomOverlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 6;
  max-width: calc(100% - 32px);
}
.requestBanner {
  background: rgba(0, 0, 0, .75);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
}
.followerNotice {
  margin: 0;
  background: rgba(0, 0, 0, .6);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
}
.requestToolbar {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(50% - 16px);
}
.requestBtn {
  background: rgba(0, 0, 0, .6);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  white-space: nowrap;
}
.requestBtn:hover {
  background: rgba(0, 0, 0, .8);
}
.avatarActionRequested {
  opacity: 1;
  border-color: #ff9800;
}
.avatarRequestBadge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff9800;
  border: 1px solid rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
}
.avatarActionRequested .avatarRequestBadge {
  display: flex;
}
/*# sourceMappingURL=app.css.map */
