.song-community { min-width: 0; margin-top: 1.5rem; padding: 1rem; background: #171713; border: 1px solid rgba(195, 190, 160, .18); color: var(--paper, #ede8d8); }
.community-shell { width: 100%; max-width: 940px; margin: 0 auto; }
.song-community .eyebrow { margin: 0 0 .35rem; color: var(--olive-light, #a4a17a); font-size: .62rem; letter-spacing: .13em; font-weight: 700; }
.community-heading-row { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.community-heading-row > div { min-width: 0; }
.details-grid .song-community .community-heading-row h2 { margin: .1rem 0 .2rem; font-family: inherit; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; overflow-wrap: anywhere; }
.community-heading-row p { margin: 0; color: #c1bdad; font-size: .82rem; }
.song-community .button { min-height: 2.2rem; max-width: 100%; padding: .45rem .55rem; font-size: .7rem; letter-spacing: .04em; white-space: normal; overflow-wrap: anywhere; }
.community-heading-row .button { padding: .5rem .65rem; }
.community-read-note { margin: .55rem 0 .7rem; color: #aaa695; font-size: .78rem; }
.song-community button, .song-community input, .song-community textarea { font: inherit; }
.song-community button { cursor: pointer; }
.song-community button:focus-visible, .song-community input:focus-visible, .song-community textarea:focus-visible { outline: 2px solid #b4ae72; outline-offset: 3px; }
.community-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .75rem 0; padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.community-toolbar > .button { padding: .45rem .55rem; }
.community-toggle, .community-consent { display: flex; align-items: center; gap: .55rem; color: #d2cebf; font-size: .76rem; }
.community-toggle { position: relative; max-width: 100%; cursor: pointer; }
.community-toggle input[data-both] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.community-switch-track { flex: 0 0 2.15rem; width: 2.15rem; height: 1.2rem; padding: 2px; box-sizing: border-box; border-radius: 99px; background: #555345; transition: background .15s ease; }
.community-switch-track > span { display: block; width: .9rem; height: .9rem; border-radius: 50%; background: #ede8d8; transition: transform .15s ease; }
.community-toggle input[data-both]:checked + .community-switch-track { background: #8b875b; }
.community-toggle input[data-both]:checked + .community-switch-track > span { transform: translateX(.95rem); }
.community-toggle input[data-both]:focus-visible + .community-switch-track { outline: 2px solid #b4ae72; outline-offset: 3px; }
.community-toggle input, .community-consent input { accent-color: #a19b68; margin-top: .25rem; }
.community-text-button { border: 0; padding: .45rem .2rem; background: transparent; color: #c1bb83; text-decoration: underline; text-underline-offset: .2em; }
.community-compose, .community-auth, .community-profile { margin: .85rem 0; padding: .8rem; border: 1px solid rgba(189,184,146,.25); background: #201f19; }
.song-community label { display: grid; gap: .45rem; margin: .9rem 0; color: #d3cfbf; }
.song-community input:not([type=checkbox]):not([type=file]):not(.community-honeypot), .song-community textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: .6rem .65rem; border: 1px solid #555345; border-radius: 2px; background: #11110e; color: #f2eedf; }
.song-community textarea { resize: vertical; }
.song-community select { max-width: 260px; padding: .65rem; border: 1px solid #555345; border-radius: 2px; background: #11110e; color: #f2eedf; font: inherit; }
.song-community input[type="file"], .song-community select { box-sizing: border-box; max-width: 100%; }
.community-notice { color: #aaa695; font-size: .72rem; line-height: 1.5; max-width: 75ch; overflow-wrap: anywhere; }
.community-consent, .song-community .community-toggle { display: flex !important; }
.community-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.community-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.community-status { min-height: 1.3em; color: #c8c29a; }
.community-feed { display: grid; gap: 1rem; }
.community-thread, .community-comment { min-width: 0; }
.community-thread { padding: .75rem; background: #201f1a; border-left: 2px solid #77764f; }
.community-comment { padding: .65rem 0; }
.community-author { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: #ede8d8; }
.community-author img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.community-meta { color: #aaa695; font-size: .76rem; }
.community-version, .community-pending { display: inline-block; padding: .16rem .4rem; color: #d1cb94; border: 1px solid #666347; font-size: .65rem; letter-spacing: .1em; }
.community-language { color: #b9b5a8; font-size: .72rem; }
.community-artist { color: #c4bd80; font-size: .65rem; letter-spacing: .12em; }
.community-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #e1ddcf; line-height: 1.5; }
.community-quote { margin: .8rem 0; padding: .5rem .85rem; border-left: 2px solid #89845b; color: #c6c1b1; background: rgba(255,255,255,.035); white-space: pre-wrap; }
.community-quote p { margin: .35rem 0; }
.community-quote-label { color: #aaa476; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.community-comment-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.community-replies { margin: .4rem 0 0 1.2rem; padding-left: 1rem; border-left: 1px solid #514f40; }
.community-reply { font-size: .94rem; }
.community-deleted, .community-empty { color: #aaa695; font-style: italic; }
.community-translation { margin: .6rem 0; padding: .65rem .8rem; background: #29281f; color: #d3cfbf; }
.community-translation p { white-space: pre-wrap; }
.community-translation a { color: #d1cb94; }
.community-more { display: block; margin: 1.4rem auto; }
.community-privacy { margin-top: .8rem; color: #aaa695; font-size: .76rem; }
.community-privacy summary { width: fit-content; color: #c1bb83; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.community-privacy .community-notice { margin-bottom: 0; }
.community-lyric-hint { margin-top: 1rem; color: #aaa695; font-size: .76rem; }
.community-profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.community-profile img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-top: .7rem; }
.community-profile img[hidden] { display: none; }
.community-heading-row [hidden], .song-community [hidden] { display: none !important; }
@media (max-width: 760px) { .song-community { margin-top: 1.5rem; } .community-heading-row { gap: .55rem; } .community-profile { gap: .4rem; } .community-replies { margin-left: .3rem; padding-left: .7rem; } }
