.shorts-mobile{display:none}.shorts-desktop-fallback{min-height:calc(100vh - 130px);padding:68px 20px}.shorts-desktop-fallback>section{max-width:660px;margin:auto;padding:34px;border:1px solid #30224b;border-radius:12px;background:linear-gradient(140deg,#121526,#0b0d14);text-align:center}.shorts-desktop-fallback span{color:#d66aff;font-size:12px;font-weight:700}.shorts-desktop-fallback h1{margin:8px 0;color:#fff;font-size:30px}.shorts-desktop-fallback p{color:#b6bdd0;line-height:1.65}.shorts-desktop-fallback a{display:inline-block;margin-top:14px;padding:10px 16px;border-radius:7px;background:linear-gradient(100deg,#8935ff,#5d21ef);font-weight:700;text-decoration:none}
@media(max-width:900px){
  body.shorts-page{height:100svh;min-height:100svh;overflow:hidden;background:#050509;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  .shorts-page .site-header{position:relative;z-index:30}
  .shorts-mobile{position:relative;display:grid;width:100%;height:calc(100svh - 68px - 66px - env(safe-area-inset-bottom));min-height:420px;place-items:stretch;background:#050509;overflow:hidden}
  .shorts-desktop-fallback{display:none}
  .shorts-stage{position:relative;display:grid;min-height:0;place-items:stretch;overflow:hidden;touch-action:pan-x}
  .shorts-player-shell{position:relative;width:100%;height:100%;max-width:540px;margin:0 auto;overflow:hidden;background:#000;isolation:isolate}
  .shorts-video{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain;object-position:center;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
  .shorts-video-shade{position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.5),transparent 20%,transparent 50%,rgba(0,0,0,.88) 100%);pointer-events:none}
  .shorts-topbar{position:absolute;z-index:3;top:0;right:0;left:0;display:flex;align-items:center;justify-content:space-between;padding:13px 14px;background:linear-gradient(180deg,rgba(0,0,0,.66),transparent)}
  .shorts-brand{display:inline-flex;align-items:center;gap:7px;color:#fff;font-size:15px;font-weight:800;letter-spacing:.01em;text-shadow:0 2px 10px #000}.shorts-brand i{display:grid;width:26px;height:26px;place-items:center;border:1px solid rgba(231,190,255,.72);border-radius:8px;background:linear-gradient(145deg,#b04cff,#5922d8);font-size:10px;font-style:normal;box-shadow:0 0 16px rgba(170,69,255,.38)}
  .shorts-sound{display:flex;align-items:center;gap:6px;min-height:44px;padding:7px 10px;border:1px solid rgba(255,255,255,.24);border-radius:22px;background:rgba(11,8,18,.64);color:#fff;backdrop-filter:blur(8px)}.shorts-sound b{font-size:10px}.shorts-sound span{font-size:15px}
  .shorts-center-control{position:absolute;z-index:4;top:50%;left:50%;display:grid;width:66px;height:66px;place-items:center;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(12,7,20,.72);color:#fff;font-size:27px;box-shadow:0 0 26px rgba(147,54,241,.38);transform:translate(-50%,-50%);transition:opacity .18s ease,transform .18s ease}.shorts-center-control[hidden]{display:none}.shorts-center-control:active{transform:translate(-50%,-50%) scale(.95)}
  .shorts-side-actions{position:absolute;z-index:5;right:9px;bottom:34px;display:grid;gap:7px;justify-items:center}.shorts-side-action{display:grid;width:52px;min-height:48px;padding:5px 3px;place-items:center;border:1px solid rgba(223,185,255,.34);border-radius:15px;background:rgba(14,9,22,.7);color:#fff;text-shadow:0 1px 5px #000;backdrop-filter:blur(9px);transition:border-color .16s ease,background .16s ease,transform .16s ease}.shorts-side-action svg{width:23px;height:23px;fill:currentColor}.shorts-side-action span{max-width:48px;font-size:9px;font-weight:800;line-height:1.05;overflow-wrap:anywhere}.shorts-side-action.is-active{border-color:#df9fff;background:linear-gradient(145deg,rgba(166,66,255,.92),rgba(78,27,176,.92));box-shadow:0 0 15px rgba(171,76,255,.4)}.shorts-side-action:active{transform:scale(.95)}.shorts-side-action:disabled{opacity:.6}.shorts-side-action--secondary{border-color:rgba(255,255,255,.2);color:#ddd3e5}.shorts-copy{position:absolute;z-index:3;right:14px;bottom:34px;left:14px;padding-right:68px;color:#fff;text-shadow:0 2px 8px #000}.shorts-title{display:inline-block;max-width:100%;color:#fff;font-size:17px;font-weight:800;line-height:1.25;text-decoration:none;overflow-wrap:anywhere}.shorts-description{display:-webkit-box;max-width:100%;margin:6px 0 0;color:#f0ebf4;font-size:12px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.shorts-description.is-expanded{display:block}.shorts-description-toggle{min-height:32px;margin-top:3px;padding:6px 0;background:transparent;color:#dfb9ff;font-size:11px;font-weight:700}.shorts-actions{display:flex;gap:8px;margin-top:10px}.shorts-detail{display:inline-flex;align-items:center;min-height:44px;padding:7px 11px;border:1px solid rgba(223,185,255,.38);border-radius:8px;background:rgba(23,14,34,.72);color:#f6eeff;font-size:11px;font-weight:700;text-decoration:none;backdrop-filter:blur(8px)}
  .shorts-progress-wrap{position:absolute;z-index:5;right:0;bottom:0;left:0;height:32px;padding:4px 10px}.shorts-progress{display:block;width:100%;height:24px;margin:0;accent-color:#bd62ff;cursor:pointer}
  .shorts-swipe-hint{position:absolute;z-index:3;right:10px;bottom:344px;display:grid;width:52px;justify-items:center;gap:3px;color:#e9d7f7;font-size:8px;line-height:1.15;text-align:center;text-shadow:0 1px 5px #000}.shorts-swipe-hint span{font-size:22px;animation:shorts-hint 1.8s ease-in-out infinite}
  .shorts-error{position:absolute;z-index:6;top:50%;left:50%;display:grid;width:min(280px,calc(100% - 40px));gap:7px;padding:20px;border:1px solid #6d3d86;border-radius:14px;background:rgba(16,10,22,.92);text-align:center;transform:translate(-50%,-50%)}.shorts-error[hidden]{display:none}.shorts-error span{color:#bbb2c4;font-size:12px}.shorts-error button{min-height:44px;margin-top:5px;border-radius:8px;background:linear-gradient(100deg,#8935ff,#5d21ef);color:#fff;font-weight:700}
  .shorts-empty{align-self:center;max-width:340px;margin:auto;padding:30px 24px;text-align:center}.shorts-empty>span{display:grid;width:66px;height:66px;margin:0 auto 16px;place-items:center;border:1px solid #734594;border-radius:20px;background:linear-gradient(145deg,#2e183d,#120d1a);color:#d88cff;font-size:25px;box-shadow:0 0 28px rgba(142,51,211,.22)}.shorts-empty h1{margin:0;color:#fff;font-size:23px}.shorts-empty p{margin:10px 0 0;color:#aaa2b4;line-height:1.55}.shorts-empty a{display:inline-block;margin-top:16px;color:#d8a0ff;font-weight:700}.shorts-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .shorts-panel-backdrop{position:absolute;z-index:10;inset:0;background:rgba(2,2,6,.58);backdrop-filter:blur(2px)}.shorts-panel-backdrop[hidden],.shorts-panel[hidden]{display:none}.shorts-panel{position:absolute;z-index:11;right:0;bottom:0;left:0;display:flex;max-height:82%;flex-direction:column;border:1px solid #4b3265;border-bottom:0;border-radius:20px 20px 0 0;background:linear-gradient(180deg,#17101f,#090a10 34%);color:#fff;box-shadow:0 -14px 42px rgba(0,0,0,.55)}.shorts-panel__header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #352343}.shorts-panel__header h2{margin:0;font-size:17px}.shorts-panel__header p{max-width:290px;margin:3px 0 0;color:#c9bdd1;font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shorts-panel__header button{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border:1px solid #5a3a70;border-radius:50%;background:#22152e;color:#fff;font-size:25px;line-height:1}.shorts-panel__body{min-height:0;padding:0 14px 18px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.shorts-panel__status{padding:0 15px;color:#e4c7f7;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.shorts-panel__status:not(:empty){padding-top:10px}.shorts-panel .comments{margin-top:0;padding-top:14px;border-top:0}.shorts-panel .comments h2{font-size:18px}.shorts-panel .comments__form{padding:12px}.shorts-panel .comment__replies{margin-left:7px}.shorts-mobile.is-panel-open .shorts-stage{touch-action:none}.shorts-report-form{display:grid;gap:13px;padding:16px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.shorts-report-form label{display:grid;gap:6px;color:#e6deec;font-size:13px}.shorts-report-form select,.shorts-report-form textarea,.shorts-report-form input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #49365d;border-radius:8px;background:#090a10;color:#fff;font:inherit}.shorts-report-form textarea{min-height:112px;resize:vertical}.shorts-report-form p{margin:0;color:#aaa2b4;font-size:11px;line-height:1.45}.shorts-report-form>button{min-height:44px;border:1px solid #9f5cce;border-radius:9px;background:linear-gradient(100deg,#8935ff,#5d21ef);color:#fff;font-weight:800}
  .shorts-stage.is-leaving-up .shorts-player-shell{animation:shorts-leave-up .16s ease-in both}.shorts-stage.is-leaving-down .shorts-player-shell{animation:shorts-leave-down .16s ease-in both}.shorts-stage.is-entering-up .shorts-player-shell{animation:shorts-enter-up .2s ease-out both}.shorts-stage.is-entering-down .shorts-player-shell{animation:shorts-enter-down .2s ease-out both}
  .shorts-page .mobile-bottom{z-index:40}
  .shorts-page button:focus-visible,.shorts-page a:focus-visible,.shorts-progress:focus-visible{outline:2px solid #e2b4ff;outline-offset:2px}
}

.shorts-ad-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050506;
}

.shorts-ad-click {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
    touch-action: pan-y;
}

.shorts-ad-click:focus-visible {
    outline: 2px solid #d66aff;
    outline-offset: -4px;
}

.shorts-ad-label {
    position: absolute;
    z-index: 6;
    left: 14px;
    top: 68px;
    padding: 5px 9px;
    border: 1px solid #ffffff55;
    border-radius: 5px;
    background: #050506c9;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.shorts-player-shell > [hidden], .shorts-sound[hidden] {
    display: none !important;
}
@keyframes shorts-hint{0%,100%{transform:translateY(2px);opacity:.55}50%{transform:translateY(-3px);opacity:1}}@keyframes shorts-leave-up{to{transform:translateY(-10%);opacity:0}}@keyframes shorts-leave-down{to{transform:translateY(10%);opacity:0}}@keyframes shorts-enter-up{from{transform:translateY(10%);opacity:0}}@keyframes shorts-enter-down{from{transform:translateY(-10%);opacity:0}}
@media(max-width:900px) and (max-height:600px) and (orientation:landscape){.shorts-mobile{min-height:0}.shorts-side-actions{grid-template-columns:repeat(2,52px)}.shorts-copy{padding-right:120px}.shorts-swipe-hint{display:none}}
@media(max-width:430px){.shorts-side-actions{right:7px;gap:6px}.shorts-side-action{width:50px;min-height:46px}.shorts-copy{padding-right:62px}.shorts-panel{max-height:84%}}
@media(max-width:380px){.shorts-copy{bottom:30px}.shorts-title{font-size:15px}.shorts-description{font-size:11px}.shorts-swipe-hint{right:6px;bottom:330px;width:46px}.shorts-side-action{width:47px;min-height:44px}.shorts-side-action svg{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.shorts-stage .shorts-player-shell,.shorts-swipe-hint span{animation:none!important}}

/* Only the optional assigned Short popup; feed ads and normal video players keep their own layout. */
@media(max-width:900px){
  .shorts-player-shell>.shorts-popup{position:absolute;z-index:6;left:14px;overflow:visible;border:0;border-radius:6px;background:transparent;box-shadow:0 4px 12px #0005}
  .shorts-popup>a{display:block;line-height:0}
  .shorts-popup img{display:block;width:100%;height:auto;object-fit:contain;border-radius:6px}
  .shorts-popup__close{position:absolute;z-index:1;top:-12px;right:-12px;display:grid;width:44px;height:44px;padding:0;place-items:center;border:1px solid #ffffff70;border-radius:50%;background:#0d091be6;color:#fff;font-size:20px;line-height:1;cursor:pointer;box-shadow:0 1px 5px #0006}
  .shorts-popup__close:hover{background:#30213bf2;border-color:#edd9ff}
}
