* {
  box-sizing: border-box;
}
:root {
  --accent: #1db954;
  --accent-dim: rgba(29, 185, 84, 0.15);
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: black;
  color: white;
  font-family: Verdana, Geneva, sans-serif;
}
.main-layout {
  display: flex;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}
.left-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.left-content::-webkit-scrollbar {
  width: 8px;
}
.left-content::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.avatar {
  border-radius: 8px;
  max-height: 60px;
  width: 60px;
  object-fit: cover;
}
h1 {
  font-size: 36px;
  margin: 0;
  line-height: 1.1;
}
h2 {
  font-size: 24px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}
.now-playing-section {
  margin-bottom: 30px;
}
.now-playing-section .song-wrapper {
  margin-bottom: 0;
}
.about-section {
  margin-bottom: 30px;
}
.stats-section {
  margin-bottom: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.stat {
  background: #111;
  border: 1px solid #2f3336;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--accent);
}
.stat span {
  font-size: 13px;
  color: #aaa;
}
.stats-note {
  font-size: 13px;
  color: #888;
  margin: 0;
}
/* Music cards */
.song-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.card {
  display: flex;
  gap: 16px;
  width: 100%;
  background: #111;
  border: 1px solid #2f3336;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
  position: relative;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.15);
  background: #1a1a1a;
  border-color: var(--accent);
}
.spotify-card {
  flex: 1;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0;
  cursor: pointer;
}
.spotify-logo {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  opacity: 0.85;
}
.am-card {
  width: 112px;
  background: #111;
  border: 1px solid #2f3336;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.am-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.15);
  background: #1a1a1a;
  border-color: var(--accent);
}
.am-logo {
  width: 48px;
  height: 48px;
}
.card-art {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2px;
}
.card-artist {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 2px;
}
.card-album {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}
.card-desc {
  font-size: 13px;
  color: #aaa;
  line-height: 1.3;
}
/* Profile box */
.profile-box {
  width: 360px;
  flex-shrink: 0;
  background: #000;
  border-left: 1px solid #2f3336;
  border-radius: 0;
  overflow-y: auto;
  height: 100vh;
  box-shadow: none;
}
.banner {
  height: 120px;
  overflow: hidden;
  background: #1a1a1a;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pfp-wrap {
  padding: 0 16px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}
.pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #000;
  object-fit: cover;
  display: block;
}
.profile-info {
  padding: 8px 16px 16px;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.name {
  font-weight: bold;
  font-size: 18px;
}
.verified {
  width: 18px;
  height: 18px;
  fill: #1d9bf0;
}
.handle {
  color: #71767b;
  font-size: 15px;
  margin-bottom: 12px;
}
.bio {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.ad {
  color: #71767b;
}
.stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.stats strong {
  color: var(--accent);
}
.follow-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.follow-btn:hover {
  background: var(--accent);
  color: #000;
}
.posts {
  border-top: 1px solid #2f3336;
  padding: 12px 16px 16px;
}
.posts h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
}
.toggle-btn {
  background: #1a1a1a;
  color: white;
  border: 1px solid #2f3336;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 12px;
  transition: background 0.15s, border-color 0.15s;
}
.toggle-btn:hover {
  background: #222;
  border-color: var(--accent);
}
.posts-list {
  /* container for the posts */
}
.post {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
  border-bottom: 1px solid #2f3336;
}
.post:last-child {
  border-bottom: none;
}
.post:hover {
  background: var(--accent-dim);
}
.post-image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 6px;
  display: block;
}
.post-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.post-meta {
  font-size: 12px;
  color: #71767b;
}
/* Responsive */
@media (max-width: 900px) {
  html, body {
    overflow: auto;
    height: auto;
  }
  .main-layout {
    flex-direction: column;
    height: auto;
  }
  .left-content {
    overflow-y: visible;
    padding: 16px;
  }
  .profile-box {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid #2f3336;
  }
  h1 {
    font-size: 28px;
  }
  .am-card {
    width: 100px;
  }
}