* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #161b22 100%);
  color: #c9d1d9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}
.top-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  background: linear-gradient(
    135deg,
    rgba(22, 27, 34, 0.92) 0%,
    rgba(26, 31, 46, 0.9) 50%,
    rgba(22, 27, 34, 0.92) 100%
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b949e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-item:hover {
  background: rgba(48, 54, 61, 0.3);
  color: #c9d1d9;
}
.nav-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-item.active {
  color: #c9d1d9;
  background: rgba(48, 54, 61, 0.25);
}
.nav-projects-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.nav-projects-wrap .nav-item {
  display: flex;
  align-items: center;
}
.nav-chevron {
  margin-left: 4px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.nav-projects-wrap.expanded .nav-chevron {
  transform: rotate(180deg);
}
.nav-projects-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: linear-gradient(
    135deg,
    rgba(22, 27, 34, 0.98) 0%,
    rgba(26, 31, 46, 0.96) 50%,
    rgba(22, 27, 34, 0.98) 100%
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 8px;
  padding: 4px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.nav-projects-wrap.expanded .nav-projects-dropdown {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 8px 12px 8px 14px;
  color: #8b949e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(48, 54, 61, 0.3);
  color: #c9d1d9;
}
.nav-dropdown-item.active {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.08);
}
.site-footer {
  text-align: center;
  padding: 16px 20px;
  margin-top: 8px;
  font-size: 13px;
  color: #8b949e;
}
.profile-column {
  position: relative;
}
.visitor-count-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 12px;
  color: #8b949e;
  background: #191f29;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(48, 54, 61, 0.7);
}
.page-content {
  transition: opacity 0.3s ease;
}
.page-content.hidden {
  display: none !important;
}
.page-content.page-fade-out {
  opacity: 0;
}
#page-home {
  width: 100%;
}
#page-projects {
  width: 100%;
  position: relative;
  padding-top: 60px;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}
#page-projects-async,
#page-projects-8crypt {
  width: 100%;
  position: relative;
  padding-top: 60px;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}
.project-detail-page {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 80px);
  padding: 40px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.project-detail-page::-webkit-scrollbar {
  display: none;
}
.async-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(48, 54, 61, 0.5);
}
.async-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.async-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #8b949e;
  font-family: Consolas, monaco, "Andale Mono", monospace;
}
.async-stat-label {
  font-size: 13px;
  color: #8b949e;
}
.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b949e;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.project-back-link:hover {
  color: #58a6ff;
}
.project-detail-hero {
  text-align: center;
  margin-bottom: 20px;
}
.project-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 1px solid rgba(48, 54, 61, 0.5);
}
.project-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #c9d1d9;
  margin: 0 0 8px;
}
.project-detail-type {
  font-size: 14px;
  color: #58a6ff;
  font-weight: 500;
}
.project-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.platform-badge {
  font-size: 11px;
  font-weight: 500;
  color: #8b949e;
  background: rgba(48, 54, 61, 0.4);
  border: 1px solid rgba(48, 54, 61, 0.5);
  padding: 4px 10px;
  border-radius: 6px;
}
.project-invite-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.project-invite-cta {
  align-self: flex-start;
}
.project-invite-hint {
  font-size: 12px;
  color: #8b949e;
  margin: 0;
  font-style: italic;
}
.download-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  border: none;
}
.download-btn .nav-chevron {
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.download-dropdown-wrap.expanded .download-btn .nav-chevron {
  transform: rotate(180deg);
}
.download-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.98) 0%, rgba(26, 31, 46, 0.96) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 8px;
  padding: 4px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.download-dropdown-wrap.expanded .download-dropdown {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}
.download-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #8b949e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.download-dropdown-item:hover {
  background: rgba(48, 54, 61, 0.3);
  color: #c9d1d9;
}
.project-detail-content {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 24px;
}
.project-detail-section {
  margin-bottom: 14px;
}
.project-detail-section:last-child {
  margin-bottom: 0;
}
.project-detail-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #c9d1d9;
  margin: 0 0 8px;
}
.project-detail-section p {
  font-size: 14px;
  color: #b5b8bb;
  line-height: 1.6;
  margin: 0 0 12px;
}
.project-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #58a6ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(88, 166, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(88, 166, 255, 0.3);
  transition: all 0.2s ease;
}
.project-detail-link:hover {
  background: rgba(88, 166, 255, 0.15);
  border-color: rgba(88, 166, 255, 0.5);
}
.project-commands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.project-commands-category {
  background: rgba(48, 54, 61, 0.2);
  border: 1px solid rgba(48, 54, 61, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-commands-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #58a6ff;
}
.project-commands-list {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.4;
}
.project-commands-note {
  font-size: 12px;
  color: #8b949e;
  margin: 12px 0 0;
}
.project-detail-section code {
  background: rgba(48, 54, 61, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.projects-page {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  padding: 40px 20px;
  box-sizing: border-box;
}
.projects-scroll {
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 55vh;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 148, 158, 0.4) rgba(48, 54, 61, 0.3);
}
.projects-scroll::-webkit-scrollbar {
  width: 6px;
}
.projects-scroll::-webkit-scrollbar-track {
  background: rgba(48, 54, 61, 0.3);
  border-radius: 3px;
}
.projects-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 148, 158, 0.4);
  border-radius: 3px;
}
.projects-hero {
  text-align: center;
  margin-bottom: 32px;
}
.projects-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(48, 54, 61, 0.3);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 20px;
  margin-bottom: 20px;
  color: #8b949e;
  transition: all 0.3s ease;
}
.projects-hero:hover .projects-icon {
  background: rgba(48, 54, 61, 0.5);
  color: #c9d1d9;
  transform: scale(1.05);
}
.projects-title {
  font-size: 32px;
  font-weight: 700;
  color: #c9d1d9;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.projects-subtitle {
  font-size: 16px;
  color: #8b949e;
  margin: 0;
  font-weight: 500;
}
.projects-card {
  max-width: 520px;
  width: 100%;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.projects-page .projects-card {
  padding: 24px;
}
.projects-card:hover {
  border-color: rgba(48, 54, 61, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.projects-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.projects-placeholder .placeholder-icon {
  color: rgba(139, 148, 158, 0.3);
  stroke-dasharray: 2;
  animation: icon-pulse 3s ease-in-out infinite;
}
@keyframes icon-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}
.projects-placeholder .placeholder-text {
  font-size: 18px;
  font-weight: 600;
  color: #c9d1d9;
  margin: 0;
}
.projects-placeholder .placeholder-hint {
  font-size: 14px;
  color: #8b949e;
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.project-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.project-bar:hover {
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  background: rgba(22, 27, 34, 0.8);
}
.project-bar-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(48, 54, 61, 0.4);
}
.project-bar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-bar-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.project-bar-name {
  font-size: 17px;
  font-weight: 700;
  color: #c9d1d9;
  margin: 0 0 2px;
}
.project-bar-type {
  font-size: 12px;
  color: #58a6ff;
  font-weight: 500;
}
.project-bar-detail {
  font-size: 13px;
  color: #8b949e;
  margin: 0;
  line-height: 1.4;
}
.project-bar-arrow {
  flex-shrink: 0;
  color: #8b949e;
  opacity: 0.6;
}
.project-bar:hover .project-bar-arrow {
  color: #58a6ff;
  opacity: 1;
}
.projects-grid {
  display: grid;
  gap: 20px;
}
.main-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.profile-card {
  position: relative;
  overflow: hidden;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  height: 295px;
}
#local-time {
  position: absolute;
  top: 152px;
  right: 14px;
  z-index: 2;
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 13px;
  color: #8b949e;
  background: #191f29;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(48, 54, 61, 0.7);
  display: flex;
  align-items: center;
}
.clock-icon {
  stroke: #8b949e;
  width: 16px;
  height: 16px;
  margin-right: 5px;
}
#profile-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
#profile-banner[src=""],
#profile-banner:not([src]) {
  display: none;
}
.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}
.avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.91);
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 1;
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.status-indicator {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgb(22, 27, 34);
  border: 3px solid rgba(22, 27, 34, 0.9);
  box-sizing: content-box;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.username-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.display-name {
  font-size: 26px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.username-line {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-width: 0;
  position: relative;
}
.username-flex {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
#guild-badge {
  display: inline-flex;
  align-items: center;
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 11px;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1;
  gap: 1px;
  white-space: nowrap;
  box-sizing: border-box;
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
}
#guild-badge-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
#guild-badge-tag {
  font-weight: 600;
}
.username-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.status-icons-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.at-username {
  color: #8b949e;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-status {
  color: #c9d1d9;
  font-size: 14px;
  margin-bottom: 8px;
  min-height: 20px;
  word-break: break-word;
}
#main-activity-cards {
  position: relative;
}
.spotify-card {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 20px;
  height: 160px;
  position: relative;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: -3px;
}
.spotify-container {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: -4px;
}
#spotify-inactive .spotify-container {
  margin-top: 12px;
}
.album-art {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
}
.spotify-info {
  flex: 1;
  min-width: 0;
}
.song-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-name {
  color: #8b949e;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-name {
  color: #8b949e;
  font-size: 12px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -5px;
}
.time-display {
  flex-shrink: 0;
  font-size: 12px;
  color: #8b949e;
  margin-top: 3px;
}
.progress-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  background: #1db954;
  transition: width 0.15s linear;
}
.devices {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  align-items: center;
  transform: translateY(0.5px);
}
.device-icon {
  opacity: 1;
  fill: #c9d1d9;
}
.devices .device-icon {
  width: 18px;
  height: 18px;
}
.section-card {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  min-height: 332px;
  display: flex;
  flex-direction: column;
}
.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}
#refresh-songs-btn {
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background-color 0.2s;
  transform: translateY(-4px);
}
#refresh-songs-btn:disabled {
  color: #586069;
  cursor: not-allowed;
}
.banner-container {
  position: absolute;
  top: 10.1em;
  right: 11%;
  width: 400px;
  z-index: 1;
  pointer-events: none;
}
#banner-img {
  width: 100%;
  height: auto;
}
.empty-state {
  text-align: center;
  color: #8b949e;
  padding: 20px 0;
  margin-top: 5.2em;
}
#recent-songs-container {
  height: 280px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 10px;
  flex-grow: 1;
  transition: opacity 0.3s ease-in-out;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 148, 158, 0.4) rgba(48, 54, 61, 0.3);
}
#recent-songs-container::-webkit-scrollbar {
  width: 6px;
}
#recent-songs-container::-webkit-scrollbar-track {
  background: rgba(48, 54, 61, 0.3);
  border-radius: 3px;
}
#recent-songs-container::-webkit-scrollbar-thumb {
  background: rgba(139, 148, 158, 0.4);
  border-radius: 3px;
}
#about-me-card {
  height: 379px;
  max-height: 379px;
  overflow: hidden;
}
.about-me-content {
  position: relative;
  z-index: 1;
  padding-right: 10px;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 148, 158, 0.4) rgba(48, 54, 61, 0.3);
}
.about-me-content::-webkit-scrollbar {
  width: 6px;
}
.about-me-content::-webkit-scrollbar-track {
  background: rgba(48, 54, 61, 0.3);
  border-radius: 3px;
}
.about-me-content::-webkit-scrollbar-thumb {
  background: rgba(139, 148, 158, 0.4);
  border-radius: 3px;
}
.about-section {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}
.about-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.about-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-section p {
  font-size: 14px;
  color: #b5b8bb;
  line-height: 1.5;
}
.about-me-image {
  position: absolute;
  bottom: 0px;
  right: 21px;
  width: 230px;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.song-item {
  background: rgba(48, 54, 61, 0.3);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}
.song-album-art-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.play-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.song-item:hover .play-button,
.play-button.playing:hover {
  opacity: 1;
}
.play-button.playing {
  opacity: 0;
}
.song-album-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
}
.song-details {
  flex: 1;
  min-width: 0;
}
.song-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist-container {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8b949e;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explicit-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #8b949e;
  color: #0d1117;
  font-size: 10px;
  font-weight: 700;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  line-height: 1;
}
.song-artist-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-meta {
  margin-left: auto;
  padding-left: 10px;
  color: #8b949e;
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 23px;
}
.song-timestamp {
  font-size: 12px;
  color: #8b949e;
  margin-top: 4px;
}
.song-links {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  transition: opacity 0.2s;
}
.song-links a:hover {
  opacity: 1;
}
.song-links a img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 27, 34, 1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.loading-overlay span {
  animation: pulsate 1.5s ease-in-out infinite;
}
.loading-overlay.error span {
  color: #f87171;
  animation: none;
}
@keyframes pulsate {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.media-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 150%);
  background: rgba(30, 35, 45, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 90%;
  max-width: 500px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  z-index: 100;
  overflow: hidden;
}
#visualizer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}
.media-player > *:not(canvas) {
  position: relative;
  z-index: 1;
}
.media-player.visible {
  transform: translate(-50%, 0);
}
.media-album-art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
}
.media-song-info {
  flex: 1 1 0;
  min-width: 0;
  margin-left: 4px;
}
.media-song-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-song-artist {
  font-size: 12px;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-play-pause-btn {
  flex-shrink: 0;
}
.media-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}
.volume-controls,
.seek-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.volume-button {
  background: none;
  border: none;
  color: #bebebe;
  cursor: pointer;
  padding: -4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.volume-button svg {
  width: 18px;
  height: 18px;
}
.volume-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(48, 54, 61, 0.5);
  border-radius: 2px;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.volume-slider:hover {
  opacity: 1;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #c9d1d9;
  cursor: pointer;
  border-radius: 50%;
}
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #c9d1d9;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}
.volume-percentage {
  font-size: 12px;
  color: #8b949e;
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}
.seek-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(48, 54, 61, 0.5);
  border-radius: 2px;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.seek-slider:hover {
  opacity: 1;
}
.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #c9d1d9;
  cursor: pointer;
  border-radius: 50%;
}
.seek-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #c9d1d9;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}
.media-time {
  font-size: 11px;
  color: #8b949e;
}
.media-play-pause-btn,
.close-button {
  background: none;
  border: none;
  color: #c9d1d9;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.close-button {
  margin-left: 3px;
}
.spotify-bg-icon {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 128px;
  height: 128px;
  color: #dce3de;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}
#open-spotify-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background-color 0.2s;
  transform: translateY(-4px);
}
#profile-gif {
  position: absolute;
  top: 33px;
  right: -10px;
  width: 100px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-6px);
}
.social-links a {
  display: inline-block;
}
.social-links a img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.discord-auth-wrap {
  margin-top: 8px;
  font-size: 0.9rem;
}
.discord-auth-wrap a {
  color: var(--link-color, #7289da);
  text-decoration: none;
}
.discord-auth-wrap a:hover {
  text-decoration: underline;
}
.discord-auth-logged-in {
  color: var(--text-muted, #8b949e);
}
#spotify-active .card-title {
  margin-bottom: 0;
}
@keyframes content-change-flash {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
.updated {
  animation: content-change-flash 0.4s ease-out;
}
#cypher-text {
  display: inline-block;
  font-family: monospace;
  text-align: center;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .banner-container {
    right: 7%;
  }
  .bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    align-items: flex-start;
  }
  .main-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .banner-container {
    display: none;
  }
  .main-grid {
    margin-bottom: 20px;
  }
  #main-activity-cards {
    margin-bottom: 0;
  }
  .time-display {
    margin-top: 4px;
  }
  .projects-page {
    max-width: 95%;
    padding: 32px 16px;
  }
  .project-detail-page {
    max-width: 95%;
    padding: 32px 16px;
  }
  .project-commands-grid {
    grid-template-columns: 1fr;
  }
  .projects-scroll {
    max-height: 45vh;
  }
  .projects-title {
    font-size: 26px;
  }
  .project-bar {
    padding: 12px 16px;
  }
}
@media (max-width: 500px) {
  .spotify-bg-icon {
    display: none;
  }
}
@media (max-width: 400px) {
  .media-time {
    display: none;
  }
}
