:root {
  /* LinkedIn-inspired Palette */
  --primary-color: #0a66c2;
  --primary-hover: #004182;
  --bg-color: #f3f2ef;
  --surface-color: #ffffff;
  --text-main: rgba(0, 0, 0, 0.9);
  --text-muted: rgba(0, 0, 0, 0.6);
  --border-color: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  
  /* Admin Palette */
  --admin-sidebar-bg: #1e1e1e;
  --admin-sidebar-text: #e0e0e0;
  --admin-sidebar-active: #0a66c2;
  --admin-bg: #f3f2ef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1128px; /* LinkedIn's standard container width */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* LinkedIn-style Sticky Header */
.main-header {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.2s;
}

.desktop-nav a:hover { color: var(--text-main); }

.search-form {
  display: flex;
  background: #edf3f8;
  border-radius: 4px;
  padding: 0 0.5rem;
  border: none;
  width: 280px;
  transition: width 0.3s;
}

.search-form:focus-within {
  width: 400px;
  box-shadow: 0 0 0 1px var(--text-main);
  background: #fff;
}

.search-form input {
  background: transparent;
  border: none;
  padding: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

.search-form button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Card-based Content Area */
.main-content { 
  padding: 1rem 0; 
}

@media (max-width: 767px) {
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.card {
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: block;
  margin-bottom: 1rem;
}

.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card-info { padding: 0.75rem 1rem; }
.card-title { font-weight: 600; font-size: 1rem; color: var(--text-main); }
.card-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* Song Page Social Layout */
.song-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .song-layout { grid-template-columns: 2fr 1fr; }
}

.lyrics-section {
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

.lyrics-content {
  font-size: 1.1rem;
  white-space: pre-wrap;
  color: var(--text-main);
  line-height: 1.6;
}

.comments-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-card-modern {
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1rem;
}

/* Mobile Interaction */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  display: block;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav a {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav a:hover {
  background: var(--bg-color);
}

.btn-primary { 
    background: var(--primary-color); 
    color: #fff; 
    border-radius: 1.6rem; 
    padding: 0.5rem 1.5rem; 
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 1.6rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-width 0.1s;
}

.btn-secondary:hover {
  background: rgba(10, 102, 194, 0.1);
  border-width: 2px;
}

/* Mobile Sidebar & Overlay */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 2000;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

@media (min-width: 768px) {
  .mobile-sidebar { display: none; }
}

.mobile-sidebar.active {
  right: 0;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-sidebar {
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  color: var(--text-muted);
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav a {
  display: block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1px solid #f8fafc;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

