* {
  user-select: none;
  font-family: 'Segoe UI';
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}

body {
  background-color: #151515;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #151515;
}

body::-webkit-scrollbar-thumb {
  background-color: #151515;
  border-radius: 10px;
  border: 3px solid #007bff;
}

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

h1 {
  font-family: 'Bespoke Stencil';
}

p {
  font-family: 'Roboto';
}

main {
  max-width: 1900px;
  min-height: 100vh;
  width: 100%;
  background: #141414;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1900px;
  z-index: 10;
  margin: 0 auto;
  color: whitesmoke;
  backdrop-filter: blur(5px);
  padding: 10px 0;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.5);
}

nav {
  position: relative;
  height: 100%;
  max-width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  column-gap: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 400;
}

.brand-nav-wrapper {
  display: flex;
  gap: 30px;
  width: 40%;
}

.branding-letter {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.branding-letter .stream {
  position: absolute;
  font-size: 2rem;
  display: none;
  opacity: 0.3;
  letter-spacing: 2px;
}

.branding {
  width: 65px;
  z-index: 1;
  filter: drop-shadow(black 0 0 3px);
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
  font-size: clamp(0.9rem, -0.125rem + 1.5vw, 1rem);
}

.movie-labels {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navigation li,
.movie-labels li {
  list-style: none;
}

.realtime-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 800px;
  padding: 10px;
}

#search {
  padding: 12px 15px;
  font-size: 12px;
  width: 300px;
  border: 2px solid #444;
  border-radius: 8px;
  background-color: #222;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search::placeholder {
  color: #bbb;
}

#search:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

#mediaSelect {
  padding: 12px 15px;
  font-size: 14px;
  border: 2px solid #444;
  border-radius: 8px;
  background-color: #222;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

#mediaSelect:focus {
  border-color: #007bff;
  background-color: #333;
}

@media (max-width: 600px) {
  .realtime-search {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    box-sizing: border-box;
    align-items: stretch;
  }

  #search,
  #mediaSelect {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #search {
    margin-bottom: 5px;
  }
}

.search-prompt {
  background-color: #333;
  padding: 20px 30px;
  text-align: center;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
  color: #f1f1f1;
}

.search-prompt p {
  font-size: 15px;
  color: #f1f1f1;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.search-prompt a {
  color: #00aaff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.search-prompt a:hover {
  color: #0077cc;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .search-prompt {
    padding: 15px 20px;
  }

  .search-prompt p {
    font-size: 16px;
  }
}

#searchResults {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-image {
  position: relative;
  height: 350px;
  width: 250px;
  overflow: hidden;
}

.search-image a {
  text-decoration: none;
}

.search-poster-container {
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

#searchResults img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rays {
  height: 100%;
  width: 100%;
  scale: 2.2;
  object-fit: contain;
  object-position: center;
  animation: rotate 200s infinite linear;
}

.shade {
  background: linear-gradient(90deg, #0d0d0d 0%, hsl(0 0% 0% / 0.9) 10%, hsl(0 0% 0% / 0.8) 20%, hsl(0 0% 0% / 0.7) 30%, hsl(0 0% 0% / 0.6) 40%, hsl(0 0% 0% / 0.5) 50%, hsl(0 0% 0% / 0.4) 60%, hsl(0 0% 0% / 0.3) 70%, hsl(0 0% 0% / 0.2) 80%, hsl(0 0% 4% / 0.1) 90%, #fff0 100%);
}

.movie-intro {
  position: absolute;
  width: 100%;
  z-index: 1;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 300;
  pointer-events: none;
}

.movie-intro h1 {
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

.vertical-line {
  height: 25px;
  width: 0;
  border: 1px solid #005a94;
  border-radius: 50px;
}

.movie-logo-title {
  width: 300px;
  padding-bottom: 20px;
}

section {
  max-width: 90%;
  overflow: hidden;
  flex-direction: column;
  margin: 0 auto;
  margin-bottom: 20px;
  padding: 10px;
}

.fa-solid {
  color: #005a94;
}

section h1 {
  color: white;
  padding: 20px;
  font-weight: 600;
}

.swiper-popular {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide {
  position: relative;
  height: 225px;
  width: 335px;
}

.swiper-slide a {
  text-decoration: none;
}

.poster-wrapper {
  position: relative;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.poster-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.3s;
}

.swiper-slide .poster-wrapper img:hover {
  scale: 1.1;
}

.swiper-slide h3,
.released-year,
.search-title,
.search-year {
  color: whitesmoke;
  font-size: 1rem;
  font-weight: 500;
  width: 80%;
  padding: 10px 0;
}

.title-year-wrapper,
.search-title-year {
  height: 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
}

.swiper-slide h3,
.search-title {
  text-align: left;
  width: 70%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: whitesmoke;
}

.released-year,
.search-year {
  text-align: right;
  width: 30%;
}

.circular-progress {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 99;
  top: 0;
  right: 0;
}

.inner-circle {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #151515;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rating {
  font-size: 0.8rem;
  z-index: 1;
  font-weight: 600;
  color: white;
}

.play-hover {
  position: absolute;
  height: 70px;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

.circle {
  stroke: #005a94;
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  transition: all 0.5s ease-in-out;
  opacity: 0.3;
}

.playBut {
  display: inline-block;
  transition: all 0.5s ease;
}

.triangle {
  transition: all 0.7s ease-in-out;
  stroke-dasharray: 240;
  stroke-dashoffset: 480;
  stroke: #fff;
  transform: translateY(0);
}

.swiper-slide:hover &,
.search-image:hover & {
  .triangle {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke: #005a94;
    animation: nudge 0.7s ease-in-out;
  }

  .circle {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes nudge {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  70% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.disclaimer {
  max-width: 90%;
  margin: 0 auto;
  color: #005a94;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disclaimer b {
  font-size: 1.1rem;
}

.disclaimer p {
  color: #fff;
  text-align: justify;
}

.disclaimer i {
  color: #fff;
}

@media only screen and (max-width: 768px) {
  header {
    max-width: 95%;
  }

  nav {
    gap: 10px;
    max-width: 100%;
  }

  .navigation {
    font-size: 1rem;
  }

  .brand-nav-wrapper {
    width: 100%;
  }

  .realtime-search {
    width: 100%;
  }

  .dark {
    display: none;
  }

  .bg-image {
    width: 100%;
  }

  .branding {
    width: 50px;
    padding-bottom: 5px;
  }
}

@media only screen and (max-width: 800px) {
  header {
    top: -65px;
    padding: 15px 0;
    max-width: 100%;
  }

  .navigation {
    display: none;
  }

  .brand-nav-wrapper {
    justify-content: center;
  }

  .background-wrapper {
    height: 50vh;
    border-radius: 5px;
  }

  section h1 {
    font-size: 1.2rem;
    padding: 20px 0;
  }

  .swiper-slide {
    height: 150px;
    width: 220px;
    border-radius: 10px;
  }

  .search-image {
    height: 220px;
    width: 150px;
  }

  .shade {
    background: linear-gradient(-20deg, #0d0d0d 0%, hsl(0 0% 0% / 0.9) 10%, hsl(0 0% 0% / 0.8) 20%, hsl(0 0% 0% / 0.7) 30%, hsl(0 0% 0% / 0.6) 40%, hsl(0 0% 0% / 0.5) 50%, hsl(0 0% 0% / 0.4) 60%, hsl(0 0% 0% / 0.3) 70%, hsl(0 0% 0% / 0.2) 80%, hsl(0 0% 4% / 0.1) 90%, #fff0 100%);
  }

  .circular-progress {
    width: 35px;
    height: 35px;
  }

  .inner-circle {
    width: 25px;
    height: 25px;
  }

  .movie-logo-title {
    width: 50%;
    padding-bottom: 0;
  }

  .movie-labels {
    gap: 10px;
  }

  .movie-intro h1 {
    font-size: 2rem;
    font-weight: 500;
  }

  .swiper-slide h3,
  .swiper-slide p,
  .movie-intro p,
  #searchResults h3,
  #searchResults p,
  .movie-labels li {
    font-size: 0.8rem;
  }

  .disclaimer {
    font-size: 0.7rem;
  }

  .branding-letter .stream {
    display: block;
  }
}
