/* 보수교육(VOD) 수강 화면 */
.vod-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; font-family: 'Malgun Gothic', '맑은 고딕', sans-serif; color: #222; box-sizing: border-box; }
.vod-wrap *, .vod-wrap *::before, .vod-wrap *::after { box-sizing: border-box; }
.vod-title { font-size: 1.5em; font-weight: bold; margin: 0 0 6px; }
.vod-sub { color: #666; margin: 0 0 20px; }

/* 로그인 */
.vod-login { max-width: 420px; margin: 40px auto; padding: 32px 28px; border: 1px solid #dde3ea; border-radius: 12px; background: #fff; }
.vod-login h1 { font-size: 1.4em; margin: 0 0 8px; text-align: center; }
.vod-login p.desc { color: #666; text-align: center; margin: 0 0 24px; font-size: .95em; line-height: 1.5; }
.vod-field { margin-bottom: 16px; }
.vod-field label { display: block; font-weight: bold; margin-bottom: 6px; }
.vod-field input[type=text], .vod-field input[type=tel] { width: 100%; height: 48px; padding: 0 14px; font-size: 1.1em; border: 1px solid #c8d0da; border-radius: 8px; }
.vod-field input:focus { border-color: #1f5fbf; outline: none; }
.vod-field .help { font-size: .85em; color: #888; margin-top: 4px; }
.vod-btn { display: inline-block; width: 100%; height: 52px; line-height: 52px; border: 0; border-radius: 8px; background: #1f5fbf; color: #fff; font-size: 1.1em; font-weight: bold; cursor: pointer; text-align: center; text-decoration: none; }
.vod-btn:hover { background: #174c99; color: #fff; }
.vod-btn.gray { background: #6b7684; }
.vod-notice { margin-top: 20px; padding: 14px 16px; background: #f5f7fa; border-radius: 8px; font-size: .9em; color: #555; line-height: 1.6; }

/* 동명이인 선택 */
.vod-choice { list-style: none; padding: 0; margin: 0 0 16px; }
.vod-choice li { margin-bottom: 8px; }
.vod-choice label { display: block; padding: 14px; border: 1px solid #c8d0da; border-radius: 8px; cursor: pointer; }
.vod-choice input { margin-right: 8px; }

/* 플레이어 화면 */
.vod-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vod-user { color: #555; font-size: .95em; }
.vod-user strong { color: #222; }
.vod-logout { font-size: .9em; color: #666; text-decoration: underline; }
.vod-player { position: relative; width: 100%; padding-top: 56.25%; background: #000; border: 6px solid #1f2933; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.vod-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vod-status { margin: 16px 0; padding: 16px; border: 1px solid #dde3ea; border-radius: 8px; background: #fff; }
.vod-status-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .95em; }
.vod-bar { height: 12px; background: #e9edf2; border-radius: 6px; overflow: hidden; }
.vod-bar span { display: block; height: 100%; width: 0; background: #1f5fbf; transition: width .4s; }
.vod-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .85em; font-weight: bold; background: #e9edf2; color: #555; }
.vod-badge.ing { background: #e6f0ff; color: #1f5fbf; }
.vod-badge.done { background: #e3f6e8; color: #1e8a3c; }

.vod-msg { display: none; margin: 12px 0; padding: 12px 16px; border-radius: 8px; background: #fff4e5; color: #8a5300; font-size: .95em; }
.vod-msg.error { background: #fdecec; color: #b42318; }
.vod-done { display: none; margin: 12px 0; padding: 18px; border-radius: 8px; background: #e3f6e8; color: #1e6b33; font-weight: bold; text-align: center; font-size: 1.1em; }
.vod-guide { margin-top: 16px; padding-left: 20px; color: #666; font-size: .9em; line-height: 1.8; }

/* 사이트 레이아웃 안에 들어갈 때 */
.content_area .vod-wrap { padding-top: 0; }
.content_area .vod-login { margin-top: 10px; }

/* 점검 모드 (?debug=1) */
.vod-debug { margin-top: 20px; padding: 12px; border: 1px dashed #c00; border-radius: 8px; background: #fffafa; font-size: 13px; }
.vod-debug pre { margin: 8px 0 0; max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; color: #333; }

/* 수강 종료 버튼 */
.vod-end-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 40px; padding: 0 18px; border: 1px solid #c8d0da; border-radius: 20px; background: #fff; color: #44505e; font-size: 15px; font-weight: bold; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.vod-end-btn svg { flex-shrink: 0; }
.vod-end-btn:hover, .vod-end-btn:focus { background: #fdecec; border-color: #e5a9a4; color: #b42318; text-decoration: none; }
@media (max-width: 600px) {
    .vod-end-btn { height: 36px; padding: 0 14px; font-size: 14px; }
}

/* 개인정보 수집·이용 동의 */
.vod-login-wide { max-width: 560px; }
.vod-privacy { margin-bottom: 14px; padding: 16px; border: 1px solid #dde3ea; border-radius: 8px; background: #f8fafc; font-size: 14px; line-height: 1.6; color: #444; }
.vod-privacy-lead { margin: 0 0 10px; }
.vod-privacy-table { width: 100%; border-collapse: collapse; background: #fff; }
.vod-privacy-table th, .vod-privacy-table td { padding: 8px 10px; border: 1px solid #dde3ea; text-align: left; vertical-align: top; }
.vod-privacy-table th { width: 30%; background: #eef2f6; font-weight: bold; white-space: nowrap; }
.vod-privacy-note { margin: 10px 0 0; font-size: 13px; color: #666; }
.vod-agree-check { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid #1f5fbf; border-radius: 8px; background: #f2f7ff; cursor: pointer; font-size: 15px; }
.vod-agree-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }

/* 오픈 전 안내 / 관리자 미리보기 */
.vod-open-date { display: inline-block; margin: 6px 0; font-size: 1.25em; color: #1f5fbf; }
.vod-preview { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #fff4e5; color: #8a5300; font-size: 14px; font-weight: bold; text-align: center; }

/* 교육안내 및 주의사항 */
.vod-edu-guide { margin-bottom: 22px; padding: 16px 18px; border: 1px solid #c9d8ee; border-radius: 8px; background: #f2f7ff; font-size: 14px; line-height: 1.7; color: #333; }
.vod-edu-guide h3 { margin: 0 0 8px; font-size: 16px; color: #1f5fbf; }
.vod-edu-guide ul { margin: 0; padding: 0; list-style: none; }
.vod-edu-guide li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.vod-edu-guide li::before { content: '○'; position: absolute; left: 0; top: 0; color: #1f5fbf; }
.vod-edu-guide .lbl { display: inline-block; min-width: 64px; font-weight: bold; }
.vod-edu-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: #fff4e5; color: #8a5300; font-size: 14px; }
.vod-sec-title { margin: 0 0 8px; font-size: 16px; color: #222; }
