.judo-videos {
  --jv-ink: #17201b;
  --jv-muted: #63716a;
  --jv-panel: #fff;
  --jv-line: #dfe6e1;
  --jv-green: #236a45;
  --jv-mint: #e5f2e9;
  --jv-orange: #ae4b0c;
  --jv-media: #eaf0ec;
  color: var(--jv-ink);
  font-family: inherit;
  line-height: 1.5;
  min-width: 0;
  container: judo-videos / inline-size;
}

.judo-videos *, .judo-videos *::before, .judo-videos *::after { box-sizing: border-box; }
.judo-videos h2, .judo-videos h3, .judo-videos p { margin: 0; }
.judo-videos button, .judo-videos select { font: inherit; color: inherit; min-width: 0; }
.judo-videos button { cursor: pointer; touch-action: manipulation; }
.judo-videos :is(button, select, summary, [tabindex]):focus-visible { outline: 3px solid #c46a2e; outline-offset: 3px; box-shadow: none; }
.judo-videos [hidden] { display: none !important; }
.judo-videos .jv-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.judo-videos .jv-icon svg { display: block; flex: none; }
.judo-videos .jv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.judo-videos .jv-page-heading h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 9px; }
.judo-videos .jv-intro { color: var(--jv-muted); font-size: 1rem; }
.judo-videos .jv-catalog-meta { display: flex; gap: 22px; flex-wrap: wrap; padding: 22px 0; font-size: .875rem; color: var(--jv-muted); border-bottom: 1px solid var(--jv-line); margin-bottom: 26px; }
.judo-videos .jv-catalog-meta strong { color: var(--jv-ink); }
.judo-videos .jv-availability { margin-left: auto; }
.judo-videos .jv-catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.judo-videos .jv-catalog-main { min-width: 0; }
.judo-videos .jv-category-tree { background: var(--jv-panel); border: 1px solid var(--jv-line); border-radius: 12px; padding: 16px 10px; position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; }
.judo-videos .jv-category-tree > h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jv-muted); padding: 0 10px 14px; }
.judo-videos .jv-category-button { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 12px 10px; border-radius: 7px; font-size: .875rem; font-weight: 700; min-height: 48px; }
.judo-videos .jv-category-button > span { min-width: 0; }
.judo-videos .jv-category-button small, .judo-videos summary small, .judo-videos .jv-category-branch > p small { display: block; font-size: .8125rem; font-weight: 450; color: var(--jv-muted); margin-top: 3px; line-height: 1.4; }
.judo-videos .jv-category-button[aria-current="true"] { background: var(--jv-mint); color: var(--jv-green); box-shadow: inset 3px 0 var(--jv-green); }
.judo-videos .jv-category-button:hover { background: var(--jv-mint); }
.judo-videos .jv-category-button > .jv-category-count { flex: none; font-size: .75rem; border: 1px solid var(--jv-line); background: var(--jv-panel); min-width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; color: var(--jv-muted); }
.judo-videos .jv-single-group + .jv-single-group, .judo-videos .jv-category-family, .judo-videos .jv-category-family + .jv-single-group { margin-top: 5px; }
.judo-videos summary { list-style: none; display: flex; gap: 8px; align-items: center; justify-content: space-between; cursor: pointer; padding: 12px 10px; font-size: .8125rem; line-height: 1.4; min-height: 44px; }
.judo-videos summary::-webkit-details-marker { display: none; }
.judo-videos summary > span:last-child { font-size: 1.1rem; }
.judo-videos .jv-category-family { border-top: 1px solid var(--jv-line); padding-top: 5px; }
.judo-videos .jv-family-children { padding: 0 0 6px 10px; }
.judo-videos .jv-category-branch > p { font-size: .75rem; font-weight: 750; color: var(--jv-muted); padding: 9px 10px 4px; }
.judo-videos .jv-category-branch > p small { font-size: .75rem; }
.judo-videos .jv-group-path { font-size: .75rem; font-weight: 700; letter-spacing: .035em; color: var(--jv-muted); overflow-wrap: anywhere; }
.judo-videos .jv-group-header { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 2px 0 21px; }
.judo-videos .jv-group-header h3 { font-size: 1.55rem; letter-spacing: -.025em; line-height: 1.25; margin: 6px 0; }
.judo-videos .jv-group-header > div > p:last-child { color: var(--jv-muted); font-size: .9375rem; }
.judo-videos .jv-count-label { font-size: .8125rem; border: 1px solid var(--jv-line); border-radius: 6px; padding: 6px 10px; white-space: nowrap; background: var(--jv-panel); color: var(--jv-muted); }
.judo-videos .jv-technique-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 18px; }
.judo-videos .jv-technique-card { min-width: 0; overflow: hidden; border-radius: 11px; border: 1px solid var(--jv-line); background: var(--jv-panel); display: flex; flex-direction: column; }
.judo-videos .jv-card-media { position: relative; aspect-ratio: 16 / 8; background: var(--jv-media); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-bottom: 1px solid var(--jv-line); color: var(--jv-green); }
.judo-videos .jv-card-media > .jv-icon { width: 44px; height: 44px; border: 1px solid #abc4b5; border-radius: 50%; }
.judo-videos .jv-card-media > .jv-icon svg { width: 23px; height: 23px; }
.judo-videos .jv-card-media > span:last-child { font-size: .8125rem; color: var(--jv-muted); }
.judo-videos .jv-item-number { position: absolute; left: 14px; top: 12px; font-size: .75rem; font-weight: 700; color: var(--jv-muted); }
.judo-videos .jv-card-copy { padding: 18px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.judo-videos .jv-card-copy h3 { font-size: 1rem; font-weight: 750; line-height: 1.5; overflow-wrap: break-word; }
.judo-videos .jv-card-copy h3 > span:not(.jv-sr-only) { display: block; }
.judo-videos .jv-card-copy .jv-sequence-arrow { color: var(--jv-orange); font-size: 1rem; line-height: 1.4; }
.judo-videos .jv-card-copy > p { font-size: .75rem; color: var(--jv-muted); margin-top: 5px; margin-bottom: 20px; }
.judo-videos .jv-detail-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 11px 0 0; min-height: 44px; background: none; border: 0; border-top: 1px solid var(--jv-line); color: var(--jv-green); font-weight: 700; font-size: .875rem; }
.judo-videos .jv-detail-button:hover { text-decoration: underline; }
.judo-videos .jv-practice-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--jv-line); color: var(--jv-muted); font-size: .875rem; display: flex; gap: 10px; align-items: flex-start; }
.judo-videos .jv-practice-note .jv-icon { margin-top: 2px; }
.judo-videos .jv-mobile-picker { display: none; }
.judo-videos .jv-dialog { width: min(650px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--jv-line); border-radius: 14px; background: var(--jv-panel); color: var(--jv-ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 20px 90px #00160d44; }
.judo-videos .jv-dialog:not([open]) { display: none; }
.judo-videos .jv-dialog::backdrop { background: #07170ec9; }
.judo-videos .jv-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--jv-line); position: sticky; top: 0; background: var(--jv-panel); z-index: 1; }
.judo-videos .jv-eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .11em; color: var(--jv-green); }
.judo-videos .jv-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; background: var(--jv-panel); border: 1px solid var(--jv-line); border-radius: 9px; }
.judo-videos .jv-dialog-body { padding: 24px; }
.judo-videos .jv-dialog-body h2 { font-size: 1.4rem; line-height: 1.4; margin: 10px 0 20px; overflow-wrap: break-word; }
.judo-videos .jv-video-space { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; background: var(--jv-media); border: 1px solid var(--jv-line); border-radius: 8px; color: var(--jv-green); }
.judo-videos .jv-video-space .jv-icon svg { width: 36px; height: 36px; }
.judo-videos .jv-video-space > span:last-child { color: var(--jv-muted); font-size: .875rem; }
.judo-videos .jv-player { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--jv-line); border-radius: 8px; background: #101712; }
.judo-videos .jv-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.judo-videos .jv-media-controls { display: grid; gap: 10px; padding: 12px 0 4px; }
.judo-videos .jv-playback-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.judo-videos .jv-playback-row > span { min-width: 76px; color: var(--jv-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.judo-videos .jv-media-controls input[type="range"] { width: 100%; min-width: 0; margin: 0; min-height: 44px; accent-color: var(--jv-green); cursor: pointer; }
.judo-videos .jv-media-status { margin: 0; color: var(--jv-muted); font-size: .8125rem; }
.judo-videos .jv-retry-button:focus-visible { outline: 3px solid var(--jv-green); outline-offset: 3px; }
.judo-videos [data-jv-player]:fullscreen { background: var(--jv-panel); padding: 16px; display: grid; align-content: center; gap: 8px; overflow: auto; }
.judo-videos [data-jv-player]:fullscreen .jv-player { height: calc(100dvh - 210px); aspect-ratio: auto; }
.judo-videos .jv-player-help { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; color: var(--jv-muted); font-size: .875rem; overflow-wrap: anywhere; }
.judo-videos .jv-player-help a { color: var(--jv-green); text-decoration: underline; }
.judo-videos .jv-retry-button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--jv-line); border-radius: 8px; background: var(--jv-panel); color: var(--jv-green); }
.judo-videos .jv-dialog-body > p:not(.jv-group-path) { margin-top: 20px; }
.judo-videos .jv-source-note { font-size: .8125rem; color: var(--jv-muted); }

[data-theme="dark"] .judo-videos {
  --jv-ink: #eaf3ec;
  --jv-muted: #b8c9bd;
  --jv-panel: #19291f;
  --jv-line: #35473b;
  --jv-green: #a0d5b4;
  --jv-mint: #254734;
  --jv-orange: #ffd3ab;
  --jv-media: #21362a;
  color-scheme: dark;
}

@container judo-videos (min-width: 1180px) {
  .judo-videos .jv-technique-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container judo-videos (max-width: 1000px) {
  .judo-videos .jv-catalog-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 20px; }
  .judo-videos .jv-technique-grid { gap: 14px; }
  .judo-videos .jv-catalog-meta { gap: 16px; }
  .judo-videos .jv-availability { margin-left: 0; }
  .judo-videos .jv-group-header { gap: 12px; align-items: flex-start; flex-wrap: wrap; }
}

@container judo-videos (max-width: 740px) {
  .judo-videos .jv-catalog-meta { padding: 18px 0; margin-bottom: 20px; gap: 6px 20px; }
  .judo-videos .jv-availability { width: 100%; font-size: .8125rem; }
  .judo-videos .jv-catalog-layout { display: block; }
  .judo-videos .jv-category-tree { display: none; }
  .judo-videos .jv-mobile-picker { display: grid; gap: 8px; margin-bottom: 23px; }
  .judo-videos .jv-mobile-picker label { font-size: .875rem; font-weight: 650; }
  .judo-videos .jv-mobile-picker select { width: 100%; max-width: 100%; min-height: 48px; background: var(--jv-panel); border: 1px solid var(--jv-line); border-radius: 8px; padding: 11px; color: var(--jv-ink); font-size: 1rem; text-overflow: ellipsis; }
  .judo-videos .jv-group-header h3 { font-size: 1.35rem; }
  .judo-videos .jv-count-label { font-size: .75rem; }
  .judo-videos .jv-technique-grid { gap: 12px; }
  .judo-videos .jv-card-copy { padding: 14px; }
  .judo-videos .jv-card-copy h3 { font-size: .9375rem; }
  .judo-videos .jv-card-media { aspect-ratio: 1.5; }
  .judo-videos .jv-card-media > span:last-child { font-size: .75rem; }
  .judo-videos .jv-card-media > .jv-icon { width: 36px; height: 36px; }
  .judo-videos .jv-item-number { left: 10px; top: 6px; }
  .judo-videos .jv-practice-note { font-size: .8125rem; }
  .judo-videos .jv-dialog-body { padding: 20px; }
  .judo-videos .jv-video-space { aspect-ratio: auto; min-height: 200px; }
  .judo-videos .jv-dialog-body h2 { font-size: 1.25rem; }
}

@container judo-videos (max-width: 420px) {
  .judo-videos .jv-technique-grid { grid-template-columns: minmax(0, 1fr); }
  .judo-videos .jv-technique-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  .judo-videos .jv-card-media { aspect-ratio: auto; min-height: 160px; border-bottom: 0; border-right: 1px solid var(--jv-line); padding: 26px 9px 12px; text-align: center; }
  .judo-videos .jv-card-copy > p { margin-bottom: 12px; }
  .judo-videos .jv-catalog-meta { font-size: .8125rem; padding: 14px 0; margin-bottom: 16px; }
  .judo-videos .jv-mobile-picker { margin-bottom: 18px; }
  .judo-videos .jv-intro { font-size: .9375rem; }
  .judo-videos .jv-group-header { padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .judo-videos * { scroll-behavior: auto !important; }
}

@media (max-width: 640px) {
  .judo-videos .jv-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .judo-videos .jv-dialog-header { padding: 12px 14px; gap: 12px; }
  .judo-videos .jv-dialog-body { padding: 16px 12px; }
  .judo-videos .jv-dialog-body h2 { margin: 8px 0 14px; }
  .judo-videos .jv-player-help { align-items: stretch; gap: 10px; }
  .judo-videos .jv-player-help a { display: flex; align-items: center; min-height: 44px; }
}

@media (max-height: 500px) {
  .judo-videos .jv-dialog { max-height: calc(100dvh - 16px); }
  .judo-videos .jv-dialog-header { padding: 6px 12px; }
  .judo-videos .jv-dialog-body { padding: 12px; }
  .judo-videos .jv-dialog-body h2 { font-size: 1.1rem; margin: 6px 0 10px; }
  .judo-videos .jv-player { max-width: calc((100dvh - 180px) * 16 / 9); margin-inline: auto; }
}

.judo-videos { /* v123: keep technique labels, native scenes and actions in separate space. */ max-width: 100%; }
.judo-videos :is(.jv-page-heading, .jv-catalog-meta, .jv-catalog-layout, .jv-group-header, .jv-group-header > div, .jv-mobile-picker, .jv-dialog-body, [data-jv-player], .jv-media-controls, .jv-playback-row, .jv-player-help) { min-width: 0; max-width: 100%; }
.judo-videos :is(h2, h3, p, .jv-category-button > span:first-child, summary > span:first-child, .jv-catalog-meta > span, .jv-count-label, .jv-action-label, .jv-source-note) { overflow-wrap: anywhere; word-break: normal; }
.judo-videos :is(button, .jv-player-help a) { max-width: 100%; min-height: 44px; height: auto; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
.judo-videos :is(.jv-category-button, summary) { align-items: flex-start; }
.judo-videos summary > span:first-child { min-width: 0; }
.judo-videos summary > span:last-child { flex: none; }
.judo-videos .jv-group-header > div { flex: 1 1 14rem; }
.judo-videos .jv-count-label { flex: 0 1 auto; white-space: normal; }
.judo-videos .jv-action-label { min-width: 0; text-align: left; }
.judo-videos .jv-detail-button { align-items: center; }
.judo-videos .jv-card-media { min-width: 0; }
.judo-videos .jv-card-media > span:last-child { max-width: 100%; overflow-wrap: anywhere; }
.judo-videos .jv-practice-note > span:last-child { min-width: 0; }

.judo-videos .jv-dialog {
  container: judo-player / inline-size;
  width: min(650px, calc(100vw - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right))));
  max-width: calc(100vw - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right)));
  max-height: calc(100dvh - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  min-width: 0;
  margin: auto;
  scroll-padding-block: 76px 16px;
}
.judo-videos .jv-dialog-header { min-width: 0; gap: 12px; }
.judo-videos .jv-dialog-header > .jv-eyebrow { min-width: 0; overflow-wrap: anywhere; }
.judo-videos .jv-dialog-header > .jv-icon-button { flex: none; width: 44px; height: 44px; }
.judo-videos .jv-dialog-body { padding: clamp(12px, 4vw, 24px); }
.judo-videos .jv-player { min-width: 0; max-width: 100%; }
.judo-videos .jv-player video { min-width: 0; max-width: 100%; max-height: 100%; }
.judo-videos .jv-playback-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); align-items: center; }
.judo-videos .jv-playback-row > span { min-width: 0; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.judo-videos .jv-retry-button { width: 100%; line-height: 1.4; }
.judo-videos .jv-player-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: stretch; }
.judo-videos .jv-player-help a { display: flex; align-items: center; justify-content: center; padding: 8px 4px; line-height: 1.4; text-align: center; }
.judo-videos .jv-media-status { overflow-wrap: anywhere; }

.judo-videos [data-jv-player]:fullscreen {
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(100px, 1fr) auto auto;
  align-content: stretch;
}
.judo-videos [data-jv-player]:fullscreen .jv-player { width: 100%; height: 100%; min-height: 100px; max-width: 100%; aspect-ratio: auto; }
.judo-videos [data-jv-player]:fullscreen .jv-media-controls { padding-block: 0; gap: 4px; }
.judo-videos [data-jv-player]:fullscreen .jv-player-help { margin-top: 0; }

@container judo-videos (max-width: 360px) {
  .judo-videos .jv-technique-card { grid-template-columns: 78px minmax(0, 1fr); }
  .judo-videos .jv-card-media { padding-inline: 6px; }
  .judo-videos .jv-card-copy { padding: 12px; }
}

@container judo-player (max-width: 420px) {
  .judo-videos .jv-dialog-header { padding: 12px; }
  .judo-videos .jv-dialog-body { padding: 12px; }
  .judo-videos .jv-dialog-body h2 { font-size: 1.15rem; }
}

@media (max-height: 500px) {
  .judo-videos .jv-dialog-header { padding-block: 6px; }
  .judo-videos .jv-player { max-width: min(100%, max(160px, calc((100dvh - 170px) * 16 / 9))); }
}
