/* KBIBLE · 모바일 특별영어학습 음원 컨트롤러 컴팩트 V1 · 2026-10-26
   기존 하나의 오디오 엔진, 언어 전환, 재생/일시정지/정지, 이전/다음,
   진행바, 재생 속도, 문장 하이라이트/자동스크롤 JS는 변경하지 않습니다. */
@media (max-width: 800px) {
  /* PC / 다른 페이지는 영향 없음. WebView의 자동 글자 확대도 이 영역에서만 억제. */
  html body.lesson-page .lesson-app.is-listening .study-main > .understanding-dock {
    box-sizing:border-box !important;
    position:relative !important;
    top:auto !important;
    display:flex !important;
    flex-direction:column !important;
    width:100%; min-width:0;
    height:auto !important; min-height:0 !important; max-height:none !important;
    margin:0 !important; padding:9px 10px 10px !important;
    gap:6px !important;
    border:0 !important; border-radius:0 !important;
    overflow:visible !important;
    background:#31243f !important;
    color:#f7edff !important;
    -webkit-text-size-adjust:100%; text-size-adjust:100%;
  }
  html body.lesson-page .lesson-app.is-listening .study-main > .understanding-dock[hidden] {
    display:none !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-heading {
    display:flex !important; align-items:center !important;
    flex-wrap:nowrap !important; justify-content:space-between !important;
    width:100%; min-width:0; gap:8px !important;
    margin:0 !important; padding:0 !important;
    font-size:11px !important; line-height:1.2 !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-heading > strong {
    display:block; flex:0 0 auto; margin:0 !important; padding:0 !important;
    font-size:12px !important; font-weight:800; line-height:1.35 !important;
    color:#f5e8ff !important; white-space:nowrap;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-now {
    display:block; flex:1 1 auto; min-width:0; max-width:100%;
    margin:0 !important; padding:0 !important;
    font-size:10px !important; line-height:1.35 !important; text-align:right;
    white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
    color:#cfc0de !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock .unified-language-tabs {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100%; min-width:0; height:auto !important; min-height:0 !important;
    margin:0 !important; padding:2px !important; gap:4px !important;
    border:1px solid #6d527f; border-radius:9px; background:#21192d;
  }
  html body.lesson-page .lesson-app.is-listening .unified-language-tabs button {
    box-sizing:border-box; display:flex; align-items:center; justify-content:center;
    width:100%; min-width:0; max-width:none;
    height:34px !important; min-height:34px !important;
    margin:0 !important; padding:0 4px !important;
    border-radius:7px !important;
    font-size:12px !important; font-weight:750 !important; line-height:1 !important;
    white-space:nowrap;
  }
  /* 4개 교통 버튼 + (탐색·시간·배속)을 두 줄로만 배치 */
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    grid-template-rows:36px 34px !important;
    align-items:center !important; justify-content:stretch !important;
    width:100%; min-width:0;
    margin:0 !important; padding:0 !important;
    gap:5px !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls > button {
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:100% !important; min-width:0 !important; max-width:none !important;
    height:36px !important; min-height:36px !important;
    margin:0 !important; padding:0 2px !important;
    border:1px solid #9776af !important; border-radius:9px !important;
    font-size:11px !important; font-weight:750 !important; line-height:1.05 !important;
    letter-spacing:-.04em; text-align:center; white-space:nowrap !important;
    overflow:hidden; text-overflow:clip;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls > .understanding-dock-play {
    min-width:0 !important; background:#d6b8e9 !important; color:#281934 !important;
    border-color:#e0c9f2 !important; font-size:10.5px !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls > input[type="range"] {
    order:0 !important; grid-column:1/3 !important; grid-row:2 !important;
    width:100% !important; min-width:0 !important; max-width:none !important;
    height:32px !important; min-height:0 !important;
    margin:0 !important; padding:0 !important; flex:none !important;
    accent-color:#d2a8ed;
    touch-action:pan-y;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-time {
    order:0 !important; grid-column:3 !important; grid-row:2 !important;
    min-width:0 !important; max-width:none !important;
    margin:0 !important; padding:0 !important;
    font-size:10px !important; line-height:1.25 !important;
    font-variant-numeric:tabular-nums; white-space:nowrap !important;
    text-align:center !important; color:#e6d8ef !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls > select {
    order:0 !important; grid-column:4 !important; grid-row:2 !important;
    box-sizing:border-box; width:100% !important; min-width:0 !important;
    height:31px !important; min-height:31px !important;
    margin:0 !important; padding:1px 16px 1px 5px !important;
    border:1px solid #8b6a9f !important; border-radius:7px !important;
    background:#251a34; color:#f7eaff;
    font-size:12px !important; line-height:1.3 !important;
  }
  /* 반복 안내 텍스트가 컨트롤러를 불필요하게 2~3줄 늘리지 않도록
     접근성 트리에는 남기고 시각적으로만 감춥니다. */
  html body.lesson-page .lesson-app.is-listening .understanding-dock > .unified-audio-note {
    position:absolute !important; width:1px !important; height:1px !important;
    min-width:0 !important; min-height:0 !important;
    overflow:hidden !important; clip-path:inset(50%) !important;
    white-space:nowrap !important; margin:0 !important; padding:0 !important;
    border:0 !important;
  }
}
/* 폭이 320px 이하인 작은 기기: 재생 버튼의 긴 텍스트만 더 작게 */
@media (max-width: 360px) {
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls > button {
    font-size:10px !important; letter-spacing:-.055em;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-controls > .understanding-dock-play {
    font-size:9px !important;
  }
  html body.lesson-page .lesson-app.is-listening .understanding-dock-time {font-size:9px !important;}
}
