/* 현재 단어와 다음 단어를 구분하는 모바일 플레이 목록 스타일 */
:root {
  color: #15243d;
  background: #edf3fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

main {
  width: min(100%, 42rem);
  height: 100vh;
  height: 100dvh;
  margin: auto;
  padding: 0 12px;
  background: white;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

header { padding: 10px 0 6px; }
h1 { margin: 0 0 8px; font-size: 1.2rem; }
nav, .controls, .source { display: flex; align-items: center; gap: 8px; }
nav { justify-content: space-between; margin-bottom: 6px; }
nav a, button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #a5b7d0;
  border-radius: 6px;
  background: white;
  color: #183960;
  font: inherit;
  font-weight: 700;
}
nav a { display: grid; place-items: center; text-decoration: none; }
nav [aria-disabled="true"], button:disabled { opacity: .45; }
time { font-weight: 750; text-align: center; }
#play:enabled { background: #285eb0; border-color: #285eb0; color: white; }
#progress { margin-left: auto; font-variant-numeric: tabular-nums; }
.source { justify-content: space-between; line-height: 1.3; font-size: .875rem; }
.source p { margin: 5px auto 0 0; overflow-wrap: anywhere; }
.source a { flex: none; color: #174d99; }

ol {
  list-style: none;
  margin: 0;
  padding: 1px 0 12px;
  overflow: auto;
  scrollbar-width: thin;
}
li {
  min-height: 32px;
  margin-bottom: 3px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 3px;
}
.entry {
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #758aa9;
  border-radius: 6px;
  overflow: hidden;
}
.word, .meaning {
  padding: 4px 6px;
  align-content: center;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: .875rem;
  line-height: 1.2;
}
.word { border-right: 1px solid #758aa9; font-weight: 650; }
.meaning a { color: inherit; margin-left: 4px; }
[data-state="done"] .entry { background: #e1e3e6; }
[data-state="next"] .entry { background: #e3efff; }
[data-state="playing"] .entry {
  background: #285eb0;
  border-color: #285eb0;
  color: white;
}
[data-state="playing"] .word { border-color: #91b2e2; }
.speeds { display: flex; gap: 3px; justify-self: end; }
.speeds span {
  padding: 4px 3px;
  border: 1px solid #bdc9d9;
  border-radius: 5px;
  color: #68778b;
  background: white;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.speeds .active { color: white; background: #11151b; border-color: #11151b; }
