/* NotBroken — Move → Videos. Loads after abstain.css (panels, chips, buttons, sheet, toast), train.css (the body map)
   and eat.css (search, chips, selects, cards and the video player), and only adds what Videos needs. */
#vd-root { max-width: 1240px; }
@media (min-width: 1000px) {
  .vd-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
  .vd-side { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; scrollbar-width: thin; border-radius: 20px; }
  .vd-side .vd-map { margin-top: 0; }
  .vd-main .et-filters { margin-top: 0; }
  .vd-main .et-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.vd-map { margin-top: 14px; }
.vd-map .bm-figs { max-width: 440px; }
/* the Videos map is colour-coded — every area its own colour — so it reads as a finder, not Train's anatomy chart */
#vd-map .bm-part .m { stroke: rgba(8,12,22,.55); stroke-width: .45; transition: fill-opacity .2s, stroke .2s, stroke-width .2s; }
#vd-map .bm-part .bm-fib { stroke: rgba(8,12,22,.22); }
#vd-map .bm-part:hover .m { stroke: #F2EFEA; stroke-width: .9; fill-opacity: 1; }
#vd-map.has-pick .bm-part:not(.is-selected):not(:hover) .m { fill-opacity: .26; }
#vd-map .bm-part.is-selected .m { stroke: #FFFFFF; stroke-width: 1.2; fill-opacity: 1; }
#vd-map .bm-body { fill: rgba(255,255,255,.07); }
#vd-map.bm--bones .bm-part .m { fill-opacity: .34; }
#vd-map.bm--bones.has-pick .bm-part:not(.is-selected):not(:hover) .m { fill-opacity: .1; }
#vd-map.bm--bones .bm-part.is-selected .m, #vd-map.bm--bones .bm-part:hover .m { fill-opacity: .62; }
.vd-areas .ab-chip[data-area]::before, .vd-pill.is-area::before, .vd-pick__name::before, .vd-achip::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 2px rgba(8,12,22,.35); }
.vd-areas .ab-chip[data-area][aria-pressed="true"] { border-color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); background: rgba(255,255,255,.1); }
.vd-pick__name { display: inline-flex; align-items: center; gap: 10px; }
.vd-achip { display: inline-flex; align-items: center; gap: 7px; }
.vd-pick__name::before { width: 14px; height: 14px; }
.vd-pill.is-area { border-color: var(--ac); }
#ab-sheet .vd-mini .bm-part.is-selected .m { stroke: rgba(8,12,22,.6); stroke-width: .5; }
.vd-pick { text-align: center; margin: 8px auto 4px; max-width: 520px; min-height: 52px; }
.vd-pick__hint { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(242,239,234,.75); }
.vd-pick__name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--text-light); }
.vd-pick__n { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.45; color: rgba(242,239,234,.8); }
.vd-pick__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vd-pick__acts .nb-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.vd-pick__acts svg { width: 16px; height: 16px; }
.vd-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 2px; }
.vd-areas .ab-chip, .vd-cats .ab-chip { font-size: 13px; min-height: 36px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.vd-areas .ab-chip[aria-pressed="true"], .vd-cats .ab-chip[aria-pressed="true"] { background: rgba(132,192,160,.25); border-color: rgba(132,192,160,.7); color: #F2EFEA; }
.vd-cats .et-chip--saved[aria-pressed="true"] { background: rgba(232,163,117,.25); border-color: rgba(232,163,117,.7); }
.vd-n { font-size: 11px; font-weight: 700; color: rgba(242,239,234,.55); }
[aria-pressed="true"] > .vd-n { color: rgba(242,239,234,.85); }
@media (max-width: 599px) {
  .vd-areas { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 12px -14px 2px; padding: 0 14px 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
  .vd-areas::-webkit-scrollbar { display: none; }
  .vd-areas .ab-chip { flex: 0 0 auto; }
}

/* cards */
.vc .ec__meta { color: var(--primary); }
.vc__focus { margin: 0; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(242,239,234,.8); }
.vc__focus.is-target { background: rgba(132,192,160,.2); border-color: rgba(132,192,160,.55); color: #CFE8DA; }
.vc__focus[hidden] { display: none; }
.ec__b--low { background: rgba(132,192,160,.12); border-color: rgba(132,192,160,.35); }
.ec__b--high { background: rgba(232,163,117,.14); border-color: rgba(232,163,117,.4); }
.vd-empty { text-align: center; color: rgba(242,239,234,.75); margin: 24px 0; }

/* the video sheet */
.vd-card .et-video { margin-top: 12px; }
.vd-what { margin: 10px 0 8px; font-size: 15px; line-height: 1.55; color: rgba(242,239,234,.9); }
.vd-facts { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vd-facts li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(242,239,234,.85); }
.vd-sec { margin-top: 14px; }
.vd-sec .et-h3 span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-left: 6px; }
.vd-cues { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vd-cues li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: rgba(242,239,234,.9); }
.vd-cues svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--primary); margin-top: 1px; }
.vd-mini { padding: 4px 0 0; pointer-events: none; }
.vd-mini .bm-figs { max-width: 250px; margin: 0 auto; }
.vd-mini .bm-caption { font-size: 13px; }
.vd-works__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; }
.vd-achip { font-size: 12.5px; min-height: 32px; padding: 4px 11px; }
.vd-fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(242,239,234,.62); }
.vd-safe { text-align: center; }
.vd-card .ab-sheet__actions { flex-wrap: nowrap; }
.vd-card .ab-sheet__actions .nb-btn { flex: 0 0 auto; }
.vd-card .ab-sheet__actions .nb-btn--primary { flex: 1 1 auto; justify-content: center; }
.vd-card .ab-sheet__actions a.nb-btn { text-decoration: none; }
.vd-card .ab-sheet__actions svg { width: 18px; height: 18px; }
.vd-card .nb-btn.is-on { color: var(--terra); border-color: rgba(232,163,117,.6); }
.vd-card .nb-btn.is-on svg { fill: currentColor; }
.vd-how { margin: 0; }
.vd-how li { margin: 4px 0; }

/* ---- phones and tablets: the big map gives way to a Body area pull-down; filters show as pills above the results ---- */
@media (max-width: 999px) { .vd-side { display: none; } }
@media (min-width: 1000px) { .vd-zone { display: none; } .vd-filters .vd-more > summary { display: none; } }
.vd-label { margin: 0 0 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: rgba(242,239,234,.6); }
.vd-label span { text-transform: none; letter-spacing: 0; font-weight: 500; color: rgba(242,239,234,.5); margin-left: 6px; }
.vd-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the Body area pull-down: a big tappable control over the phone's own picker (the <select> covers it, invisible) */
.vd-zone { margin: 0 0 12px; }
.vd-apick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 8px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: var(--text-light); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.vd-apick:hover { border-color: rgba(255,255,255,.35); }
.vd-apick:focus-within { outline: 3px solid rgba(232,163,117,.9); outline-offset: 2px; }
.vd-apick.is-set { border-color: var(--ac); background: rgba(255,255,255,.08); box-shadow: inset 4px 0 0 var(--ac); }
.vd-apick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; margin: 0; -webkit-appearance: none; appearance: none; }
.vd-apick__ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: rgba(8,12,22,.35); display: grid; place-items: center; overflow: hidden; }
.vd-apick__ico .vd-ico { width: 46px; height: 46px; }
.vd-apick__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-apick__t small { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: rgba(242,239,234,.6); }
.vd-apick__t b { font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-apick.is-set .vd-apick__t b { color: var(--ac-hi); }
.vd-apick__n { flex: 0 0 auto; min-width: 34px; height: 26px; padding: 0 9px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.1); color: rgba(242,239,234,.85); }
.vd-apick.is-set .vd-apick__n { background: var(--ac); color: #10141c; }
.vd-apick__chev { flex: 0 0 auto; width: 20px; height: 20px; opacity: .75; }
.vd-ico { width: 100%; height: 100%; display: block; overflow: hidden; }
.vd-ico__sil { fill: rgba(255,255,255,.13); stroke: rgba(242,239,234,.35); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vd-ico .m { stroke: rgba(8,12,22,.45); stroke-width: .5; }
.vd-ico .bm-sh { display: none; }
.vd-ico .bm-fib { fill: none; stroke: rgba(8,12,22,.28); stroke-width: .4; }
.vd-ico--all .vd-ico__sil { stroke-width: 1; }
.vd-kinds .vd-label { margin-top: 2px; }
.vd-more { border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.vd-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-light); }
.vd-more > summary::-webkit-details-marker { display: none; }
.vd-more > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; opacity: .7; }
.vd-more[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.vd-more__n { min-width: 20px; height: 20px; border-radius: 999px; background: var(--primary); color: #13171D; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.vd-more__n[hidden] { display: none; }
.vd-more .vd-selects { margin-top: 8px; }
@media (min-width: 1000px) { .vd-more { border-top: 0; padding-top: 0; } .vd-more .vd-selects { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 999px) { .vd-more .vd-selects { grid-template-columns: 1fr 1fr; } .vd-more .vd-selects .et-sel:first-child { grid-column: auto; } .vd-more .vd-selects .et-sel:last-child { grid-column: 1 / -1; } }

/* the results bar: count, active filters as pills, clear */
.vd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(22,27,44,.82); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vd-count { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: rgba(242,239,234,.8); }
.vd-count b { color: var(--text-light); font-size: 15px; }
.vd-count span { color: rgba(242,239,234,.6); }
.vd-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; order: 3; }
.vd-pills[hidden] { display: none; }
.vd-pill { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: #CFE8DA; background: rgba(132,192,160,.18); border: 1px solid rgba(132,192,160,.5); border-radius: 999px; padding: 5px 8px 5px 12px; min-height: 34px; cursor: pointer; }
.vd-pill svg { width: 15px; height: 15px; opacity: .85; }
.vd-pill.is-area { background: rgba(132,192,160,.3); border-color: rgba(132,192,160,.85); color: #F2EFEA; }
.vd-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vd-bar .et-clear { margin-left: auto; flex: 0 0 auto; padding: 4px 2px; }
.vd-bar.is-bump { animation: vdBump .5s ease-out; }
@keyframes vdBump { 0% { box-shadow: 0 0 0 0 rgba(132,192,160,.6); } 100% { box-shadow: 0 0 0 10px rgba(132,192,160,0); } }
@media (max-width: 999px) { .vd-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6px); z-index: 5; } }
@media (prefers-reduced-motion: reduce) { .vd-bar.is-bump { animation: none; } }

.vd-head-short { display: none; }
@media (max-width: 599px) { .vd-head-long { display: none; } .vd-head-short { display: block; } }

/* ---- area colours (generated by build/videospage.py from AREA_HUE) ---- */
.vd-a-neck, #vd-root [data-area="neck"] { --ac: #64bdd3; --ac-hi: #8dd9ec; }
.vd-a-shoulders, #vd-root [data-area="shoulders"] { --ac: #d39064; --ac-hi: #ecb38d; }
.vd-a-chest, #vd-root [data-area="chest"] { --ac: #d36490; --ac-hi: #ec8db3; }
.vd-a-upperback, #vd-root [data-area="upperback"] { --ac: #bd64d3; --ac-hi: #d98dec; }
.vd-a-lowerback, #vd-root [data-area="lowerback"] { --ac: #64d390; --ac-hi: #8decb3; }
.vd-a-core, #vd-root [data-area="core"] { --ac: #6490d3; --ac-hi: #8db3ec; }
.vd-a-obliques, #vd-root [data-area="obliques"] { --ac: #9064d3; --ac-hi: #b38dec; }
.vd-a-biceps, #vd-root [data-area="biceps"] { --ac: #d3bd64; --ac-hi: #ecd98d; }
.vd-a-triceps, #vd-root [data-area="triceps"] { --ac: #bdd364; --ac-hi: #d9ec8d; }
.vd-a-forearms, #vd-root [data-area="forearms"] { --ac: #64d364; --ac-hi: #8dec8d; }
.vd-a-hips, #vd-root [data-area="hips"] { --ac: #d364bd; --ac-hi: #ec8dd9; }
.vd-a-glutes, #vd-root [data-area="glutes"] { --ac: #d36464; --ac-hi: #ec8d8d; }
.vd-a-quads, #vd-root [data-area="quads"] { --ac: #64d3bd; --ac-hi: #8decd9; }
.vd-a-hamstrings, #vd-root [data-area="hamstrings"] { --ac: #6464d3; --ac-hi: #8d8dec; }
.vd-a-calves, #vd-root [data-area="calves"] { --ac: #90d364; --ac-hi: #b3ec8d; }
#vd-map .bm-part[data-area="neck"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="neck"] .m, .vd-ico .bm-part[data-area="neck"] .m { fill: url(#vdg-neck); }
#vd-map .bm-part[data-area="shoulders"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="shoulders"] .m, .vd-ico .bm-part[data-area="shoulders"] .m { fill: url(#vdg-shoulders); }
#vd-map .bm-part[data-area="chest"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="chest"] .m, .vd-ico .bm-part[data-area="chest"] .m { fill: url(#vdg-chest); }
#vd-map .bm-part[data-area="upperback"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="upperback"] .m, .vd-ico .bm-part[data-area="upperback"] .m { fill: url(#vdg-upperback); }
#vd-map .bm-part[data-area="lowerback"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="lowerback"] .m, .vd-ico .bm-part[data-area="lowerback"] .m { fill: url(#vdg-lowerback); }
#vd-map .bm-part[data-area="core"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="core"] .m, .vd-ico .bm-part[data-area="core"] .m { fill: url(#vdg-core); }
#vd-map .bm-part[data-area="obliques"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="obliques"] .m, .vd-ico .bm-part[data-area="obliques"] .m { fill: url(#vdg-obliques); }
#vd-map .bm-part[data-area="biceps"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="biceps"] .m, .vd-ico .bm-part[data-area="biceps"] .m { fill: url(#vdg-biceps); }
#vd-map .bm-part[data-area="triceps"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="triceps"] .m, .vd-ico .bm-part[data-area="triceps"] .m { fill: url(#vdg-triceps); }
#vd-map .bm-part[data-area="forearms"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="forearms"] .m, .vd-ico .bm-part[data-area="forearms"] .m { fill: url(#vdg-forearms); }
#vd-map .bm-part[data-area="hips"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="hips"] .m, .vd-ico .bm-part[data-area="hips"] .m { fill: url(#vdg-hips); }
#vd-map .bm-part[data-area="glutes"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="glutes"] .m, .vd-ico .bm-part[data-area="glutes"] .m { fill: url(#vdg-glutes); }
#vd-map .bm-part[data-area="quads"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="quads"] .m, .vd-ico .bm-part[data-area="quads"] .m { fill: url(#vdg-quads); }
#vd-map .bm-part[data-area="hamstrings"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="hamstrings"] .m, .vd-ico .bm-part[data-area="hamstrings"] .m { fill: url(#vdg-hamstrings); }
#vd-map .bm-part[data-area="calves"] .m, #ab-sheet .vd-mini .bm-part.is-selected[data-area="calves"] .m, .vd-ico .bm-part[data-area="calves"] .m { fill: url(#vdg-calves); }
