.video-study {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) 0;
  color: #181715;
}

.video-study h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.5rem); }
.video-study h2 { margin: 0; font-size: 1.2rem; }
.video-study p { margin: 0; line-height: 1.6; }
.video-study header p, .video-subtitles > p { color: #635e55; }

.video-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 22px 0 12px;
}

.video-source label { grid-column: 1 / -1; }
.video-study label { font-size: .9rem; font-weight: 700; }

.video-study input:not([type="file"]), .video-study select, .video-study textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #aaa499;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
}

.video-study button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  color: #171513;
  background: #ff772f;
  font: inherit;
  font-weight: 750;
}

.video-study button:disabled { opacity: .55; cursor: default; }
.video-study :is(button, input, select, a, textarea):focus-visible { outline: 2px solid #a13a00; outline-offset: 2px; }

.video-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.video-frame, .video-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #151412;
  color: #f5f1ea;
  place-items: center;
  text-align: center;
}

.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-study-player > a { display: inline-block; margin: 8px 0; color: #783400; }
.video-caption-now { margin: 10px 0; min-height: 72px; padding: 14px; border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.video-caption-now p + p { margin-top: 4px; color: #685842; }
.video-study-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.video-study-actions select { display: block; margin-top: 4px; }
.video-study-actions button[aria-pressed="true"] { color: #fff; background: #261e18; }
.video-dictation { display: grid; gap: 6px; margin-top: 14px; }
.video-subtitles { min-width: 0; padding: 16px; border-radius: 14px; background: #fff; }
.video-import { margin: 14px 0; }
.video-import input { display: block; width: 100%; margin: 5px 0; font: inherit; font-weight: 400; }
.video-study .video-error { color: #a02d20; }
.video-cues { max-height: 50vh; overflow: auto; list-style: none; padding: 3px; margin: 0; }
.video-cues button { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 6px; width: 100%; text-align: left; background: #f4f1ea; margin-bottom: 5px; overflow-wrap: anywhere; }
.video-cues button[aria-current="true"] { background: #ffe0c9; }
.video-cues time { color: #6d4a34; font-variant-numeric: tabular-nums; }
.video-cues small { display: block; margin-top: 3px; font-size: .875rem; font-weight: 500; }

@media (max-width: 740px) {
  .video-study-layout { grid-template-columns: minmax(0, 1fr); }
  .video-subtitles { padding: 12px; }
}

.media-library { padding: 1rem; border-block: 1px solid #c9c3ba; margin-block: 1rem; }
.media-library summary,.video-wordlist summary { cursor: pointer; font-weight: 700; padding: .65rem 0; }
.media-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: .75rem; }
.media-filters label,.video-wordlist label { display: grid; gap: .25rem; }
.video-study .media-row { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; text-align: left; border-radius: 0; border-bottom: 1px solid #d9d4cd; background: transparent; color: #211e1a; }
.video-study .media-row:hover,.video-study .media-row:focus-visible { background: #ffead7; }
.video-study audio { width: 100%; margin-block: 1rem; }
.video-wordlist { max-height: 50vh; overflow: auto; }
.video-wordlist button { display:block; text-align:left; }
@media(min-width: 1000px) { .video-cues button > span:has(small) { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; } }
#app:has(.video-study) { width:100%; max-width:none; padding:0; margin:0; background:var(--v12-paper); }
.video-study { max-width:none; padding:0; min-height:82vh; background:var(--v12-paper); color:var(--v12-ink); color-scheme:light; }
.video-study [hidden] { display:none!important; }
.video-study .sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.video-study .mb-bar { display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 12px;background:var(--v12-white);border-bottom:1px solid var(--v12-line); }
.video-study .mb-bar strong { flex:1;min-width:10ch; }
.video-study button,.video-study select,.video-study input:not([type=file]),.video-study textarea { background:var(--v12-white);color:var(--v12-ink);border:1px solid var(--v12-line);border-radius:5px;font-weight:500; }
.video-study button:hover:not(:disabled),.video-study button[aria-pressed=true],.video-study-actions button[aria-pressed=true] { background:var(--v12-orange-soft);color:var(--v12-ink); }
.video-study :focus-visible { outline:2px solid var(--v12-orange)!important;outline-offset:2px; }
.mb-bar button { min-height:36px; }
.mb-grid { display:grid;grid-template-columns:clamp(220px,18vw,306px) minmax(0,1fr); }
.mb-side,.mb-list { overflow:auto;height:calc(100dvh - 155px);min-height:420px; }
.mb-side { padding:18px 15px;background:var(--v12-white);border-right:1px solid var(--v12-line); }
.mb-side fieldset { padding:0;margin:16px 0;border:0; }
.mb-side label,.mb-side legend { display:block;font-size:.8rem;color:var(--v12-muted);margin-bottom:6px; }
.mb-side button { display:block;width:100%;min-height:35px;margin:1px 0; }
.mb-side small { float:right; }
.mb-side input[type=range] { accent-color:var(--v12-orange);min-height:20px;padding:0; }
.mb-list { padding:6px clamp(10px,1.5vw,26px); }
.video-study .mb-list .media-row { background:transparent;color:var(--v12-ink);border:0;display:grid;grid-template-columns:clamp(165px,14vw,235px) minmax(0,1fr);align-items:start;justify-content:start;gap:18px;padding:9px 0;width:100%;text-align:left; }
.video-study .mb-list .media-row:hover { background:var(--v12-orange-soft); }
.mb-cover { display:grid;place-items:center;position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--v12-orange-soft);color:var(--v12-ink);border-radius:7px;font-size:2rem; }
.mb-cover img { width:100%;height:100%;object-fit:cover; }
.mb-cover time { position:absolute;bottom:4px;right:5px;background:#151519e8;color:white;font-size:.75rem;padding:2px 4px;border-radius:2px; }
.mb-info { display:grid;justify-items:start;gap:6px;color:var(--v12-muted);font-size:.84rem;overflow-wrap:anywhere; }
.mb-info strong { color:var(--v12-ink);font-size:clamp(1rem,1.3vw,1.3rem);line-height:1.3; }
.mb-info small { color:#853500;border:1px solid #edccb9;padding:1px 5px;border-radius:3px; }
.mb-toggle { display:none; }
.video-study-layout { margin:0;gap:0;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
.video-study-player,.video-subtitles { padding:10px;min-width:0; }
.video-subtitles { background:var(--v12-white);border-radius:0;border-left:1px solid var(--v12-line); }
.video-study .video-cues { max-height:66vh; }
.video-study .video-cues button { background:var(--v12-paper);color:var(--v12-ink);border:0; }
.video-study .video-cues button[aria-current=true] {background:var(--v12-orange-soft);box-shadow:inset 3px 0 var(--v12-orange);}
.video-study .video-cues time,.video-study .video-cues small,.video-study .video-caption-now p + p { color:var(--v12-muted); }
.video-caption-now { background:var(--v12-white); }
.video-study a { color:#853500; }
.video-study .video-error {color:var(--v12-red);}
.video-subtitles details {padding-block:6px;}
.video-source {margin:0;padding:20px;max-width:760px;}
@media(max-width:740px) {
.mb-grid,.video-study-layout {grid-template-columns:minmax(0,1fr);}
.mb-toggle {display:block;}
.mb-side {display:none;height:auto;min-height:0;}
.mb-side.expanded {display:block;}
.mb-list {height:auto;min-height:55vh;}
.video-study .mb-list .media-row {grid-template-columns:minmax(96px,36%) minmax(0,1fr);gap:10px;}
.mb-info {gap:3px;}
.video-subtitles {border-left:0;}
.mb-bar button,.mb-side button {min-height:44px;}
}
.video-study .mb-film {width:100%;display:block;aspect-ratio:16/9;background:black;}
.discovery-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0}.discovery-search label{grid-column:1/-1}.channel-result{display:flex;align-items:center;gap:8px;margin-block:6px}.discovery .mb-side h2{margin-bottom:12px}

.video-study .mb-bar { padding:10px clamp(12px,2vw,32px);gap:8px; }
.video-study .mb-bar button { border-radius:24px;padding-inline:16px; }
.video-study .mb-bar button[aria-pressed=true] {background:var(--v12-ink);color:white;}
.video-study .mb-side { padding:18px; }
.video-study .mb-side fieldset {border-top:1px solid var(--v12-line);padding-top:8px;}
.video-study .mb-side button {border-radius:9px;text-align:left;padding:6px 10px;}
.video-study .mb-side button[aria-pressed=true] {border-color:var(--v12-orange);background:var(--v12-orange-soft);}
.band-grid {display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:8px;}
.video-study .mb-list .media-row {border-bottom:1px solid var(--v12-line);padding:12px 4px;}
.video-study .mb-info small {background:var(--v12-orange-soft);border:0;border-radius:20px;padding:3px 8px;}
.video-study .video-subtitles {border-radius:12px;}
.video-study .video-cues button {color:var(--v12-ink);}
.channel-finder{width:min(920px,94vw);max-height:86dvh;overflow:auto;padding:16px;border:1px solid var(--v12-line);border-radius:var(--v12-radius);background:var(--v12-paper);color:var(--v12-ink);box-shadow:var(--v12-shadow)}.channel-finder::backdrop{background:#17151166}.channel-finder>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.channel-finder .mb-list,.channel-finder .mb-side{height:auto;max-height:60vh;min-height:0}.channel-finder .discovery-search{margin-top:0}@media(max-width:740px){.channel-finder .discovery .mb-side{order:2}.channel-finder .mb-list{min-height:0}}
.discovery-bands{border:0;padding:0;margin:12px 0}.discovery-bands button{margin:3px;border-radius:20px}.discovery-bands legend{font-size:.85rem;color:var(--v12-muted)}
.video-study .mb-side fieldset {margin:0 0 10px;border:0;padding:0}
.video-study .mb-side legend {margin:0 0 4px}
.video-study .segmented-vertical {border:1px solid var(--v12-line);border-radius:8px;overflow:hidden}
.video-study .mb-side .segmented-vertical button {display:block;text-align:center;width:100%;min-height:29px;padding:4px;border:0;margin:0;border-radius:0}
.video-study .segmented-vertical button + button {border-top:1px solid var(--v12-line)}
.video-study .segmented-vertical small {float:none;margin-left:4px;font-variant-numeric:tabular-nums}
.video-study .inline-size {display:flex;align-items:center;gap:5px;margin:6px 0}
.video-study .inline-size select {width:auto;min-height:28px;padding:2px 6px}
.dual-range {height:28px;position:relative;margin:0 8px}
.dual-range::before {content:'';position:absolute;top:12px;inset-inline:0;height:4px;border-radius:2px;background:linear-gradient(to right,var(--v12-line) var(--start),var(--v12-orange) var(--start),var(--v12-orange) var(--end),var(--v12-line) var(--end))}
.video-study .mb-side .dual-range input[type=range] {width:100%;height:28px;padding:0;margin:0;position:absolute;inset:0;appearance:none;pointer-events:none;background:none;border:0}
.dual-range input::-webkit-slider-thumb {appearance:none;background:var(--v12-orange);border:2px solid white;border-radius:50%;width:20px;height:20px;pointer-events:auto;cursor:ew-resize}
.dual-range input::-moz-range-thumb {background:var(--v12-orange);border-radius:50%;pointer-events:auto;cursor:ew-resize}
.dual-range input:focus-visible {z-index:1}
.range-marks,.sort-search {display:flex;justify-content:space-between;align-items:center;gap:8px}
.range-marks {font-size:.78rem;color:var(--v12-muted)}
.sort-search .segmented-vertical {flex:1}
.video-study .mb-side .sort-search>button {width:44px;text-align:center;font-size:24px}
.extra-filters {font-size:.85rem;margin-bottom:12px}.extra-filters summary{cursor:pointer}
.channel-index {border-top:1px solid var(--v12-line);padding-top:8px}
.video-study .channel-index h2 {text-align:center;font-size:.95rem}
.channel-index h3 {font-size:.78rem;color:var(--v12-muted);margin:12px 0 4px}
.channel-line {display:flex;align-items:center;border-bottom:1px solid var(--v12-line);gap:2px}
.video-study .mb-side .channel-pick {display:flex;align-items:center;min-width:0;flex:1;gap:8px;border:0;background:transparent;padding:5px 2px}
.channel-pick img,.channel-pick i {width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none}
.channel-pick i {display:grid;place-items:center;background:var(--v12-orange-soft);font-style:normal}
.channel-pick span {flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-index small {background:var(--v12-paper);border-radius:10px;padding:2px 5px;font-size:.75rem}
.video-study .mb-side .channel-pin {width:32px;height:36px;border:0;padding:6px;text-align:center}
@media(pointer:coarse){.video-study .mb-side .channel-pin,.video-study .mb-side .segmented-vertical button{min-height:44px}.video-study .mb-side .channel-pin{width:44px}}
.video-study .mb-side .channel-mix{display:flex;align-items:center;gap:9px;border:0;background:transparent}.channel-mix i{display:grid;place-items:center;width:28px;height:28px;color:#783200;border-radius:50%;background:var(--v12-orange-soft);font-style:normal}.channel-mix small{margin-left:auto}
.video-study .mb-side .dual-range input[type=range]{min-height:0;box-sizing:border-box;transform:none}.dual-range input::-webkit-slider-runnable-track{height:4px;background:transparent}.dual-range input::-webkit-slider-thumb{margin-top:-8px}.dual-range input::-moz-range-track{background:transparent}
.catalog-pages{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 0;flex-wrap:wrap}
.caption-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0}.caption-status p{color:var(--v12-muted)}
.caption-catalog-filter {display:flex;flex-wrap:wrap;gap:6px;padding:10px 0;position:sticky;top:0;z-index:2;background:var(--v12-paper)}
.video-study .caption-catalog-filter button {border-radius:20px;min-height:40px}
.video-study .caption-catalog-filter button[aria-pressed=true] {background:var(--v12-ink);color:white}
.caption-catalog-filter small {margin-left:.2rem}
.video-study .mb-info .caption-catalog-badge {color:#1f5a39;background:#e6f4e9}
