/* 시니어/저시력 기준: 큰 글자, 높은 대비, 큰 누름 영역 */
:root {
  --bg: #fff8ef;
  --card: #ffffff;
  --text: #1c1410;
  --sub: #4a3b30;
  --accent: #9a3d00;      /* 흰 글자와 대비 약 7:1 */
  --accent-dark: #6e2b00;
  --line: #2b2118;
  --focus: #ffd400;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { font-size: 20px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 120px; /* 아래 Netlify 표시에 마지막 항목이 가리지 않도록 */
}

.loading { font-size: 1.4rem; text-align: center; margin-top: 30vh; }

/* 상단 제목 */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
}

h1 {
  font-size: 1.9rem;
  margin: 0;
  line-height: 1.25;
  outline: none;
}

.path {
  font-size: 1.05rem;
  color: var(--sub);
  margin: 0 0 4px;
}

.guide {
  font-size: 1.1rem;
  color: var(--sub);
  margin: 0 0 18px;
}

/* 목록 */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 16px;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.item:active { background: #fff0dc; }

.num {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label { flex: 1 1 auto; }

.label small {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.item.past .num { background: #4a3b30; }

/* 포커스를 굵고 눈에 띄게 */
.item:focus-visible,
.btn:focus-visible,
h1:focus-visible {
  outline: 6px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 9px var(--line);
}

/* 재생 화면 */
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.player-wrap iframe,
.player-wrap #player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn {
  min-height: 96px;
  border-radius: var(--radius);
  border: 3px solid var(--line);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent-dark); }
.btn.secondary { background: var(--card); color: var(--text); }

.status {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
  min-height: 1.6em;
}

/* 안내/오류 화면 */
.notice {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 360px) {
  html { font-size: 18px; }
  .num { width: 50px; height: 50px; }
}
