/* ── VARIABLES GLOBALES (siempre oscuro) ────────────────────────────────────── */
:root {
  --radius:    4px;
  --player-h:  72px;
  --bg:        #0d0015;
  --bg2:       rgba(255, 255, 255, 0.08);
  --bg3:       rgba(255, 255, 255, 0.12);
  --border:    rgba(255, 255, 255, 0.12);
  --text:      #e8e8e8;
  --muted:     rgba(255, 255, 255, 0.50);
  --muted2:    rgba(255, 255, 255, 0.32);
  --accent:    #e879f9;
  --accent2:   #c026d3;
  --error:     #f87171;
  --success:   #4ade80;
  --info:      #60a5fa;
  --player-bg: rgba(13, 0, 21, 0.88);
  --shadow:    0 4px 24px rgba(0,0,0,.65);
  --surface:   rgba(255,255,255,0.04);
  --surface2:  rgba(255,255,255,0.08);
}

/* ── RESET Y BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .2s, color .2s;
}

/* Padding cuando el player está activo */
body.player-active { padding-bottom: var(--player-h); }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; }

/* ── LAYOUT ────────────────────────────────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow{ max-width: 680px;  margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; padding: 2.5rem 0 4rem; }

/* ── HEADER ────────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 0.5px solid var(--border);
  padding: .9rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .2s, border-color .2s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: 'DM Mono', monospace; font-size: 1.1rem; color: var(--text); letter-spacing: .08em; }
.logo span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: .875rem; letter-spacing: .02em; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.btn-nav {
  font-family: 'DM Mono', monospace;
  font-size: .75rem; letter-spacing: .1em;
  color: var(--accent) !important;
  border: 0.5px solid var(--accent);
  padding: 5px 14px; border-radius: var(--radius);
  transition: background .2s, color .2s !important;
}
.btn-nav:hover { background: var(--accent); color: var(--bg) !important; }


/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer { border-top: 0.5px solid var(--border); padding: 2rem 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--muted2); letter-spacing: .04em; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted2); font-size: .8rem; }
.footer-links a:hover { color: var(--muted); }

/* ── PLAYER BAR ────────────────────────────────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: var(--player-bg);
  border-top: 0.5px solid var(--border);
  z-index: 200;
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  transition: background .2s;
}
.player-bar.visible { display: flex; }

.player-cover {
  width: 44px; height: 44px;
  border-radius: 3px;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--muted2);
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }

.player-info { min-width: 0; flex: 0 0 160px; }
.player-title { font-size: .85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: .72rem; color: var(--muted); font-family: 'DM Mono', monospace; }

.player-controls { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.player-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.1rem; padding: .3rem;
  transition: color .2s;
}
.player-btn:hover { color: var(--accent); }
.player-btn.play-pause {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.player-btn.play-pause:hover { border-color: var(--accent); }

.player-progress { flex: 1; display: flex; align-items: center; gap: .75rem; min-width: 0; }
.player-time { font-family: 'DM Mono', monospace; font-size: .7rem; color: var(--muted); flex-shrink: 0; }
.progress-track {
  flex: 1; height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .1s linear;
  pointer-events: none;
}

.player-volume { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.player-volume input[type="range"] {
  width: 72px; accent-color: var(--accent); cursor: pointer;
}

.player-preview-msg {
  font-size: .72rem; font-family: 'DM Mono', monospace;
  color: var(--accent); flex-shrink: 0; display: none;
}

@media (max-width: 640px) {
  .player-info  { display: none; }
  .player-volume { display: none; }
  .player-preview-msg { display: none; }
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: .55rem 1.25rem; border-radius: var(--radius); font-family: 'DM Mono', monospace; font-size: .8rem; letter-spacing: .06em; cursor: pointer; border: none; transition: all .2s; text-align: center; }
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: var(--accent2); color: #000; }
.btn--outline { background: transparent; border: 0.5px solid var(--border); color: var(--muted); }
.btn--outline:hover { border-color: var(--muted); color: var(--text); }
.btn--danger { background: transparent; border: 0.5px solid var(--error); color: var(--error); }
.btn--danger:hover { background: var(--error); color: white; }
.btn--sm { padding: .3rem .75rem; font-size: .72rem; }
.btn--full { width: 100%; }

/* Botón de seguir */
.btn-follow { min-width: 100px; }
.btn-follow.following { border-color: var(--accent); color: var(--accent); }
.btn-follow.following:hover { background: var(--error); border-color: var(--error); color: white; }

/* ── FORMS ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .8rem; font-family: 'DM Mono', monospace; color: var(--muted); margin-bottom: .4rem; letter-spacing: .04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); padding: .6rem .85rem;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; transition: border-color .2s, background .2s; outline: none;
}
.form-group select { appearance: none; -webkit-appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
button:disabled,
input:disabled,
select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.form-hint { font-size: .78rem; color: var(--muted2); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Input standalone (fuera de .form-group, ej: filtros del panel) */
.input {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .5rem .75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.form-check label { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── ALERTS ────────────────────────────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1.25rem; border-left: 3px solid; }
.alert--success { background: color-mix(in srgb, var(--success) 8%, transparent); border-color: var(--success); color: var(--success); }
.alert--error   { background: color-mix(in srgb, var(--error) 8%, transparent);   border-color: var(--error);   color: var(--error); }
.alert--info    { background: color-mix(in srgb, var(--info) 8%, transparent);    border-color: var(--info);    color: var(--info); }
.errors-list { list-style: none; }
.errors-list li { font-size: .875rem; color: var(--error); padding: .3rem 0; }
.errors-list li::before { content: '× '; }

/* ── BADGES ────────────────────────────────────────────────────────────────── */
.badge { display: inline-block; font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; border: 0.5px solid; }
.badge--pending   { color: #e0a040; border-color: #e0a040; }
.badge--active    { color: var(--success); border-color: var(--success); }
.badge--rejected  { color: var(--error); border-color: var(--error); }
.badge--suspended { color: var(--error); border-color: var(--error); }
.badge--musician  { color: var(--accent); border-color: var(--accent); }
.badge--fan       { color: var(--muted); border-color: var(--muted); }
.badge--paid      { color: var(--success); border-color: var(--success); }
.badge--bonus     { color: #4ade80; border-color: #4ade80; }
.badge--exclusive { color: var(--accent); border-color: var(--accent); }

/* ── BIBLIOTECA DEL FAN ──────────────────────────────────────────────────────── */
.library-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; transition: border-color .2s; }
.library-card:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--text)); }
.library-card-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.library-cover { width: 80px; height: 80px; flex-shrink: 0; border-radius: 4px; overflow: hidden; border: 0.5px solid var(--border); background: var(--bg3); }
.library-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.library-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted2); }
.library-meta { flex: 1; min-width: 0; }
.library-release-title { font-size: 1rem; font-weight: 500; margin-bottom: .2rem; }
.library-release-title a { color: var(--text); text-decoration: none; }
.library-release-title a:hover { color: var(--accent); }
.library-release-sub { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.library-acquired { font-size: .72rem; color: var(--muted2); font-family: 'DM Mono', monospace; }
.library-tracklist { border-top: 0.5px solid var(--border); margin-top: .5rem; }
.library-track-row { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 0.5px solid var(--border); }
.library-track-row:last-child { border-bottom: none; }
.library-track-num { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted2); width: 18px; text-align: right; flex-shrink: 0; }
.library-track-title { flex: 1; font-size: .85rem; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-track-dur { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted2); flex-shrink: 0; }
.library-track-badges { flex-shrink: 0; }
.library-track-action { flex-shrink: 0; }
.library-card-actions { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }

/* ── CARDS ─────────────────────────────────────────────────────────────────── */
.card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: border-color .2s, background .2s; }
.card:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--text)); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: stretch; }
.glass-card {
  background: var(--surface);
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── EVENTO CARD ───────────────────────────────────────────────────────────── */
.event-card { display: flex; flex-direction: column; gap: .5rem; position: relative; overflow: hidden; min-height: 180px; }

/* Card con foto de portada como fondo */
.event-card.has-cover {
  background-image: none !important;
  background-attachment: unset;
  min-height: 180px;
}

.event-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* Overlay oscuro para legibilidad del texto sobre la foto */
.event-card.has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 0, 21, 0.30) 0%,
    rgba(13, 0, 21, 0.82) 100%
  );
  z-index: 0;
  border-radius: inherit;
}

/* Todo el contenido encima del overlay */
.event-card.has-cover > * {
  position: relative;
  z-index: 1;
}

/* Texto blanco puro sobre foto */
.event-card.has-cover .event-date,
.event-card.has-cover .event-title,
.event-card.has-cover .event-artist,
.event-card.has-cover .event-meta,
.event-card.has-cover .event-desc {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.event-card.has-cover .event-date { color: rgba(240, 200, 255, 0.90) !important; }
.event-card.has-cover .event-artist a { color: rgba(255, 255, 255, 0.80) !important; }
.event-card.has-cover .event-meta span { color: rgba(255, 255, 255, 0.65) !important; }
.event-date { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--accent); letter-spacing: .06em; }
.event-title { font-size: 1rem; font-weight: 500; }
.event-title a { color: var(--text); }
.event-title a:hover { color: var(--accent); }
.event-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; }
.event-meta span::before { content: '— '; }
.event-desc { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.event-artist { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--muted2); }

/* ── OBRA CARD (play inline) ───────────────────────────────────────────────── */
.work-card {
  display: flex; gap: 1rem; align-items: center;
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1.2rem;
  transition: border-color .2s;
}
.work-card:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--accent)); }
.work-play-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; background: var(--bg3);
  border: 0.5px solid var(--border);
  color: var(--muted); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.work-play-btn:hover, .work-play-btn.playing { background: var(--accent); border-color: var(--accent); color: #000; }
.work-info { flex: 1; min-width: 0; }
.work-title { font-size: .95rem; color: var(--text); margin-bottom: .15rem; }
.work-title a { color: var(--text); }
.work-title a:hover { color: var(--accent); }
.work-meta { font-size: .75rem; color: var(--muted); font-family: 'DM Mono', monospace; }
.work-price { font-family: 'DM Mono', monospace; font-size: .8rem; color: var(--accent); flex-shrink: 0; }

/* ── PÁGINA PRINCIPAL ──────────────────────────────────────────────────────── */
.hero { padding: 3rem 0 2rem; border-bottom: 0.5px solid var(--border); margin-bottom: 2rem; }
.hero-tag { font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .15em; color: var(--muted2); text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 300; margin-bottom: .75rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: .95rem; color: var(--muted); max-width: 480px; }
.filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.filter-bar label { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.filter-bar select { background: var(--bg2); border: 0.5px solid var(--border); color: var(--text); padding: .4rem .75rem; border-radius: var(--radius); font-size: .85rem; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
.section-title { font-size: .72rem; font-family: 'DM Mono', monospace; letter-spacing: .12em; color: var(--muted2); text-transform: uppercase; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 0.5px solid var(--border); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted2); font-size: .9rem; }
.empty-state .icon { font-size: 2rem; margin-bottom: 1rem; opacity: .3; }

/* ── PERFIL MÚSICO ─────────────────────────────────────────────────────────── */
.profile-header { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 0.5px solid var(--border); flex-wrap: wrap; }
.profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 0.5px solid var(--border); flex-shrink: 0; }
.profile-photo-placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--bg3); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--muted2); flex-shrink: 0; }
.profile-info h1 { font-size: 1.8rem; font-weight: 300; margin-bottom: .25rem; }
.profile-location { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted); letter-spacing: .04em; margin-bottom: .5rem; }
.profile-bio { color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: 500px; }
.profile-stats { display: flex; gap: 1.5rem; margin-top: .75rem; }
.profile-stat { text-align: center; }
.profile-stat .num { font-size: 1.2rem; font-weight: 300; color: var(--accent); display: block; }
.profile-stat .lbl { font-size: .65rem; font-family: 'DM Mono', monospace; color: var(--muted2); letter-spacing: .08em; }

/* ── PANEL ─────────────────────────────────────────────────────────────────── */
.panel-header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem; }
.panel-header h1 { font-size: 1.4rem; font-weight: 300; }
.panel-header h1 span { color: var(--accent); }
.panel-nav { display: flex; gap: .25rem; margin-bottom: 2rem; flex-wrap: wrap; }
.panel-nav a { font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .06em; color: var(--muted); padding: .35rem .85rem; border-radius: var(--radius); border: 0.5px solid transparent; transition: all .2s; }
.panel-nav a:hover { color: var(--text); border-color: var(--border); }
.panel-nav a.active { color: var(--accent); border-color: var(--accent); }

/* ── TABLA ─────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { border-bottom: 0.5px solid var(--border); }
th { text-align: left; padding: .6rem .75rem; font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .08em; color: var(--muted2); text-transform: uppercase; font-weight: 400; }
td { padding: .7rem .75rem; border-bottom: 0.5px solid var(--border); color: var(--muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }
.td-main { color: var(--text); }

/* ── AUTH ──────────────────────────────────────────────────────────────────── */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-box { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-logo { font-family: 'DM Mono', monospace; font-size: 1rem; letter-spacing: .1em; color: var(--accent); text-align: center; margin-bottom: 1.75rem; }
.auth-title { font-size: 1.2rem; font-weight: 300; margin-bottom: 1.5rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: .82rem; color: var(--muted); }

/* ── ADMIN ─────────────────────────────────────────────────────────────────── */
.admin-header { background: var(--bg2); border-bottom: 0.5px solid var(--border); padding: .8rem 0; margin-bottom: 2rem; }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-logo { font-family: 'DM Mono', monospace; font-size: .85rem; color: var(--muted); letter-spacing: .08em; }
.admin-logo strong { color: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 300; color: var(--accent); display: block; }
.stat-label { font-family: 'DM Mono', monospace; font-size: .68rem; color: var(--muted2); letter-spacing: .08em; text-transform: uppercase; }

/* ── OBRA INDIVIDUAL ───────────────────────────────────────────────────────── */
.work-hero { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.work-cover { width: 180px; height: 180px; background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--muted2); flex-shrink: 0; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.work-meta-main h1 { font-size: 1.8rem; font-weight: 300; margin-bottom: .25rem; }
.work-artist-link { font-family: 'DM Mono', monospace; font-size: .8rem; color: var(--muted); }
.work-type-badge { display: inline-block; font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .1em; color: var(--accent); border: 0.5px solid var(--accent); padding: 2px 8px; border-radius: 2px; margin-bottom: .75rem; text-transform: uppercase; }
.work-buy-box { margin-top: 1.5rem; background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: inline-block; min-width: 200px; }
.work-price-big { font-size: 1.5rem; color: var(--accent); font-family: 'DM Mono', monospace; margin-bottom: .75rem; }
.preview-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; font-family: 'DM Mono', monospace; }

/* Reproductor inline */
.inline-player { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline-player .player-btn.play-pause { border-color: var(--border); }
.inline-player .progress-track { flex: 1; min-width: 100px; }
.preview-limit-msg { display: none; font-size: .78rem; color: var(--accent); font-family: 'DM Mono', monospace; margin-top: .5rem; }
.preview-limit-msg.visible { display: block; }

/* ── MISC ──────────────────────────────────────────────────────────────────── */
.divider { height: 0.5px; background: var(--border); margin: 2rem 0; }
.gap-1 { margin-bottom: 1rem; }
.gap-2 { margin-bottom: 2rem; }
.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.works-list { display: flex; flex-direction: column; gap: .75rem; }
.photo-preview-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.photo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 0.5px solid var(--border); }
.page-title { margin-bottom: 2rem; }
.page-title h1 { font-size: 1.6rem; font-weight: 300; margin-bottom: .3rem; }
.page-title p { color: var(--muted); font-size: .9rem; }

/* ── 404 ───────────────────────────────────────────────────────────────────── */
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.not-found h1 { font-size: 6rem; font-weight: 200; color: var(--muted2); font-family: 'DM Mono', monospace; line-height: 1; margin-bottom: .5rem; }
.not-found p { color: var(--muted); margin-bottom: 1.5rem; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-bio { margin: 0 auto; }
  .panel-header { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .auth-box { padding: 1.75rem 1.25rem; }
  .work-hero { flex-direction: column; }
}

/* ── RELEASES ────────────────────────────────────────────────────────────────*/
.release-hero { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.release-cover-lg { width: 200px; height: 200px; border-radius: var(--radius); border: 0.5px solid var(--border); overflow: hidden; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--muted2); }
.release-cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.release-cover-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.5rem; color: var(--muted2); }
.release-meta-main h1 { font-size: 1.8rem; font-weight: 300; margin-bottom: .25rem; }

.release-card { display: flex; gap: 1rem; background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.release-card:hover { border-color: var(--accent); }
.release-card-cover { width: 100px; height: 100px; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.release-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.release-card-info { padding: .75rem; display: flex; flex-direction: column; justify-content: center; }
.release-card-title { font-size: .9rem; margin-bottom: .25rem; }
.release-card-title a { color: var(--text); }
.release-card-title a:hover { color: var(--accent); }

.release-cover-sm { width: 44px; height: 44px; border-radius: 3px; border: 0.5px solid var(--border); background: var(--bg3); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }

/* ── TRACKLIST ───────────────────────────────────────────────────────────────*/
.tracklist { display: flex; flex-direction: column; }
.tracklist-row { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: .5px solid var(--border); }
.tracklist-row:last-child { border-bottom: none; }
.tracklist-row--no-audio { opacity: .55; }
.tracklist-num { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted2); width: 1.5rem; text-align: right; flex-shrink: 0; }
.tracklist-play { width: 28px; height: 28px; border-radius: 50%; border: .5px solid var(--border); background: none; color: var(--muted); cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.tracklist-play:hover { color: var(--accent); border-color: var(--accent); }
.tracklist-play.playing { color: var(--accent); border-color: var(--accent); }
.tracklist-info { flex: 1; min-width: 0; }
.tracklist-title { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracklist-preview-note { font-size: .72rem; color: var(--muted2); font-family: 'DM Mono', monospace; }
.tracklist-duration { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--muted2); flex-shrink: 0; }

/* ── PLAYER BAR — subtítulo ──────────────────────────────────────────────────*/
.player-subtitle { font-size: .68rem; color: var(--muted2); font-family: 'DM Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .release-hero { flex-direction: column; }
  .release-cover-lg { width: 140px; height: 140px; }
}

/* ── DESCUBRIR — filtros ──────────────────────────────────────────────────── */
.discover-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.discover-search-input {
  flex: 1;
  min-width: 180px;
  padding: .5rem .75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
}
.discover-search-input:focus { outline: none; border-color: var(--accent); }
.discover-select {
  padding: .5rem .75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  cursor: pointer;
}
.discover-section { margin-bottom: 2rem; }

/* ── MÚSICOS — grid de cards ─────────────────────────────────────────────── */
.musician-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .musician-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .musician-grid { grid-template-columns: 1fr; } }

.musician-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.musician-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.musician-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.musician-card-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.musician-card-photo--initials {
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--accent);
  font-family: 'DM Mono', monospace;
}
.musician-card-info { flex: 1; min-width: 0; }
.musician-card-name {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.musician-card-dept { font-size: .75rem; color: var(--muted); }
.musician-card-bio  { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.musician-card-stats {
  display: flex; gap: 1rem;
  font-size: .78rem; color: var(--muted);
  font-family: 'DM Mono', monospace;
}
.musician-card-follow { margin-left: auto; flex-shrink: 0; }
.musician-card-event {
  font-size: .75rem;
  border-top: 1px solid var(--border);
  padding-top: .6rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.musician-card-event-date { color: var(--accent); }
.musician-card-event-venue { color: var(--muted); }

/* ── POSTS — feed ────────────────────────────────────────────────────────── */
.post-feed { display: flex; flex-direction: column; gap: 1.25rem; }

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.post-card-musician {
  display: flex; gap: .75rem; align-items: center;
  color: var(--text); text-decoration: none;
}
.post-card-musician:hover .post-musician-name { color: var(--accent); }
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.post-avatar--initials {
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--accent);
  font-family: 'DM Mono', monospace;
}
.post-musician-name  { font-weight: 500; font-size: .9rem; }
.post-musician-meta  { font-size: .72rem; color: var(--muted); }

.post-type-badge {
  font-size: .7rem;
  padding: .25rem .6rem;
  border-radius: 100px;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  flex-shrink: 0;
}
.post-type-badge--demo, .post-type-badge--ensayo {
  background: rgba(76,175,125,.12); color: var(--success);
}
.post-type-badge--release {
  background: rgba(201,168,76,.12); color: var(--accent);
}
.post-type-badge--event {
  background: rgba(85,153,204,.12); color: var(--info);
}

.post-title {
  font-size: 1rem; font-weight: 500;
  margin-bottom: .4rem;
}
.post-body {
  font-size: .875rem; color: var(--muted);
  margin-bottom: .75rem; line-height: 1.6;
}

/* Preview de contenido */
.post-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.post-preview-cover {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
}
.post-preview-cover--icon {
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--muted2);
}
.post-preview-info    { flex: 1; min-width: 0; }
.post-preview-title   { font-size: .875rem; font-weight: 500; }
.post-preview-price   { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.post-preview--event  { flex-wrap: wrap; }
.post-preview-event-info { flex: 1; min-width: 0; }
.post-preview-event-date {
  font-size: .8rem; color: var(--accent);
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}
.post-preview-venue { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.post-preview--event .btn { flex-shrink: 0; }

.post-link-preview {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  margin: .5rem 0 .25rem;
  border: .5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  text-decoration: none;
  color: var(--muted);
  font-size: .82rem;
  transition: background .15s, border-color .15s;
}
.post-link-preview:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); }
.post-link-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-link-arrow { flex-shrink: 0; }

/* Acciones */
.post-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.post-like-btn {
  display: flex; align-items: center; gap: .35rem;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .85rem;
  padding: .25rem .5rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.post-like-btn:hover { color: #e05576; background: rgba(224,85,118,.08); }
.post-like-btn.liked { color: #e05576; }
.post-like-btn .like-icon { font-size: 1rem; }

.post-comment-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .85rem;
  padding: .25rem .5rem; border-radius: var(--radius);
  transition: color .15s;
}
.post-comment-toggle:hover { color: var(--text); }

/* Comentarios */
.post-comments {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.comments-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }

.comment {
  display: flex; flex-direction: column; gap: .3rem;
}
.comment--reply {
  margin-left: 2.5rem;
  padding-left: .75rem;
  border-left: 2px solid var(--border);
}
.comment-meta {
  display: flex; align-items: center; gap: .5rem;
}
.comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.comment-avatar--initials {
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--muted);
}
.comment-author { font-size: .8rem; font-weight: 500; }
.comment-time   { font-size: .7rem; color: var(--muted); margin-left: auto; }
.comment-body   { font-size: .82rem; color: var(--text); line-height: 1.5; }
.comment-reply-btn, .comment-delete-btn {
  font-size: .72rem; color: var(--muted); cursor: pointer;
  background: none; border: none; padding: 0; margin-top: .15rem;
}
.comment-reply-btn:hover { color: var(--accent); }
.comment-delete-btn:hover { color: var(--error); }

.comment-form {
  display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem;
}
.comment-input {
  width: 100%; padding: .5rem .75rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: .85rem; font-family: inherit;
  resize: vertical;
}
.comment-input:focus { outline: none; border-color: var(--accent); }

/* Cargar más */
.load-more-wrap {
  text-align: center; margin-top: 1.5rem;
}

/* ── PANEL — publicaciones ───────────────────────────────────────────────── */
.posts-list { display: flex; flex-direction: column; gap: .75rem; }

.post-panel-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.post-panel-row--draft { border-left: 3px solid var(--accent); }
.post-panel-info  { display: flex; gap: .75rem; align-items: flex-start; flex: 1; min-width: 0; }
.post-panel-icon  { font-size: 1.25rem; flex-shrink: 0; }
.post-panel-title { font-size: .9rem; font-weight: 500; }
.post-panel-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.draft-edit-form  { width: 100%; margin-top: .5rem; }

.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent); text-decoration: underline;
  font-size: inherit; padding: 0;
}

/* ── COLA DE REPRODUCCIÓN ─────────────────────────────────────────────────── */
.queue-panel {
  position: fixed;
  bottom: var(--player-h);
  right: 0;
  width: 320px;
  max-height: 420px;
  background: var(--player-bg);
  border: 0.5px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) 0 0 0;
  z-index: 198;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform .25s ease;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.queue-panel--open {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.queue-title {
  font-size: .75rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: .05em;
  color: var(--muted);
}
.queue-close-btn {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: .9rem; padding: 0; line-height: 1;
}
.queue-close-btn:hover { color: var(--text); }
.queue-list { overflow-y: auto; flex: 1; min-height: 0; }
.queue-empty {
  padding: 1.25rem 1rem;
  color: var(--muted); font-size: .8rem; text-align: center;
}
.queue-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .75rem;
  border-bottom: 0.5px solid var(--border);
  cursor: default;
  transition: background .15s;
  position: relative;
}
.queue-item:hover { background: var(--bg3); }
.queue-item--playing {
  background: var(--bg3);
  border-left: 2px solid var(--accent);
}
.queue-item--playing .queue-item-title { color: var(--accent); }
.queue-now-playing {
  color: var(--accent); font-size: .7rem;
  flex-shrink: 0; width: 14px;
}
.queue-drag-handle {
  color: var(--muted2); font-size: .85rem;
  cursor: grab; flex-shrink: 0; width: 14px;
  user-select: none;
}
.queue-item.dragging { opacity: .35; }
.queue-item-cover {
  width: 30px; height: 30px;
  border-radius: 3px; object-fit: cover; flex-shrink: 0;
  background: var(--bg3); border: 0.5px solid var(--border);
}
.queue-item-cover--icon {
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--muted2);
}
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-title {
  font-size: .78rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-item-meta {
  font-size: .7rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-remove-btn {
  background: none; border: none; color: var(--muted2);
  cursor: pointer; font-size: .75rem; padding: 2px 4px;
  flex-shrink: 0; opacity: 0; transition: opacity .15s, color .15s;
}
.queue-item:hover .queue-remove-btn { opacity: 1; }
.queue-remove-btn:hover { color: var(--text); }
.queue-suggestions {
  border-top: 0.5px solid var(--border);
  padding: .5rem .75rem; flex-shrink: 0;
  overflow-y: auto; max-height: 150px;
}
.queue-suggestions-title {
  font-size: .7rem; font-family: 'DM Mono', monospace;
  color: var(--muted); letter-spacing: .04em; margin-bottom: .35rem;
}
.queue-suggestion-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem 0; border-bottom: 0.5px solid var(--border);
}
.queue-suggestion-item:last-child { border-bottom: none; }
.queue-footer {
  padding: .5rem .75rem;
  border-top: 0.5px solid var(--border); flex-shrink: 0;
}
/* Botón "+" agregar a cola */
.queue-add-btn {
  background: none; border: 0.5px solid var(--border);
  color: var(--muted); width: 24px; height: 24px;
  border-radius: 50%; cursor: pointer; font-size: .85rem;
  line-height: 1; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.queue-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.queue-add-btn--added { border-color: var(--success) !important; color: var(--success) !important; }
/* Botón de cola en la barra del reproductor */
.queue-toggle-btn { font-size: 1rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .queue-panel { width: 100%; border-radius: 0; }
}

/* ════════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM — Solo tema oscuro
   ════════════════════════════════════════════════════════════════════════════ */

/* Fondo global: manchas de color difusas */
html[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 15% 50%, rgba(180, 0, 255, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 80, 255, 0.20) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 0, 120, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Header con vidrio esmerilado */
html[data-theme="dark"] .site-header {
  background: rgba(13, 0, 21, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

/* Cards genéricas */
html[data-theme="dark"] .card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 24px rgba(0,0,0,.35);
}
html[data-theme="dark"] .card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(220, 180, 255, 0.30);
}

/* Work cards */
html[data-theme="dark"] .work-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
}
html[data-theme="dark"] .work-card:hover {
  border-color: rgba(220, 180, 255, 0.30);
}

/* Release cards */
html[data-theme="dark"] .release-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  overflow: hidden;
}
html[data-theme="dark"] .release-card:hover {
  border-color: rgba(220, 180, 255, 0.35);
}

/* Músico cards */
html[data-theme="dark"] .musician-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
}
html[data-theme="dark"] .musician-card:hover {
  border-color: rgba(220, 180, 255, 0.30);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}

/* Post cards */
html[data-theme="dark"] .post-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
}

/* Post panel rows */
html[data-theme="dark"] .post-panel-row {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
}

/* Auth box */
html[data-theme="dark"] .auth-box {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 40px rgba(0,0,0,.5);
}

/* Stat cards (admin) */
html[data-theme="dark"] .stat-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
}

/* Work buy box */
html[data-theme="dark"] .work-buy-box {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
}

/* Inline player */
html[data-theme="dark"] .inline-player {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
}

/* Post preview (contenido adjunto en posts) */
html[data-theme="dark"] .post-preview {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
}

/* Filtros de descubrir */
html[data-theme="dark"] .discover-filters {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
html[data-theme="dark"] .discover-search-input,
html[data-theme="dark"] .discover-select {
  background: rgba(20, 0, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  color-scheme: dark;
}
html[data-theme="dark"] .discover-select option {
  background: #1a0030;
  color: var(--text);
}
html[data-theme="dark"] .discover-search-input:focus {
  border-color: rgba(220, 180, 255, 0.40);
  box-shadow: 0 0 0 3px rgba(180, 120, 255, 0.10);
}

/* Inputs dentro de .form-group */
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
}
html[data-theme="dark"] .form-group select {
  background: rgba(20, 0, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}
html[data-theme="dark"] .form-group select option {
  background: #1a0030;
  color: var(--text);
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus {
  border-color: rgba(220, 180, 255, 0.40);
  box-shadow: 0 0 0 3px rgba(180, 120, 255, 0.10);
}

/* Select de la filter-bar (cartelera) */
html[data-theme="dark"] .filter-bar select {
  background: rgba(20, 0, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  color-scheme: dark;
}
html[data-theme="dark"] .filter-bar select option {
  background: #1a0030;
  color: var(--text);
}

/* Input standalone (.input) */
html[data-theme="dark"] .input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="dark"] .input:focus {
  border-color: rgba(220, 180, 255, 0.40);
  box-shadow: 0 0 0 3px rgba(180, 120, 255, 0.10);
}

/* Botón primario */
html[data-theme="dark"] .btn--primary {
  background: rgba(180, 120, 255, 0.22);
  border: 0.5px solid rgba(220, 180, 255, 0.40);
  color: rgba(240, 220, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="dark"] .btn--primary:hover {
  background: rgba(180, 120, 255, 0.38);
  border-color: rgba(220, 180, 255, 0.60);
  color: #fff;
}

/* Botón outline */
html[data-theme="dark"] .btn--outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
}
html[data-theme="dark"] .btn--outline:hover {
  border-color: rgba(220, 180, 255, 0.40);
  color: rgba(240, 220, 255, 0.90);
  background: rgba(180, 120, 255, 0.08);
}

/* Botón nav (header) */
html[data-theme="dark"] .btn-nav {
  border-color: rgba(232, 121, 249, 0.50);
  color: #e879f9 !important;
}
html[data-theme="dark"] .btn-nav:hover {
  background: rgba(232, 121, 249, 0.12);
  color: #f0abff !important;
}

/* Botón de seguir */
html[data-theme="dark"] .btn-follow.following {
  border-color: #e879f9;
  color: #e879f9;
}

/* Badges con background glass */
html[data-theme="dark"] .badge {
  background: rgba(220, 180, 255, 0.08);
  border-color: rgba(220, 180, 255, 0.25);
  color: rgba(220, 180, 255, 0.85);
}
html[data-theme="dark"] .badge--pending {
  background: rgba(255, 200, 0, 0.10);
  border-color: rgba(255, 200, 0, 0.30);
  color: rgba(255, 210, 60, 0.90);
}
html[data-theme="dark"] .badge--paid,
html[data-theme="dark"] .badge--active {
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.30);
  color: rgba(74, 222, 128, 0.90);
}
html[data-theme="dark"] .badge--rejected,
html[data-theme="dark"] .badge--suspended {
  background: rgba(248, 113, 113, 0.10);
  border-color: rgba(248, 113, 113, 0.30);
  color: rgba(248, 113, 113, 0.90);
}
html[data-theme="dark"] .badge--musician {
  background: rgba(232, 121, 249, 0.10);
  border-color: rgba(232, 121, 249, 0.30);
  color: rgba(232, 121, 249, 0.90);
}

/* Tablas */
html[data-theme="dark"] thead {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Reproductor */
html[data-theme="dark"] .player-bar {
  background: rgba(13, 0, 21, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 -4px 32px rgba(0,0,0,.5);
}
html[data-theme="dark"] .player-btn.play-pause {
  border-color: rgba(255, 255, 255, 0.20);
}
html[data-theme="dark"] .player-btn.play-pause:hover {
  border-color: #e879f9;
}
html[data-theme="dark"] .progress-track {
  background: rgba(255, 255, 255, 0.10);
}

/* Cola de reproducción */
html[data-theme="dark"] .queue-panel {
  background: rgba(13, 0, 21, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-color: rgba(255, 255, 255, 0.10);
  border-radius: 16px 0 0 0;
}
html[data-theme="dark"] .queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .queue-item--playing {
  background: rgba(232, 121, 249, 0.08);
  border-left-color: #e879f9;
}
html[data-theme="dark"] .queue-item--playing .queue-item-title {
  color: #e879f9;
}

/* Work play button */
html[data-theme="dark"] .work-play-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
html[data-theme="dark"] .work-play-btn:hover,
html[data-theme="dark"] .work-play-btn.playing {
  background: rgba(232, 121, 249, 0.22);
  border-color: #e879f9;
  color: #f0abff;
}

/* Tracklist play button */
html[data-theme="dark"] .tracklist-play:hover,
html[data-theme="dark"] .tracklist-play.playing {
  color: #e879f9;
  border-color: #e879f9;
}

/* Admin header */
html[data-theme="dark"] .admin-header {
  background: rgba(13, 0, 21, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Panel nav */
html[data-theme="dark"] .panel-nav a:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
html[data-theme="dark"] .panel-nav a.active {
  border-color: rgba(232, 121, 249, 0.50);
  color: #e879f9;
  background: rgba(232, 121, 249, 0.08);
}

/* Divisores y bordes */
html[data-theme="dark"] .panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .section-title {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .divider {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .hero {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Stat number (panel) */
html[data-theme="dark"] .stat-number {
  color: rgba(220, 180, 255, 0.95);
}

/* Avatares placeholder */
html[data-theme="dark"] .musician-card-photo--initials,
html[data-theme="dark"] .profile-photo-placeholder {
  background: rgba(180, 120, 255, 0.15);
  color: rgba(220, 180, 255, 0.80);
}
html[data-theme="dark"] .post-avatar--initials,
html[data-theme="dark"] .comment-avatar--initials {
  background: rgba(180, 120, 255, 0.12);
  color: rgba(220, 180, 255, 0.75);
}

/* Perfil foto */
html[data-theme="dark"] .profile-photo {
  border-color: rgba(220, 180, 255, 0.20);
}

/* Alerts */
html[data-theme="dark"] .alert--success { background: rgba(74, 222, 128, 0.08); }
html[data-theme="dark"] .alert--error   { background: rgba(248, 113, 113, 0.08); }
html[data-theme="dark"] .alert--info    { background: rgba(96, 165, 250, 0.08); }

/* Post type badges */
html[data-theme="dark"] .post-type-badge--demo,
html[data-theme="dark"] .post-type-badge--ensayo {
  background: rgba(74, 222, 128, 0.10);
}
html[data-theme="dark"] .post-type-badge--release {
  background: rgba(232, 121, 249, 0.10);
  color: #e879f9;
}
html[data-theme="dark"] .post-type-badge--event {
  background: rgba(96, 165, 250, 0.10);
}

/* 404 */
html[data-theme="dark"] .not-found h1 {
  color: rgba(255, 255, 255, 0.15);
}

/* Tipografía */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* ── FOTOS DE EVENTOS — post card y discover ─────────────────────────────── */

/* Cover grande en el post card de evento (discover feed) */
.event-post-cover {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .75rem;
  border: 0.5px solid var(--border);
}
.event-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.event-post-cover:hover img { transform: scale(1.03); }

/* Thumbnail en el bloque de preview del evento */
.post-event-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
}
.post-event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Paginación ──────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}
.pagination-info {
  font-size: .85rem;
  color: var(--muted);
}

/* ── Modal de apoyo ────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 0, 35, 0.92);
  border: 0.5px solid rgba(232, 121, 249, 0.25);
  border-radius: 16px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }

/* Tabs del modal */
.modal-tabs {
  display: flex;
  gap: .5rem;
}
.modal-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  padding: .5rem;
  font-size: .875rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.modal-tab.active {
  background: rgba(232, 121, 249, 0.12);
  border-color: rgba(232, 121, 249, 0.4);
  color: var(--accent);
}
.modal-tab-panel { animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Botones de monto para apoyo recurrente */
.support-amount-options {
  display: flex;
  gap: .5rem;
}
.support-amount-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  padding: .5rem;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.support-amount-btn.active {
  background: rgba(232, 121, 249, 0.12);
  border-color: rgba(232, 121, 249, 0.4);
  color: var(--accent);
}

/* Opciones de método de pago */
.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.payment-method-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: .6rem .75rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.payment-method-option:has(input:checked) {
  background: rgba(232, 121, 249, 0.08);
  border-color: rgba(232, 121, 249, 0.3);
}
.payment-method-option input[type="radio"] {
  accent-color: var(--accent);
  width: auto;
  flex-shrink: 0;
}

/* Botón apoyar en perfil */
.btn-apoyar {
  cursor: pointer;
}

/* ── DASHBOARDS FINANCIEROS ──────────────────────────────────────────────── */

/* Cards de saldo del músico */
.finance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.finance-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.finance-card--available {
  border-color: rgba(74, 222, 128, .25);
  background: rgba(74, 222, 128, .04);
}
.finance-card--pending {
  border-color: rgba(224, 160, 64, .25);
  background: rgba(224, 160, 64, .04);
}
.finance-card-label {
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.finance-card-amount {
  font-family: 'DM Mono', monospace;
  font-size: 1.4rem;
  color: var(--success);
  line-height: 1.2;
}
.finance-card--pending .finance-card-amount { color: #e0a040; }
.finance-card-sub {
  font-size: .75rem;
  color: var(--muted2);
  margin-top: .4rem;
}

/* Gráficos del músico */
.finance-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.finance-chart-card { min-height: 260px; }
@media (max-width: 720px) {
  .finance-charts { grid-template-columns: 1fr; }
}

/* Tabla historial de movimientos */
.finance-history-table th,
.finance-history-table td {
  font-size: .8rem;
}
@media (max-width: 900px) {
  .finance-history-table .col-hide { display: none; }
}

/* Tabla desglose admin */
.finance-breakdown-table td {
  padding: 6px 4px;
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  border-bottom: 1px solid var(--border);
}
.finance-breakdown-table td:last-child { text-align: right; }
.finance-breakdown-table .finance-breakdown-separator td {
  padding: 0; height: 1px;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.finance-breakdown-table .finance-breakdown-total td {
  padding-top: .75rem;
  border-bottom: none;
  font-size: .9rem;
}
.finance-admin-amount {
  font-family: 'DM Mono', monospace;
  font-size: 1.3rem;
  color: var(--text);
  margin-top: .35rem;
}

/* ── TICKETS ──────────────────────────────────────────────────────────────── */

/* Grid de tarjetas de tickets (fan) */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Tarjeta individual de ticket */
.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ticket-card__header {
  background: var(--surface2);
  padding: .75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.ticket-card__event {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}
.ticket-card__artist {
  font-size: .78rem;
  color: var(--muted2);
  margin-top: .15rem;
}
.ticket-card__body {
  padding: .75rem 1rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  flex: 1;
}
.ticket-card__qr {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ticket-card__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.ticket-card__info {
  font-size: .82rem;
  color: var(--muted);
}
.ticket-card__num {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  color: var(--muted2);
  margin-top: .25rem;
  letter-spacing: .5px;
}
.ticket-card__footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Badge de estado para tickets */
.badge--active    { background: rgba( 34,197, 94,.15); color: #4ade80; }
.badge--used      { background: rgba(239, 68, 68,.15); color: #f87171; }
.badge--cancelled { background: rgba(107,114,128,.15); color: #9ca3af; }

/* ── Componente "Próximamente" (pagos deshabilitados) ───────────────────── */
.coming-soon-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-left: 3px solid rgba(220,180,255,0.6);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: rgba(255,255,255,0.7);
}
.coming-soon-notice strong {
  display: block;
  color: rgba(220,180,255,0.9);
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.coming-soon-notice p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.btn-coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255,255,255,0.06) !important;
  color: var(--muted) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.badge-coming-soon {
  display: inline-block;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(220,180,255,0.08);
  border: 0.5px solid rgba(220,180,255,0.2);
  color: rgba(220,180,255,0.6);
}

/* ── WELCOME OVERLAY ──────────────────────────────────────────────────────── */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 0, 21, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.5s ease;
}
.welcome-overlay.hiding {
  opacity: 0;
  pointer-events: none;
}
.welcome-content {
  text-align: center;
  max-width: 600px;
  padding: 40px;
}
.welcome-brand {
  margin-bottom: 28px;
}
.welcome-logo {
  display: block;
  margin: 0 auto 10px;
  height: clamp(5.6rem, 12vw, 8rem);
  width: auto;
  opacity: 0.9;
}
.welcome-amuse {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}
.welcome-tagline {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220, 180, 255, 0.7);
  margin: 0;
}
.welcome-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.welcome-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(220, 180, 255, 0.8);
  text-align: right;
  margin-bottom: 40px;
  line-height: 1.6;
}
.welcome-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.welcome-actions .btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: .65rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.welcome-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}
.welcome-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  padding: .65rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity .2s;
}
.welcome-actions .btn-primary:hover { opacity: .88; color: #ffffff; }

/* ── PÁGINA PÚBLICA DE EVENTO ─────────────────────────────────────────────── */
.event-hero-cover { position: relative; width: 100%; max-height: 380px; overflow: hidden; }
.event-hero-cover img { width: 100%; height: 380px; object-fit: cover; display: block; }
.event-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%); }

/* ── OVERLAY DE LINK EN CARD ─────────────────────────────────────────────── */
.card-link-overlay { position: absolute; inset: 0; z-index: 0; cursor: pointer; }
/* Texto estático: visible pero deja pasar cursor y clicks al overlay */
.event-card .event-date,
.event-card .event-title,
.event-card .event-meta,
.event-card .event-desc { position: relative; z-index: 1; pointer-events: none; }
/* El contenedor del artista pasa eventos, pero su <a> interna los recibe */
.event-card .event-artist { position: relative; z-index: 1; pointer-events: none; }
.event-card .event-artist a { pointer-events: auto; }

/* ── REDES SOCIALES EN PERFIL PÚBLICO ───────────────────────────────────── */
.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}
.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted2);
  text-decoration: none;
  font-size: .78rem;
  transition: color .15s, border-color .15s;
}
.profile-social-link:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.profile-social-label {
  line-height: 1;
}

/* ── TOGGLE SWITCH ───────────────────────────────────────────────────────── */
.social-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.social-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.social-toggle-track {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--surface2); border-radius: 24px;
  transition: background .2s;
}
.social-toggle-track::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted2);
  left: 3px; top: 3px;
  transition: transform .2s, background .2s;
}
.social-toggle input:checked + .social-toggle-track { background: var(--accent); }
.social-toggle input:checked + .social-toggle-track::before { transform: translateX(18px); background: #0d0015; }

/* ── FILAS DE REDES SOCIALES ─────────────────────────────────────────────── */
.social-rows { display: flex; flex-direction: column; gap: .4rem; }
.social-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.social-row:focus-within { border-color: var(--accent); }
.social-row-label {
  width: 90px; flex-shrink: 0;
  font-size: .78rem; color: var(--muted2); font-family: 'DM Mono', monospace;
}
.social-row-input-wrap { flex: 1; display: flex; align-items: center; min-width: 0; }
.social-prefix, .social-suffix {
  font-size: .78rem; color: var(--muted2); font-family: 'DM Mono', monospace;
  white-space: nowrap; user-select: none;
}
.social-username-input {
  flex: 1; border: none; background: transparent;
  color: var(--fg); font-size: .9rem;
  padding: .1rem .25rem; outline: none; min-width: 0;
}
.social-username-input::placeholder { color: var(--muted2); opacity: .5; }
.social-save-status { font-size: .72rem; min-width: 5rem; text-align: right; white-space: nowrap; }
.social-save-status.ok      { color: #4ade80; }
.social-save-status.error   { color: #f87171; }
.social-save-status.saving  { color: var(--muted2); }

/* ── Profile Hero ────────────────────────────────────────────────────────── */
.profile-hero {
  position: relative;
  min-height: 420px;
  margin-top: -2.5rem;           /* cancela el padding-top de main */
  background-image: var(--hero-url);
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
}
.profile-hero-content {
  position: relative;
  z-index: 1;
  /* padding lateral igual al del .container (1.25rem) para que el texto alinee */
  padding: 2rem 1.25rem;
  width: 100%;
  max-width: 1100px;             /* mismo max-width que .container */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.profile-hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #fff;
  margin: 0 0 .4rem;
  line-height: 1.1;
}
.profile-hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  margin: 0 0 1.25rem;
  font-style: italic;
}
.profile-hero.hero-gradient {
  background-image: linear-gradient(135deg, var(--bg) 0%, var(--accent) 100%);
}
@media (max-width: 600px) {
  .profile-hero { min-height: 280px; }
  .profile-hero-content { padding: 1.25rem 1rem; }
}

/* ── Bio pull quote ──────────────────────────────────────────────────────── */
.profile-bio-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: .75rem 0;
  line-height: 1.6;
}
.profile-bio-body { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.profile-bio-collapse { max-height: 80px; overflow: hidden; transition: max-height .3s ease; }
.profile-bio-collapse.expanded { max-height: 600px; }
.profile-bio-toggle {
  background: none; border: none; color: var(--accent);
  font-size: .8rem; cursor: pointer; padding: .25rem 0; margin-top: .25rem;
}

/* ── Botón apoyar ────────────────────────────────────────────────────────── */
.btn-apoyar-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.btn-apoyar-hint { font-size: .72rem; color: var(--muted2); }

/* ── Preview inline ──────────────────────────────────────────────────────── */
.preview-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}
.preview-progress-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 80px;
}
.preview-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .1s linear;
  width: 0%;
}
.preview-label {
  font-size: .7rem;
  color: var(--muted2);
  white-space: nowrap;
}
.preview-btn[data-state="playing"] {
  color: var(--accent);
  border-color: var(--accent);
}
