:root { color-scheme: light; --ink: #18332e; --muted: #5e7067; --paper: #f3f4ed; --line: #d4ddd1; --accent: #2b654f; --white: #fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 system-ui, -apple-system, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #36775d; outline-offset: 4px; }
.site-header, main, footer { max-width: 1248px; margin: auto; padding-left: 32px; padding-right: 32px; }
.site-header { display: flex; align-items: center; gap: 24px; min-height: 96px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 780; text-decoration: none; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--paper); background: var(--ink); font-size: 12px; padding-left: 2px; }
.header-note { flex: 1; color: var(--muted); font-size: 13px; }
.badge { border: 1px solid var(--line); padding: 4px 12px; border-radius: 30px; white-space: nowrap; font-size: 12px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; padding: 62px 0 42px; }
.eyebrow, .small-label { font-size: 11px; font-weight: 650; letter-spacing: .12em; color: var(--accent); }
h1 { margin: 14px 0 20px; font-size: clamp(36px, 4.7vw, 58px); line-height: 1.25; letter-spacing: -.05em; font-weight: 700; }
.intro { margin: 0; color: var(--muted); line-height: 1.9; }
.snapshot-note { display: flex; flex-direction: column; gap: 9px; border-left: 2px solid #b9c9b7; padding-left: 22px; padding-bottom: 4px; min-width: 230px; margin-bottom: 4px; }
.snapshot-note strong { font-size: 19px; font-weight: 550; }
.snapshot-note > span:last-child { font-size: 12px; color: var(--muted); }
fieldset { min-width: 0; border: 0; margin: 0; padding: 22px 24px 16px; background: #e8ede3; border-radius: 14px; }
.filter-row { display: grid; grid-template-columns: minmax(240px, 2.3fr) minmax(150px, 1.25fr) minmax(105px, .8fr) minmax(140px, 1.1fr); gap: 14px; }
.filter-row label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
input[type="search"], select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #c7d2c3; background: var(--white); color: var(--ink); border-radius: 7px; padding: 9px 11px; }
input[type="search"], select { font-size: 16px; height: 46px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 20px, calc(100% - 11px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="search"]::placeholder { color: #6f7c73; opacity: 1; }
.filter-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 13px; font-size: 12px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.filter-hint { color: var(--muted); flex: 1; }
.text-button { padding: 4px 0; min-height: 32px; border: 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 36px; }
h2 { font-size: 23px; font-weight: 650; letter-spacing: -.025em; margin: 0; }
#status { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-note { margin: 6px 0 22px; font-size: 12px; color: var(--muted); }
.local-note { margin: -14px 0 22px; font-size: 11px; color: var(--muted); }
.ranking-explainer { margin: -10px 0 14px; font-size: 12px; color: var(--muted); }
.ranking-explainer summary { cursor: pointer; min-height: 30px; color: var(--accent); }
.ranking-explainer p { max-width: 780px; }
.time-status { font-size: 11px; color: var(--muted); margin: 0 0 20px; }
.storage-warning { padding: 10px 14px; border: 1px solid #d4c6a3; border-radius: 7px; background: #f6f1e5; font-size: 12px; color: #6d5832; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.video-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.watch-link { display: block; text-decoration: none; }
.watch-link:hover .video-title { text-decoration: underline; text-underline-offset: 4px; }
.watch-link:focus-visible { outline-offset: -4px; border-radius: 12px; }
.thumbnail { position: relative; aspect-ratio: 16 / 9; background: #dfe7da; overflow: hidden; }
.thumbnail img { position: absolute; width: 100%; height: 100%; object-fit: cover; top: 0; left: 0; }
.thumbnail-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #51715d; font-size: 20px; letter-spacing: .2em; font-weight: 650; background: linear-gradient(140deg, #e1e8da, #d4e1d0); }
.open-label { position: absolute; bottom: 10px; right: 10px; padding: 4px 9px; border-radius: 5px; background: #18332eea; color: white; font-size: 10px; }
.duration-label { position: absolute; bottom: 10px; left: 10px; padding: 3px 7px; border-radius: 4px; background: #18332eea; color: white; font-size: 11px; }
.video-title { font-size: 17px; line-height: 1.45; font-weight: 650; letter-spacing: -.02em; margin: 17px 18px 0; overflow-wrap: anywhere; }
.card-body { padding: 0 18px 16px; }
.video-meta { margin: 8px 0 10px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.video-time { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--muted); margin: 8px 0 12px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.category-badge, .shelf-badge { border-radius: 4px; padding: 2px 6px; font-size: 10px; color: #365f49; background: #edf2e9; }
.shelf-badge { background: #f3efe5; color: #75613a; }
.video-summary { font-size: 13px; line-height: 1.7; margin: 13px 0; color: #41564c; overflow-wrap: anywhere; }
.evidence { font-size: 12px; line-height: 1.7; border-top: 1px solid #e8ede5; padding-top: 10px; }
.evidence summary { cursor: pointer; color: var(--accent); font-weight: 550; min-height: 24px; }
.evidence p, .evidence blockquote { overflow-wrap: anywhere; }
.evidence blockquote { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--line); color: var(--muted); }
.evidence-link { display: inline-block; padding: 4px 0; }
.card-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; margin-top: 14px; font-size: 10px; color: var(--muted); }
.combined-score { flex-basis: 100%; color: var(--accent); font-weight: 600; }
.score { color: var(--accent); font-weight: 650; }
.card-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hide-button, .save-button { min-height: 44px; padding: 8px 12px; border: 1px solid #c7d2c3; border-radius: 6px; color: var(--accent); background: white; font-size: 12px; }
.save-button[aria-pressed="true"] { background: #e8f0e3; border-color: #8fae91; }
.hide-button { color: var(--muted); }
.hide-button:hover, .save-button:hover { border-color: var(--accent); }
.message-panel { text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 40px 24px; }
.message-panel h3 { font-size: 20px; margin: 0 0 8px; }
.message-panel p { color: var(--muted); }
.primary-button { border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; min-height: 44px; padding: 10px 22px; font-size: 13px; }
.primary-button:hover { background: #204e3c; }
.more-row { text-align: center; padding: 30px 0 48px; }
#shown-count { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
footer { padding-top: 24px; padding-bottom: 30px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
footer p { margin: 3px 0; }
.footer-separator { padding: 0 8px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 10; top: 8px; left: 16px; padding: 8px 14px; background: white; }
@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .filter-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .snapshot-note { min-width: 195px; }
}
@media (max-width: 600px) {
  .site-header, main, footer { padding-left: 20px; padding-right: 20px; }
  .site-header { min-height: 76px; justify-content: space-between; }
  .header-note { display: none; }
  .hero { display: block; padding: 34px 0 26px; }
  h1 { margin-top: 12px; margin-bottom: 16px; font-size: 38px; }
  .intro { font-size: 13px; }
  .desktop-break { display: none; }
  .snapshot-note { margin-top: 22px; gap: 4px; padding-left: 14px; }
  .snapshot-note strong { font-size: 16px; }
  .small-label { font-size: 10px; }
  fieldset { padding: 16px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search-field { grid-column: 1 / -1; }
  .filter-row > .select-field:last-child { grid-column: 1 / -1; }
  .filter-options { gap: 6px 14px; }
  .filter-hint { order: 3; flex-basis: 100%; }
  .text-button { margin-left: auto; }
  .results-heading { padding-top: 28px; align-items: flex-start; }
  h2 { font-size: 21px; }
  #status { font-size: 11px; margin-top: 5px; }
  .catalog-note { margin-top: 10px; line-height: 1.7; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .video-title { font-size: 18px; }
  .video-summary { font-size: 14px; }
}
