/* คลิปเรียนรู้ OVECIC — ตัวเล่น */
.ovecvideo-player { max-width: 960px; margin: 0 auto; }
.ovv-stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
/* ตัว iframe ของ YouTube: รับเมาส์ไม่ได้เลย (คลิก/คลิกขวา/ชี้) + กด Tab เข้าไม่ได้ (tabindex=-1 ใน player.js)
   ⇒ ชื่อคลิป/โลโก้/"ดูใน YouTube" ที่ YouTube วาดตอนหยุด กดออกไปไม่ได้ · ⛔ ห้ามขยาย/ตัดขอบ iframe
   (เคยลองซ่อนแถบบน-ล่างด้วยการตัดขอบ → คำบรรยาย CC ที่ YouTube วาดชิดขอบล่างของ iframe หายไปด้วย) */
.ovv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
/* 1.5 ไฟล์วิดีโอชั่วคราว (รอคิว YouTube) — กติกาเดียวกับ iframe: รับเมาส์ไม่ได้ ใช้แถบของเราเท่านั้น */
.ovv-stage video.ovv-file { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; pointer-events: none; }
/* ชั้นกันคลิก: ให้คลิกที่คลิป = เล่น/หยุด ผ่านปุ่มของเราเท่านั้น ไม่ให้แตะตัวควบคุมของ YouTube */
.ovv-shield { position: absolute; inset: 0; cursor: pointer; }
.ovv-bigplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); color: #fff; font-size: 72px; cursor: pointer; }  /* ทึบพอกลบแถบของ YouTube ตอนหยุด */
.ovv-bigplay span { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.7); }
.ovv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #1f2937; color: #fff;
  border-radius: 0 0 10px 10px; font-size: 14px; }
.ovv-btn { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.ovv-btn:hover { background: rgba(255,255,255,.12); border-radius: 6px; }
.ovv-track { position: relative; flex: 1; height: 10px; background: #4b5563; border-radius: 5px; cursor: pointer; }
.ovv-watched { position: absolute; left: 0; top: 0; bottom: 0; background: #9ca3af; border-radius: 5px; }
.ovv-played { position: absolute; left: 0; top: 0; bottom: 0; background: #f59e0b; border-radius: 5px; }
.ovv-qmark { position: absolute; top: -3px; width: 6px; height: 16px; margin-left: -3px; background: #fff;
  border-radius: 2px; opacity: .9; }
.ovv-qmark.done { background: #22c55e; }
.ovv-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ovv-hint { margin-top: 8px; font-size: 13px; color: #6b7280; }
.ovv-toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(17,24,39,.92);
  color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px; pointer-events: none; opacity: 0;
  transition: opacity .25s; max-width: 90%; text-align: center; }
.ovv-toast.show { opacity: 1; }
.ovv-toast.bad { background: rgba(185,28,28,.94); }
.ovv-toast.good { background: rgba(21,128,61,.94); }
/* คำถาม */
.ovv-q { position: absolute; inset: 0; background: rgba(17,24,39,.94); color: #fff; display: flex;
  flex-direction: column; justify-content: center; padding: 24px 32px; overflow: auto; }
.ovv-q h4 { color: #fbbf24; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.ovv-q .ovv-qtext { font-size: 20px; line-height: 1.45; margin-bottom: 16px; }
.ovv-q label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.08); border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1.4; }
.ovv-q label:hover { background: rgba(255,255,255,.16); }
.ovv-q input[type=radio] { margin-top: 5px; }
.ovv-q .ovv-next { align-self: flex-end; margin-top: 8px; background: #f59e0b; color: #111; border: 0;
  border-radius: 8px; padding: 10px 26px; font-size: 17px; font-weight: 600; cursor: pointer; }
.ovv-q .ovv-next:disabled { opacity: .45; cursor: default; }
.ovv-done { margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: #dcfce7; color: #14532d; font-size: 16px; }
@media (max-width: 600px) {
  .ovv-q { padding: 14px 16px; }
  .ovv-q .ovv-qtext { font-size: 17px; }
  .ovv-q label { font-size: 15px; padding: 8px 10px; }
}

/* หยุดเพราะออกจากหน้าคลิป — ต้องกดเล่นเองเมื่อกลับมา */
.ovv-away { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 6;
    background: rgba(17,24,39,.88); color: #fff; text-align: center; cursor: pointer; padding: 16px; }
.ovv-away.show { display: flex; }
.ovv-away b { display: block; font-size: 20px; margin-bottom: 8px; color: #fbbf24; }
.ovv-away span { font-size: 15px; opacity: .9; }

/* ปุ่ม CC */
.ovv-cc { font-size: 12px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.55); border-radius: 4px; padding: 3px 6px; opacity: .7; }
.ovv-cc.on { background: #fff; color: #111827; opacity: 1; border-color: #fff; }
