/**
 * WpStream front-end stylesheet.
 *
 * Covers the public-facing markup emitted by the WpStream plugin:
 *  - compact single-product "front" listing rows and the media/product grid;
 *  - the video.js player chrome (big play button, channel logo, live counter);
 *  - live/VOD "not live" overlays and the pre-load spinner;
 *  - the VOD "Play Video" title-overlay button and action wrappers;
 *  - the front-end "go live" event units and the external-software broadcast modal;
 *  - responsive breakpoints and the external VOD iframe wrapper.
 *
 * Brand components use the shared Manrope, violet and neutral design tokens.
 */

/* === Product "front" row — compact single-product listing (image + name + See link) === */
.wpstream_product_front{width:100%;padding:16px;float:left;border:1px solid var(--wpstream-brand-border);border-radius:20px;margin-bottom:12px;box-sizing:border-box;}
.wpstream_product_wrapper{float:left;}
.wpstream_product_image_wrapper{float:left;width:100px;text-decoration:none;}
.wpstream_product_front img{float:left;height:75px!important;width:auto;}
.wpstream_product_front:nth-child(even){background-color:var(--wpstream-brand-surface);}
.wpstream_product_name_front{float:left;font-weight:bold;margin:0px 0px 0px 30px;width:100%;text-decoration:none;}
.wpstream_product_see:visited, .wpstream_product_see, .wpstream-subscription-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;box-sizing:border-box;padding:12px 24px;border-radius:980px;background:var(--wpstream-brand-accent);color:#fff;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;}
.wpstream_product_see{float:left;margin:10px 0 0 30px;}
.wpstream_product_see:hover{background-color:var(--wpstream-brand-accent-hover);color:#fff;}
/* === Player wrapper, "not live" overlay message and live-channel status badge === */
.wpstream_player_wrapper, .wpstream_product_front, .wpstream_media_list_wrapper, .event_unit_style_front{font-family:var(--wpstream-brand-font);line-height:1.55;}
.wpstream_not_live_mess{display:none;position:absolute;top:31%;left:0;right:0;z-index:9;width:50%;margin:0 auto;text-align:center;color:#fff;font-family:var(--wpstream-brand-font);}
.wpstream_live_channel_status{position:relative !important;margin:0 !important;bottom:0 !important;padding:0 !important;}
.wpstream_live_channel_status .wpstream_live_channel_status_message{font-weight:400;font-size:16px;background:#E8442A;padding:10px 15px 10px 35px;width:auto;float:left;border-radius:8px;}
.wpstream_not_live_mess_back{background-color:#000;position:absolute;width:100%;height:100%;opacity:0.5;border-radius:12px;padding:10px;}
/* === Video container + pre-load spinner (centered spinner, keyframes) === */
.wpstream-video-container{position:relative;}
.wpstream-pre-load-spinner{position:absolute;top:50%;left:50%;width:40px;height:40px;margin:-25px 0 0 -25px;opacity:0.85;border-radius:40px;border:6px solid rgba(43, 51, 63, 0.7);border-top-color:white;animation:wpstream-spinner-spin 1.1s linear infinite;z-index:1;}
@keyframes wpstream-spinner-spin {
    0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* === "Not live" message text (default + .wpstream_header_video header variant) === */
.wpstream_not_live_mess_mess{color:#fff;font-size:17px;z-index:10;position:relative;padding:10px;}
/* .wpestate_header_video is the pre-rename spelling. Nothing in the plugin emits
   either class - site owners add it by hand to a header section - so the legacy
   selector stays as an alias to avoid breaking existing installs. */
.wpstream_header_video  .wpstream_not_live_mess_mess, .wpestate_header_video  .wpstream_not_live_mess_mess{position:absolute;background-color:#0000008a;color:#fff;left:0;right:0;top:48%;margin:0 auto;text-align:center;padding:20px 50px;font-size:24px;z-index:999;width:100%;line-height:100px;}

/* === Player container layout (max width, centering, inserted-player flex) === */
.wpstream_player_container{max-width:1200px;margin:0px auto;margin-bottom:30px;}
.wpestream_inserted_player .wpstream_player_container{height:auto;}
.wpestream_inserted_player{display:flex;}
#wpstream-video{width:100%;}
/* === Access notices and subscription actions === */
.wpstream_notice, .wpstream_vod_notice{background-color:var(--wpstream-brand-accent);color:#fff;padding:12px 24px;margin-bottom:30px;display:inline-block;border-radius:12px;width:100%;font-size:16px;}
/* === "No buy" player states — collapsed placeholder shown when access is gated === */
#wpstream_product_wrap_no_buy{margin-top:0px;}
.wpstream_player_wrapper.no_buy{position:relative;height:auto;background:transparent;margin-bottom:15px;}
.wpstream_player_wrapper.no_buy .wpstream_player_container{height:auto;}
.wpstream_player_wrapper.wpstream_player_shortcode{width:100%;position:relative;margin-bottom:15px;float:left;}
.wpstream_player_wrapper.wpstream_player_shortcode.no_buy{height:auto;float:left;}
.wpstream_player_wrapper.wpstream_player_shortcode.no_buy .wpstream_player_container{height:auto;}
.wpstream_player_wrapper.wpstream_player_shortcode.no_buy  .wpstream_notice{background:var(--wpstream-brand-accent);position:relative;width:100%;text-align:center;font-size:17px;box-sizing:border-box;}
/* === video.js big "play" button — centered circular overlay button === */
.wpstream_live_player_wrapper .video-js .vjs-big-play-button , .wpstream_player_container .video-js .vjs-big-play-button{line-height:90px!important;position:absolute!important;top:50%!important;left:50%!important;margin-left:-45px;margin-top:-45px;border:2px solid transparent!important;font-size:57px!important;border-radius:50%!important;background-color:var(--wpstream-brand-accent)!important;}
.wpstream_player_container .video-js .vjs-big-play-button .vjs-icon-placeholder:before{left:2px;}
.wpstream_player_container .video-js .vjs-big-play-button .vjs-control-text{width:max-content !important;}
.wpstream_player_container .video-js .vjs-big-play-button{width:1.63332em;}
.video-js .vjs-big-play-button .vjs-icon-placeholder{opacity:0.8;transition:0.3s ease-out;}
.video-js .vjs-big-play-button:focus .vjs-icon-placeholder, .video-js:hover .vjs-icon-placeholder{opacity:1;}
/* === VOD "Play Video" title-overlay button (gradient circle + label, theme-var driven) === */
/* Title overlay: match theme "Play Video" row (gradient circle + label) used with .video-js .vjs-big-play-button / .wpstream_video_on_demand_play_video_wrapper. */

.wpstream_title_wrapper_simple button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper, .wpstream_title_wrapper_simple+.wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper,
.wpstream_player_container+.wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper{order:unset;z-index:10;display:inline-flex;justify-content:center;align-items:center;gap:15px;margin:0;padding:0;border:none;background:transparent;cursor:pointer;color:var(--white-color, #ffffff);font-size:20px;font-family:inherit;line-height:1.2;text-align:left;}
.wpstream_title_wrapper_simple button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:hover, .wpstream_title_wrapper_simple button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:focus-visible, .wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:hover, .wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:focus-visible{color:var(--wpstream-brand-accent-hover);}
.wpstream_title_wrapper_simple button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:hover .wpstream_video_on_demand_play_video, .wpstream_title_wrapper_simple button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:focus-visible .wpstream_video_on_demand_play_video, .wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:hover .wpstream_video_on_demand_play_video, .wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls.wpstream_video_on_demand_play_video_wrapper:focus-visible .wpstream_video_on_demand_play_video{background:linear-gradient( var(--wpstream-type-1-button-hover_background-color-gradient-angle, 90deg), var(--wpstream_type_1_button_hover_background_color_gradient_first_color, rgb(78, 46, 229)), var(--wpstream_type_1_button_hover_background_color_gradient_second_color, rgb(89, 125, 250)) );}
.wpstream_title_wrapper_simple button.wpstream_player_controls .wpstream_video_on_demand_play_video, .wpstream_title_wrapper_simple+.wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls .wpstream_video_on_demand_play_video,
.wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls .wpstream_video_on_demand_play_video{flex-shrink:0;display:flex;justify-content:center;align-items:center;width:55px !important;height:55px !important;margin:0;padding:0 !important;border:none !important;border-radius:50%;line-height:55px;text-align:center;box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.25);transition:background 300ms ease;background:linear-gradient( var(--wpstream-type-1-button-background-color-gradient-angle, 90deg), color-mix(in srgb, var(--wpstream_type_1_button_background_color_gradient_first_color, #597dfa) calc(var(--wpstream-type-2-button-opacity, 0) * 1%), #597dfa), color-mix(in srgb, var(--wpstream_type_1_button_background_color_gradient_second_color, #4e2ee5) calc(var(--wpstream-type-2-button-opacity, 0) * 1%), #4e2ee5) );}
.wpstream_title_wrapper_simple button.wpstream_player_controls .wpstream_video_on_demand_play_video:hover, .wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls .wpstream_video_on_demand_play_video:hover{background:linear-gradient( var(--wpstream-type-1-button-hover_background-color-gradient-angle, 90deg), color-mix(in srgb, var(--wpstream_type_1_button_hover_background_color_gradient_first_color, #597dfa) calc(var(--wpstream-type-2-button-opacity, 0) * 1%), #597dfa), color-mix(in srgb, var(--wpstream_type_1_button_hover_background_color_gradient_second_color, #4e2ee5) calc(var(--wpstream-type-2-button-opacity, 0) * 1%), #4e2ee5) );}
.wpstream_title_wrapper_simple button.wpstream_player_controls .wpstream_video_on_demand_play_video svg, .wpstream_title_wrapper_simple+.wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls .wpstream_video_on_demand_play_video svg,
.wpstream_player_container .wpstream_video_on_demand_actions_wrapper button.wpstream_player_controls .wpstream_video_on_demand_play_video svg{height:21px;width:21px;margin:-1px 0 0 6px;}
/* === VOD / live action wrappers — hidden off-theme, flex layout on hello-wpstream === */
body:not(.wp-theme-hello-wpstream) .wpstream_video_on_demand_actions_wrapper{display:none;}
.wpstream_title_wrapper_simple .wpstream_video_on_demand_actions_wrapper, .wpstream_player_container .wpstream_video_on_demand_actions_wrapper{display:flex;justify-content:space-between;align-items:center;width:100%;}
.wpstream_video_on_demand_actions_wrapper{position:relative;display:flex;visibility:visible;z-index:999;justify-content:space-between;max-width:calc(var(--wpstream-theme-width-container, 1352px) + var(--bs-gutter-x));margin:auto;left:0;right:0;bottom:0;}
.wpstream_section.wpstream_featured_banner_vod.wpstream-featured-player-wrapper .wpstream_title_wrapper_simple .wpstream_video_on_demand_actions_wrapper{position:relative;bottom:0;pointer-events:auto;}
.wpstream_live_channel_actions_wrapper{display:flex;justify-content:space-between;width:100%;}
/* === video.js channel logo overlay positioning (top/bottom, responsive) + volume level === */
.video-js.vjs-logo.logo-top.logo-left .wpestream_live_counting:not(:empty)~.vjs-logo-content{top:30px !important;}
.video-js.vjs-logo.logo-bottom .vjs-logo-content{bottom:40px !important;}
.video-js .vjs-logo-content{position:absolute;}
.video-js.vjs-has-started .vjs-logo-content img{height:auto;}
@media only screen and (max-width: 768px) {
    .vjs-logo-content > img{width:50%;}
}

.video-js .vjs-volume-level:before{font-size:10px !important;}

/* === Misc: hidden download link + YouTube poster fit === */
.wpstream_get_download_link{display:none;}
.vjs-youtube .vjs-poster{background-size:contain!important;}
.vjs-youtube .vjs-poster img{background-size:contain!important;width:100%;}
/* === Product / media list shortcode grid (rows, column widths, pagination, product units) === */
/*product list shortcode*/


.shortcode_list_wrapper{margin:0px -10px;display:flex;flex-direction:row;flex-wrap:wrap;}
.wpstream_media_list_wrapper  li.product.entry{float:left;margin:0px 0px 30px 0px;padding:0px 10px;position:relative;width:33.3%;}
.wpstream_media_list_wrapper.columns-1 li.product.entry{width:100%;}
.wpstream_media_list_wrapper.columns-2 li.product.entry{width:50%;}
.wpstream_media_list_wrapper.columns-3 li.product.entry{width:33.3%;}
.wpstream_media_list_wrapper.columns-4 li.product.entry{width:25%;}

.wpstream_media_list_wrapper li.last.entry{margin-right:0;}
.wpstream_pagination{list-style:none;width:100%;display:inline-block;}
.wpstream_pagination li{display:inline-block;}
.wpstream_media_list_wrapper{display:flex;flex-wrap:wrap;flex-direction:row;}
.wpstream_product_unit{width:33.3%;margin:0px 0px 30px 0px;display:inline-block;padding:0px 10px;}
.wpstream_media_list_wrapper.columns-1 .wpstream_product_unit{width:100%;}
.wpstream_media_list_wrapper.columns-2 .wpstream_product_unit{width:50%;}
.wpstream_media_list_wrapper.columns-3 .wpstream_product_unit{width:33.3%;}
.wpstream_media_list_wrapper.columns-4 .wpstream_product_unit{width:25%;}
.wpstream_product_unit .product_image{border-radius:20px;width:100%;height:255px;display:block;object-position:center;object-fit:cover;background-color:var(--wpstream-brand-surface);}
.wpstream_product_unit .product_title{text-decoration:none!important;color:var(--wpstream-brand-text);font-size:24px;letter-spacing:-.02em;line-height:1.3;font-weight:600;width:100%;display:inline-block;}
.wpstream_product_unit .see_product{text-decoration:none!important;font-size:14px;color:var(--wpstream-brand-muted);}
/* === Live player wrapper + live viewer counter badge === */
.wpstream_live_player_wrapper{position:relative;}
.wpestream_live_counting{position:absolute;padding:6px 7px;color:#fff;z-index:99;top:10px;left:10px;font-size:12px;border-radius:2px;font-family:var(--wpstream-brand-font);}
.wpstream_player_wrapper_sec .wpestream_live_counting{bottom:32px;top:auto;}
/* (The SockJS live-chat widget styles were removed with the built-in chat — issue #110.) */

.event_list_unit.hidden{display:none;}
/* === Front-end "go live" event units + external-software broadcast modal === */
/* start streaming styling front end*/
.event_unit_style_front.event_list_unit{box-shadow:none;background:transparent;margin:10px 0px;width:830px;}
.event_unit_style_front.event_list_unit:hover{background:transparent;transform:none;box-shadow:none;}
.event_unit_style_front  .wpstream_button.wpstream_turning_on, .event_unit_style_front .start_event.wpstream_button{min-width:170px;padding:5px 20px;}
.event_unit_style_front .record_wrapper{display:none;}
.event_unit_style_front .multiple_warning_events{display:none;}
.event_unit_style_front .wpstream_channel_status.not_ready_to_stream .dashicons{margin-top:0px;}
.event_unit_style_front .wpstream_channel_status .dashicons{margin-top:-3px;}
.event_unit_style_front .wpstream_channel_status{padding:0px 10px 10px 10px;}
.event_unit_style_front  .event_list_unit_notificationx{font-size:14px;float:left;width:100%;}
.wpstream_social_share_wrapper a{text-decoration:none!important;}
.event_unit_style_front .wpstream_modal_form{width:520px;height:520px;background-color:#fff;position:fixed;top:50%;margin-top:-260px;left:50%;margin-left:-260px;display:none;z-index:1002;padding:30px;border-radius:20px;line-height:1.4em;}
.event_unit_style_front .wpstream_external_broadcast_options{font-size:14px;line-height:2;color:var(--wpstream-brand-text);border-color:var(--wpstream-brand-border);box-shadow:none;border-radius:12px;padding:0 24px 0 8px;min-height:30px;max-width:25rem;-webkit-appearance:none;background-size:16px 16px;cursor:pointer;vertical-align:middle;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;}
.event_unit_style_front .wpstream_stop_event.wpstream_button{min-width:170px;padding:5px 20px;}
.event_unit_style_front .external_software_streaming_details{width:460px;line-height:1em;}
.event_unit_style_front .wpstream_modal_explanations ul{list-style:none;padding:0px;}
.event_unit_style_front .wpstream_modal_explanations li{line-height:1.4em;}
.wpstream_live_uri_text.wpstream_larix_rtmp{width:345px;}
/* === Generic spinner rotation keyframe (used by loading indicators) === */
@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}


/* === Responsive breakpoints — event units, media grid columns, mobile modal === */
@media only screen and (max-width:1099px){
    .event_unit_style_front.event_list_unit{flex-direction:column;align-content:center;justify-content:flex-start;align-items:flex-start;width:auto;position:relative;border:1px solid var(--wpstream-brand-border);}
}
@media only screen and (max-width:768px){
    .wpstream_media_list_wrapper.columns-1 .wpstream_product_unit, .wpstream_media_list_wrapper.columns-2 .wpstream_product_unit,
    .wpstream_media_list_wrapper.columns-3 .wpstream_product_unit, .wpstream_media_list_wrapper.columns-4 .wpstream_product_unit,
    .wpstream_media_list_wrapper.columns-1 li.product.entry, .wpstream_media_list_wrapper.columns-2 li.product.entry,
    .wpstream_media_list_wrapper.columns-3 li.product.entry, .wpstream_media_list_wrapper.columns-4 li.product.entry{width:50%;}
}

@media only screen and (max-width:600px){



    .event_unit_style_front .wpstream_modal_form{width:100%;height:100%;background-color:#fff;position:fixed;top:0;margin-top:0;left:0;margin-left:0;display:none;z-index:1002;padding:60px 30px;border-radius:0px;box-sizing:border-box;}
   .event_unit_style_front .wpstream_modal_form .wpstream_modal_explanations{width:100%;box-sizing:border-box;}
  .wpstream_sharing_social .dashicons{margin-right:14px;}
   .event_unit_style_front .external_software_streaming_details{width:100%;}
   .wpstream_close_onboarding, .wpstream_close_modal{top:60px;}
}

@media only screen and (max-width:500px){
    .wpstream_media_list_wrapper.columns-1 .wpstream_product_unit, .wpstream_media_list_wrapper.columns-2 .wpstream_product_unit,
    .wpstream_media_list_wrapper.columns-3 .wpstream_product_unit, .wpstream_media_list_wrapper.columns-4 .wpstream_product_unit,
    .wpstream_media_list_wrapper.columns-1 li.product.entry, .wpstream_media_list_wrapper.columns-2 li.product.entry,
    .wpstream_media_list_wrapper.columns-3 li.product.entry, .wpstream_media_list_wrapper.columns-4 li.product.entry{width:100%;}
  
}


/* === Hover video title overlay (fades in over the player) === */
.wpstream-video-title-overlay{position:absolute;top:10px;left:10px;background-color:#0000007d;color:#fff;padding:5px 20px;font-size:15px;border-radius:4px;opacity:0;transition:all 0.5s ease-in-out;z-index:99;}
/* === External VOD / live iframe player wrapper (16:9 responsive frame) === */
/* External VOD iframe player (mirror of player/public/iframe_test.html .frame-wrap) */
.wpstream_player_iframe_wrap, .wpstream_live_channel_iframe{position:relative;width:100%;height:100%;max-width:100%;aspect-ratio:16 / 9;overflow:hidden;border-radius:12px;background:#000;}
.wpstream_player_iframe_wrap iframe.wpstream_video_on_demand_iframe{display:block;width:100%;height:100%;border:none;}
/* Shared public actions: neutral cards, pill buttons and visible keyboard focus. */
.wpstream-subscription-link:hover{background:var(--wpstream-brand-accent-hover);color:#fff;}
.wpstream-subscription-options{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;}
.wpstream_notice .wpstream-subscription-link{background:#fff;color:var(--wpstream-brand-accent);}
.wpstream_product_see:focus-visible, .wpstream-subscription-link:focus-visible{outline:3px solid rgba(78,46,229,.4);outline-offset:3px;}
/* Shared channel markup uses classes instead of inline layout and state styles. */
.wpstream-clear-float{clear:both;}
.wpstream-channel-thumbnail{display:block;object-fit:cover;object-position:center;}
.wpstream-channel-status-auto:empty{display:none;}
.external_software_streaming.is-active{display:block;}
.wpstream_channel_settings .spinner.is-active{visibility:visible;}
.wpstream-embedded-player{border:0;max-width:100%;aspect-ratio:16 / 9;height:auto;}
/* Player controllers reveal these only after their corresponding state is ready. */
.wpstream_video_on_demand_play_trailer, .wpstream_video_on_demand_mute_trailer, .wpstream_video_on_demand_unmute_trailer, .wpstream_player_iframe_wrap iframe.wpstream_live_channel_iframe_trailer, .wpstream_player_iframe_wrap iframe.wpstream_video_on_demand_iframe_trailer, iframe.wpstream_live_channel_iframe_trailer{display:none;}
/* State classes shared by the iframe host's native and jQuery control paths. */
.wpstream-player-visible{visibility:visible !important;}
.wpstream_video_on_demand_play_trailer.wpstream-player-visible, .wpstream_video_on_demand_mute_trailer.wpstream-player-visible, .wpstream_video_on_demand_unmute_trailer.wpstream-player-visible, .wpstream_live_channel_status.wpstream-player-visible, .wpstream_player_iframe_wrap iframe.wpstream-player-visible{display:block !important;}
.wpstream-is-hidden{display:none !important;}
.wpstream-video-title-overlay.wpstream-player-overlay-visible{opacity:1;}