/* B2 video article core. Loaded only on post-style-5 pages. */
.post-style-5-top{background:#0c0f14}
.post-style-5-top>.wrapper{gap:0}
.post-style-5-video-box-in{background:#050608;padding-top:56.25%}
#post-style-5-player,.b2-video-core-shell{background:#050608;color:#fff;overflow:hidden}
.b2-video-initial-poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#050608}
#post-style-5-player .dplayer{width:100%;height:100%;font-family:inherit;background:#050608}
#post-style-5-player .dplayer-video-wrap,#post-style-5-player .dplayer-video-current{background:#050608!important;object-fit:contain!important}
#post-style-5-player .dplayer-controller{height:54px;background:linear-gradient(transparent,rgba(0,0,0,.9));padding-top:13px}
#post-style-5-player .dplayer-controller .dplayer-icons{height:41px}
#post-style-5-player .dplayer-controller .dplayer-icon{border:0;background:transparent;color:#fff;min-width:36px;height:38px;padding:0 8px;cursor:pointer;line-height:38px}
#post-style-5-player .dplayer-controller .dplayer-icon:focus-visible,.b2-quality-panel button:focus-visible,.b2-video-state button:focus-visible,.b2-resume-prompt button:focus-visible{outline:2px solid #40a9ff;outline-offset:2px}
#post-style-5-player .dplayer-bar-wrap .dplayer-bar .dplayer-played{background:#ff3657}
#post-style-5-player .dplayer-bar-wrap .dplayer-bar .dplayer-played .dplayer-thumb{background:#fff}
#post-style-5-player .dplayer-menu,#post-style-5-player .dplayer-setting-box{background:rgba(16,19,25,.96);border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 35px rgba(0,0,0,.35);border-radius:8px}

.b2-video-preflight,.b2-video-state{position:absolute;inset:0;z-index:8;display:none;align-items:center;justify-content:center;flex-direction:column;gap:13px;padding:24px;text-align:center;color:#eef2f7;background:rgba(5,6,8,.84);box-sizing:border-box;pointer-events:none}
.b2-video-preflight{display:flex}
.b2-video-state.is-visible{display:flex}
.b2-video-state.b2-state-notice,.b2-video-state.b2-state-downshift{inset:auto auto 70px 50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);min-height:0;padding:9px 14px;border-radius:999px;background:rgba(10,12,16,.84);font-size:13px;pointer-events:none}
.b2-video-state.b2-state-notice .b2-video-spinner,.b2-video-state.b2-state-downshift .b2-video-spinner{display:none}
.b2-video-spinner{width:30px;height:30px;border:3px solid rgba(255,255,255,.22);border-top-color:#fff;border-radius:50%;animation:b2-video-spin .8s linear infinite}
.b2-state-error .b2-video-spinner{display:none}
.b2-video-state-text,.b2-video-preflight-text{font-size:14px;line-height:1.6}
.b2-video-state-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;pointer-events:auto}
.b2-video-preflight button{pointer-events:auto}
.b2-video-state button,.b2-video-native-retry,.b2-resume-prompt button{appearance:none;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);color:#fff;border-radius:6px;padding:8px 13px;cursor:pointer;font:inherit}
.b2-video-state button:first-child,.b2-video-native-retry,.b2-resume-prompt button[data-resume=yes]{border-color:#ff3657;background:#ff3657}
@keyframes b2-video-spin{to{transform:rotate(360deg)}}

.b2-video-rewind,.b2-video-forward{font-size:20px!important;font-weight:700;position:relative}
.b2-video-rewind small,.b2-video-forward small{font-size:9px;position:absolute;left:50%;top:1px;transform:translateX(-50%);line-height:1}
.b2-video-pip,.b2-video-theatre{font-size:20px!important}
.b2-quality-control,.b2-subtitle-control{position:relative;display:inline-flex;height:38px;vertical-align:top}
#post-style-5-player .b2-quality-toggle{width:auto;min-width:58px;font-size:12px;white-space:nowrap}
#post-style-5-player .b2-quality-panel,#post-style-5-player .b2-subtitle-panel{position:absolute;right:0;bottom:48px;z-index:20;display:none;box-sizing:border-box;width:120px;min-width:120px;padding:6px;background:rgba(16,19,25,.97);border:1px solid rgba(255,255,255,.14);border-radius:8px;box-shadow:0 12px 34px rgba(0,0,0,.45)}
#post-style-5-player .b2-subtitle-panel{width:148px;min-width:148px}
#post-style-5-player .b2-quality-control.is-open .b2-quality-panel,#post-style-5-player .b2-subtitle-control.is-open .b2-subtitle-panel{display:block}
#post-style-5-player .b2-quality-panel button,#post-style-5-player .b2-subtitle-panel button{display:block;box-sizing:border-box;width:100%;min-width:0;border:0;border-radius:5px;background:transparent;color:#fff;padding:8px 13px;text-align:left;cursor:pointer;white-space:nowrap}

.b2-quality-panel button:hover,.b2-quality-panel button.is-active,.b2-subtitle-panel button:hover,.b2-subtitle-panel button.is-active{background:rgba(255,255,255,.12);color:#ff6a82}
#post-style-5-player .b2-subtitle-toggle{width:auto;min-width:42px;font-size:12px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.b2-resume-prompt{position:absolute;left:18px;bottom:72px;z-index:11;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(12,15,20,.94);box-shadow:0 12px 30px rgba(0,0,0,.4);font-size:13px}
.b2-resume-prompt span{margin-right:4px}
.b2-resume-prompt button{padding:6px 10px}

.b2-seek-preview{position:absolute;z-index:12;bottom:62px;display:none;transform:translateX(-50%);padding:4px;border-radius:6px;background:rgba(8,10,14,.96);box-shadow:0 8px 25px rgba(0,0,0,.5);pointer-events:none}
.b2-seek-preview.is-visible{display:block}
.b2-seek-preview span{display:block;padding:4px 3px 2px;text-align:center;font-size:12px;color:#fff}
.b2-seek-image{background-repeat:no-repeat;background-color:#161a22;border-radius:3px}

.post-video-list{margin-left:0!important;background:#11151d;border:1px solid rgba(255,255,255,.06);border-radius:10px;box-sizing:border-box}
.post-video-list-title{padding:18px 16px 10px}
.post-video-list ul{padding:8px 10px 12px}
.post-video-list li>div{margin:0 0 6px;padding:9px 10px 9px 34px;border-radius:7px}
.post-video-list li:hover .post-video-list-link,.post-video-list li.picked .post-video-list-link{background:#242b36}
.post-video-list li.picked .post-video-list-link{box-shadow:inset 3px 0 #ff3657}

body.b2-video-theatre-open .post-style-5-top>.wrapper{max-width:none;width:100%;padding-left:20px;padding-right:20px;box-sizing:border-box}
body.b2-video-theatre-open .post-style-5-top{position:relative;z-index:30}

@media (min-width:769px){
    .post-style-5-top>.wrapper:not(.has-video-playlist) .post-style-5-video-box-in{overflow:hidden;border-radius:10px}
    .post-style-5-top>.wrapper.has-video-playlist .post-style-5-video-box-in{overflow:hidden;border-radius:10px 0 0 10px}
    .post-style-5-top>.wrapper.has-video-playlist .post-video-list{border-left-color:rgba(255,255,255,.1);border-radius:0 10px 10px 0}
}

@media (max-width:768px){
    .post-style-5-top>.wrapper{display:flex;flex-direction:column;gap:0}
    .post-style-5-video-box{width:calc(100% + 12px);margin:-6px -6px 0}
    .post-video-list{width:100%!important;height:auto!important;margin:0!important;border:0;border-radius:0;background:#fff}
    .post-video-list ul{display:flex;overflow-x:auto;gap:8px;padding:10px;background:#fff;color:#20242b;scroll-snap-type:x proximity}
    .post-video-list ul li{width:148px;min-width:148px;max-width:148px;padding:0;scroll-snap-align:start}
    .post-video-list ul li .post-video-list-link{height:54px;margin:0;padding:9px 9px 9px 28px!important;border:1px solid #e7eaf0!important;border-radius:8px;background:#fff!important;color:#20242b!important}
    .post-video-list li.picked .post-video-list-link{border-color:#ff6a82!important;box-shadow:inset 3px 0 #ff3657}
    .video-list-play-icon{left:8px;top:18px}
    #post-style-5-player .dplayer-controller .dplayer-icon{min-width:32px;padding:0 5px}
    #post-style-5-player .b2-video-rewind,#post-style-5-player .b2-video-forward{display:none}
    #post-style-5-player .b2-video-theatre{display:none}
    #post-style-5-player .b2-quality-toggle{min-width:48px;max-width:88px;overflow:hidden;text-overflow:ellipsis}
    .b2-resume-prompt{left:10px;right:10px;bottom:62px;justify-content:center}
    .b2-video-state.b2-state-notice,.b2-video-state.b2-state-downshift{bottom:58px}
    .b2-seek-preview{display:none!important}
}

@media (max-width:480px){
    #post-style-5-player .dplayer-time{font-size:11px;padding-left:2px;padding-right:2px}
    #post-style-5-player .dplayer-volume{display:none}
    #post-style-5-player .b2-video-pip{display:none}
    #post-style-5-player .b2-subtitle-toggle{min-width:36px;max-width:52px}
    .b2-video-state{padding:16px}
    .b2-video-state-actions{gap:6px}
}

@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
    .post-style-5-video-box-in{padding-top:0;height:calc(100vh - 12px);min-height:260px}
    .post-video-list{display:none}
}

@media (prefers-reduced-motion:reduce){.b2-video-spinner{animation-duration:1.6s}}


