@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Poppins400.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/Poppins500.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/Poppins600.woff2') format('woff2');
  font-display: swap;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
}

/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

h1 {
  font-family: "Poppins", sans-serif;
}

#main {
  height: 100vh;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  z-index: 1;
}

.poster {
  flex: 0 0 25%;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
}

@media (max-width: 768px) {
  .poster {
    flex: 0 0 100%;
  }
}

.poster-movie {
  flex: 0 0 100%;
  height: 100%;
}

.poster-episode {
  height: 50%;
}

@media (max-width: 768px) and (orientation: landscape) {
  .poster {
    flex: 0 0 50%;
    height: 100%;
  }

  .poster-movie {
    flex: 0 0 100%;
    height: 100%;
  }
}

.poster > .poster-spinner-container {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.poster > .poster-content {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.poster > .poster-content > img {
  opacity: 0;
  transition: opacity 0.25s ease-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: inherit;
  z-index: inherit;
}

.loaded {
  opacity: 1;
  transform: scale(1);
}

.poster > .poster-content > .poster-attributes {
  width: 100%;
  height: 10%;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 2%;
  z-index: inherit;
}

.poster > .poster-content > .poster-attributes > h1 {
  color: white;
  background-color: black;
  padding: 10px;
  border-left: 5px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  font-size: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .poster > .poster-content > .poster-attributes > h1 {
    background-color: transparent;
    border-left: 5px solid rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px) brightness(80%);
    -webkit-backdrop-filter: blur(10px) brightness(80%);
  }
}

.poster > .poster-content > .poster-attributes > h1:first-of-type {
  margin-left: 2.5%;
}

.stream-page {
  width: 100%;
  height: 100%;
  background-color: black;
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  z-index: 2;
}

.stream-page-movie {
  visibility: visible;
  opacity: 1;
}

.stream-page > .stream-window {
  width: 50%;
  height: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1%;
  overflow: hidden;
  z-index: 1;
}

@supports (backdrop-filter: blur(33px)) or (-webkit-backdrop-filter: blur(33px)) {
  .stream-page {
    background-color: transparent;
    backdrop-filter: blur(33px) brightness(80%);
    -webkit-backdrop-filter: blur(33px) brightness(80%);
  }
}

@media (max-width: 768px) {
  .stream-page > .stream-window {
    width: 90%;
    height: 75%;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .stream-page > .stream-window {
    width: 75%;
    height: 90%;
    gap: 0.5%;
  }
}

.stream-page > .close-button {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: right;
  transform: translateZ(0);
}

.movie-close-button {
  display: none;
}

.stream-page > .close-button > i {
  color: rgba(250, 250, 250, 1);
  font-size: 2rem; 
}

.stream-page > .stream-window > .media-title {
  width: 100%;
}

.stream-page > .stream-window > .media-title > h1 {
  color: #EEEEEE;
  font-size: 1.5rem;
  font-weight: 500;
  border-left: 5px solid #EEEEEE;
  padding-left: 7.5px;
  line-height: 1.75;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .stream-page > .stream-window > .media-title > h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .stream-page > .stream-window > .media-title > h1 {
    font-size: 1rem;
  }
}

.stream-page > .stream-window > .iframe-container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.stream-page > .stream-window > .iframe-container > .iframe-spinner {
  position: absolute;
  z-index: 1;
}

.stream-page > .stream-window > .iframe-container > .iframe-spinner > svg {
  width: 3.25em;
  transform-origin: center;
  animation: rotate4 2s linear infinite;
 }
 
.stream-page > .stream-window > .iframe-container > .iframe-spinner > svg > circle {
  fill: none;
  stroke: rgba(250, 250, 250, 0.7);
  stroke-width: 2;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: dash4 1.5s ease-in-out infinite;
 }
 
@keyframes rotate4 {
  100% {
    transform: rotate(360deg);
  }
}
 
@keyframes dash4 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
 
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
 
  100% {
    stroke-dashoffset: -125px;
  }
}

.stream-page > .stream-window > .iframe-container > .iframe-source {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
}

.stream-page > .stream-window > .iframe-container > #player {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 3;
}

.stream-page > .stream-window > .information {
  color: rgba(250, 250, 250, 0.75);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stream-page > .stream-window > .information {
    font-size: .75rem;
  }
}

.stream-page > .stream-window > .streaming-options > #options {
  color: #EEEEEE;
  background-color: rgba(0, 0, 0, 0.2);
  border-width: 10px;
  border-color: transparent;
  border-radius: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}

@media (max-width: 768px) and (orientation: landscape) {
  .stream-page > .stream-window > .streaming-options > #options {
    font-size: .9rem;
    border-width: 7.5px;
  }
}

.loader {
  width: 360px;
  height: 100px;
  display: block;
  background-image: linear-gradient(100deg, transparent, rgba(38, 50, 56, 0.5) 50%, transparent 80%),
    linear-gradient(rgba(250, 250, 250, 0.8) 100px, transparent 0),
    linear-gradient(rgba(250, 250, 250, 0.8) 20px, transparent 0),
    linear-gradient(rgba(250, 250, 250, 0.8) 20px, transparent 0),
    linear-gradient(rgba(250, 250, 250, 0.8) 20px, transparent 0);
  background-repeat: no-repeat;
  background-size: 75px 100px, 100px 100px, 125px 20px, 260px 20px, 260px 20px;
  background-position: -50% 0, 0 0, 120px 0, 120px 40px, 120px 80px, 120px 120px;
  box-sizing: border-box;
  animation: animloader 1s linear infinite;
}

@keyframes animloader {
  0% {
    background-position: 0% 0, 0 0, 120px 0, 120px 40px, 120px 80px, 120px 120px;
  }
  
  100% {
    background-position: 100% 0, 0 0, 120px 0, 120px 40px, 120px 80px, 120px 120px;
  }
}

@supports (backdrop-filter: blur(33px)) or (-webkit-backdrop-filter: blur(33px)) {
  .stream-page > .stream-window > .media-title > h1 {
    border-left: 5px solid rgba(0, 0, 0, 0.5);
  }

  .stream-page > .stream-window > .iframe-container {
    background-color: rgba(0, 0, 0, 0.15);
  }
}

.search-button {
  position: fixed;
  top: 0;
  right: 0;
  padding: 10px;
  color: white;
  font-size: 1.75rem;
  z-index: 3;
}

.search-page {
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: black;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  z-index: 2;
}

@supports (backdrop-filter: blur(55px)) or (-webkit-backdrop-filter: blur(55px)) {
  .search-page {
    background-color: transparent;
    backdrop-filter: blur(55px) brightness(80%);
    -webkit-backdrop-filter: blur(55px) brightness(80%);
  }
}

.search-page > .close-button-container {
  position: relative;
  width: 100%;
  height: 15%;
}

.search-page > .close-button-container > .close-button {
  position: absolute;
  right: 0;
  transform: translateZ(0);
  padding: 10px;
  color: white;
  font-size: 2rem;
} 

.search-page > .browsing-container {
  position: relative;
  width: 40%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.5%;
}

.search-page > .browsing-container > form {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-page > .browsing-container > form::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  border-bottom: 2px solid white;
  border-radius: 30px;
}

.search-page > .browsing-container > form > input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: rgba(250, 250, 250, 0.75);
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 5px;
  border-radius: 0;
}

.search-page > .browsing-container > form > .search-bar > input::placeholder {
  color: #EEEEEE;
}

.search-page > .browsing-container > form > .search-bar > input:focus::-webkit-input-placeholder {
  color: transparent;
}

.search-page > .browsing-container > form > .search-bar > input:focus::-moz-placeholder {
  color: transparent;
}

.search-page > .browsing-container > .category {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  scrollbar-width: none;
}

.search-page > .browsing-container > .category::-webkit-scrollbar {
  display: none;
}

.grenre-active {
  color: white !important;
}

.search-page > .browsing-container > .category > h1 {
  color: rgba(250, 250, 250, 0.75);
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  display: inline;
}

.search-page > .browsing-container > .category > h1 > a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) and (orientation: portrait) {
  .search-page > .browsing-container {
    width: 90%;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .search-page > .browsing-container {
    width: 50%;
  }

  .search-page > .close-button-container {
    height: 25%;
  }

  .search-page > .browsing-container > .category > h1 {
    font-size: 1.1rem;
  }
}

.blur {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 20%;
  mask-image: linear-gradient(180deg,rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 1) 70%);
  backdrop-filter: blur(3px);
  bottom: 0;
  visibility: hidden;
  opacity: 0;
  z-index: 3;
}