:root {
  --plyr-color-main: var(--primary);
  --plyr-font-size-base: 13px;
  --plyr-font-size-small: 12px;
  --plyr-font-size-time: 11px;
  --plyr-font-size-badges: 9px;
  --plyr-font-size-menu: var(--plyr-font-size-base);
  --plyr-font-weight-regular: 500;
  --plyr-font-weight-bold: 600;
  --plyr-font-size-captions-medium: 18px;
  --plyr-font-size-captions-large: 21px;
  --dark: #020202;
}

@font-face {
  font-family: "NetflixSans";
  src: url("../fonts/NetflixSans-Regular.woff2") format("woff2"),
    url("../fonts/NetflixSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NetflixSans";
  src: url("../fonts/NetflixSans-Bold.woff2") format("woff2"),
    url("../fonts/NetflixSans-Bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "NetflixSans";
  src: url("../fonts/NetflixSans-Light.woff2") format("woff2"),
    url("../fonts/NetflixSans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "NetflixSans";
  src: url("../fonts/NetflixSans-Medium.woff2") format("woff2"),
    url("../fonts/NetflixSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

body {
  font-family: "NetflixSans", Arial, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  font-size: 16px;
}

.bg-theme {
  background-color: var(--dark) !important;
}

.preview-episode .bg-theme:hover {
  background-color: rgb(43, 43, 43);
}

.bg-theme-secondary {
  background-color: rgb(43, 43, 43);
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.preview-episode .bg-theme-secondary:hover {
  background-color: rgb(77, 77, 77);
}

.text-theme {
  color: rgb(128, 127, 127);
}

.shadow-theme {
  box-shadow: 0 1px 3px 0 rgb(255 255 255 / 0.1),
    0 1px 2px -1px rgb(255 255 255 / 0.1);
}

.mainBanner-shadow::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 70px;
  background-color: rgba(2, 2, 2, 0.3);
}

.mainBanner-shadow {
  background: linear-gradient(
    0deg,
    rgba(2, 2, 2, 1) 0%,
    rgba(55, 58, 60, 0.41) 40%,
    rgba(0, 212, 255, 0) 100%
  );
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

/** General **/
.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 0.75rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 1rem;
}

/** Navbar **/

.navbar-brand > img {
  max-height: 30px;
}

.navbar .navbar-nav > .nav-item {
  font-size: 14px;
  font-weight: 400;
}

.navbar-secondary-nav .nav-link {
  padding: 8px 0.5rem;
  font-size: 20px;
}

.account-dropdown .nav-link {
  padding: 4px 0.5rem;
}

.account-dropdown img {
  max-height: 40px;
}

/** Carousel **/
.carousel-caption {
  bottom: 20px;
  left: 5%;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.carousel-item {
  height: 80dvh;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.carousel-item.active {
  display: flex;
  justify-content: center;
}

.carousel-item > img {
  display: none !important;
  object-fit: contain;
  height: 100%;
}

.carousel-caption > h5 {
  font-size: 30px;
}

.carousel-caption > p {
  font-size: 18px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/** Movie carousel **/
.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
  position: absolute;
  top: calc(50% - 40px);
  font-size: 40px !important;
}

.owl-carousel .owl-nav button.owl-next {
  right: 30px;
}

.owl-carousel .owl-nav button.owl-prev {
  left: 30px;
}

.movie-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 10 / 16;
}

.movies-section {
  overflow: hidden;
}

#mainBanner .movie-thumb {
  height: unset;
}

#mainBanner .movie-thumb > img {
  aspect-ratio: 10 / 16;
}

.owl-carousel{
  width: calc(100% + 150px);
}

.owl-carousel .owl-nav button.owl-next {
  right: 180px;
}

.movie-thumb > img {
  object-fit: cover;
  aspect-ratio: 10 / 16;
}

.movie-thumb > .progress {
  height: 2px;
  position: absolute;
  bottom: 6px;
  left: 10%;
  right: 0;
  z-index: 1;
  width: 80%;
}

.movie-thumb > .caption {
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

.movie-thumb:hover > .caption {
  opacity: 1;
  z-index: 10;
}

.movie-thumb:hover > .caption > span {
  animation: scroll-left 5s linear infinite;
}
.movie-thumb > .caption > span {
  white-space: nowrap;
  padding: 0 20px;
  display: block;
}

.movie-thumb > .caption {
  width: 100%;
  aspect-ratio: 10 / 16;
  inset: 0;
  position: absolute;
  text-align: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--light);
  font-size: 18px;
  overflow: hidden;
  padding: 20px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    0deg,
    rgba(2, 2, 2, 1) 0%,
    rgba(55, 58, 60, 0.41) 40%,
    rgba(0, 212, 255, 0) 100%
  );
}

.movies-by-category {
  margin-bottom: 40px;
}

.movies-by-category > h5 {
  font-size: 20px;
  margin-bottom: 20px;
}

.movie-meta {
  position: absolute;
  font-size: 14px;
  bottom: 6px;
  width: 100%;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

/** Modal **/
#searchModal .modal-body {
  max-height: 95dvh;
  overflow: auto;
}
.modal-content {
  background-color: rgb(43, 43, 43);
  backdrop-filter: blur(3px);
}

.modal-content,
.modal-header,
.modal-footer {
  border: 0;
}

.modal .close {
  text-shadow: none;
  color: #fff;
  width: 25px;
  height: 25px;
  position: relative;
  z-index: 1;
}

.modal .close > i {
  font-weight: 200;
  font-size: 28px;
  margin: 0;
}

.preview-modal {
  z-index: 1060;
}

.preview-modal .preview-content {
  position: relative;
  top: -41px;
  width: calc(100% + 32px);
  margin: -41px -16px 0 -16px;
  border-radius: 5px 5px 0 0;
}

.preview-modal .preview-content > .plyr {
  width: calc(100% + 32px);
  border-radius: 5px 5px 0 0;
  max-height: 600px;
}

.preview-modal .preview-caption {
  position: absolute;
  bottom: 50px;
  padding: 20px 50px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  border-radius: 0 12px 12px 0;
}

.preview-modal img.preview-thumb {
  width: 100%;
  min-height: 250px;
  max-height: 600px;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
}

.preview-modal .preview-movie-description {
  padding: 10px 34px;
}

.preview-modal .preview-episode {
  padding: 10px 0px;
}

.preview-modal .preview-metadata > p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.episode-thumb {
  width: 200px;
  border-radius: 0.25rem !important;
  max-width: 100%;
  height: auto;
}

.episode-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.episode-play-button:hover {
  transform: translateX(-50%) translateY(-50%) scale(1.2);
  color: white;
}

.fa-play-circle {
  transition: transform 0.2s ease-in-out;
}

.fa-play-circle:hover {
  transform: scale(1.2);
}

/** Movie Player **/

.plyr-container {
  position: relative;
}

.plyr-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 212, 255, 0) 0%,
    rgba(55, 58, 60, 0.41) 20%,
    rgba(2, 2, 2, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.plyr-shadow h5 {
  font-size: 48px;
}

.plyr-shadow > div {
  transform: translateY(50%);
  margin-left: 5%;
  text-shadow: 1px 1px var(--dark);
  width: 50%;
  max-width: 100%;
  font-size: 20px;
}

.plyr-shadow > div > p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-top: 10px;
}

.plyr {
  margin-bottom: 40px;
}

.plyr__video-wrapper {
  height: 100dvh;
  max-height: 800px;
}

.plyr__video-wrapper > video {
  position: absolute;
}

.plyr__poster {
  background-size: cover;
}

.plyr__controls,
.plyr__control {
  z-index: 10;
}

.skip-overlay {
  display: none;
  position: absolute;
  top: 50%;
  font-size: 48px;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.skip-left {
  left: 100px;
  color: white;
}

.skip-right {
  right: 100px;
  color: white;
}


/** Form **/
.form-control:not(select),
.form-control:not(select):focus {
  background-color: transparent;
  color: var(--light);
  border: 1px solid #666;
}

.homepage-background {
  background-image: url(../images/movie-list.jpg);
  height: 700px;
  max-height: 90dvh;
  position: relative;
}

.homepage-background::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.homepage-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    0deg,
    rgba(2, 2, 2, 1) 0%,
    rgba(55, 58, 60, 0.41) 50%,
    rgba(0, 212, 255, 0) 100%
  );
}

.ads-applicanity {
  position: relative;
  top: -50px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      67.71% 2367.66% at 32.07% -523.61%,
      rgba(255, 153, 0, 0.6) 0%,
      rgba(229, 9, 20, 0.6) 14.34%,
      rgba(14, 27, 79, 0.6) 77%,
      rgba(0, 4, 19, 0.6) 100%
    ),
    linear-gradient(0deg, rgba(14, 27, 79, 0.2), rgba(14, 27, 79, 0.2));
}

.ads-applicanity > .ads-image {
  width: 100px;
}

/** Switch Profile **/
.profile {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.profile img:hover {
  transform: scale(1.3);
}

.profile-name {
  text-align: center;
  margin-top: 10px;
  color: white;
}

.manage-profile {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.manage-profile-edit {
  opacity: 0;
  position: absolute;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

.manage-profile:hover .manage-profile-edit {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manage-profile-edit:hover {
  transform: scale(1.3);
}

.manage-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manage-profile-name {
  text-align: center;
  margin-top: 10px;
  color: white;
}

/** Avatar Profile **/
label.avatar {
  position: relative;
  width: 100px;
  padding: 5px;
  cursor: pointer;
}

label.avatar > input {
  display: none;
}

.avatar-selected {
  opacity: 0;
  border-radius: 10px;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

label.avatar:hover > .avatar-selected,
label.avatar > input[type="radio"]:checked ~ .avatar-selected {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

/** Pagination **/
.pagination {
  justify-content: center;
  width: 100%;
  margin-top: 50px;
}

.page-item.disabled span {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #d9230f;
  background-color: #eee;
  border: 1px solid #eee;
  line-height: 1.25;
}

.page-item:first-child.disabled span {
  border-radius: 4px 0 0 4px;
}

.page-item:last-child.disabled span {
  border-radius: 0 4px 4px 0;
}

.alert-message{
  position: fixed;
  top: 50px;
  right: 50px;
}

.container-fluid {
  min-height: calc(100dvh - 200px);
}

.fixed-top {
  position: sticky;
}

/** Responsive **/

/* Mobile Drawer Styles */
@media (max-width: 991.98px) {
  .drawer-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--dark);
    transition: left 0.3s ease-in-out;
    z-index: 1050;
    display: block !important; /* Force display to handle visibility via left */
    overflow-y: auto;
    padding-top: 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  }

  .drawer-menu.show {
    left: 0;
  }

  .drawer-menu .navbar-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .drawer-menu .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .drawer-backdrop.show {
    display: block;
    opacity: 1;
  }
  
  /* Disable Bootstrap's default collapse animation properties if they interfere */
  .navbar-collapse.collapsing {
    height: 100% !important;
    left: -300px;
    transition: left 0.3s ease-in-out !important;
    display: block;
  }
}

@media (min-width: 1500px) {
  .col-xl-2 {
      -ms-flex: 0 0 12%;
      flex: 0 0 12%;
      max-width: 12%;
  }
}

@media (max-width: 992px) {
  .navbar {
    background-color: var(--dark);
  }

  .navbar-secondary-nav {
    flex-direction: row;
    justify-content: end;
  }

  .modal-dialog {
    max-width: 100%;
    padding: 0 50px;
  }

  .main-banner {
    margin-top: 70px;
  }
}

@media (max-width: 820px) {
  .preview-modal .preview-movie-description,
  .preview-modal .preview-episode {
    padding: 10px 10px;
  }

  .preview-modal .preview-caption {
    padding: 0 26px;
    bottom: 20px;
  }

  .plyr-shadow > div {
    transform: unset;
    margin-top: 70px;
  }

  .plyr-shadow > div > span {
    font-size: 16px;
  }

  .plyr-shadow > div > h5 {
    font-size: 20px;
  }

  .plyr-shadow > div > div.line-clamp-3 {
    font-size: 12px;
  }

  .plyr__video-wrapper {
    height: 100%;
  }

  .plyr__video-wrapper > video {
    position: static;
  }

  .preview-caption > h2 {
    font-size: 20px;
  }

  .preview-caption .btn-secondary,
  .preview-caption .btn-outline-secondary {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .carousel-item {
    height: 40dvh;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }
}

@media (max-width: 480px) {
  .preview-modal .preview-movie-description,
  .preview-modal .preview-episode {
    padding: 10px 0px;
  }

  .preview-modal .preview-caption {
    padding: 0 16px;
    bottom: 10px;
  }

  .modal-dialog {
    padding: 0 20px;
  }

  .episode-thumb {
    width: 100%;
  }

  .plyr-shadow > div > div.line-clamp-3{
    display: none;
  }
}

@media (min-width: 480px) {
  .plyr__captions {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .plyr__captions {
    font-size: 22px;
  }
}

/** Animation **/
@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}
