/* 새 사이트에서 더한 작은 모양(아임웹 스크립트가 하던 일 대신) */
/* 페이지 사이 이동을 부드럽게(지원하는 브라우저만, 0.15초 겹쳐 바뀜 — 위쪽 메뉴는 그대로 보이고 아래만 바뀌는 느낌) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .15s; }
/* PC 메뉴: 마우스를 올리면 아래 메뉴 보이기 */
.viewport-nav > li.dropdown.open > .dropdown-menu { display: block; }
/* 영상 목록 칸 전체를 덮는 상세 페이지 링크 */
._item { position: relative; }
._item > .gw-dl { position: absolute; inset: 0; z-index: 5; }
/* 곡·영상 목록 칸: PC(992px 이상)는 찍힌 그대로(한 줄 4칸·3칸),
   그보다 좁으면 아임웹처럼 한 줄 2칸·간격 절반(7.5px) — 스크립트 없이 CSS로 */
@media (max-width: 991px) {
  #doz_body [id^="container_"].type_grid { display: flex !important; flex-wrap: wrap; margin: 0 -7.5px !important; }
  #doz_body [id^="container_"].type_grid > .gallery_row { display: contents !important; }
  #doz_body [id^="container_"].type_grid > .gallery_row > ._item { display: block !important; flex: 0 0 50%; width: 50% !important; padding: 7.5px !important; }
  #doz_body [id^="container_"].type_grid > .gallery_row > ._dummy_item { display: none !important; }
}
/* 썸네일 높이: 아임웹은 화면 너비가 바뀔 때마다 스크립트로 16:9 높이를 계산했다 → CSS 비율로 */
#doz_body [id^="container_"].type_grid ._img_wrap { min-height: 0 !important; aspect-ratio: 16 / 9; }
/* 포스터 크게 보기: 화면 높이의 80%·너비의 82%까지만(아임웹은 화면 가득), 화살표는 site.js가 포스터 옆에 둔다 */
.lg-outer.gw-lb-img .lg-image { max-height: 80vh !important; max-width: 82vw !important; }
@media (max-width: 767px) { .lg-outer.gw-lb-img .lg-image { max-height: 72vh !important; max-width: 74vw !important; } }
/* 늦게 불러오는 썸네일 자리 색 */
[data-gw-bg] { background-color: #f1ece5; }
/* 검색 페이지 */
.gw-sr { max-width: 1200px; margin: 0 auto; padding: 24px 16px 60px; }
.gw-sr-form { display: flex; gap: 8px; margin: 0 0 14px; }
.gw-sr-form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #d9d4cd; border-radius: 6px; font: inherit; font-size: 16px; background: #fff; }
.gw-sr-form button { height: 48px; padding: 0 20px; border: 0; border-radius: 6px; background: #1d1d1f; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gw-sr-count { margin: 0 0 18px; font-size: 15px; color: #4a4541; }
.gw-sr-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.gw-sr-list ._item { width: auto !important; float: none !important; padding: 0 !important; cursor: pointer; }
.gw-sr-list .img_wrap { aspect-ratio: 16 / 9; background-size: cover; background-position: center; border-radius: 6px; position: relative; }
.gw-sr-list .item_container { position: relative; }
.gw-sr-list .text_wrap { display: block !important; position: static !important; background: none !important; padding: 10px 2px 0 !important; }
.gw-sr-list .title { margin: 2px 0 2px; font-size: 15px; font-weight: 700; color: #1d1d1f; line-height: 1.4; }
.gw-sr-list .desc { margin: 0; font-size: 13px; color: #6e6a66; }
.gw-sr-g { display: inline-block; font-size: 11.5px; color: #8B6B4A; font-weight: 600; }
.gw-sr-none { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: #6e6a66; }
.gw-sr ~ .search_widget_v2, .gw-sr + * .search_widget_v2 { display: none; }
@media (max-width: 991px) { .gw-sr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } }
/* 작은 재생 창(2026-11-30 사용자 요청): 오른쪽 아래, 재생하면서 스크롤·다른 곡 누르기 가능 */
.gw-mp { position: fixed; right: 20px; bottom: 20px; z-index: 99990; width: 380px; background: #1d1d1f; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.28); animation: gwmp .2s ease-out; font-family: Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif; }
@keyframes gwmp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.gw-mp-v { aspect-ratio: 16 / 9; background: #000; }
.gw-mp-v iframe { width: 100%; height: 100%; border: 0; display: block; }
.gw-mp-bar { display: flex; align-items: center; gap: 2px; padding: 8px 6px 8px 12px; color: #fff; }
.gw-mp-tx { flex: 1; min-width: 0; line-height: 1.35; }
.gw-mp-t { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-mp-s { display: block; font-size: 12px; color: #b9b3ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-mp-n { flex: none; font-size: 11.5px; color: #b9b3ad; margin: 0 4px; }
.gw-mp-b { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.gw-mp-b:hover { background: rgba(255,255,255,.14); }
.gw-mp-big { font-size: 16px; }
._item.gw-playing ._img_wrap, ._item.gw-playing .img_wrap { box-shadow: 0 0 0 3px #8B6B4A; }
@media (max-width: 767px) {
  .gw-mp { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: min(64vw, 280px); border-radius: 8px; }
  .gw-mp-bar { padding: 6px 2px 6px 9px; }
  .gw-mp-t { font-size: 12.5px; }
  .gw-mp-s, .gw-mp-n, .gw-mp-big { display: none; }
  .gw-mp-b { width: 28px; height: 28px; font-size: 18px; }
}
