/* An isolated Shorts surface, shared by desktop and mobile. */
body.reels-mode .reels-stage-wrap { background:#0f0f0f!important; display:block!important; inset:0!important; height:100dvh!important; padding:0!important; }
body.reels-mode .reels-header-hud { position:absolute!important; top:12px!important; left:20px!important; right:20px!important; width:auto!important; z-index:10; pointer-events:none; }
.reels-header-hud button { pointer-events:auto; }
body.reels-mode .reels-viewport-container { display:block!important; position:absolute!important; inset:0!important; width:100%!important; max-width:none!important; height:100dvh!important; padding:0!important; margin:0!important; background:#0f0f0f; box-shadow:none; border:0; overflow-y:auto!important; scroll-snap-type:y mandatory; overscroll-behavior:contain; scrollbar-width:none; }
.short-card { position:relative; display:flex; justify-content:center; align-items:center; width:100%; height:100%; min-height:100%; scroll-snap-align:start; scroll-snap-stop:always; color:#fff; gap:16px; padding:60px 90px 18px; box-sizing:border-box; }
.short-player { position:relative; height:100%; max-height:850px; aspect-ratio:9/16; max-width:calc(100vw - 230px); background:#000; border-radius:14px; overflow:hidden; }
.short-player video { width:100%; height:100%; object-fit:contain; display:block; cursor:pointer; }
.short-top { position:absolute; top:10px; left:10px; right:10px; display:flex; gap:8px; }
.short-top button { background:#2228; color:#fff; border:0; border-radius:50%; width:40px; height:40px; cursor:pointer; }
.short-top button:last-child { margin-left:auto; }
.short-top span { display:none; }
.short-playing [data-action="play"] i:before { content:'\f04c'; }
.short-caption { position:absolute; bottom:16px; left:16px; right:16px; background:linear-gradient(transparent,#000a); padding-top:30px; pointer-events:none; }
.short-caption h2 { font:600 16px/1.4 Arial,sans-serif; margin:8px 0; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.short-source { font:600 13px Arial,sans-serif; }
.short-caption a { display:inline-block; padding:7px 10px; border-radius:6px; background:#ffffff28; font:600 13px Arial,sans-serif; color:#fff; text-decoration:none; pointer-events:auto; }
.short-status { position:absolute; top:43%; left:10%; right:10%; text-align:center; padding:12px; border-radius:8px; background:#000a; font-size:14px; pointer-events:none; }
.short-status[hidden] { display:none; }
.short-buffering { z-index:2; }
.short-buffering span { width:34px; height:34px; border-width:3px; }
.short-retry { position:absolute; top:58%; left:50%; transform:translateX(-50%); border:0; border-radius:20px; padding:10px 20px; color:#111; background:#fff; cursor:pointer; z-index:3; }
.short-retry[hidden] { display:none; }
.short-seek { position:absolute; bottom:0; left:0; width:100%; margin:0; height:4px; accent-color:#f03; cursor:pointer; }
.short-seek:hover,.short-seek:focus { height:12px; }
.short-actions { display:flex; flex-direction:column; gap:14px; align-self:flex-end; margin-bottom:20px; width:60px; }
.short-actions button { display:flex; flex-direction:column; align-items:center; gap:6px; border:0; background:transparent; color:#fff; cursor:pointer; padding:0; font-size:12px; }
.short-actions i { display:grid; place-items:center; width:48px; height:48px; background:#272727; border-radius:50%; font-size:20px; }
.short-actions button:hover i { background:#414141; }
.short-actions [aria-pressed="true"] i { background:#fff; color:#111; }
.short-feed-status { min-height:45vh; padding:100px 20px; box-sizing:border-box; text-align:center; color:#ddd; scroll-snap-align:start; }
.short-feed-status button,#shortsDialog button { border:0; padding:11px 18px; border-radius:20px; background:#333; color:white; margin:6px; cursor:pointer; }
#shortsDialog { color:#eee; background:#212121; border:1px solid #444; border-radius:16px; width:min(420px,90vw); max-height:80dvh; padding:18px; }
#shortsDialog::backdrop { background:#0008; }
#shortsDialog header { display:flex; align-items:center; justify-content:space-between; }
#shortsDialog h2 { font-size:20px; margin:0; }
.short-dialog-body { overflow:auto; max-height:62dvh; }
.short-dialog-body>p { font-size:13px; color:#aaa; }
.short-dialog-body label { display:block; margin:14px 0 8px; }
.short-dialog-body textarea { width:100%; min-height:70px; box-sizing:border-box; background:#111; color:#fff; border:1px solid #666; border-radius:6px; padding:10px; }
.short-dialog-body select { display:block; margin-top:10px; padding:10px; background:#111; color:#fff; border:1px solid #666; width:100%; }
.short-comments article { border-bottom:1px solid #444; padding:12px 0; overflow-wrap:anywhere; }
.short-comments article p { white-space:pre-wrap; }
.short-card button:focus-visible,.short-caption a:focus-visible { outline:2px solid white; outline-offset:3px; }
#shortsUpdated { font-size:12px; color:#aaa; }
#shortsCategory { pointer-events:auto; max-width:30vw; padding:8px; border:1px solid #444; border-radius:8px; color:#eee; background:#222; }
@media(max-width:700px) {
 body.reels-mode .reels-stage-wrap,body.reels-mode .reels-viewport-container { height:calc(100dvh - var(--video-bottom,56px))!important; bottom:var(--video-bottom,56px)!important; }
 body.reels-mode .reels-header-hud { top:8px!important; left:8px!important; right:8px!important; }
 .reels-header-hud .reels-title,#shortsUpdated { display:none!important; }
 #shortsCategory { max-width:42vw; font-size:12px; }
 .short-card { display:block; padding:0; }
 .short-player { height:100%; width:100%; max-width:100%; aspect-ratio:auto; border-radius:0; }
 .short-top { top:62px; }
 .short-actions { position:absolute; right:8px; bottom:34px; width:50px; gap:14px; margin:0; }
 .short-actions i { width:42px; height:42px; background:#2229; }
 .short-caption { right:70px; bottom:22px; }
 body.reels-mode .reels-desktop-nav { display:none!important; }
 #shortsDialog { width:100%; max-width:100%; margin:auto 0 0; border-radius:16px 16px 0 0; box-sizing:border-box; }
}
