/* KENKA CENTER — Youthful, Energetic, Vibrant Student Math Platform (Zalo-First) */

:root {
  --bg: #f4f9ff;
  --surface: #ffffff;
  --border: #d8e8ff;
  --border-strong: #b6d4fe;

  --sky-500: #0ea5e9;
  --blue-600: #0077ff;
  --blue-700: #0052cc;
  --blue-50: #edf6ff;

  --yellow-400: #ffd43b;
  --orange-500: #ff6b2c;
  --orange-600: #ea580c;

  --mint-500: #10b981;
  --mint-50: #ecfdf5;
  --pink-500: #f43f5e;
  --pink-50: #fff1f2;
  --violet-500: #8b5cf6;
  --zalo: #0068ff;

  --ink-950: #0c1d3d;
  --ink-900: #132952;
  --ink-700: #35507a;
  --ink-500: #607a9e;
  --ink-400: #8da5c6;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-xs: 0 3px 10px rgba(0, 104, 255, 0.06);
  --shadow-sm: 0 10px 26px -6px rgba(0, 104, 255, 0.13);
  --shadow-md: 0 20px 44px -12px rgba(0, 104, 255, 0.2);
  --shadow-lg: 0 28px 60px -14px rgba(0, 82, 204, 0.24);

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Vibrant Announcement Ribbon */
.top-ribbon {
  background: linear-gradient(90deg, #0052cc 0%, #0077ff 50%, #0ea5e9 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 0;
}

.top-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-pill {
  display: inline-block;
  background: var(--yellow-400);
  color: var(--ink-950);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 8px;
}

/* Clean Single-Row Balanced Header (NEVER wraps menu items) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-circle-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue-700);
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-500);
  font-weight: 600;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-700);
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.18s ease;
}

.header-nav a:hover { color: var(--blue-600); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  width: 240px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--ink-900);
  transition: all 0.2s ease;
}

.header-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-600);
}

.header-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-600);
  pointer-events: none;
}

/* Vibrant Playful Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-zalo {
  background: linear-gradient(135deg, #0084ff, #005ce6);
  color: #fff;
  box-shadow: 0 10px 22px -6px rgba(0, 104, 255, 0.5);
}

.btn-cta {
  background: linear-gradient(135deg, #ff8a00, #ff5500);
  color: #fff;
  box-shadow: 0 10px 22px -6px rgba(255, 85, 0, 0.48);
}

.btn-mint {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 10px 20px -6px rgba(16, 185, 129, 0.42);
}

.btn-outline {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.btn-lg { height: 50px; padding: 0 26px; font-size: 0.95rem; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.82rem; }

/* Youthful Full-Width Hero Showcase (ZERO CROP, ZERO FORM!) */
.hero-showcase {
  padding: 24px 0 36px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 212, 59, 0.25), transparent 36%),
    radial-gradient(circle at 88% 15%, rgba(14, 165, 233, 0.2), transparent 38%),
    linear-gradient(180deg, #dff1ff 0%, #f4f9ff 100%);
}

.hero-banner-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  background: #0077ff;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Energetic Action Dock right below Hero Banner */
.hero-dock {
  margin-top: 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dock-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.dstat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dstat-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.dstat-val { font-weight: 800; font-size: 1rem; color: var(--ink-950); line-height: 1.15; }
.dstat-lbl { font-size: 0.76rem; color: var(--ink-500); font-weight: 600; }

.dock-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Section Headings — Tight, balanced, ZERO orphan words */
.section-head-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.kicker-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff3e0;
  color: var(--orange-600);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--ink-950);
}

.section-sub {
  font-size: 0.95rem;
  color: var(--ink-500);
  margin-top: 8px;
}

/* 4 Colorful Grade Pathway Cards */
.pathways-section { padding: 14px 0 36px; }

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pathway-card {
  border-radius: 22px;
  padding: 22px 20px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.pathway-card.p-sky { border-color: #7dd3fc; background: linear-gradient(160deg, #e0f2fe 0%, #ffffff 70%); }
.pathway-card.p-blue { border-color: #93c5fd; background: linear-gradient(160deg, #dbeafe 0%, #ffffff 70%); }
.pathway-card.p-amber { border-color: #fcd34d; background: linear-gradient(160deg, #fef3c7 0%, #ffffff 70%); }
.pathway-card.p-violet { border-color: #c4b5fd; background: linear-gradient(160deg, #ede9fe 0%, #ffffff 70%); }
.pathway-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.pathway-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.18);
}

.pathway-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink-950); }
.pathway-card p { font-size: 0.82rem; color: var(--ink-700); }
.pathway-link { font-size: 0.82rem; font-weight: 800; color: var(--blue-700); margin-top: auto; padding-top: 4px; }

/* Courses Catalog */
.catalog-section { padding: 20px 0 64px; }

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
}

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-pill {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.filter-pill:hover { border-color: var(--blue-600); color: var(--blue-600); }
.filter-pill.active {
  background: linear-gradient(135deg, #0077ff, #0052cc);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0, 112, 243, 0.45);
}

.sort-select {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.84rem;
  color: var(--ink-700);
  font-weight: 700;
}

/* Course Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.course-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #60a5fa;
}

.course-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  background: #eaf4ff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.course-thumb.is-3x2 img {
  object-fit: contain;
  background: #f3f8ff;
}

.course-card:hover .course-thumb img { transform: scale(1.03); }

.thumb-badges {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.pill-discount {
  background: linear-gradient(135deg, #ff4d6d, #e11d48);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
}

.pill-discount.free { background: linear-gradient(135deg, #10b981, #059669); }

.course-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-950);
  margin-bottom: 6px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.course-title:hover { color: var(--blue-600); }
.course-teacher { font-size: 0.82rem; color: var(--ink-500); font-weight: 600; margin-bottom: 10px; }

.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-700);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1.5px dashed var(--border);
}

.course-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.price-now { font-size: 1.2rem; font-weight: 800; color: var(--blue-700); line-height: 1.1; }
.price-now.free { color: var(--mint-500); }
.price-old { font-size: 0.76rem; color: var(--ink-400); text-decoration: line-through; margin-top: 2px; }
.price-save { font-size: 0.72rem; color: var(--orange-600); font-weight: 800; }
.card-btns { display: flex; gap: 6px; }

/* Youthful Fun Benefits Section */
.fun-section {
  background: #fff;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 60px 0;
}

.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.fun-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fun-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
}

.fun-card h3 { font-size: 1.06rem; font-weight: 800; color: var(--ink-950); }
.fun-card p { font-size: 0.88rem; color: var(--ink-700); }

/* FAQ Section */
.faq-section { padding: 58px 0 36px; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-950);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] { border-color: #60a5fa; box-shadow: var(--shadow-xs); }
.faq-answer { padding: 0 20px 18px; font-size: 0.9rem; color: var(--ink-700); }

/* Big Vibrant Zalo Conversion Banner */
.zalo-cta-section { padding: 24px 0 64px; }

.zalo-cta-box {
  background: linear-gradient(135deg, #0052cc 0%, #0077ff 55%, #00b4d8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.zalo-cta-left {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 660px;
}

.zalo-cta-photo {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  object-fit: cover;
  border: 4px solid var(--yellow-400);
  flex-shrink: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 29, 61, 0.64);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 1.2rem;
  color: var(--ink-700);
  display: grid;
  place-items: center;
}

.modal-body { padding: 24px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 26px;
  align-items: start;
}

.yt-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-950);
  margin-bottom: 20px;
}

.yt-box iframe { width: 100%; height: 100%; border: 0; }

.detail-cover-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}

.chapter-accordion {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.chapter-accordion summary {
  list-style: none;
  padding: 13px 16px;
  background: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.chapter-accordion summary::-webkit-details-marker { display: none; }

.lesson-item {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.lesson-free-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mint-500);
  background: var(--mint-50);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.buy-sidebar {
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 76px;
}

/* Footer */
.site-footer {
  background: #0b2559;
  color: #dbeafe;
  padding: 34px 0;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* Floating Pulsing Zalo Button */
.floating-zalo {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0084ff, #005ce6);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 14px 30px rgba(0, 104, 255, 0.45);
}

.floating-zalo:hover { transform: translateY(-2px); }

@media (max-width: 1080px) {
  .header-search { width: 180px; }
  .header-nav { gap: 16px; }
}

@media (max-width: 960px) {
  .header-nav { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .pathways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courses-grid, .fun-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .pathways-grid, .courses-grid, .fun-grid { grid-template-columns: 1fr; }
  .zalo-cta-box { padding: 26px; }
  .floating-zalo span { display: none; }
}

/* Protected Edubit-style YouTube Video Player */
.kp-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #071326;
  margin-bottom: 14px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 14px 30px -12px rgba(7, 19, 38, 0.45);
}

.kp-player:fullscreen {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
}

.kp-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Overscale slightly vertically so YouTube's top title/share bar & bottom logo stay outside clipped frame */
.kp-stage iframe,
.kp-iframe-host {
  position: absolute;
  top: -64px;
  left: 0;
  width: 100%;
  height: calc(100% + 128px);
  border: 0;
  pointer-events: none;
}

.kp-shield {
  position: absolute;
  inset: 0 0 46px 0;
  z-index: 3;
  cursor: pointer;
  background: transparent;
}

.kp-watermark {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background: rgba(7, 19, 38, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  transition: top 1.4s ease, left 1.4s ease;
  white-space: nowrap;
}

.kp-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 8;
  background: rgba(12, 29, 61, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 59, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.kp-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.kp-pause-cover {
  position: absolute;
  inset: 0 0 46px 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(11, 37, 89, 0.72), rgba(7, 19, 38, 0.9));
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.kp-pause-cover.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.kp-big-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ff8a00, #ff5500);
  color: #fff;
  font-size: 1.55rem;
  padding-left: 4px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(255, 102, 0, 0.5);
  transition: transform 0.18s ease;
}

.kp-pause-cover:hover .kp-big-play {
  transform: scale(1.08);
}

.kp-pause-title {
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  max-width: 86%;
  line-height: 1.35;
}

.kp-pause-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffd43b;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}

.kp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.78), rgba(7, 19, 38, 0.96));
  color: #fff;
}

.kp-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kp-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.kp-time {
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.kp-seek {
  flex: 1;
  accent-color: #ff8a00;
  cursor: pointer;
  height: 5px;
}

.kp-vol {
  width: 60px;
  accent-color: #38bdf8;
  cursor: pointer;
  height: 4px;
}

.kp-speed {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
}

.kp-speed option {
  color: #0c1d3d;
}

.kp-now-playing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  font-size: 0.83rem;
  color: #1e3a8a;
}

.lesson-item.has-video {
  cursor: pointer;
  transition: background 0.15s ease;
}

.lesson-item.has-video:hover {
  background: #eff6ff;
}

.lesson-item.is-active {
  background: #dbeafe;
  color: #0052cc;
  font-weight: 700;
}

.lesson-play-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0077ff);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .kp-vol,
  .kp-skip-btn {
    display: none;
  }
}

/* HTML5 HLS .m3u8 & Embed Player additions */
.kp-html5-stage .kp-video,
.kp-embed-stage iframe {
  position: absolute;
  inset: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
}

.kp-embed-stage iframe {
  pointer-events: auto;
}

.kp-quality {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
}

.kp-quality option {
  color: #0c1d3d;
}
