
/*
 * 신설리 : 클라우드
 * 노래 가사 / 노래방 번호 안내 블로그
 * 화이트 배경 + 오렌지(#ff6e41) 포인트, 신설리 애니 블로그 스킨 구조 재활용
 */

:root {
  --orange: #ff6e41;
  --orange-deep: #e8552a;
  --orange-soft: #fff1ec;
  --text: #232323;
  --text-dim: #8a8a8a;
  --line: #ececec;
  --bg: #ffffff;
  --stage: #15171c;
  --stage-line: #2a2d34;
  --radius: 14px;
  --maxw: 1860px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: "Pretendard-Regular", "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable; /* 스크롤바 유무와 상관없이 콘텐츠 폭을 항상 동일하게 고정 */
}
div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, form, fieldset, legend, input, textarea, figure { margin: 0; padding: 0; }
header, footer, section, article, aside, nav, figure { display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; vertical-align: top; max-width: 100%; }
button { border: 0; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; border-radius: 0; }
hr { display: none; }
.screen_out { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

#acc-nav { position: absolute; top: 0; left: 0; width: 100%; height: 0; overflow: hidden; z-index: 999; }
#acc-nav a { position: absolute; top: -50px; left: 0; padding: 12px 20px; background: var(--orange); color: #fff; font-size: 13px; }
#acc-nav a:focus, #acc-nav a:active { top: 0; }

/* ---------- Header : 배너 이미지만 ---------- */
#header { border-bottom: 1px solid var(--line); background: #fff; }
#header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: center;
}
#header h1.logo { line-height: 0; }
#header h1.logo a { display: inline-flex; align-items: center; height: 40px; }
#header h1.logo a img { display: block; height: 100%; width: auto; max-width: 200px; object-fit: contain; }
#header h1.logo a:not(:has(img)) {
  height: auto; font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: -0.01em;
}
#header h1.logo a:not(:has(img)) {
  display: block; padding: 10px 0; font-size: 24px; font-weight: 900; color: var(--text); letter-spacing: -0.01em;
}

/* ---------- Layout ---------- */
#container { width: 100%; }
.content-wrap { max-width: var(--maxw); margin: 0 auto; padding: 12px 12px 16px; }
#content { width: 100%; }

/* ---------- List header (공통) ---------- */
.list-header {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 2px solid var(--text);
}
.list-header h2 { display: flex; align-items: baseline; gap: 6px; font-size: 19px; font-weight: 900; }
.list-header h2 em { font-style: normal; color: var(--orange); }

.empty-box { padding: 70px 0; text-align: center; color: var(--text-dim); }
.empty-box p { font-size: 14px; margin-bottom: 6px; }
.empty-box .sub { font-size: 12.5px; color: #b6b6b6; }

/* ---------- 페이지(고정 페이지) ---------- */
.page-header { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--text); }
.page-header h1 { font-size: 22px; font-weight: 900; }

/* =========================================================
   GNB + 메가메뉴 패널 (햄버거 클릭 → 전체 카테고리 패널)
   ========================================================= */
:root {
  --sm-orange: #ff6e41;
  --sm-height: 65px;
  --mega-bg: #fff;
}

.custom-gnb-wrapper {
  position: relative; width: 100vw; left: 50%; transform: translateX(-50%);
  height: var(--sm-height); background-color: #fff; box-sizing: border-box;
  border-top: none; border-bottom: none;
  margin: 0; padding: 0; z-index: 1000; overflow: visible;
}
.gnb-inner-container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1860px; height: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box;
}
.gnb-left-section { display: flex; align-items: center; height: 100%; }
.gnb-hamburger-btn {
  position: relative; width: 26px; height: 20px; background: transparent; border: none; cursor: pointer;
  flex-direction: column; justify-content: space-between; padding: 0;
  margin-right: 0; box-sizing: border-box; z-index: 10005;
  display: none; /* 기능/이벤트는 그대로 두고 화면에만 안 보이게 처리 */
}
.gnb-hamburger-btn span {
  display: block; width: 100%; height: 3px; background-color: var(--sm-orange); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.custom-gnb-wrapper.menu-active .gnb-hamburger-btn span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.custom-gnb-wrapper.menu-active .gnb-hamburger-btn span:nth-child(2) { opacity: 0; }
.custom-gnb-wrapper.menu-active .gnb-hamburger-btn span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.custom-gnb-wrapper.menu-active .gnb-pc-nav,
.custom-gnb-wrapper.menu-active .gnb-inner-container > .gnb-right-section {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.gnb-pc-nav, .gnb-right-section { transition: opacity .22s cubic-bezier(.16,1,.3,1), visibility .22s; }
.gnb-pc-nav { display: flex; align-items: center; height: 100%; }
.gnb-depth1-ul { display: flex; align-items: center; height: 100%; margin: 0; padding: 0; list-style: none; }
.gnb-depth1-ul > li { position: relative; height: 100%; margin-right: 40px; }
.gnb-depth1-ul > li:last-child { margin-right: 0; }
.gnb-depth1-ul > li > a.gnb-main-link {
  display: flex; align-items: center; height: 100%; font-size: 15px; font-weight: 800; color: var(--text);
  transition: color .15s ease;
}
.gnb-main-link:hover { color: var(--sm-orange) !important; }
/* 노래 신청하기 : 오렌지(현재 페이지 표시색)와 겹치지 않도록 블루 계열 */
.gnb-main-link.gnb-main-link-accent { color: #2f74e0 !important; }
.gnb-main-link.gnb-main-link-accent:hover { color: #1f5bbd !important; }
/* 지금 보고 있는 카테고리(또는 메인 홈) : 오렌지 글자 + 하단 바 */
.gnb-main-link.active-page { position: relative; color: var(--sm-orange) !important; }
.gnb-main-link.active-page::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 4px; background: var(--sm-orange); border-radius: 3px;
}
.mega-link-accent { color: #2f74e0 !important; }
.gnb-main-link .menu-custom-icon { width: 20px; height: 20px; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.gnb-depth2-ul {
  position: absolute; top: 100%; left: 50%; background: #fff; min-width: 170px; border: 1px solid #eee;
  border-top: none; border-radius: 0 0 6px 6px; box-shadow: 0 10px 25px rgba(0,0,0,.1); padding: 8px 0; margin: 0;
  list-style: none; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-10px);
  transition: opacity .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1), visibility .28s;
  z-index: 99999;
}
.gnb-depth1-ul > li:hover .gnb-depth2-ul { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.gnb-depth2-ul li a { display: block; padding: 10px 18px; font-size: 13px; font-weight: 700; color: #444; text-align: left; white-space: nowrap; }
.gnb-depth2-ul li a:hover { background: var(--orange-soft); color: var(--sm-orange); }

.gnb-right-section { display: flex; align-items: center; height: 100%; }
.shortcut-container { display: flex; align-items: center; }
.shortcut-static-title { font-size: 13px; font-weight: 800; color: var(--sm-orange); margin-right: 12px; white-space: nowrap; }
.gnb-quick-ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gnb-premium-quick-btn {
  display: inline-flex; align-items: center; padding: 9px 16px; background-color: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; white-space: nowrap; box-sizing: border-box; transition: all .22s cubic-bezier(.16,1,.3,1);
}
.gnb-premium-quick-btn .quick-btn-icon { width: 20px; height: 20px; margin-right: 8px; object-fit: contain; border-radius: 4px; }
.quick-btn-text { font-size: 13px; font-weight: 700; color: #475569; transition: color .15s ease; }
.gnb-premium-quick-btn:hover { background-color: var(--orange-soft); border-color: var(--sm-orange); transform: translateY(-1.5px); box-shadow: 0 4px 10px rgba(255,110,65,.08); }
.gnb-premium-quick-btn:hover .quick-btn-text { color: var(--sm-orange); }

.custom-mega-menu-panel {
  position: absolute; top: 0; left: 0; width: 100%; background-color: var(--mega-bg); z-index: 9998;
  max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: max-height .34s cubic-bezier(.16,1,.3,1), opacity .25s ease, visibility .25s;
  box-shadow: 0 15px 30px rgba(0,0,0,.08);
}
.custom-mega-menu-panel.open { max-height: 700px; opacity: 1; visibility: visible; padding-bottom: 50px; }
.mega-inner-wrapper { display: flex; flex-wrap: nowrap; justify-content: flex-start; width: 100%; max-width: 1860px; margin: 0 auto; padding: 0 24px 0 74px; box-sizing: border-box; }
.mega-column { width: 200px; flex: 0 0 200px; margin: 0 45px 0 0; box-sizing: border-box; }
.mega-title { height: 64px; display: flex; align-items: center; margin-bottom: 15px; position: relative; text-align: left; box-sizing: border-box; }
.mega-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: #f1f5f9; }
.mega-title a { display: flex; align-items: center; height: 100%; font-size: 17px; font-weight: 800; color: var(--sm-orange); }
.mega-title .menu-custom-icon { width: 22px; height: 22px; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.mega-depth2-ul-mega { list-style: none; margin: 0; padding: 0; }
.mega-column .mega-depth2-ul-mega li { margin-bottom: 10px; }
.mega-column .mega-depth2-ul-mega li a { display: block; padding: 4px 0; font-size: 14px; font-weight: 600; color: #475569; text-align: left; }
.mega-column .mega-depth2-ul-mega li a:hover { color: var(--sm-orange); }

.mega-column.mega-shortcut-column { margin: 0 0 0 10px; width: 260px; flex: 0 0 260px; display: block; }
.mega-shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.mega-shortcut-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(145deg, #ffffff 0%, #fdf6f3 100%); border: 1px solid #f1ddd5; border-radius: 14px;
  padding: 16px 8px; box-sizing: border-box; transition: all .25s cubic-bezier(.16,1,.3,1); box-shadow: 0 2px 6px rgba(255,110,65,.06);
}
.msc-icon-wrap { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #fde3d8; margin-bottom: 8px; box-shadow: 0 2px 5px rgba(0,0,0,.04); }
.mega-shortcut-card .msc-icon { width: 24px; height: 24px; object-fit: contain; display: block; }
.mega-shortcut-card .msc-title { font-size: 12.5px; font-weight: 700; color: #334155; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mega-shortcut-card:hover { transform: translateY(-4px); border-color: var(--sm-orange); box-shadow: 0 8px 18px rgba(255,110,65,.18); }
.mega-shortcut-card:hover .msc-icon-wrap { border-color: var(--sm-orange); background: var(--orange-soft); }
.mega-shortcut-card:hover .msc-title { color: var(--sm-orange); }

.mega-contact-link { position: absolute; bottom: 16px; right: 74px; font-size: 12.5px; font-weight: 600; color: #94a3b8; transition: color .2s ease; z-index: 10; }
.mega-contact-link:hover { color: var(--sm-orange); text-decoration: underline; }

@media screen and (max-width: 1600px) {
  .gnb-inner-container, .mega-inner-wrapper { max-width: 95%; }
  .gnb-depth1-ul > li { margin-right: 28px; }
  .mega-inner-wrapper { padding-left: 54px; }
  .mega-column { width: 150px; margin-right: 26px; }
  .mega-column.mega-shortcut-column { width: 220px; flex: 0 0 220px; }
}

/* =========================================================
   신설리's PICK + 인기 차트
   ========================================================= */
.top-songs { margin-bottom: 44px; }
.top-songs-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }

/* --- 신설리's PICK : 재생 카드 (살짝 축소) --- */
.top-song-1 { display: flex; flex-direction: column; position: relative; }
.top-song-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: var(--stage); flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}
.top-song-video iframe, .top-song-video #pick-yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, #23262d 0%, var(--stage) 72%);
}
.video-play {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 19px; padding-left: 4px;
  box-shadow: 0 8px 20px rgba(255,110,65,0.4);
}
/* 영상 칼럼 폭에 맞춰, 검색창 밑 기존 여백 공간 안으로 떠 있음 → 그리드(영상+인기차트) 위치는 전혀 안 밀림 */
.top-song-header {
  position: absolute; bottom: 100%; left: 0; right: 0; margin-bottom: 14px; height: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.top-song-rank {
  padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 900;
  color: #fff; background: var(--orange-deep); letter-spacing: 0.02em;
}
.top-song-autoplay-toggle {
  font-size: 11.5px; font-weight: 700; color: var(--text-dim); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.top-song-autoplay-toggle:hover { border-color: var(--orange); color: var(--orange-deep); background: var(--orange-soft); }
.top-song-autoplay-toggle.off { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-deep); }
.top-song-info { text-align: center; padding-top: 14px; flex: 0 0 auto; }
.top-song-title {
  font-size: 16px; font-weight: 900; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.top-song-artist { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }

/* --- 인기 노래 / 인기 가수 차트 리스트 (가로 배치, 5개 기준 높이로 확대) --- */
.popular-lists { display: flex; flex-direction: row; gap: 32px; }
.popular-block { flex: 1; min-width: 0; }
.popular-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.popular-block-title { font-size: 15px; font-weight: 900; color: var(--orange-deep); }
.popular-more { font-size: 12px; font-weight: 700; color: var(--text-dim); white-space: nowrap; transition: color .15s ease; }
.popular-more:hover { color: var(--orange-deep); }
.popular-chart { display: flex; flex-direction: column; }
.popular-chart li {
  border-radius: 10px; margin: 0 -8px; overflow: hidden; transition: background .15s ease;
}
.popular-chart li:hover { background: var(--orange-soft); }
.chart-row-link, .chart-artist-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px;
  box-sizing: border-box; text-decoration: none; color: inherit; cursor: pointer;
}
.chart-rank-wrap { flex: 0 0 26px; display: flex; flex-direction: column; align-items: center; }
.chart-rank {
  text-align: center; font-size: 16px; font-weight: 900; color: var(--text-dim);
}
.chart-rank-delta { font-size: 9.5px; font-weight: 800; line-height: 1; margin-top: 1px; }
.chart-rank-delta.up { color: #1fae5c; }
.chart-rank-delta.down { color: #e0433c; }
.chart-rank-delta.new { color: var(--orange-deep); }
.chart-rank-delta.same { color: #c8c8c8; }
.chart-thumb {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 9px; overflow: hidden;
  background: var(--orange-soft); border: 1px solid var(--line);
}

.chart-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chart-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chart-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35;
  white-space: normal; overflow: hidden; word-break: break-word;
}
.chart-artist { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-empty { padding: 16px 0; font-size: 12.5px; color: var(--text-dim); }
/* 집계 데이터가 없을 때 : 가운데 정렬된 안내 문구만 (hover 배경 없음) */
.popular-chart li.chart-empty {
  margin: 6px 0 0; padding: 34px 16px; text-align: center; line-height: 1.6;
}
.popular-chart li.chart-empty:hover { background: transparent; }

/* =========================================================
   큰 검색 영역 : 가수명 / 곡명 검색 (배경 없이, 중앙정렬)
   ========================================================= */
.search-hero { margin-bottom: 110px; padding: 8px 0 0; text-align: center; }

.search-mode-tabs { display: inline-flex; align-items: flex-end; gap: 32px; margin-bottom: 22px; }
/* 탭 전환 시 흔들림 방지 : 선택됐을 때(큰 글씨) 크기를 ::before로 미리 자리 잡아두고,
   실제 글자(span)는 같은 칸 안에서 크기만 바뀌므로 버튼 폭/높이가 절대 변하지 않음 */
.search-mode-btn {
  display: inline-grid; padding: 0 0 9px; color: var(--text-dim);
  border-bottom: 2px solid transparent; letter-spacing: 0.01em;
  transition: color .2s ease, border-color .2s ease;
}
.search-mode-btn::before {
  content: attr(data-label); grid-area: 1 / 1; visibility: hidden;
  font-size: 16.5px; font-weight: 800; white-space: nowrap;
}
.search-mode-btn > span {
  grid-area: 1 / 1; align-self: end; justify-self: center; white-space: nowrap;
  font-size: 14px; font-weight: 700; transition: font-size .2s ease;
}
.search-mode-btn:hover { color: var(--orange); border-bottom-color: rgba(255,110,65,0.35); }
.search-mode-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.search-mode-btn.active > span { font-size: 16.5px; font-weight: 800; }

.search-hero-row { display: flex; justify-content: center; }
.search-live { width: 100%; max-width: 620px; margin: 0 auto; }
.search-form-wrap { position: relative; }
.search-hero-form {
  display: flex; width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 6px 20px rgba(20,14,10,0.05); transition: border-color .2s ease, box-shadow .2s ease;
}
.search-hero-form:focus-within { border-color: var(--orange); box-shadow: 0 8px 24px rgba(255,110,65,0.14); }
.search-hero-input-wrap { position: relative; flex: 1; display: flex; }
.search-hero-form input {
  flex: 1; height: 56px; padding: 0 40px 0 20px; border: 0;
  font-size: 15.5px; background: transparent; outline: none; color: var(--text);
}
.search-hero-clear-btn {
  display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--orange-soft); color: var(--sm-orange);
  font-size: 12px; line-height: 22px; text-align: center; padding: 0; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.search-hero-clear-btn.show { display: block; }
.search-hero-clear-btn:hover { background: var(--sm-orange); color: #fff; }
.search-live-footer {
  max-height: 0; opacity: 0; overflow: hidden;
  background: #fff; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line);
  border-top: 1.5px solid var(--line); border-bottom: 1px solid transparent;
  border-radius: 14px 14px 0 0;
  transition: none;
}
.search-live-footer.show { max-height: 200px; opacity: 1; border-bottom-color: var(--line); }
.search-live-footer-inner {
  padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.search-scrolltop-btn {
  flex: 0 0 auto; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 11.5px; font-weight: 700;
  color: var(--text-dim); cursor: pointer; opacity: 0; pointer-events: none;
  transition: background .15s ease, color .15s ease, opacity .2s ease;
}
.search-scrolltop-btn.visible { opacity: 1; pointer-events: auto; }
.search-scrolltop-btn:hover { background: var(--orange-soft); color: var(--orange-deep); border-color: var(--orange); }
.search-hero-submit {
  flex: 0 0 auto; height: 56px; padding: 0 26px; border: 0;
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  transition: background .2s ease;
}
.search-hero-submit:hover { background: var(--orange-deep); }
.search-hero-hint { margin-top: 70px; font-size: 12.5px; color: var(--text-dim); }

.search-machine-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.search-machine-filter-label { font-size: 11.5px; font-weight: 700; color: var(--text-dim); margin-left: 6px; margin-right: 8px; white-space: nowrap; }
.search-machine-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: 11.5px; font-weight: 700;
  color: var(--text-dim); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-user-select: none; user-select: none;
}
.search-machine-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.search-machine-chip:hover { border-color: var(--sm-orange); }
.search-machine-chip.active {
  background: var(--sm-orange); border-color: var(--sm-orange); color: #fff;
}
.search-machine-bulk { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--line); }
.search-machine-bulk-btn {
  padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.search-machine-bulk-btn:hover { color: var(--orange-deep); background: var(--orange-soft); }

/* ---------- 검색 결과 : 검색창 바로 아래, 문서 흐름 안의 단순한 박스 ---------- */
.search-live-panel {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 620px; margin-top: 18px; text-align: left; z-index: 60;
}
.search-live-panel.open { display: block; }

.search-live-box {
  max-height: 420px; overflow-y: auto; box-sizing: border-box; position: relative;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px;
  transition: none;
}
.search-live-box.merge-footer {
  border-top-color: transparent; border-top-left-radius: 0; border-top-right-radius: 0;
}
.search-live-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
  border-radius: 0 0 12.5px 12.5px; pointer-events: none;
}
.search-live-box.detail-mode::after { content: none; }
.search-live-box.detail-mode {
  height: auto; border: none; background: transparent; padding: 0;
}
.search-live-placeholder { padding: 24px 0; font-size: 13px; color: var(--text-dim); text-align: center; }

/* 목록 모드 : 곡 리스트 (박스 없이, 가독성 개선) */
.search-live-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px; border-radius: 10px; border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.search-live-row:last-child { border-bottom: 0; }
.search-live-row:hover { background: var(--orange-soft); }
.search-live-row-thumb {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.search-live-row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.search-live-row-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-live-row-title { font-size: 14.5px; font-weight: 800; color: var(--text); }
.search-live-row-artist { font-size: 12.5px; color: var(--text-dim); }

/* 가수명으로 검색했을 때 목록 맨 위에 뜨는 가수 카드 */
@keyframes sc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.search-live-artist-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px; margin-bottom: 8px; border-radius: 12px;
  background: var(--orange-soft); border: 1.5px solid var(--orange);
}
.search-live-artist-thumb {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.search-live-artist-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.search-live-artist-name { flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 900; color: var(--text); }
.search-live-artist-btn {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--orange-deep);
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--orange); background: #fff;
  transition: background .15s ease, color .15s ease;
}
.search-live-artist-card:hover .search-live-artist-btn { background: var(--orange); color: #fff; }

/* 상세 모드 : 클릭한 한 곡 (큰 썸네일 + 우측 2줄, 박스 없이) */
.search-live-back {
  display: inline-block; padding: 4px 0 12px 10px; font-size: 12px; font-weight: 700; color: var(--text-dim);
}
.search-live-back:hover { color: var(--orange-deep); }
.search-live-card {
  display: flex; align-items: center; gap: 16px; padding: 4px 0;
  animation: sc-fade-in .3s ease;
}
.search-live-card-thumb {
  flex: 0 0 120px; width: 120px; height: 120px; border-radius: 14px; background: #fff;
  overflow: hidden; display: block; border: 1px solid var(--line);
}
.search-live-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.search-live-card-info { min-width: 0; width: 100%; padding-left: 10px; }
.search-live-card-title { display: block; font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.4; }
.search-live-card-artist { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-dim); }

.search-live-numbers { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.search-live-numbox { flex: 1 1 70px; text-align: center; padding: 8px 4px; border-radius: 9px; background: #fff; border: 1.5px solid var(--orange); }
.search-live-numbox .num-label { display: block; font-size: 10.5px; font-weight: 800; color: var(--orange-deep); }
.search-live-numbox .num-value { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-top: 3px; }
.search-live-lyrics-btn {
  flex: 1 1 100px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px 4px; border-radius: 9px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 800; transition: background .15s ease;
}
.search-live-lyrics-btn:hover { background: var(--orange-deep); }

/* 번호(연결된 글) 없는 곡: 기존 버튼 하나 자리를 위/아래 2칸으로 나눔.
   바깥 래퍼가 기존 .search-live-lyrics-btn과 같은 flex-basis를 가져가서
   전체 너비는 그대로, 세로는 stretch된 높이를 두 칸으로 나눠 갖기 때문에
   사이 여백(gap) 포함해도 기존 버튼 하나와 같은 자리를 차지함 */
.search-live-lyrics-split { flex: 1 1 100px; display: flex; flex-direction: column; gap: 6px; }
.search-live-lyrics-split .search-live-lyrics-btn {
  flex: 1 1 auto; padding: 4px; font-size: 10.5px;
}
.search-live-lyrics-btn.is-disabled {
  background: #f1ece9; color: #b8aaa2; cursor: not-allowed; pointer-events: none;
}
.search-live-request-btn {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4px; border-radius: 9px; background: var(--orange); color: #fff;
  font-size: 10.5px; font-weight: 800; transition: background .15s ease;
}
.search-live-request-btn:hover { background: var(--orange-deep); }

.search-live-empty { padding: 22px; text-align: center; }
.search-live-empty-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.search-live-empty-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.5; }
.song-request-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--orange);
  color: var(--orange-deep); font-size: 13px; font-weight: 700; background: #fff;
  transition: background .15s ease, color .15s ease;
}
.song-request-btn:hover { background: var(--orange); color: #fff; }

/* ---------- 신청곡 게시판 (번호 / 제목 / 가수 / 신청현황 테이블) ---------- */
.request-board { display: none; max-width: 760px; margin: 0 auto 44px; }
.request-board.show { display: block; }

.request-form { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.request-form input {
  flex: 1 1 140px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 13.5px; outline: none; transition: border-color .2s ease;
}
.request-form input:focus { border-color: var(--orange); }
.request-form button {
  flex: 0 0 auto; height: 46px; padding: 0 20px; border-radius: 10px; border: 0;
  background: var(--orange); color: #fff; font-size: 13.5px; font-weight: 800;
  transition: background .2s ease;
}
.request-form button:hover { background: var(--orange-deep); }

.request-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.request-table-head, .request-row {
  display: grid; grid-template-columns: 48px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.4fr);
  align-items: center; gap: 10px; padding: 12px 14px;
}
.request-table-head {
  background: var(--orange-soft); font-size: 11.5px; font-weight: 800; color: var(--orange-deep);
}
.request-table-body .request-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.col-num { text-align: center; font-weight: 800; color: var(--text-dim); }
.col-title { font-size: 13.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-artist { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.request-empty { padding: 22px 14px; font-size: 12.5px; color: var(--text-dim); text-align: center; }

.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.status-badge.status-pending { background: #f1f1f1; color: var(--text-dim); }
.status-badge.status-translating { background: #fff1ec; color: var(--orange-deep); }
.status-badge.status-done { background: #e9f8ee; color: #22903f; }
.status-badge.status-restricted { background: #fdeaea; color: #d33; }
.status-action-btn {
  display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 800;
  border: 1px solid var(--line); color: var(--text); background: #fff; transition: border-color .15s ease, color .15s ease;
}
.status-action-btn:hover { border-color: var(--orange); color: var(--orange-deep); }

.admin-controls { display: none; align-items: center; gap: 6px; margin-left: auto; }
.request-board.admin-mode .admin-controls { display: flex; }
.admin-status-select {
  height: 28px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 11px; background: #fff; color: var(--text);
}
.admin-delete-btn {
  height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid #f3b8b8;
  font-size: 11px; font-weight: 700; color: #d33; background: #fff;
}
.admin-delete-btn:hover { background: #fdeaea; }

@media screen and (max-width: 640px) {
  .request-table-head { display: none; }
  .request-row {
    grid-template-columns: 1fr; grid-template-areas: "title" "artist" "status"; row-gap: 4px; padding: 14px;
  }
  .col-num { display: none; }
  .col-title { grid-area: title; white-space: normal; }
  .col-artist { grid-area: artist; white-space: normal; }
  .col-status { grid-area: status; }
}

/* ---------- 포스터(음원 커버) 그리드 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.post-card { border-radius: var(--radius); transition: transform .2s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card a { display: block; }
.post-card .thum {
  display: block; aspect-ratio: 1 / 1; width: 100%;
  border-radius: 12px; overflow: hidden; background: var(--orange-soft); border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08); margin-bottom: 10px;
}
.post-card .thum img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card a:hover .thum img { transform: scale(1.06); }
.post-card .thum .lock { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 22px; }
.post-card .title {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-bottom: 4px;
}
.post-card a:hover .title { color: var(--orange); }
.post-card .subtitle {
  display: block; font-size: 12px; color: var(--text-dim);
}
.post-card.protected .subtitle { color: #b6b6b6; }
.post-card .song-numbers {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 10.5px; color: var(--text-dim);
}
.post-card .song-numbers b { color: var(--orange-deep); font-weight: 800; margin-right: 2px; }

/* ---------- 장르 카테고리 페이지 (KPOP/JPOP/POP/OST): JSON 기반 전체 곡 목록 ---------- */
.genre-category-page { display: none; }
.genre-category-page.show { display: block; }
.genre-category-page .list-header h2 .genre-total { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-left: 4px; }

/* ===== TOP 5 : 배너형 =====
   1위 = 앨범색 배경의 큰 배너(LP가 커버 뒤로 살짝 나옴) / 2·3위 = 은·동 메달 카드 / 4·5위 = 간단한 줄 */
.genre-top-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.genre-top-head h3 { font-size: 15px; font-weight: 900; color: var(--orange-deep); }
.genre-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 26px; }

/* --- 1위 배너 --- */
.gtb-hero {
  position: relative; display: flex; align-items: center; gap: 30px; min-width: 0; min-height: 320px;
  padding: 28px 32px; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,0.16); transition: box-shadow .3s ease;
}
a.gtb-hero:hover { box-shadow: 0 22px 44px rgba(0,0,0,0.22); }
.gtb-bg { position: absolute; inset: -40px; z-index: -3; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) saturate(1.5); transform: scale(1.12); }
.gtb-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(40,20,10,0.42) 0%, rgba(40,20,10,0.10) 100%); }
.gtb-watermark {
  position: absolute; right: 10px; bottom: -58px; z-index: -1; font-size: 280px; font-weight: 900; line-height: 1;
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.32); pointer-events: none;
}
.gtb-art { position: relative; flex: 0 0 220px; width: 220px; aspect-ratio: 1 / 1; margin-right: 62px; }
/* LP : 바깥(.gtb-disc)은 커버 뒤에서 옆으로 나오는 위치, 안쪽(.gtb-disc-spin)은 회전 */
.gtb-disc {
  position: absolute; top: 5%; left: 5%; width: 90%; height: 90%; border-radius: 50%;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35); transform: translateX(34%);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.gtb-disc-spin {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 30deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,0.10) 40deg, rgba(255,255,255,0) 80deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,0.08) 220deg, rgba(255,255,255,0) 260deg),
    repeating-radial-gradient(circle at center, #1c1c1f 0 1.6px, #29292d 1.6px 3.2px);
  animation: gtb-spin 8s linear infinite; animation-play-state: paused; /* 평소엔 멈춤 */
}
.gtb-disc-spin img { position: absolute; left: 50%; top: 50%; width: 36%; height: 36%; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; }
.gtb-disc-spin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5%; height: 5%; transform: translate(-50%, -50%); border-radius: 50%; background: #f3f3f3; }
@keyframes gtb-spin { to { transform: rotate(360deg); } }
a.gtb-hero:hover .gtb-disc { transform: translateX(48%); }
a.gtb-hero:hover .gtb-disc-spin { animation-play-state: running; } /* 마우스를 올리면 천천히 회전, 떼면 그 자리에서 멈춤 */
.gtb-cover { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 36px rgba(0,0,0,0.35); }
.gtb-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtb-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gtb-label {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
  padding: 6px 13px 6px 11px; border-radius: 999px; background: var(--orange);
  font-size: 12px; font-weight: 900; letter-spacing: 0.06em; box-shadow: 0 6px 16px rgba(255,110,65,0.45);
}
.gtb-label svg { width: 15px; height: 15px; }
.gtb-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; margin-left: 2px; }
.gtb-eq i { display: block; width: 3px; height: 60%; border-radius: 1px; background: #fff; animation: gtb-eq 0.9s ease-in-out infinite alternate; }
.gtb-eq i:nth-child(2) { animation-delay: -0.3s; }
.gtb-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes gtb-eq { from { height: 25%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .gtb-eq i, .gtb-disc-spin { animation: none; } .gtb-disc { transition: none; } }
.gtb-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 32px; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; text-shadow: 0 2px 14px rgba(0,0,0,0.3); }
.gtb-orig { font-size: 16px; font-weight: 700; opacity: 0.88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtb-artist { font-size: 14px; opacity: 0.78; }
.gtb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.gtb-chip {
  padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.24);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.gtb-chip i { font-style: normal; font-size: 10px; opacity: 0.75; margin-right: 5px; letter-spacing: 0.04em; }
.gtb-cta {
  margin-left: 4px; padding: 8px 15px; border-radius: 999px; background: #fff; color: var(--orange-deep);
  font-size: 12.5px; font-weight: 900; transition: transform .2s ease;
}
a.gtb-hero:hover .gtb-cta { transform: translateX(3px); }

/* --- 오른쪽 : 2·3위 메달 카드 + 4·5위 줄 --- */
.gtb-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gtb-mid {
  position: relative; flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 14px 18px 14px 14px; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease;
}
a.gtb-mid:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.12); }
.gtb-mid-bg { position: absolute; inset: -30px; z-index: -2; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) saturate(1.4); }
.gtb-mid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,0.74); }
.gtb-mid-cover { position: relative; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; overflow: visible; }
.gtb-mid-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.gtb-medal {
  position: absolute; top: -8px; left: -8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900;
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.gtb-mid[data-rank="2"] .gtb-medal { background: linear-gradient(145deg, #f6f8fa 0%, #b7bfc8 100%); color: #4a525c; }
.gtb-mid[data-rank="3"] .gtb-medal { background: linear-gradient(145deg, #f3cfae 0%, #c47f4f 100%); color: #fff; }
.gtb-mid-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gtb-mid-text b { font-size: 17px; font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtb-mid-orig { font-size: 12.5px; font-weight: 600; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtb-mid-artist { font-size: 12px; color: #777; }
.gtb-mid-nums { margin-top: 5px; font-size: 11.5px; font-weight: 700; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.gtb-mid-nums em { font-style: normal; font-weight: 900; color: var(--orange-deep); margin-right: 3px; }
.gtb-mid-nums .sep { margin: 0 6px; color: #c9c0bb; }

.gtb-low { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gtb-small {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); transition: border-color .15s ease;
}
a.gtb-small:hover { border-color: var(--orange); }
.gtb-small-rank { flex: 0 0 16px; font-size: 14px; font-weight: 900; color: var(--text-dim); text-align: center; }
.gtb-small-thumb { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; overflow: hidden; background: var(--orange-soft); }
.gtb-small-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtb-small-text { display: flex; flex-direction: column; min-width: 0; }
.gtb-small-text b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtb-small-text span { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media screen and (max-width: 1100px) {
  .genre-top { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 600px) {
  .gtb-hero { flex-direction: column; align-items: flex-start; gap: 18px; min-height: 0; padding: 20px; }
  .gtb-art { flex-basis: auto; width: 150px; margin-right: 0; }
  .gtb-watermark { font-size: 200px; bottom: -40px; }
  .gtb-title { font-size: 24px; }
  .gtb-mid-cover { flex-basis: 76px; width: 76px; height: 76px; }
  .gtb-mid-text b { font-size: 15px; }
  .gtb-low { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 검색 바 : TOP 5 바로 아래, 전체 곡 바로 위 ===== */
.genre-finder {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px;
  margin-bottom: 30px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, #fff9f6 0%, #fff0e8 100%); border: 1px solid #fbdccf;
}
.genre-finder-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.genre-finder-title { font-size: 17px; font-weight: 900; color: var(--text); }
.genre-finder .genre-search { grid-column: 1 / -1; } /* 검색창은 패널 전체 폭 */
.genre-finder-title em { font-style: normal; color: var(--orange); }
.genre-finder-filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
.genre-finder .search-machine-filter-label { margin-left: 0; }
.genre-finder .search-machine-bulk { margin-left: 2px; }
.genre-lyric-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 999px;
  border: 1.5px solid var(--orange); background: #fff; color: var(--orange-deep);
  font-size: 11.5px; font-weight: 800; transition: background .15s ease, color .15s ease;
}
.genre-lyric-toggle:hover { background: var(--orange-soft); }
.genre-lyric-toggle.active { background: var(--orange); color: #fff; }

.genre-search { position: relative; }
.genre-search input {
  width: 100%; height: 54px; padding: 0 44px 0 48px; border-radius: 14px;
  border: 1.5px solid #f3d3c6; background: #fff; color: var(--text);
  font-size: 15px; font-weight: 600; caret-color: var(--orange); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.genre-search input::placeholder { color: #b9aea9; font-weight: 500; }
.genre-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,110,65,0.15); }
.genre-search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--orange); pointer-events: none; }
.genre-search-clear {
  display: none; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--orange-soft); color: var(--sm-orange);
  font-size: 12px; line-height: 24px; text-align: center; padding: 0;
}
.genre-search-clear.show { display: block; }
.genre-search-clear:hover { background: var(--orange); color: #fff; }
.genre-finder-result { font-size: 12.5px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.genre-finder-result strong { color: var(--orange-deep); font-weight: 900; }

@media screen and (max-width: 1100px) {
  .genre-finder { grid-template-columns: minmax(0, 1fr); }
  .genre-finder-filters { justify-content: flex-start; order: 2; } /* 좁은 화면 : 검색창 먼저, 필터는 그 아래 */
  .genre-finder .search-machine-bulk { border-left: 0; padding-left: 0; }
}
@media screen and (max-width: 600px) {
  .genre-finder { padding: 16px; }
}

/* ===== 전체 곡 머리 + 정렬 ===== */
.genre-grid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 20px;
}
.genre-grid-head-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.genre-grid-head h3 { font-size: 15px; font-weight: 900; color: var(--text); }

.genre-grid-head h3 .genre-result-count { margin-left: 6px; font-size: 12.5px; font-weight: 700; color: var(--orange-deep); }
.genre-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-sort-btn {
  padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 700; color: var(--text-dim); transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.genre-sort-btn:hover { color: var(--orange-deep); border-color: var(--orange); }
.genre-sort-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.genre-loading, .genre-empty { grid-column: 1 / -1; padding: 40px 10px; text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.7; }
.genre-empty .song-request-btn { margin-top: 14px; }

/* ===== 곡 카드 : 공통 부품 ===== */
.genre-grid { display: grid; }
.gcard-wrap { display: flex; min-width: 0; }
.gcard-wrap > .gcard { flex: 1 1 auto; width: 100%; }
.gcard { display: flex; min-width: 0; color: inherit; }
.gcard-cover { display: block; overflow: hidden; background: var(--orange-soft); }
.gcard-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gcard-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 800; line-height: 1.4; color: var(--text); word-break: break-word;
}
.gcard-orig { font-size: 12px; font-weight: 600; color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-artist { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 10.5px; color: #b0b0b0; }
.gcard-meta:empty { display: none; }
/* 가사 있는 곡 : 티켓 윗변에 매달린 책갈피 리본 (잘 보이지만 과하지 않게) */
.gcard { position: relative; }
.gcard-cover { position: relative; }
.gcard-stamp {
  position: absolute; top: -1px; right: 20px; z-index: 3; padding: 7px 7px 12px;
  display: flex; align-items: center; justify-content: center; white-space: nowrap; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ff8357 0%, #ee5a2c 100%); color: #fff;
  font-size: 10.5px; font-weight: 900; line-height: 1.2; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.25), inset -1px 0 0 rgba(0,0,0,0.08);
  pointer-events: none;
}
/* 발매연도 칩 : 커버 왼쪽 아래 (티켓형에서만 표시) */
.gcard-year {
  display: none; position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px;
  background: rgba(21,23,28,0.6); color: #fff; font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gcard-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.gnum {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0;
  padding: 6px 2px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
}
.gnum i { font-style: normal; font-size: 9px; font-weight: 800; color: var(--orange-deep); letter-spacing: 0.04em; }
.gnum b { font-size: 11.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.gnum.is-empty i { color: #c6bdb8; }
.gnum.is-empty b { color: #cfcfcf; font-weight: 600; }
a.gcard:hover .gcard-title { color: var(--orange-deep); }
.gcard.is-pending { cursor: default; }

/* ----- 초안 A : 커버형 (앨범 커버 + 번호 3칸) ----- */
.genre-grid[data-card="cover"] { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px 20px; }
.genre-grid[data-card="cover"] .gcard { flex-direction: column; gap: 10px; transition: transform .2s ease; }
.genre-grid[data-card="cover"] a.gcard:hover { transform: translateY(-3px); }
.genre-grid[data-card="cover"] .gcard-cover {
  aspect-ratio: 1 / 1; width: 100%; max-width: 100%; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.genre-grid[data-card="cover"] a.gcard:hover .gcard-cover img { transform: scale(1.06); }
.genre-grid[data-card="cover"] .gcard-body { align-items: center; text-align: center; }
.genre-grid[data-card="cover"] .gcard-orig, .genre-grid[data-card="cover"] .gcard-artist { max-width: 100%; }
.genre-grid[data-card="cover"] .gcard-nums { margin-top: auto; } /* 제목이 1줄이든 2줄이든 번호칸 높이를 한 줄로 맞춤 */

/* ----- 초안 B : 가로 리스트형 (번호가 한눈에 보이는 실용형) ----- */
.genre-grid[data-card="row"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 12px; }
.genre-grid[data-card="row"] .gcard {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 210px; align-items: center; gap: 16px;
  padding: 12px 14px 12px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.genre-grid[data-card="row"] a.gcard:hover { border-color: var(--orange); box-shadow: 0 8px 20px rgba(255,110,65,0.12); }
.genre-grid[data-card="row"] .gcard-cover { width: 76px; height: 76px; border-radius: 12px; }
.genre-grid[data-card="row"] .gcard-title { -webkit-line-clamp: 1; font-size: 14.5px; }
.genre-grid[data-card="row"] .gcard-stamp { right: 16px; padding: 4px 6px 9px; font-size: 9px; }
.genre-grid[data-card="row"] .gnum { background: var(--orange-soft); border-color: transparent; padding: 8px 2px; }

/* ----- 초안 C : 티켓형 (노래방 예약표 느낌, 절취선 + 큰 번호) ----- */
.genre-grid[data-card="ticket"] { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; }
/* 그림자는 바깥 감싸개(.gcard-wrap)에 drop-shadow로 → 홈을 실제로 뚫어도 그림자가 홈 모양을 따라감 (직선 경계 안 생김) */
.genre-grid[data-card="ticket"] .gcard-wrap { filter: drop-shadow(0 2px 5px rgba(40,20,10,0.06)); transition: filter .22s ease; }
.genre-grid[data-card="ticket"] .gcard-wrap.is-lyric { filter: drop-shadow(0 4px 10px rgba(255,110,65,0.12)); }
.genre-grid[data-card="ticket"] .gcard-wrap.is-lyric:hover { filter: drop-shadow(0 14px 20px rgba(255,110,65,0.24)); }
.genre-grid[data-card="ticket"] .gcard {
  /* 가사 없는 곡 : 깔끔한 흰 티켓 */
  --tk-line: #ebe4e0; --tk-dash: #dcd2cc; --tk-stub: #faf8f7; --tk-num: var(--text);
  --tk-stub-h: 64px; /* 번호표 높이 (홈 위치 계산에 사용) */
  flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--tk-line);
  transition: transform .22s cubic-bezier(.16,1,.3,1);
  /* 절취선 양끝에 반지름 9px 구멍을 실제로 뚫음 (구멍 중심 = 카드 바깥 테두리, 번호표 윗선 높이) */
  -webkit-mask:
    radial-gradient(circle at left calc(100% - var(--tk-stub-h) - 1px), transparent 8.5px, #000 9px) left / 51% 100% no-repeat,
    radial-gradient(circle at right calc(100% - var(--tk-stub-h) - 1px), transparent 8.5px, #000 9px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at left calc(100% - var(--tk-stub-h) - 1px), transparent 8.5px, #000 9px) left / 51% 100% no-repeat,
    radial-gradient(circle at right calc(100% - var(--tk-stub-h) - 1px), transparent 8.5px, #000 9px) right / 51% 100% no-repeat;
}
/* 가사 있는 곡 : 오렌지 테두리 + 오렌지빛 번호표 */
.genre-grid[data-card="ticket"] a.gcard {
  --tk-line: #ffc8b2; --tk-dash: #f5a98b; --tk-stub: linear-gradient(180deg, #fff3ec 0%, #ffe6da 100%); --tk-num: #c2421a;
}
/* 테두리색은 변수(--tk-line)로 바꿔야 홈의 곡선 테두리도 같이 바뀜 */
.genre-grid[data-card="ticket"] a.gcard:hover { --tk-line: var(--orange); transform: translateY(-5px); }
.genre-grid[data-card="ticket"] .gcard-cover {
  aspect-ratio: 1 / 1; max-width: 100%; margin: 10px 10px 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.genre-grid[data-card="ticket"] a.gcard:hover .gcard-cover img { transform: scale(1.06); }
.genre-grid[data-card="ticket"] .gcard-year { display: inline-block; }
.genre-grid[data-card="ticket"] .gcard-meta { display: none; } /* 티켓형은 발매연도를 커버 위 칩으로 표시 */
.genre-grid[data-card="ticket"] .gcard-body { padding: 13px 14px 15px; gap: 3px; align-items: center; text-align: center; }
.genre-grid[data-card="ticket"] .gcard-title { font-size: 14.5px; font-weight: 900; letter-spacing: -0.01em; }
.genre-grid[data-card="ticket"] .gcard-orig { max-width: 100%; }
.genre-grid[data-card="ticket"] .gcard-artist { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; margin-top: 3px; }
.genre-grid[data-card="ticket"] .gcard-nums {
  position: relative; margin-top: auto; height: var(--tk-stub-h); padding: 0 8px; gap: 0; align-items: center;
  border-top: 1.5px dashed var(--tk-dash); background: var(--tk-stub); border-radius: 0 0 17px 17px;
}
/* 구멍 가장자리의 곡선 테두리 (카드 테두리와 같은 색이라 한 줄로 이어져 보임) */
.genre-grid[data-card="ticket"] .gcard-nums::before,
.genre-grid[data-card="ticket"] .gcard-nums::after {
  /* 중심 = 카드 바깥 테두리(-1px), 번호표 윗선(점선 1.5px 위) → 구멍과 정확히 같은 위치 */
  content: ""; position: absolute; top: -11.5px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--tk-line); background: transparent; pointer-events: none;
}
/* 카드 바깥으로 나가는 반쪽은 잘라서 안쪽 곡선만 남김 */
.genre-grid[data-card="ticket"] .gcard-nums::before { left: -11px; clip-path: inset(0 0 0 50%); }
.genre-grid[data-card="ticket"] .gcard-nums::after { right: -11px; clip-path: inset(0 50% 0 0); }
.genre-grid[data-card="ticket"] .gnum { background: transparent; border: 0; padding: 0 2px; gap: 3px; }
.genre-grid[data-card="ticket"] .gnum + .gnum { border-left: 1px solid rgba(200,150,130,0.25); border-radius: 0; }
.genre-grid[data-card="ticket"] .gnum b { font-size: 13.5px; font-weight: 900; color: var(--tk-num); letter-spacing: -0.01em; }
.genre-grid[data-card="ticket"] .gnum.is-empty b { color: #cdc4bf; }

/* ===== 페이지 번호 ===== */
.genre-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 40px 0 10px; }
.genre-pager button {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.genre-pager button:hover { background: var(--orange-soft); color: var(--orange-deep); }
.genre-pager button.active { background: var(--orange); color: #fff; }
.genre-pager button.nav { border-color: var(--line); padding: 0 14px; }
.genre-pager button[disabled] { opacity: 0.3; pointer-events: none; }
.genre-pager .ellipsis { min-width: 20px; text-align: center; color: #c0c0c0; font-size: 13px; }

@media screen and (max-width: 1200px) {
}
@media screen and (max-width: 700px) {
  .genre-grid[data-card="row"] .gcard { grid-template-columns: 64px minmax(0, 1fr); }
  .genre-grid[data-card="row"] .gcard-cover { width: 64px; height: 64px; }
  .genre-grid[data-card="row"] .gcard-nums { grid-column: 1 / -1; }
  .genre-grid[data-card="cover"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .genre-grid[data-card="ticket"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .genre-grid[data-card="ticket"] .gnum b { font-size: 11.5px; }
}

/* ---------- 상세 페이지 (기존 구조 재사용) ---------- */
.post-detail { grid-column: 1 / -1; }
.post-hero {
  position: relative; min-height: 220px; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; background-color: var(--orange-soft);
  display: flex; align-items: flex-end; margin-bottom: 28px;
}
.post-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.62) 100%); }
.post-hero .inner { position: relative; z-index: 2; padding: 26px; }
.post-hero h1 { font-size: 24px; font-weight: 900; color: #fff; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.post-hero .meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: #f0e9e6; }

/* song-info-card는 본문글(karaoke-sync 위젯)에 자체 포함되도록 이동됨 */

.entry-content { padding: 8px 0 30px; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.entry-content a { color: var(--orange-deep); text-decoration: underline; }
.entry-content img { border-radius: 10px; }

/* ---------- 티스토리 기본 공감/공유/통계 툴바 숨김 (애드온 태그 미사용시 강제 삽입됨) ---------- */
#post_button_group, .container_postbtn { display: none !important; }

/* ---------- 댓글 관련: 이름카드 팝업은 완전히 숨기고, 댓글 영역은 기본 숨김 후 버튼으로 토글 ---------- */
.tt_box_namecard { display: none !important; }
.comments, .tt-comment-cont { display: none; margin-top: 20px; }
body.sc-comments-open .comments, body.sc-comments-open .tt-comment-cont { display: block; }

.action-bar { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; position: relative; flex-wrap: wrap; }
.action-bar .comment-toggle-btn { padding: 8px 16px; border-radius: 18px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; background: #fff; cursor: pointer; }
.action-bar .comment-toggle-btn.open { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-deep); }
.action-bar .copyright-line { margin: 0 0 0 auto; font-size: 12px; color: #b6b6b6; }
@media screen and (max-width: 560px) {
  .action-bar .copyright-line { margin: 8px 0 0 0; flex-basis: 100%; }
}
.action-bar .like-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 18px; background: var(--orange-soft); font-size: 13px; font-weight: 700; color: var(--orange-deep); }
.action-bar .like-btn.liked .like-icon { color: var(--orange-deep); }
.action-bar .share-btn { padding: 8px 16px; border-radius: 18px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.action-bar .share-msg { position: absolute; right: 0; top: -22px; font-size: 12px; color: var(--orange-deep); opacity: 0; transition: opacity .2s ease; }
.action-bar .share-msg.show { opacity: 1; }

.tag-box { padding: 20px 0; border-top: 1px solid var(--line); }
.tag-box h3 { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--text-dim); }
.tag-box a { display: inline-block; margin: 0 8px 8px 0; padding: 6px 14px; border-radius: 16px; border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.tag-box a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.comments, .tt-comments-wrap { padding: 24px 0; }

.protected-form { text-align: center; padding: 60px 0; grid-column: 1 / -1; }
.protected-form h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.protected-form p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.protected-form input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; margin-right: 8px; }
.protected-form button { padding: 10px 18px; border-radius: 18px; background: var(--orange); color: #fff; font-weight: 700; }

/* ---------- 페이지네이션 ---------- */
.pagination { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 10px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12.5px; color: var(--text-dim); }
.pagination a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.pagination a.selected, .pagination a.on { background: var(--orange); color: #fff; }
.pagination .prev, .pagination .next { width: auto; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); }
.pagination .no-more-prev, .pagination .no-more-next { opacity: 0.3; pointer-events: none; }

/* ---------- 푸터 (후원카드 + 최근 업데이트 음악 + 네비카드) ---------- */
#footer { margin-top: 0; padding: 0; border-top: none; background: #fff; }
#footer .inner-footer { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 40px 12px 28px; box-sizing: border-box; }
#footer .footer-grid { display: grid; grid-template-columns: 350px 1fr 1fr; gap: 18px; align-items: stretch; min-height: 180px; }

/* 후원 카드 */
#footer .footer-support-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 22px 24px; background: var(--orange); border-radius: 16px; box-sizing: border-box;
}
#footer .fsc-top { display: flex; align-items: flex-start; gap: 12px; }
#footer .fsc-icon {
  width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.25); border-radius: 50%; color: #fff; font-size: 20px;
}
#footer .fsc-title { display: flex; flex-direction: column; gap: 4px; }
#footer .fsc-title strong { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; }
#footer .fsc-title span { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.9); line-height: 1.4; }
#footer .fsc-bottom-row { display: flex; align-items: stretch; gap: 10px; height: 100px; }
#footer .fsc-qr-wrap {
  flex-shrink: 0; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center;
  padding: 5px; background: #fff; border-radius: 10px; box-sizing: border-box;
}
#footer .fsc-qr-img { width: 100%; height: 100%; object-fit: contain; display: block; }
#footer .fsc-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
  font-size: 18px; font-weight: 800; color: var(--orange); background: #fff; border-radius: 10px;
  text-decoration: none; transition: all 0.2s ease; box-sizing: border-box;
}
#footer .fsc-btn:hover { background: #fff5f2; transform: translateY(-2px); }

/* 최근 업데이트 된 음악 카드 */
#footer .footer-recent-card {
  display: flex; flex-direction: column; justify-content: center; padding: 20px 22px;
  background: linear-gradient(160deg, #fffdf9 0%, #fff8f0 100%); border: 1px solid #f1e3cf;
  border-radius: 16px; box-sizing: border-box;
}
#footer .frc-header { text-align: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #ecddc0; }
#footer .frc-title { font-size: 15.5px; font-weight: 800; color: var(--orange); letter-spacing: -0.2px; }
/* 곡이 1~4개 어느 때든 칸 높이(38px)와 2줄 자리(84px)를 고정 → 적을 때 늘어나지 않음 */
#footer .frc-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 38px; align-content: start; gap: 8px 10px; margin-bottom: 10px; height: 84px; }
#footer .frc-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: #fff; border: 1px solid #ecddc0; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
#footer .frc-item:hover { border-color: var(--orange); }
#footer .frc-item:hover .frc-item-title { color: var(--orange-deep); }
#footer .frc-artist-box {
  flex: 0 0 auto; max-width: 84px; padding: 3px 7px; border-radius: 6px;
  background: var(--orange-soft); color: var(--orange-deep); font-size: 10px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#footer .frc-item-title {
  min-width: 0; font-size: 12px; font-weight: 700; color: #6b5a2a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#footer .frc-empty { grid-column: 1 / -1; text-align: center; font-size: 12px; color: #b0a488; padding: 10px 0; }
#footer .frc-page-nav { display: flex; gap: 6px; justify-content: center; align-items: center; margin-bottom: 6px; }
#footer .frc-page-arrow {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid #e0c87a; background: #fff; color: #8a6d23;
  font-size: 10px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0; line-height: 1;
}
#footer .frc-page-arrow:hover { background: #f5e4a0; }
#footer .frc-page-arrow[disabled] { opacity: 0.3; pointer-events: none; }
#footer .frc-page-num { font-size: 11px; font-weight: 700; color: #8a6d23; min-width: 14px; text-align: center; }
#footer .fdc-refresh { margin: 0 0 6px 0; font-size: 11px; font-weight: 600; color: #b0b0b0; text-align: center; }
#footer .fdc-signoff { margin: 0; padding-top: 12px; border-top: 1px solid #ecddc0; font-size: 12.5px; font-weight: 800; color: var(--orange); text-align: center; line-height: 1.6; }

/* 네비게이션 카드 */
#footer .footer-nav-card {
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px 24px;
  background: #fafbfc; border: 1px solid #eef1f4; border-radius: 16px; box-sizing: border-box; gap: 12px;
}
#footer .footer-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
#footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex-shrink: 0; }
#footer .fb-logo-img { height: 32px; width: auto; object-fit: contain; display: block; }
#footer .fb-desc { font-size: 12px; font-weight: 600; color: #94a3b8; }
#footer .box-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; flex-shrink: 0; }
#footer .fdc-email-wrap { position: relative; display: inline-block; }
#footer .fdc-email-popup {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
  border: 1px solid #ffd2bd; border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50; min-width: 220px; white-space: nowrap;
}
#footer .fdc-email-wrap.open .fdc-email-popup { display: block; }
#footer .fdc-email-addr-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; }
#footer .fdc-email-addr { font-size: 13px; font-weight: 700; color: #1a1a1a; }
#footer .fdc-email-copy-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 3px 9px;
  font-size: 11px; font-weight: 700; color: var(--orange); background: #fff5f2; border: 1px solid #ffd2bd;
  border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all .15s ease;
}
#footer .fdc-email-copy-btn:hover { background: #ffe4d6; }
#footer .fdc-email-copy-btn.copied { background: var(--orange); color: #fff; border-color: var(--orange); }
#footer .fdc-email-go {
  display: flex; width: 100%; justify-content: center; padding: 8px 14px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 8px; text-decoration: none; transition: background .15s; box-sizing: border-box;
}
#footer .fdc-email-go:hover { background: var(--orange-deep); }
#footer .fdc-email-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 17px; min-height: 34px; background: #fff;
  border: 1px solid var(--orange); border-radius: 18px; font-size: 12px; font-weight: 700; color: var(--orange);
  text-decoration: none; transition: all .2s ease; cursor: pointer; white-space: nowrap; box-sizing: border-box;
}
#footer .fdc-email-btn:hover { background: #fff5f2; }
#footer .fdc-inquiry-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; min-height: 34px; background: #FFE300;
  border: 1px solid #111; border-radius: 18px; font-size: 12px; font-weight: 700; color: #111;
  text-decoration: none; transition: all .2s ease; cursor: pointer; white-space: nowrap; box-sizing: border-box;
}
#footer .fdc-inquiry-btn:hover { background: #ffd700; }
#footer .fdc-inquiry-icon { width: 14px; height: 14px; object-fit: contain; display: block; flex-shrink: 0; }
#footer .footer-nav-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 12px; border-top: 1px solid #eef1f4;
}
#footer .box-policy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#footer .box-policy .link-footer { font-size: 12.5px; font-weight: 700; color: #64748b; text-decoration: none; position: relative; }
#footer .box-policy .link-footer:hover { color: var(--orange); }
#footer .box-policy .link-footer.current { color: var(--orange); cursor: default; pointer-events: none; font-weight: 800; }
#footer .box-meta-text { text-align: right; line-height: 1.3; }
#footer .text-info { font-size: 11.5px; font-weight: 600; color: #b4b8c2; margin: 0; }
#footer address { font-size: 11px; font-style: normal; color: #cbd0d8; margin: 1px 0 0 0; }

@media screen and (max-width: 1300px) {
  #footer .footer-grid { grid-template-columns: 1fr 1fr; }
  #footer .footer-nav-card { grid-column: 1 / -1; }
}
@media screen and (max-width: 700px) {
  #footer .footer-grid { grid-template-columns: 1fr; }
  #footer .footer-nav-card { grid-column: auto; }
  #footer .inner-footer { padding: 24px 18px; }
  #footer .footer-nav-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  #footer .footer-nav-bottom { flex-direction: column; align-items: flex-start; }
  #footer .box-meta-text { text-align: left; }
}

/* ---------- 반응형 ---------- */
@media screen and (max-width: 900px) {
  .top-songs-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767px) {
  #header h1.logo a { height: 32px; }
  #header h1.logo a img { max-width: 140px; }
  #header .inner { padding: 10px 16px; }
  .content-wrap { padding: 20px 16px 16px; }
  .custom-gnb-wrapper { display: none; }
  .popular-lists { flex-direction: column; gap: 28px; }
  .search-hero { padding: 8px 16px 0; }
  .search-live { max-width: none; }
  .search-live-panel { max-width: none; }
  .search-hero-form input, .search-hero-submit { width: auto; }
  .post-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
}
  