/* 강의실 전용 — style.css 색·틀을 그대로 쓰고 글자·단추만 키운다 (50~60대 수강생) */
body.classroom { font-size: 18px; }
.cr { padding: 40px 0 72px; }
.cr-head { text-align: center; margin-bottom: 26px; }
.cr-head h1 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); }
.cr h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin-bottom: 10px; }
.cr .card:hover { transform: none; box-shadow: none; border-color: var(--line); }

.cr-box { max-width: 600px; margin: 0 auto; padding: 30px; }
.cr-big { font-size: 1.2rem; text-align: center; color: var(--dim); }
.cr-box label { display: block; font-size: 1.05rem; color: var(--text); font-weight: 700; margin: 20px 0 8px; }
.cr-box input {
  width: 100%; padding: 16px 16px; border-radius: 12px; font-size: 1.2rem;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text); font-family: inherit;
}
.cr-box input:focus { outline: none; border-color: var(--amber); }
.cr-order-input { letter-spacing: 3px; font-family: "Courier New", monospace !important; font-weight: 700; font-size: 1.35rem !important; }
.cr-btn { border: 0; cursor: pointer; font-family: inherit; font-size: 1.15rem; min-height: 58px; padding: 14px 28px; }
.cr-box .cr-btn { width: 100%; margin-top: 22px; }
.cr-help { color: var(--dim); font-size: 1rem; margin-top: 14px; }
.cr-err { color: #ff9b9b; font-size: 1.08rem; font-weight: 700; margin-top: 14px; }
.cr-who { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.linkish { background: none; border: 0; color: var(--dim); cursor: pointer; font-family: inherit; font-size: .95rem; text-decoration: underline; margin-left: 8px; }

/* 상태 줄 */
.cr-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cr-period { color: var(--dim); font-size: 1.05rem; }
.cr-period b { color: var(--amber); }

/* 재생 */
.cr-player { margin-top: 18px; scroll-margin-top: 76px; } /* 레슨을 열어 굴러갈 때 머리(접기 단추)가 고정 메뉴 밑에 숨지 않게 */
.cr-now { color: var(--amber); font-weight: 800; font-size: 1rem; }
/* 레슨 머리 — 누르면 접힌다 */
.player-head {
  width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  background: none; border: 0; padding: 0; color: var(--text); text-align: left; cursor: pointer; font-family: inherit;
}
.player-head .ph-text { display: flex; flex-direction: column; min-width: 0; }
.player-head .ph-title { font-size: clamp(1.3rem, 2.8vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; margin-top: 2px; }
.player-head .ph-fold {
  flex: none; margin-top: 2px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--dim); font-size: 1rem; font-weight: 800; white-space: nowrap;
}
.player-head:hover .ph-fold, .player-head:focus-visible .ph-fold { border-color: var(--amber); color: var(--amber); }
.badge.fold { border-color: var(--amber); color: var(--amber); }
.cr-go { font-weight: 700; }
.player-box {
  position: relative; background: #000; border-radius: 12px; overflow: hidden; margin-top: 12px;
  aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none;
}
.player-box video { width: 100%; height: 100%; display: block; background: #000; }
/* 유튜브 레슨 — 영상 태그 자리에 유튜브 재생기(iframe). 영상 태그가 hidden 이면 이것이, 아니면 영상 태그가 보인다(10-09) */
.player-box .yt { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.player-box .yt[hidden], .player-box video[hidden] { display: none; }
/* 크롬은 controlsList="nofullscreen" 을 주는데도 기본 전체화면 단추를 보였다(09-28 실측) — 영상만 전체화면이
   되면 워터마크가 빠지므로 단추를 숨기고, 전체화면은 아래 우리 단추(상자 전체화면)로만 한다. */
.player-box video::-webkit-media-controls-fullscreen-button { display: none !important; }
.player-box:fullscreen, .player-box:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; aspect-ratio: auto; }
/* 워터마크 — 수강생 이메일을 왼쪽 위에 작게 고정 (10-09 대표 「움직이게 하지 말고 고정」 · 오른쪽 위는 전체화면 「✕」 단추 자리)
   영상이 아니라 감싼 상자 위라 전체화면에서도 보인다 */
.wm {
  position: absolute; left: 14px; top: 12px; z-index: 2; pointer-events: none;
  color: #fff; opacity: .35; font-weight: 700; white-space: nowrap;
  font-size: clamp(12px, 1.3vw, 15px); text-shadow: 0 0 3px #000;
}
.fs-exit {
  display: none; position: absolute; top: 14px; right: 14px; z-index: 4;
  background: rgba(20, 22, 26, .75); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px; padding: 10px 16px; font-size: 1.05rem; font-family: inherit; cursor: pointer;
}
.player-box:fullscreen .fs-exit, .player-box:-webkit-full-screen .fs-exit { display: block; }
.player-stop {
  position: absolute; inset: 0; z-index: 5; background: rgba(8, 10, 14, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; padding: 20px;
}
.cr .player-stop p { color: var(--text); font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; }
.cr-order-input::placeholder { letter-spacing: normal; font-family: "Noto Sans KR", sans-serif; font-weight: 400; }
/* 재생 속도 · 화질 고르개 (10-09) — 큰 글자 · 영상 바로 아래 */
.player-opts { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.player-opts[hidden], .player-opts .opt[hidden] { display: none; }
.player-opts .opt { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.player-opts select {
  font: inherit; font-size: 1.1rem; font-weight: 700; min-height: 48px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text);
}
.player-opts select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.player-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.player-tools .cr-btn { flex: 1; min-width: 220px; }
#btn-done.done { border-color: var(--amber); color: var(--amber); }
.cr-lesson-text { margin-top: 18px; font-size: 1.1rem; }
.cr-lesson-text p { margin-top: 8px; }
.cr-pass { border-left: 4px solid var(--amber); background: rgba(245, 166, 35, .07); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.cr-pass b { color: var(--amber); margin-right: 8px; }

/* 목차 */
.part { margin-top: 18px; }
.part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.part-head h3 { font-size: 1.3rem; }
.part-head .cnt { color: var(--dim); font-size: 1rem; }
.lessons { list-style: none; }
.lesson {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 66px; padding: 12px 14px; margin-top: 8px; border-radius: 12px;
  background: var(--bg2); border: 1.5px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 1.1rem; cursor: pointer;
}
.lesson:hover:not(:disabled) { border-color: var(--amber-dark); }
.lesson.on { border-color: var(--amber); background: rgba(245, 166, 35, .08); }
.lesson:disabled { cursor: default; color: var(--dim); opacity: .75; }
.lesson .ln { flex: none; min-width: 52px; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.lesson:disabled .ln { color: var(--dim); }
.lesson .lt { flex: 1; }
.lesson .badges { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .88rem; font-weight: 800; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.badge.new { background: var(--amber); border-color: var(--amber); color: #14161a; }
.badge.seen { border-color: var(--amber-dark); color: var(--amber); }
.badge.shoot { border-color: #6b7280; color: var(--text); }
/* 잠긴 목차 · 구매 단추 (09-30 — 목차는 로그인한 회원에게만) */
.cr-guest { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cr .cr-guest-t { color: var(--text); font-weight: 800; font-size: 1.25rem; }
.cr-guest .cr-help { margin-top: 6px; color: var(--text); }
.cr-guest-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cr-guest-btns .cr-btn, .cr-buy { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cr .card.flash { animation: cr-flash 1.6s ease; }
@keyframes cr-flash { 0%, 55% { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 166, 35, .28); } 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); } }
.lesson.locked { color: var(--dim); }
.lesson.locked .ln { color: var(--dim); }
.lesson.locked:hover { border-color: var(--line); }
.badge.lock { border-color: var(--line); color: var(--dim); }
.badge.rel { margin-left: 8px; vertical-align: middle; font-size: .78rem; border-color: var(--amber-dark); color: var(--amber); }

/* 📎 자료(Part · 레슨에 붙인 파일) — 단추 하나가 파일 하나 */
.cr-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.part-head .cr-files { width: 100%; margin-top: 0; margin-bottom: 6px; }
.cr-file {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg2); color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; text-align: left;
}
.cr-file:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); }
.cr-file:disabled { opacity: .6; cursor: progress; }
.cr-file .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.cr-file small { color: var(--dim); font-weight: 400; white-space: nowrap; }
.cr-files-h { color: var(--dim); font-size: .95rem; font-weight: 800; margin-top: 18px; }
.badge.file { border-color: var(--amber-dark); color: var(--amber); }

@media (max-width: 640px) {
  /* 공용 머리 메뉴가 폰 폭을 넘는다(기존 쪽 전부 같은 증상 · style.css 는 안 건드림) — 강의실 쪽에서만 줄바꿈 */
  body.classroom .top-inner { flex-wrap: wrap; gap: 8px 20px; }
  body.classroom nav.menu { flex-wrap: wrap; gap: 6px 16px; margin-left: 0; }
  .lesson { flex-wrap: wrap; }
  .lesson .badges { width: 100%; justify-content: flex-start; padding-left: 66px; }
  .cr-status .cr-btn { width: 100%; }
  .cr-guest-btns { width: 100%; }
  .cr-guest-btns .cr-btn { flex: 1 1 100%; } /* 폰에서는 단추를 한 줄에 하나씩(글자가 두 줄로 안 꺾이게) */
  .cr-player { scroll-margin-top: 140px; } /* 폰은 메뉴가 두 줄(약 125px) */
}
