/* ========================================================
   공통 (기존 스킨과 동일하게 유지되는 공용 규칙)
   ======================================================== */
body,
input,
textarea,
select,
button {
    font-family: 'DungGeunMo', sans-serif !important;
}

input,
textarea,
select {
    font-family: 'Pretendard Light', sans-serif !important;
    font-weight: 300;
}

.log20_empty {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

#bo_v_top.view_buttons_inline {
    width: 100%;
    margin: 0 auto 5px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px 15px 0px;
    box-sizing: border-box;
}

#bo_list {
    margin: 0 auto;
}

@media (max-width: 768px) {
.btn_bo_user {
        justify-content: center;
        width: 100%;
    }
}

.btn_bo_user {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: end;
    grid-column: 3;
}

.btn_bo_user li {
    margin: 0;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn:hover,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--btn-primary-radius);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    font: inherit;
    line-height: 1.5;
    appearance: none;
    vertical-align: middle;
}

.btn:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

a.btn.btn_01,
a.btn.btn_02,
.btn_01,
.btn_02 {
    border: 1px solid transparent !important;
    height: 26px;
}

.btn_admin {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 15px;
}

.btn_admin:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

/* ========================================================
   BGM 게시판
   ======================================================== */
.log20_bgm_wrap {
    width: 100%;
    max-width: 850px;
    height: auto;
    max-height: min(900px, 100vh);
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (max-width: 700px) {
    .log20_bgm_wrap {
        max-height: 100vh;
        padding: 0 4px;
    }
}

.log20_bgm_wrap::-webkit-scrollbar {
    display: none;
}

.log20_bgm_top_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* 모바일에서 새 글 작성/관리자 버튼 + 게시글 목록(필름스트립)을 접었다 펼치는 버튼.
   데스크톱에서는 항상 숨김 (아래쪽 모바일 미디어쿼리에서만 보이게 함) */
.log20_bgm_menu_toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 60;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ---- 게시글 내부 곡 바로 추가 ---- */
.log20_bgm_quickadd_panel {
    margin-top: 16px;
}

.log20_bgm_panel.log20_bgm_quickadd_panel,
.log20_bgm_view_player .log20_bgm_quickadd_panel,
.log20_bgm_upnext_panel .log20_bgm_quickadd_panel {
    padding-top: 14px;
    border-top: 1px solid rgba(60, 90, 110, 0.14);
}

.log20_bgm_quickadd_form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

.log20_bgm_quickadd_form input {
    padding: 0 6px 0 9px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 9pt;
    background: #ffffff;
    color: #3c4b58;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.log20_bgm_quickadd_form input:focus,
.log20_bgm_quickadd_form input:focus-visible {
    outline: none;
    border: 1px solid transparent;
    box-shadow: none;
}

/* 제목/가수/태그 입력칸: 다른 전역 스타일(테마 공용 CSS)보다 우선하도록 id로 못박아
   클릭(포커스) 시 테두리·글자색·배경이 흔들리지 않게 함.
   -webkit-tap-highlight-color는 모바일에서 탭할 때 잠깐 나타났다 사라지는 터치 하이라이트(테두리처럼 보임)를 없앤다.
   animation/transition을 꺼서, 다른 전역 스타일이 포커스 시 색을 애니메이션으로 바꾸려는 것도 막는다. */
#bgmLqaTitle,
#bgmLqaArtist,
#bgmLqaTags,
#bgmQaTitle,
#bgmQaArtist,
#bgmQaTags {
    -webkit-tap-highlight-color: transparent !important;
    animation: none !important;
    transition: none !important;
}

/* 목록 페이지(.log20_bgm_content_grid 안) 곡 추가 입력칸: 테마 색상 유지 */
#bgmLqaTitle,
#bgmLqaArtist,
#bgmLqaTags,
#bgmLqaTitle:focus, #bgmLqaTitle:focus-visible, #bgmLqaTitle:active,
#bgmLqaArtist:focus, #bgmLqaArtist:focus-visible, #bgmLqaArtist:active,
#bgmLqaTags:focus, #bgmLqaTags:focus-visible, #bgmLqaTags:active {
    outline: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: var(--content-font-color) !important;
    background: var(--primary-color) !important;
}

/* 상세 페이지 곡 추가 입력칸: 흰 배경 + 고정 글자색 유지 */
#bgmQaTitle,
#bgmQaArtist,
#bgmQaTags,
#bgmQaTitle:focus, #bgmQaTitle:focus-visible, #bgmQaTitle:active,
#bgmQaArtist:focus, #bgmQaArtist:focus-visible, #bgmQaArtist:active,
#bgmQaTags:focus, #bgmQaTags:focus-visible, #bgmQaTags:active {
    outline: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: #3c4b58 !important;
    background: #ffffff !important;
}

.log20_bgm_quickadd_form input:nth-of-type(1) {
    flex: 1 1 56px;
}

.log20_bgm_quickadd_form input:nth-of-type(2) {
    flex: 1 1 56px;
}

.log20_bgm_quickadd_form input:nth-of-type(3) {
}

.log20_bgm_quickadd_form input:nth-of-type(4) {
    flex: 1 1 56px;
}

.log20_bgm_quickadd_form button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
    padding: 0 10px;
    height: 24px;
    box-sizing: border-box;
    line-height: 1;
}

.log20_bgm_quickadd_divider_btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 0;
    background: none;
    border: none;
    color: #93a4b1;
    font-size: 11px;
    cursor: pointer;
}

.log20_bgm_quickadd_divider_btn:hover {
    color: #4a6f8c;
}

/* ---- 상단 필름스트립(전체 목록 레코드판) ---- */
.log20_bgm_filmstrip_wrap {
    position: relative;
    margin-bottom: 20px;
    padding: 16px 0 4px;
}

.log20_bgm_filmstrip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    /* 좌우 여백을 넉넉히 둬서 맨 처음/마지막 게시글도 화면 정중앙까지 스크롤될 수 있게 한다 */
    padding: 16px calc(50% - 28px) 12px;
    /* 선택된 게시글이 커지고 이전 게시글이 작아지는 애니메이션이 겹치는 동안
       한쪽이 다른 쪽보다 먼저 작아지면 줄의 높이가 잠깐 줄었다 늘어나면서
       아래(.log20_bgm_content_grid)가 위로 들렸다 내려오는 것처럼 보인다.
       높이를 고정해서 이 흔들림을 없앤다. */
    height: 144px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 스크롤 시 양 끝이 뚝 잘려 보이지 않도록 가장자리를 그라데이션으로 자연스럽게 페이드아웃 */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 46px, #000 calc(100% - 46px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 46px, #000 calc(100% - 46px), transparent 100%);
}

.log20_bgm_filmstrip::-webkit-scrollbar {
    display: none;
}

.log20_bgm_fs_item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    opacity: .55;
    /* 크기는 실제 width/height로 바뀌므로 레이아웃이 알아서 여유 공간을 잡아줘 잘리지 않고,
       transition만으로 부드럽게 커지고 작아진다 */
    transition: opacity .3s ease;
}

.log20_bgm_fs_item.now-playing {
    opacity: 1;
}

.log20_bgm_fs_vinyl {
    width: 30px;
    height: 30px;
    border-radius: 0;
    box-sizing: border-box;
    background:var(--secondary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width .3s ease, height .3s ease, border-color .2s ease, box-shadow .2s ease;
}

.log20_bgm_fs_vinyl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 지금 재생 중인 게시글만 크게, 나머지는 계속 작은 상태로 남는다 */
.log20_bgm_fs_item.now-playing .log20_bgm_fs_vinyl {
    width: 70px;
    height: 70px;
    /* border: 3px solid 1px solid (var(--secondary-color)); */
    box-shadow: 0 0 0 2px var(--accent-color), 0 10px 24px var(--accent-color);
}

.log20_bgm_fs_category {
    font-size: 10px;
    color: var(--accent-color);
    background: var(--secondary-color);
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.log20_bgm_fs_title {
    font-size: 10px;
    color: #93a4b1;
    width: 64px;
    text-align: center;
    line-height: 1.3;
    height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease, font-weight .2s ease;
}

.log20_bgm_fs_item.now-playing .log20_bgm_fs_title {
    color: var(--btn-primary-text);
    font-weight: 700;
}

/* ---- 메인 2단 그리드 ---- */
.log20_bgm_content_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0px;
    background: #eef2f6;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 820px) {
.log20_bgm_content_grid {
        grid-template-columns: 1fr;
    }
}

.log20_bgm_panel {
    background: none;
    border: none;
    padding: 22px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ---- 좌측 턴테이블 플레이어 ---- */
.log20_bgm_player_panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.log20_bgm_turntable {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 4px auto 16px;
}

.log20_bgm_vinyl {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background:var(--primary-color);
    box-shadow: 0 1px 24px var(--primary-color), inset 0 0 0 1px var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bgm-spin 6s linear infinite;
    animation-play-state: paused;
    position: relative;
}

.log20_bgm_vinyl.spin {
    animation-play-state: running;
}

@keyframes bgm-spin {
    to { transform: rotate(360deg); }
}

.log20_bgm_label {
    width: 62%;
    height: 62%;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_bgm_label img {
    width: 100%;
    height: 100%;
    object-fit: none;
    display: block;
    margin: 0;
    padding: 0;
}

.log20_bgm_placeholder {
    font-size: 11px;
    color: #888;
    padding: 6px;
}

.log20_bgm_post_badge_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* 분류 배지: PC에서는 필름스트립 쪽에만 표시하고, 여기(게시글 배지 옆)는
   모바일 화면에서만 아래 @media (max-width: 480px) 규칙으로 보이게 한다 */
.log20_bgm_post_category_badge {
    display: none;
}

.log20_bgm_post_badge {
    font-size: 10px;
    color: var(--secondary-color);
    background: var(--primary-color);
    padding: 3px 10px;
    border-radius: 10px;
    /* 게시글 제목이 길어도 줄바꿈되지 않게 해서 미리보기 높이가 항상 일정하게 유지된다 */
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_bgm_post_edit_btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: none;
    border: none;
    color: #93a4b1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    text-decoration: none;
    flex: 0 0 auto;
}

.log20_bgm_post_edit_btn:hover {
    background: rgba(111, 147, 176, 0.16);
    color: #3f6690;
}

.log20_bgm_video_title {
    font-size: 16px;
    font-weight: 700;
    margin: 2px 0 0;
    line-height: 1.4;
    color: var(--content-font-color);
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.log20_bgm_video_artist {
    font-size: 12px;
    font-weight: 400;
    color: var(--primary-color);
    margin: 2px 0 0;
    height: 30px;
}

/* ---- 재생 시간 바 ---- */
.log20_bgm_progress_row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.log20_bgm_time {
    font-size: 10.5px;
    color: #8a9aa8;
    min-width: 30px;
    text-align: center;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

input[type="range"].log20_bgm_progress_bar,
input[type="range"].log20_bgm_volume_bar {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    background: rgba(60, 90, 110, 0.18);
    cursor: pointer;
    outline: none;
}

input[type="range"].log20_bgm_progress_bar::-webkit-slider-thumb,
input[type="range"].log20_bgm_volume_bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6f93b0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

input[type="range"].log20_bgm_progress_bar::-moz-range-thumb,
input[type="range"].log20_bgm_volume_bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #6f93b0;
    cursor: pointer;
}

input[type="range"].log20_bgm_progress_bar::-moz-range-track,
input[type="range"].log20_bgm_volume_bar::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: transparent;
}

/* ---- 반복/랜덤/볼륨 등 부가 컨트롤 ---- */
.log20_bgm_extra_controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.log20_bgm_mini_btn {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    flex: 0 0 auto;
}

.log20_bgm_mini_btn:hover {
    color: var(--secondary-color);
}

.log20_bgm_mini_btn.active {
    color: var(--secondary-color);
}

.log20_bgm_repeat_one_badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: inherit;
    font-size: 8px;
    font-weight: 800;
    line-height: 12px;
    text-align: center;
}

.log20_bgm_volume_wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* 볼륨 슬라이더를 버튼 오른쪽으로 가로로 펼쳐서 보여준다.
   position:absolute라서 옆 아이콘(반복/랜덤 버튼 등)이나 이전곡/재생/다음곡 버튼을 밀지 않는다. */
.log20_bgm_volume_wrap .log20_bgm_volume_bar {
    position: absolute;
    top: 50%;
    left: 100%;
    margin: 0 0 0 8px;
    width: 70px;
    height: 4px;
    transform-origin: left center;
    transform: translateY(-50%) scaleX(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 5;
}

.log20_bgm_volume_wrap.open .log20_bgm_volume_bar {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
    pointer-events: auto;
}

.log20_bgm_controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log20_bgm_ctrl_btn {
    background: var(--accent-color);
    border: none;
    color: var(--btn-accent-text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
}

.log20_bgm_ctrl_btn.main {
    width: 30px;
    height: 30px;
    font-size: 14px;
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
}

.log20_bgm_ctrl_btn:hover {
    filter: brightness(1.15);
}

/* ---- 우측 다음 재생 목록 ---- */
.log20_bgm_view_song_list {
    margin-top: 20px;
    width: 100%;
    text-align: left;
}

.log20_bgm_upnext_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.log20_bgm_upnext_list::-webkit-scrollbar {
    display: none;
}

/* 곡 수가 게시글마다 달라도 미리보기 영역 높이가 항상 같도록 고정 (들썩임 방지) */
.log20_bgm_content_grid .log20_bgm_upnext_list {
    height: 380px;
    max-height: 60vh;
}

/* 목록 페이지 미리보기 곡 리스트만 프리텐다드 폰트로 (아이콘은 자체 폰트를 쓰므로 영향 없음) */
.log20_bgm_panel.log20_bgm_upnext_panel .log20_bgm_upnext_list {
    font-family: 'Pretendard', sans-serif !important;
}

.log20_bgm_up_item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 0px 10px;
    border-radius: 10px;
    cursor: pointer;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.log20_bgm_up_item:hover {
    background: rgba(60, 90, 110, 0.06);
}

.log20_bgm_up_item.active {
    background: rgba(111, 147, 176, 0.14);
    border-color: rgba(111, 147, 176, 0.4);
}

.log20_bgm_mini_vinyl {
    order: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-play-state: paused;
}

.log20_bgm_mini_vinyl.spin {
    animation-play-state: running;
}

.log20_bgm_mini_vinyl img {
    width: 50%;
    height: 50%;
    object-fit: cover;
}

.log20_bgm_up_info {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.log20_bgm_up_title {
    font-size: 13px;
    font-weight: 600;
    color: var(--content-font-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_bgm_up_post {
    font-size: 11px;
    color: #8a9aa8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_bgm_up_tags {
    order: 4;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex: 1 0 100%;
    margin-left: 46px;
    max-width: calc(100% - 46px);
}

.log20_bgm_tag {
    font-size: 10px;
    color: var(--accent-color);
    background: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* 목록 페이지: 태그를 제목 왼쪽에 나란히 표시 */
.log20_bgm_up_title_row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.log20_bgm_up_tags_inline {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}

.log20_bgm_up_title_row .log20_bgm_up_title {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---- 곡 목록 중간에 넣는 구분선 / 내용만 있는 줄 ---- */
.log20_bgm_divider_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 10px;
    cursor: default;
}

.log20_bgm_divider_line {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(60, 90, 110, 0.18);
}

.log20_bgm_divider_text {
    flex: 0 0 auto;
    font-size: 11px;
    color: #8a9aa8;
    white-space: nowrap;
}

.log20_bgm_note_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    cursor: default;
    border-radius: 10px;
    background: rgba(60, 90, 110, 0.05);
}

.log20_bgm_note_text {
    font-size: 12.5px;
    color: #4a5c68;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}

.log20_bgm_up_actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

/* 곡/내용/구분선 순서를 바꾸는 드래그 손잡이 */
.log20_bgm_drag_handle {
    width: 16px;
    flex: 0 0 auto;
    margin-right: 2px;
    color: #93a4b1;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.log20_bgm_drag_handle:hover {
    color: #33414c;
}

.log20_bgm_up_item.dragging,
.log20_bgm_note_item.dragging,
.log20_bgm_divider_item.dragging {
    opacity: .5;
    cursor: grabbing;
}

.log20_bgm_up_actions a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: none;
    border: none;
    color: #93a4b1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
}

.log20_bgm_up_actions a:hover {
    background: rgba(111, 147, 176, 0.16);
    color: #3f6690;
}

.log20_bgm_delete_link:hover {
    background: rgba(214, 88, 88, 0.14);
    color: #c14b4b;
}

/* ---- 목록 페이지 미리보기창(선택된 게시글의 플레이어 + 다음 재생 목록)
       참고 이미지(옅은 하늘빛 파도/하늘 사진)에 맞춰 아주 옅은 하늘색 그라데이션 배경 +
       차분한 스틸블루 포인트 컬러로, 테두리 없이 ---- */
.log20_bgm_content_grid {
    background: transparent;
}

.log20_bgm_content_grid .log20_bgm_panel.log20_bgm_quickadd_panel,
.log20_bgm_content_grid .log20_bgm_upnext_panel .log20_bgm_quickadd_panel {
    border-top: none;
}

.log20_bgm_content_grid .log20_bgm_quickadd_form input {
    border: none;
    background: var(--primary-color);
    color: var(--content-font-color);
}

.log20_bgm_content_grid .btn,
.log20_bgm_content_grid .btn_01,
.log20_bgm_content_grid .btn_02 {
    border: none !important;
    background: var(--secondary-color);
    color: var(--accent-color);
}

.log20_bgm_content_grid .btn:hover,
.log20_bgm_content_grid .btn_01:hover,
.log20_bgm_content_grid .btn_02:hover {
    background: #85a4bd;
    border-color: transparent;
    color: #fbfdff;
}

/* ---- 글쓰기 폼 ---- */
#bo_w_bgm {
    width: 70%;
    margin: 6% auto;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(150, 180, 200, 0.35);
    border-radius: 10px;
    padding: 24px 28px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
#bo_w_bgm {
        width: 92%;
        margin: 6% auto;
        padding: 20px;
    }
}

.log20_bgm_field_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 20px;
}

.log20_bgm_field_grid dt {
    margin-bottom: 6px;
    color: #4a5c68;
    font-size: 13px;
}

/* 곡 제목 + 가수를 같은 줄에 나란히 배치 */
.log20_bgm_field_row {
    display: flex;
    gap: 14px 20px;
}

.log20_bgm_field_half {
    flex: 1 1 0%;
    min-width: 0;
}

@media (max-width: 480px) {
    .log20_bgm_field_row {
        flex-wrap: wrap;
    }

    .log20_bgm_field_half {
        flex: 1 1 100%;
    }
}

.log20_bgm_link_preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.log20_bgm_link_preview img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(150, 180, 200, 0.4);
}

.log20_bgm_link_preview span {
    font-size: 12px;
    color: #7c8fa0;
}

.log20_bgm_form_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 0 0;
}

/* 삭제 버튼: 취소/완료와 헷갈리지 않도록 왼쪽에 따로 떨어뜨리고 경고색을 준다 */
.log20_bgm_delete_btn {
    margin-right: auto;
    color: #c14b4b !important;
    border-color: #e3b6b6 !important;
}

.log20_bgm_delete_btn:hover {
    background: rgba(214, 88, 88, 0.12) !important;
    color: #a63a3a !important;
}

/* ---- 상세보기 ---- */
.log20_bgm_view_article {
    width: 78%;
    max-width: 560px;
    margin: 0 auto 40px auto;
}

@media (max-width: 700px) {
.log20_bgm_view_article {
        width: 92%;
    }
}

.log20_bgm_title {
    margin: 8px 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: #33414c;
    text-align: center;
}

.log20_bgm_view_player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(150, 180, 200, 0.3);
    border-radius: 14px;
    padding: 26px 20px;
}

.log20_bgm_view_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}

/* ---- 페이지네이션 ---- */
.log20_bgm_wrap .pg_wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0;
}
.log20_bgm_wrap .pg_wrap a,
.log20_bgm_wrap .pg_wrap strong,
.log20_bgm_wrap .pg_wrap span.pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #dbe6ee;
    color: #3c4b58;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
}
.log20_bgm_wrap .pg_wrap strong,
.log20_bgm_wrap .pg_wrap span.pg_current {
    background: #6f93b0;
    border-color: transparent;
    color: #fbfdff;
    font-weight: 700;
}

/* 모바일 화면 조정 (이 파일 아래쪽에 둬서, 위의 기본 규칙들보다 항상 나중에 적용되게 한다) */
@media (max-width: 480px) {
    .log20_bgm_filmstrip_wrap {
        margin-bottom: 0;
        padding: 0;
    }

    .log20_bgm_panel {
        padding: 12px 22px 22px 22px;
    }

    .log20_bgm_turntable,
    .log20_bgm_vinyl {
        width: 180px;
        height: 180px;
    }

    .log20_bgm_quickadd_form {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    /* 제목/가수/태그(모두 type="text")는 한 줄에 나란히, 링크와 추가 버튼은 각각
       자기 줄을 통째로 쓰게 한다. order로 순서를 바꿔서, DOM에서는 링크가
       가수와 태그 사이에 있어도 화면에서는 제목·가수·태그가 먼저 한 줄에 모이고
       그 다음 줄에 링크, 그 다음 줄에 버튼이 오게 만든다. */
    .log20_bgm_quickadd_form input[type="text"] {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        box-sizing: border-box;
        order: 0;
    }

    .log20_bgm_quickadd_form input[type="url"] {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
        order: 1;
    }

    .log20_bgm_quickadd_form button {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
        order: 2;
    }

    /* 곡 리스트는 프리텐다드로 바꿨지만, 모바일에서는 곡 제목만 둥근모꼴을 유지한다 */
    .log20_bgm_up_title {
        font-family: 'DungGeunMo', sans-serif !important;
    }

    /* 필름스트립(상단 게시글 레코드판) 모바일 크기 조정 */
    .log20_bgm_filmstrip {
        padding: 15px calc(50% - 28px) 5px;
        height: 80px;
    }

    .log20_bgm_fs_item {
        gap: 2px;
    }

    .log20_bgm_fs_vinyl {
        width: 25px;
        height: 25px;
    }

    .log20_bgm_fs_item.now-playing .log20_bgm_fs_vinyl {
        width: 40px;
        height: 40px;
    }

    /* 게시글 메뉴(필름스트립)를 눌렀을 때 뜨는 리스트에서는 제목 글씨를 숨기고 판(vinyl)만 보여준다 */
    .log20_bgm_fs_title {
        display: none;
    }

    /* 분류 배지도 필름스트립에서는 제목과 함께 숨긴다 (모바일에서는 아래
       재생 영역의 게시글 제목 왼쪽에 따로 띄운다) */
    .log20_bgm_fs_category {
        display: none;
    }

    /* 모바일에서는 필름스트립 대신, 재생 영역(.log20_bgm_player_panel)의
       게시글 제목 왼쪽에 분류를 띄운다. 분류가 없는 게시글은 자바스크립트가
       display:none을 인라인으로 남겨두므로 여기서는 있을 때만 보이게 한다 */
    .log20_bgm_post_category_badge {
        display: inline-block;
        font-size: 10px;
        color: var(--secondary-color);
        background: var(--primary-color);
        padding: 3px 10px;
        border-radius: 6px;
        max-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .log20_bgm_post_badge_row {
        gap: 2px;
    }

    .log20_bgm_post_badge {
        border-radius: 6px;
    }

    /* 새 글 작성/관리자 버튼 + 게시글 목록을 3초 후 자동으로 숨기고, 버튼을 누르면
       화면 위에 팝업처럼 떠서 나타난다 (화면 안에서 자리를 차지하지 않아 아래 내용이 밀리지 않음) */
    .log20_bgm_mobile_menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 55;
        margin: 0;
        padding: 14px 16px;
        background: none;
        box-shadow: none;
        max-height: 80vh;
        overflow-y: auto;
        box-sizing: border-box;
        transform: translateY(0);
        opacity: 1;
        transition: transform .3s ease, opacity .3s ease;
    }

    .log20_bgm_mobile_menu.collapsed {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .log20_bgm_menu_toggle {
        display: flex;
    }
}

/* 화면이 좁아서 플레이어/곡 목록이 위아래로 쌓이는 구간에서는, 재생 중인 플레이어 영역을
   화면 위에 고정하고 곡 목록만 스크롤되게 한다 */
@media (max-width: 820px) {
    /* 재생 영역(.log20_bgm_player_panel)은 화면 위에 그대로 두고, 곡 리스트만
       그 아래 남는 공간 안에서 따로 스크롤되게 한다. 리스트가 자기 영역 안에서만
       스크롤되고 재생 영역과 같은 스크롤 공간을 쓰지 않기 때문에, 재생 영역
       배경을 투명하게 둬도 리스트가 그 뒤로 겹쳐 보이지 않는다.
       (리스트의 실제 최대 높이는 자바스크립트가 재생 영역 높이를 재서 정해준다) */
    .log20_bgm_upnext_panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
