.song-content pre.two-columns {
  column-count: 2;
  column-gap: 40px;
}

/* Keep chord + lyric line together */
.song-content pre.two-columns {
  /* trick: large line-height + paragraph spacing mimic verse grouping */
}

.song-content pre.two-columns span.chord {
  display: inline-block;
}

.guest-message {
    background:var(--nv-background-light3);
    border-left: 5px solid #ffcc00;
    padding: 10px;
    margin: 20px 0;
}

.guest-message img {
display: block;
width: 30%;
margin-bottom: 10px;
}

.rand-messages {
    background: var(--nv-background-light2);
    border-left: 5px solid #339af0;
    padding: 10px;
    margin: 20px 0;
}

/* ================================
   TRANSPOSE CONTROLS BAR
================================ */

.transpose-controls {
    display: flex;
    flex-wrap: wrap;          /* ✅ ALWAYS allow wrapping */
    width: 100%;
    max-width: 100%;
    gap: 12px;
    margin: 30px 0 50px;
    overflow: hidden;         /* ✅ prevent overflow */
}

/* VERY IMPORTANT: allow flex child to shrink */
.box.w60 {
    min-width: 0;
}

/* Each control box */
.transpose-controls .transpose-controls-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 50px;
    padding: 0 14px;

    background: var(--nv-transpose-controls-item-bg);
    border: 1px solid var(--nv-transpose-controls-item-border);
    border-radius: 2px;

    box-sizing: border-box;
}

/* Normalize buttons + links */
.transpose-controls button,
.transpose-controls .transpose-controls-button a {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;
    cursor: pointer;
    color: inherit;
}

/* SVG */
.transpose-controls svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

/* Scale text */
.show-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    font-weight: 600;
    font-size: 14px;
}

/* Disabled */
#transposeUp.chords-disabled,
#transposeDown.chords-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .transpose-controls .transpose-controls-button {
        height: 65px;
    }

    .transpose-controls svg {
        width: 40px;
        height: 40px;
        stroke-width: 1.4;
    }
}

/* INFO OVERLAY */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.settings-panel {
  background: var(--nv-body-bg);
  width: 90%;
  max-width: 500px;

  max-height: 80vh;      /* limits height to 80% of screen */
  overflow-y: auto;      /* enables vertical scroll */
  overflow-x: hidden;

  border-radius: 8px;
  padding: 30px;
  position: relative;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-header button {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

#closeInfo {
  position: absolute;
  top: -40px;
  right: -220px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--nv-text);
  line-height: 1;
}

.hidden {
  display: none !important;
}

/* mobile polish */
@media (max-width: 768px) {

  #infoOverlay .settings-panel {
    width: 92%;
    max-width: none;
    border-radius: 12px;
  }

  .settings-panel {
    padding: 20px;
  }

  #infoOverlay .settings-body {
    max-height: 70vh;
  }
#closeInfo {
  top: -30px;
  right: -160px;
  font-size: 28px;
  cursor: pointer;
  color: var(--nv-text);
}
}


/* Mobile screens */
@media (max-width: 768px) {
    .box.w60 {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    pre {
        overflow-x: auto !important;
        max-width: 100%;
        -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
    }
}

.wrap {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    .wrap {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

.guitar-chords-container {
margin-top: 20px;
font-family: sans-serif;
}

.chords-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.chord-diagram {
width: 80px;
text-align: center;
margin-bottom: 10px;
}

.song-tags {
margin-top: 10px;
}

.song-tags .song-tag {
display: inline-block;
background: #1c3470;
color: #fff;
padding: 4px 8px;
margin: 3px;
font-size: 14px;
border-radius: 2px;
transition: background 0.2s ease;
}

.song-tags .song-tag:hover {
background: #dc6360;
}

.share-buttons {
margin-top: 40px;
}

.share-buttons img {
width: 40px;
margin-right: 10px;
filter: invert(0.6);
}

body.dark-mode .share-buttons img {
filter: invert(0);
}

/* ========== Two-column responsive layout ========== */
.song-extra-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 50px;
}

/* Left side (song info, tags, share buttons) */
.song-extra-container .left-side {
  flex: 1;
  max-width: 45%;
}

/* Right side (comments) */
.song-extra-container .right-side {
  flex: 1;
  max-width: 55%;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .song-extra-container {
    flex-direction: column;
    gap: 20px;
  }

  .song-extra-container .left-side,
  .song-extra-container .right-side {
    max-width: 100%;
  }
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 4px; /* space between text and stars */
    margin: 50px 0;
}

.rating-label {
    font-size: 16px;
    margin-right: 8px;
    white-space: nowrap;
}

.star {
    width: 24px;
    height: 24px;
    cursor: pointer;
}


.song-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* Space between boxes */
    justify-content: flex-start;
    background: var(--nv-song-info-wrapper-bg);
    padding: 10px 20px 13px 20px;
    border-top: 1px solid var(--nv-border);
    border-bottom: 1px solid var(--nv-border);
    margin: 0;
}

.song-info-box {
    padding: 0;
    flex: 0 0 calc((100% - 150px) / 4); /* 4 per row with 50px gaps */
    text-align: center;
}

.song-info-box .song-info-header {
    display: block;
    font-size: 14px;
    margin-right: 2px;
}

.song-info-box .song-info-data {
    font-size: 16px;
    font-weight: 600;
}

/* ------------------------------
   MOBILE: Single Column
   ------------------------------ */
@media (max-width: 600px) {
    .song-info-wrapper {
        gap: 0px; /* optional: smaller gap on mobile */
    }

    .song-info-box {
        flex: 0 0 100%; /* full width */
        white-space: normal; /* allow wrapping if needed */
        text-align: left;
    }
    
    .song-info-box .song-info-header {
    display: inline;
    font-size: 16px;
    }
    
    .song-info-box .song-info-data {
    font-size: 18px;
	}
}

/* =====================================
   SONG PANEL SPECIFIC FIX (OPTIONAL BUT SAFE)
===================================== */

#song-right {
    border-left: 1px solid var(--nv-border);
    padding: 50px 30px;
    background: var(--nv-background-light1);
}



#song-right h3 {
margin-top: 0 !important;
}

#song-right {
margin-right: 0;
}

.icon-inline {
margin-right: 0 !important;
}

.endnotes {
margin: 50px 0;
}

@media (max-width: 600px) {
    #song-right {
        border: 0;
        padding: 0;
        background: transparent;
    }
}

.recommended-songs {
margin-bottom: 50px;
}

.recommended-songs li {
margin-bottom: 10px;
}

.ad-notes {
font-weight: bold;
}

.ad-notes a {
font-weight: normal !important;
}

.message {padding:8px; background:#e8f7d2; border:1px solid #c5e1a5; margin-bottom:10px; border-radius:4px; color:#33691e;}

#songEditOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-edit-box {
  position: relative;
  background: #111;
  color: #fff;
  width: 90%;
  max-width: 900px;
  padding: 20px;
  border-radius: 6px;
}

.song-edit-box textarea {
  width: 100%;
  height: 250px;
  font-family: monospace;
  font-size: 15px;
  margin: 15px 0;
}

.edit-actions {
  display: flex;
  gap: 10px;
}

/* Close (X) button */
#closeSongEdit {
  position: absolute;
  top: 8px;
  right: 10px;

  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

#closeSongEdit:hover {
  color: #ff6666;
}

/* Make parent relative */
.song-edit-box {
  position: relative;
}

.gp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* ---------- Overlay Window ---------- */
.gp-overlay-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    height: 70vh;
    border-radius: 10px;
    position: relative;

    /* ✅ stack image + text vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    /* ✅ enable scrolling when content is tall */
    overflow-y: auto;

    /* optional padding */
    padding: 20px 10px 30px;
}

/* ---------- Image ---------- */
.gp-overlay-content img {
    display: block;
    max-width: 90%;
    height: auto;
    margin-top: 20px;
}

/* ---------- THANK YOU text ---------- */
.gp-thankyou {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

/* ---------- Close Button ---------- */
.gp-overlay-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

.gp-overlay-close:hover {
    color: #e74c3c;
}

.featured_img {
width: 100%;
height: 424px;
}

.featured_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 70% 45%;
}

.featured-image-caption {
font-size: 10px;
padding: 0;
margin-top: 0px;
}

@media (max-width: 600px) {
.featured_img {
display: none;
}
}

/* ================= EMAIL POPUP ================= */

.email-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.email-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.email-box h3 {
    margin-top: 0;
}

.email-box input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.email-box button {
    padding: 10px 15px;
    background: #1c3470;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.email-box button:hover {
    background: #dc6360;
}

.email-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   PLAYLIST PROMPT
========================= */
.playlist-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #1c3470;
    color: #fff;
    padding: 18px 30px;

    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999999;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-prompt.show {
    opacity: 1;
}

.playlist-prompt.error {
    background: #dc6360;
}
