@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}


body {
    font-family: "Oswald", sans-serif;
    /* cursor: pointer; */
}

header {
    background-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0) -100%, #0b0b0f 90%),
      url(headerbackground.png);
    min-height: 900px;
    background-size:
    150% 150%,
    140% auto;
background-position:
    center,
    center 1%;
    background-repeat: no-repeat;
    overflow: hidden;
    width: 100%;
}

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 80px;
    display: flex;
    align-items: center;
    background-color: rgba(5, 15, 30, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
}

.logo {
    width: 92px;
    height: 33px;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 120px;
    transform: none;
}

nav a {
    text-decoration: none;
    color: rgba(255, 248, 234, 1);
}

nav a:nth-child(1) {
    color: rgba(255, 182, 40, 1);
}

.search-child {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.search-child input {
    width: 260px;
    padding: 11px 45px 11px 15px;
    border-radius: 26px;
    border: none;
    outline: none;
    color: white;
    background-color: rgba(255, 255, 255, 0.35);
}

.search-child input::placeholder {
    color: white;
}

.searchicon {
    width: 36px;
    height: 36px;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    background-color: #ffb628;
    border-radius: 50%;
}

.search-child a img {
    width: 19px;
    height: 19px;
    position: static;
}

.getstarted {
    margin-left: auto;
    padding: 10px 22px;
    background-color: #ffb628;
    border-radius: 22px;
}

.getstarted a {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.sonic-intro {
    position: absolute;
    z-index: 5;
    top: 30%;
margin-left: 70px;
}

.sonic-intro h2 {
font-weight: 600;
font-size: 64px;
color: #FFFFFF;
}

.sonic-intro p {
font-weight: 400;
font-style: Regular;
font-size: 16px;
color: #FFFFFF;
line-height: 24px;
}

.moviedetails {
    margin-top: 10px;
    display: flex;
    gap: 2px;
    transform: translateX(-22px);
}

.moviedetails span {
color: white;
margin-top: 6px;
font-weight: 400;
font-style: Regular;
font-size: 20px;
}

.moviedetails img {
    width: 30px;
    height: 30px;
    margin-top: 5px;
    margin-left: 20px;
}

.watch-parent {
display: flex;
transform: translate(-5px, 90px);
gap: 15px;
}

.watch-parent span:nth-child(1) {
    background-color: #FFB628;
    padding: 7px 10px;
    border-radius: 20px;
}

.watch-parent span:nth-child(2) {
    background-color: transparent;
    border: 1px solid #FFF8EA;
    border-radius: 20px;
    padding: 7px 10px;
}

.watch-parent a {
text-decoration: none;
font-weight: 400;
font-style: Regular;
font-size: 20px;
color: white;
}

.watch-parent span > a > img {
transform: translateY(5px);
}

.movie-catalogue {
    width: 720px;
    height: 280px;
    position: relative;
    transform: translate(500px, 160px);
    overflow: hidden;
}

.movie-catalogue img {
    width: 145px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    position: absolute;
    left: 70px;
    top: 50px;
    border: 3px solid transparent;
    animation: catalogue 16s ease-in-out infinite;
}

.movie-catalogue img:nth-child(1) {
    animation-delay: 0s;
}

.movie-catalogue img:nth-child(2) {
    animation-delay: -12s;
}

.movie-catalogue img:nth-child(3) {
    animation-delay: -8s;
}

.movie-catalogue img:nth-child(4) {
    animation-delay: -4s;
}

@keyframes catalogue {

    0% {
        transform: translateX(0) scale(1.45);
        z-index: 5;
        border-color: white;
        opacity: 1;
    }


    18% {
        transform: translateX(-180px) scale(1);
        z-index: 1;
        border-color: transparent;
        opacity: 0;
    }


    24% {
        transform: translateX(510px) scale(1);
        z-index: 1;
        border-color: transparent;
        opacity: 0;
    }


    25% {
        transform: translateX(510px) scale(1);
        opacity: 1;
    }


    50% {
        transform: translateX(350px) scale(1);
        z-index: 2;
        border-color: transparent;
        opacity: 1;
    }


    75% {
        transform: translateX(190px) scale(1);
        z-index: 3;
        border-color: transparent;
        opacity: 1;
    }


    100% {
        transform: translateX(0) scale(1.45);
        z-index: 5;
        border-color: white;
        opacity: 1;
    }
}

.genres-parent {
    background-color: #0B0B0F;
    min-height: 400px;
    overflow: hidden;
}

.genres1234 {
font-weight: 500;
font-style: Medium;
font-size: 38px;
color: #FFFFFF;
transform: translate(30px, 30px);
margin-bottom: 10px;
}

.genres-container {
    margin-left: 15px;
    padding-top: 50px;
    height: 360px;
    overflow: hidden;
}

.genres-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: cards 20s ease-out infinite;
}


.genres-subcontainer {
position: relative;
}

.genres-child {
    width: 396px;
    height: 308px;
    background-color: #3F3F3F;
    border-radius: 20px;
    overflow: hidden;

   object-fit: contain;
}

.genre1 {
       transition-timing-function: ease-in-out 4s;

}

.genres-subcontainer .genre1:hover {
        transform:  scaleY(1.05);
 ;
}

.genres-subcontainer,
.genres-subcontainer2,
.genres-subcontainer3,
.genres-subcontainer4 {
    position: relative;
    width: 396px;
    min-width: 396px;
    height: 308px;
    flex-shrink: 0;
}

@keyframes cards {

    0% {
        transform: translateX(0px);
    }

    20% {
        transform: translateX(-416px);
    }

    25% {
        transform: translateX(-416px);
    }

    45% {
        transform: translateX(-832px);
    }

    50% {
        transform: translateX(-832px);
    }

    70% {
        transform: translateX(-1248px);
    }

    75% {
        transform: translateX(-1248px);
    }

    95% {
        transform: translateX(-1664px);
    }

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


.genres-subcontainer {
    animation-delay: 0s;
}

.genres-subcontainer2 {
    animation-delay: -12s;
}

.genres-subcontainer3 {
    animation-delay: -12s;
}

.genres-subcontainer4 {
    animation-delay: -12s;
} 

.genres-subcontainer span {
font-weight: 500;
font-style: Medium;
font-size: 32px;
color: #FFF8EA;
position: absolute;
margin-top: 15px;
left: 5.5%;
}

.genre1:nth-child(3) {
    width: 194px;
    height: 212.14px;
    position: absolute;
}

.genre1:nth-child(1) {
position: absolute;
bottom: 1%;
left: 10%;
}

.genre1:nth-child(2) {
position: absolute;
bottom: 1%;
left: 32%;
z-index: 3;
}

.genre1:nth-child(3) {
position: absolute;
bottom: 7%;
right: 14%;
} 

.genres-subcontainer2 {
position: relative;

}

.genres-child2 {
    width: 396px;
    height: 308px;
    background-color: #3F3F3F;
    border-radius: 20px;
    overflow: hidden;
   object-fit: contain;
}

.genres-subcontainer2 span {
font-weight: 500;
font-style: Medium;
font-size: 32px;
color: #FFF8EA;
position: absolute;
margin-top: 15px;
left: 5.5%;
}

.genre2:nth-child(1) {
position: absolute;
bottom: 1%;
left: 10%;
}

.genre2:nth-child(2) {
position: absolute;
bottom: 1%;
left: 32%;
z-index: 3;

}

.genre2:nth-child(3) {
position: absolute;
bottom: 7%;
right: 19%;
width: 164px;
height: 212.14px;
} 

.genres-subcontainer3 {
position: relative;

}

.genres-child3 {
    width: 396px;
    height: 308px;
    background-color: #3F3F3F;
    border-radius: 20px;
    overflow: hidden;
   object-fit: contain;
}

.genres-subcontainer3 span {
font-weight: 500;
font-style: Medium;
font-size: 32px;
color: #FFF8EA;
position: absolute;
margin-top: 15px;
left: 5.5%;
}

.genre3:nth-child(1) {
position: absolute;
bottom: 1%;
left: 10%;
}

.genre3:nth-child(2) {
position: absolute;
bottom: 1%;
left: 32%;
z-index: 3;

}

.genre3:nth-child(3) {
position: absolute;
bottom: 7%;
right: 19%;
width: 164px;
height: 212.14px;
} 

.genres-subcontainer4 {
position: relative;

}

.genres-child4 {
    width: 396px;
    height: 308px;
    background-color: #3F3F3F;
    border-radius: 20px;
    overflow: hidden;
   object-fit: contain;
}

.genres-subcontainer4 span {
font-weight: 500;
font-style: Medium;
font-size: 32px;
color: #FFF8EA;
position: absolute;
margin-top: 15px;
left: 5.5%;
}

.genre4:nth-child(1) {
position: absolute;
bottom: 1%;
left: 10%;
transform: rotate(-31deg);
}

.genre4:nth-child(2) {
position: absolute;
bottom: 1%;
left: 32%;
z-index: 3;
transform: rotateX(0.96deg);
}

.genre4:nth-child(3) {
position: absolute;
bottom: 7%;
right: 19%;
width: 164px;
height: 172.14px;
transform: rotate(31.2deg);
} 


.new-release {
  background-color: #0B0B0E;
  min-height: 470px;
  overflow: hidden;
}

.new-release-text {
  font-weight: 500;
  font-size: 38px;
  color: #fff;
  transform: translate(40px, 35px);
  margin-bottom: 5px;
}
 
.new-release-container {
    margin: 60px 0px 0px 40px;
    display: flex;
    gap: 30px;
    overflow-x: scroll;
    scrollbar-width: none;
   
}

.new-release-child {
    flex-shrink: 0;
}

.first-child-image {
    width: 262px;
    height: 312px;
    object-fit: cover;
    border-radius: 20px;
}

.second-child-image {
    /* width: 540px; */
    height: 312px;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

.new-release-together {
    /* border: 2px solid green; */
    width: 262px;
    height: 312px;
    position: relative;
    transition: width 0.5s ease;
}

.new-release-child:hover .new-release-together {
    width: 540px;
}

.new-release-child:hover .second-child-image {
    opacity: 1;
}

.new-release-content {
    color: white;
    position: absolute;
    top: 130px;
    left: 20px;
    /* font-weight: 600; */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-release-content > p {
    font-size: 32px;
     font-weight: 700; 
     line-height: 34px;
     letter-spacing: −0.3 px; 
     margin-bottom: 20px;
}

.new-release-child:hover .new-release-content {
    opacity: 1;
}

.icons-medea {
    display: flex;
    align-items: center;
    gap: 30px;
}

.icons-medea span {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.icons-medea span img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.topmovies-parent {
  background-color: #0B0A0F;
  overflow-x: hidden;
  padding: 20px 0 40px;
}

.topmovies-parent h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 38px;
  color: #FFFFFF;
  margin: 0 0 10px;
  padding: 0 40px;
}

.top10-cardboxes {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 28px 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 40px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top10-cardboxes::-webkit-scrollbar {
  display: none;
}

.top10-cardboxes:has(.movie-card:hover) {
  scroll-snap-type: x proximity;
}

.top10-cardboxes-child,
.top10-cardboxes-child1 {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.movie-number {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 200px;
  line-height: 1;
  min-width: 90px;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2px #FFF8EA;
  position: relative;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

.movie-glow {
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.movie-card {
  position: relative;
  width: 262px;
  height: 312px;
  margin-left: -8px; 
  border-radius: 20px;
  overflow: hidden;
  z-index: 3;
  flex-shrink: 0;
  cursor: pointer;
  transition: width 0.45s ease-in-out, transform 0.45s ease-in-out, box-shadow 0.45s ease-in-out;
}

.movie-card:hover {
  width: 508px;
  z-index: 5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.movie-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}

.movie-card:hover .movie-image {
  opacity: 0;
  transform: scale(1.05);
}

.movie-details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px 32px;
  color: #FFFFFF;
  font-family: "Oswald", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease-in-out;
}

.movie-details::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.movie-card:hover .movie-details {
  opacity: 1;
  pointer-events: auto;
}

.movie-hover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.08);
  transition: transform 0.45s ease-in-out;
}

.movie-card:hover .movie-hover-image {
  transform: scale(1);
}

.movie-info {
  position: relative;
  z-index: 2;
  width: 476px;
  transform: translateY(8px);
  transition: transform 0.45s ease-in-out;
}

.movie-card:hover .movie-info {
  transform: translateY(0);
}

.movie-info h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  white-space: nowrap;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.movie-meta img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.watch-parent1 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.watch-parent1 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
  padding: 5px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  white-space: nowrap;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.watch-parent1 .btn-watch {
  background-color: #FFB628;
  border: 1px solid #FFB628;
}

.watch-parent1 .btn-trailer {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid #FFF8EA;
}

.watch-parent1 a:hover {
  transform: scale(1.04);
}

.now-watching-parent {
background-color: #0A0B0F;
min-height: 520px;
width: 100%;
}

.now-watching-child {
    display: flex;
gap: 45px;
}

.now-watching-parent > h3:first-of-type {
    font-family: Oswald;
font-weight: 500;
font-style: Medium;
font-size: 38px;
color: white;
margin: 0px 0px 40px 40px;
}

.now-watching-child > img:first-of-type {
    margin: 0px 0px 0px 40px;
}


.spiderman-text h3 {
font-family: Oswald;
font-weight: 600;
font-style: SemiBold;
font-size: 36px;
color: white;
margin-bottom: 10px;
}

.spiderman-text p {
font-family: 'Oswald', sans-serif;
font-weight: 400;
font-style: Regular;
font-size: 16px;
color: white;
margin-bottom: 10px;
width: 92%;
}

.spiderman-text > a {
text-decoration: none;
display: flex;
flex-direction: row;
flex-shrink: 0;
gap: 33px;
margin-bottom: 35px;
border-radius: 20px;
}

.spiderman-text a > span {
 display: flex;
  align-items: center;
  gap: 5px;
color: white;
font-family: 'Oswald', sans-serif;
font-weight: 400;
font-style: Regular;
font-size: 20px;
}

.spiderman-text > a:last-of-type {
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.spiderman-text > a:last-of-type > span {
    background-color: #FFB628;
    padding: 10px 10px;
    border-radius: 20px;
}

.coming-soon-parent {
    background-color: #0A0B0F;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    padding-top: 40px;
}

.coming-soon-parent h3 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 38px;
    margin: 0 0 40px 40px;
}

.coming-soon-viewport {
    width: 100%;
    overflow: hidden;
}

.coming-soon-track {
    --card-width: 262px;
    --gap: 20px;
    display: flex;
    gap: 30px;
    width: max-content;
    margin-left: 0; 
    padding-left: 40px; 
    text-decoration: none;
    animation: pendulumMove 7s ease-in-out infinite alternate;
}

.coming-soon-track img {
    width: 262px;
    height: 312px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
}

@keyframes pendulumMove {
    from {
        transform: translateX(0);
    }
    to {
       transform: translateX(-423px);
    }
}

.hr-first {
    border: none;
    border-top: 1px solid #24252A;  background-color: #0a0b0f;
}

footer {
    background-color: #0A0B0F;
    color: white;
    padding: 55px 40px 70px;
}

.footer-child {
    max-width: 840px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1.05fr 1.15fr 1fr;
    column-gap: 45px;
    align-items: start;
}


.footer-child h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 36px;
    margin: 0 0 8px;
}

.footer-child h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 20px;
    margin: 0 0 18px;
}

.footer-child p {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 10px;
}


.footer-child > div:first-child > p {
    margin-bottom: 5px;
}

.footer-child > div:first-child > div {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 5px;
}

.footer-child > div:first-child > div img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-child > a {
    color: white;
    text-decoration: none;
}

footer hr {
    max-width: 840px;
    margin: 20px auto 12px;
    border: none;
    border-top: 1px solid #24252A;
}

footer > p {
    max-width: 840px;
    margin: 0 auto;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: white;
}




@media (min-width: 1920px) {

    header {
        min-height: 1000px;
        background-size: 150% 150%, 100% auto;
        background-position: center, center top;
    }

    .nav-container {
        padding: 22px 100px;
    }

    .logo {
        width: 110px;
        height: auto;
    }

    nav {
        margin-left: 150px;
        gap: 40px;
    }

    nav a {
        font-size: 19px;
    }

    .search-child {
        margin-left: 60px;
    }

    .search-child input {
        width: 320px;
        padding: 14px 45px 14px 20px;
    }

    .getstarted {
        padding: 12px 28px;
    }

    .sonic-intro {
        top: 260px;
        margin-left: 100px;
    }

    .sonic-intro h2 {
        font-size: 76px;
    }

    .sonic-intro p {
        font-size: 19px;
        line-height: 30px;
    }

    .moviedetails {
        margin-top: 20px;
    }

    .moviedetails span {
        font-size: 23px;
    }

    .watch-parent {
        transform: translate(-5px, 70px);
    }

    .watch-parent a {
        font-size: 22px;
    }

    .movie-catalogue {
        width: 780px;
        transform: translate(840px, 75px);
    }

    .genres-parent {
        min-height: 440px;
    }

    .genres1234 {
        font-size: 42px;
        transform: translate(80px, 35px);
    }

    .genres-container {
        margin-left: 80px;
    }

    .new-release {
        min-height: 520px;
    }

    .new-release-text {
        font-size: 42px;
        transform: translate(80px, 35px);
    }

    .new-release-container {
        margin-left: 80px;
        gap: 35px;
    }

    .new-release-together {
        width: 280px;
        height: 340px;
    }

    .first-child-image,
    .second-child-image {
        height: 340px;
    }

    .new-release-child:hover .new-release-together {
        width: 560px;
    }

    .new-release-content {
        top: 150px;
    }

    .topmovies-parent {
        padding: 35px 0 60px;
    }

    .topmovies-parent h2 {
        font-size: 42px;
        padding: 0 80px;
    }

    .top10-cardboxes {
        padding: 35px 80px;
        gap: 40px;
    }

    .movie-card {
        width: 280px;
        height: 340px;
    }

    .movie-card:hover {
        width: 520px;
    }

    .movie-number {
        font-size: 210px;
    }

    .movie-info h3 {
        font-size: 34px;
    }

    .now-watching-parent {
        min-height: 620px;
        padding: 35px 80px 70px;
    }

    .now-watching-parent > h3:first-of-type {
        font-size: 42px;
        margin-left: 0;
    }

    .now-watching-child {
        gap: 60px;
    }

    .now-watching-child > img:first-of-type {
        width: 45%;
        max-height: 450px;
        object-fit: cover;
        border-radius: 20px;
        margin-left: 0;
    }

    .spiderman-text {
        flex: 1;
    }

    .spiderman-text h3 {
        font-size: 42px;
    }

    .spiderman-text p {
        font-size: 19px;
        line-height: 30px;
    }

    .coming-soon-parent {
        min-height: 650px;
        padding-top: 50px;
    }

    .coming-soon-parent h3 {
        font-size: 42px;
        margin-left: 80px;
    }

    .coming-soon-track {
        padding-left: 80px;
        gap: 35px;
    }

    .coming-soon-track img {
        width: 300px;
        height: 360px;
    }

    footer {
        padding: 70px 80px 80px;
    }

    .footer-child {
        max-width: 1400px;
        column-gap: 80px;
    }

    .footer-child h3 {
        font-size: 42px;
    }

    .footer-child h4 {
        font-size: 24px;
    }

    .footer-child p {
        font-size: 18px;
    }

    footer hr,
    footer > p {
        max-width: 1400px;
    }
}

@media (max-width: 1024px) {

    .nav-container {
        padding: 15px 30px;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        gap: 25px;
    }

    .search-child {
        margin-left: auto;
    }

    .search-child input {
        width: 210px;
    }

    .getstarted {
        margin-left: 0;
    }

    header {
        min-height: 850px;
        background-size: cover;
        background-position: center;
    }

    .sonic-intro {
        top: 210px;
        margin-left: 40px;
        margin-right: 40px;
    }

    .sonic-intro h2 {
        font-size: 52px;
    }

    .sonic-intro p {
        max-width: 850px;
    }

    .sonic-intro p br {
        display: none;
    }

    .watch-parent {
        transform: none;
        margin-top: 30px;
    }

    .movie-catalogue {
        transform: none;
        width: 100%;
        height: auto;
        display: flex;
        gap: 20px;
        margin-top: 45px;
        overflow: visible;
    }

    .movie-catalogue img {
        position: static;
        width: 120px;
        height: 150px;
        animation: none;
    }

    .now-watching-parent {
        padding-bottom: 50px;
    }

    .now-watching-child {
        gap: 25px;
        padding-right: 30px;
    }

    .now-watching-child > img:first-of-type {
        width: 45%;
        object-fit: cover;
        border-radius: 15px;
    }

    .spiderman-text h3 {
        font-size: 30px;
    }

    .spiderman-text p {
        width: 100%;
    }

    .footer-child {
        max-width: 100%;
        column-gap: 25px;
    }
}


@media (max-width: 768px) {

    .nav-container {
        padding: 15px 20px;
    }

    nav {
        gap: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    nav a {
        font-size: 15px;
    }

    .search-child input {
        width: 180px;
    }

    .getstarted a {
        font-size: 16px;
    }

    header {
        min-height: 900px;
        background-size: cover;
        background-position: center top;
    }

    .sonic-intro {
        top: 200px;
        margin-left: 25px;
        margin-right: 25px;
    }

    .sonic-intro h2 {
        font-size: 44px;
        text-transform: capitalize;
    }

    .sonic-intro p {
        font-size: 15px;
        line-height: 23px;
    }

    .moviedetails {
        flex-wrap: wrap;
        gap: 5px;
    }

    .moviedetails img {
        width: 25px;
        height: 25px;
        margin-left: 12px;
    }

    .moviedetails span {
        font-size: 17px;
    }

    .watch-parent a {
        font-size: 16px;
    }

    .movie-catalogue {
        gap: 12px;
        flex-wrap: wrap;
    }

    .movie-catalogue img {
        width: 100px;
        height: 125px;
    }

    .genres1234,
    .new-release-text,
    .topmovies-parent h2,
    .now-watching-parent > h3:first-of-type,
    .coming-soon-parent h3 {
        font-size: 30px;
    }

    .genres-subcontainer,
    .genres-subcontainer2,
    .genres-subcontainer3,
    .genres-subcontainer4 {
        width: 300px;
        min-width: 300px;
        height: 235px;
    }

    .genres-child,
    .genres-child2,
    .genres-child3,
    .genres-child4 {
        width: 100%;
        height: 100%;
    }

    .genres-container {
        height: 285px;
    }

    .genres-parent {
        min-height: 340px;
    }

    .genres-track {
        animation: cardsTablet 20s ease-in-out infinite;
    }

    @keyframes cardsTablet {
        0%, 20% { transform: translateX(0); }
        25%, 45% { transform: translateX(-320px); }
        50%, 70% { transform: translateX(-640px); }
        75%, 95% { transform: translateX(-960px); }
        100% { transform: translateX(-1280px); }
    }

    .genres-subcontainer span,
    .genres-subcontainer2 span,
    .genres-subcontainer3 span,
    .genres-subcontainer4 span {
        font-size: 25px;
    }

    .genre1,
    .genre2,
    .genre3,
    .genre4 {
        max-width: 75%;
    }

    .new-release-container {
        margin-left: 20px;
        gap: 18px;
    }

    .new-release-text {
        transform: translate(20px, 25px);
    }

    .new-release-together,
    .new-release-child:hover .new-release-together {
        width: 350px;
        height: 280px;
    }

    .first-child-image,
    .second-child-image {
        width: 100%;
        height: 100%;
    }

    .new-release-content {
        top: auto;
        bottom: 18px;
        left: 15px;
        right: 15px;
    }

    .new-release-content > p {
        font-size: 25px;
        line-height: 30px;
        margin-bottom: 12px;
    }

    .icons-medea {
        gap: 12px;
    }

    .icons-medea span {
        font-size: 14px;
    }

    .icons-medea span img {
        width: 18px;
        height: 18px;
    }

    .topmovies-parent h2 {
        padding: 0 20px;
    }

    .top10-cardboxes {
        padding: 25px 20px;
        gap: 20px;
    }

    .movie-number {
        font-size: 140px;
        min-width: 65px;
    }

    .movie-card {
        width: 240px;
        height: 290px;
    }

    .movie-card:hover {
        width: 380px;
    }

    .movie-info {
        width: 100%;
    }

    .movie-info h3 {
        font-size: 25px;
    }

    .movie-meta {
        font-size: 15px;
        gap: 12px;
    }

    .now-watching-child {
        flex-direction: column;
        padding: 0 20px;
    }

    .now-watching-child > img:first-of-type {
        width: 100%;
        max-height: 350px;
        margin: 0;
    }

    .now-watching-parent > h3:first-of-type {
        margin-left: 20px;
    }

    .spiderman-text h3 {
        font-size: 28px;
    }

    .spiderman-text > a {
        flex-wrap: wrap;
        gap: 15px;
    }

    .coming-soon-parent {
        min-height: 480px;
    }

    .coming-soon-parent h3 {
        margin-left: 20px;
    }

    .coming-soon-track img {
        width: 200px;
        height: 270px;
    }

    footer {
        padding: 40px 25px;
    }

    .footer-child {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
    }

    .footer-child p br {
        display: none;
    }
}

@media (max-width: 480px) {

    .nav-container {
        padding: 12px 15px;
        gap: 12px;
    }

    .logo {
        width: 80px;
        height: auto;
        order: 1;
    }

    .getstarted {
        order: 2;
        margin-left: auto;
        padding: 7px 15px;
    }

    .getstarted a {
        font-size: 14px;
    }

    .search-child {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .search-child input {
        width: 100%;
        padding: 10px 40px 10px 15px;
    }

    nav {
        order: 4;
        width: 100%;
        gap: 20px;
        margin: 0;
        padding: 5px 0;
    }

    nav a {
        font-size: 14px;
    }

    header {
        min-height: 1050px;
        background-size: cover;
        background-position: center top;
    }

    .sonic-intro {
        top: 205px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .sonic-intro h2 {
        font-size: 35px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .sonic-intro p {
        font-size: 14px;
        line-height: 22px;
    }

    .moviedetails {
        transform: none;
        margin-top: 20px;
        gap: 5px;
    }

    .moviedetails img {
        width: 22px;
        height: 22px;
        margin-left: 8px;
    }

    .moviedetails span {
        font-size: 15px;
    }

    .watch-parent {
        gap: 10px;
        margin-top: 25px;
    }

    .watch-parent a {
        font-size: 14px;
    }

    .watch-parent span:nth-child(1),
    .watch-parent span:nth-child(2) {
        padding: 7px 10px;
    }

    .movie-catalogue {
        margin-top: 35px;
        gap: 10px;
    }

    .movie-catalogue img {
        width: calc(25% - 8px);
        height: 110px;
        border-radius: 10px;
    }

    .genres1234,
    .new-release-text,
    .topmovies-parent h2,
    .now-watching-parent > h3:first-of-type,
    .coming-soon-parent h3 {
        font-size: 27px;
    }

    .genres1234 {
        transform: translate(15px, 25px);
    }

    .genres-container {
        margin-left: 10px;
        padding-top: 45px;
        height: 270px;
    }

    .genres-parent {
        min-height: 320px;
    }

    .genres-subcontainer,
    .genres-subcontainer2,
    .genres-subcontainer3,
    .genres-subcontainer4 {
        width: 280px;
        min-width: 280px;
        height: 218px;
    }

    .genres-track {
        animation: cardsMobile 20s ease-in-out infinite;
    }

    @keyframes cardsMobile {
        0%, 20% { transform: translateX(0); }
        25%, 45% { transform: translateX(-300px); }
        50%, 70% { transform: translateX(-600px); }
        75%, 95% { transform: translateX(-900px); }
        100% { transform: translateX(-1200px); }
    }

    .new-release {
        min-height: 390px;
    }

    .new-release-container {
        margin: 50px 0 0;
        padding: 0 15px 20px;
        gap: 15px;
    }

    .new-release-text {
        transform: translate(15px, 25px);
    }

    .new-release-together,
    .new-release-child:hover .new-release-together {
        width: min(85vw, 350px);
        height: 270px;
    }

    .first-child-image {
        opacity: 0;
    }

    .second-child-image,
    .new-release-child:hover .second-child-image {
        opacity: 1;
        width: 100%;
    }

    .new-release-together::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        background: linear-gradient(
            transparent 20%,
            rgba(0, 0, 0, 0.7) 100%
        );
        pointer-events: none;
    }

    .new-release-content {
        opacity: 1;
        z-index: 2;
    }

    .new-release-content > p {
        font-size: 23px;
        line-height: 27px;
    }

    .icons-medea {
        gap: 10px;
    }

    .watch-parent1 {
        gap: 10px;
        margin-top: 15px;
    }

    .watch-parent1 a {
        min-width: 0;
        padding: 6px 10px;
        font-size: 12px;
    }

    .topmovies-parent h2 {
        padding: 0 15px;
    }

    .top10-cardboxes {
        padding: 20px 15px;
        gap: 15px;
    }

    .movie-number {
        font-size: 100px;
        min-width: 45px;
        -webkit-text-stroke: 1px white;
    }

    .movie-card,
    .movie-card:hover {
        width: 255px;
        height: 280px;
    }

    .movie-image {
        opacity: 0;
    }

    .movie-details {
        opacity: 1;
        pointer-events: auto;
        padding: 15px 12px 20px;
    }

    .movie-hover-image {
        transform: scale(1);
    }

    .movie-info {
        width: 100%;
        transform: none;
    }

    .movie-info h3 {
        font-size: 23px;
        white-space: normal;
    }

    .movie-meta {
        font-size: 13px;
        gap: 8px;
    }

    .movie-meta img {
        width: 17px;
        height: 17px;
    }

    .now-watching-parent {
        padding-bottom: 40px;
    }

    .now-watching-child {
        padding: 0 15px;
        gap: 20px;
    }

    .now-watching-parent > h3:first-of-type {
        margin: 0 0 25px 15px;
    }

    .spiderman-text h3 {
        font-size: 25px;
    }

    .spiderman-text p {
        font-size: 14px;
        line-height: 23px;
    }

    .spiderman-text a > span {
        font-size: 15px;
    }

    .spiderman-text > a {
        gap: 12px;
        margin-bottom: 20px;
    }

    .coming-soon-parent {
        min-height: 400px;
        padding-top: 25px;
    }

    .coming-soon-parent h3 {
        margin: 0 0 25px 15px;
    }

    .coming-soon-track {
        padding-left: 15px;
        gap: 15px;
    }

    .coming-soon-track img {
        width: 160px;
        height: 220px;
        border-radius: 12px;
    }

    footer {
        padding: 35px 15px;
    }

    .footer-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 30px;
    }

    .footer-child > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-child h3 {
        font-size: 30px;
    }

    .footer-child h4 {
        font-size: 18px;
    }

    .footer-child p {
        font-size: 14px;
    }
}
