/* Learning Library Styles */

/* ── Auth-only elements (hidden until authenticated) ── */
.ll-auth-only {
  display: none !important;
}

body.ll-authenticated .ll-auth-only {
  display: inline-flex !important;
}

/* Footer links are inline, not flex */
body.ll-authenticated footer a.ll-auth-only {
  display: inline !important;
}

/* Tailwind fallback for injected header/menu elements */
.hidden {
  display: none;
}

/* Header layout fallback to avoid clipped nav items */
#header .ll-desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#header .container {
  max-width: 1320px !important;
}

#header .ll-mobile-toggle {
  display: inline-flex;
}

#header .ll-mobile-menu {
  display: none;
}

header#header .ll-mobile-menu.is-open {
  display: block;
}

/* Learning Library-specific button treatment on shared header markup */
#header .btn.btn-primary {
  border-radius: 14px;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
}

#header .btn.btn-primary:hover {
  transform: translateY(-1px);
}

#header .btn.btn-secondary,
#header .ll-mobile-toggle {
  border-radius: 14px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-highlight), 0 7px 20px rgba(0, 52, 103, 0.1);
}

/* Stabilize LL glass compositing to avoid intermittent flicker */
#header,
.ll-gate-box,
.ll-category-card,
.ll-video-wrapper--framed,
.ll-chapters-bar,
.ll-video-description,
.ll-support-banner,
.ll-coming-soon-page {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 1024px) {
  #header .ll-desktop-nav {
    display: flex;
  }

  #header .ll-mobile-toggle {
    display: none;
  }

  #header .ll-mobile-menu {
    display: none;
  }
}

/* ── Mobile Search Bar (inside mobile menu) ── */
.ll-mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-highlight), 0 5px 16px rgba(0, 52, 103, 0.08);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-bottom: 0.25rem;
}

.ll-mobile-search-bar:hover,
.ll-mobile-search-bar:active {
  border-color: rgba(0, 102, 204, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 52, 103, 0.14);
  transform: translateY(-1px);
}

.ll-mobile-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--slate-400, #94A3B8);
}

.ll-mobile-search-bar:hover .ll-mobile-search-icon,
.ll-mobile-search-bar:active .ll-mobile-search-icon {
  color: var(--blue-primary, #0066CC);
}

.ll-mobile-search-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--slate-400, #94A3B8);
  white-space: nowrap;
}

/* Page layout for learning-library-specific footer behavior */
body {
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Remove global marketing overlays that create harsh lines on LL pages */
body::before,
body::after {
  display: none !important;
}

/* Disable global section transition masks for cleaner blending */
.section::before,
.section::after,
.section-white::before,
.section-white::after,
.hero-section::before,
.hero-section::after {
  display: none !important;
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
}

/* Plain background pages (e.g., Getting Started) should not force footer below fold */
body.ll-plain-page main {
  flex: 0 0 auto;
}

body.ll-plain-page .ll-gate {
  min-height: auto;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

body.ll-plain-page .section {
  padding: clamp(1.25rem, 3vh, 2.25rem) 0 !important;
}

body.ll-plain-page .ll-page-header {
  padding-top: clamp(1rem, 2.5vh, 1.75rem);
  padding-bottom: clamp(0.5rem, 1.5vh, 0.9rem);
}

body.ll-plain-page .ll-coming-soon-page {
  min-height: auto;
  padding: clamp(1.25rem, 3vh, 2rem);
  gap: 1rem;
}

body.ll-plain-page .ll-coming-soon-page-icon {
  width: 72px;
  height: 72px;
}

body.ll-plain-page .ll-coming-soon-page-icon svg {
  width: 32px;
  height: 32px;
}

body.ll-plain-page .ll-support-banner {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}

/* ── Dynamic Background: Dot Grid + Glowing Nodes ── */
.ll-bg-geometry {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Subtle dot grid pattern */
.ll-bg-geometry::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 102, 204, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

/* Soft color wash underneath */
.ll-bg-geometry::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 15% 20%, rgba(0, 102, 204, 0.045), transparent),
    radial-gradient(ellipse 500px 400px at 85% 30%, rgba(0, 184, 169, 0.04), transparent),
    radial-gradient(ellipse 550px 450px at 50% 80%, rgba(0, 229, 160, 0.03), transparent);
}

/* Glowing node dots that pulse softly */
.ll-geo-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.ll-geo-1 {
  width: 6px;
  height: 6px;
  top: 18%;
  left: 12%;
  background: rgba(0, 102, 204, 0.5);
  box-shadow: 0 0 20px 8px rgba(0, 102, 204, 0.12), 0 0 60px 20px rgba(0, 102, 204, 0.06);
  animation: nodePulseA 6s ease-in-out infinite;
}

.ll-geo-2 {
  width: 5px;
  height: 5px;
  top: 12%;
  right: 18%;
  background: rgba(0, 184, 169, 0.5);
  box-shadow: 0 0 18px 7px rgba(0, 184, 169, 0.12), 0 0 50px 18px rgba(0, 184, 169, 0.06);
  animation: nodePulseB 7s ease-in-out infinite 1s;
}

.ll-geo-3 {
  width: 7px;
  height: 7px;
  bottom: 28%;
  left: 8%;
  background: rgba(0, 229, 160, 0.45);
  box-shadow: 0 0 22px 9px rgba(0, 229, 160, 0.1), 0 0 65px 22px rgba(0, 229, 160, 0.05);
  animation: nodePulseA 8s ease-in-out infinite 2s;
}

.ll-geo-4 {
  width: 5px;
  height: 5px;
  top: 45%;
  right: 10%;
  background: rgba(0, 102, 204, 0.4);
  box-shadow: 0 0 16px 6px rgba(0, 102, 204, 0.1), 0 0 45px 16px rgba(0, 102, 204, 0.05);
  animation: nodePulseB 6.5s ease-in-out infinite 3s;
}

.ll-geo-5 {
  width: 4px;
  height: 4px;
  bottom: 15%;
  right: 22%;
  background: rgba(0, 184, 169, 0.45);
  box-shadow: 0 0 14px 5px rgba(0, 184, 169, 0.1), 0 0 40px 14px rgba(0, 184, 169, 0.05);
  animation: nodePulseA 7.5s ease-in-out infinite 4s;
}

.ll-geo-6 {
  width: 6px;
  height: 6px;
  bottom: 35%;
  left: 25%;
  background: rgba(0, 102, 204, 0.35);
  box-shadow: 0 0 18px 7px rgba(0, 102, 204, 0.08), 0 0 55px 20px rgba(0, 102, 204, 0.04);
  animation: nodePulseB 9s ease-in-out infinite 1.5s;
}

/* Remove hex/diamond overrides from old geometry */
.ll-geo-shape--hex,
.ll-geo-shape--diamond {
  border-radius: 50%;
  transform: none;
}

@keyframes nodePulseA {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.4);
  }
}

@keyframes nodePulseB {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(1.2);
  }

  50% {
    opacity: 0.85;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-geo-shape {
    animation: none;
    opacity: 0.5;
  }

  .ll-bg-geometry::before {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ── Password Gate ── */
.ll-gate {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 2rem 0;
}

.ll-gate-box {
  max-width: 440px;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.85) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  text-align: center;
}

.ll-gate-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 184, 169, 0.12));
  border: 1px solid rgba(147, 197, 253, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-gate-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-primary);
}

.ll-gate-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.ll-gate-subtitle {
  color: var(--slate-500);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.ll-gate-input-wrapper {
  position: relative;
}

.ll-gate-input {
  width: 100%;
  padding: 0 2.75rem 0 1.85rem;
  height: 46px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-radius: 16px;
  font-size: 1.0625rem;
  color: var(--slate-900);
  transition: all 220ms var(--ease-smooth);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

.ll-peek-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--slate-400);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms var(--ease-smooth);
}

.ll-peek-btn:hover {
  color: var(--blue-primary);
}

.ll-peek-icon-hide-initial {
  display: none;
}

.ll-gate-input::placeholder {
  color: var(--slate-400);
}

.ll-gate-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08), 0 8px 24px rgba(0, 52, 103, 0.16);
  transform: translateY(-1px);
}

.ll-gate-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.ll-gate-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: none;
}

.ll-gate-error.visible {
  display: block;
}

.ll-gate-btn {
  width: auto;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  justify-content: center;
}

/* ── Category Grid ── */
.ll-categories {
  display: none;
}

.ll-categories.visible {
  display: block;
}

.ll-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ll-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.82) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  border-radius: 20px;
  box-shadow: var(--glass-highlight), 0 10px 26px rgba(0, 52, 103, 0.1);
  transition: all 320ms var(--ease-smooth);
  text-decoration: none;
  color: inherit;
  z-index: 0;
}

/* Colorful glow that sits behind the white card */
.ll-category-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.25), rgba(0, 184, 169, 0.3), rgba(0, 229, 160, 0.25));
  opacity: 0;
  z-index: -1;
  filter: blur(18px);
  transition: opacity 320ms var(--ease-smooth);
}

.ll-category-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
  border-color: rgba(0, 102, 204, 0.34);
  box-shadow: var(--glass-highlight), 0 18px 42px rgba(0, 52, 103, 0.15);
}

.ll-category-card:hover::before {
  opacity: 1;
}

.ll-category-card:hover .ll-category-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.18), rgba(0, 184, 169, 0.18));
  border-color: rgba(0, 102, 204, 0.3);
}

.ll-category-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.10), rgba(0, 184, 169, 0.10));
  border: 1px solid rgba(147, 197, 253, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 340ms var(--ease-smooth);
}

.ll-category-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-primary);
}

.ll-category-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.ll-category-count {
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-top: 0.25rem;
}

/* ── Category Page ── */
.ll-page-header {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  text-align: center;
}

.ll-page-header--compact {
  padding-bottom: 0;
}

.ll-page-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.ll-page-desc {
  color: var(--slate-600);
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Page Eyebrow Pills ── */
.ll-page-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.875rem;
  --pill-bg: rgba(255, 255, 255, 0.45);
  --pill-border: rgba(191, 219, 254, 0.68);
  --pill-text: var(--blue-primary);
  background: var(--pill-bg);
  -webkit-backdrop-filter: blur(14px) saturate(var(--glass-saturate));
  backdrop-filter: blur(14px) saturate(var(--glass-saturate));
  border: 1px solid var(--pill-border);
  box-shadow: var(--glass-highlight), 0 4px 14px rgba(0, 52, 103, 0.08);
  color: var(--pill-text);
}

.ll-page-eyebrow--blue {
  --pill-bg: rgba(255, 255, 255, 0.45);
  --pill-border: rgba(191, 219, 254, 0.68);
  --pill-text: var(--blue-primary);
}

.ll-page-eyebrow--teal {
  --pill-bg: rgba(255, 255, 255, 0.45);
  --pill-border: rgba(153, 246, 228, 0.8);
  --pill-text: var(--teal-primary);
}

.ll-page-eyebrow--green {
  --pill-bg: rgba(255, 255, 255, 0.45);
  --pill-border: rgba(187, 247, 208, 0.8);
  --pill-text: #16a34a;
}


.ll-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 200ms var(--ease-smooth);
  margin-bottom: 2rem;
}

.ll-back-link:hover {
  gap: 0.75rem;
}

.ll-back-link svg {
  width: 16px;
  height: 16px;
}

/* ── Video Page ── */
.ll-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.ll-breadcrumb a,
.ll-breadcrumb span:not(.ll-breadcrumb-sep) {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 220ms var(--ease-smooth);
  letter-spacing: 0.01em;
}

.ll-breadcrumb a {
  color: var(--blue-primary);
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 6px 16px rgba(0, 52, 103, 0.08);
}

.ll-breadcrumb a:hover {
  color: white;
  background: var(--blue-primary);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
  transform: translateY(-1px);
}

.ll-breadcrumb span:not(.ll-breadcrumb-sep) {
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.ll-breadcrumb-sep {
  color: var(--slate-300);
  margin: 0 0.125rem;
  display: inline-flex;
  align-items: center;
}

.ll-breadcrumb-sep svg {
  width: 14px;
  height: 14px;
}

.ll-video-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* Prevent right-click save on video wrapper */
.ll-video-wrapper {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

/* Consistent framed video styling across Learning Library */
.ll-video-wrapper--framed {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 16px 42px rgba(0, 52, 103, 0.14);
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
}

.ll-video-wrapper--framed:hover {
  box-shadow: var(--glass-highlight), 0 24px 56px rgba(0, 52, 103, 0.22);
  border-color: rgba(0, 102, 204, 0.34);
}

.ll-video-wrapper--framed .ll-video-player {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Classroom video: crop baked-in side bars without changing layout */
.ll-video-wrapper--classroom {
  overflow: hidden;
  background: transparent;
}

.ll-video-wrapper--classroom .ll-video-player {
  aspect-ratio: 16 / 7.8;
  object-fit: cover;
  object-position: center 58%;
  background: transparent;
  -webkit-clip-path: inset(0 6.8% 3% 6.8%);
  clip-path: inset(0 6.8% 3% 6.8%);
}

.ll-video-wrapper--classroom .ll-video-player:hover {
  box-shadow: none;
  border-color: transparent;
}

.ll-video-wrapper--classroom .ll-video-player::-webkit-media-controls-panel {
  padding-left: 6.8%;
  padding-right: 6.8%;
  box-sizing: border-box;
}

/* School video: crop bottom black bar */
.ll-video-wrapper--school {
  overflow: hidden;
  background: transparent;
}

.ll-video-wrapper--school .ll-video-player {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  background: transparent;
  -webkit-clip-path: inset(6% 0 6.5% 0);
  clip-path: inset(6% 0 6.5% 0);
}

.ll-video-wrapper--school .ll-video-player:hover {
  box-shadow: none;
  border-color: transparent;
}

.ll-video-wrapper--classroom .ll-video-player::-webkit-media-controls-timeline {
  margin-left: 6.8%;
  margin-right: 6.8%;
}

/* Hide the download button in Chrome/Edge */
video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

video::-webkit-media-controls-download-button,
video::-webkit-media-controls-panel menu {
  display: none !important;
  -webkit-appearance: none;
}

.ll-video-player {
  width: 100%;
  border-radius: 20px;
  /* Trim remaining black bars from pre-cropped video: 8% top, 4% bottom */
  aspect-ratio: 16 / 7.8;
  object-fit: cover;
  object-position: center 65%;
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
  border: 2px solid rgba(0, 102, 204, 0.1);
  background: #000;
  transition: all 400ms var(--ease-smooth);
}

.ll-video-player:hover {
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.25);
  border-color: rgba(0, 102, 204, 0.2);
}

/* ── Custom Video Controls (Classroom) ── */
.ll-custom-player {
  position: relative;
}

/* Fullscreen container setup */
.ll-custom-player:fullscreen,
.ll-custom-player:-webkit-full-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  width: 100vw;
  height: 100vh;
}

/* Video in fullscreen - remove all cropping and sizing constraints */
.ll-custom-player:fullscreen .ll-video-player,
.ll-custom-player:-webkit-full-screen .ll-video-player {
  position: relative;
  max-height: 100vh !important;
  max-width: 100vw !important;
  width: auto !important;
  height: auto !important;
  z-index: 1;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
}

/* Classroom video fullscreen - fill width edge to edge, crop top/bottom */
.ll-video-wrapper--classroom.ll-custom-player:fullscreen .ll-video-player,
.ll-video-wrapper--classroom.ll-custom-player:-webkit-full-screen .ll-video-player {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Controls in fullscreen - on top of everything */
.ll-custom-player:fullscreen .ll-custom-controls,
.ll-custom-player:-webkit-full-screen .ll-custom-controls {
  position: absolute;
  z-index: 2;
}

.ll-custom-controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg,
      rgba(248, 250, 252, 0.65) 0%,
      rgba(248, 250, 252, 0.7) 50%,
      rgba(248, 250, 252, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  box-shadow:
    0 4px 20px rgba(15, 42, 68, 0.08),
    0 2px 8px rgba(0, 102, 204, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  color: var(--slate-700);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 280ms var(--ease-smooth),
    transform 280ms var(--ease-smooth);
  will-change: opacity, transform;
  z-index: 10;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(40px)) {
  .ll-custom-controls {
    background:
      linear-gradient(135deg,
        rgba(248, 250, 252, 0.95) 0%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(203, 213, 225, 0.5);
  }
}

.ll-custom-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 50%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent);
}

.ll-custom-controls::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 500px 80px at 50% 0%, rgba(0, 102, 204, 0.06), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-smooth);
}

.ll-custom-player:hover .ll-custom-controls::after {
  opacity: 1;
}

.ll-custom-controls>* {
  position: relative;
  z-index: 1;
}

.ll-custom-controls.ll-controls-hidden {
  display: none;
}

.ll-custom-player:hover .ll-custom-controls,
.ll-custom-player:focus-within .ll-custom-controls {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ll-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.3);
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.5) 100%);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 240ms var(--ease-smooth);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 42, 68, 0.06);
}

.ll-control-btn:hover {
  border-color: rgba(0, 102, 204, 0.25);
  background:
    linear-gradient(135deg,
      rgba(0, 102, 204, 0.08) 0%,
      rgba(0, 184, 169, 0.06) 100%);
  color: var(--blue-primary);
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.12);
  transform: translateY(-1px);
}

.ll-control-btn svg {
  width: 15px;
  height: 15px;
}

.ll-control-time {
  min-width: 42px;
  text-align: center;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.ll-control-seek,
.ll-control-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(0, 102, 204, 0.35) 0%,
      rgba(0, 184, 169, 0.4) 50%,
      rgba(0, 229, 160, 0.35) 100%) 0 0 / var(--range-progress, 0%) 100% no-repeat,
    rgba(203, 213, 225, 0.2);
  outline: none;
  cursor: pointer;
  transition: height 200ms var(--ease-smooth);
  box-shadow: inset 0 0.5px 1px rgba(15, 42, 68, 0.04);
}

.ll-control-seek:hover,
.ll-control-volume:hover {
  height: 5px;
}

.ll-control-seek {
  flex: 1;
  min-width: 140px;
}

.ll-control-volume {
  width: 80px;
}

.ll-control-seek::-webkit-slider-thumb,
.ll-control-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid currentColor;
  box-shadow:
    0 1px 4px rgba(15, 42, 68, 0.1),
    0 0 0 0 rgba(0, 102, 204, 0.15),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 200ms var(--ease-smooth);
}

.ll-control-seek::-webkit-slider-thumb:hover,
.ll-control-volume::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 2px 6px rgba(15, 42, 68, 0.15),
    0 0 0 4px rgba(0, 102, 204, 0.06),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.9);
}

.ll-control-seek::-moz-range-thumb,
.ll-control-volume::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid currentColor;
  box-shadow:
    0 1px 4px rgba(15, 42, 68, 0.1),
    0 0 0 0 rgba(0, 102, 204, 0.15),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 200ms var(--ease-smooth);
}

.ll-control-seek::-moz-range-thumb:hover,
.ll-control-volume::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 2px 6px rgba(15, 42, 68, 0.15),
    0 0 0 4px rgba(0, 102, 204, 0.06),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.9);
}

.ll-icon-pause,
.ll-icon-muted {
  display: none;
}

.ll-custom-controls.is-playing .ll-icon-play {
  display: none;
}

.ll-custom-controls.is-playing .ll-icon-pause {
  display: inline-flex;
}

.ll-custom-controls.is-muted .ll-icon-volume {
  display: none;
}

.ll-custom-controls.is-muted .ll-icon-muted {
  display: inline-flex;
}

.ll-custom-controls.is-cc-on .ll-control-cc {
  background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary));
  color: white;
  border-color: rgba(0, 102, 204, 0.4);
  box-shadow:
    0 2px 8px rgba(0, 102, 204, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.ll-custom-controls.is-fullscreen {
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
  font-size: 0.875rem;
  border-width: 1.5px;
  box-shadow:
    0 8px 32px rgba(15, 42, 68, 0.12),
    0 4px 16px rgba(0, 102, 204, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(255, 255, 255, 0.25);
}

.ll-custom-controls.is-fullscreen .ll-control-btn {
  padding: 0.625rem 0.875rem;
  gap: 0.5rem;
}

.ll-custom-controls.is-fullscreen .ll-control-btn svg {
  width: 20px;
  height: 20px;
}

.ll-custom-controls.is-fullscreen .ll-control-time {
  min-width: 60px;
  font-size: 1rem;
}

.ll-custom-controls.is-fullscreen .ll-control-seek {
  min-width: 240px;
  height: 6px;
}

.ll-custom-controls.is-fullscreen .ll-control-seek:hover {
  height: 7px;
}

.ll-custom-controls.is-fullscreen .ll-control-volume {
  width: 120px;
  height: 6px;
}

.ll-custom-controls.is-fullscreen .ll-control-volume:hover {
  height: 7px;
}

.ll-custom-controls.is-fullscreen .ll-control-seek::-webkit-slider-thumb,
.ll-custom-controls.is-fullscreen .ll-control-volume::-webkit-slider-thumb,
.ll-custom-controls.is-fullscreen .ll-control-seek::-moz-range-thumb,
.ll-custom-controls.is-fullscreen .ll-control-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
}

/* Auto-hide controls in fullscreen */
.ll-custom-controls.ll-controls-autohidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(0.98) !important;
}

/* ── Play/Pause Gesture ── */
.ll-gesture-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%) scale(0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(236, 242, 249, 0.8) 50%,
      rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease-smooth),
    transform 220ms var(--ease-smooth);
  z-index: 8;
}

.ll-gesture-indicator::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  opacity: 0.6;
}

.ll-gesture-indicator.is-visible,
.ll-gesture-indicator.is-persistent-prompt {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ll-gesture-indicator.is-persistent-prompt[data-state="play"] {
  animation: ll-start-prompt-pulse 1.8s ease-in-out infinite;
}

.ll-gesture-icon {
  width: 28px;
  height: 28px;
  color: var(--slate-900);
  position: relative;
  z-index: 1;
  display: none;
}

.ll-gesture-indicator[data-state="play"] .ll-gesture-icon.is-play,
.ll-gesture-indicator[data-state="pause"] .ll-gesture-icon.is-pause {
  display: block;
}

@keyframes ll-start-prompt-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.98);
    box-shadow:
      0 18px 38px rgba(15, 23, 42, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow:
      0 24px 44px rgba(15, 23, 42, 0.22),
      0 0 0 8px rgba(255, 255, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }
}

/* ── Custom Captions Overlay ── */
.ll-caption-layer {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(92%, 900px);
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 7;
  transition:
    bottom 280ms var(--ease-smooth),
    opacity 200ms var(--ease-smooth);
}

.ll-caption-layer.is-active {
  opacity: 1;
}

.ll-custom-player.ll-controls-visible .ll-caption-layer {
  bottom: calc(var(--ll-controls-bottom, 16px) + var(--ll-controls-height, 48px) + 0.5rem);
}

.ll-caption-text {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(245, 247, 250, 0.9) 55%,
      rgba(255, 255, 255, 0.9) 100%);
  color: var(--slate-900, #0f172a);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  padding: 0.45em 0.9em;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  -webkit-font-smoothing: antialiased;
  white-space: pre-line;
}

/* Fullscreen caption sizing */
.ll-custom-player:fullscreen .ll-caption-text,
.ll-custom-player:-webkit-full-screen .ll-caption-text {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  padding: 0.55em 1.05em;
  border-radius: 22px;
}

/* ── Native Captions (Fallback) ── */
.ll-video-player::cue {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(245, 247, 250, 0.9) 55%,
      rgba(255, 255, 255, 0.9) 100%);
  color: var(--slate-900, #0f172a);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  padding: 0.45em 0.9em;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(15, 23, 42, 0.12);
  -webkit-font-smoothing: antialiased;
}

/* Fullscreen caption sizing */
.ll-custom-player:fullscreen .ll-video-player::cue,
.ll-custom-player:-webkit-full-screen .ll-video-player::cue {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  padding: 0.55em 1.05em;
  border-radius: 22px;
}

.ll-control-btn:focus-visible,
.ll-control-seek:focus-visible,
.ll-control-volume:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 184, 169, 0.15);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {

  .ll-custom-controls,
  .ll-gesture-indicator,
  .ll-caption-layer,
  .ll-control-btn,
  .ll-control-seek,
  .ll-control-volume {
    transition: none;
  }

  .ll-custom-controls::after {
    display: none;
  }

  .ll-control-seek::-webkit-slider-thumb,
  .ll-control-volume::-webkit-slider-thumb,
  .ll-control-seek::-moz-range-thumb,
  .ll-control-volume::-moz-range-thumb {
    transition: none;
  }

  .ll-gesture-indicator.is-persistent-prompt[data-state="play"] {
    animation: none;
  }
}


/* Subtle pulsing animation on active playback */
@keyframes controlPulse {

  0%,
  100% {
    box-shadow:
      0 4px 20px rgba(15, 42, 68, 0.08),
      0 2px 8px rgba(0, 102, 204, 0.04),
      inset 0 1px 1px rgba(255, 255, 255, 0.6),
      inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow:
      0 4px 20px rgba(15, 42, 68, 0.1),
      0 2px 8px rgba(0, 102, 204, 0.06),
      inset 0 1px 1px rgba(255, 255, 255, 0.65),
      inset 0 -1px 1px rgba(255, 255, 255, 0.25);
  }
}

.ll-custom-controls.is-playing {
  animation: controlPulse 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ll-custom-controls.is-playing {
    animation: none;
  }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .ll-custom-controls {
    display: none;
  }

  .ll-video-wrapper--framed {
    border-radius: 16px;
    border-width: 1.5px;
  }
}

/* Tablet landscape - show custom controls with optimized spacing */
@media (min-width: 769px) and (max-width: 1024px) {
  .ll-custom-controls {
    gap: 0.5rem;
    padding: 0.4rem 0.625rem;
    font-size: 0.65rem;
  }

  .ll-control-btn {
    padding: 0.35rem 0.5rem;
  }

  .ll-control-volume {
    width: 60px;
  }
}

/* Large screens - enhanced spacing and sizing */
@media (min-width: 1440px) {
  .ll-custom-controls {
    left: 24px;
    right: 24px;
    bottom: 20px;
    padding: 0.625rem 1rem;
    gap: 0.75rem;
  }

  .ll-control-btn {
    padding: 0.5rem 0.75rem;
  }

  .ll-control-seek {
    min-width: 180px;
  }

  .ll-control-volume {
    width: 90px;
  }
}

/* Uncropped variant - standard 16:9, no object-fit crop */
.ll-video-player--uncropped {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

/* ── Overview Badge (for non-tutorial videos) ── */
.ll-overview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 102, 204, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-600);
}

.ll-overview-badge svg {
  color: var(--blue-primary);
}

.ll-overview-badge-sep {
  color: var(--slate-300);
  font-weight: 400;
}

/* ── Chapters Bar ── */
.ll-chapters-bar {
  max-width: 100%;
  margin: 1.25rem 0 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.82) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--glass-highlight), 0 10px 26px rgba(0, 52, 103, 0.11);
}

.ll-chapters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ll-chapters-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ll-chapters-icon {
  width: 18px;
  height: 18px;
}

.ll-captions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--slate-200);
  background: white;
  color: var(--slate-400);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 200ms var(--ease-smooth);
}

.ll-captions-toggle:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.ll-captions-toggle.ll-captions-on {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: white;
}

.ll-chapters-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.625rem;
  overflow-x: visible;
  padding-bottom: 0;
}

.ll-chapters-list::-webkit-scrollbar {
  display: none;
}

.ll-chapter-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  cursor: pointer;
  transition: all 220ms var(--ease-smooth);
  white-space: normal;
  flex-shrink: 0;
  font-size: 0.8125rem;
  min-height: 48px;
}

.ll-chapter-item:hover {
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(0, 102, 204, 0.2);
}

.ll-chapter-item.active {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.14), rgba(0, 184, 169, 0.14), rgba(0, 229, 160, 0.1));
  border-color: rgba(0, 102, 204, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ll-chapter-item.active .ll-chapter-name {
  color: var(--slate-900);
  font-weight: 500;
}

.ll-chapter-item.active .ll-chapter-time {
  color: var(--blue-primary);
}

.ll-chapter-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--slate-400);
  min-width: 28px;
}

.ll-chapter-name {
  color: var(--slate-600);
  font-weight: 400;
}

.ll-video-description {
  max-width: 800px;
  margin: 2.5rem auto 0;
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 52, 103, 0.1);
}

.ll-description-lead {
  margin-bottom: 1.5rem;
}

.ll-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ll-feature-card {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(147, 197, 253, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(0, 52, 103, 0.08);
}

.ll-feature-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.ll-feature-copy {
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ll-description-note {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.ll-back-wrap {
  margin-top: 2.5rem;
}

.ll-section-tight {
  padding-top: 1.5rem !important;
}

.ll-section-compact {
  padding-top: 1rem !important;
}

.ll-index-eyebrow {
  color: var(--blue-primary);
}

.ll-support-banner--wide {
  max-width: 1100px;
  margin: 2rem auto 0;
}

/* ── Support Banner ── */
.ll-support-banner {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 184, 169, 0.12), rgba(0, 229, 160, 0.09));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 52, 103, 0.09);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

/* Plain background pages */
body.ll-plain-page .ll-support-banner {
  background: rgba(255, 255, 255, 0.90);
  border-color: var(--glass-border-subtle);
}

.ll-support-banner a {
  color: var(--blue-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms;
}

.ll-support-banner a:hover {
  color: var(--teal-primary);
}

/* ── Coming Soon Category Card ── */
.ll-category-card-coming-soon {
  opacity: 0.72;
  position: relative;
  cursor: pointer;
}

.ll-category-card-coming-soon::before {
  display: none;
}

.ll-category-card-coming-soon .ll-category-icon {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(100, 116, 139, 0.08));
  border-color: rgba(100, 116, 139, 0.12);
}

.ll-category-card-coming-soon:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 116, 139, 0.3);
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ll-category-card-coming-soon:hover .ll-category-icon {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.1));
  border-color: rgba(100, 116, 139, 0.18);
}

.ll-category-card-coming-soon:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.35);
  outline-offset: 4px;
}

.ll-category-card-coming-soon .ll-category-icon svg {
  color: var(--slate-400);
}

.ll-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.ll-category-badge-soon {
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.75);
}

/* ── Coming Soon Full Page ── */
.ll-coming-soon-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.82) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 12px 30px rgba(0, 52, 103, 0.12);
}

.ll-coming-soon-page-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.06), rgba(0, 184, 169, 0.06));
  border: 2px dashed rgba(0, 102, 204, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-coming-soon-page-icon svg {
  width: 40px;
  height: 40px;
  color: var(--slate-300);
}

.ll-coming-soon-page h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--slate-400);
  letter-spacing: -0.01em;
}

.ll-coming-soon-page p {
  color: var(--slate-400);
  font-size: 0.9375rem;
  max-width: 420px;
  line-height: 1.6;
}

/* ── Help Panel ── */
.ll-help-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.ll-help-panel--open {
  opacity: 1;
  visibility: visible;
}

.ll-help-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.ll-help-panel-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 1rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-10px) scale(0.98);
  transition: transform 200ms ease;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ll-help-panel--open .ll-help-panel-content {
  transform: translateY(0) scale(1);
}

.ll-help-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  flex-shrink: 0;
}

.ll-help-panel-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--slate-900);
}

.ll-help-panel-title svg {
  width: 22px;
  height: 22px;
  color: var(--blue-primary);
}

.ll-help-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  transition: all 150ms ease;
}

.ll-help-panel-close:hover {
  background: var(--slate-100);
  color: var(--slate-600);
}

.ll-help-panel-close svg {
  width: 20px;
  height: 20px;
}

.ll-help-panel-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.ll-help-panel-intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.ll-help-panel-form {
  margin-bottom: 1.25rem;
}

.ll-help-panel-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ll-help-panel-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 2px solid var(--slate-200);
  border-radius: 14px;
  background: white;
  color: var(--slate-900);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ll-help-panel-input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ll-help-panel-input::placeholder {
  color: var(--slate-400);
}

.ll-help-panel-submit {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--blue-primary);
  color: white;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.ll-help-panel-submit:hover {
  background: var(--blue-dark);
}

.ll-help-panel-submit:active {
  transform: scale(0.95);
}

.ll-help-panel-submit svg {
  width: 18px;
  height: 18px;
}

.ll-help-panel-results {
  min-height: 100px;
}

.ll-help-panel-suggestions-label {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ll-help-panel-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ll-help-suggestion {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-primary);
  background: rgba(0, 102, 204, 0.06);
  border: 1.5px solid rgba(0, 102, 204, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms ease;
}

.ll-help-suggestion:hover {
  background: rgba(0, 102, 204, 0.12);
  border-color: rgba(0, 102, 204, 0.25);
}

/* Results */
.ll-help-result {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  margin-bottom: 0.625rem;
  background: var(--slate-50);
  border: 1.5px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 150ms ease;
}

a.ll-help-result:hover {
  background: rgba(0, 102, 204, 0.06);
  border-color: rgba(0, 102, 204, 0.15);
}

.ll-help-result--unavailable {
  opacity: 0.6;
  cursor: default;
}

.ll-help-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ll-help-result-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue-primary);
}

.ll-help-result--unavailable .ll-help-result-icon svg {
  color: var(--slate-400);
}

.ll-help-result-text {
  flex: 1;
  min-width: 0;
}

.ll-help-result-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-900);
  margin-bottom: 0.125rem;
}

.ll-help-result-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.4;
}

.ll-help-result-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--slate-300);
  transition: transform 150ms ease, color 150ms ease;
}

a.ll-help-result:hover .ll-help-result-arrow {
  transform: translateX(3px);
  color: var(--blue-primary);
}

.ll-help-result-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  background: var(--slate-200);
  border-radius: 999px;
}

/* No results */
.ll-help-no-results {
  text-align: center;
  padding: 1.5rem 1rem;
}

.ll-help-no-results svg {
  width: 40px;
  height: 40px;
  color: var(--slate-300);
  margin-bottom: 0.75rem;
}

.ll-help-no-results p {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.ll-help-no-results-hint {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.ll-help-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-primary);
  background: rgba(0, 102, 204, 0.06);
  border-radius: 10px;
  text-decoration: none;
  transition: background 150ms ease;
}

.ll-help-email-link:hover {
  background: rgba(0, 102, 204, 0.12);
}

.ll-help-email-link svg {
  width: 18px;
  height: 18px;
}

.ll-help-fallback {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 102, 204, 0.04);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--slate-600);
  text-align: center;
}

.ll-help-fallback a {
  color: var(--blue-primary);
  font-weight: 500;
}

/* ── Search Bar Wrapper (positions trigger + inline carousel) ── */
.ll-search-wrap {
  display: none !important;
  position: relative;
  flex: 1;
  max-width: 360px;
  margin: 0 1.5rem;
}

/* Keep search wrap hidden on mobile even when authenticated
   (overrides body.ll-authenticated .ll-auth-only) */
body.ll-authenticated .ll-search-wrap {
  display: none !important;
}

/* Only show on desktop (≥1024px) when authenticated */
@media (min-width: 1024px) {
  body.ll-authenticated .ll-search-wrap {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  body.ll-authenticated #header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── Search Bar Trigger ── */
.ll-help-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1.25rem 0.625rem 1rem;
  height: 44px;
  border: 1.5px solid rgba(0, 102, 204, 0.15);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, border-radius 180ms ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  z-index: 2;
}

.ll-help-search-trigger:hover {
  border-color: rgba(0, 102, 204, 0.3);
  background: white;
  box-shadow: 0 2px 12px rgba(0, 102, 204, 0.1);
}

.ll-help-search-trigger.ll-search-expanded {
  border-radius: 22px 22px 0 0;
  border-bottom-color: transparent;
  background: white;
}

.ll-help-search-trigger:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

.ll-help-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--slate-400);
  transition: color 220ms ease;
}

.ll-help-search-trigger:hover .ll-help-search-icon,
.ll-help-search-trigger.ll-search-expanded .ll-help-search-icon {
  color: var(--blue-primary);
}

.ll-help-search-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--slate-400);
  white-space: nowrap;
  pointer-events: none;
}

/* Hidden when expanded (replaced by real input) */
.ll-search-expanded .ll-help-search-text {
  display: none;
}

/* ── Inline text input (appears inside trigger area on expand) ── */
.ll-search-inline-input {
  display: none;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--slate-700, #334155);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  caret-color: var(--blue-primary, #0066CC);
  min-width: 0;
}

.ll-search-inline-input::placeholder {
  color: var(--slate-400, #94a3b8);
}

.ll-search-expanded .ll-search-inline-input {
  display: block;
}

/* ── Inline Carousel (slides open below trigger) ── */
.ll-search-carousel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: -1.5px;
  background: white;
  border: 1.5px solid rgba(0, 102, 204, 0.15);
  border-top: none;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease;
  z-index: 1;
}

.ll-search-carousel.ll-carousel-open {
  max-height: 60px;
  opacity: 1;
}

/* When inline results are showing, grow taller */
.ll-search-carousel.ll-carousel-has-results {
  max-height: 320px;
  overflow: hidden;
}

/* Expanded via "View all" */
.ll-search-carousel.ll-carousel-expanded {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ll-search-carousel.ll-carousel-expanded::-webkit-scrollbar {
  width: 4px;
}

.ll-search-carousel.ll-carousel-expanded::-webkit-scrollbar-track {
  background: transparent;
}

.ll-search-carousel.ll-carousel-expanded::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 204, 0.15);
  border-radius: 2px;
}

.ll-search-carousel-track {
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem 0.625rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid rgba(0, 102, 204, 0.08);
  mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 16px), transparent);
}

.ll-search-carousel-track::-webkit-scrollbar {
  display: none;
}

/* ── Suggestion Pills (AscendEd brand colors) ── */
.ll-carousel-pill {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border-radius: 999px;
  border: 1.5px solid;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

/* #0f3ab5 — AscendEd blue */
.ll-carousel-pill[data-color="brand-blue"] {
  color: #0f3ab5;
  background: rgba(15, 58, 181, 0.07);
  border-color: rgba(15, 58, 181, 0.18);
}

.ll-carousel-pill[data-color="brand-blue"]:hover {
  background: rgba(15, 58, 181, 0.14);
  border-color: rgba(15, 58, 181, 0.32);
}

/* #17c49a — AscendEd teal */
.ll-carousel-pill[data-color="brand-teal"] {
  color: #0fa882;
  background: rgba(23, 196, 154, 0.07);
  border-color: rgba(23, 196, 154, 0.2);
}

.ll-carousel-pill[data-color="brand-teal"]:hover {
  background: rgba(23, 196, 154, 0.14);
  border-color: rgba(23, 196, 154, 0.35);
}

/* #3cc67b — AscendEd green */
.ll-carousel-pill[data-color="brand-green"] {
  color: #2a9d5e;
  background: rgba(60, 198, 123, 0.07);
  border-color: rgba(60, 198, 123, 0.2);
}

.ll-carousel-pill[data-color="brand-green"]:hover {
  background: rgba(60, 198, 123, 0.14);
  border-color: rgba(60, 198, 123, 0.35);
}

/* #1690a0 — AscendEd deep teal */
.ll-carousel-pill[data-color="brand-deep"] {
  color: #1690a0;
  background: rgba(22, 144, 160, 0.07);
  border-color: rgba(22, 144, 160, 0.2);
}

.ll-carousel-pill[data-color="brand-deep"]:hover {
  background: rgba(22, 144, 160, 0.14);
  border-color: rgba(22, 144, 160, 0.35);
}

/* #35db9b — AscendEd mint */
.ll-carousel-pill[data-color="brand-mint"] {
  color: #1fae79;
  background: rgba(53, 219, 155, 0.07);
  border-color: rgba(53, 219, 155, 0.2);
}

.ll-carousel-pill[data-color="brand-mint"]:hover {
  background: rgba(53, 219, 155, 0.14);
  border-color: rgba(53, 219, 155, 0.35);
}

/* #48f095 — AscendEd light green */
.ll-carousel-pill[data-color="brand-lime"] {
  color: #22a862;
  background: rgba(72, 240, 149, 0.07);
  border-color: rgba(72, 240, 149, 0.22);
}

.ll-carousel-pill[data-color="brand-lime"]:hover {
  background: rgba(72, 240, 149, 0.14);
  border-color: rgba(72, 240, 149, 0.38);
}

/* ── Inline Results (inside the expanding search bar) ── */
.ll-inline-results {
  padding: 0.375rem 0.625rem 0.5rem;
  border-top: 1px solid rgba(0, 102, 204, 0.08);
}

.ll-inline-result {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 150ms ease;
}

.ll-inline-result:last-child {
  margin-bottom: 0;
}

.ll-inline-result:hover {
  background: rgba(0, 102, 204, 0.04);
}

.ll-inline-result-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.ll-inline-result-text {
  flex: 1;
  min-width: 0;
}

.ll-inline-result-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-800, #1e293b);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-inline-result-desc {
  font-size: 0.6875rem;
  color: var(--slate-400, #94a3b8);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-inline-result-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--slate-300, #cbd5e1);
  transition: transform 150ms ease, color 150ms ease;
}

.ll-inline-result:hover .ll-inline-result-arrow {
  transform: translateX(2px);
  color: var(--blue-primary, #0066CC);
}

.ll-inline-result--unavailable {
  opacity: 0.5;
  cursor: default;
}

.ll-inline-result--unavailable:hover {
  background: transparent;
}

.ll-inline-result-badge {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-400, #94a3b8);
  background: var(--slate-100, #f1f5f9);
  border-radius: 999px;
}

/* Color dots — cycle through brand palette */
.ll-inline-result-dot[data-color="brand-blue"] {
  background: #0f3ab5;
}

.ll-inline-result-dot[data-color="brand-teal"] {
  background: #17c49a;
}

.ll-inline-result-dot[data-color="brand-green"] {
  background: #3cc67b;
}

.ll-inline-result-dot[data-color="brand-deep"] {
  background: #1690a0;
}

.ll-inline-result-dot[data-color="brand-mint"] {
  background: #35db9b;
}

.ll-inline-result-dot[data-color="brand-lime"] {
  background: #48f095;
}

/* "View all" / "Show less" toggle */
.ll-inline-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.375rem 0;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-primary, #0066CC);
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 102, 204, 0.06);
  cursor: pointer;
  transition: color 150ms ease;
}

.ll-inline-view-all:hover {
  color: var(--blue-dark, #004999);
}

.ll-inline-view-all svg {
  width: 12px;
  height: 12px;
  transition: transform 200ms ease;
}

.ll-inline-view-all.ll-view-all-expanded svg {
  transform: rotate(180deg);
}

/* No results inline */
.ll-inline-no-results {
  padding: 0.625rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-400, #94a3b8);
}

.ll-inline-no-results a {
  color: var(--blue-primary, #0066CC);
  font-weight: 500;
  text-decoration: none;
}

.ll-inline-no-results a:hover {
  text-decoration: underline;
}

/* ── Keep old suggestion pill styles for the full help panel (mobile) ── */
.ll-help-suggestion {
  flex-shrink: 0;
}

/* ── Help Panel: Dropdown mode no longer used on desktop ── */
/* On desktop, the full panel only opens when user types a search */
.ll-help-panel--dropdown .ll-help-panel-backdrop {
  background: rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(2px);
}

.ll-help-panel--dropdown .ll-help-panel-content {
  position: fixed;
  top: var(--ll-dropdown-top, 72px);
  left: var(--ll-dropdown-left, 50%);
  right: auto;
  transform: translateX(-50%);
  transform-origin: top center;
  margin: 0;
  width: var(--ll-dropdown-width, 360px);
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - var(--ll-dropdown-top, 72px) - 2rem);
  border-radius: 0 0 22px 22px;
  border: 1.5px solid rgba(0, 102, 204, 0.15);
  border-top: none;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 102, 204, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.ll-help-panel--dropdown.ll-help-panel--open .ll-help-panel-content {
  opacity: 1;
  visibility: visible;
}

.ll-help-panel--dropdown .ll-help-panel-header {
  display: none;
}

.ll-help-panel--dropdown .ll-help-panel-body {
  padding: 0.875rem 1rem 1rem;
}

.ll-help-panel--dropdown .ll-help-panel-intro {
  display: none;
}

.ll-help-panel--dropdown .ll-help-panel-form {
  margin-bottom: 0.75rem;
}

.ll-help-panel--dropdown .ll-help-panel-suggestions {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .ll-gate {
    min-height: calc(100vh - var(--header-height-mobile));
  }
}

@media (max-width: 640px) {
  .ll-breadcrumb {
    gap: 0.375rem;
    font-size: 0.75rem;
  }

  .ll-breadcrumb a,
  .ll-breadcrumb span:not(.ll-breadcrumb-sep) {
    padding: 0.3rem 0.7rem;
  }

  .ll-gate-box {
    margin: 0 1rem;
    padding: 2rem 1.5rem;
  }

  .ll-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ll-category-card {
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .ll-category-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
  }

  .ll-category-icon svg {
    width: 24px;
    height: 24px;
  }

  .ll-category-name {
    font-size: 1rem;
  }

  .ll-page-header {
    padding-top: 1.5rem;
  }

  .ll-page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .ll-video-description {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .ll-feature-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .ll-back-wrap {
    margin-top: 2rem;
  }

  .ll-video-player {
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .ll-category-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — Learning Library
   All overrides scoped to :root[data-theme="dark"].
   Uses the glass design system variables from styles.css so
   backgrounds, borders, and shadows automatically match the
   rest of the site.
   ═══════════════════════════════════════════════════════════════ */

/* ── Gate / Password Box ── */
:root[data-theme="dark"] .ll-gate-box {
  background: linear-gradient(160deg, var(--glass-bg-solid) 0%, var(--glass-bg-heavy) 100%);
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
}

:root[data-theme="dark"] .ll-gate-input {
  background: var(--glass-bg);
  border-color: var(--glass-border-subtle);
  color: #f1f5f9;
}

:root[data-theme="dark"] .ll-gate-input:focus {
  background: var(--glass-bg-heavy);
  border-color: rgba(0, 102, 204, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .ll-gate-input::placeholder {
  color: #7889a8;
}

:root[data-theme="dark"] .ll-gate-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 184, 169, 0.2));
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Category Cards ── */
:root[data-theme="dark"] .ll-category-card {
  background: linear-gradient(165deg, var(--glass-bg-heavy) 0%, var(--glass-bg) 100%);
  border-color: var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 10px 26px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .ll-category-card:hover {
  background: linear-gradient(165deg, var(--glass-bg-solid) 0%, var(--glass-bg-heavy) 100%);
  border-color: rgba(0, 102, 204, 0.4);
  box-shadow: var(--glass-highlight), 0 18px 42px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .ll-category-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 184, 169, 0.2));
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .ll-category-card:hover .ll-category-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(0, 184, 169, 0.3));
  border-color: rgba(0, 102, 204, 0.45);
}

:root[data-theme="dark"] .ll-category-badge-soon {
  background: var(--glass-bg-medium);
  border-color: rgba(68, 89, 132, 0.4);
}

/* ── Eyebrow Pills ── */
:root[data-theme="dark"] .ll-page-eyebrow {
  --pill-bg: var(--glass-bg-light);
  box-shadow: var(--glass-highlight), 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ── Breadcrumbs ── */
:root[data-theme="dark"] .ll-breadcrumb a {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 6px 16px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .ll-breadcrumb span:not(.ll-breadcrumb-sep) {
  background: var(--glass-bg);
  border-color: rgba(68, 89, 132, 0.3);
  color: #94a3b8;
}

/* ── Video Components ── */
:root[data-theme="dark"] .ll-video-wrapper--framed {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight), 0 16px 42px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .ll-video-wrapper--framed:hover {
  box-shadow: var(--glass-highlight), 0 24px 56px rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 102, 204, 0.4);
}

:root[data-theme="dark"] .ll-video-player {
  border-color: rgba(0, 102, 204, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ── Chapters Bar ── */
:root[data-theme="dark"] .ll-chapters-bar {
  background: linear-gradient(165deg, var(--glass-bg-heavy) 0%, var(--glass-bg) 100%);
  border-color: var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 10px 26px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .ll-chapter-item {
  background: var(--glass-bg);
}

:root[data-theme="dark"] .ll-chapter-item:hover {
  background: rgba(0, 102, 204, 0.12);
  border-color: rgba(0, 102, 204, 0.25);
}

:root[data-theme="dark"] .ll-chapter-item.active {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.18), rgba(0, 184, 169, 0.15), rgba(0, 229, 160, 0.12));
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .ll-captions-toggle {
  background: var(--glass-bg-medium);
  border-color: rgba(68, 89, 132, 0.4);
  color: #94a3b8;
}

:root[data-theme="dark"] .ll-captions-toggle:hover {
  border-color: rgba(0, 102, 204, 0.5);
  color: var(--blue-bright);
}

/* ── Video Description & Feature Cards ── */
:root[data-theme="dark"] .ll-video-description {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border-subtle);
  color: #94a3b8;
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .ll-feature-card {
  background: var(--glass-bg);
  border-color: rgba(0, 102, 204, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .ll-feature-copy {
  color: #94a3b8;
}

/* ── Overview Badge ── */
:root[data-theme="dark"] .ll-overview-badge {
  background: var(--glass-bg-heavy);
  border-color: rgba(0, 102, 204, 0.2);
}

/* ── Custom Video Controls ── */
:root[data-theme="dark"] .ll-custom-controls {
  background:
    linear-gradient(135deg,
      rgba(10, 17, 40, 0.65) 0%,
      rgba(10, 17, 40, 0.70) 50%,
      rgba(10, 17, 40, 0.65) 100%);
  border-color: rgba(68, 89, 132, 0.4);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.06),
    inset 0 -1px 1px rgba(255, 255, 255, 0.02);
  color: #cbd5e1;
}

:root[data-theme="dark"] .ll-custom-controls::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

:root[data-theme="dark"] .ll-control-btn {
  background:
    linear-gradient(135deg,
      rgba(68, 89, 132, 0.3) 0%,
      rgba(68, 89, 132, 0.2) 100%);
  border-color: rgba(68, 89, 132, 0.3);
  color: #cbd5e1;
}

:root[data-theme="dark"] .ll-control-btn:hover {
  background:
    linear-gradient(135deg,
      rgba(0, 102, 204, 0.2) 0%,
      rgba(0, 184, 169, 0.15) 100%);
  border-color: rgba(0, 102, 204, 0.35);
  color: var(--blue-bright);
}

/* ── Caption Text ── */
:root[data-theme="dark"] .ll-caption-text {
  background: linear-gradient(160deg, var(--glass-bg-solid) 0%, var(--glass-bg-heavy) 100%);
  color: #f1f5f9;
}

/* ── Seek Controls ── */
:root[data-theme="dark"] .ll-seek-btn {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

:root[data-theme="dark"] .ll-seek-btn:hover {
  background: var(--glass-bg-solid);
  border-color: rgba(0, 102, 204, 0.4);
  color: #f1f5f9;
}

/* ── Speed Button ── */
:root[data-theme="dark"] .ll-speed-btn {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

:root[data-theme="dark"] .ll-speed-btn:hover {
  background: var(--glass-bg-solid);
  border-color: rgba(0, 102, 204, 0.4);
  color: #f1f5f9;
}

/* ── Support Banner ── */
:root[data-theme="dark"] .ll-support-banner {
  border-color: var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] body.ll-plain-page .ll-support-banner {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border-subtle);
}

/* ── Coming Soon Page ── */
:root[data-theme="dark"] .ll-coming-soon-page {
  background: linear-gradient(165deg, var(--glass-bg-heavy) 0%, var(--glass-bg) 100%);
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight), 0 12px 30px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .ll-coming-soon-page-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 184, 169, 0.12));
  border-color: rgba(0, 102, 204, 0.25);
}

/* ── Help Panel ── */
:root[data-theme="dark"] .ll-help-panel-backdrop {
  background: rgba(4, 9, 20, 0.6);
}

:root[data-theme="dark"] .ll-help-panel-content {
  background: var(--color-bg-white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .ll-help-panel-header {
  border-bottom-color: rgba(68, 89, 132, 0.25);
}

:root[data-theme="dark"] .ll-help-panel-input {
  background: var(--glass-bg-medium);
  border-color: rgba(68, 89, 132, 0.35);
  color: #f1f5f9;
}

:root[data-theme="dark"] .ll-help-panel-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

:root[data-theme="dark"] .ll-help-panel-close:hover {
  background: rgba(68, 89, 132, 0.3);
}

/* ── Mobile Search Bar ── */
:root[data-theme="dark"] .ll-mobile-search-bar:hover,
:root[data-theme="dark"] .ll-mobile-search-bar:active {
  background: var(--glass-bg-heavy);
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* ── Search Bar Overrides ── */
:root[data-theme="dark"] .ll-help-search-trigger {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
  color: #f1f5f9;
}

:root[data-theme="dark"] .ll-help-search-trigger:hover,
:root[data-theme="dark"] .ll-help-search-trigger.ll-search-expanded {
  background: var(--glass-bg-solid);
  border-color: rgba(0, 102, 204, 0.4);
}

:root[data-theme="dark"] .ll-search-inline-input {
  color: #f1f5f9;
}

:root[data-theme="dark"] .ll-search-carousel {
  background: var(--color-bg-white);
  border-color: rgba(68, 89, 132, 0.25);
}

:root[data-theme="dark"] .ll-help-search-trigger .ll-help-search-text {
  color: #94a3b8;
}

/* ── Video Player Gesture Indicator ── */
:root[data-theme="dark"] .ll-gesture-indicator {
  background: radial-gradient(circle at 50% 35%, rgba(10, 17, 40, 0.8), rgba(10, 17, 40, 0));
}

/* ── Transition support ── */
.no-theme-transition .ll-gate-box,
.no-theme-transition .ll-category-card,
.no-theme-transition .ll-video-wrapper--framed,
.no-theme-transition .ll-chapters-bar,
.no-theme-transition .ll-chapter-item,
.no-theme-transition .ll-video-description,
.no-theme-transition .ll-feature-card,
.no-theme-transition .ll-support-banner,
.no-theme-transition .ll-coming-soon-page,
.no-theme-transition .ll-help-panel-content,
.no-theme-transition .ll-breadcrumb a,
.no-theme-transition .ll-breadcrumb span,
.no-theme-transition .ll-custom-controls,
.no-theme-transition .ll-control-btn {
  transition: none !important;
}