/* Compact previews and the complete owner reel collection share one card. */
.doku-reel-card{margin:0;min-width:0}
.doku-reel-cover{position:relative;display:block;width:100%;padding:0;border:0;border-radius:5px;background:#222;color:#fff;overflow:hidden;cursor:pointer;text-decoration:none}
.doku-reel-cover img{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:contain}
.doku-reel-play{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(transparent 60%,#0008)}
.doku-reel-play svg{box-sizing:content-box;width:20px;height:20px;padding:13px;background:#1119;border:1px solid #ffffff80;border-radius:50%;fill:white;transition:background .2s}
.doku-reel-cover:hover .doku-reel-play svg{background:#c6411d}
.doku-reel-duration{position:absolute;bottom:10px;right:10px;background:#111b;padding:2px 5px;border-radius:3px;font:400 11px/1.4 var(--as-font-1,Inter,sans-serif);color:#fff}
.doku-reel-card figcaption{font:400 13px/1.5 var(--as-font-1,Inter,sans-serif);color:#bcbcbc;margin-top:10px;overflow-wrap:anywhere}
.doku-reels-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:560px;margin:0 auto}
.doku-reels-view-all{display:flex;align-items:center;justify-content:center;gap:22px;width:max-content;max-width:100%;margin:28px auto 0;padding:9px 0;border-bottom:1px solid #aaa;color:#fff;font:500 16px/1.5 var(--as-font-1,Inter,sans-serif)}
.doku-reels-view-all:hover{color:#f1805f}
.doku-reels-view-all svg{display:block;width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none}
.doku-reel-library{--as-font-1:Inter,Arial,sans-serif;margin:0;background:#161616;color:#fff;font:400 16px/1.5 var(--as-font-1)}
.doku-reel-library *{box-sizing:border-box}
.doku-reel-library a{color:inherit}
.doku-reel-library a:focus-visible,.doku-reel-library button:focus-visible{outline:2px solid #f1805f;outline-offset:5px}
.doku-library-header,.doku-reel-library main,.doku-library-footer{width:min(100% - 64px,1040px);margin:0 auto}
.doku-library-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 0;border-bottom:1px solid #383838}
.doku-library-header img{display:block;width:130px;height:auto}
.doku-library-header>a:last-child{font-size:14px;text-decoration:none}
.doku-library-heading{margin:65px 0 38px}
.doku-library-kicker{color:#f1805f;font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 20px}
.doku-library-heading h1{font-size:clamp(38px,5vw,62px);font-weight:500;line-height:1.1;letter-spacing:-.05em;margin:0 0 20px}
.doku-library-heading>p:last-child{color:#bcbcbc;max-width:450px;margin:0}
.doku-reel-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 24px;max-width:900px;margin:0 auto}
.doku-library-footer{margin-top:75px;padding:30px 0 40px;border-top:1px solid #383838;font-size:14px}
.doku-library-footer p{color:#bcbcbc;margin:0 0 8px}
.doku-reel-dialog{width:min(460px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 24px);padding:16px;margin:auto;border:1px solid #555;border-radius:8px;background:#111;color:#fff;overflow:auto}
.doku-reel-dialog::backdrop{background:#000d}
.doku-reel-dialog-bar,.doku-reel-dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px}
.doku-reel-dialog button{background:transparent;color:#fff;border:1px solid #666;border-radius:4px;padding:9px 12px;font:400 13px/1.4 var(--as-font-1);cursor:pointer}
.doku-reel-player{display:block;max-width:100%;height:min(620px,calc(100dvh - 205px));aspect-ratio:9/16;margin:14px auto 0;object-fit:contain;background:#000}
.doku-reel-dialog h2{font-size:15px;font-weight:400;line-height:1.5;margin:12px 0 16px;overflow-wrap:anywhere}
.doku-reel-error{color:#ffb39e;font-size:14px;line-height:1.5;margin:12px 0}
.doku-reel-error[hidden]{display:none}
.doku-reel-retry{margin-left:5px}
html:has(.doku-reel-dialog[open]){overflow:hidden}
@media(max-width:767px){
 .doku-reels-preview{gap:12px;max-width:440px}
 .doku-reels-preview .doku-reel-card figcaption{font-size:12px;line-height:1.45}
 .doku-reels-preview .doku-reel-play svg{width:15px;height:15px;padding:9px}
 .doku-reel-duration{bottom:7px;right:7px;font-size:10px}
 .doku-library-header,.doku-reel-library main,.doku-library-footer{width:calc(100% - 32px)}
 .doku-library-header{padding:22px 0;gap:16px}
 .doku-library-header img{width:110px}
 .doku-library-header>a:last-child{font-size:13px}
 .doku-library-heading{margin:45px 0 30px}
 .doku-reel-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}
}
@media(max-width:540px){.doku-reel-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}}
@media(max-width:360px){.doku-reel-dialog{width:calc(100vw - 20px);padding:12px}.doku-reel-dialog button{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.doku-reel-play svg{transition:none}}
