/* ============================================================
   ANGERSHADE — DESIGN SYSTEM
   Base: angershade visual identity (black, minimal)
   Enhanced with Yegge Design System v1.0 patterns
   ============================================================ */

/* ============================================================
   1. RESET & BOX MODEL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Core palette ── */
  --bg:        #000000;
  --surface:   #0c0c0c;
  --surface-2: #0f0f0f;
  --surface-3: #1a1a1a;
  --border:    #1e1e1e;
  --border-2:  #2a2a2a;
  --text:      #f0f0f0;
  --muted:     #777777;
  --muted-2:   #aaaaaa;
  --accent:    #ffffff;
  --danger:    #e05555;
  --success:   #55a87a;
  --nav-height: 60px;

  /* ── Yegge bridge aliases ── */
  --text-bright: var(--text);
  --text-muted:  var(--muted);
  --surface2:    var(--surface-2);
  --surface3:    var(--surface-3);
  --border2:     var(--border-2);
  --input-bg:    #000;
  --tag-bg:      #0f0f0f;
  --code-bg:     #000;
  --danger-hover: #c04040;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent); }

img, video, svg { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }


/* ============================================================
   2. ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ws-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  height: 32px;
}

.nav-logo img {
  max-height: 24px;
  max-width: 220px;
  height: auto;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--text); }


/* ============================================================
   4. LAYOUT
   ============================================================ */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.container--wide { max-width: 1400px; }
.container--full { max-width: none; padding: 0 clamp(1.5rem, 4vw, 4rem); }

.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* Flex helpers */
.row          { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row--between { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.spacer       { flex: 1; }


/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 400; }

.page-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Eyebrow / overline label */
.label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* Hint / helper text */
.hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}


/* ============================================================
   6. PROSE
   ============================================================ */
.prose {
  max-width: 680px;
  color: var(--muted-2);
  line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text);
  font-weight: 400;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}
.prose h1:first-child, .prose h2:first-child,
.prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
.prose h3 { font-size: 1rem; }
.prose h4 { font-size: 0.9rem; color: var(--muted-2); }

.prose p            { margin-bottom: 1.25em; }
.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--text); font-weight: 600; }
.prose em     { font-style: italic; }

.prose a {
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s ease;
}
.prose a:hover { border-color: var(--text); }

.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.4em; }

.prose blockquote {
  border-left: 2px solid var(--border-2);
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.5rem auto;
}

.prose code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--muted-2);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.65;
}


/* ============================================================
   7. CODE BLOCKS (standalone)
   ============================================================ */
code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--muted-2);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.65;
  color: inherit;
}

.code-wrap { position: relative; }
.code-copy {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--muted);
  font-size: 0.65rem;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  letter-spacing: 0.05em;
  font-family: inherit;
  transition: color 0.15s;
  z-index: 1;
}
.code-copy:hover { color: var(--text); }


/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #444;
  color: var(--text);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sizes */
.btn-sm, .btn--sm { padding: 6px 14px; font-size: 0.7rem; }
.btn-lg, .btn--lg { padding: 14px 28px; font-size: 0.82rem; }
.btn--icon        { padding: 0.35em 0.55em; }
.btn--block       { width: 100%; justify-content: center; }

/* Variants */
.btn-ghost, .btn--ghost {
  border-color: var(--border-2);
  color: var(--muted);
}
.btn-ghost:hover, .btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}

.btn-danger, .btn--danger {
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover, .btn--danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-primary, .btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover, .btn--primary:hover {
  background: var(--muted-2);
  border-color: var(--muted-2);
  color: var(--bg);
}

/* Play button loading state */
.btn[data-loading] {
  opacity: 0.35;
  pointer-events: none;
}


/* ============================================================
   9. FORMS & INPUTS
   ============================================================ */
.form-group  { margin-bottom: 24px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.875rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: #666; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-checkbox {
  width: 16px; height: 16px;
  accent-color: var(--text);
  cursor: pointer;
}
.form-checkbox-label {
  font-size: 0.82rem;
  color: var(--muted-2);
  cursor: pointer;
}

/* Inline checkbox/toggle label (Yegge pattern) */
.check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.check-label input[type="checkbox"] { cursor: pointer; }

.form-message {
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}
.form-message.success {
  background: rgba(85, 168, 122, 0.1);
  border: 1px solid rgba(85, 168, 122, 0.3);
  color: var(--success);
}
.form-message.error {
  background: rgba(224, 85, 85, 0.1);
  border: 1px solid rgba(224, 85, 85, 0.3);
  color: var(--danger);
}


/* ============================================================
   10. CARDS & SURFACES
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 1.5rem;
}
.card--flush { padding: 0; overflow: hidden; }

.card-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.card-body   { padding: 1.25rem; }
.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}


/* ============================================================
   11. TAGS / BADGES
   ============================================================ */
/* Public tags */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--muted);
  background: var(--tag-bg);
  padding: 0.15em 0.6em;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
a.tag:hover, .tag--active {
  color: var(--text);
  border-color: var(--border-2);
}
.tag--status {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tag--live  { border-color: rgba(85,168,122,0.4); color: var(--success); }
.tag--draft { color: var(--muted); }

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Admin status badges */
.badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}
.badge-published {
  background: rgba(85, 168, 122, 0.12);
  color: var(--success);
  border: 1px solid rgba(85, 168, 122, 0.25);
}
.badge-draft {
  background: rgba(119, 119, 119, 0.1);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge-subscribed {
  background: rgba(85, 168, 122, 0.12);
  color: var(--success);
  border: 1px solid rgba(85, 168, 122, 0.25);
}
.badge-unsubscribed {
  background: rgba(224, 85, 85, 0.1);
  color: var(--danger);
  border: 1px solid rgba(224, 85, 85, 0.2);
}


/* ============================================================
   12. TABLES (public)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--muted-2);
}
tr:hover td { background: var(--surface); }


/* ============================================================
   13. MEDIA EMBEDS
   ============================================================ */
.embed-video,
.embed-youtube,
.embed-vimeo {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 3px;
  margin: 1.5rem 0;
}
.embed-video iframe,
.embed-youtube iframe,
.embed-vimeo iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.embed-audio iframe {
  width: 100%;
  border: none;
  display: block;
  border-radius: 3px;
  margin: 1.5rem 0;
}

.embed-generic iframe {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: block;
  margin: 1.5rem 0;
}

/* Legacy embed player */
.embed-player {
  width: 100%;
  border: none;
  border-radius: 4px;
  margin-top: 12px;
}
.embed-player-wrap { margin-top: 12px; width: 100%; }
.embed-player-wrap iframe { display: block; width: 100%; border: none; border-radius: 4px; }


/* ============================================================
   14. IMAGE GALLERY + LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* Public photo gallery (Yegge pattern) */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.photo-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  margin: 0;
  transition: opacity 0.15s;
  border: 1px solid var(--border);
}
.photo-gallery img:hover { opacity: 0.85; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none !important; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  cursor: default;
}
.lightbox-caption {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}
.lightbox-close:hover { color: var(--text); }

/* Album artwork gallery (existing) */
.album-gallery {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.gallery-label {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}


/* ============================================================
   15. MODAL / OVERLAY
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.overlay[hidden] { display: none !important; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  width: min(600px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.modal-body   { flex: 1; overflow-y: auto; padding: 1.25rem; }
.modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}


/* ============================================================
   16. TOAST NOTIFICATIONS
   ============================================================ */
/* Public toast */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 2px;
  font-size: 0.78rem;
  z-index: 400;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}
.toast--visible { opacity: 1; transform: none; pointer-events: auto; }
.toast--error   { border-color: rgba(224,85,85,0.5); color: var(--danger); }

/* Admin toast */
.admin-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 0.78rem;
  color: var(--text);
  z-index: 9999;
  animation: fadeInUp 0.25s ease;
  max-width: 300px;
}
.admin-toast.success { border-color: rgba(85,168,122,0.4); color: var(--success); }
.admin-toast.error   { border-color: rgba(224,85,85,0.4);  color: var(--danger); }


/* ============================================================
   17. THEME TOGGLE
   ============================================================ */
.theme-toggle {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }


/* ============================================================
   18. REDACTION BARS
   ============================================================ */
.redacted {
  display: inline;
  background: #111;
  color: transparent;
  border-radius: 2px;
  padding: 0.05em 0.3em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s, color 0.15s;
}
.redacted--revealed {
  background: var(--surface-2);
  color: var(--text);
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}


/* ============================================================
   19. FOOTER
   ============================================================ */
.footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.footer-link {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.footer-link:hover { color: var(--text); }
.footer-sep {
  font-size: 0.72rem;
  color: var(--border-2);
  user-select: none;
}


/* ============================================================
   20. UTILITY CLASSES
   ============================================================ */
/* Text */
.text-bright  { color: var(--text); }
.text-muted   { color: var(--muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-sm      { font-size: 0.8rem; }
.text-xs      { font-size: 0.7rem; }
.text-mono    { font-family: 'SFMono-Regular', Consolas, monospace; }
.text-upper   { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72em; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Display */
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Loading / empty */
.empty-state {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 48px 0;
  text-align: center;
}
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.72rem;
  color: var(--muted);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* background set via JS as rgba() — no opacity property to avoid stacking context */
}

.hero-logo {
  width: 90%;
  max-width: 680px;
  margin: 0 auto 48px;
  animation: fadeIn 0.6s ease;
}

.headline-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 2px;
  margin-bottom: 24px;
  transition: color 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.headline-link:hover {
  color: var(--text);
  border-color: var(--muted);
}

.homepage-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeInUp 0.6s ease 0.35s both;
}
.homepage-links a      { color: var(--muted); transition: color 0.2s ease; }
.homepage-links a:hover { color: var(--text); }
.homepage-links .sep   { color: var(--border-2); }

/* Homepage body section */
.homepage-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.5s ease both;
}
.homepage-body .prose { margin-bottom: 0; }

.homepage-embed-block {
  margin-top: 40px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}
.homepage-embed-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 24px;
}
.homepage-embed-block iframe {
  width: 100%;
  border: none;
  border-radius: 0;
  display: block;
}


/* ============================================================
   DISCOGRAPHY
   ============================================================ */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.album-card {
  display: block;
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
}
.album-card:hover .album-artwork img { transform: scale(1.02); }

.album-artwork {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 16px;
}
.album-artwork img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.album-artwork-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-2);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-meta   { padding: 0 2px; }
.album-name   { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.album-sub    { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }


/* ============================================================
   ALBUM DETAIL PAGE
   ============================================================ */
.album-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  padding-top: 56px;
}

.album-hero-artwork {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}
.album-hero-artwork img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.album-hero-info { padding-top: 8px; }

.album-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.album-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 8px;
  line-height: 1.1;
}
.album-artist {
  font-size: 1rem;
  color: var(--muted-2);
  margin-bottom: 32px;
}
.album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.album-credits {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}
.credit-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.credit-row:last-child { border-bottom: none; }
.credit-label { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.credit-value { color: var(--muted-2); }
.credit-value a {
  color: var(--muted-2);
  border-bottom: 1px solid var(--border);
}
.credit-value a:hover { color: var(--text); }

/* Album extras */
.album-extras {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.album-video-block { margin-top: 32px; }
.album-video-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.album-video-block iframe {
  width: 100%;
  border: none;
  border-radius: 4px;
  display: block;
}

/* Tracklist */
.tracklist {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.tracklist-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.track-row {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.track-row:last-child { border-bottom: none; }

.track-header {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.track-header:not(.track-header--clickable) {
  grid-template-columns: 32px 1fr auto;
}

.track-no       { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.track-title    { font-size: 0.9rem; font-weight: 500; }
.track-duration { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.track-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 48px;
  margin-top: 8px;
}
.track-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.track-link:hover { color: var(--text); border-color: var(--border-2); }

.track-header--clickable { cursor: pointer; user-select: none; }
.track-expand-btn {
  background: none;
  border: none;
  padding: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}
.track-expand-btn:hover,
.track-header--clickable:hover .track-expand-btn { color: var(--text); }
.track-chevron { transition: transform 0.25s ease; }
.track-row--open .track-chevron { transform: rotate(180deg); }

/* Track extras */
.track-extras {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 20px;
  animation: fadeInUp 0.2s ease both;
}
.track-extra-section { margin-bottom: 24px; }
.track-extra-section:last-child { margin-bottom: 0; }
.track-extra-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.track-extra-embed iframe { width: 100%; border: none; border-radius: 4px; display: block; }
.track-extra-alts { display: flex; flex-wrap: wrap; gap: 8px; }
.track-alt-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.track-alt-link:hover { color: var(--text); border-color: var(--border-2); }

/* Audio Player */
.audio-player-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-top: 12px;
}
.wavesurfer-container {
  width: 100%;
  min-height: 52px;
  position: relative;
}
.waveform-skeleton {
  height: 52px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    var(--border-2) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: ws-shimmer 1.6s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
.wavesurfer-container.ws-ready .waveform-skeleton { display: none; }

.player-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.player-time     { font-size: 0.72rem; color: var(--text); font-variant-numeric: tabular-nums; min-width: 2.6ch; }
.player-sep      { font-size: 0.72rem; color: var(--muted); }
.player-duration { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }


/* ============================================================
   STREAM PAGE
   ============================================================ */
.stream-platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}
.platform-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: var(--text);
}
.platform-btn:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--text);
}
.platform-name { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; }
.stream-placeholder { color: var(--muted); font-size: 0.85rem; padding: 40px 0; }
.stream-select-wrap { margin-bottom: 40px; max-width: 300px; }
.stream-select-wrap label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 8px;
}

.blog-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px;
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
  animation: fadeInUp 0.4s ease both;
  text-decoration: none;
  color: var(--text);
}
.blog-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--text);
}

.blog-card-date {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text);
}

.blog-card-excerpt {
  font-size: 0.82rem;
  color: var(--muted-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 64px 0;
}

/* Compact list */
.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: baseline;
  gap: 0 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  animation: fadeInUp 0.3s ease both;
  transition: color 0.15s;
}
.blog-list-item:first-child { border-top: 1px solid var(--border); }
.blog-list-item:hover { color: var(--accent); }
.blog-list-item:hover .blog-list-title { color: var(--accent); }

.blog-list-date {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.blog-list-title {
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.15s;
}

.blog-list-tags {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

@media (max-width: 540px) {
  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .blog-list-tags { display: none; }
}

/* Single post */
.blog-post-header {
  padding-top: 56px;
  max-width: 720px;
  margin-bottom: 48px;
}
.blog-post-date {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.blog-post-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.blog-post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.blog-post-body {
  max-width: 720px;
}
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  transition: color 0.2s ease;
}
.blog-post-back:hover { color: var(--text); }


/* ============================================================
   LOADING STATES
   ============================================================ */
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 1px solid var(--border-2);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loading-state {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 40px 0;
}


/* ============================================================
   ADMIN — LAYOUT
   ============================================================ */
.admin-body {
  background: var(--bg);
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-box {
  width: 100%;
  max-width: 360px;
  animation: fadeInUp 0.4s ease;
}
.admin-login-logo { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.admin-login-logo img { height: 20px; width: auto; }
.admin-login-title  { font-size: 1.1rem; font-weight: 300; margin-bottom: 8px; color: var(--text); }
.admin-login-sub    { font-size: 0.78rem; color: var(--muted); margin-bottom: 32px; }
.admin-login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* Dashboard layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #080808;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.admin-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-wordmark { height: 16px; width: auto; }
.admin-sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.admin-nav-item {
  display: block;
  padding: 9px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-nav-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.admin-nav-item.active { color: var(--text); background: rgba(255,255,255,0.04); }

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.admin-user-email {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 10px;
  word-break: break-all;
}

.admin-main {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

/* Admin cards */
.admin-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Admin tables */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th {
  background: #0a0a0a;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td      { background: var(--surface-2); }
.admin-table .td-name          { color: var(--text); font-weight: 500; }

/* Section header */
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-section-title { font-size: 1.25rem; font-weight: 300; }

/* Admin form */
.admin-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.admin-form-group { margin-bottom: 20px; }
.admin-form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.admin-form-input,
.admin-form-textarea,
.admin-form-select {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.82rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.admin-form-input:focus,
.admin-form-textarea:focus,
.admin-form-select:focus { border-color: #666; }
.admin-form-input::placeholder,
.admin-form-textarea::placeholder { color: #444; }
.admin-form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.admin-form-hint { font-size: 0.68rem; color: var(--muted); margin-top: 5px; }

/* Toggle */
.admin-toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-toggle-label { font-size: 0.78rem; font-weight: 500; color: var(--muted-2); }
.admin-toggle {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
}
.admin-toggle input { opacity: 0; width: 0; height: 0; }
.admin-toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.admin-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}
.admin-toggle input:checked + .admin-toggle-slider { background: rgba(240,240,240,0.15); }
.admin-toggle input:checked + .admin-toggle-slider::before {
  transform: translateX(18px);
  background: var(--text);
}

/* Dynamic rows */
.dynamic-rows { display: flex; flex-direction: column; gap: 8px; }
.dynamic-row  { display: flex; gap: 8px; align-items: center; }
.dynamic-row .admin-form-input { flex: 1; }

.add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.add-row-btn:hover { color: var(--text); }

/* Panel */
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  margin-top: 24px;
  animation: fadeInUp 0.25s ease;
}
.admin-panel-title {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-form-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* Preview pane */
.admin-preview {
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  min-height: 200px;
  color: var(--muted-2);
  font-size: 0.875rem;
  line-height: 1.7;
}
.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Filter tabs */
.filter-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.filter-tab {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tab:hover    { color: var(--text); border-color: var(--border-2); }
.filter-tab.active   { color: var(--text); border-color: var(--muted); background: rgba(255,255,255,0.04); }

/* Stream type radio */
.radio-group { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted-2);
  cursor: pointer;
}
.radio-option input { accent-color: var(--text); }

/* Audio upload box */
.audio-upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.audio-upload-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
}
.upload-icon        { flex-shrink: 0; font-size: 1rem; }
.upload-filename    { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-placeholder { color: var(--muted); }

/* Admin embed preview */
.embed-preview-box {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.embed-preview-box iframe { display: block; width: 100%; border: none; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

  .album-hero { grid-template-columns: 1fr; }
  .album-hero-artwork { position: static; max-width: 280px; }

  .credit-row { grid-template-columns: 1fr; gap: 4px; }

  .blog-grid { grid-template-columns: 1fr; gap: 16px; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .admin-nav-item { white-space: nowrap; padding: 8px 14px; }
  .admin-main     { margin-left: 0; padding: 24px 16px; }
  .admin-panel    { padding: 20px 16px; }
  .admin-form-row   { grid-template-columns: 1fr; }
  .admin-form-row-3 { grid-template-columns: 1fr; }
  .admin-split      { grid-template-columns: 1fr; }

  .nav-logo img { max-width: 150px; }
  .admin-toast  { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .photo-gallery img { height: 100px; }

  .modal { width: 96vw; max-height: 90vh; }
  .modal-body   { padding: 1rem; }
  .modal-footer { padding: 0.6rem 1rem; flex-wrap: wrap; }

  .lightbox { padding: 1rem; }
  .lightbox-img { max-width: 95vw; max-height: 80vh; }

  .toast { right: 1rem; left: 1rem; text-align: center; }
}

@media (min-width: 1200px) {
  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .photo-gallery img { height: 180px; }
}
