/* ==========================================================================
   Liquid glass for controls that float over content. Works with both themes:
   the colour comes from --neto-green, which is red in custom-neto-red.css.
   Text panels stay solid so they remain easy to read.
   To revert: delete this file and its line in resources/views/site_app.blade.php.
   ========================================================================== */
:root{
  --glass-bg:rgba(24,27,32,.86);
  --glass-tint:var(--neto-green);
  --glass-edge:rgba(255,255,255,.2);
  --glass-shine:inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(255,255,255,.08);
  --glass-shadow:0 10px 28px rgba(0,0,0,.42);
  --glass-sheen:linear-gradient(160deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.05) 42%,rgba(255,255,255,0) 62%,rgba(255,255,255,.08) 100%);
  --glass-spring:cubic-bezier(.34,1.56,.64,1);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{--glass-bg:rgba(34,37,43,.38);}
}
@supports (background:color-mix(in srgb,red 50%,transparent)){
  :root{--glass-tint:color-mix(in srgb,var(--neto-green) 68%,transparent);}
}

/* ---- Clear glass controls ---- */
.owl-nav .owl-prev,.owl-nav .owl-next,.splide__arrow,
.scroll-top .scroll-icon,
.play-icon-item a.icon,
.header-section ul li.menu-icon a{
  background:var(--glass-sheen),var(--glass-bg) !important;
  color:#fff !important;
  border:1px solid var(--glass-edge) !important;
  box-shadow:var(--glass-shine),var(--glass-shadow) !important;
  -webkit-backdrop-filter:blur(12px) saturate(170%);
  backdrop-filter:blur(12px) saturate(170%);
  transition:transform .35s var(--glass-spring),background-color .2s ease !important;
}
.owl-nav .owl-prev i,.owl-nav .owl-next i,.play-icon-item a.icon i,.scroll-top .scroll-icon i{color:#fff !important;}
.splide__arrow svg{fill:#fff !important;}

/* The play icon has its own white circle inside the glass one */
.play-icon-item a.icon i.icon{background:transparent !important;color:#fff !important;box-shadow:none !important;}

.scroll-top,.scroll-top:hover{
  background:transparent !important;
  width:44px;height:44px;right:12px;bottom:12px;
  border-radius:50%;
}
.scroll-top .scroll-icon{display:block;width:44px;height:44px;line-height:42px;}

/* ---- Tinted glass buttons ---- */
.search-item-block .navbar-form [type="submit"],
.splide-slider-details-area a.btn-watch,
.splide-slider-details-area a.btn-buy-plan,
.btn-watchlist a,
.subscribe-btn-item a,
.signup-btn-item a,
.video-watch-share-item .server-btn-item a{
  background:var(--glass-sheen),var(--glass-tint) !important;
  color:#fff !important;
  border:1px solid var(--glass-edge) !important;
  border-radius:999px !important;
  box-shadow:var(--glass-shine),0 8px 22px rgba(0,0,0,.34) !important;
  -webkit-backdrop-filter:blur(10px) saturate(170%);
  backdrop-filter:blur(10px) saturate(170%);
  transition:transform .35s var(--glass-spring) !important;
}
.splide-slider-details-area a.btn-watch,
.splide-slider-details-area a.btn-buy-plan{padding:9px 16px;}

/* "View All" on home sections. They sit on the plain black page, so no blur is needed. */
.vfx-item-section span.view-more a{
  display:inline-flex;align-items:center;justify-content:center;
  height:32px;
  margin-top:-4px;
  padding:0 15px;
  font-size:13px;font-weight:600;line-height:1;
  white-space:nowrap;
  background:var(--glass-sheen),var(--glass-tint) !important;
  color:#fff !important;
  border:1px solid var(--glass-edge);
  border-radius:999px;
  box-shadow:var(--glass-shine),0 6px 16px rgba(0,0,0,.34);
  transition:transform .35s var(--glass-spring);
}
/* The button floats, so the title row has to grow to keep it clear of the posters */
.vfx-item-section:has(.view-more){display:flow-root;padding-bottom:10px;}
.vfx-item-section span.view-more a:hover{color:#fff !important;transform:translateY(-1px);}
.vfx-item-section span.view-more a:active{transform:scale(.93);}

/* Controls give under the finger, then spring back */
.owl-nav .owl-prev:active,.owl-nav .owl-next:active,.splide__arrow:active,
.scroll-top .scroll-icon:active,.play-icon-item a.icon:active,
.header-section ul li.menu-icon a:active,
.search-item-block .navbar-form [type="submit"]:active,
.splide-slider-details-area a.btn-watch:active,.splide-slider-details-area a.btn-buy-plan:active,
.btn-watchlist a:active,.subscribe-btn-item a:active,.signup-btn-item a:active,
.video-watch-share-item .server-btn-item a:active{transform:scale(.93) !important;}

/* ---- Header ----
   The blur sits on a layer behind the header. A blur on the header itself would
   stop the menus inside it from blurring the page. */
.header-section,
.header-section.pin-style.pin{
  background:transparent !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
.header-section::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,0) 60%),var(--glass-bg);
  border-bottom:1px solid var(--glass-edge);
  box-shadow:0 8px 26px rgba(0,0,0,.34);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  backdrop-filter:blur(22px) saturate(180%);
}
@media (min-width:1001px){
  .vfx-item-nav{
    background:rgba(255,255,255,.07);
    border-color:var(--glass-edge);
    box-shadow:var(--glass-shine);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}
.vfx-item-nav > li > a.active{
  background:var(--glass-sheen),var(--glass-tint) !important;
  color:#fff !important;
  box-shadow:var(--glass-shine),0 6px 16px rgba(0,0,0,.3);
}

/* ---- Floating menus ---- */
.vfx-item-nav .mega-list,
.user-menu .content-user,
.swal2-popup,
.modal-content{
  background:var(--glass-sheen),rgba(24,27,32,.72) !important;
  color:#fff;
  border:1px solid var(--glass-edge) !important;
  border-radius:20px !important;
  box-shadow:var(--glass-shine),0 22px 50px rgba(0,0,0,.55) !important;
  -webkit-backdrop-filter:blur(26px) saturate(180%);
  backdrop-filter:blur(26px) saturate(180%);
}
.swal2-title,.swal2-html-container{color:#fff !important;}
.swal2-popup .swal2-confirm{background:var(--glass-sheen),var(--glass-tint) !important;border-radius:999px !important;}
@media (max-width:1000px){
  #menu.header-menu{
    background:var(--glass-sheen),rgba(24,27,32,.66) !important;
    border:1px solid var(--glass-edge);
    border-radius:22px;
    box-shadow:var(--glass-shine),0 22px 50px rgba(0,0,0,.55);
    -webkit-backdrop-filter:blur(26px) saturate(180%);
    backdrop-filter:blur(26px) saturate(180%);
  }
  #menu.header-menu .vfx-item-nav,
  #menu.header-menu .vfx-item-nav > li{background:transparent !important;border-color:rgba(255,255,255,.12) !important;}
  #menu.header-menu .vfx-item-nav > li > a{background:transparent !important;color:#fff !important;border-color:transparent !important;}
  #menu.header-menu .vfx-item-nav > li > a.active{background:var(--glass-sheen),var(--glass-tint) !important;}
  #menu.header-menu .vfx-item-nav .mega-list{background:rgba(255,255,255,.06) !important;box-shadow:none !important;-webkit-backdrop-filter:none;backdrop-filter:none;}
  #menu.header-menu .vfx-item-nav .mega-list a{background:transparent !important;color:#fff !important;}
  #menu.header-menu .vfx-item-nav > li > .arrow{
    background-color:rgba(255,255,255,.16) !important;color:#fff !important;border-radius:10px;
  }
  .header-section #menu.header-menu > ul > li > .arrow::before,
  .header-section #menu.header-menu > ul > li > .arrow::after{background:#fff !important;}
}

/* ---- Search overlay ---- */
.popup-overlay:target{
  background:rgba(0,0,0,.72) !important;
  -webkit-backdrop-filter:blur(24px) saturate(160%);
  backdrop-filter:blur(24px) saturate(160%);
}
.search .search-input input[type=text]{
  background:rgba(255,255,255,.1) !important;
  border:1px solid var(--glass-edge) !important;
  border-radius:999px !important;
  color:#fff !important;
  box-shadow:var(--glass-shine);
}

/* site_app.blade.php paints the placeholder black, which shows as a strip in the pill */
.popup-view .search .search-input input[type=text]::placeholder,
.popup-view .search .search-input input[type=text].focus{
  background:transparent !important;
  color:rgba(255,255,255,.65) !important;
}

/* ---- Video player: the blur only runs while the controls are showing ---- */
.video-js .vjs-control-bar{
  background:var(--glass-sheen),rgba(24,27,32,.42) !important;
  border-top:1px solid var(--glass-edge);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(14px) saturate(170%);
  backdrop-filter:blur(14px) saturate(170%);
}
.video-js.vjs-user-inactive.vjs-playing .vjs-control-bar{
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.video-js .vjs-big-play-button{
  background-color:var(--glass-bg) !important;
  border:1px solid var(--glass-edge) !important;
  box-shadow:var(--glass-shine),var(--glass-shadow) !important;
  -webkit-backdrop-filter:blur(12px) saturate(170%);
  backdrop-filter:blur(12px) saturate(170%);
}
.video-js .vjs-menu-settings{
  background:var(--glass-sheen),rgba(24,27,32,.72) !important;
  border:1px solid var(--glass-edge);
  border-radius:14px;
  -webkit-backdrop-filter:blur(20px) saturate(170%);
  backdrop-filter:blur(20px) saturate(170%);
}

/* ---- Respect the phone's accessibility settings ---- */
@media (prefers-reduced-transparency:reduce){
  :root{--glass-bg:rgba(24,27,32,.96);--glass-tint:var(--neto-green);--glass-sheen:linear-gradient(transparent,transparent);}
  .vfx-item-nav .mega-list,.user-menu .content-user,.swal2-popup,.modal-content,#menu.header-menu,.video-js .vjs-menu-settings{background:rgb(24,27,32) !important;}
  .popup-overlay:target{background:rgba(0,0,0,.95) !important;}
}
@media (prefers-reduced-motion:reduce){
  .owl-nav .owl-prev,.owl-nav .owl-next,.splide__arrow,.scroll-top .scroll-icon,.play-icon-item a.icon,
  .search-item-block .navbar-form [type="submit"],.splide-slider-details-area a.btn-watch,.btn-watchlist a{transition:none !important;}
}
