#comments {
    scroll-margin-top: 100px;
}

.lyrics-bg-container {
    background: transparent;
}

.lyrics-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.lyrics-hero-bg {
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    bottom: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(24px);
    opacity: 0.7;
}

.lyrics-hero-bg::before {
    content: "";
    position: absolute;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    inset: 0;
}

.lyrics-hero-content {
    min-height: 190px;
    position: relative;
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.lyrics-header-left {
    display: flex;
    flex-direction: column;
}

.lyrics-info {
    margin-bottom: 1rem;
}

.lyrics-title {
    font-size: 1.5rem;
    overflow-wrap: break-word;
    line-height: 1.167;
}

.lyrics-title span,
.lyrics-artist-romaji {
    color: rgba(226, 232, 240, 0.75);
}

.lyrics-artists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.lyrics-artist-wrapper {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding-left: 6px;
    padding-right: 10px;
    border-radius: 50px;
    height: 29px;
}

.lyrics-artist-wrapper:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lyrics-artist-avatar {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #cbd5e1;
}

.lyrics-artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lyrics-artist {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.lyrics-credits {
    margin-top: auto;
    font-family: Arial, Helvetica, sans-serif;
}

.lyrics-credits a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s;
}

.lyrics-credits a:hover {
    color: #e2e8f0;
}

.credits-series {
    font-size: 12px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.credits-series-romaji {
    display: block;
    color: rgba(226, 232, 240, 0.75);
    margin-top: 2px;
    font-style: italic;
}

.credits-list {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.credits-list b {
    font-weight: 600;
}

.lyrics-header-right {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 3px -3px 0 #999;
}

.lyrics-header-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lyrics-btn-wrapper {
    padding: 10px;
    background: #E5E5E5;
    display: flex;
    align-items: center;
    user-select: none;
    flex-wrap: wrap;
    gap: 8px
}

.btn {
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    margin: 0;
    padding: 6px 4px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 4px;
    color: #fff;
    background: #1E88E5;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #1976D2;
}

.btn:active {
    background: #0D47A1;
}

.btn.is-disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.lyrics-btn-wrapper .btn span {
    line-height: 16px;
}

.lyrics-video-section {
    background: #0f172a;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-margin-top: 80px;
}

.lyrics-video-section.open {
    max-height: 2000px;
}

.related-videos {
    padding: 16px 8px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

.related-video-item {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s;
}

.related-video-item .video-thumb {
    width: 140px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #334155;
}

.related-video-item .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.related-video-item:hover .video-thumb img {
    opacity: 0.8;
}

.related-video-item .video-title {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-video-player-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: center;
}

.main-video-player {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.main-video-player iframe {
    width: 100%;
    height: 100%;
}

.close-video-btn {
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    width: max-content;
}

.close-video-btn:hover {
    background: rgba(200, 0, 0, 0.8);
}

.close-video-btn svg {
    width: 14px;
    height: 14px;
}

.lyrics-section {
    border: 1px solid #ddd;
    border-top: none;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.lyrics-actions {
    display: flex;
    gap: 8px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    user-select: none;
}

.ly-act-wrapper-left {
    display: flex;
    gap: 4px;
    width: 45%;
}

.ly-act-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 5px;
    background: #fff;
    transition: all 0.2s ease;
}

/* Bookmark - Yellow/Gold */
.ly-act-btn.ly-bookmark:hover,
.ly-act-btn.ly-bookmark.is-active:hover {
    background: #FFF9C4;
    border-color: #FBC02D;
}

.ly-act-btn.ly-bookmark:hover svg,
.ly-act-btn.ly-bookmark.is-active:hover svg {
    color: #F57F17;
}

.ly-act-btn.ly-bookmark.is-active svg,
.mobile-act-btn-bookmark.is-active svg {
    color: #065fd4;
}

.ly-act-btn.ly-bookmark.is-active {
    background: #e8f0fe;
    border-color: #065fd4;
}

.ly-bookmark svg,
.mobile-act-btn-bookmark svg {
    transition: transform 0.2s ease, color 0.2s ease;
}

.ly-bookmark.is-active svg,
.mobile-act-btn-bookmark.is-active svg {
    transform: scale(1.1);
}

/* Comment - Green */
.ly-act-btn.ly-comment:hover {
    background: #C8E6C9;
    border-color: #66BB6A;
}

.ly-act-btn.ly-comment:hover svg {
    color: #2E7D32;
}

/* Share - Blue */
.ly-act-btn.ly-share:hover {
    background: #BBDEFB;
    border-color: #42A5F5;
}

.ly-act-btn.ly-share:hover svg {
    color: #1565C0;
}

.ly-act-btn svg {
    width: 24px;
    height: 24px;
    color: #666;
    transition: color 0.2s ease;
}

.ly-act-wrapper-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #eeeeee;
    padding: 5px;
    text-transform: uppercase;
    font-size: 12px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    width: 100%;
}

.ly-btn-wrapper {
    background: #fff;
    border-radius: 4px;
    flex: 1;
    padding: 8px 10px;
}

.ly-btn-label {
    background: #1E88E5;
    border-radius: 4px;
    margin-bottom: 5px;
    padding: 2px 0;
    line-height: 1.5;
}

.ly-btn-content {
    display: flex;
    gap: 4px;
    color: #131313;
}

.ly-btn {
    background: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    flex: 1;
    cursor: pointer;
    line-height: 1.3;
    margin: 0;
    font-size: 0.813rem;
}

.lyrics-content {
    padding: 20px 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #131313;
}

.lyrics-content ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.line-wrapper {
    display: flex;
    line-height: 1.6;
    margin-bottom: 4px;
}

.line-number {
    opacity: 0.5;
    font-size: 65%;
    min-width: 30px;
    text-align: left;
    user-select: none;
    padding-top: 6px;
    flex-shrink: 0;
}

.line-number.kanji-number {
    margin-top: 19px;
    /* Adjust based on furigana height (rt font-size + margins) */
}

.line-text {
    line-height: 1.6;
    flex: 1;
    user-select: text;
}

[data-lyrics] {
    display: none;
}

[data-lyrics][data-active] {
    display: block;
}

button[data-target].active,
[data-font-controls] button.active {
    background: #fff;
    color: rgba(25, 118, 210, 0.9);
    border: 1px solid rgba(25, 118, 210, 0.9);
}

#kanji {
    font-family: "メイリオ", "ヒラギノ角ゴ Pro W3", "ＭＳ Ｐゴシック", sans-serif;
    font-size: 17px;
    color: #343330;
    letter-spacing: 1px;
}

#kanji ruby {
    ruby-align: start;
    letter-spacing: 2px;
}

#kanji rt {
    ruby-align: center;
    font-size: 11px;
    color: #999999;
    margin-top: 8px;
    margin-bottom: 3px;
    margin-right: 4px;
    letter-spacing: 0;
}

.furigana-off ruby rt {
    visibility: hidden;
}

/* Placeholder for missing lyrics */
.no-lyrics-placeholder {
    padding: 30px 20px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.no-lyrics-placeholder:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.no-lyrics-placeholder .placeholder-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background-color: #f0f7ff;
    background-image: radial-gradient(#d1e4ff 1px, transparent 1px);
    background-size: 16px 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 40px rgba(37, 99, 235, 0.05);
}

.vinyl-record {
    font-size: 60px;
    display: block;
    color: #93c5fd;
    animation: spin 8s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.1));
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.no-lyrics-placeholder .placeholder-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-lyrics-placeholder p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.no-lyrics-placeholder p.msg-jp {
    font-size: 17px;
    color: #334155;
    font-weight: 600;
}

.no-lyrics-placeholder p.msg-en {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: 14px;
}

.no-lyrics-placeholder p.msg-id {
    font-family: Arial, Helvetica, sans-serif;
    color: #475569;
}

.no-lyrics-placeholder button {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    border: none;
    background: transparent;
    padding: 0;
    line-height: normal;
    cursor: pointer;
}

.no-lyrics-placeholder button:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.author-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.author-heading span {
    line-height: 1.2;
}

.author-profil-wrapper {
    border: 1px dashed #c4c4c4;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 10px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.author-role-wrapper {
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
}

.author-role {
    font-size: 12px;
    font-weight: 600;
    color: #2563EB;
    background: #EFF6FF;
    padding: 2px 8px;
    margin: 0 4px 4px 0;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-bio {
    font-size: 14px;
    color: #131313;
    line-height: 1.5;
}

.author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    color: #94a3b8;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
}

.social-icon:hover {
    color: #0f172a;
    transform: translateY(-2px);
}

.lyrics-version-switcher {
    padding: 16px 10px;
}

.lyrics-version-switcher-inner {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
}

.lyrics-version-switcher p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
    line-height: 1.4;
}

.lyrics-version-switcher p:last-child {
    margin-bottom: 0;
}

.lyrics-version-switcher i {
    font-size: 0.8rem;
    margin-right: 6px;
}

.lyrics-version-switcher a {
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.lyrics-version-switcher a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.related-lyrics {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.related-heading-wrapper {
    display: flex;
    padding: 16px 3px 10px 10px;
}

.related-heading-line {
    background: #0066cc;
    width: 7px;
    margin-right: 10px;
    border-radius: 3px;
}

.related-heading {
    color: #131313;
}

.related-heading h4 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    line-height: 20px;
}

.related-heading p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 16px;
}

.related-wrapper {
    margin: 10px;
    padding: 16px 10px 10px;
    background: #F5F5F5;
    border-radius: 5px;
}

.related-content {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.related-item {
    flex-shrink: 0;
    list-style-type: none;
}

.related-item-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    width: 110px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item-link:hover {
    border-color: #153448;
}

.related-item-image {
    width: 100%;
    height: 104px;
    border-radius: 5px;
    overflow: hidden;
}

.related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: #153448;
    color: #fff;
    padding: 4px 3px;
    line-height: 1.4;
    border-radius: 5px;
    height: 44px;
}

.related-item-btn {
    font-size: 12px;
    font-weight: 500;
    color: #153448;
    text-align: center;
    padding: 5px 3px;
    border: 1px solid #153448;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.related-item-link:hover .related-item-btn {
    background: #153448;
    color: #fff;
}

.sidebar-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 10px 10px;
    position: relative;
    transition: all 0.3s ease;
}

.body-sidebar.is-sealed .sidebar-wrapper,
.related-lyrics.is-sealed,
.comments-area.is-sealed {
    position: relative;
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
}

.body-sidebar.is-sealed .sidebar-wrapper::after,
.related-lyrics.is-sealed::after,
.comments-area.is-sealed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(203, 213, 225, 0.65);
    backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: 8px;
}

.body-sidebar.is-sealed .sidebar-wrapper::before,
.related-lyrics.is-sealed::before,
.comments-area.is-sealed::before {
    content: "\f023";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #64748b;
    z-index: 11;
    opacity: 0.8;
}

.sidebar-heading {
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    line-height: 1.2;
    color: #131313;
    margin-bottom: 1rem;
}

.sidebar-heading-line {
    background: #0066cc;
    width: 7px;
    margin-right: 10px;
    border-radius: 3px;
}

.sidebar-sticky-wrapper {
    height: 100%;
}

.sidebar-sticky {
    position: sticky;
    z-index: 100;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-lyrics {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
    background: rgba(0, 0, 0, 0.06);
    padding: 1rem;
    scrollbar-width: thin;
}

@media (max-width: 992px) {

    .lyrics-section,
    .related-lyrics,
    .sidebar-wrapper {
        border: none;
        border-radius: 0;
    }

    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .lyrics-hero-content {
        min-height: 226px;
    }

    .lyrics-title {
        font-size: 1.25rem;
    }

    .lyrics-header-right {
        width: 80px;
        height: 80px;
    }

    .lyrics-btn-wrapper {
        background: #fff;
        padding: 8px;
    }

    .lyrics-btn-wrapper .btn {
        color: #131313;
        background: transparent;
        border-right: 2px solid #c4c4c4;
        border-radius: 0;
        padding: 1px 4px;
    }

    .lyrics-btn-wrapper .btn:last-child {
        border-right: none;
    }

    .mobile-action-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99998;
        width: 100%;
    }

    .mobile-action-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0px 20px 20px;
        padding: 12px;
        background: rgb(255, 255, 255);
        border-radius: 24px;
        box-shadow: rgba(91, 94, 105, 0.15) 0px 4px 4px -2px, rgba(36, 40, 47, 0.25) 0px 4px 80px -8px, rgba(154, 161, 177, 0.15) 0px 0px 20px 4px;
        position: relative;
        z-index: 99;
    }

    .mobile-action-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mobile-action-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-act-btn-bookmark,
    .mobile-act-btn-comment {
        padding: 0;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-act-btn-bookmark svg,
    .mobile-act-btn-comment svg {
        width: 24px;
        height: 24px;
        color: rgb(13, 13, 13);
    }

    .mobile-act-btn-bookmark {
        margin-left: 4px;
    }

    .mobile-comment-count {
        font-size: 12px;
        color: rgb(13, 13, 13);
        font-weight: 500;
        font-family: 'Heebo', sans-serif;
    }

    .mobile-share-btn {
        font-size: 19px;
        line-height: 20px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
    }

    .mobile-share-btn i {
        color: #fff;
        line-height: 16px;
    }

    .mobile-player-container .main-video-player {
        border-radius: 0;
    }

    .mobile-player-container .close-video-btn {
        width: 100%;
        border-radius: 0;
    }

    .lyrics-actions {
        padding: 0;
    }

    .ly-act-wrapper-left {
        display: none;
    }

    .ly-btn-wrapper {
        padding: 8px 5px;
    }

    .lyrics-content {
        padding: 16px 10px;
    }
}

/* Contribution Form & Editor Styling */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.contribution-form-wrapper h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
}

.line-count-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.line-count-wrapper.matching {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.line-count-wrapper.not-matching {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.line-count-wrapper .label {
    opacity: 0.7;
    font-weight: 500;
}

.contribution-form-wrapper p {
    margin: 0 0 16px 0;
    color: #64748b;
    font-size: 14px;
}

.dash-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.dash-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
}

.dash-btn-submit:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
}

.dash-btn-submit.loading .btn-text {
    display: none;
}

.dash-btn-submit.loading .btn-loader {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spindash 0.8s linear infinite;
}

.dash-btn-cancel {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.dash-btn-cancel:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

@keyframes spindash {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.938rem;
    font-weight: 500;
    display: none;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    line-height: 1.5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-message i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-message.success {
    background-color: rgba(240, 253, 244, 0.9);
    color: #166534;
    border: 1px solid rgba(187, 247, 208, 0.8);
}

.form-message.error {
    background-color: rgba(254, 242, 242, 0.9);
    color: #991b1b;
    border: 1px solid rgba(254, 202, 202, 0.8);
}

/* CodeMirror Custom Styling */
.lyrics-content .CodeMirror {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    height: auto !important;
    min-height: 150px !important;
}

.lyrics-content .CodeMirror-focused {
    background: #fff !important;
    outline: none !important;
}

.lyrics-content .CodeMirror-gutters {
    background: #f0f0f0 !important;
    border-right: 1px solid #ddd !important;
    left: 0 !important;
    height: 100% !important;
    min-height: 150px !important;
}

.lyrics-content .CodeMirror-linenumber {
    color: #999 !important;
    padding: 0 8px 0 5px !important;
    min-width: 35px !important;
    text-align: right !important;
    font-size: 11px !important;
}

.lyrics-content .CodeMirror-scroll {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lyrics-content .CodeMirror-sizer {
    margin: 0 0 0 50px !important;
    padding: 0 !important;
    min-height: 150px !important;
}

.lyrics-content .CodeMirror-vscrollbar,
.lyrics-content .CodeMirror-hscrollbar,
.lyrics-content .CodeMirror-scrollbar-filler {
    display: none !important;
}

.lyrics-content .CodeMirror pre {
    overflow: visible !important;
}

.lyrics-content .CodeMirror-lines {
    padding: 4px 0 !important;
}

#lyrics-editor {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
}

/* Author Edit Button Styling */
.edit-contribution-wrapper {
    margin: 15px 0 25px;
    display: flex;
}

.author-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    background: #f3f4f6;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-edit-btn:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.author-edit-btn svg {
    width: 14px;
    height: 14px;
}