.midnight-video-player{position:relative;display:flow-root;width:100%;min-width:0;--video-controls-bg:linear-gradient(0deg,#05060beb,#05060b00)}.midnight-video-player>video{display:block}.midnight-video-controls{position:absolute;z-index:3;left:var(--midnight-video-left,0px);right:var(--midnight-video-right,0px);bottom:var(--midnight-video-bottom,0px);display:grid;gap:4px;padding:22px 9px 7px;background:var(--video-controls-bg);opacity:0;transition:opacity .18s ease}.midnight-video-player:hover .midnight-video-controls,.midnight-video-player:focus-within .midnight-video-controls,.midnight-video-player.is-playing .midnight-video-controls{opacity:1}.midnight-video-player:focus-within .midnight-video-controls{opacity:1}.midnight-video-control-row{display:flex;align-items:center;gap:5px;min-width:0}.midnight-video-control-row button{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer}.midnight-video-control-row button:hover{background:#fff2}.midnight-video-control-row button .material-symbols-rounded{font-size:21px}.midnight-video-time{flex:none;color:#fff;font:11px/1 var(--mono,monospace);white-space:nowrap;text-shadow:0 1px 3px #000}.midnight-video-spacer{flex:1}.midnight-video-seek{display:block;width:100%;height:12px;margin:0;accent-color:#fff;cursor:pointer}.midnight-video-volume{width:66px;height:12px;accent-color:#fff}.midnight-video-speed{width:54px;height:28px;padding:0 3px;border:1px solid #ffffff45;border-radius:5px;background:#15171dcc;color:#fff;font:11px var(--sans,sans-serif)}.midnight-video-speed option{background:#15171d;color:#fff}.midnight-video-control-row button[hidden]{display:none}.midnight-video-player:fullscreen{display:grid;place-items:center;width:100vw;height:100vh;background:#000}.midnight-video-player:fullscreen>video{width:100%;height:100%;max-height:100vh!important;object-fit:contain!important;margin:0!important}.midnight-video-player:fullscreen .midnight-video-controls{left:0;right:0;bottom:0}.midnight-video-player:fullscreen .midnight-video-control-row button{width:38px;height:38px}.profile-post-card>.midnight-video-player,.profile-media-grid>.midnight-video-player{max-height:310px;aspect-ratio:4/3}.profile-post-card>.midnight-video-player>video,.profile-media-grid>.midnight-video-player>video{width:100%;height:100%;max-height:310px;aspect-ratio:4/3;object-fit:cover;background:#090b10}.profile-media-grid>.midnight-video-player{height:150px;max-height:none}.profile-media-grid>.midnight-video-player>video{height:150px;max-height:none}@media(max-width:600px){.midnight-video-controls{opacity:1;padding:20px 5px 5px}.midnight-video-control-row{gap:2px}.midnight-video-control-row button{width:28px;height:28px}.midnight-video-control-row button .material-symbols-rounded{font-size:19px}.midnight-video-time{font-size:10px}.midnight-video-volume{display:none}.midnight-video-speed{width:48px;font-size:10px}.midnight-video-skip{display:none!important}.profile-post-card>.midnight-video-player{max-height:360px}.profile-post-card>.midnight-video-player>video{max-height:360px}}
.image-preview .midnight-video-player:only-child{grid-column:1/-1;max-height:190px;overflow:hidden}.image-preview .midnight-video-player:only-child>video{display:block;width:100%;height:auto;max-height:180px;object-fit:contain}.image-preview .midnight-video-controls{opacity:1;padding:22px 7px 5px}
