/* Source examples overlay the existing full-bleed video; no player resizing. */
.sora-references:empty{display:none}
.sora-references{width:100%;min-width:0;margin:8px 0 0;text-shadow:none}
.sora-current-views{min-height:0;margin:6px 0}.sora-current-views:empty{display:none}
.reference-caption{display:block;margin:0 0 6px;font-size:10px;line-height:1.2;font-weight:500;color:#fffc;text-shadow:0 1px 3px #000}
.reference-strip{position:relative;display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 4px;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;max-width:100%;scroll-snap-type:x proximity}
.reference-strip::-webkit-scrollbar{display:none}
body .reference-choice{position:relative;flex:0 0 44px;min-width:44px;width:44px;height:62px;min-height:62px;padding:0;border:0;border-radius:7px;background:#232323;color:white;overflow:hidden;scroll-snap-align:start;box-shadow:0 0 0 1px #ffffff50;isolation:isolate}
.reference-choice img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.reference-choice::after{position:absolute;content:'';inset:40% 0 0;background:linear-gradient(transparent,#000e);z-index:0;pointer-events:none}
body .reference-choice[aria-pressed=true]{box-shadow:0 0 0 2px #fff}
.reference-views{position:absolute;bottom:4px;left:2px;right:2px;z-index:1;display:flex;align-items:center;justify-content:center;gap:2px;font-size:7px;line-height:1.1;white-space:nowrap;font-weight:600;color:#fff;letter-spacing:-.2px;text-shadow:0 1px 3px #000}
.reference-views svg{width:9px;height:9px;flex:none}.reference-selected{display:none;position:absolute;top:4px;right:4px;width:5px;height:5px;border-radius:100%;background:#fff;box-shadow:0 1px 3px #0008}.reference-choice[aria-pressed=true] .reference-selected{display:block}
body .reference-toggle{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;min-height:44px;padding:3px 8px 3px 2px;color:#fff;border:0;background:#18181855;border-radius:11px;font-size:11px;font-weight:600;text-align:left;text-shadow:0 1px 5px #000;backdrop-filter:blur(6px)}
.reference-toggle>span:not(.reference-stack){display:flex;align-items:center;gap:6px}.reference-toggle small{font:inherit;color:#fffb}.reference-toggle>svg{width:13px;height:13px;flex:none}.reference-toggle[aria-expanded=true]>svg{transform:rotate(90deg)}
.reference-stack{display:block;position:relative;width:49px;height:35px;flex:0 0 49px}.reference-stack img{position:absolute;top:2px;width:25px;height:32px;border-radius:4px;object-fit:cover;box-shadow:0 0 0 1px #ffffff95;transform:rotate(-8deg);left:2px}.reference-stack img:nth-child(2){left:12px;transform:rotate(0deg)}.reference-stack img:nth-child(3){left:22px;transform:rotate(8deg)}
.reference-expand{margin-top:5px}.reference-expand[hidden]{display:none}
body .reference-drawer{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:520px;max-height:32dvh;padding:16px 18px calc(16px + env(safe-area-inset-bottom,0px));border:1px solid #ffffff35;border-bottom:0;border-radius:18px 18px 0 0;background:#191919f2;color:#fff;box-shadow:0 -10px 50px #0005;box-sizing:border-box;text-shadow:none;backdrop-filter:blur(16px)}
body .reference-drawer::backdrop{background:#0002;backdrop-filter:none;-webkit-backdrop-filter:none}.reference-drawer header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px}.reference-drawer h2{margin:0;font-size:14px;font-weight:600;line-height:1.2;color:white}body .reference-drawer header button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:#ffffff12;color:white;font-size:25px;font-weight:400}.reference-drawer .reference-strip{gap:10px;padding:4px 3px 7px}body .reference-drawer .reference-choice{flex-basis:56px;width:56px;height:76px;min-height:76px}.reference-drawer .reference-views{font-size:8px;bottom:5px}.reference-drawer .reference-views svg{width:10px;height:10px}
.feed-caption:has(.reference-choice)>p{margin-bottom:9px}.feed-caption:has(.reference-choice) h1{-webkit-line-clamp:2}
@media(max-height:650px){.sora-references{margin-bottom:8px}.reference-caption{margin-bottom:4px}.feed-caption:has(.reference-choice)>p{-webkit-line-clamp:1;margin-bottom:7px}.feed-caption:has(.reference-choice) h1{font-size:20px;margin-bottom:6px}.sora-current-views{margin-bottom:6px}.reference-drawer{max-height:34dvh}}
@media(prefers-reduced-transparency:reduce){body .reference-toggle,body .reference-drawer{background:#202020;backdrop-filter:none}}

.sora-current-views{display:flex;align-items:center;gap:4px;font-size:11px}.sora-current-views svg{width:13px;height:13px}.sora-current-views .trend-views{position:static;width:max-content}.sora-references:empty{display:none}
