/* 一起听：一台浮在聊天页上方的 iPod classic。机身里所有尺寸都用 cqw（相对机身宽度），整台机器等比缩放。 */
.lt-overlay { position: fixed; inset: 0; z-index: 12042; pointer-events: none; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "PingFang SC", "Noto Sans TC", sans-serif; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.lt-overlay button, .lt-overlay input { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }


/* ── 机身 ── */
.lt-pod {
    --lt-w: 72vw;
    --w: min(var(--lt-w), 340px, calc((100dvh - 20px) * .462));
    position: fixed; left: 0; top: 0; pointer-events: auto; touch-action: none; width: var(--w); aspect-ratio: 1170 / 2532; container-type: inline-size; border-radius: 6cqw; overflow: hidden;
    transform-origin: 50% 100%; cursor: grab;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .48) 44%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(180deg, #d6d6d8 0%, #c6c6c8 38%, #bcbcbe 70%, #b1b1b3 100%);
    box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, .55), inset 0 0 0 .35cqw rgba(255, 255, 255, .35), inset 0 -1cqw 3cqw rgba(0, 0, 0, .25);
}
.lt-screen {
    position: absolute; left: 4%; top: 6.65%; width: 92%; height: 47.2%; box-sizing: border-box;
    border: 1.2cqw solid #0b0b0c; border-radius: 1.6cqw; background: #f7f7f7; color: #111; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: inset 0 0 1.4cqw rgba(0, 0, 0, .25), 0 .3cqw 0 rgba(255, 255, 255, .5);
}
.lt-bar { flex: none; height: 6.2cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 2cqw; font-size: 3.3cqw; background: linear-gradient(180deg, #efefef, #dcdcdd); border-bottom: .15cqw solid #c7c7c9; position: relative; }
.lt-bar-t { z-index: 1; max-width: 38cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lt-bar-c { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 500; }
.lt-bar-r { display: flex; align-items: center; gap: 2cqw; z-index: 1; }
.lt-ps { display: none; width: 1.9cqw; height: 2.3cqw; } .lt-ps.is-play { display: block; } .lt-ps svg { width: 100%; height: 100%; display: block; }
.lt-bat { width: 6.6cqw; height: 3.1cqw; display: block; }
.lt-body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.lt-hud { position: absolute; left: 50%; bottom: 3cqw; transform: translateX(-50%); padding: .8cqw 2.6cqw; border-radius: 3cqw; background: rgba(20, 20, 22, .82); color: #fff; font-size: 3cqw; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lt-hud.show { opacity: 1; }

/* 列表（菜单 / 歌单 / 搜索结果） */
.lt-list { flex: 1; overflow: hidden; }
.lt-row { display: flex; align-items: center; gap: 1.6cqw; min-height: 8.6cqw; padding: 1cqw 2.4cqw; box-sizing: border-box; font-size: 3.9cqw; border-bottom: .12cqw solid #ececee; cursor: pointer; }
.lt-row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.25; }
.lt-row-l small { font-size: 2.7cqw; color: #8b8b90; overflow: hidden; text-overflow: ellipsis; }
.lt-row-r { flex: none; font-size: 3cqw; color: #8b8b90; }
.lt-chev { flex: none; width: 1.7cqw; height: 1.7cqw; border-top: .5cqw solid #9a9aa0; border-right: .5cqw solid #9a9aa0; transform: rotate(45deg); margin-right: .6cqw; }
.lt-tag { margin-left: 1.2cqw; padding: 0 1.2cqw; border-radius: 1cqw; font-size: 2.4cqw; font-style: normal; background: #e8eefc; color: #3d6fe0; vertical-align: 1px; }
.lt-row.is-mark .lt-row-l::before { content: "♪ "; color: #2f80ff; }
.lt-row.is-sel { background: linear-gradient(180deg, #4aa0ff, #1b73f0); color: #fff; border-bottom-color: transparent; }
.lt-row.is-sel small, .lt-row.is-sel .lt-row-r { color: rgba(255, 255, 255, .78); }
.lt-row.is-sel .lt-chev { border-color: #fff; }
.lt-row.is-sel .lt-tag { background: rgba(255, 255, 255, .25); color: #fff; }
.lt-row.is-sel.is-mark .lt-row-l::before { color: #fff; }

/* 正在播放 */
.lt-tools { flex: none; display: flex; align-items: center; gap: 1cqw; padding: 3.2cqw 2.6cqw 0; }
.lt-grow { flex: 1; }
.lt-tb { width: 8cqw; height: 6.6cqw; padding: 0; border: 0; background: none; color: #6e6e73; display: grid; place-items: center; cursor: pointer; }
.lt-tb svg { width: 4.9cqw; height: 4.9cqw; }
.lt-tb.on { color: #1b7bff; }
.lt-lt { font-size: 2.8cqw; color: #8b8b90; max-width: 40cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 1.5cqw; }
.lt-main { flex: 1; min-height: 0; display: flex; align-items: center; gap: 5.4cqw; padding: 0 3.4cqw 0 3.8cqw; }
.lt-cover { flex: none; width: 38cqw; aspect-ratio: 1; align-self: flex-start; margin-top: 5cqw; position: relative; transform: perspective(60cqw) rotateY(10deg); transform-origin: left center; -webkit-box-reflect: below 0 linear-gradient(transparent 62%, rgba(0, 0, 0, .32)); background: #1a1a1c; }
.lt-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-cov-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12cqw; color: #55565c; background: linear-gradient(135deg, #2b2c31, #131315); }
.lt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .8cqw; align-self: center; margin-top: 3cqw; }
.lt-info b { font-size: 4.2cqw; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lt-info span { font-size: 3.3cqw; color: #8b8b90; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lt-info em { font-style: normal; font-size: 3.2cqw; color: #8b8b90; margin-top: 2.6cqw; }
.lt-prog { flex: none; display: flex; align-items: center; gap: 2.2cqw; padding: 0 4.4cqw 3.6cqw; font-size: 3cqw; font-variant-numeric: tabular-nums; }
.lt-prog > span { flex: none; width: 9.6cqw; } .lt-prog > span:last-child { text-align: right; width: 10.6cqw; }
.lt-track { flex: 1; height: 5cqw; position: relative; touch-action: none; display: flex; align-items: center; cursor: pointer; }
.lt-track::before { content: ""; position: absolute; left: 0; right: 0; height: 1cqw; border-radius: .5cqw; background: #c9c9cd; }
.lt-fill { position: absolute; left: 0; height: 1cqw; border-radius: .5cqw; background: #8c8c91; width: 0; }
.lt-knob { position: absolute; width: 3.7cqw; height: 3.7cqw; margin-left: -1.85cqw; border-radius: 50%; background: #000; left: 0; }
.lt-empty { flex: 1; display: grid; place-content: center; text-align: center; color: #8b8b90; font-size: 3.6cqw; line-height: 1.7; }
.lt-empty small { font-size: 2.9cqw; }

/* 歌词 */
.lt-lyr { flex: 1; overflow: hidden; padding: 20cqw 4cqw; text-align: center; position: relative; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.lt-lyr p { margin: 0 0 3cqw; font-size: 3.5cqw; line-height: 1.35; color: #a4a4a9; transition: color .25s, transform .25s; }
.lt-lyr p small { display: block; font-size: 2.8cqw; margin-top: .6cqw; }
.lt-lyr p.on { color: #111; font-weight: 700; font-size: 4.1cqw; }

/* 输入 */
.lt-form { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.6cqw; padding: 0 7cqw; overflow: hidden; }
.lt-form input { width: 133.34%; height: 10cqw; margin: 0 0 -2.5cqw; transform: scale(.75); transform-origin: 0 0; box-sizing: border-box; border: .4cqw solid #cfcfd4; border-radius: 1.8cqw; background: #fff; padding: 0 3cqw; font-size: 16px; outline: 0; color: #111; user-select: text; -webkit-user-select: text; }
.lt-form input:focus { border-color: #1b7bff; }
.lt-form small { font-size: 2.5cqw; line-height: 1.45; color: #8b8b90; }
.lt-btn { align-self: flex-end; border: 0; border-radius: 1.2cqw; padding: 1.2cqw 4cqw; font-size: 3cqw; font-weight: 600; color: #fff; background: linear-gradient(180deg, #4aa0ff, #1b73f0); cursor: pointer; }

/* ── 点击转盘 ── */
.lt-wheel {
    position: absolute; left: 15.2%; top: 60.8%; width: 69.7%; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: pointer;
    background: radial-gradient(circle at 50% 38%, #ffffff 0%, #fbfbfb 60%, #f1f1f2 100%);
    box-shadow: 0 .9cqw 2.4cqw rgba(0, 0, 0, .32), inset 0 0 0 .25cqw rgba(255, 255, 255, .8);
}
.lt-w { position: absolute; color: #6a6a6e; pointer-events: none; display: block; }
.lt-w svg { display: block; width: 100%; height: 100%; }
.lt-w-menu { left: 50%; top: 7.2%; transform: translateX(-50%); font-size: 4.9cqw; font-weight: 700; letter-spacing: .5cqw; }
.lt-w-prev { left: 7%; top: 50%; width: 6.4cqw; height: 4.8cqw; transform: translateY(-50%); }
.lt-w-next { right: 7%; top: 50%; width: 6.4cqw; height: 4.8cqw; transform: translateY(-50%); }
.lt-w-pp { left: 50%; bottom: 8%; width: 7.2cqw; height: 5.2cqw; transform: translateX(-50%); }
.lt-center {
    position: absolute; left: 50%; top: 50%; width: 35%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: linear-gradient(145deg, #bdbdbf 0%, #d2d2d4 55%, #c1c1c3 100%); box-shadow: inset 0 .3cqw .8cqw rgba(0, 0, 0, .22), 0 0 0 .2cqw rgba(0, 0, 0, .06);
}
.lt-center:active { filter: brightness(.94); }
.lt-pod.is-playing .lt-w-pp { color: #3a3a3e; }


.lt-pod.drag { cursor: grabbing; box-shadow: 0 4cqw 9cqw rgba(0, 0, 0, .6), inset 0 0 0 .35cqw rgba(255, 255, 255, .35); }
.lt-pod.pull { animation: lt-pull .42s cubic-bezier(.2, .9, .25, 1.15); }
@keyframes lt-pull { from { transform: translateY(46%) rotate(5deg) scale(.88); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.lt-pod.away { transform: translateY(52%) rotate(4deg) scale(.88); opacity: 0; transition: transform .28s ease-in, opacity .26s; pointer-events: none; }
.lt-pod.gone { visibility: hidden; pointer-events: none; }


/* 一起听资讯那一行 + 扫码 */
.lt-tg { flex: none; text-align: center; font-size: 2.9cqw; color: #8b8b90; padding: 0 3cqw 1.2cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lt-qr { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; text-align: center; padding: 0 4cqw; }
.lt-qr-box { width: 38cqw; aspect-ratio: 1; border: .3cqw solid #d6d6da; border-radius: 1.4cqw; background: #fff; display: grid; place-items: center; overflow: hidden; }
.lt-qr-box img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.lt-qr p { margin: 0; font-size: 3.4cqw; font-weight: 600; }
.lt-qr small { font-size: 2.7cqw; color: #8b8b90; line-height: 1.5; }
.lt-spin { width: 6cqw; height: 6cqw; border-radius: 50%; border: .7cqw solid #d6d6da; border-top-color: #1b7bff; animation: lt-rot .8s linear infinite; }
@keyframes lt-rot { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .lt-pod.pull, .lt-duo-buds, .lt-note { animation: none !important; } }

/* 使用教程（设置最下面）：可滚动的小文档 */
.lt-doc { flex: 1; overflow: hidden; padding: 2.4cqw 3.4cqw 4cqw; font-size: 3.3cqw; line-height: 1.55; color: #222; touch-action: none; }
.lt-doc h4 { margin: 3cqw 0 1cqw; font-size: 3.8cqw; color: #1b73f0; }
.lt-doc h4:first-child { margin-top: 0; }
.lt-doc p { margin: 0 0 1.8cqw; }
.lt-doc code { display: block; margin: 0 0 1.8cqw; padding: 1.2cqw 1.8cqw; border-radius: 1cqw; background: #ececef; font: 2.9cqw/1.5 ui-monospace, Menlo, monospace; word-break: break-all; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }

/* 收起后的小窗：耳机线缠着两个头像（一人一边耳机） */
.lt-chip { position: fixed; right: 6px; bottom: calc(env(safe-area-inset-bottom, 0px) + 140px); width: 96px; height: 100px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: none; opacity: 0; transform: scale(.7); visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28)); }
.lt-chip.show { opacity: 1; transform: none; visibility: visible; }
.lt-chip.show:active { transform: scale(.96); }
.lt-duo-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lt-av { position: absolute; top: 12px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-sizing: border-box; border: 2px solid #fff; background: linear-gradient(135deg, #3a3b42, #17171a); color: #e9e9ee; display: grid; place-items: center; font-size: 15px; font-weight: 600; pointer-events: none; }
.lt-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-av-a { left: 18px; } .lt-av-b { left: 42px; }
.lt-duo-buds { transform-box: view-box; transform-origin: 48px 57px; }
.lt-chip.is-playing .lt-duo-buds { animation: lt-sway 3.4s ease-in-out infinite alternate; }
@keyframes lt-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.lt-note { position: absolute; left: 44px; top: -6px; font-size: 13px; font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; }
.lt-chip.is-playing .lt-note { animation: lt-note 3.2s ease-out infinite; }
@keyframes lt-note { 0% { opacity: 0; transform: translate(0, 6px) scale(.8); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -16px) scale(1.05); } }
