/* ALA V2.1 — self-contained responsive styles. */
:root {
  color-scheme: light;
  --bg: #f7f8f5; --paper: #fff; --ink: #24342c; --muted: #718076;
  --green: #244e3e; --green-soft: #edf2e9; --line: #e3e8e0; --accent: #dce8a0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .32; cursor: not-allowed; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #829c52; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 50; padding: 12px; background: var(--green); color: white; }
.skip-link:focus { top: 10px; }
svg { width: 20px; height: 20px; display: block; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
span[data-icon] { display: inline-flex; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.4; letter-spacing: -.8px; font-weight: 650; }
h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.4px; }
h3 { font-size: 18px; }
.muted { font-size: 12px; color: var(--muted); }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 9px; }
/* One compact global navigation, shared by every screen. */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; padding: 0 30px; min-height: 76px; margin: auto; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.brand-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; border-radius: 11px; font: italic 30px Georgia, serif; letter-spacing: -4px; padding-right: 5px; }
.course-nav { display: flex; align-items: center; gap: 5px; }
.course-nav-link { min-width: 57px; min-height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.course-nav-link:hover { color: var(--green); background: #f5f7f1; }
.course-nav-link[aria-current] { color: var(--green); background: var(--green-soft); }
.search-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 282px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--muted); background: #fafbf8; }
.search-wrap svg { width: 16px; height: 16px; }
.search-wrap input { border: none; background: transparent; width: 100%; min-width: 0; font-size: 12px; padding: 3px; appearance: none; }
.search-wrap kbd { font-size: 10px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; }
main { max-width: 1240px; margin: auto; padding: 34px 30px 0; outline: none; }
.button { border: 1px solid var(--line); border-radius: 9px; background: white; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; font-size: 12px; font-weight: 550; transition: background .15s, border-color .15s; }
.button:hover { background: #f2f5ee; border-color: #bdc9b7; }
.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
/* Library */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 3px 0 27px; }
.page-heading .muted { margin-top: 9px; font-size: 13px; }
.catalog-total { color: var(--muted); font-size: 11px; white-space: nowrap; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 20px; }
.continue-card { background: var(--green); color: white; border-radius: 16px; padding: 26px 30px; }
.continue-kicker { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: 1.2px; color: #ceddd0; }
.continue-kicker span:last-child { font-size: 9px; border: 1px solid #6a8770; padding: 2px 7px; border-radius: 5px; letter-spacing: 0; }
.continue-card h2 { margin: 22px 0 7px; font-size: 25px; overflow-wrap: anywhere; }
.continue-meta { font-size: 11px; color: #c4d7c9; }
.continue-bottom { margin-top: 25px; display: flex; align-items: flex-end; gap: 28px; }
.continue-progress { flex: 1; min-width: 0; }
.continue-card .button { color: #274023; background: var(--accent); border: 0; white-space: nowrap; }
.continue-card .button:hover { background: #e9efb9; }
progress { display: block; width: 100%; height: 4px; border: none; border-radius: 9px; overflow: hidden; appearance: none; background: #e9eee4; }
progress::-webkit-progress-bar { background: #e9eee4; border-radius: 9px; }
progress::-webkit-progress-value { background: #6d8658; border-radius: 9px; }
progress::-moz-progress-bar { background: #6d8658; border-radius: 9px; }
.continue-card progress, .continue-card progress::-webkit-progress-bar { background: #ffffff25; }
.continue-card progress::-webkit-progress-value { background: var(--accent); }
.continue-card progress::-moz-progress-bar { background: var(--accent); }
.progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.progress-foot strong { color: var(--green); }
.continue-card .progress-foot { color: #cbddcf; }
.progress-card { padding: 24px; border: 1px solid var(--line); background: white; border-radius: 16px; }
.section-label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.section-label svg { width: 18px; color: #718259; }
.progress-number { display: flex; align-items: baseline; gap: 9px; margin-top: 16px; }
.progress-number strong { font-size: 42px; font-weight: 550; line-height: 1.2; letter-spacing: -1px; }
.progress-number>span { font-size: 12px; color: var(--muted); }
.progress-card p { font-size: 11px; color: var(--muted); margin: 9px 0 23px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin: 32px 0 22px; }
.section-heading .eyebrow { font-size: 9px; margin-bottom: 6px; }
.chapter-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.chapter-section-heading h3 { font-size: 16px; margin-bottom: 4px; }
.chapter-section-heading .muted { font-size: 11px; }
.filter-label select { border: 1px solid var(--line); border-radius: 8px; background: white; min-height: 39px; padding: 7px 10px; font-size: 11px; color: var(--muted); }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chapter-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 21px; transition: border-color .15s, transform .15s; }
.chapter-card:hover { border-color: #aabd9e; transform: translateY(-2px); }
.chapter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chapter-number { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #687f60; }
.chapter-icon { padding: 7px; color: #768b68; background: #f3f6ee; border-radius: 7px; }
.chapter-icon svg { width: 15px; height: 15px; }
.chapter-card h4 { margin: 0 0 5px; font-size: 16px; font-weight: 600; }
.chapter-topic { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 18px; }
.chapter-card .progress-foot { margin: 0 0 8px; }
.chapter-card progress { margin-top: auto; height: 3px; }
.chapter-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; font-size: 10px; color: var(--muted); }
.chapter-card-footer svg { width: 14px; height: 14px; }
.chapter-state { color: var(--green); font-weight: 550; }
/* A focused player: one timeline, one control row. */
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.breadcrumbs svg { width: 14px; height: 14px; }
.breadcrumbs a:hover { color: var(--green); }
.lesson-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.lesson-heading h1 { outline: none; font-size: 27px; line-height: 1.4; overflow-wrap: anywhere; }
.lesson-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.learning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; align-items: start; gap: 24px; }
.player-column { min-width: 0; }
.player-card { border: 1px solid var(--line); border-radius: 14px; background: white; }
.player-card:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; border: 0; border-radius: 0; background: #17211c; }
.player-card:fullscreen .media-stage { flex: 1; min-height: 0; aspect-ratio: auto; border-radius: 0; }
.player-card:fullscreen .player-controls { flex-shrink: 0; background: white; padding-left: max(24px, calc((100vw - 1000px) / 2)); padding-right: max(24px, calc((100vw - 1000px) / 2)); }
.media-stage { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 13px 13px 0 0; background: #17211c; }
.media-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-stage.audio-mode { aspect-ratio: auto; height: 260px; background: #ecf1e5; }
.media-stage.audio-mode video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.media-stage.audio-mode.show-native video { width: 100%; height: 54px; bottom: 0; opacity: 1; pointer-events: auto; z-index: 2; }
.audio-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--green); }
.audio-course { font-size: 9px; letter-spacing: 1.8px; color: #73806a; }
.thai-letter { font-size: 76px; line-height: 1.25; font-family: Georgia, "Thonburi", serif; }
.audio-caption { font-size: 11px; color: #7c8a72; }
.media-status { position: absolute; top: 12px; left: 12px; padding: 3px 8px; border-radius: 5px; color: white; background: #152d22e8; font-size: 10px; pointer-events: none; }
.media-status:empty { display: none; }
.player-controls { padding: 15px 21px 17px; }
.timeline { display: flex; align-items: center; gap: 13px; min-height: 26px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline>span { min-width: 32px; }
.timeline>span:last-child { text-align: right; }
.seek { display: block; flex: 1; min-width: 0; margin: 0; height: 24px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 5px; background: linear-gradient(to right, var(--green) var(--seek-progress, 0%), #e5ebe2 var(--seek-progress, 0%)); }
.seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--green); border: 0; }
.seek::-moz-range-track { height: 4px; border-radius: 5px; background: #e5ebe2; }
.seek::-moz-range-progress { height: 4px; border-radius: 5px; background: var(--green); }
.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--green); }
.seek:disabled { opacity: .45; cursor: default; }
.transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-top: 12px; }
.transport-left, .transport-right, .transport-main { display: flex; align-items: center; gap: 7px; }
.transport-right { justify-content: flex-end; }
.transport-main { gap: 19px; }
.icon-button { width: 38px; height: 38px; flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 7px; background: transparent; color: #7a887e; padding: 0; }
.icon-button:hover { background: #f1f5ed; color: var(--green); }
.icon-button svg { width: 18px; height: 18px; }
.skip-button { width: 36px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 0; border: none; background: transparent; color: var(--green); }
.skip-button svg { width: 22px; height: 22px; }
.skip-button>span:last-child { font-size: 8px; line-height: 1; margin-top: 3px; }
.play-button { width: 49px; height: 49px; display: grid; place-items: center; background: var(--green); color: white; border: none; border-radius: 50%; }
.play-button:hover { background: #356249; }
.play-button svg { width: 20px; height: 20px; }
.speed-select { width: 66px; min-height: 36px; border: 0; border-radius: 7px; background: #f2f5ee; padding: 0 6px; font-size: 11px; font-weight: 550; color: var(--green); cursor: pointer; }
.player-options { position: relative; }
.player-options summary { list-style: none; }
.player-options summary::-webkit-details-marker { display: none; }
.player-options[open]>summary { background: var(--green-soft); color: var(--green); }
.options-menu { position: absolute; right: 0; bottom: calc(100% + 10px); width: 200px; z-index: 10; padding: 7px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 9px 30px #233b2420; }
.options-menu a, .options-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; border: 0; background: transparent; padding: 8px 10px; text-align: left; border-radius: 5px; font-size: 12px; }
.options-menu a:hover, .options-menu button:hover, .options-menu button[aria-pressed=true] { background: var(--green-soft); }
.options-menu svg { width: 15px; height: 15px; }
.options-menu p { padding: 9px 10px 5px; margin-top: 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.9; }
.lesson-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 16px; }
.complete-button { background: transparent; min-height: 38px; padding: 8px 12px; font-size: 11px; }
.complete-button[aria-pressed=true] { background: var(--green-soft); border-color: #ccd9c3; color: var(--green); }
.lesson-pagination { display: flex; align-items: center; gap: 13px; }
.lesson-pagination .muted { font-size: 10px; white-space: nowrap; }
.resume-note { font-size: 10px; color: var(--muted); margin-top: 9px; }
.resume-note:empty { display: none; }
.lesson-outline { border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; }
.outline-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 19px 15px; }
.outline-heading h2 { font-size: 14px; letter-spacing: 0; font-weight: 600; }
.outline-heading>span { color: var(--muted); font-size: 10px; }
.lesson-outline>progress { width: calc(100% - 38px); height: 3px; margin: 0 19px 15px; }
.lesson-list { list-style: none; padding: 0 0 6px; margin: 0; max-height: 490px; overflow: auto; scrollbar-width: thin; }
.lesson-item a { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-left: 2px solid transparent; }
.lesson-item a:hover { background: #f6f8f2; }
.lesson-item a[aria-current] { border-left-color: #6b8654; background: #eff4e8; }
.lesson-index { min-width: 16px; color: #819178; font-size: 10px; }
.lesson-index svg { width: 15px; height: 15px; color: #688458; }
.lesson-item-body { flex: 1; min-width: 0; }
.lesson-item-title { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 550; line-height: 1.55; }
.lesson-item-meta { display: block; margin-top: 4px; color: #889385; font-size: 10px; }
.lesson-item>a>svg { width: 13px; height: 13px; color: #688258; }
.media-error { padding: 16px 20px; border-bottom: 1px solid #ead9c8; background: #fff4e8; color: #7c5134; font-size: 12px; }
.media-error p { margin: 5px 0 12px; }
.media-error a { text-decoration: underline; }
/* Search, feedback, and shared supporting elements. */
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.search-heading .muted { margin-top: 10px; }
.search-results { display: grid; gap: 10px; }
.search-result { display: flex; align-items: center; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.search-result:hover { border-color: #afc0a4; }
.result-icon { padding: 12px; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.result-info { flex: 1; min-width: 0; }
.result-info strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.result-info span { color: var(--muted); font-size: 11px; }
.empty-state { padding: 65px 20px; text-align: center; }
.empty-state h1 { font-size: 25px; }
.empty-state p { color: var(--muted); margin: 12px 0 20px; }
.chapter-grid>.empty-state { grid-column: 1/-1; border: 1px dashed var(--line); border-radius: 12px; }
.notice { max-width: 1180px; margin: 18px auto 0; padding: 12px 16px; background: #fff5d8; color: #6e5728; border: 1px solid #e5d6ad; border-radius: 9px; font-size: 12px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0; margin-top: 40px; font-size: 10px; color: #889184; }
.footer-separator { padding: 0 10px; color: #bac2b4; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 36px); padding: 12px 20px; color: white; background: #263f30; border-radius: 8px; font-size: 12px; box-shadow: 0 5px 20px #233b2420; }
.noscript { position: fixed; inset: 0; background: white; padding: 80px 20px; text-align: center; z-index: 99; }
@media (max-width: 1000px) {
  .topbar-inner { gap: 28px; padding: 0 25px; }
  .search-wrap { width: 235px; }
  main { padding: 29px 25px 0; }
  .learning-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
  .transport { gap: 8px; } .transport-main { gap: 10px; }
  .player-controls { padding: 13px 16px 15px; }
  .transport-left, .transport-right { gap: 3px; }
  .notice { margin-left: 25px; margin-right: 25px; }
}
@media (max-width: 820px) {
  .learning-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lesson-list { max-height: none; }
  .transport-main { gap: 22px; }
  .topbar-inner { gap: 21px; }
  .course-nav-link { min-width: 46px; }
  .search-wrap { width: 220px; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: minmax(0, 1.7fr) minmax(180px, 1fr); gap: 15px; }
  .continue-card { padding: 25px; }
  .continue-card h2 { font-size: 23px; }
  .continue-bottom { flex-direction: column; align-items: stretch; gap: 18px; }
  .continue-card .button { align-self: flex-start; }
  .progress-card { padding: 23px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 620px) {
  .topbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; padding: 15px 20px 10px; }
  .brand { font-size: 22px; grid-column: 1; grid-row: 1; }
  .brand-mark { width: 33px; height: 33px; font-size: 28px; border-radius: 10px; }
  .search-wrap { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; }
  .search-wrap input { font-size: 16px; padding: 0; }
  .search-wrap input::placeholder { font-size: 11px; }
  .search-wrap kbd { display: none; }
  .course-nav { grid-column: 1/-1; grid-row: 2; gap: 4px; }
  .course-nav-link { flex: 1; min-height: 35px; font-size: 11px; }
  main { padding: 23px 20px 0; }
  .lesson-heading { margin-bottom: 18px; gap: 10px; }
  .lesson-heading h1 { font-size: 23px; }
  .lesson-meta { font-size: 10px; }
  .breadcrumbs { margin-bottom: 12px; font-size: 10px; }
  .media-stage.audio-mode { height: 215px; }
  .thai-letter { font-size: 65px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .continue-bottom { flex-direction: row; align-items: flex-end; gap: 22px; }
  .continue-card .button { align-self: auto; }
  .progress-card { display: grid; grid-template-columns: 1fr auto; gap: 5px 25px; padding: 19px 23px; align-items: center; }
  .progress-card .section-label { grid-column: 1; grid-row: 1; font-size: 9px; }
  .progress-card .section-label svg { display: none; }
  .progress-number { grid-column: 2; grid-row: 1/4; margin: 0; gap: 5px; }
  .progress-number strong { font-size: 32px; }
  .progress-number>span { font-size: 10px; }
  .progress-card p { grid-column: 1; grid-row: 2; margin: 0; font-size: 10px; }
  .progress-card progress { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .progress-card .progress-foot { grid-column: 1; grid-row: 4; margin-top: 1px; font-size: 9px; }
  .chapter-card { padding: 18px; }
  .chapter-section-heading h3 { font-size: 14px; }
  .chapter-section-heading .muted { font-size: 10px; }
  .section-heading { margin-top: 28px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .muted { font-size: 10px; }
  .notice { margin: 15px 20px 0; }
  .page-footer { margin-top: 30px; }
}
@media (max-width: 480px) {
  .topbar-inner { padding: 13px 17px 9px; gap: 11px 20px; }
  .brand { gap: 7px; font-size: 21px; }
  main { padding: 21px 17px 0; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .muted { font-size: 12px; }
  .catalog-total { font-size: 10px; }
  .continue-card { padding: 23px; }
  .continue-card h2 { font-size: 23px; }
  .continue-kicker { font-size: 9px; letter-spacing: .6px; }
  .continue-bottom { gap: 16px; }
  .continue-card .button { font-size: 11px; padding: 9px 12px; }
  .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .chapter-topic { margin-bottom: 15px; }
  .chapter-section-heading { align-items: flex-start; }
  .chapter-section-heading .muted { max-width: 195px; }
  .filter-label select { font-size: 10px; padding: 7px; }
  .lesson-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .lesson-heading h1 { font-size: 22px; }
  .learning-layout { gap: 20px; }
  .player-controls { padding: 11px 12px 14px; }
  .timeline { gap: 9px; font-size: 9px; }
  .timeline>span { min-width: 28px; }
  .transport { gap: 5px; margin-top: 10px; }
  .transport-left, .transport-right { gap: 1px; }
  .transport-main { gap: 10px; }
  .icon-button { width: 31px; height: 38px; }
  .icon-button svg { width: 16px; height: 16px; }
  .play-button { width: 45px; height: 45px; }
  .play-button svg { width: 18px; height: 18px; }
  .skip-button { width: 30px; height: 40px; }
  .speed-select { width: 57px; min-height: 34px; font-size: 10px; padding: 0 3px; }
  .lesson-tools { gap: 10px; padding-top: 13px; }
  .lesson-pagination { gap: 8px; }
  .lesson-pagination .icon-button { width: 35px; }
  .lesson-pagination .muted { font-size: 10px; }
  .complete-button { min-height: 37px; font-size: 10px; padding: 8px 10px; }
  .outline-heading { padding: 18px 17px 14px; }
  .lesson-outline>progress { width: calc(100% - 34px); margin-left: 17px; margin-right: 17px; }
  .lesson-item a { padding: 14px 16px; }
  .search-heading h1 { font-size: 24px; }
  .search-heading .button { white-space: nowrap; padding: 8px 11px; }
  .search-result { padding: 14px; gap: 11px; }
  .result-info strong { font-size: 12px; }
  .result-info span { font-size: 10px; }
  .result-icon { padding: 10px; }
  .page-footer { flex-direction: column; gap: 4px; font-size: 9px; }
  .notice { margin-left: 17px; margin-right: 17px; }
}
@media (max-width: 360px) {
  .transport { grid-template-columns: 1fr auto 1fr; gap: 3px; }
  .transport-main { gap: 5px; }
  .transport-left { gap: 0; }
  .transport-left .icon-button { width: 25px; }
  .transport-right .icon-button { width: 27px; }
  .speed-select { width: 53px; font-size: 9px; }
  .play-button { width: 42px; height: 42px; }
  .skip-button { width: 27px; }
  .continue-bottom { gap: 11px; }
  .continue-kicker { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
