﻿/* Compact chapter cards share the topic grid and never add a poster-sized row. */
.wk-video-card-column { display: flex; }
.wk-video-card.ind-skill-card {
    position: relative; display: flex; flex: 1; flex-direction: column; justify-content: space-between;
    gap: 8px; width: 100%; height: auto; align-self: stretch; min-height: 0; margin: 0; padding: 12px 15px;
    border: 1px solid #d8bd7a; border-radius: 24px; overflow: hidden; text-align: left;
    background: linear-gradient(125deg, #142843, #25376a); color: #fff;
    box-shadow: inset 0 1px 0 #ffffff18, 0 5px 15px #15264420;
    font-family: inherit; cursor: pointer; transition: box-shadow .18s, border-color .18s;
}
.wk-video-card.ind-skill-card::before {
    content: ''; position: absolute; width: 140px; height: 140px; inset: -90px -55px auto auto;
    border: 1px solid #e1cb9230; border-radius: 50%; background: transparent; pointer-events: none;
}
.wk-video-card.ind-skill-card:hover { border-color: #f6d796; box-shadow: 0 6px 20px #15264438; }
.wk-video-card .wk-video-card-label { display: flex; align-items: center; gap: 6px; color: #f2d493; font-size: 9px; font-weight: 700; line-height: 1.2; letter-spacing: 1.4px; }
.wk-video-card .wk-video-card-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wk-video-card-main strong { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; }
.wk-video-card .wk-video-card-play { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: #ffffff15; border: 1px solid #ffffff24; color: #f3dca9; font-size: 11px; padding-left: 2px; }
.wk-video-card .wk-video-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.wk-video-card-footer b { color: #f2d493; font-size: 11px; font-weight: 600; line-height: 1.5; }
.wk-video-card-footer small { color: #c8d4eb; font-size: 9px; line-height: 1.5; }
.wk-video-open { overflow: hidden !important; }
.wk-video-dialog {
    font-family: inherit; width: min(780px, calc(100vw - 24px)); max-width: none;
    max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto;
    border: 1px solid #ffffff70; border-radius: 18px; color: #192a44; background: #fff;
    box-shadow: 0 24px 80px #07122566;
}
.wk-video-dialog[data-learning-mode='choose'] { width: min(560px, calc(100vw - 24px)); border: 1px solid #fff; border-radius: 16px; box-shadow: 0 18px 60px #07122555, inset 0 0 0 1px #dbe4f3; }
.wk-video-dialog[data-learning-mode='choose'] .wk-video-dialog-head { position: relative; isolation: isolate; background: linear-gradient(110deg, #fff 5%, #eaf3ff 72%, #e2e3ff); border-bottom: 1px solid #e5ecf8; padding: 10px 16px; grid-template-columns: 34px minmax(0, 1fr) auto auto; }
.wk-video-dialog[data-learning-mode='choose'] .wk-video-dialog-head::before { content: ''; position: absolute; z-index: -1; inset: 0 14% 0 auto; width: 90px; background: #c4e8ff55; clip-path: polygon(65% 0, 100% 0, 35% 100%, 0 100%); pointer-events: none; }
.wk-video-dialog[data-learning-mode='choose'] .wk-video-dialog-head h2 { color: #12264e; font-weight: 750; }
.wk-video-dialog::backdrop { background: #0b172bb8; backdrop-filter: blur(6px); }
.wk-video-dialog [hidden] { display: none !important; }
.wk-video-dialog-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e8edf3; }
.wk-video-header-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #49617e; background: #eef3fa; font-size: 11px; }
.wk-video-header-icon img { width: 30px; height: 30px; display: block; }
.wk-video-dialog[data-learning-mode='choose'] .wk-video-header-icon { width: 34px; height: 34px; background: #d8dcff; }
.wk-video-dialog[data-learning-mode='choose'] .wk-video-header-icon img { width: 31px; height: 31px; }
.wk-video-dialog-head h2 { min-width: 0; margin: 0; color: #192a44; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-video-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex-shrink: 0; border: 1px solid #e2e8f1; border-radius: 10px; color: #61718a; background: #f7f9fc; font-family: inherit; font-size: 23px; line-height: 1; cursor: pointer; }
.wk-video-close:hover { color: #192a44; background: #edf2f9; }
.wk-video-dialog button:focus:not(:focus-visible), .wk-learn-trigger:focus:not(:focus-visible) { outline: none; }
.wk-video-dialog button:focus-visible, .wk-video-dialog select:focus-visible, .wk-video-card:focus-visible, .wk-learn-trigger:focus-visible { outline: 3px solid #80a8d6; outline-offset: 3px; }
.wk-video-language { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; }
.wk-video-language select { width: auto; max-width: 135px; height: 32px; margin: 0; padding: 4px 25px 4px 10px; border: 1px solid #dce5f0; border-radius: 9px; color: #3e5571; background: #fff; font-family: inherit; font-size: 12px; }
.wk-video-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wk-video-tools { display: flex; align-items: center; padding: 9px 12px 0; }
.wk-video-modes { display: flex; gap: 3px; padding: 3px; background: #f0f3f8; border-radius: 9px; }
.wk-video-modes button { border: 0; border-radius: 6px; padding: 7px 12px; color: #68798e; background: transparent; font-family: inherit; font-size: 11px; line-height: 1.3; cursor: pointer; }
.wk-video-modes button[aria-pressed='true'] { background: #fff; box-shadow: 0 1px 4px #1d35551a; color: #24496b; font-weight: 600; }
.wk-video-watch { padding: 10px; }
.wk-video-stage { position: relative; min-height: 0; overflow: hidden; border-radius: 10px; background: #0c1524; }
.wk-video-stage video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(100dvh - 160px); object-fit: contain; background: #0c1524; }
.wk-video-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #e9f0fc; background: #0d1625a8; font-size: 11px; pointer-events: none; }
.wk-video-loading span { width: 17px; height: 17px; border: 2px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: wkVideoSpin .8s linear infinite; }
.wk-video-error { position: absolute; inset: auto 12px 12px; padding: 11px 13px; margin: 0; border: 1px solid #efd8cd; border-radius: 9px; color: #854a35; background: #fff7f1; font-size: 12px; line-height: 1.5; box-shadow: 0 5px 20px #0003; }
.wk-video-error p { margin: 0 0 7px; }
.wk-video-error button { border: 1px solid #d9b3a4; border-radius: 6px; padding: 6px 10px; background: #fff; color: inherit; font-family: inherit; font-size: 11px; cursor: pointer; }
.wk-video-chooser { padding: 15px 17px 17px; }
.wk-video-intro { margin-bottom: 11px; color: #14274e; font-size: 16px; font-weight: 750; line-height: 1.3; letter-spacing: -.3px; }
.wk-video-choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wk-video-choices button { position: relative; isolation: isolate; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 80px; padding: 11px 10px 11px 7px; overflow: hidden; border: 1px solid #cfe1ff; border-radius: 13px; background: linear-gradient(135deg, #f4fbff, #e5f0ff); box-shadow: inset 0 1px 0 #fff, 0 3px 8px #3e6ae510; text-align: left; color: #172b58; font-family: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.wk-video-choices button::before { content: ''; position: absolute; z-index: -1; left: -20px; bottom: -32px; width: 90px; height: 58px; border: 12px solid #a4d4ff25; border-radius: 50%; transform: rotate(22deg); pointer-events: none; }
.wk-video-choices button + button { border-color: #ffe2bd; background: linear-gradient(135deg, #fffdf8, #fff1dd); color: #172b58; box-shadow: inset 0 1px 0 #fff, 0 3px 8px #e5a83e10; }
.wk-video-choices button + button::before { border-color: #ffd18d25; }
.wk-video-choices button:hover { border-color: #9dbfff; box-shadow: 0 4px 12px #3e6ae51f; }
.wk-video-choices button + button:hover { border-color: #f4c27f; box-shadow: 0 4px 12px #e5a83e1f; }
.wk-video-choice-icon { display: block; flex: 0 0 48px; width: 48px; height: 48px; }
.wk-video-choice-icon img { display: block; width: 100%; height: 100%; }
.wk-video-choice-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.wk-video-choices strong { font-size: 13px; font-weight: 750; line-height: 1.3; letter-spacing: -.25px; }
.wk-video-choices small { font-size: 10px; color: #718097; line-height: 1.4; }
.wk-video-choice-arrow { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #d6e6ff; border-radius: 50%; color: #3d68ff; background: #ffffff8f; box-shadow: 0 2px 5px #527dff14; font-size: 19px; line-height: 1; }
.wk-video-choices button + button .wk-video-choice-arrow { border-color: #ffe2b9; color: #e99420; box-shadow: 0 2px 5px #e9a65214; }
.wk-video-theory { min-height: 130px; padding: 17px 20px; overflow-wrap: anywhere; }
.wk-video-theory img { max-width: 100%; height: auto; }
.wk-video-theory .solution-container { display: block !important; }
.wk-learn-trigger { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-height: 38px; padding: 3px 10px 3px 5px; border: 1px solid #c9defc; border-radius: 999px; color: #14294d; background: linear-gradient(120deg, #fff, #ecf4ff 70%, #e6efff); box-shadow: inset 0 1px 0 #fff, 0 3px 10px #477bd510; font-family: inherit; font-size: 15px; font-weight: 750; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.wk-learn-trigger:hover { border-color: #9fb6d6; box-shadow: 0 3px 9px #243f6514; }
.wk-learn-trigger > span[aria-hidden] { flex-shrink: 0; color: #ae853c; font-size: 14px; }
.wk-learn-trigger-text { min-width: 0; }
.wk-learn-trigger-icon { display: block; flex: 0 0 30px; width: 30px; height: 30px; }
.wk-learn-trigger > small { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 5px 8px; border: 1px solid #ffe3ce; border-radius: 999px; color: #a94b10; background: linear-gradient(125deg, #fffaf2, #ffedd9); font-size: 10px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.wk-learn-trigger > small img { display: block; width: 17px; height: 14px; }
.wk-learn-trigger-arrow { flex-shrink: 0; color: #7892b3; font-size: 24px; font-weight: 600; line-height: 1; }
@keyframes wkVideoSpin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
    .wk-video-card.ind-skill-card { min-height: 118px; padding: 12px 14px; }
}
@media (max-width: 480px) {
    .wk-learn-trigger { gap: 6px; min-height: 36px; padding: 3px 8px 3px 4px; font-size: 13px; }
    .wk-learn-trigger-icon { flex-basis: 28px; width: 28px; height: 28px; }
    .wk-learn-trigger > small { gap: 3px; padding: 4px 6px; font-size: 8px; }
    .wk-learn-trigger > small img { width: 13px; height: 11px; }
    .wk-learn-trigger-arrow { font-size: 20px; }
    .wk-video-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
    .wk-video-dialog-head { grid-template-columns: 25px minmax(0, 1fr) auto auto; gap: 7px; padding: 10px; }
    .wk-video-header-icon { width: 25px; height: 28px; border-radius: 8px; font-size: 10px; }
    .wk-video-dialog-head h2 { font-size: 14px; }
    .wk-video-language select { max-width: 105px; height: 30px; padding: 3px 16px 3px 7px; font-size: 11px; }
    .wk-video-close { width: 28px; height: 30px; border-radius: 8px; }
    .wk-video-watch { padding: 7px; }
    .wk-video-stage { border-radius: 8px; }
    .wk-video-chooser { padding: 14px 12px; }
    .wk-video-intro { font-size: 15px; }
    .wk-video-choices { grid-template-columns: 1fr; gap: 9px; }
    .wk-video-choices button { gap: 9px; min-height: 68px; padding: 8px 12px 8px 7px; }
    .wk-video-choices strong { font-size: 14px; }
    .wk-video-choices small { font-size: 10px; }
    .wk-video-theory { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .wk-video-card, .wk-video-choices button, .wk-learn-trigger { transition: none; }
    .wk-video-loading span { animation: none; }
}
.wk-topic-empty{margin:0;padding:16px;border-radius:12px;background:rgba(255,255,255,.7);font-size:14px;line-height:1.5}
