/* 诗歌阅读器 音乐App风 sg-reader v3 */
:root{--bg:#f2f2f7;--card:#fff;--ink:#1c1c1e;--sub:#8e8e93;--hair:#ececf0;
  --accent:#1f7a63;--accent-soft:#e7f2ee;--safe:env(safe-area-inset-bottom,0px);}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
html body{padding-left:0!important;padding-right:0!important;overflow-x:hidden}
@media(max-width:767px){html body{padding-bottom:calc(82px + var(--safe))!important}}
.sgr-hide{display:none!important}
/* 顶栏：只放返回，文字胶囊有辨识度 */
.sgr-nav{position:sticky;top:0;z-index:50;display:flex;align-items:center;padding:8px 12px;
  background:rgba(242,242,247,.82);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:.5px solid var(--hair)}
.sgr-back{display:inline-flex;align-items:center;gap:3px;border:0;background:rgba(120,120,128,.12);color:var(--accent);
  font-size:15px;font-weight:600;padding:7px 14px 7px 10px;border-radius:20px;cursor:pointer}
.sgr-back:active{background:rgba(120,120,128,.26)} .sgr-back svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* 大标题 */
.sgr-head{padding:14px 16px 8px}
.sgr-eyebrow{font-size:14px;font-weight:600;color:var(--accent);letter-spacing:.5px;margin-bottom:5px}
.sgr-h1{margin:0;font-size:27px;line-height:1.22;font-weight:800;letter-spacing:.3px}
.sgr-wrap{max-width:760px;margin:0 auto;padding:8px 12px}
/* 播放器 纯色 音乐app排版 */
.sgr-player{background:var(--accent);border-radius:22px;padding:18px 18px 16px;color:#fff;
  box-shadow:0 8px 22px var(--accent-shadow);margin-bottom:12px}
.sgr-bar{height:5px;border-radius:3px;background:rgba(255,255,255,.26);position:relative;cursor:pointer;touch-action:none}
.sgr-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:3px;background:#fff}
.sgr-knob{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);left:0;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.sgr-time{display:flex;justify-content:space-between;font-size:12px;margin-top:8px;opacity:.92;font-variant-numeric:tabular-nums}
.sgr-transport{display:flex;align-items:center;justify-content:center;gap:30px;margin:16px 0 6px}
.sgr-play{width:66px;height:66px;border-radius:50%;border:0;background:#fff;color:var(--accent);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.sgr-play:active{transform:scale(.93)} .sgr-play svg{width:30px;height:30px;fill:var(--accent)}
.sgr-skip{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center}
.sgr-skip:active{background:rgba(255,255,255,.28)}
.sgr-skip svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sgr-skip b{position:absolute;top:55%;left:50%;transform:translate(-50%,-50%);font-size:9.5px;font-weight:700;font-style:normal;letter-spacing:-.3px}
.sgr-rate{margin-top:12px;display:flex;gap:7px;justify-content:center;flex-wrap:wrap}
.sgr-rate button{border:0;background:rgba(255,255,255,.15);color:#fff;font-size:12px;font-weight:600;padding:5px 12px;border-radius:20px;cursor:pointer}
.sgr-rate button.on{background:#fff;color:var(--accent)}
/* 上一首/下一首 在播放器下方 */
.sgr-pn{display:flex;gap:11px;margin-bottom:14px}
.sgr-pn button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:var(--card);
  color:var(--ink);font-size:15px;font-weight:600;padding:13px 0;border-radius:14px;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.sgr-pn button:active{background:#fafafa} .sgr-pn button[disabled]{opacity:.4}
.sgr-pn svg{width:18px;height:18px;fill:var(--accent)}
/* 分段 */
.sgr-seg{display:flex;background:rgba(120,120,128,.12);border-radius:11px;padding:3px;margin-bottom:14px;position:relative}
.sgr-seg button{flex:1;border:0;background:transparent;color:var(--ink);font-size:14px;font-weight:600;padding:8px 0;border-radius:9px;cursor:pointer;position:relative;z-index:2;transition:color .2s}
.sgr-seg button.on{color:var(--accent)}
.sgr-seg .glide{position:absolute;top:3px;bottom:3px;width:calc((100% - 6px)/3);left:3px;border-radius:9px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.12);transition:transform .26s cubic-bezier(.3,.7,.3,1);z-index:1}
/* 面板 */
.sgr-panel{display:none}.sgr-panel.on{display:block;animation:sgrfade .28s ease}
@keyframes sgrfade{from{opacity:0;transform:translateY(4px)}to{opacity:1}}
.sgr-lyr{background:var(--card);border-radius:16px;padding:6px 2px;box-shadow:0 1px 8px rgba(0,0,0,.05)}
.sgr-verse{display:flex;gap:13px;padding:16px;border-bottom:.5px solid var(--hair)}
.sgr-verse:last-child{border-bottom:0}
.sgr-vn{flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:3px}
.sgr-vt{flex:1;font-size:19px;font-weight:500;line-height:1.85;letter-spacing:.2px;color:#222}
.sgr-sheet img{display:block;width:100%;height:auto;border-radius:12px;margin-bottom:10px;box-shadow:0 2px 12px rgba(0,0,0,.1);cursor:zoom-in;background:#fff}
.sgr-info{background:var(--card);border-radius:16px;overflow:hidden;box-shadow:0 1px 8px rgba(0,0,0,.05)}
.sgr-irow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 16px;border-bottom:.5px solid var(--hair);font-size:16px}
.sgr-irow:last-child{border-bottom:0}.sgr-irow .k{color:var(--sub)}.sgr-irow .v{color:var(--ink);font-weight:500;text-align:right}.sgr-irow .v a{color:var(--accent);text-decoration:none}
.sgr-zoom{position:fixed;top:0;left:0;right:0;bottom:0;z-index:200;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:12px}
.sgr-zoom img{max-width:100%;max-height:100%}.sgr-zoom .x{position:fixed;top:8px;right:16px;color:#fff;font-size:34px;cursor:pointer;text-shadow:0 1px 4px #000}
/* v10: 播放器更精致紧凑 */
.sgr-player{padding:13px 16px 14px!important;border-radius:18px!important;box-shadow:0 5px 16px var(--accent-shadow)!important}
.sgr-transport{gap:22px!important;margin:12px 0 4px!important}
.sgr-play{width:52px!important;height:52px!important}
.sgr-play svg{width:24px!important;height:24px!important}
.sgr-skip{width:38px!important;height:38px!important}
.sgr-skip svg{width:26px!important;height:26px!important}
.sgr-skip b{font-size:9px!important}
.sgr-bar{height:4px!important}
.sgr-time{font-size:11.5px!important;margin-top:7px!important}
.sgr-pn button{padding:11px 0!important;font-size:14.5px!important}
/* v11: 横向一行紧凑播放器(控制键在进度条左侧) */
.sgr-player{display:flex!important;align-items:center!important;gap:13px!important;padding:11px 15px!important}
.sgr-transport{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:8px!important;margin:0!important}
.sgr-mid{flex:1 1 auto!important;min-width:0!important}
.sgr-play{width:46px!important;height:46px!important;box-shadow:0 2px 8px rgba(0,0,0,.16)!important}
.sgr-play svg{width:21px!important;height:21px!important}
.sgr-skip{width:35px!important;height:35px!important}
.sgr-skip svg{width:24px!important;height:24px!important}
.sgr-skip b{font-size:8.5px!important}
.sgr-bar{height:4px!important}
.sgr-time{font-size:11px!important;margin-top:6px!important}
/* 原样兜底(结构特殊的诗歌) */
.sgr-raw{padding:16px 18px;font-size:17px;line-height:1.9;color:#222}
.sgr-raw .title,.sgr-raw .metabox,.sgr-raw .linksbox,.sgr-raw .vlinksbox{display:none}
.sgr-raw .sline,.sgr-raw .line,.sgr-raw .line2{margin:3px 0}
.sgr-raw a{color:var(--accent)}
