/* ═══════════════════════════════════════════════════════════════
   The Music Library Online — Complete Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #0f1117;
    --bg-card: #12141c;
    --bg-card-hover: #161822;
    --bg-elevated: #1a1d28;
    --bg-sidebar: #0c0d14;
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a2b5;
    --text-muted: #6b6d82;
    --text-inverse: #0a0b0f;
    
    --border-color: #222438;
    --border-light: #2a2c3e;
    
    --accent-primary: #c9a84c;
    --accent-primary-hover: #dbb95a;
    --accent-secondary: #6c5ce7;
    --accent-danger: #e74c3c;
    --accent-success: #1f9d55;
    --accent-warning: #f39c12;
    --accent-info: #3498db;
    
    --gradient-gold: linear-gradient(135deg, #c9a84c, #e8c85a, #c9a84c);
    --gradient-dark: linear-gradient(180deg, #0f1117 0%, #0a0b0f 100%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(201, 168, 76, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    --sidebar-width: 240px;
    --header-height: 60px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0.75rem; }

.gold { 
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
    color: var(--text-inverse);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}
.btn-danger:hover {
    background: #c0392b;
    color: white;
}

.btn-success {
    background: var(--accent-success);
    color: white;
}
.btn-success:hover {
    background: #1a7a44;
    color: white;
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-icon:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* ─── Tags / Badges ─────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: rgba(31, 157, 69, 0.2); color: var(--accent-success); border: 1px solid rgba(31, 157, 69, 0.3); }
.badge-warning { background: rgba(243, 156, 18, 0.2); color: var(--accent-warning); border: 1px solid rgba(243, 156, 18, 0.3); }
.badge-danger  { background: rgba(231, 76, 60, 0.2); color: var(--accent-danger); border: 1px solid rgba(231, 76, 60, 0.3); }
.badge-info    { background: rgba(52, 152, 219, 0.2); color: var(--accent-info); border: 1px solid rgba(52, 152, 219, 0.3); }

/* ─── Tables ────────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
}

.table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.table tbody tr:hover td {
    background: var(--bg-card-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form { max-width: 480px; }
.form label {
    display: block;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #c3c4d0;
    font-weight: 500;
}
.form input[type="text"],
.form input[type="number"],
.form input[type="email"],
.form input[type="password"],
.form input[type="file"],
.form select,
.form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
.form .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.form .checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0;
    accent-color: var(--accent-primary);
}
.form button[type="submit"] {
    margin-top: 20px;
}

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert.success {
    background: rgba(31, 157, 69, 0.12);
    border: 1px solid rgba(31, 157, 69, 0.3);
    color: var(--accent-success);
}
.alert.error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--accent-danger);
}
.alert.warning {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: var(--accent-warning);
}
.alert.info {
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: var(--accent-info);
}
.alert ul {
    margin: 4px 0 0 18px;
    list-style: disc;
}
.alert ul li { margin-bottom: 2px; }

/* ─── Header / Navigation ──────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}
.header-logo:hover { color: var(--text-primary); }
.header-logo .logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    text-decoration: none;
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-inverse);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 32px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Dashboard Layout ──────────────────────────────────────── */
.dashboard {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
}

.dashboard-sidebar h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 0 12px;
}

.dashboard-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.dashboard-sidebar nav a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.dashboard-sidebar nav a.active {
    background: var(--bg-elevated);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.dashboard-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.dashboard-content h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.dashboard-content > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 40px auto 0;
    position: relative;
}
.search-form .search-row {
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; }
.search-select {
    padding: 14px 16px;
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-sans);
}
.search-btn {
    border-radius: 0;
    padding: 14px 24px;
}

/* ─── Section Styles ────────────────────────────────────────── */
.section {
    padding: 50px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

/* ─── Track Grid ────────────────────────────────────────────── */
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.track-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
}
.track-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.track-card-header {
    height: 120px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
}
.track-card-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: var(--text-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.track-card-body { padding: 16px; }
.track-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.track-card-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.track-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.track-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.track-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
}
.track-card-actions { display: flex; gap: 6px; align-items: center; }

/* ─── Composer Grid ─────────────────────────────────────────── */
.composer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.composer-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}
.composer-card:hover {
    border-color: var(--accent-primary);
}

.composer-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    margin: 0 auto 12px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    color: var(--text-inverse);
}

.composer-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.composer-tracks {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.composer-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── Features Strip ────────────────────────────────────────── */
.features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 24px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}
.feature-card:hover { border-color: var(--accent-primary); }
.feature-card-accent {
    border-color: rgba(201, 168, 76, 0.3);
    position: relative;
}
.feature-card-accent::before {
    content: 'Popular';
    position: absolute;
    top: -1px;
    right: 24px;
    padding: 4px 14px;
    background: var(--gradient-gold);
    color: var(--text-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--accent-primary);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

.feature-list {
    margin: 16px 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.feature-list li i {
    color: var(--accent-success);
    font-size: 0.75rem;
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 80px 24px;
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-content {
    max-width: 600px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Show / Season / Episode ───────────────────────────────── */
.show-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.show-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.show-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}
.show-card h3 {
    margin-bottom: 6px;
}
.show-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.season-block {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.season-block h2 {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* ─── Utility Classes ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-primary); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.grid { display: grid; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    
    .hero { padding: 60px 16px 40px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-search .search-row { flex-direction: column; }
    .search-select { border-left: none; border-top: 1px solid var(--border-color); }
    
    .features-strip { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    
    .dashboard { flex-direction: column; }
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }
    .dashboard-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .dashboard-content { padding: 20px 16px; }
    
    .track-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .composer-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .track-grid { grid-template-columns: 1fr; }
    .composer-grid { grid-template-columns: 1fr; }
    .dashboard-content { padding: 16px 12px; }
}
}

/* === Purple Dragon Realm Background — Site-Wide === */

/* Readability overlay — darkens the dragon image beneath content */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

/* Subtle watermark layer floating above the background */
body::after {
  content: "";
  background: url('/images/purple-dragon-bg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.06;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Keep main content above overlays */
main, #page, .content {
  position: relative;
  z-index: 2;
}

/* Keep header and sidebar above content */
.site-header, .dashboard-sidebar {
  position: relative;
  z-index: 3;
}
