@import url('/assets/fonts/poppins/poppins.css');

html, body,
.ipsApp,
.ipsType_pageTitle, .ipsType_sectionTitle, .ipsType_secondaryTitle,
.ipsType_sectionHead, .ipsType_minorHeading, .ipsWidget_title,
#yt__acme_header, #homeLauncher, .coolButton, .site-name, .newmenu,
button, input, select, textarea {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.site-hero {
  background-position: center top !important;
  background-size: cover !important;
}

.site-hero-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 72px;
  line-height: .9;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .55);
}

.site-hero-plot {
  max-width: 720px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.5;
}

.vbSwiper .swiper-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.vbSwiper .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.vbSwiper .swiper-slide {
  flex: 0 0 auto;
}

.site-loading {
  min-width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbNav-prev,
.vbNav-next {
  font-size: 26px;
  line-height: 1;
}

.site-muted,
.site-error {
  padding: 20px 5px;
  color: rgba(255, 255, 255, .65);
}

.site-error {
  color: #ff8492;
}

.site-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 360px;
  border: 1px solid rgba(56, 69, 103, .8);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background: #101726;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.site-no-poster {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111827, #27304f);
}

.site-watch-player .player-area {
  position: relative;
  min-height: 420px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.site-watch-player video {
  width: 100%;
  min-height: 420px;
  max-height: 72vh;
  display: block;
  background: #000;
}

.site-player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  pointer-events: none;
}

.site-watch-tools {
  margin-top: 14px;
}

.site-watch-tools .server {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.site-details-wrap {
  margin-top: 24px;
}

#view .ipsColumn_wide {
  width: 365px;
  max-width: 100%;
}

#view .vbItemImage,
.eps .vbItemImage,
.site-details-wrap .vbItemImage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #0d111c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#view .vbItemImage a,
.eps .vbItemImage a,
.site-details-wrap .vbItemImage a {
  display: block;
  width: 100%;
}

#view .vbItemImage img,
.eps .vbItemImage img,
.site-details-wrap .vbItemImage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 767px) {
  #view .ipsColumn_wide {
    width: 100% !important;
  }
}

.site-episodes {
  margin: 25px 0;
}

.site-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.site-episode {
  min-height: 50px;
  border: 1px solid rgba(56, 69, 103, .8);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: #090c15;
  cursor: pointer;
  text-align: left;
}

.site-episode:hover,
.site-episode.active {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, .12);
}

@media (max-width: 760px) {
  .site-hero-title {
    font-size: 42px;
  }

  .site-watch-player .player-area,
  .site-watch-player video {
    min-height: 240px;
  }
}

/* Centered elevated play button */
.player-area .button {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: 76px !important;
  height: 76px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  transition: all .25s ease-in-out !important;
  z-index: 5 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.player-area .bg {
  pointer-events: none !important;
}
.player-area .button:hover {
  box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.6), 0 0 30px rgba(37, 99, 235, 0.5) !important;
  background: rgba(37, 99, 235, 0.7) !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
}
.player-area .button svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  position: relative !important;
  left: 14px !important;
  margin: 0 !important;
  inset: auto !important;
  transition: all .25s ease-in-out !important;
  fill: #fff !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Universal Mobile Drawer Styles
   ========================================================================== */
#elMobileDrawer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#elMobileDrawer.drawer-open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#elMobileDrawer .ipsDrawer_menu {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: 300px !important;
  max-width: 82vw !important;
  height: 100% !important;
  background: #0d131f !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  z-index: 1000000 !important;
}

#elMobileDrawer.drawer-open .ipsDrawer_menu {
  transform: translateX(0) !important;
}

#elMobileDrawer .ipsDrawer_close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  text-align: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s !important;
  z-index: 10 !important;
}

#elMobileDrawer .ipsDrawer_close:hover,
#elMobileDrawer .ipsDrawer_close:active {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: scale(1.05) !important;
}

#elMobileDrawer .ipsDrawer_content {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding-top: 60px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

#elMobileDrawer .ipsDrawer_list {
  list-style: none !important;
  padding: 10px 0 30px 0 !important;
  margin: 0 !important;
}

#elMobileDrawer .ipsDrawer_list > li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#elMobileDrawer .ipsDrawer_list > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 14px 22px !important;
  color: #e2e8f0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0.3px !important;
  transition: background 0.2s, color 0.2s !important;
}

#elMobileDrawer .ipsDrawer_list > li > a:hover,
#elMobileDrawer .ipsDrawer_list > li > a:active {
  background: rgba(0, 143, 215, 0.15) !important;
  color: #00d4ff !important;
}

/* ==========================================================================
   Home Hero Options & Action Buttons (Side-by-Side Responsive)
   ========================================================================== */
#homeLauncher .options {
  display: block !important;
  margin-top: 30px !important;
  text-align: center !important;
}

.coolButton {
  width: auto;
  position: relative;
  display: inline-block;
  height: 50px;
  line-height: 50px;
  padding: 0 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  z-index: 10;
  border-radius: 25px;
  transition: all .2s ease-in-out;
  text-transform: uppercase;
  letter-spacing: .70px;
  color: #fff !important;
  fill: #fff !important;
  opacity: .9;
  text-decoration: none !important;
  vertical-align: middle;
  box-sizing: border-box;
}

#homeLauncher .options .coolButton,
#homeLauncher .options .coolButton:hover,
#homeLauncher .options .coolButton:focus,
#homeLauncher .options .coolButton:active {
  padding-right: 30px !important;
  padding-left: 45px !important;
  margin-right: 20px !important;
  line-height: 48px !important;
  height: 50px !important;
  position: relative !important;
  display: inline-block !important;
  border-radius: 25px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .70px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  opacity: 1 !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.coolButton.orange,
#homeLauncher .options .coolButton.orange,
#homeLauncher .options .coolButton.orange:hover {
  background: #008fd7 !important;
  color: #fff !important;
}

.coolButton.gray,
#homeLauncher .options .coolButton.gray,
#homeLauncher .options .coolButton.gray:hover {
  background: rgb(30 36 49) !important;
  color: #fff !important;
}

#homeLauncher .options .coolButton svg {
  width: 20px !important;
  height: 20px !important;
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  fill: #fff !important;
  margin: 0 !important;
}

@media (max-width: 600px) {
  #homeLauncher .options .coolButton,
  #homeLauncher .options .coolButton:hover {
    margin-right: 8px !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    padding-right: 20px !important;
    padding-left: 42px !important;
  }
}

/* Mobile watch pages: keep the player compact and prevent the controls from
   being clipped below the fold. Desktop/tablet dimensions remain untouched. */
@media (max-width: 1080px) {
  #view,
  #view.eps {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    flex-direction: column !important;
  }

  #view .one {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  #view .one .player-area {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  #view .one .player-area iframe,
  #view .one .player-area video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #view .two {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding: 14px !important;
  }
}

/* Stable watch layout across browser zoom and Windows display scaling. */
body[data-page="watch-movie"] #VideoContent > .ipsPadding,
body[data-page="watch-tv"] #VideoContent > .ipsPadding {
  display: block !important;
}

body[data-page="watch-movie"] #view,
body[data-page="watch-tv"] #view {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

body[data-page="watch-movie"] #VideoContent .ipsColumns,
body[data-page="watch-tv"] #VideoContent .ipsColumns {
  position: relative !important;
  width: 100% !important;
  clear: both !important;
}

@media (min-width: 901px) {
  body[data-page="watch-movie"] #view,
  body[data-page="watch-tv"] #view {
    display: flex !important;
    flex-direction: row !important;
    height: 420px !important;
    min-height: 420px !important;
    overflow: hidden !important;
  }

  body[data-page="watch-movie"] #view .one,
  body[data-page="watch-tv"] #view .one {
    width: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
  }

  body[data-page="watch-movie"] #view .one .player-area,
  body[data-page="watch-tv"] #view .one .player-area {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  body[data-page="watch-movie"] #view .two,
  body[data-page="watch-tv"] #view .two {
    width: 27% !important;
    min-width: 300px !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 0 0 27% !important;
  }
}

@media (max-width: 900px) {
  body[data-page="watch-movie"] #view,
  body[data-page="watch-tv"] #view {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-page="watch-movie"] #view .one,
  body[data-page="watch-tv"] #view .one,
  body[data-page="watch-movie"] #view .two,
  body[data-page="watch-tv"] #view .two {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }
}
