.topic-resource-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 16px; min-width: 0; max-width: 100%; }
.topic-resource-actions:empty { display: none; }
.topic-resource-actions .topic-challenge-action { width: 330px; max-width: 100%; }
.topic-video-spotlight, .lesson-video-action { display: flex; justify-content: center; min-width: 0; margin: 22px 0 30px; }
.topic-video-spotlight:empty { display: none; }
.topic-video-entry {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: 340px;
  max-width: 100%;
  min-height: 86px;
  padding: 16px 22px;
  border: 1px solid #e3dfff;
  border-radius: 16px;
  color: #1d183a;
  background: linear-gradient(115deg, #8cf3ed 0%, #b5c3ff 48%, #f9acd5 100%);
  box-shadow: 0 6px 0 #62518d, 0 12px 28px #ac8eff30, inset 0 1px 0 #ffffffa6;
  text-align: left;
  transition: transform .16s, box-shadow .16s;
}
.topic-video-entry:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #62518d, 0 16px 34px #ac8eff50, inset 0 1px 0 #ffffffa6; }
.topic-video-entry:active { transform: translateY(4px); box-shadow: 0 2px 0 #62518d, 0 6px 18px #ac8eff30; }
.topic-video-entry-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%; color: #272044; background: #ffffff73; box-shadow: inset 0 1px 0 #ffffffc4; }
.topic-video-entry-icon svg { width: 31px; height: 31px; }
.topic-video-entry-copy { display: grid; gap: 3px; min-width: 0; }
.topic-video-entry-copy strong { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: inherit; font-size: 26px; line-height: 1.2; font-weight: 800; }
.topic-video-entry-copy small { color: #3f345b; font-size: 12px; overflow-wrap: anywhere; }
.topic-video-entry-count { padding: 3px 8px; border-radius: 6px; background: #ffffff78; color: #352452; font-size: 13px; font-variant-numeric: tabular-nums; }
.topic-video-entry-arrow { margin-left: auto; color: #352452; font-size: 25px; }
.topic-video-page { min-width: 0; }
.topic-video-page *, .topic-video-entry * { box-sizing: border-box; }
.topic-video-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; margin: -8px 0 17px; padding: 7px 0; color: #c1c5d6; text-align: left; overflow-wrap: anywhere; }
.topic-video-back:hover { color: var(--cyan, #9ce4e2); }
.topic-video-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; padding: 28px 32px; border: 1px solid #384154; border-radius: 12px; background: radial-gradient(ellipse at 95% 20%, #477e8430, transparent 55%), linear-gradient(115deg, #202635, #202130); }
.topic-video-header::before { content: ''; position: absolute; inset: auto -50px -110px auto; width: 310px; height: 260px; border: 1px solid #9ce4e21c; border-radius: 50%; transform: rotate(-22deg); box-shadow: 0 0 0 22px #9ce4e205, 0 0 0 45px #9ce4e205; pointer-events: none; }
.topic-video-header-copy { z-index: 1; min-width: 0; }
.topic-video-eyebrow { color: #b5bacf; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; }
.topic-video-header h1 { margin: 13px 0 14px; color: #f7f5fc; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -1.6px; }
.topic-video-header h1 span { display: block; margin-top: 12px; color: #e3e5ef; font-size: clamp(19px, 2.6vw, 27px); font-weight: 600; line-height: 1.35; letter-spacing: -.5px; overflow-wrap: anywhere; }
.topic-video-summary { color: var(--cyan, #9ce4e2); font-size: 12px; }
.topic-video-header-mark { z-index: 1; display: grid; place-items: center; flex: 0 0 94px; height: 94px; border: 1px solid #9ce4e248; border-radius: 24px; background: linear-gradient(140deg, #9ce4e21b, #f4a6be16); color: #bcefed; transform: rotate(-7deg); }
.topic-video-header-mark svg { width: 66px; height: 66px; transform: rotate(7deg); }
.topic-video-access-note { margin: 14px 0 0; color: #aaaec3; font-size: 12px; line-height: 1.75; }
.topic-video-search-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 25px 0 0; }
.topic-video-search-field { flex: 1 1 270px; max-width: 460px; min-width: 0; }
.topic-video-search-field label { display: block; margin-bottom: 7px; color: #c8cbdb; font-size: 12px; }
.topic-video-search-field .field { display: block; width: 100%; min-width: 0; min-height: 43px; padding: 10px 13px; font-size: 13px; }
.topic-video-clear { flex: 0 0 auto; min-height: 43px; padding: 8px 10px; color: var(--cyan, #9ce4e2); font-size: 12px; }
.topic-video-result-count { padding: 11px 0; margin-left: auto; color: var(--muted, #a2a5ba); font-size: 12px; }
.topic-video-section { margin-top: 30px; min-width: 0; }
.topic-video-section + .topic-video-section { padding-top: 26px; border-top: 1px solid var(--line, #303341); }
.topic-video-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 15px; }
.topic-video-section-heading h2 { margin: 0; color: #eff0f8; font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
.topic-video-section-heading > span { color: var(--muted, #a2a5ba); font-size: 12px; }
.topic-video-section-note { margin: -7px 0 17px; max-width: 680px; color: #b1b6cc; font-size: 12px; line-height: 1.7; }
.topic-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.topic-video-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #363b4c; border-radius: 10px; background: #1b1e2a; }
.topic-video-art { position: relative; display: grid; place-items: center; height: auto; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; color: #bfeeea; background: radial-gradient(ellipse at 82% 18%, #9ce4e21e, transparent 70%), linear-gradient(135deg, #253c46, #2d2c43); border-bottom: 1px solid #9ce4e216; }
.topic-video-thumbnail { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-video-thumbnail[hidden] { display: none; }
.topic-video-art::before, .topic-video-art::after { content: ''; position: absolute; width: 200px; height: 200px; border: 1px solid #9ce4e218; border-radius: 50%; right: -40px; top: -90px; }
.topic-video-art::after { width: 160px; height: 160px; right: -20px; top: -70px; }
.topic-video-card:nth-child(3n + 2) .topic-video-art { background: radial-gradient(ellipse at 20% 85%, #f4a6be19, transparent 70%), linear-gradient(135deg, #302a40, #293346); }
.topic-video-card:nth-child(3n) .topic-video-art { background: linear-gradient(125deg, #293044, #243b40); }
.topic-video-art-number { position: absolute; z-index: 2; left: 12px; top: 10px; padding: 4px 7px; border-radius: 5px; color: #fff; background: #0d152ac9; font-size: 10px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.topic-video-play { position: relative; z-index: 2; display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #ffffffb3; border-radius: 50%; color: #fff; background: #101728b3; box-shadow: 0 3px 18px #0005; }
.topic-video-play svg { width: 30px; height: 30px; }
.topic-video-art-lines { position: absolute; left: 16px; bottom: 13px; display: flex; align-items: end; gap: 3px; height: 12px; opacity: .45; }
.topic-video-art-lines i { width: 3px; height: 5px; border-radius: 1px; background: currentColor; }
.topic-video-art-lines i:nth-child(2n) { height: 9px; }
.topic-video-art-lines i:nth-child(3) { height: 12px; }
.topic-video-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 18px 20px 20px; border-top: 3px solid #b3ddf5; }
.topic-video-card:nth-child(3n + 2) .topic-video-card-body { border-top-color: #d7b4fc; }
.topic-video-card:nth-child(3n) .topic-video-card-body { border-top-color: #f5b2cf; }
.topic-video-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; color: #aadbd7; font-size: 10px; }
.topic-video-duration { color: #c2c7da; font-variant-numeric: tabular-nums; }
.topic-video-card h3 { margin: 0; padding: 2px 0 1px; color: #fff; font-size: 25px; font-weight: 800; line-height: 1.24; letter-spacing: -.45px; overflow-wrap: anywhere; }
.topic-video-title-button { display: block; width: 100%; margin: 0; padding: 0; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; }
.topic-video-title-button:hover { color: #bdeeea; }
button.topic-video-art { width: 100%; border-radius: 0; flex: 0 0 auto; cursor: pointer; }
button.topic-video-art:hover .topic-video-play { color: #172237; background: #bcefed; box-shadow: 0 0 0 7px #9ce4e240; }
.topic-video-watch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 39px; padding: 7px 12px; border: 1px solid #b9e9e3; border-radius: 7px; background: linear-gradient(115deg, #a6eee7, #c0cafa); color: #172237; font-size: 12px; font-weight: 750; }
.topic-video-watch:hover { background: #d1f7f3; }
.topic-video-watch svg { width: 19px; height: 19px; flex: 0 0 19px; }
.topic-video-source { margin-left: auto; }
.topic-video-card-note { margin: 10px 0 0; color: #b2b7cc; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.topic-video-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 20px; margin-top: auto; }
.topic-video-open { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; max-width: 100%; padding: 3px 0; color: var(--cyan, #9ce4e2); font-size: 12px; font-weight: 600; line-height: 1.5; }
.topic-video-open svg { flex: 0 0 16px; width: 16px; height: 16px; }
.topic-video-open:hover { color: #d6fffb; text-decoration: underline; text-underline-offset: 4px; }
.topic-video-visibility { color: #a6acc2; font-size: 10px; }
.topic-video-card--related .topic-video-card-meta > span:first-child { color: var(--pink, #f4a6be); }
.topic-video-section-empty { padding: 17px 20px; border: 1px dashed #3b4052; border-radius: 8px; color: #b2b7cc; font-size: 13px; }
.topic-video-empty { display: grid; justify-items: center; gap: 10px; margin-top: 28px; padding: 42px 22px; border: 1px dashed #3b4052; border-radius: 10px; background: #1a1d28; text-align: center; }
.topic-video-empty h2 { color: #e1e3ef; font-size: 21px; line-height: 1.4; }
.topic-video-empty p { max-width: 480px; color: #aeb4c9; font-size: 13px; overflow-wrap: anywhere; }
.topic-video-empty .btn { margin-top: 7px; }
.topic-video-empty-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 5px; border: 1px solid #9ce4e22e; border-radius: 50%; color: #9ce4e2a3; }
.topic-video-empty-icon svg { width: 30px; height: 30px; }
.topic-video-page button:focus-visible, .topic-video-page a:focus-visible, .topic-video-page input:focus-visible, .topic-video-entry:focus-visible { outline: 3px solid var(--cyan, #9ce4e2); outline-offset: 4px; }
.topic-video-player-dialog { box-sizing: border-box; width: min(1000px, calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid #7c8caf; border-radius: 16px; color: #f4f3fa; background: #171b28; box-shadow: 0 24px 110px #000b; }
.topic-video-player-dialog::backdrop { background: #080b16d9; backdrop-filter: blur(6px); }
.topic-video-player-dialog * { box-sizing: border-box; }
.topic-video-player-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 21px 24px; background: linear-gradient(115deg, #233743, #302a44); }
.topic-video-player-header > div { min-width: 0; }
.topic-video-player-header .topic-video-eyebrow { margin: 0 0 8px; color: #b9eee7; }
.topic-video-player-header h2 { margin: 0; font-size: clamp(17px, 2.4vw, 23px); line-height: 1.35; overflow-wrap: anywhere; }
.topic-video-player-close { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 39px; padding: 7px 12px; border: 1px solid #a3adc365; border-radius: 7px; color: #f3f3fa; background: #151b2a80; font-size: 13px; }
.topic-video-player-close span { font-size: 24px; line-height: 1; }
.topic-video-player-close:hover { background: #434960; }
.topic-video-player-frame { width: 100%; min-width: 200px; min-height: 200px; aspect-ratio: 16 / 9; background: #000; }
.topic-video-player-frame iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.topic-video-player-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding: 17px 24px; }
.topic-video-player-footer p { flex: 1 1 360px; margin: 0; color: #b9bfd3; font-size: 12px; line-height: 1.65; }
.topic-video-player-footer a { flex: 0 0 auto; }
.topic-video-player-dialog button:focus-visible, .topic-video-player-dialog a:focus-visible { outline: 3px solid #a6eee7; outline-offset: 3px; }
@media (max-width: 1000px) {
  .topic-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  .topic-resource-actions { flex-direction: column; align-items: stretch; }
  .topic-resource-actions .topic-challenge-action { width: 100%; }
  .topic-video-header { gap: 14px; padding: 23px 21px; }
  .topic-video-header h1 { font-size: 36px; }
  .topic-video-header h1 span { font-size: 21px; }
  .topic-video-header-mark { flex-basis: 60px; height: 60px; border-radius: 17px; }
  .topic-video-header-mark svg { width: 44px; height: 44px; }
  .topic-video-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .topic-video-card-body { padding: 17px 19px; }
  .topic-video-search-field { flex-basis: 200px; }
  .topic-video-result-count { padding: 0; flex-basis: 100%; margin: 0; }
  .topic-video-section { margin-top: 25px; }
  .topic-video-player-header { gap: 12px; padding: 17px 15px; }
  .topic-video-player-close { padding: 7px 9px; }
  .topic-video-player-footer { padding: 15px; }
}
@media (max-width: 400px) {
  .topic-video-card h3 { font-size: 22px; }
  .topic-video-header { padding: 21px 18px; }
  .topic-video-header-mark { display: none; }
  .topic-video-eyebrow { font-size: 9px; letter-spacing: 1px; }
  .topic-video-entry { gap: 10px; padding: 11px 13px; }
  .topic-video-entry-arrow { margin-left: 2px; }
  .topic-video-search-field { flex-basis: 160px; }
  .topic-video-section-heading h2 { font-size: 18px; }
  .topic-video-empty { padding: 32px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-video-entry { transition: none; }
}
