.transpose-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
  padding: 10px 12px;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.transpose-toolbar span {
  font-weight: 600;
}

.transpose-toolbar button {
  border: 0;
  background: #1f2937;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.transpose-toolbar button:hover {
  background: #c62828;
}

.transpose-value {
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

/* Night mode */
body.dark-mode .transpose-toolbar,
body.night-mode .transpose-toolbar {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

body.dark-mode .transpose-toolbar button,
body.night-mode .transpose-toolbar button {
  background: #374151;
  color: #fff;
}

body.dark-mode .transpose-toolbar button:hover,
body.night-mode .transpose-toolbar button:hover {
  background: #c62828;
.akordi-chord {
  color: #c62828;
  font-weight: 700;
  cursor: pointer;
}

.akordi-chord:hover {
  text-decoration: underline;
}
}
.field--name-field-teksta-i-akordi pre span.akordi-chord {
  color: #c62828 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.field--name-field-teksta-i-akordi pre span.akordi-chord:hover {
  text-decoration: underline !important;
}
.akordi-chord-popup {
  position: absolute;
  width: 190px;
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.chord-svg {
  width: 170px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.akordi-library-page {
  max-width: 1200px;
  margin: 0 auto;
}

.akordi-library-header {
  margin-bottom: 25px;
}

#akordi-library-search {
  width: 100%;
  max-width: 500px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.akordi-library-section {
  margin-bottom: 40px;
}

.akordi-library-section h2 {
  margin: 25px 0 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.akordi-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.akordi-library-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.akordi-library-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #c40000;
}

.akordi-library-diagram svg {
  max-width: 100%;
  height: auto;
}

/* Night mode */
body.akordi-night-mode .akordi-library-card,
.dark-mode .akordi-library-card,
html.dark-mode .akordi-library-card {
  background: #111;
  border-color: #333;
  color: #eee;
}

body.akordi-night-mode #akordi-library-search,
.dark-mode #akordi-library-search,
html.dark-mode #akordi-library-search {
  background: #111;
  color: #eee;
  border-color: #444;
}
.akordi-library-counter {
  margin: 15px 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: #444;
}

.akordi-library-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 220px;
    padding: 12px;
}

@media (max-width: 700px) {
  .akordi-library-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 12px;
  }

  .akordi-library-card {
    padding: 8px;
  }
}
.akordi-library-page .akordi-chord-title,
.akordi-library-page .chord-title,
.akordi-library-page svg text:first-child {
  display: none !important;
}
.akordi-library-card-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #111 !important;
    text-align: center;
    line-height: 1.2;
}
.akordi-library-diagram {
    display: flex;
    justify-content: center;
    width: 100%;
}
.akordi-used-chords {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.akordi-used-chords h3 {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 700;
}

.akordi-used-chords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.akordi-used-chord-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.akordi-used-chord-diagram svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .akordi-used-chords-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 12px;
  }
}
.akordi-chord-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin: 6px auto 0;
    padding: 0 !important;

    background: #fff !important;
    background-image: none !important;

    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    color: #555 !important;
    cursor: pointer;

    width: auto;
    height: auto;

    font-family: inherit;
}

.akordi-play-icon {
    font-size: 15px;
    line-height: 1;
}

.akordi-play-text {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
}

.akordi-chord-play:hover {
    color: #c62828 !important;
}
.akordi-play-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.akordi-play-icon {
    display: flex;
    align-items: center;
}