/* Template module: existing ReelFlock canvas, typography, and blue accent. */
.tpl-page{--tpl-muted:#9a9aaf;--tpl-line:rgba(255,255,255,.11);--tpl-surface:#111123;color:#f8f8fc;background:#060618;font-family:var(--rf-font-body,Arial,sans-serif);padding-bottom:30px}
.tpl-container{max-width:1320px;width:calc(100% - 96px);margin:auto}
.tpl-page button,.tpl-dialog button{cursor:pointer}
.tpl-page button:focus-visible,.tpl-page a:focus-visible,.tpl-page input:focus-visible,.tpl-page select:focus-visible,.tpl-dialog button:focus-visible,.tpl-dialog input:focus-visible,.tpl-dialog a:focus-visible{outline:2px solid #9ebdff;outline-offset:4px}
.tpl-page svg,.tpl-dialog svg{width:18px;height:18px;flex-shrink:0;stroke-width:1.6}
.tpl-page [hidden],.tpl-dialog [hidden]{display:none!important}
.tpl-hero{padding:72px 0 54px;text-align:center;position:relative}

.tpl-hero h1{font-size:clamp(40px,4vw,62px);line-height:1.14;letter-spacing:-2.3px;font-weight:400;color:#fff;max-width:900px;margin:0 auto}
.tpl-hero h1 em{font-style:normal;color:#a9baff}
.tpl-hero>p{font-size:14px;line-height:1.7;color:var(--tpl-muted);margin:20px auto 29px;max-width:620px}
.tpl-search{display:flex;align-items:center;gap:13px;max-width:580px;height:54px;margin:auto;padding:0 17px;background:#141427;border:1px solid #333348;border-radius:9px;box-shadow:0 8px 28px #0002;text-align:left}
.tpl-search>svg{color:#aaaac0}
.tpl-search input{min-width:0;flex:1;color:#fff;background:transparent;border:0;outline:0!important;height:100%;font-size:13px;font-weight:300}
.tpl-search:focus-within{border-color:#a9baff;box-shadow:0 0 0 3px #889aff14}
.tpl-search input::placeholder{color:#8c8c9f}
.tpl-search kbd{border:1px solid #424252;border-radius:4px;padding:1px 7px;font-size:12px;color:#b6b6c6}
.tpl-back{display:flex;align-items:center;gap:8px;text-decoration:none;font-size:12px;color:#b1b4cc;width:max-content;margin:0 auto 28px}
.tpl-section-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}
.tpl-section-heading h2{font-size:22px;line-height:1.3;font-weight:400;letter-spacing:-.5px;color:#fff;margin:0}
.tpl-section-heading>span,.tpl-section-heading>p{font-size:12px;color:var(--tpl-muted);margin:0}
.tpl-featured{margin-bottom:52px}
.tpl-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tpl-collection{overflow:hidden;text-decoration:none;border:1px solid var(--tpl-line);background:#101020;border-radius:12px;transition:border-color .2s,transform .2s}
.tpl-collection:hover{border-color:#76769d;transform:translateY(-3px)}
.tpl-collection-art{height:156px;overflow:hidden;position:relative;display:flex;justify-content:center;gap:8px;padding:18px 24px 0;background:#cfc5b3}
.tpl-collection:nth-child(2) .tpl-collection-art{background:#9cae9f}
.tpl-collection:nth-child(3) .tpl-collection-art{background:#c4a6a3}
.tpl-collection-art:after{content:'';position:absolute;inset:0;box-shadow:inset 0 -40px 40px -40px #0005;pointer-events:none}
.tpl-collection-art img{width:29%;height:171px;object-fit:cover;object-position:center;box-shadow:0 4px 15px #0003;border-radius:7px;transform:rotate(-9deg) translateY(8px)}
.tpl-collection-art img:nth-child(2){transform:rotate(0);z-index:1}
.tpl-collection-art img:nth-child(3){transform:rotate(9deg) translateY(8px)}
.tpl-collection-arrow{position:absolute;z-index:2;right:13px;top:13px;border:1px solid #fff5;background:#0b0b194d;backdrop-filter:blur(10px);width:30px;height:30px;border-radius:50%;display:grid;place-items:center}
.tpl-collection-copy{padding:20px 22px 18px}

.tpl-collection h3{color:#fff;font-size:21px;font-weight:400;margin:0 0 8px}
.tpl-collection p{font-size:12px;color:#acacbf;line-height:1.65;min-height:39px;margin:0 0 16px;max-width:300px}
.tpl-text-link{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:0;text-decoration:none;color:#c2ceff;font-size:12px}
.tpl-text-link svg{width:14px;height:14px}
.tpl-library{scroll-margin-top:100px;margin-bottom:28px}
.tpl-library-title{display:flex;align-items:center;gap:13px}
.tpl-count{font-size:11px;border:1px solid #333348;border-radius:5px;padding:4px 8px;color:#b4b4c9;background:#121223}
.tpl-sort-label{display:flex;align-items:center;gap:9px;font-size:11px;color:#9191aa}
.tpl-sort-label select{padding:6px 26px 6px 8px;background:#060618;border:0;color:#d9d9e6;max-width:170px;font-size:12px;color-scheme:dark}
.tpl-filters{margin-bottom:24px;border-top:1px solid var(--tpl-line);border-bottom:1px solid var(--tpl-line);padding:19px 0;display:grid;gap:13px}
.tpl-filter-row{display:grid;grid-template-columns:135px 1fr;min-width:0;border:0;padding:0;margin:0;position:relative}
.tpl-filter-row legend{float:left;width:135px;padding:7px 0;font-size:11px;color:#9292aa}
.tpl-filter-options{display:flex;flex-wrap:wrap;gap:7px}
.tpl-filter{padding:7px 12px;border:1px solid transparent;border-radius:6px;background:#141426;font-size:11px;line-height:1.4;color:#b9b9cc;transition:background .15s,border-color .15s}
.tpl-filter:hover{background:#25253e;color:#fff}
.tpl-filter[aria-pressed=true]{background:#263455;border-color:#6e8fde;color:#d5e1ff}

.tpl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}
.tpl-card{min-width:0}
.tpl-card-media{position:relative;aspect-ratio:9/12;overflow:hidden;border-radius:10px;background:#202035}
.tpl-cover{display:block;width:100%;height:100%;border:0;padding:0;position:relative;text-align:left;background:transparent;color:#fff}
.tpl-cover img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease,filter .3s}
.tpl-card:hover .tpl-cover img{transform:scale(1.045);filter:brightness(.85)}
.tpl-card-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0004 0%,transparent 30%,#06061300 40%,#060613b8 100%)}
.tpl-card-kind{position:absolute;top:13px;left:13px;padding:5px 8px;border:1px solid #ffffff4a;background:#10102042;backdrop-filter:blur(10px);border-radius:4px;font-size:9px;letter-spacing:.2px}
.tpl-card-caption{position:absolute;bottom:42px;left:17px;right:17px;font-size:25px;line-height:1.15;letter-spacing:-.7px;font-weight:400;max-width:200px;text-shadow:0 2px 12px #0005}
.tpl-duration{position:absolute;bottom:15px;left:17px;font-size:10px;color:#e7e7ee;pointer-events:none}
.tpl-play{position:absolute;right:13px;bottom:12px;width:31px;height:31px;display:grid;place-items:center;padding:0;color:#fff;border:1px solid #ffffff75;border-radius:50%;background:#ffffff1a;backdrop-filter:blur(6px)}
.tpl-play:hover{background:#ffffff4d}
.tpl-play svg{height:13px;width:13px;fill:#fff;stroke-width:0;margin-left:1px}
.tpl-card-copy{padding:14px 0 0}
.tpl-card-meta{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#9e9eb5;letter-spacing:.15px}
.tpl-card-meta span{color:#b9c9ff}
.tpl-card h3{margin:7px 0 7px;font-size:14px;font-weight:400;line-height:1.5}
.tpl-card h3 button{font:inherit;color:#f1f1f9;background:none;padding:0;border:0;text-align:left}
.tpl-card-copy>p{font-size:10px;line-height:1.7;color:#9292a9;margin:0;min-height:34px}

.tpl-empty{text-align:center;border:1px dashed #33334a;padding:60px 24px;border-radius:10px}
.tpl-empty>svg{width:32px;height:32px;color:#9aabd9;margin-bottom:16px}
.tpl-empty h3{font-size:20px;font-weight:400;color:#fff}
.tpl-empty p{font-size:13px;color:#a1a1b7;margin:12px 0 22px}
.tpl-primary,.tpl-secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:42px;padding:11px 17px;border-radius:6px;border:1px solid transparent;background:#3469f4;color:#fff;font-size:12px;font-weight:400}
.tpl-primary:hover{background:#4e7ffa}
.tpl-secondary{background:#16162b;border-color:#3d3d54;color:#ddddec}

.tpl-guide{padding:18px 0 0;margin-top:42px}
.tpl-guide .tpl-section-heading{align-items:end;gap:60px}
.tpl-guide .tpl-section-heading h2{max-width:400px;font-size:29px;margin-top:0}
.tpl-guide .tpl-section-heading>p{max-width:460px;line-height:1.8;font-size:12px}
.tpl-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:10px 0 0}
.tpl-guide-card{background:linear-gradient(145deg,#20233d,#17192e);border:1px solid #454969;border-radius:16px;padding:28px;min-width:0;box-shadow:0 12px 30px #0003,inset 0 1px 0 #ffffff0a}




.tpl-guide h3{font-size:24px;font-weight:500;color:#fff;margin:0 0 18px}
.tpl-guide-card p{font-size:14px;line-height:1.8;color:#c0c2d4;margin:0}


.tpl-not-found{max-width:900px;margin:90px auto;padding:30px}
#site-nav a[aria-current=page]{color:#c1ceff;position:relative}
#site-nav a[aria-current=page]:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#9fb6ff}
/* Native modal preserves browser focus containment and the underlying page position. */
.tpl-dialog{--tpl-muted:#9a9aaf;position:fixed;inset:0;margin:auto;width:min(1040px,calc(100vw - 64px));max-width:none;height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);background:#0c0c1f;border:1px solid #36364e;border-radius:16px;color:#f4f4fa;padding:0;box-shadow:0 24px 90px #0008;overflow:hidden;font-family:var(--rf-font-body,Arial,sans-serif)}
.tpl-dialog[open]{display:flex;flex-direction:column;animation:tpl-appear .18s ease-out}
.tpl-dialog::backdrop{background:#02020ebd;backdrop-filter:blur(3px)}
@keyframes tpl-appear{from{transform:scale(.98);opacity:0}to{transform:scale(1);opacity:1}}
.tpl-modal-bar{display:flex;align-items:center;justify-content:flex-end;min-height:64px;padding:12px 28px;border-bottom:1px solid #ffffff1a;flex-shrink:0}

.tpl-modal-bar>div{display:flex;gap:12px}
.tpl-modal-bar button{height:34px;width:34px;border:1px solid #33334a;border-radius:6px;background:#17172d;display:grid;place-items:center;padding:0}
.tpl-modal-scroll{overflow:auto;overscroll-behavior:contain;flex:1;padding:34px 32px}
.tpl-detail-heading h2{font-size:34px;line-height:1.2;font-weight:400;letter-spacing:-1px;margin:12px 0}

.tpl-detail-body{display:grid;grid-template-columns:260px 1fr;align-items:start;gap:32px}
.tpl-reference{position:relative;width:100%;aspect-ratio:9/14;overflow:hidden;border-radius:8px;background:#19192e}
.tpl-reference>img{width:100%;height:100%;object-fit:cover;filter:brightness(.7)}
.tpl-reference>button{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:58px;height:58px;border:1px solid #ffffff70;color:white;border-radius:50%;background:#13132880;backdrop-filter:blur(8px);padding:0}
.tpl-reference>button:hover{background:#131328b3;border-color:#fff}
.tpl-reference>button svg{width:24px;height:24px;margin-left:3px;fill:currentColor;stroke-width:1.5}

.tpl-reference iframe{border:0;width:100%;height:100%;background:#090914}

.tpl-modal-footer{padding:17px 28px;display:flex;gap:12px;align-items:center;justify-content:flex-end;border-top:1px solid #33334c;background:#101023;flex-shrink:0}

@media(min-width:1600px){.tpl-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.tpl-container{max-width:1440px}}
@media(max-width:1050px){.tpl-container{width:calc(100% - 48px)}.tpl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl-collection-copy{padding:17px}.tpl-filter-row{grid-template-columns:112px 1fr}.tpl-filter-row legend{width:112px}.tpl-collection-art{padding-inline:13px}.tpl-dialog{width:calc(100vw - 40px)}.tpl-detail-body{grid-template-columns:230px 1fr;gap:24px}.tpl-hero{padding-top:56px}}
@media(max-width:760px){.tpl-container{width:calc(100% - 32px)}.tpl-hero{padding:42px 0}.tpl-hero h1{font-size:38px;letter-spacing:-1.4px}.tpl-hero>p{font-size:12px;max-width:320px}.tpl-search{height:50px}.tpl-search input{font-size:11px}.tpl-section-heading h2{font-size:20px}.tpl-section-heading>span{display:none}.tpl-collection-grid{grid-template-columns:repeat(3,260px);gap:13px;overflow:auto;padding:3px 0 14px;scroll-snap-type:x mandatory}.tpl-collection{scroll-snap-align:start}.tpl-collection-art{height:135px}.tpl-collection-copy p{min-height:40px}.tpl-featured{margin-bottom:30px}.tpl-filter-row{display:block}.tpl-filter-row legend{float:none;width:auto;padding:0 0 9px}.tpl-filter-options{gap:6px}.tpl-filter{font-size:10px;padding:7px 9px}.tpl-filters{gap:16px}.tpl-sort-label{font-size:0}.tpl-sort-label select{font-size:11px;max-width:135px;padding-right:0}.tpl-count{font-size:9px;padding:3px 6px}.tpl-library-title{gap:8px}.tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 13px}.tpl-card-caption{font-size:23px;left:13px;bottom:43px}.tpl-card-kind{font-size:8px;left:9px;top:9px;padding:4px 6px}.tpl-duration{left:13px;font-size:9px}.tpl-card h3{font-size:12px}.tpl-card-meta{font-size:8px;flex-wrap:wrap}.tpl-card-copy>p{font-size:9px;min-height:32px}.tpl-guide .tpl-section-heading{display:block}.tpl-guide .tpl-section-heading>p{margin-top:20px}.tpl-guide-grid{grid-template-columns:1fr;gap:20px}.tpl-dialog{width:calc(100vw - 24px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);border-radius:12px}.tpl-modal-scroll{padding:24px 19px}.tpl-modal-bar{padding:12px 18px;min-height:58px}.tpl-detail-heading h2{font-size:28px}.tpl-detail-body{grid-template-columns:1fr;gap:24px}.tpl-video{width:min(100%,240px);margin-inline:auto}.tpl-fit h3{font-size:12px}.tpl-modal-footer{padding:12px 16px;gap:9px}.tpl-modal-footer .tpl-primary{flex:1;font-size:11px;padding:10px}}
@media(prefers-reduced-motion:reduce){.tpl-dialog[open]{animation:none}.tpl-card img,.tpl-collection{transition:none}}

.tpl-cover{text-decoration:none}
.tpl-standalone{padding:50px 0 80px}
.tpl-standalone .tpl-detail-heading h1{font-size:42px;font-weight:400;margin:12px 0}
.tpl-standalone .tpl-detail-body{margin-top:35px}
.tpl-static-cover{width:100%;border-radius:8px}
.tpl-standalone h2{font-size:21px;margin-bottom:22px;font-weight:400}

/* Match the current shared Studio header. Its sticky position stays in document flow. */
#site-nav a[aria-current=page]{color:#c4ceff}
#site-nav a[aria-current=page]:after{background:#a9baff}

.tpl-detail-content{min-width:0}
.tpl-video{position:relative}
.tpl-video-source{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff40;border-radius:6px;background:#131328bf;color:#fff}
.tpl-standalone .tpl-reference{display:block}

.tpl-detail-content #tpl-breakdown{margin-top:26px}

.tpl-modal-footer .tpl-primary{text-decoration:none;min-width:200px}

/* Storyboard groups share the same information structure as Discovery details. */
.tpl-storyboard-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.tpl-storyboard-header h3{font-size:13px;font-weight:500;letter-spacing:0;color:#dadbea;margin:0}
.tpl-storyboard-header button{font-size:11px;color:#b8c8ff;background:none;border:0;padding:4px 0}
.tpl-segments{display:grid;gap:14px}
.tpl-segment{padding:18px;border:1px solid #ffffff0b;border-radius:10px;background:#151528}
.tpl-segment-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.tpl-segment-role{padding:3px 6px;border-radius:4px;font-size:10px;line-height:1.3;font-weight:500}
.tpl-segment-hook{background:#f1857719;color:#f6a299}
.tpl-segment-product{background:#668cff1c;color:#a0b8ff}
.tpl-segment-cta{background:#65c8b21a;color:#8edacb}
.tpl-segment-times{color:#8c8fa7;font-size:10px;line-height:1.6}
.tpl-segment-shot+.tpl-segment-shot{margin-top:17px;padding-top:17px;border-top:1px solid #ffffff0a}
.tpl-segment-shot dl{margin:0;display:grid;gap:9px}
.tpl-segment-shot dl>div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.75}
.tpl-segment-shot dt{color:#85899f}
.tpl-segment-shot dd{margin:0;color:#b5b8ca;overflow-wrap:anywhere;white-space:pre-wrap}
.tpl-segment-shot .tpl-segment-voice dd{color:#e3e5ef}
.tpl-segment-main{min-width:0}
.tpl-dialog .tpl-video{position:sticky;top:0}
@media(max-width:760px){.tpl-dialog .tpl-video{position:relative}.tpl-segment{padding:12px}.tpl-segment-shot dl>div{grid-template-columns:1fr;gap:1px}.tpl-segment-shot dt{font-size:9px}.tpl-segment-times{font-size:9px}.tpl-storyboard-header{gap:10px}}

.tpl-faq{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);align-items:start;gap:70px;padding:0 0 20px;margin-top:64px}
.tpl-faq h2{font-size:26px;font-weight:400;letter-spacing:-.5px;margin:18px 0 0}
.tpl-faq details{border:0;box-shadow:none;margin:0;padding:18px 0;background:transparent}
.tpl-faq summary{border:0;min-height:44px;padding:0 36px 0 0;cursor:pointer;font-size:15px;line-height:1.6;color:#ececf7}
.tpl-faq summary:focus-visible{outline:2px solid #9ebdff;outline-offset:4px}
.tpl-faq details p{padding:0 36px 4px 0;font-size:13px;line-height:1.8;color:#9e9eb6;max-width:850px;margin:12px 0 0}

@media(max-width:760px){.tpl-guide-card{padding:22px}.tpl-faq{margin-top:44px}}

.tpl-faq-list{min-width:0}
@media(max-width:760px){.tpl-faq{grid-template-columns:1fr;gap:14px}.tpl-faq h2{margin:0}}

/* Caption and performance figures share the reference video's dated snapshot. */
.tpl-caption{padding:18px;background:#17172b;border:1px solid #2d2e46;border-radius:10px;margin:0 0 24px}
.tpl-caption h3{font-size:12px;font-weight:400;color:#9fa3bd;margin:0 0 10px}
.tpl-caption p{font-size:14px;line-height:1.75;color:#e0e2ee;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.tpl-metrics{margin-top:20px}
.tpl-metric-period{font-size:10px;line-height:1.6;color:#9da1b9;margin:16px 0 8px}
.tpl-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #363850;border-radius:9px;overflow:hidden;margin:0;background:#131428}
.tpl-stat-grid>div{padding:12px 9px;min-width:0;border-right:1px solid #363850}
.tpl-stat-grid>div:nth-child(3n){border-right:0}
.tpl-stat-grid>div:nth-child(n+4){border-top:1px solid #363850}
.tpl-stat-grid dt{font-size:10px;line-height:1.5;color:#999fb8;margin-bottom:6px}
.tpl-stat-grid dd{font-size:19px;line-height:1.3;color:#f3f4fc;margin:0;overflow-wrap:anywhere}
.tpl-commerce>div:first-child dd{color:#91adff}
.tpl-detail-body{grid-template-columns:300px minmax(0,1fr)}
.tpl-dialog .tpl-video{position:relative;top:auto}
.tpl-video .tpl-reference{max-width:220px;margin-inline:auto}
.tpl-video-source{right:calc((100% - min(100%,220px))/2 + 12px)}
@media(max-width:760px){.tpl-detail-body{grid-template-columns:1fr}.tpl-video{width:100%}.tpl-metrics{max-width:360px;margin-inline:auto}.tpl-caption{padding:15px}.tpl-stat-grid dd{font-size:18px}}

/* Collection results reveal three complete rows at the current grid width. */
.tpl-grid>.tpl-card[hidden],.tpl-grid-toggle[hidden]{display:none}
.tpl-grid-toggle{display:flex;justify-content:center;margin-top:32px}
.tpl-grid-toggle button{padding:12px 24px;border:1px solid #454966;border-radius:8px;background:#191b32;color:#e2e7ff;font-size:13px;cursor:pointer}
.tpl-grid-toggle button:hover{background:#242842;border-color:#8293d6}
.tpl-grid-toggle button:focus-visible{outline:2px solid #a9baff;outline-offset:4px}
