html {
scroll-behavior: smooth;
}

.letter-group {
margin-bottom: 40px;
}

.letter-heading {
font-size: 32px;
color: #abcaea;
}

.fav-list {
list-style: none;
padding: 0;
margin-top: 15px;
margin-bottom: 30px;
}

.fav-list li {
padding: 12px 3px 0px 0px;
line-height: 1.4;
border-bottom: 1px solid var(--nv-border);
}

.fav-list li:last-child {
border-bottom: none;
}

.fav-item {
display: block;
margin-bottom: 12px;
}

.fav-item a.song-link {
display: inline-block;
font-size: 18px;
font-weight: 500;
color: #ffffff;
text-decoration: none;
line-height: 1.4;
}

.song-icons {
    display: block;
    align-items: center;
    gap: 0;              /* equal distance between items */
    margin-top: 4px;
}

/* icon links */
.song-icons a {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* icons themselves */
.song-icons svg {
    position: relative;
    width: 20px;
    height: 20px;
    top: 1px;
}

/* vertical separator (CSS-based |) */
.song-icons a:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: #999;
    font-weight: 400;
}

@media (max-width: 768px) {
    .song-icons .project {
        display: none;
    }
}


.letter-heading {
font-size: 42px;
color: var(--nv-songlist-letter-heading);
font-weight: bold;

}

.alphabet-nav {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 25px;
margin-top: 15px;
justify-content: center;
}

.letter-box {
display: inline-block;
width: 60px;
height: 60px;
text-align: center;
line-height: 58px;
border: 1px solid var(--nv-songlist-nav-letter-border);
border-radius: 1px;
font-weight: normal;
font-size: 22px;
text-decoration: none;
}

.letter-box.active {
background: var(--nv-songlist-nav-letter-active);
color: var(--nv-songlist-nav-letter-text-active);
cursor: pointer;
transition: background-color 0.2s ease;
}

.letter-box.active:hover {
background-color: var(--nv-songlist-nav-letter-active-hover);
}

.letter-box.inactive {
background: var(--nv-songlist-nav-letter-inactive);
color: var(--nv-songlist-nav-letter-text-inactive);
cursor: default;
}

.back-to-top {
display: inline-block;
margin-top: 10px;
font-size: 14px;
color: var(--nv-link);
text-decoration: none;
}

.back-to-top:hover {
text-decoration: underline;
}

@media (max-width: 768px) {
.letter-box {
width: 60px;
height: 60px;
font-size: 30px;
line-height: 60px;
}
}

.below {
    display: flex;
    justify-content: space-between; /* left + right */
    align-items: center; /* vertical alignment */
    width: 100%;
}

/* Overlay background */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Popup box */
.popup {
    background: var(--nv-comment-form-bg);
    max-width: 520px;
    width: 90%;
    padding: 20px 22px;
    border: 1px solid var(--nv-comment-form-border);
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.popup h4 {
margin: 0 0 10px 0 !important;
}

/* Close button */
.close-btn {
    position: relative;
    top: -15px;
    right: -220px !important;
    border: none;
    margin: 0;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--nv-text)
}

.close-btn:hover {
    background: none;
}

/* Message styles */
.message.success {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
}

.message.error {
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 6px;
}

/* Form */
.comment-form {
margin: 0;
}
.comment-form input,
.comment-form textarea,
.comment-form select {
    width: 100%;
    margin: 8px 0;
    padding: 8px;
}

.comment-form button {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
}

/* Animation */
@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#commentMessage {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

#commentMessage.success {
    background: #d4edda;
    color: #155724;
}

#commentMessage.error {
    background: #f8d7da;
    color: #721c24;
}

.playlist-msg{
position:fixed;
bottom:30px;
left:50%;
transform:translateX(-50%);
background:#1c3470;
color:#fff;
padding:10px 16px;
border-radius:6px;
font-size:14px;
z-index:9999;
opacity:0;
transition:0.3s;
}

.playlist-msg.show{
opacity:1;
}

.playlist-msg.error{
background:#c0392b;
}

.hidden{
display:none;
}
