:root {
  /* Modern Palette */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #ffffff;
  --surface-color: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Admin Palette (WordPress vibe) */
  --admin-sidebar-bg: #1e1e1e;
  --admin-sidebar-text: #e0e0e0;
  --admin-sidebar-active: #2271b1;
  --admin-bg: #f0f0f1;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Minimalist Header (User) */
.main-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.main-header .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .main-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-decoration: none;
}

.search-form {
  display: flex;
  background: var(--surface-color);
  border-radius: 99px;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
}

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

.search-form button {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* User Content Area */
.main-content { padding: 3rem 0; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.card {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.card:hover { opacity: 0.8; }

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-color);
  margin-bottom: 0.75rem;
}

.card-title { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.card-subtitle { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }

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

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

.lyrics-content {
  font-size: 1.125rem;
  white-space: pre-wrap;
  color: #334155;
  line-height: 1.8;
}

/* Admin UI (WordPress Vibe) */
.admin-body {
  background: var(--admin-bg);
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 160px;
  background: var(--admin-sidebar-bg);
  color: var(--admin-sidebar-text);
  flex-shrink: 0;
  display: none;
}

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

.admin-sidebar-nav { padding-top: 1rem; }
.admin-sidebar-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--admin-sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
}
.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active {
  background: var(--admin-sidebar-active);
  color: #fff;
}

.admin-main { flex-grow: 1; padding: 2rem; }
.admin-toolbar {
  background: #fff;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #ccd0d4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ccd0d4;
}

.admin-table th {
  text-align: left;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #ccd0d4;
  font-size: 0.875rem;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f1;
  font-size: 0.875rem;
}

.admin-table tr:nth-child(even) { background: #f6f7f7; }

/* Buttons & Pagination Modernized */
.btn-primary { 
    background: #2271b1; 
    color: #fff; 
    border-radius: 3px; 
    padding: 6px 12px; 
    font-size: 13px;
    border: 1px solid #2271b1;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary {
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 13px;
}

.pagination { margin-top: 1.5rem; display: flex; gap: 4px; }
.pagination a, .pagination span {
    padding: 4px 8px;
    border: 1px solid #ccd0d4;
    background: #fff;
    text-decoration: none;
    color: #2271b1;
    font-size: 13px;
}
.pagination .current { background: #2271b1; color: #fff; border-color: #2271b1; }
