/* 영문(라틴) 글씨체만 직접 호스팅 — 구글 폰트가 막힌 환경에서도 카세트 이름표는 같은 글씨체로 나옴 (한글/일본어는 구글 폰트) */
@font-face { font-family: 'Permanent Marker'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/permanent-marker.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/caveat-700.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Covered By Your Grace'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/covered-by-your-grace.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Reenie Beanie'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/reenie-beanie.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'East Sea Dokdo'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/east-sea-dokdo.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nanum Pen Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/nanum-pen-script.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/share-tech-mono.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/oswald-700.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Cassette Player Skin - overdrive
 * 포인트색은 사이트의 --accent-color 를 따라갑니다. */
.bgm-cassette {
    --cs-acc: var(--accent-color, #f08a3c);
    --cs-shell: #8f9ab2;
    position: fixed;
    right: var(--spacing-lg, 24px);
    bottom: var(--spacing-lg, 24px);
    width: 432px;
    box-sizing: border-box;
    padding: 46px 16px 26px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(26,27,33,.8), rgba(12,13,17,.83));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    z-index: 9999;
    font-family: var(--f-pre, system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif);
    color: #eceef3;
    transition: opacity .3s ease;
    transform: scale(var(--cs-s, 1));
    transform-origin: 0 0;
    opacity: 0;
}
.bgm-cassette.show { opacity: 1; }
.bgm-cassette *, .bgm-cassette *::before, .bgm-cassette *::after { box-sizing: border-box; }
.bgm-cassette button { font: inherit; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bgm-cassette button:focus-visible { outline: 2px solid var(--cs-acc); outline-offset: 3px; }

/* 카세트 몸체 색 (곡마다 순환) */
.bgm-cassette[data-skin="0"] { --cs-shell: #a4a9b4; } /* 반투명: 색을 입히지 않고 앨범 블러만 비치게 */
.bgm-cassette[data-skin="1"] { --cs-shell: #3a3f4d; } /* 반투명 어두운 버전 */
.bgm-cassette[data-skin="1"] .cs-art::after { content: ""; position: absolute; inset: 0; background: rgba(8,9,14,.42); }

/* 곡마다 바뀌는 손글씨체 */
.bgm-cassette { --cs-site-font: 'Permanent Marker', 'Nanum Pen Script', 'Yomogi', cursive; --cs-site-size: 38px; --cs-title-font: 'Permanent Marker', 'Nanum Pen Script', 'Yomogi', cursive; --cs-title-size: 16px; --cs-title-weight: 400; }
.bgm-cassette[data-font="1"] { --cs-site-font: 'Caveat', 'Nanum Pen Script', 'Zen Kurenaido', cursive; --cs-site-size: 47px; --cs-title-font: 'Caveat', 'Nanum Pen Script', 'Zen Kurenaido', cursive; --cs-title-size: 23px; --cs-title-weight: 700; }
.bgm-cassette[data-font="2"] { --cs-site-font: 'Covered By Your Grace', 'Nanum Pen Script', 'Potta One', cursive; --cs-site-size: 33px; --cs-title-font: 'Covered By Your Grace', 'Nanum Pen Script', 'Potta One', cursive; --cs-title-size: 18px; }
.bgm-cassette[data-font="3"] { --cs-site-font: 'Reenie Beanie', 'Nanum Pen Script', 'Yomogi', cursive; --cs-site-size: 49px; --cs-title-font: 'Reenie Beanie', 'Nanum Pen Script', 'Yomogi', cursive; --cs-title-size: 21px; }
.bgm-cassette[data-font="4"] { --cs-site-font: 'East Sea Dokdo', 'Nanum Pen Script', 'Zen Kurenaido', cursive; --cs-site-size: 44px; --cs-title-font: 'East Sea Dokdo', 'Nanum Pen Script', 'Zen Kurenaido', cursive; --cs-title-size: 22px; }
.bgm-cassette[data-font="5"] { --cs-site-font: 'Nanum Pen Script', 'Potta One', cursive; --cs-site-size: 44px; --cs-title-font: 'Nanum Pen Script', 'Potta One', cursive; --cs-title-size: 21px; }

.bgm-cassette .player-content { display: flex; flex-direction: column; align-items: center; gap: 20px; position: static; }

/* 최소화: 은색 윈도우 바 한 줄 (끌어서 이동) */
.cs-mini { display: none; }
.bgm-cassette.minimized {
    width: 432px; height: 36px; padding: 0; border: 0; border-radius: 0; overflow: hidden;
    background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 60%, #d6d8dd 100%);
    box-shadow: 0 2px 0 #6d7078, 0 6px 14px rgba(0,0,0,.4), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.bgm-cassette.minimized .player-content { display: none; }
.bgm-cassette.minimized .minimized-overlay { display: none; }
.bgm-cassette.minimized .cs-mini { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 10px 0 16px; }
.cs-mini-led { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #8d9099; }
.bgm-cassette.playing .cs-mini-led { background: var(--cs-acc); box-shadow: 0 0 6px var(--cs-acc); }
.cs-mini-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-family: 'Share Tech Mono', 'Nanum Gothic Coding', monospace; font-size: 14px; color: #23252b; letter-spacing: .04em; }
.cs-mini-title span { display: inline-block; }
.cs-mini-title.run span { padding-left: 100%; animation: cs-run var(--cs-run, 12s) linear infinite; }
.cs-mini-btns { display: flex; gap: 4px; flex: none; }
.cs-mini .cs-tb-btn { width: 28px; }
.cs-mini-play .i-play { display: none; }
.bgm-cassette:not(.playing) .cs-mini-play .i-play { display: flex; }
.bgm-cassette:not(.playing) .cs-mini-play .i-pause { display: none; }
.cs-mini-play span { display: flex; }
.bgm-cassette .minimized-overlay { position: absolute; inset: 0; border-radius: inherit; display: none; z-index: 10; }

.cs-titlebar { position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 16px; border-radius: 0;
    background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 60%, #d6d8dd 100%); box-shadow: 0 2px 0 #6d7078, 0 4px 6px rgba(0,0,0,.4), inset 0 1px 0 #fff; z-index: 3; }
.cs-tb-title { font-family: 'Share Tech Mono', 'Nanum Gothic Coding', monospace; font-size: 15px; color: #23252b; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cs-tb-btns { display: flex; gap: 4px; flex: none; }
.cs-tb-btn { width: 28px; height: 22px; border: 0; border-radius: 4px; color: #23252b; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 55%, #dcdee3 100%); box-shadow: 0 2px 0 #6d7078, 0 3px 4px rgba(0,0,0,.4), inset 0 1px 0 #fff;
    transition: transform .12s cubic-bezier(.3,1.4,.5,1), box-shadow .12s ease; }
.cs-tb-btn svg { width: 12px; height: 12px; display: block; }
.cs-tb-btn:active { transform: translateY(2px); box-shadow: 0 0 0 #6d7078, 0 1px 2px rgba(0,0,0,.4), inset 0 2px 4px rgba(0,0,0,.3); }

/* 카세트 */
.cs-cassette { position: relative; width: 100%; aspect-ratio: 360 / 232; flex: none; }
.cs-art { position: absolute; left: .5%; top: .8%; width: 99%; height: 98.4%; border-radius: 4.2%/6.5%; overflow: hidden; pointer-events: none; background: rgba(255,255,255,.04); }
.cs-art img { position: absolute; left: -12%; top: -12%; width: 100% !important; height: 124% !important; max-width: none !important; max-height: none !important; margin: 0; padding: 0; border: 0; object-fit: cover; filter: blur(12px) saturate(1.2); opacity: .62; transition: opacity .2s ease; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%); }
.cs-art img[src=""] { opacity: 0; }

/* 반투명 어두운 버전(1): 앨범 썸네일을 카세트 전체에 꽉 채움 (0번은 오른쪽으로 옅어지는 블러) */
.bgm-cassette[data-skin="1"] .cs-art img { left: 0; top: 0; width: 100% !important; height: 100% !important; filter: blur(24px) saturate(1.35); transform: scale(1.25); opacity: .42; -webkit-mask-image: none; mask-image: none; }
.bgm-cassette[data-skin="1"] .cs-art::after { background: rgba(8,9,14,.03); }
.bgm-cassette[data-skin="1"] .cs-shadowrect { fill-opacity: .04; }

/* 반투명 스킨(0·1): 카세트 뒤 창 배경을 옅게 해서 투명한 카세트가 비쳐 보이게. 아래 컨트롤 쪽은 원래의 어두운 판 그대로 */
.bgm-cassette[data-skin="0"] { background: linear-gradient(180deg, rgba(26,27,33,.42) 0, rgba(26,27,33,.42) 300px, rgba(26,27,33,.8) 400px, rgba(12,13,17,.83) 100%); }
.bgm-cassette[data-skin="1"] { background: linear-gradient(180deg, rgba(26,27,33,.3) 0, rgba(26,27,33,.3) 300px, rgba(26,27,33,.8) 400px, rgba(12,13,17,.83) 100%); }
/* 최소화 막대는 반투명 스킨에서도 은색 불투명 (위 배경 규칙이 덮어쓰지 않게) */
.bgm-cassette[data-skin="0"].minimized, .bgm-cassette[data-skin="1"].minimized { background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 60%, #d6d8dd 100%); }

.cs-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; z-index: 1; }

@keyframes cs-spin { to { transform: rotate(360deg); } }
.cs-reel { animation: cs-spin 1s linear infinite; animation-play-state: paused; transform-box: fill-box; transform-origin: center; }
.bgm-cassette.playing .cs-reel { animation-play-state: running; }

/* 스티커 위 글씨 (홈페이지 이름 / 곡 제목) */
.cs-site { position: absolute; z-index: 2; left: 13.5%; top: 5.8%; width: 73%; height: 13.6%; text-align: center; transform: rotate(-1.5deg); pointer-events: none; }
.cs-site span { position: relative; display: inline-block; font-family: var(--cs-site-font); font-size: calc(var(--cs-site-size) * .8); line-height: normal; color: #1f2230; opacity: .92; white-space: nowrap; }
.cs-sticker-title { position: absolute; z-index: 2; left: 12.75%; top: 62.8%; width: 74.5%; height: 11.2%; display: flex; align-items: stretch; pointer-events: none; }
.cs-sticker-clip { flex: 1; min-width: 0; height: 100%; overflow: hidden; text-align: center; white-space: nowrap; font-family: var(--cs-title-font); font-size: var(--cs-title-size); font-weight: var(--cs-title-weight); color: #20222a; line-height: normal; }
.cs-sticker-clip span { position: relative; display: inline-block; }
.cs-bl { display: inline-block; width: 0; height: 0; }
@keyframes cs-run { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.cs-sticker-clip.run span { padding-left: 100%; animation: cs-run var(--cs-run, 12s) linear infinite; }

/* 곡 정보 */
.cs-info { width: 100%; text-align: center; }
.cs-track { height: 28px; line-height: 28px; font-size: 21px; font-weight: 700; color: #eceef3; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.cs-rule { width: 64%; height: 1px; margin: 9px auto 8px; background: rgba(255,255,255,.28); }
.cs-status { height: 16px; line-height: 16px; font-size: 13px; color: #8c94a6; letter-spacing: .14em; text-transform: uppercase; }
.cs-status::before { content: 'PAUSED'; }
.bgm-cassette.playing .cs-status::before { content: 'NOW PLAYING'; }

/* 진행 바 */
.cs-progress { width: 100%; }
.cs-segs { display: flex; gap: 6px; padding: 9px 10px; border-radius: 7px; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 3px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.08); }
.cs-seg { flex: 1; height: 10px; border-radius: 2px; background: rgba(255,255,255,.16); box-shadow: inset 0 1px 1px rgba(0,0,0,.18); cursor: pointer; }
.cs-seg.on { background: var(--cs-acc); opacity: .85; box-shadow: 0 0 4px color-mix(in srgb, var(--cs-acc) 45%, transparent); }
.cs-times { display: flex; justify-content: space-between; margin-top: 7px; font-family: 'Share Tech Mono', monospace; font-size: 14px; color: #9aa2b4; letter-spacing: .06em; }

/* 볼륨 */
.cs-volume { width: 100%; display: flex; align-items: center; gap: 12px; }
.cs-mute { margin-left: -9px; width: 36px; height: 36px; flex: none; border: 0; background: none; color: #9aa2b4; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.cs-vol { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 8px; border-radius: 4px; margin: 0; cursor: pointer; --v: 30%; background: linear-gradient(90deg, var(--cs-acc) var(--v), rgba(255,255,255,.16) var(--v)); box-shadow: inset 0 1px 1px rgba(0,0,0,.18); }
.cs-vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fff, #b9bcc3 60%, #8d9098); box-shadow: 0 3px 6px rgba(0,0,0,.55), inset 0 -1px 2px rgba(0,0,0,.25); }
.cs-vol::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fff, #b9bcc3 60%, #8d9098); box-shadow: 0 3px 6px rgba(0,0,0,.55); }
.cs-vol-num { width: 40px; text-align: right; font-family: 'Share Tech Mono', monospace; font-size: 14px; color: #9aa2b4; }

/* 키 */
.cs-controls { width: 100%; display: flex; align-items: center; gap: 16px; }
.cs-toggle { width: 44px; height: 44px; flex: none; border: 0; background: none; color: #737b8d; font-size: 20px; display: flex; align-items: center; justify-content: center; position: relative; transition: color .15s ease, background-color .15s ease, transform .12s ease; }
.cs-toggle.active, .cs-toggle.repeat-one { color: var(--cs-acc); }
.cs-toggle:active { transform: scale(.9); }
#repeat-btn.repeat-one::after { content: '1'; position: absolute; right: 6px; top: 7px; font-size: 10px; font-weight: 800; line-height: 1; }
.cs-toggle-sm { width: 32px; height: 32px; font-size: 15px; border-radius: 50%; }
.cs-toggle-sm.active { background: color-mix(in srgb, var(--cs-acc) 16%, transparent); }
.cs-spacer { display: none; width: 44px; flex: none; }
#list-toggle-btn[style*="none"] + .cs-spacer { display: block; }
.cs-keys { flex: 1; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 12px; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 3px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.08); }
.cs-key { position: relative; flex: 1; height: 58px; border: 0; border-radius: 7px; color: #2a2c32; font-size: 19px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 55%, #dcdee3 100%);
    box-shadow: 0 4px 0 #6d7078, 0 6px 8px rgba(0,0,0,.45), inset 0 1px 0 #fff;
    transition: transform .14s cubic-bezier(.3,1.4,.5,1), box-shadow .14s ease; }
.cs-key-play { flex: 1.5; height: 68px; font-size: 26px; }
.cs-key:not(:disabled):active { transform: translateY(4px); box-shadow: 0 0 0 #6d7078, 0 1px 3px rgba(0,0,0,.45), inset 0 3px 7px rgba(0,0,0,.35); }
.cs-key:disabled { opacity: .45; cursor: default; }
.cs-key-play::before { content: ''; position: absolute; top: 9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #8d9099; }
.bgm-cassette.playing .cs-key-play { background: linear-gradient(180deg, #a9acb3, #cfd2d8); box-shadow: inset 0 3px 7px rgba(0,0,0,.4); }
.bgm-cassette.playing .cs-key-play::before { background: var(--cs-acc); box-shadow: 0 0 7px var(--cs-acc); }

/* 재생 목록: 카세트 아래~키 위 영역만 덮음 */
.cs-playlist { position: absolute; z-index: 5; left: 16px; right: 16px; top: var(--cs-pl-top, 318px); bottom: var(--cs-pl-bottom, 104px); padding: 0; border-radius: 0; overflow: hidden;
    background: linear-gradient(180deg, rgba(40,42,50,.95), rgba(20,21,26,.98)); border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 36px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; }
.cs-playlist[style*="block"] { display: flex !important; animation: cs-pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes cs-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.cs-pl-head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 30px; padding: 0 6px 0 12px; background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 60%, #d6d8dd 100%); box-shadow: 0 2px 0 #6d7078, inset 0 1px 0 #fff; font-family: 'Share Tech Mono', 'Nanum Gothic Coding', monospace; font-size: 14px; letter-spacing: .08em; color: #23252b; }
.cs-pl-btns { display: flex; gap: 4px; }
.cs-pl-head .cs-toggle { width: 28px; height: 22px; border-radius: 4px; color: #23252b; font-size: 12px; background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 55%, #dcdee3 100%); box-shadow: 0 2px 0 #6d7078, 0 3px 4px rgba(0,0,0,.4), inset 0 1px 0 #fff; }
.cs-pl-head .cs-toggle:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }
.cs-pl-head .cs-toggle.active { background: linear-gradient(180deg, #a9acb3, #cfd2d8); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); transform: translateY(2px); color: var(--cs-acc); }
.cs-playlist .playlist { list-style: none; margin: 0; padding: 8px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; counter-reset: cs-n; }
.cs-playlist .playlist::-webkit-scrollbar { width: 6px; }
.cs-playlist .playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; }
.cs-playlist .playlist li { counter-increment: cs-n; display: flex; align-items: center; gap: 8px; padding: 10px; margin: 0; border: 0; border-radius: 0; cursor: pointer; font-size: 16px; color: #b9bfcc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: transparent; }
.cs-playlist .playlist li::before { content: counter(cs-n, decimal-leading-zero); width: 22px; flex: none; font-family: 'Share Tech Mono', monospace; font-size: 13px; opacity: .7; }
.cs-playlist .playlist li:hover { background: rgba(255,255,255,.06); color: #fff; }
.cs-playlist .playlist li.current { color: #fff; font-weight: 700; background: rgba(255,255,255,.14); }

.bgm-cassette .volume-popup { display: none !important; }


/* 드래그 이동 / 크기 조절 */
.cs-titlebar { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.bgm-cassette.cs-dragging, .bgm-cassette.cs-dragging .cs-titlebar { cursor: grabbing; transition: none; }
.bgm-cassette.cs-resizing { transition: none; }
.cs-tb-btn { cursor: pointer; }
.cs-grip { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; z-index: 6; cursor: nwse-resize; touch-action: none; opacity: .5;
    background: linear-gradient(135deg, transparent 0 46%, #cfd3dc 46% 54%, transparent 54% 66%, #cfd3dc 66% 74%, transparent 74% 86%, #cfd3dc 86% 94%, transparent 94%); }
.cs-grip:hover { opacity: .9; }

/* 모바일: 아래에 붙은 납작한 한 줄 바 (펼치면 화면 폭에 맞춰 축소) */
.bgm-cassette.cs-mobile .cs-grip { display: none; }
.bgm-cassette.cs-mobile .cs-titlebar { cursor: default; }
.bgm-cassette.cs-mobile.minimized { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100%; height: calc(42px + env(safe-area-inset-bottom, 0px)); transform: none; cursor: default; box-shadow: 0 -2px 10px rgba(0,0,0,.35), inset 0 1px 0 #fff; }
.bgm-cassette.cs-mobile.minimized .cs-mini { height: 42px; padding: 0 10px 0 14px; }
.bgm-cassette.cs-mobile.minimized .cs-mini .cs-tb-btn { width: 34px; height: 28px; }

/* 불투명 카세트 (5=A 크림, 6=D 레드 라벨, 7=E 올 블랙, 8=F 크림 라벨) */
.cs-opA, .cs-opD, .cs-opO { display: none; }
.bgm-cassette[data-skin="5"] .cs-opA, .bgm-cassette[data-skin="9"] .cs-opA, .bgm-cassette[data-skin="10"] .cs-opA,
.bgm-cassette[data-skin="6"] .cs-opD, .bgm-cassette[data-skin="7"] .cs-opD, .bgm-cassette[data-skin="8"] .cs-opD,
.bgm-cassette[data-skin="6"] .cs-opO, .bgm-cassette[data-skin="7"] .cs-opO, .bgm-cassette[data-skin="8"] .cs-opO { display: inline; }
.bgm-cassette[data-skin="5"] { --cs-bodyc: #e8dcc2; }
.bgm-cassette[data-skin="6"] { --cs-bodyc: #17171a; --cs-plate: #d8402f; --cs-plate-st: #a52c1f; --cs-num: #1b1b1f; --cs-txt: #1b1b1f; --cs-win: #0c0c0f; }
.bgm-cassette[data-skin="7"] { --cs-bodyc: #24252a; --cs-plate: #33353b; --cs-plate-st: #50525a; --cs-num: #f1f1ee; --cs-txt: #cfd0d4; --cs-win: #07070a; }
.bgm-cassette[data-skin="8"] { --cs-bodyc: #17171a; --cs-plate: #e9dfc8; --cs-plate-st: #b9ad92; --cs-num: #1b1b1f; --cs-txt: #1b1b1f; --cs-win: #0c0c0f; }
.bgm-cassette[data-skin="5"] .cs-shellrect, .bgm-cassette[data-skin="9"] .cs-shellrect, .bgm-cassette[data-skin="10"] .cs-shellrect, .bgm-cassette[data-skin="6"] .cs-shellrect, .bgm-cassette[data-skin="7"] .cs-shellrect, .bgm-cassette[data-skin="8"] .cs-shellrect { fill: var(--cs-bodyc); stroke-opacity: .25; }
.bgm-cassette[data-skin="5"] .cs-shadowrect, .bgm-cassette[data-skin="9"] .cs-shadowrect, .bgm-cassette[data-skin="10"] .cs-shadowrect, .bgm-cassette[data-skin="6"] .cs-shadowrect, .bgm-cassette[data-skin="7"] .cs-shadowrect, .bgm-cassette[data-skin="8"] .cs-shadowrect,
.bgm-cassette[data-skin="5"] .cs-tapeup, .bgm-cassette[data-skin="9"] .cs-tapeup, .bgm-cassette[data-skin="10"] .cs-tapeup, .bgm-cassette[data-skin="6"] .cs-tapeup, .bgm-cassette[data-skin="7"] .cs-tapeup, .bgm-cassette[data-skin="8"] .cs-tapeup,
.bgm-cassette[data-skin="5"] .cs-tapebot, .bgm-cassette[data-skin="9"] .cs-tapebot, .bgm-cassette[data-skin="10"] .cs-tapebot, .bgm-cassette[data-skin="6"] .cs-tapebot, .bgm-cassette[data-skin="7"] .cs-tapebot, .bgm-cassette[data-skin="8"] .cs-tapebot,
.bgm-cassette[data-skin="5"] .cs-art, .bgm-cassette[data-skin="9"] .cs-art, .bgm-cassette[data-skin="10"] .cs-art, .bgm-cassette[data-skin="6"] .cs-art, .bgm-cassette[data-skin="7"] .cs-art, .bgm-cassette[data-skin="8"] .cs-art,
.bgm-cassette[data-skin="6"] .cs-spec, .bgm-cassette[data-skin="7"] .cs-spec, .bgm-cassette[data-skin="8"] .cs-spec,
.bgm-cassette[data-skin="6"] .cs-stktop, .bgm-cassette[data-skin="7"] .cs-stktop, .bgm-cassette[data-skin="8"] .cs-stktop,
.bgm-cassette[data-skin="6"] .cs-typeline, .bgm-cassette[data-skin="7"] .cs-typeline, .bgm-cassette[data-skin="8"] .cs-typeline { display: none; }
.bgm-cassette[data-skin="5"] .cs-clipg, .bgm-cassette[data-skin="9"] .cs-clipg, .bgm-cassette[data-skin="10"] .cs-clipg { clip-path: url(#cs-wnA); }
.bgm-cassette[data-skin="6"] .cs-clipg, .bgm-cassette[data-skin="7"] .cs-clipg, .bgm-cassette[data-skin="8"] .cs-clipg { clip-path: url(#cs-wnD); }
.bgm-cassette[data-skin="6"] .cs-reelgrp, .bgm-cassette[data-skin="7"] .cs-reelgrp, .bgm-cassette[data-skin="8"] .cs-reelgrp { transform: translate(180px, 102px) scale(.88) translate(-180px, -116px); }
.cs-opD .cs-plate { fill: var(--cs-plate); stroke: var(--cs-plate-st); }
.cs-opD .cs-win { fill: var(--cs-win); }
.cs-opO .cs-num { fill: var(--cs-num); }
.cs-opO .cs-txt { fill: var(--cs-txt); }

/* 반사광은 유리(릴 창)에만, 몸체(플라스틱)에는 없음 */
.cs-glossp { clip-path: url(#cs-wnA); }
.bgm-cassette[data-skin="6"] .cs-glossp, .bgm-cassette[data-skin="7"] .cs-glossp, .bgm-cassette[data-skin="8"] .cs-glossp { clip-path: url(#cs-wnD); }

/* 반투명(유리): 반사광이 스티커 아래까지 같은 각도로 이어짐 */
.cs-glosst { display: none; }
.bgm-cassette[data-skin="0"] .cs-glosst, .bgm-cassette[data-skin="1"] .cs-glosst { display: inline; }
.bgm-cassette[data-skin="0"] .cs-glossp, .bgm-cassette[data-skin="1"] .cs-glossp { display: none; }
.cs-glosst path:first-child { opacity: .55; }
.cs-glosst path:last-child { opacity: .26; }
.bgm-cassette[data-skin="9"] { --cs-bodyc: #2b2c31; }
.bgm-cassette[data-skin="10"] { --cs-bodyc: #d9573f; }

/* 반투명: 릴 뭉치(원형 롤)를 더 투명하게 */
.bgm-cassette[data-skin="0"] .cs-pl, .bgm-cassette[data-skin="0"] .cs-pr,
.bgm-cassette[data-skin="1"] .cs-pl, .bgm-cassette[data-skin="1"] .cs-pr { opacity: .5; }

/* B: NOT FOR SALE 스티커(오른쪽) / C: 왼쪽 NOT FOR SALE + 스마일 스티커들 */
.cs-nfs, .cs-smile { display: none; }
.bgm-cassette[data-skin="9"] .cs-nfs, .bgm-cassette[data-skin="10"] .cs-smile { display: inline; }
.cs-smileTop { z-index: 3; pointer-events: none; display: none; }
.bgm-cassette[data-skin="10"] .cs-smileTop { display: block; }

/* ===== 가사 다이어리 (유료 에디션) ===== */
.cs-tb-btn.active { background: linear-gradient(180deg, #a9acb3, #cfd2d8); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); transform: translateY(2px); color: var(--accent-color, #f08a3c); }
.cs-mini .cs-ly-open { width: 28px; }
.cs-lylayer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.cs-lylayer[hidden], .cs-lywin[hidden], .cs-lycm[hidden] { display: none !important; }
.cs-lywin, .cs-lycm { position: fixed; display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; border-radius: 0;
    background: linear-gradient(180deg, rgba(26,27,33,.8), rgba(12,13,17,.83)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1); color: #b9bfcc; font-family: inherit; } /* 플레이어 몸통과 같은 유리 레시피 */
.cs-lywin .cs-pl-head, .cs-lycm .cs-pl-head { justify-content: flex-start; gap: 10px; font-family: 'Share Tech Mono', monospace; font-size: 14px; color: #23252b; letter-spacing: .06em; }
.cs-lywin .cs-pl-btns, .cs-lycm .cs-pl-btns { margin-left: auto; }
.cs-ly-sub { font-size: 12px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cs-ly-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.cs-ly-line { display: flex; align-items: baseline; gap: 8px; padding: 9px 10px; cursor: pointer; font-size: 16px; font-weight: 700; color: #b9bfcc; line-height: 1.45; }
.cs-ly-line .no { width: 22px; flex: none; font-family: 'Share Tech Mono', monospace; font-size: 13px; font-weight: 400; color: #7c8392; }
.cs-ly-line .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-ly-line:hover { background: rgba(255,255,255,.06); color: #fff; }
.cs-ly-line.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 800; }
.cs-ly-line .dot { width: 6px; height: 6px; flex: none; align-self: center; border-radius: 50%; background: var(--accent-color, #f08a3c); box-shadow: 0 0 6px 2px color-mix(in srgb, var(--accent-color, var(--accent-color, #f08a3c)) 55%, transparent); }
.cs-ly-cm { padding: 2px 10px 6px 40px; font-size: 14px; font-weight: 400; color: #9aa1b0; line-height: 1.45; }
.cs-ly-cm b { font-family: 'Share Tech Mono', monospace; font-weight: 400; color: #8b93a4; margin-right: 4px; }
.cs-ly-cm time, .cs-lyrow time { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: #7c8392; margin-left: 4px; }
.cs-ly-empty { padding: 28px 12px; text-align: center; font-size: 15px; color: #8b93a4; line-height: 1.8; }
.cs-ly-empty.sm { padding: 14px 4px; }
.cs-ly-foot { display: flex; gap: 14px; justify-content: center; padding: 14px 0 6px; font-size: 13px; }
.cs-ly-foot a { color: #8b93a4; text-decoration: underline; }
.cs-lyq { padding: 4px 4px 10px; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.5; }
.cs-lyrow { padding: 8px 4px; border-top: 1px solid rgba(255,255,255,.07); font-size: 16px; }
.cs-lyrow .a { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: #8b93a4; }
.cs-lyrow .t { color: #d3d7e0; font-weight: 400; line-height: 1.5; margin: 2px 0; overflow-wrap: anywhere; }
.cs-lyrow .x { border: 0; background: none; color: #7c8392; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cs-lyrow .x:hover { color: var(--accent-color, #f08a3c); }
.cs-lymsg { padding: 6px 12px; font-size: 13px; color: var(--accent-color, #f08a3c); }
.cs-lyform { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(255,255,255,.1); flex: none; }
.cs-lyform[hidden] { display: none; }
.cs-lyform input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: rgba(0,0,0,.28); color: #e8ebf2; font-size: 16px; outline: none; }
.cs-lyform input:focus { border-color: var(--accent-color, #f08a3c); }
.cs-lybtn { display: inline-block; height: 36px; line-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; color: #23252b; font-size: 14px; text-decoration: none; cursor: pointer;
    background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 55%, #dcdee3 100%); box-shadow: 0 2px 0 #6d7078, 0 3px 4px rgba(0,0,0,.4), inset 0 1px 0 #fff; }
.cs-lybtn:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }
.cs-lybtn:disabled { opacity: .5; }

.cs-ly-ga { font: 700 14px/1 system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
.cs-ly-empty .cs-lybtn { margin-top: 16px; height: 28px; line-height: 28px; padding: 0 12px; font-size: 13px; }
.cs-ly-guess { padding: 6px 10px 12px; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.5; }
.cs-ly-guess span { display: block; font-size: 12px; font-weight: 400; color: #8b93a4; margin-top: 2px; }
.cs-ly-guess .cs-lybtn { margin-top: 10px; height: 28px; line-height: 28px; padding: 0 14px; font-size: 13px; }
.cs-ly-line.pre { cursor: default; font-weight: 400; color: #9aa1b0; }
.cs-ly-line.pre:hover { background: none; color: #9aa1b0; }
.cs-ly-pop { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,9,12,.55); }
.cs-ly-dlg { width: 100%; max-width: 300px; background: linear-gradient(180deg, #25272d 0%, #1a1b20 100%); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.cs-ly-dlg .cs-pl-head { justify-content: space-between; }
.cs-ly-dbody { padding: 18px 18px 20px; text-align: center; }
.cs-ly-dbody .nm { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.45; overflow-wrap: anywhere; }
.cs-ly-dbody .ex { margin-top: 6px; font-size: 13px; color: #8b93a4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-ly-dbody .q { margin-top: 16px; font-size: 15px; color: #d3d7e0; }
.cs-ly-dbody .bt { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.cs-ly-dbody .cs-lybtn { height: 32px; line-height: 32px; min-width: 76px; padding: 0 14px; font-size: 14px; }

/* 코멘트 창: 시안(E)과 동일하게 — 작성자(모노) / 내용 / 시간(모노) 한 줄 */
.cs-lyq { padding: 6px 10px 12px; font-size: 15px; font-weight: 400; color: #9aa2b4; line-height: 1.4; }
.cs-lyrow { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-top: 0; font-size: 16px; }
.cs-lyrow .a { width: 44px; flex: none; font: 13px/1.6 'Share Tech Mono', 'Nanum Gothic Coding', monospace; color: #aab2c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-lyrow .t { flex: 1; min-width: 0; font-size: 16px; font-weight: 400; color: #c9cfdd; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.cs-lyrow time.d { flex: none; margin: 0; font: 13px/1.8 'Share Tech Mono', monospace; color: #7c8392; }
.cs-lyrow .x { flex: none; margin-left: -6px; font-size: 15px; line-height: 1.7; opacity: .7; }
.cs-lyform { padding: 10px 14px 12px; }
.cs-lyform input { height: 38px; border-radius: 4px; }
.cs-lyform .cs-lybtn { height: 38px; line-height: 38px; width: 60px; padding: 0; text-align: center; font-size: 15px; }

/* 확인 박스: 팝업 모양이지만 가사 위에 겹치지 않고 본문 맨 위에 들어간다 */
.cs-ly-dlg.inline { margin: 4px 0 10px; padding: 16px 16px 18px; text-align: center; background: linear-gradient(180deg, #25272d 0%, #1a1b20 100%); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.cs-ly-dlg.inline .nm { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.45; overflow-wrap: anywhere; }
.cs-ly-dlg.inline .q { margin-top: 10px; font-size: 14px; color: #aab2c4; }
.cs-ly-dlg.inline .bt { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.cs-ly-dlg.inline .cs-lybtn { height: 32px; line-height: 32px; min-width: 76px; padding: 0 14px; font-size: 14px; }

/* 코멘트 창 다듬기: 가사와 같은 굵기·크기, 이름/내용 정렬, 사이트 강조색 */
#ly-layer, #ly-layer * { -webkit-tap-highlight-color: transparent; }
.cs-lyq { padding: 8px 12px 12px; font-size: 15px; font-weight: 400; color: #9aa2b4; line-height: 1.4; }
.cs-lyrow { align-items: baseline; gap: 10px; padding: 8px 12px; }
.cs-lyrow .a { width: 44px; font: 13px/1.5 'Share Tech Mono', 'Nanum Gothic Coding', monospace; color: #aab2c4; }
.cs-lyrow .t { font-size: 16px; font-weight: 400; color: #c9cfdd; line-height: 1.5; }
.cs-lyrow time.d { font: 13px/1.5 'Share Tech Mono', monospace; }
.cs-lyrow .x { font-size: 15px; line-height: 1.5; margin-left: -4px; }
.cs-lyrow:hover { background: rgba(255,255,255,.06); }
.cs-lyform input, .cs-lyform input:focus, .cs-lyform input:focus-visible { outline: none !important; box-shadow: none !important; font-size: 16px; font-weight: 400; }
.cs-lyform input:focus { border-color: var(--accent-color, #f08a3c) !important; }
.cs-lyform input::placeholder { font-weight: 400; color: #7c8392; }
#ly-layer button:focus, #ly-layer button:focus-visible, #ly-layer .cs-ly-line:focus, #ly-layer .cs-ly-line:focus-visible { outline: none !important; box-shadow: none; }
#ly-layer .cs-lybtn:focus-visible, #ly-layer button:focus-visible { outline: 2px solid var(--accent-color, #f08a3c) !important; outline-offset: 2px; }

/* 직접 넣기 폼 (가사 창 안) */
.cs-ly-man { margin: 4px 0 10px; padding: 14px 14px 16px; background: linear-gradient(180deg, #25272d, #1a1b20); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.cs-ly-man .fh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cs-ly-man .fh b { font-size: 15px; font-weight: 700; color: #fff; }
.cs-ly-man .fh i { font: normal 11px 'Share Tech Mono', monospace; letter-spacing: .14em; color: #7c8392; }
.cs-ly-man label { display: block; margin: 10px 0 5px; font: 11px 'Share Tech Mono', monospace; letter-spacing: .18em; color: #9aa1b0; }
.cs-ly-man input, .cs-ly-man textarea { display: block; width: 100%; box-sizing: border-box; padding: 0 10px; background: #121317; border: 1px solid rgba(255,255,255,.16); border-radius: 0; box-shadow: inset 0 2px 4px rgba(0,0,0,.45); color: #e9ebf0; font: 14px system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; outline: none !important; }
.cs-ly-man input { height: 34px; }
.cs-ly-man textarea { height: 170px; padding: 9px 10px; line-height: 1.55; resize: none; color: #c9cfdd; }
.cs-ly-man input:focus, .cs-ly-man textarea:focus { border-color: var(--accent-color, #f08a3c); box-shadow: inset 0 2px 4px rgba(0,0,0,.45) !important; }
.cs-ly-man ::placeholder { color: #6b7282; }
.cs-ly-man .ft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.cs-ly-man .cs-lybtn { height: 30px; line-height: 30px; min-width: 76px; padding: 0 14px; font-size: 14px; }
.cs-ly-man .cs-lybtn.main { font-weight: 700; }

/* 곡이 바뀌었을 때 안내 줄 */
.cs-ly-hold { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; flex: none; padding: 8px 14px; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.28); color: #d3d7e0; font-size: 13px; text-align: left; cursor: pointer; }
.cs-ly-hold .pl { color: var(--accent-color, #f08a3c); font-size: 11px; }
.cs-ly-hold .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cs-ly-hold .go { flex: none; font: 12px 'Share Tech Mono', monospace; color: var(--accent-color, #f08a3c); letter-spacing: .06em; }
.cs-ly-hold:hover { background: rgba(255,255,255,.07); }


/* 사이트 공통 input:focus(주색 파란 테두리+글로우)를 가사 창 안에서는 강조색으로 덮어쓴다 */
#ly-layer input[type=text]:focus, #ly-layer textarea:focus { border: 1px solid var(--accent-color, #f08a3c) !important; box-shadow: none !important; outline: none !important; }

/* 가사·코멘트 창 상단 바를 위젯 상단 바(NOWHERE FM)와 같은 높이·글씨 크기로 */
.cs-lywin .cs-pl-head, .cs-lycm .cs-pl-head { height: 36px; padding: 0 10px 0 16px; font-size: 15px; letter-spacing: .04em; }
.cs-lywin .cs-pl-head .cs-ly-sub, .cs-lycm .cs-pl-head .cs-ly-sub { font-size: 13px; letter-spacing: .04em; }

/* 상단 바: 플레이어 상단 바(.cs-titlebar)와 같은 크기·같은 축소 비율 */
.cs-lywin .cs-pl-head, .cs-lycm .cs-pl-head { height: calc(36px * var(--hs,1)); padding: 0 calc(10px * var(--hs,1)) 0 calc(16px * var(--hs,1)); gap: calc(10px * var(--hs,1)); font-size: calc(15px * var(--hs,1)); letter-spacing: .04em; }
.cs-lywin .cs-pl-head .cs-ly-sub, .cs-lycm .cs-pl-head .cs-ly-sub { font-size: calc(13px * var(--hs,1)); }
.cs-lywin .cs-pl-btns, .cs-lycm .cs-pl-btns { gap: calc(4px * var(--hs,1)); }
.cs-lywin .cs-pl-head .cs-toggle, .cs-lycm .cs-pl-head .cs-toggle { width: calc(28px * var(--hs,1)); height: calc(22px * var(--hs,1)); font-size: calc(12px * var(--hs,1)); }

.cs-lywin .cs-pl-head .cs-toggle svg { width: calc(14px * var(--hs,1)); height: calc(14px * var(--hs,1)); display: block; }

/* 코멘트 쓰기 창: 가사 창 안쪽 아래에서 올라오는 시트 (가사는 그대로, 아래쪽만 그라데이션으로 어두워짐) */
.cs-lywin .cs-lycm { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; z-index: 3; border: 0; border-top: 1px solid rgba(255,255,255,.12); background: rgba(36,38,46,.9); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -8px 16px rgba(0,0,0,.28); animation: cs-lyup .3s ease-out; }
.cs-lywin.cm-open::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(12,13,17,0) 0%, rgba(12,13,17,.45) 22%, rgba(12,13,17,.75) 50%, rgba(12,13,17,.92) 78%, rgba(12,13,17,.97) 100%); animation: cs-lyfade .3s ease-out; }
@keyframes cs-lyup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cs-lyfade { from { opacity: 0; } to { opacity: 1; } }
.cs-lywin .cs-lycm .cs-pl-head { height: calc(30px * var(--hs,1)); font-size: calc(13px * var(--hs,1)); }
.cs-lywin .cs-lycm .cs-pl-head .cs-ly-sub { font-size: calc(12px * var(--hs,1)); }
.cs-lywin .cs-lycm #ly-cm-body { flex: none; padding: 0; overflow: visible; }
.cs-lywin .cs-lycm .cs-lyq { padding: 10px 16px 9px; font-size: 14px; color: #aab2c4; border-bottom: 1px solid rgba(255,255,255,.1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-lywin .cs-lycm .cs-lyform { border-top: 0; padding: 8px 12px 12px; }
.cs-ly-cm { padding: 2px 10px 8px 40px; font-size: 14px; color: #c9cfdd; }
.cs-ly-cm b { color: #9aa2b4; }
.cs-ly-cm .x { border: 0; background: none; color: #7c8392; font-size: 14px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cs-ly-cm .x:hover { color: var(--accent-color, #f08a3c); }

/* 코멘트 창 덧글 줄: 이름 아래에 시간, 본문 13px, ×는 본문 오른쪽 */
.cs-lycm .cs-lyrow { display: flex; align-items: flex-start; gap: 12px; padding: 8px 12px; }
.cs-lycm .cs-lyrow .m { width: 58px; flex: none; min-width: 0; }
.cs-lycm .cs-lyrow .a { width: auto; font: 13px/1.5 'Share Tech Mono', 'Nanum Gothic Coding', monospace; color: #aab2c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-lycm .cs-lyrow time.d { display: block; margin: 0; font: 12px/1.5 'Share Tech Mono', monospace; color: #7c8392; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.cs-lycm .cs-lyrow .t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; font-weight: 400; color: #c9cfdd; }
.cs-lycm .cs-lyrow .x { flex: none; margin: 0; font-size: 14px; line-height: 1.6; opacity: .7; }

/* 줄 아래 덧글: 연한 회색 배경으로 가사와 구분 */
.cs-ly-cm { margin: 0; padding: 8px 12px 8px 40px; background: rgba(255,255,255,.1); color: #d3d7e0; font-size: 14px; line-height: 1.5; }
.cs-ly-cm + .cs-ly-cm { border-top: 1px solid rgba(255,255,255,.07); }
.cs-ly-line + .cs-ly-cm { margin-top: 2px; }
.cs-ly-cm:last-of-type, .cs-ly-cm:has(+ .cs-ly-line) { margin-bottom: 6px; }
.cs-ly-cm b { color: #aab2c4; }

/* 줄 아래 덧글: 상자로 나뉘지 않고 한 덩어리로 */
.cs-ly-cm { padding: 3px 12px 3px 40px; border-top: 0 !important; }
.cs-ly-line + .cs-ly-cm { margin-top: 4px; padding-top: 10px; }
.cs-ly-cm:has(+ .cs-ly-line), .cs-ly-cm:has(+ .cs-ly-foot) { padding-bottom: 10px; margin-bottom: 6px; }
.cs-ly-cm { padding: 2px 12px 2px 40px; }
.cs-ly-line + .cs-ly-cm { margin-top: 2px; padding-top: 6px; }
.cs-ly-cm:has(+ .cs-ly-line), .cs-ly-cm:has(+ .cs-ly-foot) { padding-bottom: 6px; margin-bottom: 2px; }

.cs-ly-cm { position: relative; }
.cs-ly-cm .rp { position: absolute; left: 22px; top: 8px; color: #7c8392; }
.cs-ly-line + .cs-ly-cm .rp { top: 12px; }
.cs-ly-cm { padding-left: 60px; }
.cs-ly-cm .rp { left: 40px; }

/* 위계: 가사 > 덧글 (덧글은 한 단계 작고 흐리고 어둡게) */
.cs-ly-cm { background: rgba(0,0,0,.2); color: #aeb5c4; font-size: 13px; line-height: 1.55; font-weight: 400; }
.cs-ly-cm b { color: #7f8798; font-weight: 400; }
.cs-ly-cm time { font-size: 12px; color: #6f7889; }
.cs-ly-cm .rp { color: #6f7889; top: 7px; }
.cs-ly-line + .cs-ly-cm .rp { top: 11px; }

/* 눌러서 고른 줄: 번호·덧글 이름·시간이 또렷하게 */
.cs-ly-line.on .no { color: #e6e9f0; }
.cs-ly-cm { background: rgba(0,0,0,.26); }
.cs-ly-cm b { color: #a3abbc; }
.cs-ly-cm time { color: #8d96a9; }
.cs-ly-cm .rp { color: #8d96a9; }
/* 모아보기로 다 펼쳤을 때: 화살표와 이름만 강조색 (시간은 그대로 회색) */
.cs-ly-body.all .cs-ly-cm .rp, .cs-ly-body.all .cs-ly-cm b { color: var(--accent-color, #f08a3c); }

/* 곡이 바뀌었다는 띠: "가사 보기"를 한 덩어리 버튼으로 */
.cs-ly-hold .go { flex: none; padding: 4px 10px; border-radius: 4px; font: 700 12px/1 system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; letter-spacing: 0; white-space: nowrap; color: #23252b; background: linear-gradient(180deg, #f3f4f6 0%, #c4c7cd 55%, #dcdee3 100%); box-shadow: 0 2px 0 #6d7078, 0 3px 4px rgba(0,0,0,.4), inset 0 1px 0 #fff; }
.cs-ly-hold:hover .go { filter: brightness(1.06); }
.cs-ly-hold:active .go { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }

/* 확인 박스·직접 넣기 폼: 창 폭에 꽉 차게, 가사 영역과 같은 여백 */
.cs-ly-dlg.inline { max-width: none; width: auto; margin: 4px 0 12px; padding: 20px 18px 22px; }
.cs-ly-dlg.inline .nm { font-size: 18px; }
.cs-ly-dlg.inline .q { margin-top: 12px; font-size: 15px; }
.cs-ly-dlg.inline .bt { margin-top: 18px; gap: 12px; }
.cs-ly-dlg.inline .cs-lybtn { height: 36px; line-height: 36px; min-width: 96px; font-size: 15px; }
.cs-ly-line.pre .no { display: none; }
.cs-ly-line.pre { padding-left: 14px; }
.cs-ly-body:has(.cs-ly-man) { display: flex; flex-direction: column; }
.cs-ly-man { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 4px 0 4px; padding: 18px 18px 20px; }
.cs-ly-man .fh b { font-size: 17px; }
.cs-ly-man label { margin: 14px 0 6px; font-size: 12px; }
.cs-ly-man input { height: 40px; font-size: 15px; }
.cs-ly-man textarea { flex: 1; min-height: 200px; height: auto; font-size: 15px; }
.cs-ly-man .ft { margin-top: 18px; gap: 12px; }
.cs-ly-man .cs-lybtn { height: 36px; line-height: 36px; min-width: 96px; font-size: 15px; }

/* 곡 전체 감상: 가사 맨 아래 구역 + 상단 ♪ 길잡이 */
.cs-ly-sec { margin: 12px 0 8px; padding: 14px 10px 6px; border-top: 1px solid rgba(255,255,255,.14); }
.cs-ly-sec .k { font: 12px 'Share Tech Mono', monospace; letter-spacing: .16em; color: #aab2c4; }
.cs-ly-sec.on .k { color: #fff; }
.cs-ly-sec .c { padding-top: 8px; font-size: 14px; line-height: 1.6; color: #cfd4e0; font-weight: 400; overflow-wrap: anywhere; }
.cs-ly-sec .c b { font-weight: 400; color: #a3abbc; margin-right: 6px; }
.cs-ly-sec .c time { margin-left: 4px; font: 12px 'Share Tech Mono', monospace; color: #8d96a9; }
.cs-ly-sec .c .x { border: 0; background: none; color: #7c8392; font-size: 14px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cs-ly-sec .c .x:hover { color: var(--accent-color, #f08a3c); }
.cs-ly-sec .go { margin-top: 12px; }
.cs-ly-sec .go .cs-lybtn { height: 30px; line-height: 30px; padding: 0 14px; font-size: 13px; font-weight: 700; }
.cs-ly-body.all .cs-ly-sec .c b { color: var(--accent-color, #f08a3c); }
.cs-lywin .cs-pl-head #ly-song { width: auto; min-width: calc(28px * var(--hs,1)); padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.cs-lywin .cs-pl-head #ly-song .n { font: 700 11px/1 'Share Tech Mono', monospace; }
.cs-lywin .cs-pl-head #ly-song svg { width: calc(13px * var(--hs,1)); height: calc(13px * var(--hs,1)); }

/* 코멘트 창 덧글 줄: 이름-내용-×를 격자로 — 이름 칸은 가장 긴 이름에 맞춰 붙고 내용과 간격이 좁아짐 */
.cs-lycm #ly-cm-body { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: 10px; align-content: start; padding: 0 12px; }
.cs-lycm #ly-cm-body > .cs-lyq, .cs-lycm #ly-cm-body > .cs-ly-empty { grid-column: 1 / -1; margin: 0 -12px; }
.cs-lycm .cs-lyrow { display: contents; }
.cs-lycm .cs-lyrow .m, .cs-lycm .cs-lyrow .t, .cs-lycm .cs-lyrow .x { padding-top: 8px; padding-bottom: 8px; }
.cs-lycm .cs-lyrow .m { width: auto; max-width: 84px; }
.cs-lycm .cs-lyrow .x { align-self: start; margin: 0; padding-left: 2px; padding-right: 0; }
.cs-lywin .cs-lycm #ly-cm-body { display: block; padding: 0; }

/* 이름 - 내용 - 시간 - × */
.cs-lycm #ly-cm-body { grid-template-columns: max-content minmax(0, 1fr) auto auto; }
.cs-lycm .cs-lyrow .d { padding: 8px 0; font: 11px/1.9 'Share Tech Mono', monospace; color: #7c8392; white-space: nowrap; }

/* 곡 전체 감상 남기기: 은색 버튼 대신 얇은 고스트 줄 */
.cs-ly-sec .go { margin-top: 14px; }
#ly-layer .cs-ly-add { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; background: rgba(255,255,255,.03); color: #aab2c4; font: 13px/1 inherit; font-family: inherit; text-align: left; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
#ly-layer .cs-ly-add svg { flex: none; opacity: .8; }
#ly-layer .cs-ly-add:hover { color: #fff; border-color: var(--accent-color, #f08a3c); background: rgba(255,255,255,.06); }
#ly-layer .cs-ly-add:hover svg { color: var(--accent-color, #f08a3c); opacity: 1; }
#ly-layer .cs-ly-add:active { background: rgba(255,255,255,.1); }

/* 고스트 더 연하게 */
#ly-layer .cs-ly-add { border-color: rgba(255,255,255,.08); background: transparent; color: #7f879a; }
#ly-layer .cs-ly-add svg { opacity: .6; }

/* 코멘트 창 인용 가사: 가사 원문(선택 줄)과 동일 — 16px 굵게 흰색 */
.cs-lywin .cs-lycm .cs-lyq, .cs-lycm .cs-lyq { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.45; }

/* 코멘트 창 인용 가사: 가사 목록의 선택 줄과 같은 네모 박스 */
#ly-layer .cs-lycm .cs-lyq, #ly-layer .cs-lywin .cs-lycm .cs-lyq { display: flex; align-items: baseline; gap: 8px; margin: 8px 8px 6px; padding: 9px 10px; border: 0; background: rgba(255,255,255,.14); font-size: 16px; font-weight: 800; color: #fff; line-height: 1.45; -webkit-line-clamp: unset; overflow: visible; }
#ly-layer .cs-lycm .cs-lyq .no { width: 22px; flex: none; font: 400 13px 'Share Tech Mono', monospace; color: #e6e9f0; }
#ly-layer .cs-lycm .cs-lyq .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-lycm #ly-cm-body > .cs-lyq { margin: 8px -4px 6px; }

/* 강조색 정리: 눌림 상태 버튼(가·↳)과 가사 위젯의 장식용 강조색은 중립색으로. 남기는 곳: 덧글 점, 입력 포커스, 오류 */
.cs-tb-btn.active, .cs-pl-head .cs-toggle.active, .cs-toggle-sm.active { color: #23252b; }
.cs-ly-body.all .cs-ly-cm .rp, .cs-ly-body.all .cs-ly-cm b, .cs-ly-body.all .cs-ly-sec .c b { color: #a3abbc; }
.cs-lyrow .x:hover, .cs-ly-cm .x:hover, .cs-ly-sec .c .x:hover { color: #fff; }
.cs-ly-hold .pl { color: #cfd4e0; }
.cs-ly-hold .go { color: #23252b; }
.cs-ly-man input:focus, .cs-ly-man textarea:focus { border-color: rgba(255,255,255,.5); }
#ly-layer .cs-lybtn:focus-visible, #ly-layer button:focus-visible { outline: 2px solid rgba(255,255,255,.7) !important; }
#ly-layer .cs-ly-add:hover { border-color: rgba(255,255,255,.4); }
#ly-layer .cs-ly-add:hover svg { color: #fff; }
#ly-layer .cs-ly-man input[type=text]:focus, #ly-layer .cs-ly-man textarea:focus { border: 1px solid rgba(255,255,255,.5) !important; }

/* 카세트 위 MIN · NORMAL: 투명 스킨(0~4)은 TYPE I 문구와 같은 색, 불투명 스킨(5~10)은 주황 */
.bgm-cassette .cs-minn { fill: #f08a3c; fill-opacity: .9; }
.bgm-cassette[data-skin="0"] .cs-minn, .bgm-cassette[data-skin="1"] .cs-minn, .bgm-cassette[data-skin="3"] .cs-minn, .bgm-cassette[data-skin="4"] .cs-minn { fill: #ffffff; fill-opacity: .55; }
.cs-ly-man [hidden] { display: none !important; }

/* 확인 박스 버튼: 3개가 꽉 차지 않게 한 단계 작게 */
.cs-ly-dlg.inline .bt { gap: 8px; margin-top: 16px; }
.cs-ly-dlg.inline .cs-lybtn { height: 30px; line-height: 30px; min-width: 0; padding: 0 12px; font-size: 13px; }
.cs-ly-empty .cs-lybtn { height: 28px; line-height: 28px; padding: 0 11px; font-size: 13px; }

/* 유튜브 가수 이름이 있으면 상태 문구 대신 표시 (대문자 변환·자간 없이) */
.cs-status.has-artist { text-transform: none; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.cs-status.has-artist::before, .bgm-cassette.playing .cs-status.has-artist::before { content: none; }

/* 확인 박스와 직접 넣기 창의 버튼 크기를 같게 */
.cs-ly-man .cs-lybtn { height: 30px; line-height: 30px; min-width: 0; padding: 0 14px; font-size: 13px; }
.cs-ly-man .ft { gap: 8px; }

/* 코멘트 입력: 여러 줄 입력칸 (글이 길어지면 위로 늘어남, 등록 버튼은 아래에 붙음) */
.cs-lyform { align-items: flex-end; }
.cs-lyform textarea { flex: 1; min-width: 0; box-sizing: border-box; height: 36px; max-height: 130px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: rgba(0,0,0,.28); color: #e8ebf2; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4; resize: none; overflow-y: hidden; outline: none; display: block; }
.cs-lyform textarea::placeholder { font-weight: 400; color: #7c8392; }
#ly-layer .cs-lyform textarea { height: 40px; border-radius: 4px; padding: 8px 10px; outline: none !important; box-shadow: none !important; }
#ly-layer .cs-lyform textarea:focus { border-color: var(--accent-color, #f08a3c) !important; }

.cs-lyform textarea { min-height: 36px; }
#ly-layer .cs-lyform textarea { min-height: 40px; }

/* 비회원: 곡 전체 감상(ABOUT THIS SONG)만 보인다 */
.cs-ly-guest { margin: 14px 10px 4px; font-size: 13px; line-height: 1.6; color: #8d96a9; text-align: left; }
.cs-ly-guest a { color: #cfd4e0; text-decoration: underline; }
.cs-lywin.guest #ly-all { display: none; }
.cs-lywin.guest .cs-ly-foot { display: none; }
.cs-lywin.guest .cs-ly-sec { margin-top: 4px; border-top: 0; }
