/* 학습 화면 (플레이어) */
:root {
  --teal: #19b8c4; --teal-dark: #0e9aa6; --yellow: #ffd75e;
  --ink: #2b3640; --muted: #6b7783; --line: #e6edf1; --bg: #f1f6f9;
  --font-ko: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Poppins", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font-ko); color: var(--ink); background: var(--bg); line-height: 1.6; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.player { display: flex; flex-direction: column; height: 100vh; }

/* ----- 상단 ----- */
.p-top {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--line);
}
.p-menu-btn { display: none; background: none; border: 0; font-size: 22px; color: var(--muted); padding: 4px 8px; }
.p-back { font-size: 13px; color: var(--muted); white-space: nowrap; }
.p-back:hover { color: var(--ink); }
.p-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.p-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-title span { font-size: 12px; color: var(--muted); }
.p-pair { display: flex; align-items: center; gap: 4px; }
.p-pair__sel { font: inherit; font-size: 12px; color: var(--teal); border: 1px solid #cfe3e8; border-radius: 6px; background: #fff; padding: 1px 4px; cursor: pointer; }
.p-prog { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.p-prog__label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.p-bar { width: 200px; height: 10px; border-radius: 99px; background: #e4eef2; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), #4cd0d6); transition: width .4s; }
.p-prog b { font-family: var(--font-en); font-size: 14px; min-width: 42px; text-align: right; }
.lang-select {
  font: inherit; font-size: 13px; color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: 0; cursor: pointer;
}

/* ----- 본문 ----- */
.p-body { flex: 1; display: flex; min-height: 0; }
.p-menu {
  width: 290px; flex: none; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 18px 12px 24px;
}
.p-menu h2 { font-size: 13px; letter-spacing: .5px; color: var(--muted); padding: 0 10px 10px; }
.p-unit {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; border-radius: 10px; padding: 9px 10px; text-align: left; font-size: 14px; font-weight: 500; color: #44505b;
}
.p-unit small { color: var(--muted); font-size: 11.5px; }
.p-unit:hover { background: #f1f8fa; }
.p-unit.is-active { background: #e5f7f9; color: var(--teal-dark); font-weight: 700; }
.p-menu ul { padding: 4px 0 8px 10px; }
.p-act {
  width: 100%; display: block; background: none; border: 0; border-radius: 8px;
  padding: 7px 10px; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.p-act:hover { background: #f1f8fa; color: var(--ink); }
.p-act.is-active { color: var(--teal-dark); }
.p-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; border-radius: 8px; padding: 7px 10px; text-align: left; font-size: 13.5px; color: #55616c;
}
.p-item i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); border: 1.5px solid #cfdbe1;
}
.p-item:hover { background: #f1f8fa; }
.p-item.is-active { background: #fff8e0; font-weight: 700; color: var(--ink); }
.p-item.is-active i { border-color: var(--yellow); }
.p-item.is-done i { background: var(--teal); border-color: var(--teal); color: #fff; }

.p-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 22px 34px 0; }
.p-crumb { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; max-width: 820px; width: 100%; margin: 0 auto 14px; }
.p-crumb em { font-style: normal; margin-left: auto; font-size: 11.5px; background: #fff3c9; color: #8a6d00; padding: 2px 10px; border-radius: 99px; }
.p-crumb-act {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.p-crumb-act:hover { color: var(--teal-dark); }
.p-act-dropdown {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; max-width: min(420px, 86vw);
  max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: 0 16px 40px rgba(34, 80, 100, .18); display: grid; gap: 2px;
}
.p-act-dropdown__item {
  width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px;
  font-size: 13px; color: #44505b; cursor: pointer;
}
.p-act-dropdown__item:hover { background: #f1f8fa; }
.p-act-dropdown__item.is-active { background: #e5f7f9; color: var(--teal-dark); font-weight: 700; }

/* ----- 슬라이드 ----- */
.slide { width: 100%; margin: 0; display: grid; gap: 18px; }
.p-slidewrap { position: relative; width: 100%; max-width: 820px; margin: 0 auto; }
/* ☰ 보기 설정: 단어 창·예문 창 머리줄 오른쪽 끝에 각각 있고, 패널은 하나를 눌린 버튼 아래에 띄움 */
.p-slidewrap > .p-opt__panel { right: 22px; top: 60px; }
.blk-opt { padding: 4px 10px; font-size: 18px; border-radius: 10px; }
.blk-toggle { margin-left: auto; margin-right: 8px; border: 1px solid #cfdbe1; background: #fff; color: var(--muted); border-radius: 99px; padding: 3px 12px; font-size: 12.5px; }
.blk-toggle:hover { border-color: var(--teal); color: var(--teal-dark); }
.block--collapsed { padding-bottom: 16px; }
.block--collapsed > :not(.block-head) { display: none; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px 30px 26px;
  box-shadow: 0 10px 30px rgba(34, 80, 100, .08);
}
.card-top { display: flex; justify-content: flex-end; }
.block { padding: 18px 0 0; }
.block + .block { margin-top: 18px; border-top: 1px solid var(--line); }
/* 카드 위 9:16 세로 영상/이미지 칸 */
/* 16:9 이미지/영상 칸. overflow를 안 막아서 오버레이 내용이 길면 칸이 같이 늘어남 */
.card-media { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 8px auto 0; border-radius: 14px; background: #2b3a45; display: flex; align-items: flex-end; }
.card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.card-media > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
/* 이미지 위 오버레이: 단어·예문 블록 전체가 들어감(글자는 흰색) */
.media-ov {
  position: relative; width: 100%; padding: 36px 20px 16px; border-radius: 0 0 14px 14px; color: #fff;
  background: linear-gradient(to top, rgba(20, 30, 40, .88) 70%, rgba(20, 30, 40, 0));
}
.media-ov .block { padding-top: 8px; }
.media-ov .block + .block { border-top-color: rgba(255, 255, 255, .25); }
.media-ov .line h2, .media-ov .line h3 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.media-ov .pron { color: #8eeaf0; }
.media-ov .pron small, .media-ov .plays { color: rgba(255, 255, 255, .7); }
.media-ov .trans { color: #fff; }
.media-ov .num { background: rgba(255, 255, 255, .22); color: #fff; }
.media-ov .blk-toggle, .media-ov .pron-toggle { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); color: #fff; }
.block-head { position: relative; display: flex; align-items: center; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal-dark); background: #e0f5f7; padding: 2px 12px; border-radius: 99px; }
.tag--yellow { color: #8a6d00; background: #fff3c9; }
.line { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.num {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 999px; background: #f1f6f8; color: var(--muted); font-size: clamp(20px, 2.6vw, 26px); font-weight: 900;
}
.line h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.25; }
.line h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.4; }
.play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--teal); color: #fff; font-size: 16px; box-shadow: 0 6px 14px rgba(25, 184, 196, .35);
  transition: transform .15s, background .15s;
}
.play:hover { transform: scale(1.08); background: var(--teal-dark); }
.pron { color: var(--teal-dark); font-weight: 500; margin-top: 4px; }
.pron small { display: inline-block; margin-right: 10px; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.trans { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.slide__empty { background: #fff; border: 1px dashed #cfdbe1; border-radius: 22px; padding: 60px 30px; text-align: center; color: var(--muted); }
.slide__empty--done { border: 1px solid var(--line); color: var(--teal-dark); font-size: 22px; font-weight: 700; }

/* ----- 아래 이전/다음 ----- */
.p-nav {
  margin-top: 18px;
  width: 100%; max-width: 820px; align-self: center;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 0 28px;
}
.p-nav[hidden] { display: none; }
.p-count { font-size: 13px; color: var(--muted); }
.p-btn {
  padding: 12px 28px; border-radius: 99px; border: 2px solid var(--teal); background: var(--teal); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 18px rgba(25, 184, 196, .28); transition: transform .15s, background .15s;
}
.p-btn:hover { transform: translateY(-2px); background: var(--teal-dark); border-color: var(--teal-dark); }
.p-btn--ghost { background: #fff; color: var(--teal-dark); box-shadow: none; }
.p-btn--ghost:hover { background: #effafb; }
.p-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ----- 이 유닛으로 게임하기 ----- */
.p-game-launch { width: 100%; max-width: 820px; align-self: center; padding: 0 0 36px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.p-btn--game { background: #ff5a3c; border-color: #ff5a3c; box-shadow: 0 8px 18px rgba(255, 90, 60, .3); }
.p-btn--game:hover { background: #e24a2d; border-color: #e24a2d; }

/* ----- AI 튜터 ----- */
.p-modal__box--tutor { max-width: 480px; text-align: left; display: flex; flex-direction: column; max-height: 80vh; }
.p-tutor__head { display: flex; align-items: center; justify-content: space-between; padding-right: 28px; }
.p-tutor__title { font-size: 17px; margin-bottom: 4px; }
.p-tutor__speak { background: none; border: 0; font-size: 18px; padding: 4px; color: var(--teal-dark); }
.p-tutor__speak.is-off { color: var(--muted); opacity: .5; }
.p-tutor__modes { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.p-tutor__mode { border: 1.5px solid #cfdbe1; background: #fff; color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
.p-tutor__mode:hover { border-color: var(--teal); color: var(--teal-dark); }
.p-tutor__mode.is-on { background: #e5f7f9; border-color: var(--teal); color: var(--teal-dark); font-weight: 700; }
.p-tutor__ctx { font-size: 12.5px; color: var(--muted); background: #f1f6f8; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.p-tutor__usage { font-size: 11.5px; color: var(--muted); text-align: right; margin: -6px 0 10px; }
.p-tutor__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 160px; max-height: 44vh; padding-right: 2px; }
.p-tutor__msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.p-tutor__msg--user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.p-tutor__msg--bot { align-self: flex-start; background: #f1f6f8; color: var(--ink); border-bottom-left-radius: 4px; }
.p-tutor__msg--pending { color: var(--muted); font-style: italic; }
.p-tutor__form { display: flex; gap: 8px; margin-top: 14px; }
.p-tutor__input {
  flex: 1; padding: 11px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14px; color: var(--ink);
}
.p-tutor__input:focus { outline: none; border-color: var(--teal); }
.p-tutor__input:disabled, .p-tutor__mic:disabled { opacity: .5; cursor: not-allowed; }
.p-tutor__mic {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  font-size: 17px; color: var(--ink);
}
.p-tutor__mic:hover { border-color: var(--teal); }
.p-tutor__mic.is-rec { background: #ff5a3c; border-color: #ff5a3c; color: #fff; animation: tutorPulse 1s infinite; }
@keyframes tutorPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .5); } 50% { box-shadow: 0 0 0 8px rgba(255, 90, 60, 0); } }

.p-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 30, 36, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.p-modal[hidden] { display: none; }
.p-modal__box {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 22px;
  padding: 30px 26px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); text-align: center;
}
.p-modal__x {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 18px; color: var(--muted); line-height: 1; padding: 4px;
}
.p-modal__x:hover { color: var(--ink); }
.p-game__prog { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.p-game__word { font-size: clamp(26px, 5vw, 34px); font-weight: 900; margin-bottom: 8px; }
.p-game__word--sentence { font-size: clamp(19px, 3.4vw, 24px); font-weight: 700; line-height: 1.4; }
.p-game__playbtn {
  width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--teal); color: #fff;
  font-size: 24px; box-shadow: 0 8px 18px rgba(25, 184, 196, .35); margin-bottom: 8px;
}
.p-game__playbtn:hover { background: var(--teal-dark); }
.p-game__wordrow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.p-game__wordrow .p-game__word { margin-bottom: 0; }
.p-game__playbtn--sm { width: 40px; height: 40px; font-size: 15px; margin-bottom: 0; flex-shrink: 0; }
.p-game__fx { position: absolute; left: 50%; top: 40%; z-index: 5; pointer-events: none; text-align: center; animation: pgFxPop 1.2s ease-out forwards; }
.p-game__fx b { display: block; font-size: 26px; color: var(--teal-dark); background: rgba(255, 255, 255, .94); border: 2px solid var(--teal); border-radius: 999px; padding: 6px 22px; box-shadow: 0 8px 22px rgba(25, 184, 196, .35); white-space: nowrap; }
.p-game__fx span { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: #c43f26; background: #fff3c9; border-radius: 999px; padding: 2px 14px; white-space: nowrap; }
.p-game__fx i { position: absolute; left: 50%; top: 20px; font-style: normal; font-size: 18px; opacity: 0; animation: pgFxBurst .9s ease-out var(--d) forwards; }
@keyframes pgFxPop {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  35% { transform: translate(-50%, -50%) scale(1); }
  80% { transform: translate(-50%, -58%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(1); opacity: 0; }
}
@keyframes pgFxBurst {
  0% { transform: translate(0, 0) scale(.3); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .p-game__fx, .p-game__fx i { animation-duration: .01s; } }
.p-game__prompt { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.p-game__choices { display: grid; gap: 10px; }
.p-game__input {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 16px; color: var(--ink); text-align: center; margin-bottom: 12px;
}
.p-game__input:focus { outline: none; border-color: var(--teal); }
.p-game__input.is-correct { border-color: var(--teal); background: #e5f7f9; color: var(--teal-dark); }
.p-game__input.is-wrong { border-color: #ff5a3c; background: #ffeeea; color: #c43f26; }
.p-game__check { width: 100%; }
.p-game__tray { min-height: 58px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.p-game__pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.p-game__tile {
  min-height: 48px; min-width: 48px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 18px; font-weight: 600; color: var(--ink);
}
.p-game__tile:active { border-color: var(--teal); background: #f1fafb; }
.p-game__answer { margin-top: 14px; font-size: 14px; color: var(--muted); }
.p-game__answer::before { content: "✓ "; color: var(--teal-dark); font-weight: 700; }
.p-game__choice {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; transition: border-color .15s, background .15s;
}
.p-game__choice:hover:not(:disabled) { border-color: var(--teal); background: #f1fafb; }
.p-game__choice:disabled { cursor: default; }
.p-game__choice.is-correct { border-color: var(--teal); background: #e5f7f9; color: var(--teal-dark); }
.p-game__choice.is-wrong { border-color: #ff5a3c; background: #ffeeea; color: #c43f26; }
.p-game__next { margin-top: 18px; }
.p-game__result { font-size: 22px; margin-bottom: 4px; }
.p-game__guestwarn { font-size: 12.5px; color: #c43f26; background: #ffeeea; border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }

/* ----- 모바일 ----- */
@media (max-width: 860px) {
  .p-top { flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; }
  .p-menu-btn { display: block; }
  .p-prog { order: 5; flex: 1 1 100%; margin-left: 0; }
  .p-bar { flex: 1; width: auto; }
  .p-menu { position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; width: 82%; max-width: 320px; transform: translateX(-100%); transition: transform .25s; box-shadow: 8px 0 30px rgba(0, 0, 0, .15); }
  .p-menu.is-open { transform: none; }
  .p-stage { padding: 16px 14px 0; }
  .card { padding: 12px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 발음표기 숨기기/보기 버튼 (재생 후 나타남) */
.pron[hidden] { display: none; }
.pron-toggle {
  margin-top: 8px; padding: 4px 14px; border-radius: 99px;
  border: 1px solid #cfdbe1; background: #fff; color: var(--muted); font-size: 12.5px;
}
.pron-toggle:hover { border-color: var(--teal); color: var(--teal-dark); }

/* 뜻/해석 글씨 크게 */
.trans { color: var(--ink); font-weight: 500; line-height: 1.45; margin-top: 10px; }
.block:not(.block--sentence) .trans { font-size: clamp(24px, 3vw, 30px); }
.block--sentence .trans { font-size: clamp(20px, 2.4vw, 24px); }
.ctrl { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-top: 6px; }
.ctrl .pron-toggle { margin-top: 0; }
.plays { font-size: 12.5px; color: var(--teal-dark); font-weight: 600; }
.p-auto { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; }
.p-auto select { font: inherit; font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); }
.p-crumb em { margin-left: 0; }

/* ☰ 보기 설정 (단어/예문별 보이기·숨기기, 뜻 음성) */
.p-opt { position: relative; }
.p-opt__btn { background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 20px; line-height: 1; padding: 7px 12px; color: var(--ink); }
.p-opt__btn:hover, .p-opt__btn[aria-expanded="true"] { border-color: var(--teal); color: var(--teal-dark); }
.p-opt__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 300px; max-width: 86vw;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px;
  box-shadow: 0 16px 40px rgba(34, 80, 100, .18);
}
.p-opt__panel[hidden] { display: none; }
.p-opt__panel h3 { font-size: 14px; margin-bottom: 8px; }
.p-opt__panel fieldset { border: 0; border-top: 1px solid var(--line); padding: 8px 0 4px; margin: 0; }
.p-opt__panel legend { font-size: 12px; font-weight: 700; color: var(--teal-dark); padding: 0 8px 0 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--teal); }
.line__hidden { color: #b9c8cf; font-size: 26px; letter-spacing: 4px; }
.trans-row { display: flex; align-items: center; gap: 14px; }
.trans-row .trans { flex: 1; }
.play--mean { width: 36px; height: 36px; font-size: 13px; background: var(--yellow, #ffd24d); color: #6b5300; box-shadow: none; }
.play--mean:hover { background: #ffc61f; }

.opt--sel { justify-content: space-between; }
.opt--sel select { font: inherit; font-size: 13px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }

.p-btn--stop { background: #ff5a3c; border-color: #ff5a3c; padding: 8px 18px; }
.p-btn--stop:hover { background: #e24a2d; border-color: #e24a2d; }
.p-btn[hidden] { display: none; }

/* 여행 목차: 챕터 구분줄 */
.p-chap { padding: 12px 12px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }

.opt--sel input[type=range] { width: 120px; accent-color: var(--teal); }

.slide__locked p { margin: 6px 0 20px; line-height: 1.7; }
.slide__lock { font-size: 40px; }
.slide__locked .p-btn { display: inline-block; }

/* ----- 모바일: 상단 막대 자동 숨김 (맨 위를 터치하면 다시 나옴) ----- */
.p-toptap { display: none; }
@media (max-width: 860px) {
  .p-top { overflow: hidden; max-height: 200px; transition: max-height .3s, padding .3s, border-width .3s; }
  .player.top-hidden .p-top { max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
  .player.top-hidden .p-toptap { display: block; position: fixed; top: 0; left: 0; right: 0; height: 28px; z-index: 15; }
}
