/* watch page (v6): reels with date + maker underneath, 10 s in-place preview, then a prompt */
.wreels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(14px, 1.6vw, 22px) clamp(10px, 1.4vw, 18px); }
.wr { margin: 0; min-width: 0; }
.wr__box { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--soot); }
.wr__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.wr__btn video, .wr__box > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.85); transition: transform 0.6s, filter 0.9s, opacity 0.9s; }
.wr:hover .wr__btn video, .wr__box:hover > img, .wr.is-on .wr__btn video { transform: scale(1.03); filter: brightness(1); }
/* a small triangle, only until the reel is playing */
.wr__pl { position: absolute; left: 12px; bottom: 12px; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--bone); opacity: 0.75; transition: opacity 0.3s; }
.wr.is-on .wr__pl, .wr.is-end .wr__pl { opacity: 0; }
/* the ten seconds run out along the bottom edge */
.wr__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--flower); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity 0.3s; }
.wr.is-on .wr__bar { opacity: 0.9; }
/* after ten seconds the picture melts away into the prompt */
.wr__end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.9s ease; background: radial-gradient(ellipse at center, rgba(11, 10, 9, 0.55), rgba(11, 10, 9, 0.88)); font-family: var(--f-display); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.wr.is-end .wr__end { opacity: 1; pointer-events: auto; }
.wr.is-end .wr__btn video { filter: blur(6px) brightness(0.45) saturate(1.4); transform: scale(1.06); }
.wr__end span { color: var(--stone); font-size: 15px; }
.wr__end a { color: var(--bone); font-size: clamp(20px, 2vw, 24px); line-height: 1.1; padding: 6px 4px; }
.wr__end a:hover, .wr__end a:focus-visible { color: var(--flower); }
.wr__again { margin-top: 4px; padding: 8px 10px; border: 0; background: none; color: var(--stone); font: inherit; font-size: 13px; letter-spacing: 0.1em; cursor: pointer; }
.wr__again:hover, .wr__again:focus-visible { color: var(--bone); }
.wr__go { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-family: var(--f-display); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
/* under the reel: date and who made it, nothing else */
.wr__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding-top: 8px; font-family: var(--f-display); font-weight: 400; font-size: 15px; letter-spacing: 0.06em; color: var(--stone); }
.wr__by { display: flex; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.wr__by a { color: var(--stone); text-transform: lowercase; overflow-wrap: anywhere; padding: 4px 0; }
.wr__by a:hover, .wr__by a:focus-visible { color: var(--bone); }
@media (max-width: 520px) { .wreels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wr__meta { font-size: 14px; } .wr__end a { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .wr__btn video, .wr__end { transition: none; } }
