/* 一起听 · 纯线条界面（接入网易云 → 登录 → 播放页）。颜色走 --tg-* 变量，可在「外观」里调 */
.tgx-root{--tg-c1:#3b3b46;--tg-c2:#1f1f27;--tg-ac:#fff;--tg-cord:#e8e8ee;--tg-bgimg:none;--tg-line:color-mix(in srgb,var(--tg-ac) 34%,transparent);position:relative;overflow:hidden;border-radius:24px;min-height:640px;padding:18px 22px 22px;color:var(--tg-ac);display:flex;flex-direction:column;align-items:center;background:linear-gradient(180deg,var(--tg-c1),var(--tg-c2))}
.tgx-bg{position:absolute;inset:0;background:var(--tg-bgimg) center/cover no-repeat;opacity:.5;pointer-events:none}
.tgx-root>*:not(.tgx-bg){position:relative;z-index:1}
.tgx-i{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}

/* ---------- 阶段切换：没接好网易云之前不出现播放页 ---------- */
.tgx-gate{display:none;width:100%;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:6px 0 10px}
.tgx-root:not([data-stage=play]) .tgx-gate{display:flex}
.tgx-root:not([data-stage=play])>*:not(.tgx-bg):not(.tgx-gate){display:none!important}

/* ---------- 接入页 ---------- */
.tgx-gh{text-align:center}
.tgx-gico{width:56px;height:56px;margin:0 auto 14px;border:1.5px solid var(--tg-line);border-radius:50%;display:flex;align-items:center;justify-content:center}
.tgx-gico .tgx-i{width:26px;height:26px}
.tgx-gh h2{font-size:20px;font-weight:600;margin:0 0 8px;letter-spacing:.5px}
.tgx-gh p{font-size:13px;line-height:1.7;opacity:.68;margin:0 auto;max-width:280px}
.tgx-steps{list-style:none;margin:2px 0 0;padding:0;width:100%;display:flex;flex-direction:column;gap:12px}
.tgx-steps li{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.65;padding:12px 14px;border:1px solid var(--tg-line);border-radius:14px}
.tgx-steps li i{flex:0 0 22px;height:22px;border:1.5px solid var(--tg-line);border-radius:50%;font-style:normal;font-size:12px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.tgx-steps code{font-size:12px;padding:1px 6px;border-radius:6px;border:1px solid var(--tg-line);word-break:break-all}
.tgx-form{width:100%;display:flex;gap:10px}
.tgx-form.two .tgx-btn{flex:1}
.tgx-form .input-text{flex:1;min-width:0;margin:0}
.tgx-root .input-text{background:transparent;color:var(--tg-ac);border:1px solid var(--tg-line);border-radius:12px}
.tgx-root .input-text::placeholder{color:color-mix(in srgb,var(--tg-ac) 45%,transparent)}
.tgx-msg{min-height:18px;font-size:12.5px;opacity:.75;text-align:center;line-height:1.6}
.tgx-link{background:none;border:none;color:var(--tg-ac);opacity:.55;font-size:12.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px}
.tgx-qr{width:190px;height:190px;border:1.5px solid var(--tg-line);border-radius:16px;display:flex;align-items:center;justify-content:center;padding:8px;box-sizing:border-box}
.tgx-qr img{width:100%;height:100%;border-radius:8px;background:#fff;display:block}
.tgx-qr-ph{font-size:12.5px;opacity:.6}

/* ---------- 通用线条按钮 ---------- */
.tgx-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 16px;border:1px solid var(--tg-line);border-radius:999px;background:transparent;color:inherit;font-size:13.5px;line-height:1.2;cursor:pointer;white-space:nowrap;font-family:inherit}
.tgx-btn .tgx-i{width:17px;height:17px}
.tgx-btn.solid{border-color:currentColor}
.tgx-btn.wide{width:100%}
.tgx-btn:active{opacity:.6}

/* ---------- 播放页 ---------- */
.tgx-top{text-align:center;width:100%;min-height:42px}
.tgx-title{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgx-artist{font-size:13px;opacity:.6;margin-top:4px;min-height:16px}

/* 两个头像 + 耳机线（参照网易云：两圆相叠，线从外侧垂下并渐隐，时长文字夹在两线之间） */
.tgx-pair{position:relative;width:220px;height:150px;margin-top:10px;flex:none}
.tgx-cord{position:absolute;left:0;top:0;width:220px;height:150px;overflow:visible;pointer-events:none}
.tgx-a{position:absolute;top:12px;width:64px;height:64px;border-radius:50%;overflow:hidden;background:color-mix(in srgb,var(--tg-ac) 8%,transparent);border:1.5px solid var(--tg-line);display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.tgx-a1{left:60px}.tgx-a2{left:96px;box-shadow:0 0 0 2.5px var(--tg-c1)}
.tgx-a>*{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}
.tgx-a>svg.li{width:50%!important;height:50%!important;border-radius:0;object-fit:contain;stroke:currentColor;fill:none}
.tgx-time{position:absolute;left:0;right:0;top:92px;text-align:center;font-size:12.5px;opacity:.7;white-space:nowrap}

.tgx-stage{width:100%;display:flex;justify-content:center;align-items:center;margin:4px 0 6px}
.tgx-disc{width:min(60vw,236px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#0d0d10 0 40%,transparent 41%),repeating-radial-gradient(circle,#101013 0 3px,#1b1b20 3px 4px);border:1.5px solid var(--tg-line);box-shadow:0 0 0 9px color-mix(in srgb,var(--tg-ac) 5%,transparent);display:flex;align-items:center;justify-content:center;animation:tgxSpin 14s linear infinite;animation-play-state:paused}
.tgx-stage.playing .tgx-disc{animation-play-state:running}
.tgx-cover{width:60%;aspect-ratio:1;border-radius:50%;background:#555 center/cover no-repeat;border:1.5px solid var(--tg-line);box-sizing:border-box}
.tgx-root[data-disc=round] .tgx-disc{background:none;box-shadow:none;animation:none}
.tgx-root[data-disc=round] .tgx-cover{width:100%}
.tgx-root[data-disc=square] .tgx-disc{background:none;border-radius:18px;box-shadow:none;animation:none}
.tgx-root[data-disc=square] .tgx-cover{width:100%;border-radius:18px}
.tgx-stage video{display:none;width:100%;max-height:260px;border-radius:14px;background:#000}
.tgx-stage.is-video video{display:block}.tgx-stage.is-video .tgx-disc{display:none}
@keyframes tgxSpin{to{transform:rotate(360deg)}}
.tgx-live{min-height:22px;font-size:14px;text-align:center;opacity:.5;padding:0 6px;transition:.2s;background:none!important}
.tgx-live.on{opacity:1}

.tgx-bar{width:100%;margin-top:10px}
.tgx-bar input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:2px;border-radius:2px;outline:none;background:linear-gradient(90deg,var(--tg-ac) var(--p,0%),var(--tg-line) var(--p,0%))}
.tgx-bar input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--tg-ac)}
.tgx-times{display:flex;justify-content:space-between;font-size:11px;opacity:.55;margin-top:8px}

.tgx-ctl{display:flex;align-items:center;justify-content:center;gap:40px;margin:14px 0 18px}
.tgx-ctl button{background:none;border:none;color:var(--tg-ac);padding:8px;cursor:pointer;display:flex}
.tgx-ctl button .tgx-i{width:26px;height:26px}
.tgx-ctl .big{width:64px;height:64px;border-radius:50%;border:1.5px solid var(--tg-ac);padding:0;align-items:center;justify-content:center}
.tgx-ctl .big .tgx-i{width:28px;height:28px}

.tgx-acts{width:100%;display:flex;justify-content:space-around;align-items:flex-end;margin-top:auto;padding-top:8px}
.tgx-acts button{background:none;border:none;color:var(--tg-ac);display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;opacity:.8;position:relative;padding:6px 10px}
.tgx-acts small{font-size:11px;opacity:.75}
.tgx-acts .chat{width:64px;height:64px;border-radius:50%;border:1.5px solid var(--tg-line);justify-content:center;opacity:1;padding:0;gap:3px}
.tgx-acts .chat .tgx-i{width:22px;height:22px}
.tgx-acts .chat.dot::after{content:'';position:absolute;top:6px;right:8px;width:8px;height:8px;border-radius:50%;background:#ff5a5f}

.tgx-bubble{position:absolute!important;left:50%;bottom:104px;transform:translateX(-50%) translateY(8px);max-width:84%;background:rgba(255,255,255,.94);color:#222;border-radius:16px;padding:8px 13px;font-size:13px;line-height:1.5;opacity:0;pointer-events:none;transition:.25s;z-index:3}
.tgx-bubble.show{opacity:1;transform:translateX(-50%);pointer-events:auto}

/* ---------- 抽屉 / 面板 ---------- */
.tgx-drawer,.tgx-sheet{position:absolute!important;left:0;right:0;bottom:0;z-index:5;transform:translateY(105%);transition:transform .28s ease}
.tgx-drawer.open,.tgx-sheet.open{transform:none}
.tgx-drawer{height:72%;background:var(--card-bg,#fff);color:var(--text-color,#222);border-radius:22px 22px 0 0;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 -8px 30px rgba(0,0,0,.3)}
.tgx-drawer .tg-chat{flex:1;min-height:0;max-height:none;overflow-y:auto}
.tgx-drawer .tgx-btn,.tgx-sheet .tgx-btn{border-color:rgba(128,128,128,.4)}
.tgx-drawer .tgx-btn.solid,.tgx-sheet .tgx-btn.solid{border-color:currentColor}
.tgx-sheet{top:0;background:rgba(0,0,0,.45);transform:none;opacity:0;pointer-events:none;transition:opacity .2s;display:flex;align-items:flex-end}
.tgx-sheet.open{opacity:1;pointer-events:auto}
.tgx-sheet-in{width:100%;max-height:86%;overflow-y:auto;background:var(--card-bg,#fff);color:var(--text-color,#222);border-radius:22px 22px 0 0;padding:16px}
.tgx-sheet .input-text,.tgx-drawer .input-text{color:inherit}
.tgx-dh{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.tgx-x{background:none;border:none;color:inherit;opacity:.6;cursor:pointer;padding:4px;display:flex}
.tgx-x .tgx-i{width:20px;height:20px}
.tgx-hr{margin:16px 0 10px;font-size:12px;opacity:.55;border-top:1px solid rgba(128,128,128,.25);padding-top:12px}
.tgx-hr.first{margin-top:0;border-top:none;padding-top:0}
.tgx-note{font-size:13px;line-height:1.75;opacity:.75;margin-bottom:10px}
.tgx-list{max-height:300px;overflow-y:auto;margin-top:6px}
.tgx-song{padding:10px 6px;border-bottom:1px solid rgba(128,128,128,.18);display:flex;flex-direction:column;gap:3px;cursor:pointer}
.tgx-song b{font-size:14px;font-weight:500}.tgx-song span{font-size:12px;opacity:.6}
.tgx-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.tgx-chip{display:flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;border-radius:30px;border:1px solid rgba(128,128,128,.4);background:none;color:inherit;font-size:14px;cursor:pointer}
.tgx-chip.on{border-color:currentColor}
.tgx-chip-a{width:30px;height:30px;border-radius:50%;overflow:hidden;display:inline-flex}.tgx-chip-a>*{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}
.tgx-field{display:flex;justify-content:space-between;align-items:center;padding:9px 2px;font-size:14px}
.tgx-field input[type=color]{width:44px;height:28px;border:none;background:none;padding:0}
.tgx-sheet .hidden{display:none!important}
.tgx-sheet .tg-file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
