/* Phase 2, stage 3: the Formats tabs and the video wall (ops/build-reels.mjs). */
.rs{box-sizing:border-box;padding:72px 5% 80px;display:flex;flex-direction:column;gap:22px}
.rs-wall{background:#0a0a0b;border-top:1px solid #1b1b1e;border-bottom:1px solid #1b1b1e}
.rs-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px}
.rs-head h2{margin:0;font-size:36px;font-weight:800;color:#fff}
.rs-head p{margin:0;font-size:15px;color:#7c7c78}
.rs-tabs{display:flex;gap:6px;flex-wrap:wrap}
.rs-tabs button{font:inherit;font-size:14px;font-weight:600;color:#b8b8b4;background:#101012;border:1px solid #26262a;border-radius:999px;padding:9px 16px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.rs-tabs button:hover{color:#fff;border-color:#3a3a40}
.rs-tabs button[aria-selected="true"]{color:#fff;background:rgba(255,77,23,.12);border-color:#ff4d17}
.rs-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.rs-wall-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.rl{margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.rl[hidden]{display:none}
.rl-v{position:relative;display:block;width:100%;aspect-ratio:9/16;padding:0;border:1px solid #26262a;border-radius:16px;overflow:hidden;background:#101012;cursor:pointer}
.rl-v video{width:100%;height:100%;object-fit:cover;display:block}
.rl-v:focus-visible{outline:2px solid #ff4d17;outline-offset:2px}
.rl-sound{position:absolute;right:10px;bottom:10px;width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.rl-sound::before{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;background:#fff;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9v6h4l5 4V5L8 9H4zm12.5 3l2.5-2.5-1-1L15.5 11 13 8.5l-1 1 2.5 2.5-2.5 2.5 1 1 2.5-2.5 2.5 2.5 1-1z'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9v6h4l5 4V5L8 9H4zm12.5 3l2.5-2.5-1-1L15.5 11 13 8.5l-1 1 2.5 2.5-2.5 2.5 1 1 2.5-2.5 2.5 2.5 1-1z'/></svg>") center/contain no-repeat}
.rl.loud .rl-sound{background:#ff4d17}
.rl.loud .rl-sound::before{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9v6h4l5 4V5L8 9H4zm11.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4z'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9v6h4l5 4V5L8 9H4zm11.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4z'/></svg>")}
.rl figcaption{font-size:13.5px;font-weight:600;color:#d8d8d4}
@media (max-width:980px){.rs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-head h2{font-size:28px}}
@media (max-width:420px){.rs-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.rs-tabs button{flex:none}}
