/* === 1. VARIABLES === */

:root {
  --bg: #ffffff;
  --text: #000000;
  --text-muted: #999999;
  --text-dim: #888888;
  --border: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --chord-color: #000000;
  --section-bg: transparent;
  --chorus-bg: rgba(0, 0, 0, 0.02);
  --radius: 4px;
  --transition: 0.2s ease;
  --font-ui: 'Inknut Antiqua', serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #e0e0e0;
  --text-muted: #777777;
  --text-dim: #555555;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
  --chord-color: #e0e0e0;
  --chorus-bg: rgba(255, 255, 255, 0.03);
}

/* === 2. RESET === */

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

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  transition: background var(--transition), color var(--transition);
  line-height: 1.5;
  text-transform: lowercase;
}

a {
  color: var(--text);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  color: inherit;
  background: transparent;
}

/* === 3. HEADER === */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4dvw, 3rem);
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: clamp(0.9rem, 1.5dvw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* === 4. CATÁLOGO === */

.view {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4dvw, 3rem);
}

.catalog-header {
  margin-bottom: 1.5rem;
}

.site-statement {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-align: center;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: clamp(0.7rem, 1dvw, 0.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--border-hover);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.song-list {
  display: flex;
  flex-direction: column;
}

.artist-group {
  margin-bottom: 1.8rem;
}

.artist-name {
  font-size: clamp(0.55rem, 0.8dvw, 0.65rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
  display: block;
  text-decoration: none;
}

.artist-name:hover {
  color: var(--text-muted);
}

.song-entry {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.35rem 0 0.35rem 0.8rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  cursor: pointer;
}

.song-entry:hover {
  border-bottom-color: var(--border);
}

.song-entry-title {
  font-size: clamp(0.7rem, 1dvw, 0.85rem);
  font-weight: 400;
  flex: 1;
}

.song-entry-key {
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.song-entry-lang {
  font-size: clamp(0.5rem, 0.7dvw, 0.6rem);
  color: var(--text-dim);
}

.no-results {
  color: var(--text-muted);
  font-size: clamp(0.65rem, 0.9dvw, 0.8rem);
  text-align: center;
  padding: 2rem 0;
}

/* === 5. VISTA CANCIÓN === */

.song-header {
  margin-bottom: 1.5rem;
}

.back-link {
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.8rem;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text);
}

.song-title {
  font-size: clamp(1rem, 2dvw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.song-meta {
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.song-meta span {
  white-space: nowrap;
}

.version-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.version-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.version-btn {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.version-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.version-btn.active {
  border-color: var(--text);
  color: var(--text);
  font-weight: 600;
}

/* === 6. CONTROLES === */

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.control-label {
  font-size: clamp(0.45rem, 0.65dvw, 0.55rem);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.control-btn {
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  font-weight: 500;
}

.control-btn:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.control-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.control-value {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  min-width: 1.5em;
  text-align: center;
}

/* === 7. DIAGRAMAS DE ACORDES === */

.chord-diagrams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chord-diagrams:empty {
  display: none;
}

.chord-diagram-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3rem;
}

.chord-diagram {
  color: var(--text);
}

/* === 8. CONTENIDO DE CANCIÓN === */

.song-content {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.1dvw, 0.95rem);
  line-height: 1.8;
  padding-bottom: 4rem;
}

.section {
  margin-bottom: 1.5rem;
}

.section-chorus {
  background: var(--chorus-bg);
  border-left: 2px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section-label {
  font-family: var(--font-ui);
  font-size: clamp(0.5rem, 0.7dvw, 0.6rem);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.song-line {
  white-space: pre-wrap;
  min-height: 1.2em;
}

.line-break {
  height: 0.8em;
}

/* acordes como ruby */
.chord-segment ruby {
  ruby-position: over;
}

.chord-name {
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  font-weight: 600;
  color: var(--chord-color);
  cursor: pointer;
  white-space: nowrap;
}

.chord-name:hover {
  text-decoration: underline;
}

/* dos capas (acordes + readings) */
.song-line.two-layer {
  display: flex;
  flex-direction: column;
}

.chord-layer {
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  font-weight: 600;
  color: var(--chord-color);
  line-height: 1.4;
  white-space: pre-wrap;
}

.chord-inline {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--chord-color);
}

.chord-inline:hover {
  text-decoration: underline;
}

.song-content .song-line > .chord-inline {
  font-size: clamp(0.65rem, 0.9dvw, 0.8rem);
  margin-right: 0.3em;
}

.chord-spacer .invisible {
  visibility: hidden;
}

.lyric-layer {
  white-space: pre-wrap;
}

/* readings (romaji/pinyin) */
.reading-ruby {
  ruby-position: over;
}

.reading-ruby rt {
  font-size: 0.6em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* === 9. POPUP DE ACORDE === */

.chord-popup {
  position: fixed;
  z-index: 100;
  pointer-events: none;
}

.chord-popup-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  pointer-events: auto;
}

/* === 10. FOOTER === */

.site-brand {
  text-align: center;
  padding: 2rem 1rem;
}

.site-brand a {
  font-family: var(--font-ui);
  font-size: 0.5rem;
  color: var(--text);
  opacity: 0.3;
  transition: opacity var(--transition);
  text-decoration: none;
}

.site-brand a:hover {
  opacity: 0.7;
}

/* === 11. RESPONSIVE === */

@media (max-width: 768px) {
  .controls-bar {
    gap: 0.6rem;
    padding: 0.6rem;
  }

  .control-group {
    flex: 1;
    min-width: 0;
  }

  .chord-diagrams {
    gap: 0.4rem;
    justify-content: center;
  }

  .song-content {
    font-size: clamp(0.7rem, 3.5dvw, 0.9rem);
  }

  .editor-split {
    grid-template-columns: 1fr;
  }

  .ed-preview {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .view {
    padding: 1rem;
  }

  .controls-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.8rem;
    flex-wrap: nowrap;
  }

  .control-group {
    flex-shrink: 0;
  }
}

/* === 12. PERFIL === */

.profile-wrapper {
  position: relative;
}

.profile-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.profile-btn:hover {
  border-color: var(--border-hover);
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.8rem;
  min-width: 180px;
  z-index: 50;
}

.profile-dropdown.open {
  display: block;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.5rem, 0.7dvw, 0.6rem);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.profile-field:last-child {
  margin-bottom: 0;
}

.profile-field input,
.profile-field select {
  font-family: var(--font-ui);
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

/* === 13. FAVORITO Y EDITAR === */

.song-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.song-header-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.favorite-btn {
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.favorite-btn:hover {
  border-color: var(--border-hover);
}

.favorite-btn.active {
  color: #e25555;
  border-color: #e25555;
}

.edit-btn {
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.edit-btn:hover {
  border-color: var(--border-hover);
}

/* === 14. CATÁLOGO SECCIONES === */

.catalog-section-label {
  font-size: clamp(0.55rem, 0.8dvw, 0.65rem);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding: 0.8rem 0 0.3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.badge-custom {
  font-size: 0.85em;
  color: var(--text-muted);
  font-weight: 400;
}

.new-tab-btn {
  display: block;
  text-align: center;
  padding: 0.8rem;
  margin-top: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  cursor: pointer;
  transition: all var(--transition);
}

.new-tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* === 15. EDITOR === */

.editor-header {
  margin-bottom: 1rem;
}

.editor-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.editor-meta-row {
  display: flex;
  gap: 0.4rem;
}

.ed-input {
  font-family: var(--font-ui);
  font-size: clamp(0.65rem, 0.9dvw, 0.8rem);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}

.ed-input:focus {
  border-color: var(--border-hover);
}

.ed-input-sm {
  width: auto;
  flex: 1;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  min-height: 400px;
}

.ed-textarea {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1dvw, 0.85rem);
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  outline: none;
  line-height: 1.6;
  tab-size: 2;
  min-height: 400px;
}

.ed-textarea:focus {
  border-color: var(--border-hover);
}

.ed-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  overflow-y: auto;
  max-height: 600px;
}

.editor-import-url {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.editor-import-url .ed-input {
  flex: 1;
}

.editor-import-raw,
.editor-import-cookie {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border: 1px dashed var(--text-muted);
  border-radius: 4px;
}

.editor-import-raw summary,
.editor-import-cookie summary {
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
}

.editor-import-raw[open] summary,
.editor-import-cookie[open] summary {
  margin-bottom: 0.5rem;
}

.editor-import-raw .ed-hint,
.editor-import-cookie .ed-hint {
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  color: var(--text-muted);
  margin: 0 0 0.4rem 0;
  line-height: 1.4;
}

.editor-import-cookie code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 0.2rem;
  border-radius: 2px;
}

.ed-textarea-sm {
  min-height: 140px;
  margin-bottom: 0.4rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ed-action {
  font-weight: 600;
}

.ed-action-danger {
  color: #e25555;
  border-color: #e25555;
}

.ed-action-danger:hover {
  background: #e25555;
  color: var(--bg);
}

.ed-help {
  margin-bottom: 2rem;
}

.ed-help summary {
  font-size: clamp(0.55rem, 0.8dvw, 0.7rem);
  color: var(--text-muted);
  cursor: pointer;
}

.ed-help-content {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.85dvw, 0.75rem);
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0.5rem 0;
  white-space: pre-wrap;
}

/* === 16. UTILIDADES === */

@media (hover: hover) {
  .song-entry:hover .song-entry-title {
    text-decoration: underline;
  }
}

/* animación de entrada */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view {
  animation: fade-in 0.3s ease;
}

/* scrollbar sutil */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* === COMMENTS === */

.comments-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.comment-input {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  max-width: 200px;
}

.comment-input:focus,
.comment-textarea:focus {
  border-color: var(--border-hover);
}

.comment-textarea {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 60px;
  max-height: 200px;
}

.comment-submit {
  align-self: flex-start;
  font-size: 0.6rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.comment-author {
  font-size: 0.65rem;
  font-weight: 600;
}

.comment-tripcode {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.comment-date {
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-left: auto;
}

.comment-body {
  font-size: 0.65rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.comment-actions {
  display: flex;
  gap: 0.6rem;
}

.comment-action {
  font-size: 0.55rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-ui);
}

.comment-action:hover {
  color: var(--text);
}

.comment-replies {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reply-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.reply-form .comment-input {
  flex: 0 0 auto;
}

.reply-form .comment-textarea {
  flex: 1;
  min-height: 40px;
}

.reply-form .comment-submit {
  align-self: flex-end;
}

.no-comments {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-style: italic;
}

/* === FOLLOWS + FEED === */

.header-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.header-link:hover {
  opacity: 1;
}

.follow-btn {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.follow-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.follow-btn.following {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.feed-header {
  margin-bottom: 1.5rem;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.feed-type {
  font-size: 0.55rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.feed-title {
  font-size: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.feed-title:hover {
  text-decoration: underline;
}

.feed-artist {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.feed-date {
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* === ARTIST PROFILE === */

.artist-link {
  color: var(--text);
  text-decoration: none;
}

.artist-link:hover {
  text-decoration: underline;
}

.artist-header {
  margin-bottom: 1.5rem;
}

.artist-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.artist-bio {
  font-size: 0.7rem;
  color: var(--text);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.artist-songs {
  margin-top: 1rem;
}

.badge-verified {
  font-size: 0.55rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

/* === CHORD PANEL (sticky) === */

.chord-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  max-height: 45vh;
  overflow-y: auto;
}

.chord-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
}

.chord-panel-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.chord-panel-close {
  font-size: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  font-family: var(--font-ui);
}

.chord-panel-close:hover {
  color: var(--text);
}

.chord-panel-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  justify-content: center;
}

@media (min-width: 769px) {
  .chord-panel {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    max-height: none;
    border-top: none;
    border-left: 1px solid var(--border);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
  }

  .chord-panel-content {
    flex-direction: column;
    align-items: center;
  }
}
