:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --bg: #0a0a1a;
    --bg-card: rgba(20,20,40,0.88);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(124,58,237,0.4);
    --text: #ffffff;
    --text-muted: #9ca3af;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.starfield { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.starfield::before { content: ''; position: absolute; width: 200%; height: 200%; top: -50%; left: -50%; background: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent), radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent), radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.15), transparent); background-size: 400px 400px; animation: drift 120s linear infinite; }
@keyframes drift { to { transform: translate(-200px, -200px); } }

.page-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }

/* Hero */
.hero { text-align: center; padding: 60px 0 48px; }
.hero h1 { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #a78bfa, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* Featured Artist */
.featured-card { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(167,139,250,0.06)); border: 1px solid rgba(124,58,237,0.3); border-radius: 20px; padding: 32px; margin-bottom: 48px; display: none; cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s; }
.featured-card:hover { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 30px rgba(124,58,237,0.1); }
.featured-card.visible { display: block; }
.featured-top { display: flex; gap: 24px; align-items: center; }
.featured-pfp { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); flex-shrink: 0; }
.featured-info { flex: 1; min-width: 0; }
.featured-badge { display: inline-block; background: rgba(124,58,237,0.2); color: #a78bfa; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.featured-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.featured-bio { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card.expanded .featured-bio { -webkit-line-clamp: unset; overflow: visible; }
.featured-socials { display: flex; gap: 8px; margin-top: 10px; }
.featured-socials a { color: var(--text-muted); transition: color 0.15s; font-size: 0.8rem; text-decoration: none; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.featured-socials a:hover { color: #a78bfa; background: rgba(124,58,237,0.1); }
.featured-detail { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(124,58,237,0.15); }
.featured-card.expanded .featured-detail { display: block; }
.featured-expand-hint { color: rgba(255,255,255,0.2); font-size: 0.78rem; margin-top: 12px; text-align: right; transition: color 0.15s; }
.featured-card:hover .featured-expand-hint { color: rgba(255,255,255,0.35); }
.featured-card.expanded .featured-expand-hint { display: none; }

/* Artist Grid */
.artists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
@media (max-width: 900px) { .artists-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .artists-grid { grid-template-columns: 1fr; } }

.artist-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; cursor: pointer; transition: all 0.25s; }
.artist-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.artist-card.expanded { grid-column: 1 / -1; cursor: default; }
.artist-card.expanded:hover { transform: none; }

.card-header { display: flex; align-items: center; gap: 14px; }
.card-pfp { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; background: rgba(124,58,237,0.1); }
.card-meta { flex: 1; min-width: 0; }
.card-name { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-bio-preview { color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.artist-card.expanded .card-bio-preview { display: none; }

.card-socials { display: flex; gap: 8px; margin-top: 12px; }
.card-socials a { color: var(--text-muted); transition: color 0.15s; font-size: 0.8rem; text-decoration: none; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.card-socials a:hover { color: #a78bfa; background: rgba(124,58,237,0.1); }

.card-projects-mini { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.card-projects-mini img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border); }
.card-projects-mini .proj-name { font-size: 0.72rem; color: var(--text-muted); padding: 2px 6px; background: rgba(255,255,255,0.04); border-radius: 4px; }

/* Expanded detail */
.card-detail { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.artist-card.expanded .card-detail { display: block; }

.detail-section { margin-bottom: 20px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section-title { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-light); margin-bottom: 10px; }
.detail-bio { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.detail-projects { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-projects a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.85rem; transition: border-color 0.15s; }
.detail-projects a:hover { border-color: var(--border-hover); }
.detail-projects a img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }
.detail-close { float: right; padding: 4px 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: 0.78rem; cursor: pointer; transition: all 0.15s; }
.detail-close:hover { border-color: var(--border-hover); color: var(--text); }

/* Gallery scroller */
.gallery-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 0; scrollbar-width: thin; scrollbar-color: rgba(124,58,237,0.3) transparent; }
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; }
.gallery-strip img { width: 200px; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); scroll-snap-align: start; flex-shrink: 0; transition: transform 0.2s; cursor: pointer; }
.gallery-strip img:hover { transform: scale(1.03); }
@media (max-width: 600px) { .gallery-strip img { width: 150px; height: 150px; } }

.gallery-empty { color: rgba(255,255,255,0.2); font-size: 0.85rem; font-style: italic; padding: 20px 0; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; cursor: default; }
.lightbox-close { position: fixed; top: 16px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 10000; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 10000; }
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-caption { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.85rem; text-align: center; max-width: 80vw; z-index: 10000; }

/* Apply section — collapsible */
.apply-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.apply-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; cursor: pointer; transition: background 0.15s; user-select: none; }
.apply-header:hover { background: rgba(255,255,255,0.02); }
.apply-header-left { display: flex; align-items: center; gap: 12px; }
.apply-header h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.apply-header .subtitle { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.apply-chevron { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.apply-section.open .apply-chevron { transform: rotate(180deg); }
.apply-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.apply-section.open .apply-body { max-height: 800px; }
.apply-body-inner { padding: 0 32px 32px; }

.apply-form { max-width: 500px; margin: 0 auto; text-align: left; display: none; }
.apply-form.visible { display: block; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 0.9rem; font-family: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-field textarea { min-height: 80px; resize: vertical; }
.form-field select { width: 100%; padding: 10px 14px; background: rgba(10,10,26,0.95); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 0.9rem; font-family: inherit; }
.form-field select:focus { outline: none; border-color: var(--primary); }

.pfp-upload-area { display: flex; align-items: center; gap: 16px; }
.pfp-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); display: none; }
.pfp-upload-btn { padding: 8px 16px; background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); border-radius: 8px; cursor: pointer; font-size: 0.82rem; font-weight: 500; transition: all 0.15s; }
.pfp-upload-btn:hover { background: rgba(124,58,237,0.25); }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.project-tag { display: flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(124,58,237,0.1); border-radius: 6px; font-size: 0.78rem; color: #a78bfa; }
.project-tag .remove-tag { cursor: pointer; margin-left: 4px; opacity: 0.5; }
.project-tag .remove-tag:hover { opacity: 1; }

.apply-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; margin-top: 8px; }
.apply-btn:hover { opacity: 0.9; }
.apply-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.connect-prompt { margin-top: 16px; text-align: center; }
.connect-btn { padding: 12px 28px; background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.connect-btn:hover { opacity: 0.9; }

.success-msg { display: none; text-align: center; padding: 32px; }
.success-msg.visible { display: block; }
.success-msg h3 { color: #34d399; font-size: 1.2rem; margin-bottom: 8px; }
.success-msg p { color: var(--text-muted); }

.empty-state { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.3); font-size: 1rem; }

.loading { text-align: center; padding: 60px; color: var(--text-muted); }
