/* Video library: charcoal surfaces, compact filters and thumbnail/title cards. */
.te-home .featured.section{max-width:none;padding:24px 28px 48px;background:transparent}
.te-home .section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.te-home #catalog-title{margin:0;font-size:24px;line-height:1.3;letter-spacing:-.025em;color:var(--te-text,#f2f2f2)}
.te-home .section-head>a{font-size:13px;color:var(--te-accent,#459bff)}
.te-home .video-filter-section{min-width:0;margin:0 0 10px}
.te-home .video-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px}
.te-home .video-filter-heading h3{margin:0;font-size:12px;font-weight:650;letter-spacing:0;color:var(--te-muted,#b9b9b9)}
.te-home .video-row-arrows{display:flex;gap:5px}
.te-home .video-row-arrows button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--te-border,#707070);border-radius:50%;background:var(--te-soft,#303030);color:var(--te-text,#f2f2f2);font-size:20px;cursor:pointer}
.te-home .video-row-arrows button:disabled{opacity:.35;cursor:default}
.te-home .video-filter-row{display:flex;gap:7px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;touch-action:pan-x pan-y;scrollbar-width:thin;padding:4px 3px 8px}
.te-home .video-filter-row button{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 13px;border:1px solid var(--te-border,#707070);border-radius:999px;background:var(--te-soft,#303030);color:var(--te-text,#f2f2f2);font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color 150ms,border-color 150ms}
.te-home .video-filter-row button:hover{background:var(--te-hover,#383838);border-color:var(--te-accent,#459bff)}
.te-home .video-filter-row button[aria-pressed=true]{background:var(--te-selected,#163d69);border-color:var(--te-accent,#459bff);color:var(--te-text,#f2f2f2)}
.te-home .video-pill-count{font-size:10px;opacity:.72;font-weight:500}
.te-home .video-filter-row:focus-visible,.te-home .video-filter-row button:focus-visible,.te-home .video-row-arrows button:focus-visible{outline:2px solid var(--te-accent,#459bff);outline-offset:2px}
.te-home .video-filter-section[hidden],.te-home .video-row-arrows[hidden]{display:none!important}
.te-home .catalog-refinements{display:flex;align-items:center;flex-wrap:wrap;margin-top:8px;gap:12px;color:var(--te-muted,#b9b9b9);font-size:13px}
.te-home .catalog-refinements #clear-filters{color:var(--te-accent,#459bff)}
.te-home .results-status{margin:0 0 0 auto;color:var(--te-muted,#b9b9b9)}
.te-home .video-vehicle-filters{width:fit-content;max-width:100%;font-size:13px;margin:12px 0}
.te-home .video-vehicle-filters>summary{cursor:pointer;padding:8px 0;font-weight:600;color:var(--te-text,#f2f2f2)}
.te-home .vehicle-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:10px 0}
.te-home .vehicle-fields label{display:grid;gap:6px;color:var(--te-muted,#b9b9b9)}
.te-home .vehicle-fields select{width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--te-border,#707070);border-radius:8px;background:var(--te-soft,#303030);color:var(--te-text,#f2f2f2)}
.te-home .coverage-note{font-size:13px;line-height:1.5;color:var(--te-muted,#b9b9b9);margin:10px 0 20px}
/* The minimum track grows with usable grid width, so even an ultrawide row
   stops at four landscape cards. Narrow containers still use fewer columns. */
.te-home .video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(280px,calc((100% - 54px)/4))),1fr));gap:26px 18px;align-items:start;min-width:0}
/* Verified Shorts-only results can use six narrower portrait cards. Mixed
   results retain their existing order and a consistent landscape frame. */
.te-home .video-grid[data-video-layout=shorts]{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(144px,calc((100% - 80px)/6))),1fr));column-gap:16px}
.te-home .video-grid .video-card{display:block;min-width:0;border:0;border-radius:12px;background:transparent;box-shadow:none;overflow:visible;color:var(--te-text,#f2f2f2);transition:none;transform:none}
.te-home .video-card::before{content:none}
.te-home .video-card .thumb,.te-home .video-placeholder{position:relative;width:100%;aspect-ratio:16/9;height:auto;overflow:hidden;border-radius:12px;background:#171717;box-shadow:0 0 0 1px transparent;transition:box-shadow 180ms ease}
.te-home .video-card .thumb img{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;opacity:1;transform:none;transition:transform 200ms ease}
.te-home .video-grid[data-video-layout=shorts] .thumb,.te-home .video-grid[data-video-layout=shorts] .video-placeholder,.te-home .video-grid[data-video-layout=shorts] .thumb img{aspect-ratio:9/16}
.te-home .video-card>h3{margin:10px 0 0;padding:0;font-family:inherit;font-size:15px;line-height:1.45;font-weight:650;letter-spacing:0;color:inherit;overflow-wrap:anywhere}
.te-home .video-placeholder{display:grid;place-items:center;color:#b9b9b9;font-size:2rem}
.te-home .video-card:focus-visible{outline:2px solid var(--te-accent,#459bff);outline-offset:5px}
.te-home .load-more-wrap{margin:30px 0 0}
.te-home .search-feedback-line{font-size:12px;color:var(--te-muted,#b9b9b9);margin-top:28px}
@media(hover:hover) and (pointer:fine){
 .te-home .video-card:hover .thumb{box-shadow:0 0 0 1px var(--te-accent,#459bff),0 0 18px #2684eb22}
 .te-home .video-card:hover .thumb img{transform:scale(1.025)}
 .te-home .video-card:hover>h3{color:var(--te-accent,#459bff)}
}
@media(max-width:767px),(hover:none),(pointer:coarse){.te-home .video-row-arrows{display:none}.te-home .video-filter-row button{min-height:44px}}
@media(max-width:767px){
 .te-home .featured.section{padding:18px 0 40px}
 .te-home .section-head,.te-home .video-filter-section,.te-home .catalog-refinements,.te-home .coverage-note,.te-home #saved-help,.te-home .video-vehicle-filters,.te-home .search-next,.te-home .conversation-matches,.te-home .search-feedback-line{margin-left:16px;margin-right:16px}
 .te-home .section-head{align-items:center;flex-direction:row}
 .te-home .video-grid{row-gap:24px}
 .te-home .video-grid[data-video-layout=shorts]{padding:0 16px}
 .te-home .video-card .thumb,.te-home .video-placeholder{border-radius:0}
 .te-home .video-card>h3{padding:0 16px;font-size:16px}
 .te-home .video-grid[data-video-layout=shorts] .video-card>h3{padding:0;font-size:15px}
 .te-home .vehicle-fields{grid-template-columns:1fr}
 .te-home .results-status{flex-basis:100%;margin-left:0}
 .te-home .load-more-wrap{padding:0 16px}
}
@media(prefers-reduced-motion:reduce){.te-home .video-filter-row button,.te-home .video-card .thumb,.te-home .video-card .thumb img{transition:none}.te-home .video-card:hover .thumb img{transform:none}}
@media(forced-colors:active){.te-home .video-filter-row button[aria-pressed=true]{border:2px solid Highlight}.te-home .video-filter-row button:focus-visible,.te-home .video-card:focus-visible{outline-color:Highlight}}


/* Keep exact titles in the document while aligning visual card heights. */
.te-home .video-card>h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.te-home .conversation-matches{padding:16px;background:var(--te-surface,#1b1b1b);border-color:var(--te-border,#45484e)}
.te-home .conversation-matches h3{font-size:15px}
.te-home .conversation-match-grid{margin:10px 0;gap:10px}
.te-home .conversation-match{padding:12px;gap:6px}
.te-home .conversation-matches>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
.te-home .video-load-error{grid-column:1/-1;padding:20px;border:1px solid var(--te-border,#45484e);border-radius:12px;line-height:1.65}
