/* 双层控制条仅对移动 APP 生效。 */
.hj-study-view{display:none}
.hj-study-legacy{display:contents}
@media(max-width:900px){
  body.app-shell.hj-study-on{--hj-study-height:142px}
  body.app-shell.hj-study-on #hjTabBar{display:none!important}
  body.app-shell.hj-study-on .ear-bar,body.app-shell.hj-study-on .listen-full-stage>.toolbar{display:none!important}
  body.app-shell .hj-study-host .hj-study-legacy{display:none!important}
  /* #lsPlayer = 原创英语听力课页的播放条（#/mouth/listen/<册>/<课>）。
     它同为 .mt-player，也交给双层控制条接管，App 内与 8000句口语完全同款。 */
  body.app-shell #earPlayer.hj-study-host,body.app-shell #mtPlayer.hj-study-host,body.app-shell #listenMobilePlayer.hj-study-host,body.app-shell #lsPlayer.hj-study-host{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
    width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
    padding:0!important;margin:0!important;display:block!important;overflow:visible!important;border:0!important;
    border-radius:0!important;background:transparent!important;z-index:212!important;box-shadow:none!important;transform:none!important;
  }
  body.app-shell .hj-study-view{display:block;color:#526277;background:rgba(255,255,255,.98);border-top:1px solid #dfe6ee;box-shadow:0 -5px 18px #192d4814;backdrop-filter:blur(12px)}
  body.app-shell .hj-study-setting-area{padding:8px 9px 9px}
  body.app-shell .hj-study-status{font-size:11px;line-height:1.45;height:16px;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* 5 个控件的宽度按「各自实际需要」重配：旧配比 .95/.85/1.9/1.12/1.12 在 390px 视口下
     「倍速 / 每句」两格只剩 ≈30px 的 select 内容宽，原生下拉箭头把「1× / 1遍」挤掉（实测文字被裁）。
     新配比（390px 实测）≈ 播放 53 / 停止 41 / 音色 105 / 倍速 76 / 每句 78。 */
  body.app-shell .hj-study-controls{display:grid;grid-template-columns:.95fr .73fr 1.86fr 1.35fr 1.4fr;gap:5px}
  body.app-shell .hj-study-controls>button,body.app-shell .hj-study-setting{min-width:0;min-height:40px;margin:0;padding:0 4px;border:1px solid #dce5ee;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;gap:3px;font-family:inherit;font-weight:600;font-size:clamp(11.5px,3vw,14px);line-height:1.2;color:#526277;white-space:nowrap}
  /* 设置格：标签不收缩、下拉吃掉剩余宽度；右侧自绘 9px 细箭头（弃用原生箭头，
     原生箭头要 ≈16–20px 宽，是「1遍」被裁的直接原因）。 */
  body.app-shell .hj-study-setting{justify-content:flex-start;padding:0 2px 0 6px}
  body.app-shell .hj-study-setting>span{flex:0 0 auto}
  body.app-shell .hj-study-controls .hj-study-play{color:#fff;background:#205d98;border-color:#205d98;cursor:pointer}
  body.app-shell .hj-study-controls .hj-study-stop{color:#cc5848;cursor:pointer}
  body.app-shell .hj-study-setting select{flex:1 1 auto;min-width:0;width:auto;max-width:100%;padding:0 12px 0 0;border:0;background:transparent;color:#205d98;font-family:inherit;font-size:11.5px;font-weight:600;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205d98' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1px center;background-size:9px 9px}
  body.app-shell .hj-study-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid #dfe6ee;gap:1px;min-height:64px}
  body.app-shell .hj-study-nav button{min-width:0;min-height:52px;padding:2px 0;border:0;border-radius:10px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#205d98;cursor:pointer}
  body.app-shell .hj-study-nav button b{font-size:24px;line-height:1;font-weight:400;display:flex;align-items:center;justify-content:center;width:28px;height:25px}
  body.app-shell .hj-study-nav button span{font-size:11px;line-height:1.2;color:#5b6676;white-space:nowrap}
  body.app-shell .hj-study-nav .hj-study-main b{width:38px;height:38px;border-radius:50%;background:#205d98;color:white;box-shadow:0 4px 12px #205d9838;font-size:22px}
  body.app-shell .hj-study-nav button:active{background:#edf4fb}
  body.app-shell .hj-study-nav button:focus-visible,body.app-shell .hj-study-controls button:focus-visible{outline:2px solid #205d98;outline-offset:2px}
  body.app-shell .hj-study-sheet{position:absolute;left:8px;right:8px;bottom:calc(100% + 8px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border:1px solid #dfe6ee;border-radius:15px;background:#fff;box-shadow:0 6px 28px #192d4830;max-height:50dvh;overflow:auto}
  body.app-shell .hj-study-sheet[hidden]{display:none!important}
  body.app-shell .hj-study-sheet-title{grid-column:1/-1;font-size:14px;font-weight:700;color:#314b67}
  body.app-shell .hj-study-sheet button,body.app-shell .hj-study-sheet label{min-height:42px;padding:8px;border:1px solid #dce5ee;border-radius:9px;background:#f8fbff;color:#314b67;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
  body.app-shell .hj-study-sheet label{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
  body.app-shell .hj-study-sheet select{font:inherit;border:0;background:transparent;color:#205d98}
  body.app-shell.hj-study-on .ear-wrap,body.app-shell.hj-study-on .mouth .explain-panel,body.app-shell.hj-study-on .listen-full-stage{padding-bottom:calc(var(--hj-study-height) + 35px + env(safe-area-inset-bottom,0px))!important}
  body.app-shell.hj-study-on .mouth .ep-tip{display:none}
  body.app-shell.hj-study-on #hjImEntry,body.app-shell.hj-study-on #hjImTopBtn{display:none!important}
}
