:root {
  --bg: #080808;
  --text: #ffffff;
  --muted: #cfcfcf;
  --sidebar-w: 220px;
  --sidebar-collapsed-w: 64px;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.container {
  max-width: none;
  width: auto;
  text-align: center;
  padding: 64px 28px 25vh;
  margin: 0 auto;
}

.icon-link { display: inline-block; }
.icon {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.name {
  margin: 18px 0 4px;
  font-size: 2.8rem;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.bio {
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg);
  padding: 18px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 220ms ease, width 220ms ease;
  z-index: 80;
  transform: translateX(-100%);
}
.sidebar.open { transform: translateX(0); }
.sidebar.collapsed { width: var(--sidebar-collapsed-w); }
.toggle {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}
/* make toggle always reachable on small screens */
.toggle { position: fixed; top: 12px; left: 12px; z-index: 70; background: transparent; }
.nav { display:flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.nav-item {
  color: var(--text);
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
}
.label { transition: opacity 160ms ease, width 160ms ease; }
.sidebar.collapsed .label { opacity: 0; width: 0; pointer-events: none; display: inline-block; }
.sidebar.collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar.collapsed { width: var(--sidebar-collapsed-w); }
.nav-item:hover { background: rgba(255,255,255,0.03); }

#mainContent { margin-left: 0; width: 100%; transition: none; overflow: visible; padding-bottom: 25vh; box-sizing: border-box; }
/* deprecated: .shifted is no longer used */

/* small visual for album/cover pages */
.album-art { width: 220px; height: 220px; object-fit: contain; border-radius: 12px; display:block; margin:0 auto; max-width:100%; height:auto; }
.album-title { font-size: 2.8rem; margin: 18px 0 6px; }
.album-date { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.album { margin-bottom: 80px; }
.track-list { color: var(--muted); margin: 0 auto; text-align:center; display: inline-block; text-align: left; list-style-position: outside; padding-left: 2.2em; }
.track-list li { margin-bottom: 12px; }
.album-title, .track-list li { white-space: normal; }
.bandlink { color: #ff4b2b; text-decoration: none; font-weight:600; }

/* Social list */
.social-list { display:flex; flex-direction:column; gap:18px; max-width:720px; margin: 12px auto; }
.social-list { text-align: left; }
.social-item { display:flex; align-items:center; gap:8px; padding:12px; border-radius:10px; }
.social-icon { width:56px; height:56px; object-fit:contain; border-radius:8px; flex:0 0 56px; max-width:100%; height:auto; }
.social-name { font-size:1.125rem; font-weight:600; margin:0; }
.social-links { display:flex; flex-direction:column; gap:6px; }
.social-link { color: var(--muted); text-decoration:none; }
.social-link:hover { text-decoration:underline; }

/* Empty page message */
.empty-message {
  font-size: 2.2rem;
  text-align: center;
  color: var(--muted);
  margin-top: 120px;
}

@media (max-width: 720px) {
  .icon { width: 140px; height: 140px; }
  .name { font-size: 1.8rem; }
  /* mobile: hide sidebar off-canvas and let main content use full width */
  .sidebar { width: var(--sidebar-w); transform: translateX(-100%); transition: transform 220ms ease; }
  .sidebar.open { transform: translateX(0); z-index: 80; }
  .sidebar.collapsed { width: var(--sidebar-collapsed-w); }
  /* when sidebar is closed on mobile, main content should use full width */
  #mainContent { margin-left: 0; width: 100%; overflow-x: visible; }
  .sidebar.open .label { opacity: 1; width: auto; pointer-events: auto; display: inline-block; }
  /* reduce spacing and font sizes for mobile */
  .container { padding: 36px 14px 25vh; }
  .album-art { width: 180px; height: 180px; }
  .album-title { font-size: 2rem; }
  .album-date { font-size: 0.95rem; }
  .bandlink { font-size: 1rem; }
  .social-list { padding: 8px 0; }
  .social-item { gap: 10px; }
  .social-icon { width:48px; height:48px; }
  .social-name { font-size:1rem; }
  .track-list { text-align:left; }
  .track-list li { white-space: normal; }
}

/* overlay when sidebar is open on mobile */
body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 75; }

/* On larger screens keep titles/tracks on single line for cleaner layout */
@media (min-width: 721px) {
  .album-title, .track-list li { white-space: nowrap; }

  /* Center main content blocks on desktop for pages (except blog and social) */
  #mainContent { display: flex; flex-direction: column; align-items: center; }
  /* keep post pages and social list full-width and left-aligned */
  #mainContent .post-content, #mainContent .social-list { align-self: stretch; text-align: left; max-width: 900px; margin: 18px auto; }
  /* General centering for pages marked .centered-page */
  main.centered-page { max-width: 900px; margin: 0 auto; }
  main.centered-page > * { text-align: center; }
  main.centered-page .post-content, main.centered-page .social-list { text-align: left; }
  .album { text-align: center; }
  .track-list { display: inline-block; text-align: left; }
}

/* prevent accidental horizontal scroll on small devices */
@media (max-width: 720px) {
  body { overflow-x: hidden; }
}

@media (max-width: 420px) {
  .icon { width: 120px; height: 120px; }
  .name { font-size: 1.5rem; }
  .album-title { font-size: 1.6rem; }
  .container { padding: 28px 12px 25vh; }
}

@media (max-height: 600px) {
  #mainContent { padding-bottom: 15vh; }
  .container { padding-bottom: 15vh; }
}

/* Desktop: constrain content width for readability */
@media (min-width: 900px) {
  .container { max-width: 900px; }
}

/* Blog post styles */
.post-content { color: var(--text); text-align: left; max-width: 820px; margin: 18px auto; font-size: 1.05rem; line-height: 1.7; }
.post-content h1, .post-content h2, .post-content h3 { color: var(--text); }
.post-content p { color: var(--muted); }
.post-content img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 8px; }
.post-meta { color: var(--muted); margin-bottom: 12px; }
.post-button { display: inline-block; background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.08); padding: 14px 18px; border-radius: 10px; text-decoration:none; font-weight:700; }
.post-button .date { display:block; color: var(--muted); font-weight:500; margin-top:8px; font-size:0.95rem; }
